60709b1118ede414f9460e3a72d97c404668e841
[gnulib.git] / ChangeLog
1 2010-04-05  Jim Meyering  <meyering@redhat.com>
2
3         xstrtoumax-tests: convert to use init.sh
4         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
5         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
6         Use Exit, not exit.
7         Remove uses of $EXEEXT and "./" to run a program in the current dir.
8
9         xstrtoimax-tests: convert to use init.sh
10         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
11         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
12         Use Exit, not exit.
13         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14
15 2010-04-05  Bruno Haible  <bruno@clisp.org>
16
17         sys_socket: Avoid #define replacements in C++ mode.
18         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
19         warning to the function if possible, rather than #defining the symbol
20         to a dysfunctional alias.
21
22 2010-04-05  Bruno Haible  <bruno@clisp.org>
23
24         fseeko: Fix C++ test error on mingw.
25         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
26         gl_FUNC_FSEEKO.
27         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
28         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
29         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
30         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
31
32 2010-04-05  Bruno Haible  <bruno@clisp.org>
33
34         duplocale: Improve test output.
35         * tests/test-duplocale.c (main): Print reason for skipped test.
36
37 2010-04-05  Bruno Haible  <bruno@clisp.org>
38
39         Assume rmdir exists.
40         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
41         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
42
43 2010-04-05  Bruno Haible  <bruno@clisp.org>
44
45         Fix link error on Solaris 8 with cc.
46         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
47
48 2010-04-05  Bruno Haible  <bruno@clisp.org>
49
50         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
51         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
52
53 2010-04-05  Bruno Haible  <bruno@clisp.org>
54
55         vasprintf: Update documentation.
56         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
57
58 2010-04-05  Bruno Haible  <bruno@clisp.org>
59
60         ptsname: Improve test.
61         * tests/test-ptsname.c (main): Also try the various master names of BSD
62         systems.
63
64 2010-04-05  Bruno Haible  <bruno@clisp.org>
65
66         memchr: Avoid a possible C++ test error.
67         * lib/string.in.h (memchr): Provide declaration if function is missing.
68         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
69         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
70         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
71         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
72
73 2010-04-05  Bruno Haible  <bruno@clisp.org>
74
75         strtok_r: Improve idiom.
76         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
77         AC_LIBOBJ is used.
78
79 2010-04-05  Bruno Haible  <bruno@clisp.org>
80
81         strdup: Improve idiom.
82         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
83         AC_LIBOBJ is used.
84         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
85         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
86         when AC_LIBOBJ is used.
87
88 2010-04-05  Bruno Haible  <bruno@clisp.org>
89
90         mbsinit, mbrtowc, wcrtomb: Improve idioms.
91         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
92         don't set REPLACE_MBSINIT to 1.
93         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
94         don't set REPLACE_MBRTOWC to 1.
95         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
96         exist, don't set REPLACE_MBSRTOWCS to 1.
97         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
98         exist, don't set REPLACE_MBSNRTOWCS to 1.
99         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
100         don't set REPLACE_WCRTOMB to 1.
101         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
102         exist, don't set REPLACE_WCSRTOMBS to 1.
103         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
104         exist, don't set REPLACE_WCSNRTOMBS to 1.
105
106 2010-04-05  Bruno Haible  <bruno@clisp.org>
107
108         ldexpl: Improve idiom.
109         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
110         make sure to set HAVE_DECL_LDEXPL to 0.
111
112 2010-04-05  Jim Meyering  <meyering@redhat.com>
113
114         xstrtol-tests: convert to use init.sh
115         * modules/xstrtol-tests (Files): Add tests/init.sh.
116         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
117         Use Exit, not exit.
118         Remove uses of $EXEEXT and "./" to run a program in the current dir.
119
120         atexit-tests: convert to use init.sh
121         * modules/atexit-tests (Files): Add tests/init.sh.
122         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
123         Use Exit, not exit.
124         Remove uses of $EXEEXT and "./" to run a program in the current dir.
125
126         init.sh: fix typo
127         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
128
129         init.sh: make it easier for a test script to write to the tty, ...
130         when using automake's parallel-tests mode.
131         * tests/init.sh (stderr_fileno_): Define overridable variable.
132         (warn_): New function, to use it.
133         (fail_, skip_, framework_failure_): Use warn_.
134
135 2010-04-04  Bruno Haible  <bruno@clisp.org>
136
137         btowc: Avoid warning.
138         * lib/btowc.c: Include <stdlib.h>.
139         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
140
141 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
142             Bruno Haible  <bruno@clisp.org>
143
144         wchar: Port to NetBSD 1.5.
145         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
146         * lib/wctype.in.h (WEOF): Likewise.
147
148 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
149             Bruno Haible  <bruno@clisp.org>
150
151         Port extended stdio to NetBSD 1.5.
152         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
153         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
154         older.
155
156 2010-04-04  Bruno Haible  <bruno@clisp.org>
157
158         string: Remove unused substitution.
159         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
160         HAVE_DECL_STRERROR.
161         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
162
163 2010-04-04  Bruno Haible  <bruno@clisp.org>
164
165         strtod: Avoid a possible C++ test error.
166         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
167         set REPLACE_STRTOD.
168
169 2010-04-04  Bruno Haible  <bruno@clisp.org>
170
171         strerror: Update documentation.
172         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
173
174 2010-04-04  Bruno Haible  <bruno@clisp.org>
175
176         stdio: Fix some C++ test errors on Solaris 8 with GCC.
177         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
178         _GL_CXXALIAS_SYS_CAST.
179
180 2010-04-04  Bruno Haible  <bruno@clisp.org>
181
182         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
183         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
184         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
185         REPLACE_FREXPL to 1.
186         * doc/posix-functions/frexpl.texi: Update documentation.
187
188 2010-04-04  Bruno Haible  <bruno@clisp.org>
189
190         math: Fix some C++ test errors on Solaris 8 and Cygwin.
191         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
192
193 2010-04-04  Bruno Haible  <bruno@clisp.org>
194
195         Implement nanosleep for native Windows.
196         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
197
198 2010-04-04  Bruno Haible  <bruno@clisp.org>
199
200         math: Fix some C++ test errors on Solaris 8.
201         * lib/math.in.h (truncf, trunc): Use simpler idiom.
202
203 2010-04-04  Bruno Haible  <bruno@clisp.org>
204
205         math: Fix some C++ test errors on Cygwin.
206         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
207         truncl): Provide declaration if the system does not have it.
208         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
209         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
210         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
211         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
212         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
213         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
214         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
215         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
216         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
217         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
218         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
219         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
220         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
221         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
222         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
223         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
224         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
225         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
226         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
227         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
228         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
229         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
230
231 2010-04-04  Bruno Haible  <bruno@clisp.org>
232
233         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
234         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
235         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
236         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
237         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
238         * m4/isinf.m4 (gl_ISINF): Likewise.
239         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
240
241 2010-04-04  Bruno Haible  <bruno@clisp.org>
242
243         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
244         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
245
246 2010-04-04  Bruno Haible  <bruno@clisp.org>
247
248         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
249         * modules/tmpfile (configure.ac): Update.
250
251         tmpfile: Fix C++ test error on mingw.
252         * lib/stdio.in.h (tmpfile): New declaration.
253         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
254         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
255         * modules/tmpfile (Depends-on): Add stdio.
256         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
257         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
258         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
259         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
260         REPLACE_TMPFILE.
261         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
262
263 2010-04-04  Bruno Haible  <bruno@clisp.org>
264
265         ioctl: Fix C++ test error on mingw.
266         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
267         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
268         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
269
270 2010-04-03  Bruno Haible  <bruno@clisp.org>
271
272         wcwidth: Fix C++ test error on mingw.
273         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
274         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
275         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
276
277 2010-04-03  Bruno Haible  <bruno@clisp.org>
278
279         nanosleep: Fix C++ test error on mingw.
280         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
281         * lib/time.in.h (nanosleep): Use modern idiom.
282         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
283         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
284         REPLACE_NANOSLEEP to 1.
285         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
286         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
287
288 2010-04-03  Bruno Haible  <bruno@clisp.org>
289
290         strptime: Fix C++ test error on mingw.
291         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
292         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
293         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
294         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
295         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
296         not REPLACE_STRPTIME.
297         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
298         REPLACE_STRPTIME.
299
300 2010-04-03  Bruno Haible  <bruno@clisp.org>
301
302         timegm: Fix C++ test error on mingw.
303         * lib/time.in.h (timegm): Use modern idiom.
304         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
305         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
306         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
307         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
308
309 2010-04-03  Bruno Haible  <bruno@clisp.org>
310
311         timegm: Assume declaration if function exists.
312         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
313         if it exists. Don't clobber ac_cv_func_timegm.
314
315 2010-04-03  Bruno Haible  <bruno@clisp.org>
316
317         time_r: Fix C++ test error on mingw.
318         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
319         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
320         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
321         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
322         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
323
324 2010-04-03  Bruno Haible  <bruno@clisp.org>
325
326         time_r: Minor updates.
327         * modules/time_r (Description): Mention the provided functions.
328         * lib/time_r.c: Don't include <string.h>.
329         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
330         * doc/posix-functions/localtime_r.texi: Likewise.
331
332 2010-04-03  Bruno Haible  <bruno@clisp.org>
333
334         time: Fix regression introduced on 2010-03-08.
335         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
336         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
337
338 2010-04-03  Jim Meyering  <meyering@redhat.com>
339
340         maint.mk: don't silently disable project-specific syntax-check rules
341         * top/maint.mk (_prohibit_regexp): Define, to help people realize
342         that they need to convert their project-specific syntax-check rules
343         to use the new _sc_search_regexp.
344
345 2010-04-03  Bruno Haible  <bruno@clisp.org>
346
347         fchdir: Fix regression introduced on 2010-03-08.
348         * lib/unistd.in.h (fchdir): Fix declaration.
349         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
350         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
351         REPLACE_FCHDIR.
352         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
353         REPLACE_FCHDIR.
354
355 2010-04-03  Bruno Haible  <bruno@clisp.org>
356
357         getpagesize: Fix C++ test error on mingw.
358         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
359         system does not declare the function.
360         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
361         declared.
362         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
363         HAVE_DECL_GETPAGESIZE.
364         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
365
366 2010-04-03  Bruno Haible  <bruno@clisp.org>
367
368         stdio: Make C++ tests work on mingw.
369         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
370         does not declare the function.
371
372 2010-04-03  Bruno Haible  <bruno@clisp.org>
373
374         ftello: Fix C++ test error on mingw.
375         * lib/stdio.in.h (ftello): Use modern idiom.
376         * lib/ftello.c (ftello): Renamed from rpl_ftello.
377         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
378         is missing and that it needs to be replaced.
379         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
380         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
381         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
382
383 2010-04-03  Bruno Haible  <bruno@clisp.org>
384
385         fseeko: Fix C++ test error on mingw.
386         * lib/stdio.in.h (fseeko): Use modern idiom.
387         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
388         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
389         is missing and that it needs to be replaced.
390         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
391         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
392         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
393
394 2010-04-03  Bruno Haible  <bruno@clisp.org>
395
396         mkstemp: Fix C++ test error on mingw.
397         * lib/stdlib.in.h (mkstemp): Use modern idiom.
398         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
399         function is missing and that it needs to be replaced.
400         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
401         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
402
403 2010-04-03  Bruno Haible  <bruno@clisp.org>
404
405         stpncpy: Fix C++ test error on mingw.
406         * lib/string.in.h (stpncpy): Use modern idiom.
407         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
408         function is missing and that it needs to be replaced.
409         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
410         REPLACE_STPNCPY.
411         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
412
413 2010-04-03  Bruno Haible  <bruno@clisp.org>
414
415         sys_stat: Fix C++ test error on mingw.
416         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
417         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
418
419 2010-04-03  Bruno Haible  <bruno@clisp.org>
420
421         pty: Update doc.
422         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
423
424 2010-04-03  Bruno Haible  <bruno@clisp.org>
425
426         unistd: Fix C++ test error on mingw.
427         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
428
429 2010-04-03  Bruno Haible  <bruno@clisp.org>
430
431         Update doc regarding mingw.
432         * doc/glibc-functions/openpty.texi: Update regarding mingw.
433         * doc/glibc-functions/login_tty.texi: Likewise.
434         * doc/glibc-functions/forkpty.texi: Likewise.
435
436 2010-04-03  Bruno Haible  <bruno@clisp.org>
437
438         stdlib: Avoid compilation failure of c-strtold on mingw.
439         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
440
441 2010-04-03  Bruno Haible  <bruno@clisp.org>
442
443         locale: Make C++ tests work on Cygwin and mingw.
444         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
445         cannot provide the function.
446         Reported by Simon Josefsson.
447
448 2010-04-03  Bruno Haible  <bruno@clisp.org>
449
450         localename: Port to MacOS X 10.6.
451         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
452         memory layout of the locales in MacOS X 10.6 as well.
453         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
454
455 2010-04-02  Bruno Haible  <bruno@clisp.org>
456
457         gnulib-tool: Ensure that long-running tests are executed last.
458         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
459         running tests after the one for the other tests.
460
461 2010-04-02  Bruno Haible  <bruno@clisp.org>
462
463         gnulib-tool: Ensure the tests in the main directory are executed first.
464         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
465         start with the current directory.
466
467 2010-04-02  Bruno Haible  <bruno@clisp.org>
468
469         Tests for module 'havelib', moved here from GNU gettext.
470         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
471         modifications.
472         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
473         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
474         with modifications.
475         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
476         modifications.
477         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
478         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
479         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
480         with modifications.
481         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
482         with modifications.
483         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
484         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
485         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
486         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
487         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
488         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
489         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
490         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
491         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
492         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
493         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
494         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
495         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
496         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
497         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
498         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
499         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
500         with modifications.
501         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
502         with modifications.
503         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
504         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
505         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
506         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
507         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
508         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
509         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
510         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
511         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
512         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
513         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
514         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
515         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
516         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
517         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
518         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
519         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
520         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
521         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
522         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
523         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
524         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
525         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
526         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
527         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
528         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
529         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
530         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
531         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
532         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
533         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
534         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
535         * tests/havelib/rpathx/rpathx.c: New file, from
536         gettext/autoconf-lib-link.
537         * tests/havelib/rpathx/Makefile.am: New file, from
538         gettext/autoconf-lib-link.
539         * tests/havelib/rpathx/configure.ac: New file, from
540         gettext/autoconf-lib-link with modifications.
541         * tests/havelib/rpathy/rpathy.c: New file, from
542         gettext/autoconf-lib-link.
543         * tests/havelib/rpathy/Makefile.am: New file, from
544         gettext/autoconf-lib-link.
545         * tests/havelib/rpathy/configure.ac: New file, from
546         gettext/autoconf-lib-link with modifications.
547         * tests/havelib/rpathz/rpathz.c: New file, from
548         gettext/autoconf-lib-link.
549         * tests/havelib/rpathz/Makefile.am: New file, from
550         gettext/autoconf-lib-link.
551         * tests/havelib/rpathz/configure.ac: New file, from
552         gettext/autoconf-lib-link with modifications.
553         * tests/havelib/rpathlx/usex.c: New file, from
554         gettext/autoconf-lib-link.
555         * tests/havelib/rpathlx/Makefile.am: New file, from
556         gettext/autoconf-lib-link.
557         * tests/havelib/rpathlx/configure.ac: New file, from
558         gettext/autoconf-lib-link with modifications.
559         * tests/havelib/rpathly/usey.c: New file, from
560         gettext/autoconf-lib-link.
561         * tests/havelib/rpathly/Makefile.am: New file, from
562         gettext/autoconf-lib-link.
563         * tests/havelib/rpathly/configure.ac: New file, from
564         gettext/autoconf-lib-link with modifications.
565         * tests/havelib/rpathlz/usez.c: New file, from
566         gettext/autoconf-lib-link.
567         * tests/havelib/rpathlz/Makefile.am: New file, from
568         gettext/autoconf-lib-link.
569         * tests/havelib/rpathlz/configure.ac: New file, from
570         gettext/autoconf-lib-link with modifications.
571         * tests/havelib/rpathlyx/usey.c: New file, from
572         gettext/autoconf-lib-link.
573         * tests/havelib/rpathlyx/Makefile.am: New file, from
574         gettext/autoconf-lib-link.
575         * tests/havelib/rpathlyx/configure.ac: New file, from
576         gettext/autoconf-lib-link with modifications.
577         * tests/havelib/rpathlzyx/usez.c: New file, from
578         gettext/autoconf-lib-link.
579         * tests/havelib/rpathlzyx/Makefile.am: New file, from
580         gettext/autoconf-lib-link.
581         * tests/havelib/rpathlzyx/configure.ac: New file, from
582         gettext/autoconf-lib-link with modifications.
583         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
584         with modifications.
585
586 2010-04-02  Bruno Haible  <bruno@clisp.org>
587
588         gnulib-tool: Create distributed built sources also for the tests.
589         * gnulib-tool (func_create_testdir): Also generate distributed built
590         sources in the tests directory.
591
592 2010-04-02  Bruno Haible  <bruno@clisp.org>
593
594         gnulib-tool: Obey user's environment variables.
595         * gnulib-tool (func_create_testdir): When creating built sources,
596         respect the environment variables for autoconf, automake, etc. given by
597         the user.
598
599 2010-04-02  Bruno Haible  <bruno@clisp.org>
600
601         gnulib-tool: Provide the value of --m4-base to modules.
602         * gnulib-tool (func_import, func_create_testdir): Emit a definition
603         of gl_m4_base.
604
605 2010-04-02  Eric Blake  <eblake@redhat.com>
606
607         maint.mk: fix some fallout
608         * NEWS: Document the incompatible change, and its effect on cfg.mk.
609         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
610
611 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
612
613         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
614         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
615         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
616         (sc_cast_of_x_alloc_return_value): Likewise.
617         (sc_cast_of_alloca_return_value): Likewise.
618         (sc_space_tab): Likewise.
619         (sc_prohibit_atoi_atof): Likewise.
620         (sc_prohibit_magic_number_exit): Likewise.
621         (sc_error_exit_success): Likewise.
622         (sc_file_system): Likewise.
623         (sc_prohibit_have_config_h): Likewise.
624         (sc_require_config_h): Likewise.
625         (sc_prohibit_HAVE_MBRTOWC): Likewise.
626         (sc_obsolete_symbols): Likewise.
627         (sc_changelog): Likewise.
628         (sc_program_name): Likewise.
629         (sc_the_the): Likewise.
630         (sc_trailing_blank): Likewise.
631         (sc_two_space_separator_in_usage): Likewise.
632         (sc_useless_cpp_parens): Likewise.
633         (sc_GPL_version): Likewise.
634         (sc_GFDL_version): Likewise.
635         (sc_texinfo_acronym): Likewise.
636         (sc_prohibit_cvs_keyword): Likewise.
637         (sc_prohibit_stat_st_blocks): Likewise.
638         (sc_prohibit_S_IS_definition): Likewise.
639         (sc_redundant_const): Likewise.
640         (sc_makefile_TAB_only_indentation): Likewise.
641         (sc_m4_quote_check): Likewise.
642         (sc_makefile_path_separator_check): Likewise.
643         (sc_copyright_check): Likewise.
644         (sc_Wundef_boolean): Likewise.
645         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
646
647         maint.mk: match 0 or more whitespace-before-function-call '('
648         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
649         that have zero or two-and-more spaces between the function name
650         and the open parenthesis.
651         (sc_error_message_warn_fatal): Likewise.
652         (sc_error_message_uppercase): Likewise.
653         (sc_error_message_period): Likewise.
654
655 2010-03-31  Eric Blake  <eblake@redhat.com>
656
657         maint.mk: check for [ as well as test
658         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
659         Based on a libvirt report by Matthias Bolte.
660
661         gnumakefile: don't squelch _version output
662         * top/GNUmakefile (_version): Create one-shot dependency rather
663         than using $(shell) when version must be regenerated.
664         (_autoreconf): Run verbosely, by default.
665
666         sys_time: avoid compiler warnings
667         * lib/sys_time.in.h (includes): Ensure gcc pragma is
668         unconditional, fixing regression from 2010-03-29.
669         Reported by Simon Josefsson.
670
671 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
672
673         maint.mk: s/_header_without_use/_sc_header_without_use/
674         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
675         (sc_prohibit_assert_without_use): Use the new name.
676         (sc_prohibit_close_stream_without_use): Likewise.
677         (sc_prohibit_getopt_without_use): Likewise.
678         (sc_prohibit_quotearg_without_use): Likewise.
679         (sc_prohibit_quote_without_use): Likewise.
680         (sc_prohibit_long_options_without_use): Likewise.
681         (sc_prohibit_inttostr_without_use): Likewise.
682         (sc_prohibit_ignore_value_without_use): Likewise.
683         (sc_prohibit_error_without_use): Likewise.
684         (sc_prohibit_xalloc_without_use): Likewise.
685         (sc_prohibit_hash_without_use): Likewise.
686         (sc_prohibit_hash_pjw_without_use): Likewise.
687         (sc_prohibit_safe_read_without_use): Likewise.
688         (sc_prohibit_argmatch_without_use): Likewise.
689         (sc_prohibit_canonicalize_without_use): Likewise.
690         (sc_prohibit_root_dev_ino_without_use): Likewise.
691         (sc_prohibit_openat_without_use): Likewise.
692         (sc_prohibit_c_ctype_without_use): Likewise.
693         (sc_prohibit_signal_without_use): Likewise.
694         (sc_prohibit_intprops_without_use): Likewise.
695
696 2010-03-30  Eric Blake  <eblake@redhat.com>
697
698         maint: improve module indicators
699         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
700         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
701         columns, and avoid extra macro expansion.
702
703         fdopendir: work around FreeBSD bug
704         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
705         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
706         * modules/dirent (Makefile.am): Substitute it.
707         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
708         declaration.
709         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
710         fix.
711         Reported by Christian Weisgerber <naddy@mips.inka.de>.
712
713 2010-03-29  Bruno Haible  <bruno@clisp.org>
714
715         Emit #pragma system_header after the inclusion guard, not before.
716         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
717         guard that spans the entire file, not before. This enables an
718         optimization in GCC's preprocessor.
719         * lib/ctype.in.h: Likewise.
720         * lib/dirent.in.h: Likewise.
721         * lib/errno.in.h: Likewise.
722         * lib/float.in.h: Likewise.
723         * lib/getopt.in.h: Likewise.
724         * lib/iconv.in.h: Likewise.
725         * lib/langinfo.in.h: Likewise.
726         * lib/locale.in.h: Likewise.
727         * lib/math.in.h: Likewise.
728         * lib/netdb.in.h: Likewise.
729         * lib/netinet_in.in.h: Likewise.
730         * lib/pty.in.h: Likewise.
731         * lib/sched.in.h: Likewise.
732         * lib/se-selinux.in.h: Likewise.
733         * lib/search.in.h: Likewise.
734         * lib/spawn.in.h: Likewise.
735         * lib/stdarg.in.h: Likewise.
736         * lib/stdint.in.h: Likewise.
737         * lib/string.in.h: Likewise.
738         * lib/strings.in.h: Likewise.
739         * lib/sys_file.in.h: Likewise.
740         * lib/sys_ioctl.in.h: Likewise.
741         * lib/sys_time.in.h: Likewise.
742         * lib/sys_times.in.h: Likewise.
743         * lib/sys_utsname.in.h: Likewise.
744         * lib/sys_wait.in.h: Likewise.
745         * lib/sysexits.in.h: Likewise.
746         * lib/wctype.in.h: Likewise.
747
748 2010-03-28  James Youngman  <jay@gnu.org>
749
750         save-cwd: don't leak a file descriptor when the caller execs.
751         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
752         saved file descriptor.
753         * modules/save-cwd (Depends-on): Depend on cloexec.
754
755 2010-03-29  Bruno Haible  <bruno@clisp.org>
756
757         Remove vestiges of fts-lgpl module.
758         * lib/fts_.h: Assume GNULIB_FTS is 1.
759         * lib/fts.c: Likewise.
760         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
761
762 2010-03-28  Bruno Haible  <bruno@clisp.org>
763
764         Fix definition of tests witness macro.
765         * gnulib-tool (func_import): Fix definition of witness macro.
766
767 2010-03-28  Bruno Haible  <bruno@clisp.org>
768
769         Fix ioctl's protoype on glibc systems.
770         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
771         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
772         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
773         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
774         signature. If not, arrange to replace the ioctl function.
775         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
776         REPLACE_IOCTL.
777         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
778         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
779         Reported by Ludovic Courtès <ludo@gnu.org>.
780
781 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
782
783         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
784         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
785         made it so grep -r --include=GLOB* ... did not work.
786
787 2010-03-26  Jim Meyering  <meyering@redhat.com>
788             Eric Blake  <eblake@redhat.com>
789
790         maint.mk: prohibit use of test's -o and -a operators
791         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
792
793 2010-03-28  Bruno Haible  <bruno@clisp.org>
794
795         Remove unused GNULIB_XYZ macro definitions.
796         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
797         invocation.
798
799 2010-03-28  Bruno Haible  <bruno@clisp.org>
800
801         Mark privileged tests modules.
802         * modules/idpriv-drop-tests (Status): New section.
803         * modules/idpriv-droptemp-tests (Status): New section.
804
805 2010-03-28  Bruno Haible  <bruno@clisp.org>
806
807         Split C++ tests into separate tests modules.
808         * modules/dirent-c++-tests: New file, extracted from
809         modules/dirent-tests.
810         * modules/dirent-tests: Depend on it.
811         * modules/fcntl-h-c++-tests: New file, extracted from
812         modules/fcntl-h-tests.
813         * modules/fcntl-h-tests: Depend on it.
814         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
815         * modules/glob-tests: Depend on it.
816         * modules/iconv-h-c++-tests: New file, extracted from
817         modules/iconv-h-tests.
818         * modules/iconv-h-tests: Depend on it.
819         * modules/langinfo-c++-tests: New file, extracted from
820         modules/langinfo-tests.
821         * modules/langinfo-tests: Depend on it.
822         * modules/locale-c++-tests: New file, extracted from
823         modules/locale-tests.
824         * modules/locale-tests: Depend on it.
825         * modules/math-c++-tests: New file, extracted from modules/math-tests.
826         * modules/math-tests: Depend on it.
827         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
828         * modules/pty-tests: Depend on it.
829         * modules/search-c++-tests: New file, extracted from
830         modules/search-tests.
831         * modules/search-tests: Depend on it.
832         * modules/signal-c++-tests: New file, extracted from
833         modules/signal-tests.
834         * modules/signal-tests: Depend on it.
835         * modules/spawn-c++-tests: New file, extracted from
836         modules/spawn-tests.
837         * modules/spawn-tests: Depend on it.
838         * modules/stdio-c++-tests: New file, extracted from
839         modules/stdio-tests.
840         * modules/stdio-tests: Depend on it.
841         * modules/stdlib-c++-tests: New file, extracted from
842         modules/stdlib-tests.
843         * modules/stdlib-tests: Depend on it.
844         * modules/string-c++-tests: New file, extracted from
845         modules/string-tests.
846         * modules/string-tests: Depend on it.
847         * modules/sys_ioctl-c++-tests: New file, extracted from
848         modules/sys_ioctl-tests.
849         * modules/sys_ioctl-tests: Depend on it.
850         * modules/sys_select-c++-tests: New file, extracted from
851         modules/sys_select-tests.
852         * modules/sys_select-tests: Depend on it.
853         * modules/sys_socket-c++-tests: New file, extracted from
854         modules/sys_socket-tests.
855         * modules/sys_socket-tests: Depend on it.
856         * modules/sys_stat-c++-tests: New file, extracted from
857         modules/sys_stat-tests.
858         * modules/sys_stat-tests: Depend on it.
859         * modules/sys_time-c++-tests: New file, extracted from
860         modules/sys_time-tests.
861         * modules/sys_time-tests: Depend on it.
862         * modules/time-c++-tests: New file, extracted from modules/time-tests.
863         * modules/time-tests: Depend on it.
864         * modules/unistd-c++-tests: New file, extracted from
865         modules/unistd-tests.
866         * modules/unistd-tests: Depend on it.
867         * modules/wchar-c++-tests: New file, extracted from
868         modules/wchar-tests.
869         * modules/wchar-tests: Depend on it.
870         * modules/wctype-c++-tests: New file, extracted from
871         modules/wctype-tests.
872         * modules/wctype-tests: Depend on it.
873         Reported by Simon Josefsson.
874
875 2010-03-28  Bruno Haible  <bruno@clisp.org>
876
877         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
878         * gnulib-tool (func_exists_module): New function, extracted from
879         func_verify_module.
880         (func_verify_module): Use it.
881         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
882         'foo' only if 'foo' exists.
883         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
884         module.
885
886 2010-03-28  Bruno Haible  <bruno@clisp.org>
887
888         gnulib-tool: Add support for special categories of tests.
889         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
890         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
891         (func_usage): Document them.
892         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
893         inc_unportable_tests, inc_all_tests): New variables.
894         (func_acceptable): Consider these variables.
895         (func_modules_transitive_closure): Make it work when the 'Status' field
896         consists of multiple words.
897         (func_import): Store and restore the values of inc_cxx_tests,
898         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
899         inc_all_tests in gnulib-comp.m4.
900         (func_create_testdir): Set inc_all_tests to true.
901         * doc/gnulib.texi (Extra tests modules): New section.
902         Suggested by Jim Meyering.
903
904 2010-03-28  Bruno Haible  <bruno@clisp.org>
905
906         ansi-c++-opt: Allow turning off the C++ build by default.
907         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
908         gl_CXX_CHOICE_DEFAULT_NO is defined.
909         Requested by Eric Blake.
910
911 2010-03-28  Bruno Haible  <bruno@clisp.org>
912
913         unistd: Avoid #define replacements in C++ mode.
914         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
915         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
916         setsockopt, shutdown, select): In C++, attach a warning to the function
917         if possible, rather than #defining the symbol to a dysfunctional alias.
918         Reported by John W. Eaton <jwe@gnu.org>.
919
920 2010-03-28  Bruno Haible  <bruno@clisp.org>
921
922         Fix link errors on mingw.
923         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
924         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
925         $(LIBSOCKET).
926         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
927         $(LIBSOCKET).
928
929 2010-03-28  Bruno Haible  <bruno@clisp.org>
930             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
931
932         lib-ignore: Determine different options for different compilers.
933         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
934         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
935         Add comments.
936         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
937         * NEWS: Mention the change.
938
939 2010-03-27  Bruno Haible  <bruno@clisp.org>
940
941         Remove unused GNULIB_XYZ macro definitions.
942         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
943         * modules/fseek (configure.ac): Likewise.
944         * modules/ioctl (configure.ac): Likewise.
945         * modules/open (configure.ac): Likewise.
946         * modules/stdlib-safer (configure.ac): Likewise.
947
948 2010-03-27  Bruno Haible  <bruno@clisp.org>
949
950         Add a remark about certain modules.
951         * modules/malloc (Comment): New section.
952         * modules/realloc (Comment): Likewise.
953         * modules/sigpipe (Comment): Likewise.
954
955 2010-03-27  Bruno Haible  <bruno@clisp.org>
956
957         Resolve conflict between the two kinds of module indicators.
958         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
959         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
960         * modules/canonicalize (configure.ac): Invoke
961         gl_MODULE_INDICATOR_FOR_TESTS.
962         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
963         GNULIB_XYZ.
964         * tests/test-dirent-c++.cc: Likewise.
965         * tests/test-dirent-safer.c: Likewise.
966         * tests/test-dup2.c: Likewise.
967         * tests/test-fchdir.c: Likewise.
968         * tests/test-fcntl-h-c++.cc: Likewise.
969         * tests/test-getopt.c: Likewise.
970         * tests/test-getopt.h: Likewise.
971         * tests/test-langinfo-c++.cc: Likewise.
972         * tests/test-locale-c++.cc: Likewise.
973         * tests/test-math-c++.cc: Likewise.
974         * tests/test-pty-c++.cc: Likewise.
975         * tests/test-search-c++.cc: Likewise.
976         * tests/test-signal-c++.cc: Likewise.
977         * tests/test-spawn-c++.cc: Likewise.
978         * tests/test-stdio-c++.cc: Likewise.
979         * tests/test-stdlib-c++.cc: Likewise.
980         * tests/test-string-c++.cc: Likewise.
981         * tests/test-sys_ioctl-c++.cc: Likewise.
982         * tests/test-sys_select-c++.cc: Likewise.
983         * tests/test-sys_socket-c++.cc: Likewise.
984         * tests/test-sys_stat-c++.cc: Likewise.
985         * tests/test-sys_time-c++.cc: Likewise.
986         * tests/test-time-c++.cc: Likewise.
987         * tests/test-unistd-c++.cc: Likewise.
988         * tests/test-wchar-c++.cc: Likewise.
989         * tests/uninorm/test-u8-nfc.c: Likewise.
990         * tests/uninorm/test-u8-nfd.c: Likewise.
991         * tests/uninorm/test-u8-nfkc.c: Likewise.
992         * tests/uninorm/test-u8-nfkd.c: Likewise.
993         * tests/uninorm/test-u16-nfc.c: Likewise.
994         * tests/uninorm/test-u16-nfd.c: Likewise.
995         * tests/uninorm/test-u16-nfkc.c: Likewise.
996         * tests/uninorm/test-u16-nfkd.c: Likewise.
997         * tests/uninorm/test-u32-nfc.c: Likewise.
998         * tests/uninorm/test-u32-nfc-big.c: Likewise.
999         * tests/uninorm/test-u32-nfd.c: Likewise.
1000         * tests/uninorm/test-u32-nfd-big.c: Likewise.
1001         * tests/uninorm/test-u32-nfkc.c: Likewise.
1002         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
1003         * tests/uninorm/test-u32-nfkd.c: Likewise.
1004         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
1005         * tests/uninorm/test-u32-normalize-big.c: Likewise.
1006
1007 2010-03-27  Bruno Haible  <bruno@clisp.org>
1008
1009         Distinguish two kinds of module indicators.
1010         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
1011         gl_MODULE_INDICATOR.
1012         (gl_MODULE_INDICATOR): New macro.
1013         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
1014         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
1015         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
1016         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
1017         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
1018         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
1019         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
1020         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
1021         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
1022         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
1023         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
1024         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
1025         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
1026         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
1027         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
1028         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
1029         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
1030         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
1031         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
1032         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
1033         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
1034         * modules/cloexec (configure.ac): Likewise.
1035         * modules/getopt-gnu (configure.ac): Likewise.
1036         * modules/uninorm/u8-normalize (configure.ac): Likewise.
1037         * modules/uninorm/u16-normalize (configure.ac): Likewise.
1038         * modules/uninorm/u32-normalize (configure.ac): Likewise.
1039         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
1040
1041 2010-03-27  Bruno Haible  <bruno@clisp.org>
1042
1043         New module description field 'Comment'.
1044         * gnulib-tool: New option --extract-comment.
1045         (func_usage): Document it.
1046         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
1047         (func_get_comment): New function.
1048         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
1049
1050 2010-03-27  Bruno Haible  <bruno@clisp.org>
1051
1052         Addendum to 2010-02-07 commit.
1053         * gnulib-tool (func_usage): Document --extract-applicability option.
1054
1055 2010-03-27  Bruno Haible  <bruno@clisp.org>
1056
1057         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
1058         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
1059         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
1060         rather than link errors.
1061
1062 2010-03-27  Bruno Haible  <bruno@clisp.org>
1063
1064         Avoid side effects from tests-related modules on the compilation of lib.
1065         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
1066         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
1067         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
1068         parameter. Emit into AM_CPPFLAGS a definition of the designated C
1069         macro.
1070         (func_import): Define a witness macro. Assign it a value that depends
1071         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
1072         tests-related modules.
1073         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
1074         Reported by Jim Meyering.
1075
1076 2010-03-27  Bruno Haible  <bruno@clisp.org>
1077
1078         Factorize common .m4 code.
1079         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
1080         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
1081         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
1082         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
1083         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
1084         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
1085         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
1086         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
1087         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
1088         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
1089         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
1090         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
1091         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
1092         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
1093         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
1094         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
1095         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
1096         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
1097         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
1098         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
1099         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
1100         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
1101         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
1102         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
1103         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
1104         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
1105         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
1106         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
1107         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
1108         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
1109         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
1110         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
1111
1112 2010-03-27  Bruno Haible  <bruno@clisp.org>
1113
1114         Fix a compilation error on Cygwin with g++ >= 4.3.
1115         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
1116         if it is undefined or if we alias it to chmod.
1117         (lstat): Don't warn about the use of this function if it is undefined
1118         or if we alias it to stat.
1119         Reported by Simon Josefsson.
1120
1121 2010-03-27  Bruno Haible  <bruno@clisp.org>
1122
1123         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
1124         * modules/getlogin (configure.ac): Update.
1125
1126         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
1127         * modules/getlogin_r (configure.ac): Update.
1128
1129         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
1130         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
1131         * modules/inet_ntop (configure.ac): Update.
1132
1133         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
1134         * modules/inet_pton (configure.ac): Update.
1135
1136         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
1137         * modules/mbslen (configure.ac): Update.
1138
1139         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
1140         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
1141         * modules/forkpty (configure.ac): Update.
1142         * modules/openpty (configure.ac): Update.
1143
1144 2010-03-26  Simon Josefsson  <simon@josefsson.org>
1145
1146         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
1147         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
1148
1149 2010-03-25  Eric Blake  <eblake@redhat.com>
1150
1151         maint: use pragma consistently across replacement headers
1152         * lib/ctype.in.h (system_header): Hoist for consistent placement.
1153         * lib/dirent.in.h (system_header): Likewise.
1154         * lib/errno.in.h (system_header): Likewise.
1155         * lib/float.in.h (system_header): Likewise.
1156         * lib/getopt.in.h (system_header): Likewise.
1157         * lib/iconv.in.h (system_header): Likewise.
1158         * lib/inttypes.in.h (system_header): Likewise.
1159         * lib/langinfo.in.h (system_header): Likewise.
1160         * lib/locale.in.h (system_header): Likewise.
1161         * lib/math.in.h (system_header): Likewise.
1162         * lib/netdb.in.h (system_header): Likewise.
1163         * lib/netinet_in.in.h (system_header): Likewise.
1164         * lib/pty.in.h (system_header): Likewise.
1165         * lib/sched.in.h (system_header): Likewise.
1166         * lib/se-selinux.in.h (system_header): Likewise.
1167         * lib/search.in.h (system_header): Likewise.
1168         * lib/spawn.in.h (system_header): Likewise.
1169         * lib/stdarg.in.h (system_header): Likewise.
1170         * lib/stdint.in.h (system_header): Likewise.
1171         * lib/string.in.h (system_header): Likewise.
1172         * lib/strings.in.h (system_header): Likewise.
1173         * lib/sys_file.in.h (system_header): Likewise.
1174         * lib/sys_ioctl.in.h (system_header): Likewise.
1175         * lib/sys_socket.in.h (system_header): Likewise.
1176         * lib/sys_times.in.h (system_header): Likewise.
1177         * lib/sys_utsname.in.h (system_header): Likewise.
1178         * lib/sys_wait.in.h (system_header): Likewise.
1179         * lib/sysexits.in.h (system_header): Likewise.
1180         * lib/unistd.in.h (system_header): Likewise.
1181         * lib/wctype.in.h (system_header): Likewise.
1182
1183         arpa/inet: fix mingw compilation warning
1184         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
1185         Reported by Matthew Bolte.
1186
1187 2010-03-25  Bruno Haible  <bruno@clisp.org>
1188
1189         Avoid collision between gnulib wrapper and libintl wrapper.
1190         * lib/printf.c (printf): Don't define if a printf wrapper is already
1191         defined in intl/printf.c.
1192         Reported by Michel Boaventura <michel@michelboaventura.com>.
1193
1194 2010-03-25  Bruno Haible  <bruno@clisp.org>
1195
1196         Use ANSI C.
1197         * lib/readutmp.h (getutent): Provide ANSI C prototype.
1198
1199 2010-03-25  Bruno Haible  <bruno@clisp.org>
1200
1201         Minor formatting changes.
1202         * lib/acosl.c: Insert space before function argument list.
1203         * lib/argz.c: Likewise.
1204         * lib/asinl.c: Likewise.
1205         * lib/expl.c: Likewise.
1206         * lib/gen-uni-tables.c: Likewise.
1207         * lib/gettext.h: Likewise.
1208         * lib/glthread/lock.h: Likewise.
1209         * lib/tanl.c: Likewise.
1210         * lib/uniname/uniname.c: Likewise.
1211         * tests/test-idpriv-drop.c: Likewise.
1212         * tests/test-idpriv-droptemp.c: Likewise.
1213         * tests/test-lock.c: Likewise.
1214         * tests/test-tls.c: Likewise.
1215         * lib/argp-help.c: Insert space before function-like macro argument
1216         list.
1217         * lib/memcmp.c: Likewise.
1218         * tests/test-base64.c: Likewise.
1219         * lib/localename.c: Insert space before sizeof's argument list.
1220         * lib/safe-alloc.h: Likewise.
1221         * lib/file-set.h: Insert space before macro argument list.
1222         * tests/test-argp.c: Likewise.
1223         * lib/argp-namefrob.h: Insert space before function parameter list.
1224         * lib/getaddrinfo.c: Likewise.
1225         * lib/netdb.in.h: Likewise.
1226         * lib/parse-duration.h: Likewise.
1227         * lib/parse-duration.c: Likewise.
1228         * lib/poll.c: Likewise.
1229         * lib/select.c: Likewise.
1230         * lib/trim.h: Likewise.
1231         * tests/test-usleep.c: Likewise.
1232         * lib/ldexpl.c: Insert space before function parameter list and before
1233         function argument list.
1234         * lib/logl.c: Likewise.
1235         * lib/sqrtl.c: Likewise.
1236         * lib/trim.c: Likewise.
1237         * lib/cosl.c: Use GNU style indentation. Insert space before function
1238         argument list.
1239         * lib/sinl.c: Likewise.
1240         * lib/tsearch.c: Insert space after 'for'.
1241         Reported by Jim Meyering.
1242
1243 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
1244
1245         * maint.mk (sc_Wundef_boolean): Check for the presence of the
1246         config header before grepping, as it's not present before
1247         autoreconf/configure are run.  Reported by Simon Josefsson.
1248
1249 2010-03-23  Bruno Haible  <bruno@clisp.org>
1250
1251         pt_chown: Make it work with automake < 1.11.
1252         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
1253         Reported by Simon Josefsson.
1254
1255 2010-03-23  Bruno Haible  <bruno@clisp.org>
1256
1257         pt_chown: Don't depend on GPLed modules.
1258         * lib/pt_chown.c: Don't include idpriv.h.
1259         (main): Don't drop privileges.
1260         * modules/pt_chown (Depends-on): Remove idpriv-drop.
1261         Reported by Simon Josefsson.
1262
1263 2010-03-24  Simon Josefsson  <simon@josefsson.org>
1264
1265         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
1266         suggestions from karl@freefriends.org (Karl Berry).
1267
1268 2010-03-22  Eric Blake  <eblake@redhat.com>
1269
1270         gethostname: further tweaks
1271         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
1272         are overriding gethostname.
1273         Suggested by Bruno Haible.
1274
1275 2010-03-21  Bruno Haible  <bruno@clisp.org>
1276
1277         Fix comments.
1278         * lib/forkpty.c (rpl_forkpty): Fix comment.
1279         * lib/openpty.c (rpl_openpty): Likewise.
1280         Reported by Eric Blake.
1281
1282 2010-03-22  Eric Blake  <eblake@redhat.com>
1283
1284         gethostname: fix build on mingw
1285         * lib/unistd.in.h (includes): Work around fact that mingw
1286         <winsock2.h> re-includes <unistd.h>, by avoiding any
1287         redeclarations if we are being included by <winsock2.h>.
1288         Reported by Matthias Bolte.
1289
1290 2010-03-21  Bruno Haible  <bruno@clisp.org>
1291
1292         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
1293         * lib/forkpty.c (forkpty): New replacement function, from glibc with
1294         modifications.
1295         * lib/pty.in.h (forkpty): Update declaration. Add comments.
1296         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
1297         provide the replacement.
1298         * modules/forkpty (Depends-on): Add openpty, login_tty.
1299         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
1300         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
1301         * doc/glibc-functions/forkpty.texi: More supported platforms.
1302         * config/srclist.txt: Add forkpty.c (commented).
1303
1304 2010-03-21  Bruno Haible  <bruno@clisp.org>
1305
1306         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
1307         (Makefile.am): Verify that PTY_LIB is defined.
1308
1309         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
1310
1311 2010-03-21  Bruno Haible  <bruno@clisp.org>
1312
1313         Tests for module 'login_tty'.
1314         * modules/login_tty-tests: New file.
1315         * tests/test-login_tty.c: New file.
1316
1317         New module 'login_tty'.
1318         * lib/login_tty.c: New file.
1319         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
1320         * modules/login_tty: New file.
1321         * doc/glibc-functions/login_tty.texi: Mention the new module.
1322
1323 2010-03-21  Bruno Haible  <bruno@clisp.org>
1324
1325         login_tty: Documentation.
1326         * doc/glibc-functions/login_tty.texi: New file.
1327         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
1328
1329 2010-03-21  Bruno Haible  <bruno@clisp.org>
1330
1331         pty: Consistent macro naming.
1332         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
1333         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
1334         * modules/pty (configure.ac): Update.
1335
1336 2010-03-21  Bruno Haible  <bruno@clisp.org>
1337
1338         Tests for openpty: Make stricter.
1339         * tests/test-openpty.c (main): Add test of canonical processing and
1340         erase.
1341         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
1342
1343         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
1344         * lib/openpty.c (openpty): New replacement function.
1345         * lib/pty.in.h: Include <termios.h>.
1346         (openpty): Update declaration. Add comments.
1347         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
1348         is not declared, arrange to provide the replacement. Check for _getpty
1349         and posix_openpt.
1350         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
1351         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
1352         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
1353         * modules/pty-tests (test_pty_c___LDADD): New variable.
1354         * doc/glibc-functions/openpty.texi: More supported platforms.
1355
1356 2010-03-21  Bruno Haible  <bruno@clisp.org>
1357
1358         setenv: Tweaks.
1359         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
1360         the test program.
1361         * doc/posix-functions/setenv.texi: Update platforms list.
1362
1363 2010-03-21  Bruno Haible  <bruno@clisp.org>
1364
1365         New module 'unlockpt'.
1366         * lib/unlockpt.c: New file, from glibc with modifications.
1367         * m4/unlockpt.m4: New file.
1368         * modules/unlockpt: New file.
1369         * lib/stdlib.in.h (unlockpt): New declaration.
1370         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
1371         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
1372         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
1373         HAVE_UNLOCKPT.
1374         * doc/posix-functions/unlockpt.texi: Mention the new module.
1375         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
1376         * config/srclist.txt: Add unlockpt.c (commented).
1377
1378 2010-03-21  Jim Meyering  <meyering@redhat.com>
1379
1380         maint.mk: prohibit inclusion of "intprops.h" without use
1381         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
1382
1383 2010-03-21  Bruno Haible  <bruno@clisp.org>
1384
1385         New module 'grantpt'.
1386         * lib/grantpt.c: New file, from glibc with modifications.
1387         * m4/grantpt.m4: New file.
1388         * modules/grantpt: New file.
1389         * lib/stdlib.in.h (grantpt): New declaration.
1390         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
1391         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
1392         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
1393         HAVE_GRANTPT.
1394         * doc/posix-functions/grantpt.texi: Mention the new module.
1395         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
1396         * config/srclist.txt: Add grantpt.c (commented).
1397
1398 2010-03-21  Bruno Haible  <bruno@clisp.org>
1399
1400         New module 'pt_chown'.
1401         * lib/pt_chown.c: New file, from glibc with modifications.
1402         * lib/pty-private.h: New file, from glibc with modifications.
1403         * modules/pt_chown: New file.
1404         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
1405
1406 2010-03-21  Bruno Haible  <bruno@clisp.org>
1407
1408         Tests for module 'ptsname'.
1409         * modules/ptsname-tests: New file.
1410         * tests/test-ptsname.c: New file.
1411
1412         New module 'ptsname'.
1413         * lib/ptsname.c: New file, from glibc with modifications.
1414         * m4/ptsname.m4: New file.
1415         * modules/ptsname: New file.
1416         * lib/stdlib.in.h (ptsname): New declaration.
1417         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
1418         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
1419         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
1420         HAVE_PTSNAME.
1421         * doc/posix-functions/ptsname.texi: Mention the new module.
1422         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
1423         * config/srclist.txt: Add ptsname.c (commented).
1424
1425 2010-03-21  Bruno Haible  <bruno@clisp.org>
1426
1427         Tests for module 'ttyname_r'.
1428         * modules/ttyname_r-tests: New file.
1429         * tests/test-ttyname_r.c: New file.
1430
1431         New module 'ttyname_r'.
1432         * lib/ttyname_r.c: New file.
1433         * m4/ttyname_r.m4: New file.
1434         * modules/ttyname_r: New file.
1435         * lib/unistd.in.h (ttyname_r): New declaration.
1436         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
1437         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
1438         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
1439         HAVE_TTYNAME_R.
1440         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
1441         * doc/posix-functions/ttyname_r.texi: Mention the new module.
1442
1443 2010-03-20  Bruno Haible  <bruno@clisp.org>
1444
1445         signal: Undefine macro definitions in C++ mode.
1446         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
1447         sigfillset): Undefine macro definitions from the system header in C++
1448         mode.
1449         Reported by John W. Eaton <jwe@gnu.org>.
1450
1451 2010-03-20  Bruno Haible  <bruno@clisp.org>
1452
1453         Ensure no #include statements inside extern "C" { ... }.
1454         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
1455         contain #include statements.
1456         * lib/time.in.h: Likewise.
1457
1458 2010-03-20  Bruno Haible  <bruno@clisp.org>
1459
1460         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
1461         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
1462         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
1463         Reported by John W. Eaton <jwe@gnu.org>.
1464
1465 2010-03-20  Bruno Haible  <bruno@clisp.org>
1466
1467         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
1468         Reported by Jim Meyering.
1469
1470 2010-03-20  Bruno Haible  <bruno@clisp.org>
1471
1472         pipe: Set errno upon failure.
1473         * lib/pipe.h: Specify that when -1 is returned, errno is set.
1474         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
1475         errno value in error message.
1476
1477 2010-03-20  Bruno Haible  <bruno@clisp.org>
1478             Jim Meyering  <meyering@redhat.com>
1479
1480         lchown: Avoid "unused variable" warning.
1481         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
1482
1483 2010-03-20  Bruno Haible  <bruno@clisp.org>
1484
1485         Work around unlink() bug on MacOS X 10.5.6.
1486         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
1487         attempting to unlink a parent directory.
1488         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
1489         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
1490         activate for the replacement function.
1491         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
1492
1493 2010-03-20  Bruno Haible  <bruno@clisp.org>
1494
1495         Fix link errors on Solaris 8.
1496         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
1497         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
1498
1499 2010-03-19  Jim Meyering  <meyering@redhat.com>
1500
1501         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
1502         The _LIBC implementation of build_range_exp correctly honors the
1503         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
1504         However, the non-_LIBC implementation would ignore that syntax-bit
1505         flag and return REG_ERANGE unconditionally.
1506         This change makes it honor that flag.
1507         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
1508         Make two pointer parameters "const".
1509         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
1510         (parse_bracket_exp): Update caller.
1511
1512         regex.m4: correct the reversed range endpoint ([b-a]) test
1513         * m4/regex.m4: When requiring that [b-a] evoke failure,
1514         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
1515         test pass once again for x86-based systems.
1516
1517 2010-03-19  Bruno Haible  <bruno@clisp.org>
1518
1519         scandir: Fix link error on Solaris 8.
1520         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
1521         macros.
1522
1523 2010-03-19  Bruno Haible  <bruno@clisp.org>
1524
1525         getusershell: Fix documentation.
1526         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
1527         module.
1528         * doc/glibc-functions/setusershell.texi: Likewise.
1529
1530         getusershell: Provide declaration, missing on Solaris 9.
1531         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
1532         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
1533         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
1534         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
1535         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1536         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
1537         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
1538         HAVE_GETUSERSHELL.
1539         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
1540
1541 2010-03-19  Bruno Haible  <bruno@clisp.org>
1542
1543         wctype: Provide iswblank function.
1544         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
1545         exists and is fine.
1546         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
1547         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
1548         * tests/test-wctype.c (main): Re-enable the iswblank tests.
1549         * doc/posix-functions/iswblank.texi: Update.
1550
1551 2010-03-19  Bruno Haible  <bruno@clisp.org>
1552
1553         Tests of module 'pty' in C++ mode.
1554         * modules/pty-tests: New file.
1555         * tests/test-pty-c++.cc: New file.
1556         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1557
1558 2010-03-19  Eric Blake  <eblake@redhat.com>
1559
1560         logb: fix documentation
1561         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
1562         1.5 declaration bug.
1563
1564         forkpty, openpty: prefer glibc's const-safe prototype
1565         * lib/forkpty.c (rpl_forkpty): New file.
1566         * lib/openpty.c (rpl_openpty): Likewise.
1567         * modules/forkpty (Files): Distribute it.
1568         * modules/openpty (Files): Likewise.
1569         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
1570         check...
1571         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
1572         replacement for for non-const BSD signature.
1573         * modules/pty (Makefile.am): Substitute witnesses.
1574         * lib/pty.in.h (forkpty, openpty): Declare replacements.
1575         * tests/test-forkpty.c: Update signature check.
1576         * tests/test-openpty.c: Likewise.
1577         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
1578         * doc/glibc-functions/openpty.texi (openpty): Likewise.
1579
1580         forkpty, openpty: split functions into new modules
1581         * modules/pty (Makefile.am): Substitute new witnesses.
1582         (Libraries): Move library detection...
1583         * modules/forkpty: ...into new module.
1584         * modules/openpty: Another new module.
1585         * modules/pty-tests: Rename and split...
1586         * modules/forkpty-tests: ...to this...
1587         * modules/openpty-tests: ...and this.
1588         * tests/test-pty.c: Rename and split...
1589         * tests/test-forkpty.c: ...to this...
1590         * tests/test-openpty.c: ...and this.
1591         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
1592         (gl_PTY): Split library searching...
1593         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
1594         (gl_FORKPTY, gl_OPENPTY): New macros.
1595         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
1596         * NEWS: Mention the split.
1597         * MODULES.html.sh (Misc): Document the modules.
1598         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
1599         * doc/glibc-functions/openpty.texi (openpty): Likewise.
1600
1601         pty: improve replacement header
1602         * lib/pty.in.h: New file.
1603         * modules/pty (Files): Ship it.
1604         (Makefile.am): Always build replacement.
1605         * m4/pty.m4: Rename...
1606         * m4/pty_h.m4: ...to this.
1607         (gl_PTY): Modernize setting of witness macros; update check of
1608         forkpty to take proper advantage of cache.
1609         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
1610
1611         getopt: avoid compiler warning
1612         * lib/getopt.c (attribute_hidden): Remove unused macro.
1613
1614 2010-03-18  Bruno Haible  <bruno@clisp.org>
1615
1616         Fix link errors on Solaris 8.
1617         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
1618         * modules/search-tests (test_search_c___LDADD): Likewise.
1619         * modules/signal-tests (test_signal_c___LDADD): Likewise.
1620         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
1621         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
1622         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
1623         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
1624         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
1625         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
1626
1627 2010-03-18  Bruno Haible  <bruno@clisp.org>
1628
1629         Fix bug introduced on 2010-03-14.
1630         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
1631         (gl_SPAWN_H): Require it.
1632         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
1633         Reported by Simon Josefsson.
1634
1635 2010-03-18  Bruno Haible  <bruno@clisp.org>
1636
1637         Fix typo introduced on 2009-12-31.
1638         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
1639         posix_spawn_file_actions_adddup2.
1640
1641 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
1642         and Eric Blake  <eblake@redhat.com>
1643
1644         test-vc-list-files-git: make more robust
1645         * tests/test-vc-list-files-git.sh: Unset problematic environment
1646         variables.  Chain commands together.
1647
1648 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
1649
1650         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
1651         `AC_CHECK_DECL' invocation.
1652
1653 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
1654
1655         * lib/inttostr.c (inttostr): Make sure the invocation of verify
1656         appears before executable statements. Suggested by Petr Sumbera
1657         <Petr.Sumbera@Sun.COM>.
1658
1659 2010-03-14  Bruno Haible  <bruno@clisp.org>
1660
1661         * tests/test-flock.c (test_exclusive): Comment out a test that causes
1662         portability problems. Instead use a simpler test.
1663         (main): Check that invalid arguments are rejected only on Linux.
1664
1665 2010-03-14  Bruno Haible  <bruno@clisp.org>
1666
1667         Fix bug introduced on 2009-12-31.
1668         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
1669         gl_PREREQ_SYS_H_WINSOCK2 always.
1670         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
1671         SYS_SOCKET_H variable.
1672         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
1673         Update comments.
1674         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
1675         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
1676         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1677         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1678         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
1679
1680 2010-03-14  Bruno Haible  <bruno@clisp.org>
1681
1682         Fix values returned by sinl, cosl.
1683         * lib/trigl.h: Add specification comments.
1684         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
1685         that combines the values from the precomputed table with the values of
1686         the Chebyshev polynomials.
1687
1688 2010-03-14  Bruno Haible  <bruno@clisp.org>
1689
1690         Fix compilation error when modules 'posix_spawn[p]' are not used.
1691         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
1692         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
1693
1694 2010-03-14  Bruno Haible  <bruno@clisp.org>
1695
1696         Fix compilation error on mingw when module 'time_r' is not used.
1697         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
1698         is 1.
1699         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
1700         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
1701         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
1702         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
1703
1704 2010-03-14  Bruno Haible  <bruno@clisp.org>
1705
1706         Fix compilation error with Sun C.
1707         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
1708         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
1709         instead of GCC specific ULONG_LONG_MAX.
1710         * lib/xstrtoll.c: Likewise.
1711         * lib/xstrtoull.c: Likewise.
1712
1713 2010-03-13  Bruno Haible  <bruno@clisp.org>
1714
1715         Allow the user to disable C++ code and tests.
1716         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
1717         (gl_PROG_ANSI_CXX): Require it.
1718
1719 2010-03-13  Bruno Haible  <bruno@clisp.org>
1720
1721         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
1722         cases.
1723
1724 2010-03-13  Bruno Haible  <bruno@clisp.org>
1725
1726         Test that gnulib does not break the standard C++ headers.
1727         * tests/test-locale-c++2.cc: New file.
1728         * modules/locale-tests (Files): Add it.
1729         (Makefile.am): Compile it for test-locale-c++.
1730         * tests/test-math-c++2.cc: New file.
1731         * modules/math-tests (Files): Add it.
1732         (Makefile.am): Compile it for test-math-c++.
1733         * tests/test-signal-c++2.cc: New file.
1734         * modules/signal-tests (Files): Add it.
1735         (Makefile.am): Compile it for test-signal-c++.
1736         * tests/test-stdio-c++2.cc: New file.
1737         * modules/stdio-tests (Files): Add it.
1738         (Makefile.am): Compile it for test-stdio-c++.
1739         * tests/test-stdlib-c++2.cc: New file.
1740         * modules/stdlib-tests (Files): Add it.
1741         (Makefile.am): Compile it for test-stdlib-c++.
1742         * tests/test-string-c++2.cc: New file.
1743         * modules/string-tests (Files): Add it.
1744         (Makefile.am): Compile it for test-string-c++.
1745         * tests/test-time-c++2.cc: New file.
1746         * modules/time-tests (Files): Add it.
1747         (Makefile.am): Compile it for test-time-c++.
1748         Reported by John W. Eaton <jwe@gnu.org>.
1749
1750 2010-03-13  Bruno Haible  <bruno@clisp.org>
1751
1752         * gnulib-tool (func_usage): Clarify which options are available for
1753         --create-testdir and --create-megatestdir.
1754
1755 2010-03-13  Bruno Haible  <bruno@clisp.org>
1756
1757         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
1758         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
1759         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
1760         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
1761         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
1762         when appropriate.
1763         Reported by Jim Meyering.
1764
1765 2010-03-12  Simon Josefsson  <simon@josefsson.org>
1766
1767         * gnulib-tool (func_import): Explain origin of code.
1768
1769 2010-03-12  Bruno Haible  <bruno@clisp.org>
1770
1771         Fix problem with automake's definition of CXXLINK.
1772         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
1773         Reported by Simon Josefsson and Ludovic Courtès.
1774
1775 2010-03-12  Bruno Haible  <bruno@clisp.org>
1776
1777         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
1778         stable releases.
1779
1780 2010-03-11  Bruno Haible  <bruno@clisp.org>
1781
1782         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
1783         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
1784         whether the system provides one variant or multiple variants of the
1785         function.
1786         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
1787         C++ compilers.
1788         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
1789         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
1790         Reported by Jim Meyering.
1791
1792 2010-03-09  Simon Josefsson  <simon@josefsson.org>
1793
1794         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
1795
1796 2010-03-08  Bruno Haible  <bruno@clisp.org>
1797
1798         gnulib-tool: Add support for --libtool in --create-testdir.
1799         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
1800         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
1801
1802 2010-03-08  Eric Blake  <eblake@redhat.com>
1803
1804         gnulib-tool.texi: mention possibility of git submodule
1805         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
1806         submodules.
1807         * doc/.gitignore: Ignore another generated file.
1808
1809 2010-03-08  Karl Berry  <karl@gnu.org>
1810
1811         * doc/gnulib-tool.texi (VCS Issues): Mention third option
1812         of committing gnulib files while skipping others.
1813
1814 2010-03-07  Bruno Haible  <bruno@clisp.org>
1815
1816         Tests of module 'wctype' in C++ mode.
1817         * tests/test-wctype-c++.cc: New file.
1818         * modules/wctype-tests (Files): Add it and tests/signature.h.
1819         (Depends-on): Add ansi-c++-opt.
1820         (Makefile.am): Arrange to compile and run test-wctype-c++.
1821
1822         Tests of module 'wchar' in C++ mode.
1823         * tests/test-wchar-c++.cc: New file.
1824         * modules/wchar-tests (Files): Add it and tests/signature.h.
1825         (Depends-on): Add ansi-c++-opt.
1826         (Makefile.am): Arrange to compile and run test-wchar-c++.
1827         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
1828         gl_MODULE_INDICATOR.
1829
1830         Tests of module 'unistd' in C++ mode.
1831         * tests/test-unistd-c++.cc: New file.
1832         * modules/unistd-tests (Files): Add it and tests/signature.h.
1833         (Depends-on): Add ansi-c++-opt.
1834         (Makefile.am): Arrange to compile and run test-unistd-c++.
1835         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
1836         gl_MODULE_INDICATOR.
1837
1838         Tests of module 'time' in C++ mode.
1839         * tests/test-time-c++.cc: New file.
1840         * modules/time-tests (Files): Add it and tests/signature.h.
1841         (Depends-on): Add ansi-c++-opt.
1842         (Makefile.am): Arrange to compile and run test-time-c++.
1843         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1844
1845         Tests of module 'sys_time' in C++ mode.
1846         * tests/test-sys_time-c++.cc: New file.
1847         * modules/sys_time-tests (Files): Add it and tests/signature.h.
1848         (Depends-on): Add ansi-c++-opt.
1849         (Makefile.am): Arrange to compile and run test-sys_time-c++.
1850         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
1851         gl_MODULE_INDICATOR.
1852
1853         Tests of module 'sys_stat' in C++ mode.
1854         * tests/test-sys_stat-c++.cc: New file.
1855         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
1856         (Depends-on): Add ansi-c++-opt.
1857         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
1858         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
1859         gl_MODULE_INDICATOR.
1860
1861         Tests of module 'sys_socket' in C++ mode.
1862         * tests/test-sys_socket-c++.cc: New file.
1863         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
1864         (Depends-on): Add ansi-c++-opt.
1865         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
1866         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
1867         gl_MODULE_INDICATOR.
1868
1869         Tests of module 'sys_select' in C++ mode.
1870         * tests/test-sys_select-c++.cc: New file.
1871         * modules/sys_select-tests (Files): Add it and tests/signature.h.
1872         (Depends-on): Add ansi-c++-opt.
1873         (Makefile.am): Arrange to compile and run test-sys_select-c++.
1874         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
1875         gl_MODULE_INDICATOR.
1876
1877         Tests of module 'sys_ioctl' in C++ mode.
1878         * tests/test-sys_ioctl-c++.cc: New file.
1879         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
1880         (Depends-on): Add ansi-c++-opt.
1881         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
1882         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
1883         gl_MODULE_INDICATOR.
1884
1885         Tests of module 'string' in C++ mode.
1886         * tests/test-string-c++.cc: New file.
1887         * modules/string-tests (Files): Add it and tests/signature.h.
1888         (Depends-on): Add ansi-c++-opt.
1889         (Makefile.am): Arrange to compile and run test-string-c++.
1890         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
1891         gl_MODULE_INDICATOR.
1892
1893         Tests of module 'stdlib' in C++ mode.
1894         * tests/test-stdlib-c++.cc: New file.
1895         * modules/stdlib-tests (Files): Add it and tests/signature.h.
1896         (Depends-on): Add ansi-c++-opt.
1897         (Makefile.am): Arrange to compile and run test-stdlib-c++.
1898         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
1899         gl_MODULE_INDICATOR.
1900
1901         Tests of module 'stdio' in C++ mode.
1902         * tests/test-stdio-c++.cc: New file.
1903         * modules/stdio-tests (Files): Add it and tests/signature.h.
1904         (Depends-on): Add ansi-c++-opt.
1905         (Makefile.am): Arrange to compile and run test-stdio-c++.
1906         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
1907         gl_MODULE_INDICATOR.
1908
1909         Tests of module 'spawn' in C++ mode.
1910         * tests/test-spawn-c++.cc: New file.
1911         * modules/spawn-tests (Files): Add it and tests/signature.h.
1912         (Depends-on): Add ansi-c++-opt.
1913         (Makefile.am): Arrange to compile and run test-spawn-c++.
1914         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
1915         gl_MODULE_INDICATOR.
1916
1917         Tests of module 'signal' in C++ mode.
1918         * tests/test-signal-c++.cc: New file.
1919         * modules/signal-tests (Files): Add it and tests/signature.h.
1920         (Depends-on): Add ansi-c++-opt.
1921         (Makefile.am): Arrange to compile and run test-signal-c++.
1922         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
1923         gl_MODULE_INDICATOR.
1924
1925         Tests of module 'search' in C++ mode.
1926         * tests/test-search-c++.cc: New file.
1927         * modules/search-tests (Files): Add it and tests/signature.h.
1928         (Depends-on): Add ansi-c++-opt.
1929         (Makefile.am): Arrange to compile and run test-search-c++.
1930         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
1931         gl_MODULE_INDICATOR.
1932
1933         Tests of module 'math' in C++ mode.
1934         * tests/test-math-c++.cc: New file.
1935         * modules/math-tests (Files): Add it and tests/signature.h.
1936         (Depends-on): Add ansi-c++-opt.
1937         (Makefile.am): Arrange to compile and run test-math-c++.
1938         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1939
1940         Tests of module 'locale' in C++ mode.
1941         * tests/test-locale-c++.cc: New file.
1942         * modules/locale-tests (Files): Add it and tests/signature.h.
1943         (Depends-on): Add ansi-c++-opt.
1944         (Makefile.am): Arrange to compile and run test-locale-c++.
1945         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
1946         gl_MODULE_INDICATOR.
1947
1948         Tests of module 'langinfo' in C++ mode.
1949         * tests/test-langinfo-c++.cc: New file.
1950         * modules/langinfo-tests (Files): Add it and tests/signature.h.
1951         (Depends-on): Add ansi-c++-opt.
1952         (Makefile.am): Arrange to compile and run test-langinfo-c++.
1953         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
1954         gl_MODULE_INDICATOR.
1955
1956         Tests of module 'iconv-h' in C++ mode.
1957         * tests/test-iconv-h-c++.cc: New file.
1958         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
1959         (Depends-on): Add ansi-c++-opt.
1960         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
1961
1962         Tests of module 'glob' in C++ mode.
1963         * tests/test-glob-c++.cc: New file.
1964         * modules/glob-tests (Files): Add it.
1965         (Depends-on): Add ansi-c++-opt.
1966         (Makefile.am): Arrange to compile and run test-glob-c++.
1967
1968         Tests of module 'fcntl-h' in C++ mode.
1969         * tests/test-fcntl-h-c++.cc: New file.
1970         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
1971         (Depends-on): Add ansi-c++-opt.
1972         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
1973         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
1974         gl_MODULE_INDICATOR.
1975
1976         Tests of module 'dirent' in C++ mode.
1977         * tests/test-dirent-c++.cc: New file.
1978         * modules/dirent-tests (Files): Add it and tests/signature.h.
1979         (Depends-on): Add ansi-c++-opt.
1980         (Makefile.am): Arrange to compile and run test-dirent-c++.
1981         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
1982         gl_MODULE_INDICATOR.
1983
1984         New module 'ansi-c++-opt'.
1985         * modules/ansi-c++-opt: New file.
1986         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
1987
1988         Document C++ namespace mode.
1989         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
1990
1991         wctype: Avoid #define replacements in C++ mode.
1992         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
1993         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
1994         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
1995         In C++, define a namespaced alias symbol.
1996         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
1997         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
1998         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
1999         rule.
2000
2001         wchar: Avoid #define replacements in C++ mode.
2002         * lib/wchar.in.h: Include c++defs.h.
2003         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
2004         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
2005         symbol.
2006         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
2007         * modules/wchar (Depends-on): Add c++defs.
2008         (Makefile.am): Update wchar.h rule.
2009
2010         unistd: Avoid #define replacements in C++ mode.
2011         * lib/unistd.in.h: Include c++defs.h.
2012         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
2013         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
2014         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
2015         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
2016         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
2017         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
2018         symbol.
2019         (environ): Update.
2020         * modules/unistd (Depends-on): Add c++defs.
2021         (Makefile.am): Update unistd.h rule.
2022
2023         time: Avoid #define replacements in C++ mode.
2024         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
2025         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
2026         define a namespaced alias symbol.
2027         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
2028         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
2029         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
2030         * modules/time (Depends-on): Add c++defs, warn-on-use.
2031         (Makefile.am): Update time.h rule.
2032         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
2033         * modules/nanosleep (configure.ac): Likewise.
2034         * modules/strptime (configure.ac): Likewise.
2035         * modules/timegm (configure.ac): Likewise.
2036
2037         sys_time: Avoid #define replacements in C++ mode.
2038         * lib/sys_time.in.h: Include c++defs.h.
2039         (gettimeofday): In C++, define a namespaced alias symbol.
2040         * modules/sys_time (Depends-on): Add c++defs.
2041         (Makefile.am): Update sys/time.h rule.
2042
2043         sys_stat: Avoid #define replacements in C++ mode.
2044         * lib/sys_stat.in.h: Include c++defs.h.
2045         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
2046         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
2047         namespaced alias symbol.
2048         In C++, define a namespaced alias symbol.
2049         * modules/sys_stat (Depends-on): Add c++defs.
2050         (Makefile.am): Update sys/stat.h rule.
2051
2052         sys_socket: Avoid #define replacements in C++ mode.
2053         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
2054         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
2055         definitions also when the system has a <sys/socket.h>.
2056         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
2057         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
2058         In C++, define a namespaced alias symbol.
2059         * modules/sys_socket (Depends-on): Add c++defs.
2060         (Makefile.am): Update sys/socket.h rule.
2061
2062         sys_select: Avoid #define replacements in C++ mode.
2063         * lib/sys_select.in.h: Include c++defs.h. Enable the function
2064         definitions also when the system has a <sys/select.h>.
2065         (select): In C++, define a namespaced alias symbol.
2066         * modules/sys_select (Depends-on): Add c++defs.
2067         (Makefile.am): Update sys/select.h rule.
2068
2069         sys_ioctl: Avoid #define replacements in C++ mode.
2070         * lib/sys_ioctl.in.h: Include c++defs.h.
2071         (ioctl): In C++, define a namespaced alias symbol.
2072         * modules/sys_ioctl (Depends-on): Add c++defs.
2073         (Makefile.am): Update sys/ioctl.h rule.
2074
2075         string: Avoid #define replacements in C++ mode.
2076         * lib/string.in.h: Include c++defs.h.
2077         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
2078         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
2079         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
2080         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
2081         strsignal, strverscmp): In C++, define a namespaced alias symbol.
2082         * modules/string (Depends-on): Add c++defs.
2083         (Makefile.am): Update string.h rule.
2084
2085         stdlib: Avoid #define replacements in C++ mode.
2086         * lib/stdlib.in.h: Include c++defs.h.
2087         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
2088         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
2089         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
2090         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
2091         symbol.
2092         * modules/stdlib (Depends-on): Add c++defs.
2093         (Makefile.am): Update stdlib.h rule.
2094
2095         stdio: Avoid #define replacements in C++ mode.
2096         * lib/stdio.in.h: Include c++defs.h.
2097         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
2098         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
2099         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
2100         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
2101         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
2102         namespaced alias symbol.
2103         * modules/stdio (Depends-on): Add c++defs.
2104         (Makefile.am): Update stdio.h rule.
2105
2106         spawn: Avoid #define replacements in C++ mode.
2107         * lib/spawn.in.h: Include c++defs.h.
2108         (posix_spawn, posix_spawnp, posix_spawnattr_init,
2109         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
2110         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
2111         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
2112         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
2113         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
2114         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
2115         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
2116         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
2117         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
2118         In C++, define a namespaced alias symbol.
2119         * modules/spawn (Depends-on): Add c++defs.
2120         (Makefile.am): Update spawn.h rule.
2121
2122         signal: Avoid #define replacements in C++ mode.
2123         * lib/signal.in.h: Include c++defs.h.
2124         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
2125         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
2126         namespaced alias symbol.
2127         * modules/signal (Depends-on): Add c++defs.
2128         (Makefile.am): Update signal.h rule.
2129
2130         search: Avoid #define replacements in C++ mode.
2131         * lib/search.in.h: Include c++defs.h.
2132         (_gl_search_compar_fn, _gl_search_action_fn): New types.
2133         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
2134         symbol.
2135         * modules/search (Depends-on): Add c++defs.
2136         (Makefile.am): Update search.h rule.
2137
2138         math: Avoid #define replacements in C++ mode.
2139         * lib/math.in.h: Include c++defs.h.
2140         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
2141         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
2142         trunc, truncl): In C++, define a namespaced alias symbol.
2143         * modules/math (Depends-on): Add c++defs.
2144         (Makefile.am): Update math.h rule.
2145
2146         locale: Avoid #define replacements in C++ mode.
2147         * lib/locale.in.h: Include c++defs.h.
2148         (duplocale): In C++, define a namespaced alias symbol.
2149         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
2150         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
2151         * modules/locale (Depends-on): Add c++defs.
2152         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
2153
2154         langinfo: Avoid #define replacements in C++ mode.
2155         * lib/langinfo.in.h: Include c++defs.h.
2156         (nl_langinfo): In C++, define a namespaced alias symbol.
2157         * modules/langinfo (Depends-on): Add c++defs.
2158         (Makefile.am): Update langinfo.h rule.
2159
2160         iconv-h: Avoid #define replacements in C++ mode.
2161         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
2162         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
2163         symbol.
2164         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
2165         whenever iconv is present.
2166         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
2167         (Makefile.am): Update iconv.h rule.
2168
2169         glob: Avoid #define replacements in C++ mode.
2170         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
2171         (_gl_glob_errfunc_fn): New type.
2172         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
2173         symbol.
2174         * modules/glob (Depends-on): Add c++defs, warn-on-use.
2175         (Makefile.am): Update glob.h rule.
2176
2177         fcntl-h: Avoid #define replacements in C++ mode.
2178         * lib/fcntl.in.h: Include c++defs.h.
2179         (fcntl, open, openat): In C++, define a namespaced alias symbol.
2180         * modules/fcntl-h (Depends-on): Add c++defs.
2181         (Makefile.am): Update fcntl.h rule.
2182
2183         dirent: Avoid #define replacements in C++ mode.
2184         * lib/dirent.in.h: Include c++defs.h.
2185         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
2186         namespaced alias symbol.
2187         (dirfd): Update declaration.
2188         * modules/dirent (Depends-on): Add c++defs.
2189         (Makefile.am): Update dirent.h rule.
2190
2191         ctype: Make it usable in C++ code.
2192         * lib/ctype.in.h: Include c++defs.h.
2193         (isblank): Declare as extern "C".
2194         * modules/ctype (Depends-on): Add c++defs.
2195         (Makefile.am): Update ctype.h rule.
2196
2197         New module 'c++defs'.
2198         * modules/c++defs: New file.
2199         * build-aux/c++defs.h: New file.
2200         Reported by John W. Eaton <jwe@gnu.org>.
2201
2202 2010-03-07  Bruno Haible  <bruno@clisp.org>
2203
2204         logb: Provide missing declaration for Cygwin.
2205         * lib/math.in.h (logb): New declaration.
2206         * m4/logb.m4: New file.
2207         * modules/logb (Files): Add m4/logb.m4.
2208         (Depends-on): Add math.
2209         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
2210         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
2211         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
2212         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
2213         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
2214
2215 2010-03-07  Bruno Haible  <bruno@clisp.org>
2216
2217         Fix test-cond link error.
2218         * tests/test-cond.c: Include <stdio.h>.
2219
2220 2010-03-07  Bruno Haible  <bruno@clisp.org>
2221
2222         Fix test-dirent-safer link error.
2223         * modules/dirent-safer-tests (Makefile.am): Define
2224         test_dirent_safer_LDADD.
2225
2226 2010-03-07  Bruno Haible  <bruno@clisp.org>
2227
2228         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
2229         among default module list.
2230
2231 2010-03-07  Bruno Haible  <bruno@clisp.org>
2232
2233         Fix link error on platforms with GNU libiconv.
2234         * modules/unistr/u8-strcoll-tests (Makefile): Define
2235         test_u8_strcoll_LDADD.
2236         * modules/unistr/u16-strcoll-tests (Makefile): Define
2237         test_u16_strcoll_LDADD.
2238         * modules/unistr/u32-strcoll-tests (Makefile): Define
2239         test_u32_strcoll_LDADD.
2240
2241 2010-03-07  Bruno Haible  <bruno@clisp.org>
2242
2243         Use POSIX declarations for socket functions.
2244         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
2245         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
2246         rpl_sendto): Change declaration to match POSIX.
2247         * lib/connect.c (rpl_connect): Likewise.
2248         * lib/accept.c (rpl_accept): Likewise.
2249         * lib/bind.c (rpl_bind): Likewise.
2250         * lib/getpeername.c (rpl_getpeername): Likewise.
2251         * lib/getsockname.c (rpl_getsockname): Likewise.
2252         * lib/recv.c (rpl_recv): Likewise.
2253         * lib/send.c (rpl_send): Likewise.
2254         * lib/recvfrom.c (rpl_recvfrom): Likewise.
2255         * lib/sendto.c (rpl_sendto): Likewise.
2256
2257 2010-03-06  Bruno Haible  <bruno@clisp.org>
2258
2259         Clarify access, euidaccess, faccessat.
2260         * doc/posix-functions/faccessat.texi: Mention security problem under
2261         "Other problems", not "Portability problems".
2262         * doc/posix-functions/access.texi: Likewise. Mention a related security
2263         problem.
2264         * doc/glibc-functions/euidaccess.texi: Mention security problems.
2265         * lib/euidaccess.c: Add comments about platforms.
2266         * lib/unistd.in.h (access, euidaccess): Add warnings.
2267
2268 2010-03-07  Bruno Haible  <bruno@clisp.org>
2269
2270         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
2271         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
2272         (POSIX_SPAWN_SETSCHEDULER): Likewise.
2273         (POSIX_SPAWN_USEVFORK): Define in a way that works when
2274         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
2275         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
2276         declare when POSIX_SPAWN_SETSCHEDULER is zero.
2277         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
2278         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
2279         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
2280         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
2281         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
2282         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
2283         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
2284         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
2285         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
2286         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
2287         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
2288         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
2289         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
2290         Likewise.
2291         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
2292         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
2293         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
2294         Likewise.
2295         * tests/test-spawn.c (main): Make it work when
2296         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
2297
2298 2010-03-07  Bruno Haible  <bruno@clisp.org>
2299
2300         Fix incorrect Makefile.am generation in German locale.
2301         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
2302         Execute sed command with character range in C locale.
2303
2304 2010-03-06  Bruno Haible  <bruno@clisp.org>
2305
2306         Tests for module 'iconv-h'.
2307         * modules/iconv-h-tests: New file.
2308         * tests/test-iconv-h.c: New file.
2309
2310         New module 'iconv-h'.
2311         * modules/iconv-h: New file.
2312         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
2313         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
2314         (configure.ac): Remove gl_ICONV_H.
2315         (Makefile.am): Remove rule for iconv.h.
2316
2317 2010-03-06  Bruno Haible  <bruno@clisp.org>
2318
2319         More consistent naming of *.m4 files.
2320         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
2321         * modules/wctype (Files): Update.
2322
2323         More consistent naming of *.m4 files.
2324         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
2325         * modules/wchar (Files): Update.
2326
2327 2010-03-06  Jim Meyering  <meyering@redhat.com>
2328
2329         euidaccess: relax license to LGPLv2+
2330         * modules/euidaccess (License): Relax to LGPLv2+.
2331
2332 2010-03-06  Bruno Haible  <bruno@clisp.org>
2333
2334         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
2335         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
2336         (Makefile.am): Augment lib_SOURCES instead.
2337
2338 2010-03-04  Jim Meyering  <meyering@redhat.com>
2339
2340         utime: remove obsolete module
2341         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
2342         unnecessary for years, and has been marked as obsolete for 10 months.
2343         * modules/utime: Remove file.
2344         * lib/utime.c: Remove file.
2345         * m4/utime.m4: Remove file.
2346         * m4/utimes-null.m4: Remove file.
2347         * doc/posix-functions/utime.texi (utime): Remove reference to
2348         the module.  Move the sole "fixed by gnulib" item into the
2349         "problems not fixed by Gnulib" list.
2350         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
2351
2352 2010-03-05  Simon Josefsson  <simon@josefsson.org>
2353
2354         * modules/exit (License): Relax license to LGPLv2+.
2355         (Status): Mark as obsolete.
2356         * NEWS: Mention deprecated 'exit' module.
2357         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
2358         of now obsolete 'exit'.
2359
2360 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2361
2362         fts-lgpl: remove unused module
2363         * modules/fts-lgpl: Remove.
2364         * MODULES.html.sh (func_all_modules): Adjust.
2365         * check-module (find_included_lib_files): Adjust.
2366         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
2367
2368 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
2369
2370         copy-acl: enhance Solaris ACL error handling
2371         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
2372         * lib/set-mode-acl.c (qset_acl): Likewise.
2373
2374 2010-03-02  Bruno Haible  <bruno@clisp.org>
2375
2376         spawn: Don't override the system defined values on FreeBSD 8.
2377         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
2378         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
2379         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
2380         if HAVE_POSIX_SPAWN is 1.
2381         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
2382
2383 2010-03-01  Bruno Haible  <bruno@clisp.org>
2384
2385         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
2386         regarding Automake.
2387
2388 2010-02-25  Bruno Haible  <bruno@clisp.org>
2389
2390         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
2391         * gnulib-tool: Define 'echo' as a function only before the ksh alias
2392         setting, not afterwards.
2393         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
2394
2395 2010-02-24  Eric Blake  <eblake@redhat.com>
2396
2397         bootstrap, git-version-gen: use timestamp
2398         * build-aux/git-version-gen (scriptversion): Force UTC.
2399         * build-aux/bootstrap (scriptversion): New variable.
2400
2401         bootstrap: allow older git
2402         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
2403         older than 1.6.4.  Requested by the libvirt project.
2404
2405 2010-02-23  Eric Blake  <eblake@redhat.com>
2406
2407         warn-on-use: work with old autoconf
2408         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
2409         AS_VAR semantics of autoconf 2.60.
2410         Reported by Bruno Haible.
2411
2412         bootstrap: improve some comments
2413         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
2414         clarification comments.
2415
2416         gettimeofday: provide correct function
2417         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
2418         when replacement is declared, otherwise provide gettimeofday.
2419         Reported by Michael Goffioul.
2420
2421 2010-02-23  Jim Meyering  <meyering@redhat.com>
2422
2423         lib-ignore: relax license to "unlimited", not LGPLv2+
2424         * modules/lib-ignore (License): Relax to "unlimited".
2425
2426 2010-02-23  Jim Meyering  <meyering@redhat.com>
2427
2428         lib-ignore: relax license to LGPLv2+
2429         * modules/lib-ignore (License): Relax to LGPLv2+.
2430
2431 2010-02-22  Eric Blake  <eblake@redhat.com>
2432
2433         lseek: avoid bash 3.2 broken pipe bug
2434         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
2435         warning from bash 3.2.
2436         Reported by Ben Pfaff, with analysis from Bruno Haible.
2437
2438         bootstrap: support non-FSF copyright holder
2439         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
2440         bootstrap.conf override of COPYRIGHT_HOLDER.
2441         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
2442
2443         bootstrap: interoperate with gettext 0.14.1
2444         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
2445
2446         bootstrap: allow for alternate submodule location
2447         * build-aux/bootstrap (gnulib_path): New variable; use instead of
2448         hardcoding submodule location.
2449         (gnulib_mk): Allow direct use of Makefile.am.
2450
2451         bootstrap: use GNULIB_SRCDIR to reduce disk usage
2452         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
2453         rather than reconfiguring where the submodule points.
2454
2455         gettimeofday: restore support for platforms that lack function
2456         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
2457         replacement if function is missing.
2458         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
2459         * modules/sys_time (Makefile.am): Substitute it.
2460         * lib/sys_time.in.h (gettimeofday): Check it.
2461         Reported by Michael Goffioul.
2462
2463 2010-02-21  Bruno Haible  <bruno@clisp.org>
2464
2465         * lib/stdio.in.h (obstack_printf): Fix typo.
2466
2467 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
2468
2469         vc-list-files: use bzr ls's -R option
2470         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
2471         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
2472
2473 2010-02-21  Jim Meyering  <meyering@redhat.com>
2474
2475         init.sh: fix EXEEXT shims to work also for names like test-prog
2476         * tests/init.sh: Re-exec a better shell, when needed.
2477         If the current shell lacks support for posix $(...), an init.sh-using
2478         test will now try to find a shell that supports that.  If EXEEXT is
2479         nonempty, we also require support for hyphen-in-alias-name and shell
2480         substitutions like ${var#glob}.  Failure to find such a shell results
2481         in a skipped test.
2482
2483 2010-02-21  Bruno Haible  <bruno@clisp.org>
2484
2485         Really work around around "broken pipe" error message from bash 3.2.
2486         * gnulib-tool (func_reset_sigpipe): Remove function.
2487         (echo): In bash 3.2, define to a function that uses printf.
2488         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
2489
2490 2010-02-20  Bruno Haible  <bruno@clisp.org>
2491
2492         Restore support for automake 1.9.6 with autoconf 2.61.
2493         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
2494         Reported by James Youngman <jay@gnu.org>.
2495
2496 2010-02-20  Bruno Haible  <bruno@clisp.org>
2497
2498         Improve *printf warning condition.
2499         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
2500         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
2501         and the function is overridden due to SIGPIPE emulation.
2502
2503 2010-02-20  Bruno Haible  <bruno@clisp.org>
2504
2505         * lib/stdio.in.h: Tweak comments.
2506
2507 2010-02-19  Bruno Haible  <bruno@clisp.org>
2508
2509         Make it easier to find modules. New gnulib-tool option '--find'.
2510         * gnulib-tool: New option --find.
2511         (func_usage): Document it.
2512         (func_sanitize_modulelist): New function, extracted from
2513         func_all_modules.
2514         (func_all_modules): Invoke it.
2515         * doc/gnulib-tool.texi (Which modules?): New node.
2516
2517 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
2518
2519         * lib/sys_select.in.h: Provide select replacement even if
2520         sys/select.h exists on a system, for Interix.
2521
2522 2010-02-18  Jim Meyering  <meyering@redhat.com>
2523
2524         init.sh: don't use $(...) just yet
2525         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
2526         to accommodate e.g., Solaris' /bin/sh.
2527
2528 2010-02-17  Bruno Haible  <bruno@clisp.org>
2529
2530         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
2531         Reported by Ludovic Courtès <ludo@gnu.org>.
2532
2533 2010-02-16  Simon Josefsson  <simon@josefsson.org>
2534
2535         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
2536         linking with -lintl.
2537
2538 2010-02-17  Simon Josefsson  <simon@josefsson.org>
2539
2540         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
2541         if not provided by the system's netdb.h.  Reported by
2542         ludo@gnu.org (Ludovic Courtès).
2543
2544 2010-02-15  Jim Meyering  <meyering@redhat.com>
2545
2546         init.sh: improve portability and efficiency
2547         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
2548         "dummy" in a for loop.
2549         Use '!', not '^' to select the complement of a character set used
2550         in a "case" statement.
2551         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
2552         Suggestions from Eric Blake.
2553
2554         init.sh: automatically accommodate programs with the .exe suffix
2555         Automatically arrange for an invocation of "prog" to execute the
2556         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
2557         may use the simpler "prog", yet still work when built on a system
2558         that requires specifying the added suffix.
2559         Do this by constructing a function named "prog" that invokes
2560         "prog.exe" for each .exe file in selected directories.
2561         * tests/init.sh (find_exe_basenames_): New function.
2562         (create_exe_shim_functions_): New function.
2563         (path_prepend_): Use it.
2564
2565         maint.mk: mark syntax-check sc_*.m rules as .PHONY
2566         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
2567         "make -t syntax-check" doesn't create a ton of sc_*.m files.
2568
2569 2010-02-14  Jim Meyering  <meyering@redhat.com>
2570
2571         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
2572         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
2573         (sc_prohibit_hash_pjw_without_use): New rule.
2574
2575         maint.mk: allow the default upload destination dir to be overridden
2576         * top/maint.mk (upload_dest_dir_): Define with a default that
2577         preserves the status quo.
2578         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
2579         Reported by Peter Simons.
2580
2581         maint.mk: prohibit inclusion of "hash.h" without_use
2582         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
2583
2584 2010-02-10  Jim Meyering  <meyering@redhat.com>
2585
2586         maint.mk: prohibit inclusion of "ignore-value.h" without_use
2587         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
2588
2589 2010-02-09  Eric Blake  <ebb9@byu.net>
2590         and Bruno Haible  <bruno@clisp.org>
2591
2592         obstack-printf-posix: ensure declaration
2593         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
2594         extracted from gl_FUNC_OBSTACK_PRINTF.
2595         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
2596         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
2597         Likewise.
2598         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
2599         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
2600         0.
2601
2602 2010-02-08  Bruno Haible  <bruno@clisp.org>
2603
2604         gnulib-tool: Fix typo in 2010-02-07 commit.
2605         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
2606         Reported by Eric Blake.
2607
2608 2010-02-07  Bruno Haible  <bruno@clisp.org>
2609
2610         gnulib-tool: Fix up caching patches.
2611         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
2612         option --no-cache. Use associative arrays when supported by the shell.
2613         (sed_comments): New variable.
2614         (modcache): Renamed from do_cache.
2615         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
2616         abbreviate unnecessarily.
2617         (have_associative): New variable.
2618         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
2619         way also for ksh and zsh.
2620         (func_init_sed_convert_to_cache_statements): New function, extracted
2621         from func_cache_lookup_module. Add support for associative arrays.
2622         Don't set the c_MODULE_cached variable here. Ignore all lines before
2623         the first field header. Remove only the final newline, not all trailing
2624         newlines. Support empty fields correctly. Limit the use of 'eval' to
2625         assignments.
2626         (func_get_description, func_get_status, func_get_notice,
2627         func_get_applicability, func_get_filelist, func_get_dependencies,
2628         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
2629         func_get_automake_snippet, func_get_include_directive,
2630         func_get_link_directive, func_get_license, func_get_maintainer):
2631         Update documentation. List the unoptimized code first. Add support for
2632         associative arrays. Limit the use of 'eval' to assignments.
2633         (func_get_applicability): Undo stylistic pessimisations.
2634         (func_get_automake_snippet, func_get_include_directive): Reduce code
2635         duplication.
2636         (func_modules_transitive_closure, func_modules_add_dummy,
2637         func_modules_notice, func_modules_to_filelist, func_add_file,
2638         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
2639         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
2640         func_create_testdir, func_create_megatestdir): Update documentation.
2641
2642 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2643
2644         * gnulib-tool (func_cache_lookup_module): Store the module name
2645         belonging to the cache variable; error out if two different
2646         module names map to the same cache variable name.
2647
2648 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2649
2650         gnulib-tool: Make caching optional.
2651         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
2652         Update matching short versions of --no-changelog.
2653         (func_usage): Update.
2654         (sed_extract_cache_prog): Renamed from ...
2655         (sed_extract_prog): ... this; revert to old extraction script.
2656         (func_get_description, func_get_status)
2657         (func_get_notice, func_get_applicability, func_get_filelist)
2658         (func_get_dependencies, func_get_autoconf_early_snippet)
2659         (func_get_autoconf_snippet, func_get_automake_snippet)
2660         (func_get_include_directive, func_get_link_directive)
2661         (func_get_license, func_get_maintainer): If $do_cache is false,
2662         use old, non-caching extraction scripts.
2663         Suggestion by Bruno Haible.
2664
2665 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2666
2667         gnulib-tool: cache module metainformation.
2668         * gnulib-tool (sed_extract_prog): Match newline before each
2669         header, and rewrite header to a shell variable suffix.
2670         (func_cache_var, func_cache_lookup_module): New functions,
2671         to turn a module name into a cache variable prefix, and to
2672         look up and cache module metainformation.
2673         (func_get_description, func_get_status)
2674         (func_get_notice, func_get_applicability, func_get_filelist)
2675         (func_get_dependencies, func_get_autoconf_early_snippet)
2676         (func_get_autoconf_snippet, func_get_automake_snippet)
2677         (func_get_include_directive, func_get_link_directive)
2678         (func_get_license, func_get_maintainer): Use
2679         func_cache_lookup_module.
2680
2681 2010-02-07  Bruno Haible  <bruno@clisp.org>
2682
2683         fnctl: Fix missing dependency.
2684         * modules/fcntl (Depends-on): Add getdtablesize.
2685         Reported by John W. Eaton <jwe@gnu.org>.
2686
2687 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
2688
2689         Argp: fix recognition of short alias options.
2690
2691         * lib/argp-parse.c (convert_options): Fix improper use of
2692         `|' between character values.
2693         * tests/test-argp.c (group1_option): New alias option
2694         --read (-r).
2695         (group1_parser): Special handling for 'r'.
2696         (test15): New test case.
2697         (test_fun): Add test15.
2698         * tests/test-argp-2.sh: Update expected --help and --usage
2699         outputs.
2700
2701 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
2702
2703         * tests/test-argp.c: Fix indentation.
2704
2705 2010-02-04  Eric Blake  <ebb9@byu.net>
2706
2707         gettimeofday: expose type of second argument
2708         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
2709         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
2710         * tests/test-gettimeofday.c: Use it to silence warning.
2711         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
2712         the issue.
2713
2714 2010-02-03  Jim Meyering  <meyering@redhat.com>
2715
2716         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
2717         * lib/regcomp.c (TYPE_SIGNED): Define.
2718         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
2719
2720         regcomp.c: avoid a new -Wshadow warning
2721         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
2722
2723 2010-02-01  Jim Meyering  <meyering@redhat.com>
2724
2725         removing useless parentheses in cpp #define directives
2726         For motivation, see commit c0221df4, "define STREQ(a,b)
2727         consistently, removing useless parentheses"
2728         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
2729         * lib/mountlist.c (MNT_IGNORE): Likewise.
2730         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
2731
2732 2010-02-01  Eric Blake  <ebb9@byu.net>
2733
2734         sys_time: use link-warning
2735         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
2736         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
2737         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
2738         * modules/sys_time (Depends-on): Add warn-on-use.
2739         (Makefile.am): Always build replacement.
2740         (configure.ac): Update substitutions.
2741         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
2742         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
2743         bother with SYS_TIME_H.
2744         * modules/gettimeofday (configure.ac): Declare indicator.
2745         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
2746         in use.
2747
2748         closein-tests: silence compiler warning
2749         * tests/test-closein.c (main): Ignore fread result.
2750         * modules/closein-tests (Depends-on): Add ignore-value.
2751
2752         tests: silence warning about system return
2753         * tests/test-areadlink-with-size.c (main): Ignore system result.
2754         * tests/test-areadlink.c (main): Likewise.
2755         * tests/test-areadlinkat-with-size.c (main): Likewise.
2756         * tests/test-areadlinkat.c (main): Likewise.
2757         * tests/test-canonicalize-lgpl.c (main): Likewise.
2758         * tests/test-canonicalize.c (main): Likewise.
2759         * tests/test-chown.c (main): Likewise.
2760         * tests/test-fchownat.c (main): Likewise.
2761         * tests/test-fdutimensat.c (main): Likewise.
2762         * tests/test-fstatat.c (main): Likewise.
2763         * tests/test-futimens.c (main): Likewise.
2764         * tests/test-lchown.c (main): Likewise.
2765         * tests/test-link.c (main): Likewise.
2766         * tests/test-linkat.c (main): Likewise.
2767         * tests/test-lstat.c (main): Likewise.
2768         * tests/test-mkdir.c (main): Likewise.
2769         * tests/test-mkdirat.c (main): Likewise.
2770         * tests/test-mkfifo.c (main): Likewise.
2771         * tests/test-mkfifoat.c (main): Likewise.
2772         * tests/test-mknod.c (main): Likewise.
2773         * tests/test-readlink.c (main): Likewise.
2774         * tests/test-remove.c (main): Likewise.
2775         * tests/test-rename.c (main): Likewise.
2776         * tests/test-renameat.c (main): Likewise.
2777         * tests/test-rmdir.c (main): Likewise.
2778         * tests/test-symlink.c (main): Likewise.
2779         * tests/test-symlinkat.c (main): Likewise.
2780         * tests/test-unlink.c (main): Likewise.
2781         * tests/test-unlinkat.c (main): Likewise.
2782         * tests/test-utimens.c (main): Likewise.
2783         * tests/test-utimensat.c (main): Likewise.
2784         * modules/areadlink-tests (Depends-on): Add ignore-value.
2785         * modules/areadlink-with-size-tests (Depends-on): Likewise.
2786         * modules/areadlinkat-tests (Depends-on): Likewise.
2787         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
2788         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
2789         * modules/canonicalize-tests (Depends-on): Likewise.
2790         * modules/chown-tests (Depends-on): Likewise.
2791         * modules/fdutimensat-tests (Depends-on): Likewise.
2792         * modules/futimens-tests (Depends-on): Likewise.
2793         * modules/lchown-tests (Depends-on): Likewise.
2794         * modules/link-tests (Depends-on): Likewise.
2795         * modules/linkat-tests (Depends-on): Likewise.
2796         * modules/lstat-tests (Depends-on): Likewise.
2797         * modules/mkdir-tests (Depends-on): Likewise.
2798         * modules/mkfifo-tests (Depends-on): Likewise.
2799         * modules/mkfifoat-tests (Depends-on): Likewise.
2800         * modules/mknod-tests (Depends-on): Likewise.
2801         * modules/openat-tests (Depends-on): Likewise.
2802         * modules/readlink-tests (Depends-on): Likewise.
2803         * modules/remove-tests (Depends-on): Likewise.
2804         * modules/rename-tests (Depends-on): Likewise.
2805         * modules/renameat-tests (Depends-on): Likewise.
2806         * modules/rmdir-tests (Depends-on): Likewise.
2807         * modules/symlink-tests (Depends-on): Likewise.
2808         * modules/symlinkat-tests (Depends-on): Likewise.
2809         * modules/unlink-tests (Depends-on): Likewise.
2810         * modules/utimens-tests (Depends-on): Likewise.
2811         * modules/utimensat-tests (Depends-on): Likewise.
2812
2813 2010-01-31  Bruno Haible  <bruno@clisp.org>
2814
2815         Perform the same test for many <math.h> functions.
2816         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
2817         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
2818         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
2819         of gl_MATHFUNC.
2820         * modules/acos (configure.ac): Likewise.
2821         * modules/asin (configure.ac): Likewise.
2822         * modules/atan (configure.ac): Likewise.
2823         * modules/atan2 (configure.ac): Likewise.
2824         * modules/cbrt (configure.ac): Likewise.
2825         * modules/copysign (configure.ac): Likewise.
2826         * modules/cos (configure.ac): Likewise.
2827         * modules/cosh (configure.ac): Likewise.
2828         * modules/erf (configure.ac): Likewise.
2829         * modules/erfc (configure.ac): Likewise.
2830         * modules/exp (configure.ac): Likewise.
2831         * modules/fmod (configure.ac): Likewise.
2832         * modules/hypot (configure.ac): Likewise.
2833         * modules/j0 (configure.ac): Likewise.
2834         * modules/j1 (configure.ac): Likewise.
2835         * modules/jn (configure.ac): Likewise.
2836         * modules/lgamma (configure.ac): Likewise.
2837         * modules/log (configure.ac): Likewise.
2838         * modules/log10 (configure.ac): Likewise.
2839         * modules/log1p (configure.ac): Likewise.
2840         * modules/pow (configure.ac): Likewise.
2841         * modules/remainder (configure.ac): Likewise.
2842         * modules/sin (configure.ac): Likewise.
2843         * modules/sinh (configure.ac): Likewise.
2844         * modules/tan (configure.ac): Likewise.
2845         * modules/tanh (configure.ac): Likewise.
2846         * modules/y0 (configure.ac): Likewise.
2847         * modules/y1 (configure.ac): Likewise.
2848         * modules/yn (configure.ac): Likewise.
2849         Suggested by Paolo Bonzini.
2850
2851 2010-01-31  Bruno Haible  <bruno@clisp.org>
2852
2853         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
2854
2855 2010-01-31  Bruno Haible  <bruno@clisp.org>
2856
2857         Work around getdelim() bug on FreeBSD 8.0.
2858         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
2859         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
2860         not work.
2861         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
2862         is 1.
2863         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
2864         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
2865         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
2866         a non-zero size.
2867         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
2868
2869 2010-01-31  Bruno Haible  <bruno@clisp.org>
2870
2871         Work around getline() bug on FreeBSD 8.0.
2872         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
2873         and a non-zero size.
2874         * tests/test-getline.c (main): Likewise.
2875         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
2876         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
2877
2878 2010-01-28  Eric Blake  <ebb9@byu.net>
2879
2880         regex: fix build failure
2881         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
2882         platforms.
2883
2884 2010-01-28  Jim Meyering  <meyering@redhat.com>
2885
2886         regex: do not ignore memory allocation failure
2887         * lib/regex_internal.c (create_cd_newstate): Detect
2888         re_node_set_init_copy failure.   Extracted from glibc commit
2889         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2890
2891         regex: sync more white-space changes from libc
2892         * lib/regex_internal.c: White-space only changes.
2893         * lib/regexec.c: Likewise.
2894
2895         regex: add many uses of __attribute_warn_unused_result__
2896         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
2897         * lib/regexec.c: Likewise.
2898         Extracted from a messy glibc commit.
2899
2900         regcomp.c: spelling and merge-artifact from glibc
2901         * lib/regcomp.c: Merge remainder of glibc's
2902         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2903
2904         regcomp.c: sync white-space changes from glibc
2905         * lib/regcomp.c: Merge to accommodate white space
2906         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
2907
2908         regcomp.c: do not ignore internal return values
2909         * lib/regcomp.c: Do not ignore internal return values.
2910         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
2911         but without its white-space changes and spelling fixes.
2912
2913         regex_internal.h: define __attribute_warn_unused_result__
2914         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
2915
2916         maint: add a syntax-check rule to check for vulnerable Makefile.in
2917         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
2918
2919 2010-01-27  Jim Meyering  <meyering@redhat.com>
2920
2921         ncftpput-ftp: clean up spaces
2922         * build-aux/ncftpput-ftp: Make Copyright line consistent.
2923         Remove trailing blanks.
2924
2925 2010-01-27  Simon Josefsson  <simon@josefsson.org>
2926
2927         * build-aux/git-version-gen: Fix copyright statement.
2928         * build-aux/gnupload: Likewise.
2929         * tests/test-arcfour.c: Likewise.
2930         * tests/test-arctwo.c: Likewise.
2931         * tests/test-count-one-bits.c: Likewise.
2932         * tests/test-crc.c: Likewise.
2933         * tests/test-des.c: Likewise.
2934         * tests/test-gc-arcfour.c: Likewise.
2935         * tests/test-gc-arctwo.c: Likewise.
2936         * tests/test-gc-des.c: Likewise.
2937         * tests/test-gc-hmac-md5.c: Likewise.
2938         * tests/test-gc-hmac-sha1.c: Likewise.
2939         * tests/test-gc-md2.c: Likewise.
2940         * tests/test-gc-md4.c: Likewise.
2941         * tests/test-gc-md5.c: Likewise.
2942         * tests/test-gc-pbkdf2-sha1.c: Likewise.
2943         * tests/test-gc-rijndael.c: Likewise.
2944         * tests/test-gc-sha1.c: Likewise.
2945         * tests/test-gc.c: Likewise.
2946         * tests/test-gethostname.c: Likewise.
2947         * tests/test-gettimeofday.c: Likewise.
2948         * tests/test-hash.c: Likewise.
2949         * tests/test-hmac-md5.c: Likewise.
2950         * tests/test-hmac-sha1.c: Likewise.
2951         * tests/test-md2.c: Likewise.
2952         * tests/test-md4.c: Likewise.
2953         * tests/test-md5.c: Likewise.
2954         * tests/test-memchr.c: Likewise.
2955         * tests/test-memchr2.c: Likewise.
2956         * tests/test-memcmp.c: Likewise.
2957         * tests/test-memmem.c: Likewise.
2958         * tests/test-memrchr.c: Likewise.
2959         * tests/test-rawmemchr.c: Likewise.
2960         * tests/test-read-file.c: Likewise.
2961         * tests/test-rijndael.c: Likewise.
2962         * tests/test-sockets.c: Likewise.
2963         * tests/test-strchrnul.c: Likewise.
2964         * tests/test-strstr.c: Likewise.
2965         * tests/test-strtod.c: Likewise.
2966         * build-aux/ncftpput-ftp: Likewise.
2967
2968 2010-01-26  Eric Blake  <ebb9@byu.net>
2969
2970         ignore-value: update recommended header name
2971         * modules/ignore-value (Include): Only use <> for headers that
2972         exist in glibc.
2973
2974 2010-01-26  Jim Meyering  <meyering@redhat.com>
2975
2976         test-userspec.c: avoid compiler warnings
2977         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
2978         and "initialization discards qualifiers..." warnings.
2979         Put the first "uid" in its own scope, and make char* members "const".
2980
2981 2010-01-25  Bruno Haible  <bruno@clisp.org>
2982
2983         gnulib-tool: Make warning diagnostics consistent.
2984         * gnulib-tool (func_warning): New function.
2985         Use it everywhere where gnulib-tool produces output to stderr and it is
2986         not a fatal error.
2987
2988 2010-01-25  Bruno Haible  <bruno@clisp.org>
2989
2990         Fix test dependencies.
2991         * modules/xstrtol-tests (Depends-on): Add inttypes.
2992         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
2993
2994 2010-01-25 Pádraig Brady <P@draigBrady.com>
2995
2996         syntax-check: detect incorrect boolean macro values in config.h
2997         * modules/maintainer-makefile (configure.ac): Parameterize the location
2998         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
2999         The logic is from Eric Blake and the location indicated by Jim Meyering.
3000         Note the more natural CONFIG_HEADER name is prohibited by automake
3001         for backwards compatibility reasons.
3002         * top/maint.mk (sc_Wundef_boolean): New rule.
3003
3004 2010-01-25  Jim Meyering  <meyering@redhat.com>
3005
3006         bootstrap: detect MacOS 10.6's shasum, too
3007         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
3008         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
3009
3010 2010-01-23  Jim Meyering  <meyering@redhat.com>
3011
3012         xstrtoll: new module
3013         * modules/xstrtoll: New file.
3014         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
3015         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
3016         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
3017         ./configure fails if you use this module and lack "long long".
3018         * modules/xstrtoll-tests: New module.
3019         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
3020         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
3021         new init.sh-based test framework.
3022
3023 2010-01-24  Bruno Haible  <bruno@clisp.org>
3024
3025         Tests for module 'yn'.
3026         * modules/yn-tests: New file.
3027         * tests/test-yn.c: New file.
3028
3029         Tests for module 'y1'.
3030         * modules/y1-tests: New file.
3031         * tests/test-y1.c: New file.
3032
3033         Tests for module 'y0'.
3034         * modules/y0-tests: New file.
3035         * tests/test-y0.c: New file.
3036
3037         Tests for module 'tanh'.
3038         * modules/tanh-tests: New file.
3039         * tests/test-tanh.c: New file.
3040
3041         Tests for module 'tan'.
3042         * modules/tan-tests: New file.
3043         * tests/test-tan.c: New file.
3044
3045         Tests for module 'sqrt'.
3046         * modules/sqrt-tests: New file.
3047         * tests/test-sqrt.c: New file.
3048
3049         Tests for module 'sinh'.
3050         * modules/sinh-tests: New file.
3051         * tests/test-sinh.c: New file.
3052
3053         Tests for module 'sin'.
3054         * modules/sin-tests: New file.
3055         * tests/test-sin.c: New file.
3056
3057         Tests for module 'rint'.
3058         * modules/rint-tests: New file.
3059         * tests/test-rint.c: New file.
3060
3061         Tests for module 'remainder'.
3062         * modules/remainder-tests: New file.
3063         * tests/test-remainder.c: New file.
3064
3065         Tests for module 'pow'.
3066         * modules/pow-tests: New file.
3067         * tests/test-pow.c: New file.
3068
3069         Tests for module 'nextafter'.
3070         * modules/nextafter-tests: New file.
3071         * tests/test-nextafter.c: New file.
3072
3073         Tests for module 'modf'.
3074         * modules/modf-tests: New file.
3075         * tests/test-modf.c: New file.
3076
3077         Tests for module 'logb'.
3078         * modules/logb-tests: New file.
3079         * tests/test-logb.c: New file.
3080
3081         Tests for module 'log1p'.
3082         * modules/log1p-tests: New file.
3083         * tests/test-log1p.c: New file.
3084
3085         Tests for module 'log10'.
3086         * modules/log10-tests: New file.
3087         * tests/test-log10.c: New file.
3088
3089         Tests for module 'log'.
3090         * modules/log-tests: New file.
3091         * tests/test-log.c: New file.
3092
3093         Tests for module 'lgamma'.
3094         * modules/lgamma-tests: New file.
3095         * tests/test-lgamma.c: New file.
3096
3097         Tests for module 'ldexp'.
3098         * modules/ldexp-tests: New file.
3099         * tests/test-ldexp.c: New file.
3100
3101         Tests for module 'jn'.
3102         * modules/jn-tests: New file.
3103         * tests/test-jn.c: New file.
3104
3105         Tests for module 'j1'.
3106         * modules/j1-tests: New file.
3107         * tests/test-j1.c: New file.
3108
3109         Tests for module 'j0'.
3110         * modules/j0-tests: New file.
3111         * tests/test-j0.c: New file.
3112
3113         Tests for module 'hypot'.
3114         * modules/hypot-tests: New file.
3115         * tests/test-hypot.c: New file.
3116
3117         Tests for module 'fmod'.
3118         * modules/fmod-tests: New file.
3119         * tests/test-fmod.c: New file.
3120
3121         Tests for module 'fabs'.
3122         * modules/fabs-tests: New file.
3123         * tests/test-fabs.c: New file.
3124
3125         Tests for module 'exp'.
3126         * modules/exp-tests: New file.
3127         * tests/test-exp.c: New file.
3128
3129         Tests for module 'erfc'.
3130         * modules/erfc-tests: New file.
3131         * tests/test-erfc.c: New file.
3132
3133         Tests for module 'erf'.
3134         * modules/erf-tests: New file.
3135         * tests/test-erf.c: New file.
3136
3137         Tests for module 'cosh'.
3138         * modules/cosh-tests: New file.
3139         * tests/test-cosh.c: New file.
3140
3141         Tests for module 'cos'.
3142         * modules/cos-tests: New file.
3143         * tests/test-cos.c: New file.
3144
3145         Tests for module 'copysign'.
3146         * modules/copysign-tests: New file.
3147         * tests/test-copysign.c: New file.
3148
3149         Tests for module 'cbrt'.
3150         * modules/cbrt-tests: New file.
3151         * tests/test-cbrt.c: New file.
3152
3153         Tests for module 'atan2'.
3154         * modules/atan2-tests: New file.
3155         * tests/test-atan2.c: New file.
3156
3157         Tests for module 'atan'.
3158         * modules/atan-tests: New file.
3159         * tests/test-atan.c: New file.
3160
3161         Tests for module 'asin'.
3162         * modules/asin-tests: New file.
3163         * tests/test-asin.c: New file.
3164
3165         Tests for module 'acos'.
3166         * modules/acos-tests: New file.
3167         * tests/test-acos.c: New file.
3168
3169 2010-01-24  Bruno Haible  <bruno@clisp.org>
3170
3171         Fix tests for common <math.h> functions.
3172         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
3173         code snippet that references the function pointer, rather than merely
3174         calling the function. Substitute the FUNC_LIBM variable.
3175         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
3176         * modules/acos (configure.ac): Likewise.
3177         * modules/asin (configure.ac): Likewise.
3178         * modules/atan (configure.ac): Likewise.
3179         * modules/atan2 (configure.ac): Likewise.
3180         * modules/cbrt (configure.ac): Likewise.
3181         * modules/copysign (configure.ac): Likewise.
3182         * modules/cos (configure.ac): Likewise.
3183         * modules/cosh (configure.ac): Likewise.
3184         * modules/erf (configure.ac): Likewise.
3185         * modules/erfc (configure.ac): Likewise.
3186         * modules/exp (configure.ac): Likewise.
3187         * modules/fabs (configure.ac): Likewise.
3188         * modules/fmod (configure.ac): Likewise.
3189         * modules/hypot (configure.ac): Likewise.
3190         * modules/j0 (configure.ac): Likewise.
3191         * modules/j1 (configure.ac): Likewise.
3192         * modules/jn (configure.ac): Likewise.
3193         * modules/ldexp (configure.ac): Likewise.
3194         * modules/lgamma (configure.ac): Likewise.
3195         * modules/log (configure.ac): Likewise.
3196         * modules/log10 (configure.ac): Likewise.
3197         * modules/log1p (configure.ac): Likewise.
3198         * modules/logb (configure.ac): Likewise.
3199         * modules/modf (configure.ac): Likewise.
3200         * modules/nextafter (configure.ac): Likewise.
3201         * modules/pow (configure.ac): Likewise.
3202         * modules/remainder (configure.ac): Likewise.
3203         * modules/rint (configure.ac): Likewise.
3204         * modules/sin (configure.ac): Likewise.
3205         * modules/sinh (configure.ac): Likewise.
3206         * modules/tan (configure.ac): Likewise.
3207         * modules/tanh (configure.ac): Likewise.
3208         * modules/y0 (configure.ac): Likewise.
3209         * modules/y1 (configure.ac): Likewise.
3210         * modules/yn (configure.ac): Likewise.
3211
3212 2010-01-24  Bruno Haible  <bruno@clisp.org>
3213
3214         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
3215         * tests/test-acosl.c (x): New variable.
3216         (main): Store argument in x and fetch it from x.
3217         * tests/test-asinl.c (x): New variable.
3218         (main): Store argument in x and fetch it from x.
3219         * tests/test-atanl.c (x): New variable.
3220         (main): Store argument in x and fetch it from x.
3221         * tests/test-cosl.c (x): New variable.
3222         (main): Store argument in x and fetch it from x.
3223         * tests/test-expl.c (x): New variable.
3224         (main): Store argument in x and fetch it from x.
3225         * tests/test-logl.c (x): New variable.
3226         (main): Store argument in x and fetch it from x.
3227         * tests/test-sinl.c (x): New variable.
3228         (main): Store argument in x and fetch it from x.
3229         * tests/test-sqrtl.c (x): New variable.
3230         (main): Store argument in x and fetch it from x.
3231         * tests/test-tanl.c (x): New variable.
3232         (main): Store argument in x and fetch it from x.
3233
3234 2010-01-24  Bruno Haible  <bruno@clisp.org>
3235
3236         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
3237         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
3238         assignments to the initial TESTS_ENVIRONMENT.
3239         * doc/gnulib.texi (Unit test modules): Document it.
3240         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
3241         TESTS_ENVIRONMENT.
3242         * modules/btowc-tests (Makefile.am): Likewise.
3243         * modules/c-stack-tests (Makefile.am): Likewise.
3244         * modules/c-strcase-tests (Makefile.am): Likewise.
3245         * modules/copy-file-tests (Makefile.am): Likewise.
3246         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
3247         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
3248         * modules/mbrtowc-tests (Makefile.am): Likewise.
3249         * modules/mbscasecmp-tests (Makefile.am): Likewise.
3250         * modules/mbscasestr-tests (Makefile.am): Likewise.
3251         * modules/mbschr-tests (Makefile.am): Likewise.
3252         * modules/mbscspn-tests (Makefile.am): Likewise.
3253         * modules/mbsinit-tests (Makefile.am): Likewise.
3254         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
3255         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
3256         * modules/mbspbrk-tests (Makefile.am): Likewise.
3257         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
3258         * modules/mbsrchr-tests (Makefile.am): Likewise.
3259         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
3260         * modules/mbsspn-tests (Makefile.am): Likewise.
3261         * modules/mbsstr-tests (Makefile.am): Likewise.
3262         * modules/nl_langinfo-tests (Makefile.am): Likewise.
3263         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
3264         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
3265         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
3266         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
3267         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
3268         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
3269         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
3270         * modules/wcrtomb-tests (Makefile.am): Likewise.
3271         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
3272         * modules/wcsrtombs-tests (Makefile.am): Likewise.
3273         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
3274         assignments from TESTS_ENVIRONMENT.
3275         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
3276         augmentation.
3277         * modules/argp-version-etc-tests (Makefile.am): Likewise.
3278         * modules/atexit-tests (Makefile.am): Likewise.
3279         * modules/binary-io-tests (Makefile.am): Likewise.
3280         * modules/closein-tests (Makefile.am): Likewise.
3281         * modules/dprintf-posix-tests (Makefile.am): Likewise.
3282         * modules/exclude-tests (Makefile.am): Likewise.
3283         * modules/fflush-tests (Makefile.am): Likewise.
3284         * modules/fpending-tests (Makefile.am): Likewise.
3285         * modules/fprintf-posix-tests (Makefile.am): Likewise.
3286         * modules/freadahead-tests (Makefile.am): Likewise.
3287         * modules/freadptr-tests (Makefile.am): Likewise.
3288         * modules/freadseek-tests (Makefile.am): Likewise.
3289         * modules/fseek-tests (Makefile.am): Likewise.
3290         * modules/fseeko-tests (Makefile.am): Likewise.
3291         * modules/ftell-tests (Makefile.am): Likewise.
3292         * modules/ftello-tests (Makefile.am): Likewise.
3293         * modules/idpriv-drop-tests (Makefile.am): Likewise.
3294         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
3295         * modules/lseek-tests (Makefile.am): Likewise.
3296         * modules/parse-duration-tests (Makefile.am): Likewise.
3297         * modules/perror-tests (Makefile.am): Likewise.
3298         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
3299         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
3300         * modules/pipe-tests (Makefile.am): Likewise.
3301         * modules/pread-tests (Makefile.am): Likewise.
3302         * modules/printf-posix-tests (Makefile.am): Likewise.
3303         * modules/select-tests (Makefile.am): Likewise.
3304         * modules/sigpipe-tests (Makefile.am): Likewise.
3305         * modules/tsearch-tests (Makefile.am): Likewise.
3306         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
3307         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
3308         * modules/uniname/uniname-tests (Makefile.am): Likewise.
3309         * modules/uniwidth/width-tests (Makefile.am): Likewise.
3310         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
3311         * modules/version-etc-tests (Makefile.am): Likewise.
3312         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
3313         * modules/vprintf-posix-tests (Makefile.am): Likewise.
3314         * modules/xalloc-die-tests (Makefile.am): Likewise.
3315         * modules/xprintf-posix-tests (Makefile.am): Likewise.
3316         * modules/xstrtoimax-tests (Makefile.am): Likewise.
3317         * modules/xstrtol-tests (Makefile.am): Likewise.
3318         * modules/xstrtoumax-tests (Makefile.am): Likewise.
3319         * modules/yesno-tests (Makefile.am): Likewise.
3320         Suggested by Jim Meyering.
3321
3322 2010-01-24  Bruno Haible  <bruno@clisp.org>
3323
3324         More documentation.
3325         * doc/gnulib.texi (Writing modules): New chapter.
3326         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
3327         the new chapter.
3328
3329 2010-01-24  Jim Meyering  <meyering@redhat.com>
3330
3331         maint.mk: do not prepend "./" after filtering
3332         * top/maint.mk (_prepend_srcdir_prefix): New variable
3333         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
3334         "./" when $(srcdir) is ".".
3335
3336         define STREQ(a,b) consistently, removing useless parentheses
3337         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
3338         since the only risk is that "a" or "b" contains an unparenthesized
3339         comma, but if either did that, STREQ would have 3 or more arguments.
3340         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
3341         * lib/fts.c (STREQ): Remove unnecessary parentheses.
3342         * lib/hash-triple.c (STREQ): Likewise.
3343         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
3344         * lib/getugroups.c (STREQ): Likewise.
3345
3346 2010-01-23  Jim Meyering  <meyering@redhat.com>
3347
3348         maint.mk: fix syntax-check in a non-srcdir build directory
3349         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
3350         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
3351
3352 2010-01-22  Jim Meyering  <meyering@redhat.com>
3353
3354         userspec: add unit tests
3355         * tests/test-userspec.c: New file.
3356         * modules/userspec-tests: Likewise.
3357
3358 2010-01-21  Jim Meyering  <meyering@redhat.com>
3359
3360         maint.mk: handle source file names containing "." robustly
3361         * top/maint.mk (_dot_escaped_srcdir): Define.
3362         (VC_LIST): Use it in LHS of sed substitution.
3363
3364 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
3365
3366         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
3367         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
3368         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
3369         from a non-srcdir build.
3370
3371 2010-01-20  Eric Blake  <ebb9@byu.net>
3372
3373         warn-on-use: use instead of link-warning
3374         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
3375         * modules/unistd (Depends-on, Makefile.am): Likewise.
3376         * modules/arpa_inet (Depends-on): Replace link-warning with
3377         warn-on-use.
3378         (Makefile.am): Update rules accordingly.
3379         * modules/ctype (Depends-on, Makefile.am): Likewise.
3380         * modules/dirent (Depends-on, Makefile.am): Likewise.
3381         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
3382         * modules/inttypes (Depends-on, Makefile.am): Likewise.
3383         * modules/langinfo (Depends-on, Makefile.am): Likewise.
3384         * modules/locale (Depends-on, Makefile.am): Likewise.
3385         * modules/math (Depends-on, Makefile.am): Likewise.
3386         * modules/search (Depends-on, Makefile.am): Likewise.
3387         * modules/signal (Depends-on, Makefile.am): Likewise.
3388         * modules/spawn (Depends-on, Makefile.am): Likewise.
3389         * modules/stdlib (Depends-on, Makefile.am): Likewise.
3390         * modules/string (Depends-on, Makefile.am): Likewise.
3391         * modules/strings (Depends-on, Makefile.am): Likewise.
3392         * modules/sys_file (Depends-on, Makefile.am): Likewise.
3393         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
3394         * modules/sys_select (Depends-on, Makefile.am): Likewise.
3395         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
3396         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
3397         * modules/sys_times (Depends-on, Makefile.am): Likewise.
3398         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
3399         * modules/wchar (Depends-on, Makefile.am): Likewise.
3400         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
3401         should be poisoned.
3402         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
3403         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
3404         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
3405         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
3406         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
3407         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
3408         * m4/math_h.m4 (gl_MATH_H): Likewise.
3409         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
3410         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
3411         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3412         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
3413         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
3414         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
3415         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
3416         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
3417         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
3418         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3419         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
3420         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
3421         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3422         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
3423         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3424         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
3425         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
3426         GL_LINK_WARNING.
3427         * lib/ctype.in.h: Likewise.
3428         * lib/dirent.in.h: Likewise.
3429         * lib/fcntl.in.h: Likewise.
3430         * lib/inttypes.in.h: Likewise.
3431         * lib/langinfo.in.h: Likewise.
3432         * lib/locale.in.h: Likewise.
3433         * lib/math.in.h: Likewise.
3434         * lib/search.in.h: Likewise.
3435         * lib/signal.in.h: Likewise.
3436         * lib/spawn.in.h: Likewise.
3437         * lib/stdio.in.h: Likewise.
3438         * lib/stdlib.in.h: Likewise.
3439         * lib/string.in.h: Likewise.
3440         * lib/strings.in.h: Likewise.
3441         * lib/sys_file.in.h: Likewise.
3442         * lib/sys_ioctl.in.h: Likewise.
3443         * lib/sys_select.in.h: Likewise.
3444         * lib/sys_socket.in.h: Likewise.
3445         * lib/sys_stat.in.h: Likewise.
3446         * lib/sys_times.in.h: Likewise.
3447         * lib/sys_utsname.in.h: Likewise.
3448         * lib/unistd.in.h: Likewise.
3449         * lib/wchar.in.h: Likewise.
3450
3451 2010-01-20  Bruno Haible  <bruno@clisp.org>
3452
3453         Avoid duplicate -lm.
3454         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
3455         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
3456         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
3457         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
3458         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
3459         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
3460         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
3461         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
3462         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
3463         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
3464         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
3465         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
3466         Reported by Paolo Bonzini.
3467
3468 2010-01-19  Bruno Haible  <bruno@clisp.org>
3469
3470         langinfo, nl_langinfo: Relicense under LGPLv2+.
3471         * modules/langinfo (License): Change to LGPLv2+.
3472         * modules/nl_langinfo (License): Likewise.
3473         Patch by David Lutterkort <lutter@redhat.com>.
3474
3475 2010-01-19  Bruno Haible  <bruno@clisp.org>
3476
3477         Avoid compilation error with cc on OSF/1 5.1.
3478         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
3479         statement, not before.
3480         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3481
3482 2010-01-18  Bruno Haible  <bruno@clisp.org>
3483
3484         Avoid a link error due to the __printf__ symbol.
3485         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
3486         and 2.6.x.
3487         (__format__, __printf__): Remove definitions.
3488         * lib/argp-fmtstream.h: Likewise.
3489         * lib/argp.h: Likewise.
3490         * lib/error.h: Likewise.
3491         * lib/vasnprintf.h: Likewise.
3492         * lib/xprintf.h: Likewise.
3493         * lib/xvasprintf.h: Likewise.
3494         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3495
3496 2010-01-18  Bruno Haible  <bruno@clisp.org>
3497
3498         Tests for module 'tanl'.
3499         * modules/tanl-tests: New file.
3500         * tests/test-tanl.c: New file.
3501
3502         Tests for module 'sqrtl'.
3503         * modules/sqrtl-tests: New file.
3504         * tests/test-sqrtl.c: New file.
3505
3506         Tests for module 'sinl'.
3507         * modules/sinl-tests: New file.
3508         * tests/test-sinl.c: New file.
3509
3510         Tests for module 'logl'.
3511         * modules/logl-tests: New file.
3512         * tests/test-logl.c: New file.
3513
3514         Tests for module 'expl'.
3515         * modules/expl-tests: New file.
3516         * tests/test-expl.c: New file.
3517
3518         Tests for module 'cosl'.
3519         * modules/cosl-tests: New file.
3520         * tests/test-cosl.c: New file.
3521
3522         Tests for module 'atanl'.
3523         * modules/atanl-tests: New file.
3524         * tests/test-atanl.c: New file.
3525
3526         Tests for module 'asinl'.
3527         * modules/asinl-tests: New file.
3528         * tests/test-asinl.c: New file.
3529
3530         Tests for module 'acosl'.
3531         * modules/acosl-tests: New file.
3532         * tests/test-acosl.c: New file.
3533
3534         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
3535         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
3536         tanl): Use the standard gnulib idiom.
3537         * lib/cosl.c: Don't include trigl.c and sincosl.c.
3538         * lib/sinl.c: Likewise.
3539         * lib/tanl.c: Don't include trigl.c.
3540         (kernel_tanl): Make static.
3541         * lib/sincosl.c: Include trigl.h first.
3542         * lib/trigl.c: Likewise.
3543         * m4/acosl.m4: New file.
3544         * m4/asinl.m4: New file.
3545         * m4/atanl.m4: New file.
3546         * m4/cosl.m4: New file.
3547         * m4/expl.m4: New file.
3548         * m4/logl.m4: New file.
3549         * m4/sinl.m4: New file.
3550         * m4/sqrtl.m4: New file.
3551         * m4/tanl.m4: New file.
3552         * m4/mathl.m4: Remove file.
3553         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
3554         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
3555         Don't initialize GNULIB_MATHL.
3556         * modules/acosl: New file.
3557         * modules/asinl: New file.
3558         * modules/atanl: New file.
3559         * modules/cosl: New file.
3560         * modules/expl: New file.
3561         * modules/logl: New file.
3562         * modules/sinl: New file.
3563         * modules/sqrtl: New file.
3564         * modules/tanl: New file.
3565         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
3566         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
3567         substitute GNULIB_MATHL.
3568         * modules/mathl: Rewritten.
3569         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
3570         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
3571         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
3572         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
3573         * doc/posix-functions/expl.texi: Mention the 'expl' module.
3574         * doc/posix-functions/logl.texi: Mention the 'logl' module.
3575         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
3576         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
3577         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
3578
3579 2010-01-18  Bruno Haible  <bruno@clisp.org>
3580
3581         sqrt: Make gl_FUNC_SQRT requirable.
3582         * m4/sqrt.m4: New file.
3583         * modules/sqrt (Files): Add it.
3584         (configure.ac): Invoke gl_FUNC_SQRT.
3585
3586 2010-01-18  Bruno Haible  <bruno@clisp.org>
3587
3588         New modules for common <math.h> functions.
3589         * m4/mathfunc.m4: New file.
3590         * modules/acos: New file.
3591         * modules/asin: New file.
3592         * modules/atan: New file.
3593         * modules/atan2: New file.
3594         * modules/cbrt: New file.
3595         * modules/copysign: New file.
3596         * modules/cos: New file.
3597         * modules/cosh: New file.
3598         * modules/erf: New file.
3599         * modules/erfc: New file.
3600         * modules/exp: New file.
3601         * modules/fabs: New file.
3602         * modules/fmod: New file.
3603         * modules/hypot: New file.
3604         * modules/j0: New file.
3605         * modules/j1: New file.
3606         * modules/jn: New file.
3607         * modules/ldexp: New file.
3608         * modules/lgamma: New file.
3609         * modules/log: New file.
3610         * modules/log10: New file.
3611         * modules/log1p: New file.
3612         * modules/logb: New file.
3613         * modules/modf: New file.
3614         * modules/nextafter: New file.
3615         * modules/pow: New file.
3616         * modules/remainder: New file.
3617         * modules/rint: New file.
3618         * modules/sin: New file.
3619         * modules/sinh: New file.
3620         * modules/sqrt: New file.
3621         * modules/tan: New file.
3622         * modules/tanh: New file.
3623         * modules/y0: New file.
3624         * modules/y1: New file.
3625         * modules/yn: New file.
3626         * doc/posix-functions/acos.texi: Mention the 'acos' module.
3627         * doc/posix-functions/asin.texi: Mention the 'asin' module.
3628         * doc/posix-functions/atan.texi: Mention the 'atan' module.
3629         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
3630         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
3631         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
3632         * doc/posix-functions/cos.texi: Mention the 'cos' module.
3633         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
3634         * doc/posix-functions/erf.texi: Mention the 'erf' module.
3635         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
3636         * doc/posix-functions/exp.texi: Mention the 'exp' module.
3637         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
3638         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
3639         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
3640         * doc/posix-functions/j0.texi: Mention the 'j0' module.
3641         * doc/posix-functions/j1.texi: Mention the 'j1' module.
3642         * doc/posix-functions/jn.texi: Mention the 'jn' module.
3643         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
3644         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
3645         * doc/posix-functions/log.texi: Mention the 'log' module.
3646         * doc/posix-functions/log10.texi: Mention the 'log10' module.
3647         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
3648         * doc/posix-functions/logb.texi: Mention the 'logb' module.
3649         * doc/posix-functions/modf.texi: Mention the 'modf' module.
3650         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
3651         * doc/posix-functions/pow.texi: Mention the 'pow' module.
3652         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
3653         * doc/posix-functions/rint.texi: Mention the 'rint' module.
3654         * doc/posix-functions/sin.texi: Mention the 'sin' module.
3655         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
3656         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
3657         * doc/posix-functions/tan.texi: Mention the 'tan' module.
3658         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
3659         * doc/posix-functions/y0.texi: Mention the 'y0' module.
3660         * doc/posix-functions/y1.texi: Mention the 'y1' module.
3661         * doc/posix-functions/yn.texi: Mention the 'yn' module.
3662
3663 2010-01-18  Jim Meyering  <meyering@redhat.com>
3664
3665         ignore-value: relax license to LGPLv2+
3666         * modules/ignore-value (License): Relax to LGPLv2+.
3667
3668         getdate: don't leak when TZ contains two or more '"'s
3669         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
3670         double quote in TZ after the first one.
3671
3672         readtokens: do not leak internal token_lengths buffer
3673         * lib/readtokens.c (readtokens): Free the local, lengths,
3674         when the supplied "token_lengths" parameter is NULL.
3675
3676 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3677
3678         Fix a couple of missing LIBTHREAD link failures on AIX.
3679         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
3680         $(LIBTHREAD).
3681         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
3682
3683         Link test-poll against INET_PTON_LIB.
3684         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
3685         for inet_pton on Solaris 10.
3686
3687 2010-01-17  Bruno Haible  <bruno@clisp.org>
3688
3689         unistdio/*-sprintf: Fix typo in module description.
3690         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
3691         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
3692         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
3693         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
3694         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
3695         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
3696         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
3697         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3698
3699 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3700
3701         gnulib-tool: fix filelist for AIX, HP-UX ksh.
3702         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
3703         variables in shell case patterns, for AIX and HP-UX ksh.
3704
3705         Split large sed scripts, for HP-UX sed.
3706         * modules/stdio: Split sed scripts around 50 sed commands,
3707         to avoid HP-UX limit of 99 commands, in the near future.
3708         * modules/string: Likewise.
3709         * modules/unistd: Likewise.
3710
3711         gnulib-tool: avoid writing in the current directory.
3712         * gnulib-tool (func_emit_lib_Makefile_am)
3713         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
3714         not in the current directory, so concurrent gnulib-tool
3715         instances do not interfere.
3716
3717 2010-01-16  Jim Meyering  <meyering@redhat.com>
3718
3719         doc: update users.txt
3720         * users.txt: Add grep.
3721         (diffutils, gzip): Update URLs.
3722
3723 2010-01-12  Bruno Haible  <bruno@clisp.org>
3724
3725         posix_spawn: Avoid test failure on Cygwin.
3726         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
3727         characters.
3728         Reported by Simon Josefsson.
3729
3730 2010-01-12  Bruno Haible  <bruno@clisp.org>
3731
3732         * tests/test-cond.c (main): When skipping the test, show the reason.
3733
3734 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3735
3736         * lib/striconv.c (str_cd_iconv): Avoid if before free.
3737
3738 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3739
3740         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
3741         VC_LIST_ALWAYS_EXCLUDE_REGEX.
3742
3743 2010-01-12  Eric Blake  <ebb9@byu.net>
3744
3745         build: guarantee AS_VAR_IF
3746         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
3747         (gl_AS_VAR_IF): Move...
3748         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
3749         Reported by Simon Josefsson.
3750
3751 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3752
3753         * lib/stdio.in.h: Fix typo.
3754
3755 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3756
3757         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
3758         libgpg-error.
3759
3760 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3761
3762         * tests/test-xalloc-die.sh: Use $EXEEXT.
3763
3764 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3765             Bruno Haible  <bruno@clisp.org>
3766
3767         getlogin, getlogin_r: Avoid test failure.
3768         * tests/test-getlogin.c: Include <stdio.h>.
3769         (main): Skip the test when the function fails because stdin is not a
3770         tty.
3771         * tests/test-getlogin_r.c: Include <stdio.h>.
3772         (main): Skip the test when the function fails because stdin is not a
3773         tty.
3774
3775 2010-01-11  Eric Blake  <ebb9@byu.net>
3776
3777         tests: avoid more large file warnings
3778         * tests/test-fflush.c: Avoid warning about ftell use.
3779         * tests/test-fseek.c: Avoid warning about fseek use.
3780
3781 2010-01-10  Bruno Haible  <bruno@clisp.org>
3782
3783         nproc: Work better on Linux when /proc and /sys are not mounted.
3784         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
3785         as lower bound when, on glibc/Linux systems,
3786         sysconf (_SC_NPROCESSORS_CONF) returns 1.
3787         Suggested by Pádraig Brady <P@draigbrady.com>.
3788         Reported by Dmitry V. Levin <ldv@altlinux.org>.
3789
3790         nproc: Refactor.
3791         * lib/nproc.c (num_processors_via_affinity_mask): New function,
3792         extracted from num_processors.
3793         (num_processors): Call it.
3794
3795 2010-01-11  Jim Meyering  <meyering@redhat.com>
3796
3797         utimecmp: avoid new warning from upcoming gcc-4.5.0
3798         * lib/utimecmp.c (BILLION): Define using #define rather than an
3799         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
3800
3801 2010-01-11  Eric Blake  <ebb9@byu.net>
3802
3803         math: add portability warnings for classification macros
3804         * modules/math (Depends-on): Add warn-on-use.
3805         (Makefile.am): Provide new substitutions.
3806         * m4/math_h.m4 (gl_MATH_H): Require inline.
3807         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
3808         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
3809         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
3810         implement warnings.
3811
3812         unistd: warn on use of environ without module
3813         * modules/unistd (Depends-on): Add warn-on-use.
3814         (Makefile.am): Provide new substitutions.
3815         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
3816         * lib/unistd.in.h (environ): Wrap with a warning helper function.
3817
3818         stdio: warn on suspicious uses
3819         * modules/stdio (Depends-on): Add warn-on-use.
3820         (Makefile.am): Provide new substitutions.
3821         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
3822         fseeko.
3823         * lib/stdio.in.h (gets): Always warn on use.
3824         (fseek, ftell): Adjust when warnings are issued, and honor
3825         _GL_NO_LARGE_FILES as a way to silence the warning.
3826         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
3827         any warning about large file offsets.
3828         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
3829         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
3830         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
3831         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
3832         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
3833         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
3834         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
3835         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
3836
3837         warn-on-use: new module
3838         * modules/warn-on-use: New file.
3839         * build-aux/warn-on-use.h: Likewise.
3840         * m4/warn-on-use.m4: Likewise.
3841         * MODULES.html.sh (Support for building): Mention it.
3842
3843 2010-01-10  Bruno Haible  <bruno@clisp.org>
3844
3845         Tests for module 'unistr/u32-strdup'.
3846         * modules/unistr/u32-strdup-tests: New file.
3847         * tests/unistr/test-u32-strdup.c: New file.
3848
3849         Tests for module 'unistr/u16-strdup'.
3850         * modules/unistr/u16-strdup-tests: New file.
3851         * tests/unistr/test-u16-strdup.c: New file.
3852
3853         Tests for module 'unistr/u8-strdup'.
3854         * modules/unistr/u8-strdup-tests: New file.
3855         * tests/unistr/test-u8-strdup.c: New file.
3856         * tests/unistr/test-strdup.h: New file.
3857
3858         Tests for module 'unistr/u32-strncmp'.
3859         * modules/unistr/u32-strncmp-tests: New file.
3860         * tests/unistr/test-u32-strncmp.c: New file.
3861
3862         Tests for module 'unistr/u16-strncmp'.
3863         * modules/unistr/u16-strncmp-tests: New file.
3864         * tests/unistr/test-u16-strncmp.c: New file.
3865
3866         Tests for module 'unistr/u8-strncmp'.
3867         * modules/unistr/u8-strncmp-tests: New file.
3868         * tests/unistr/test-u8-strncmp.c: New file.
3869         * tests/unistr/test-strncmp.h: New file.
3870
3871         Tests for module 'unistr/u32-strcoll'.
3872         * modules/unistr/u32-strcoll-tests: New file.
3873         * tests/unistr/test-u32-strcoll.c: New file.
3874
3875         Tests for module 'unistr/u16-strcoll'.
3876         * modules/unistr/u16-strcoll-tests: New file.
3877         * tests/unistr/test-u16-strcoll.c: New file.
3878
3879         Tests for module 'unistr/u8-strcoll'.
3880         * modules/unistr/u8-strcoll-tests: New file.
3881         * tests/unistr/test-u8-strcoll.c: New file.
3882
3883         Tests for module 'unistr/u32-strcmp'.
3884         * modules/unistr/u32-strcmp-tests: New file.
3885         * tests/unistr/test-u32-strcmp.c: New file.
3886         * tests/unistr/test-u32-strcmp.h: New file.
3887
3888         Tests for module 'unistr/u16-strcmp'.
3889         * modules/unistr/u16-strcmp-tests: New file.
3890         * tests/unistr/test-u16-strcmp.c: New file.
3891         * tests/unistr/test-u16-strcmp.h: New file.
3892
3893         Tests for module 'unistr/u8-strcmp'.
3894         * modules/unistr/u8-strcmp-tests: New file.
3895         * tests/unistr/test-u8-strcmp.c: New file.
3896         * tests/unistr/test-u8-strcmp.h: New file.
3897         * tests/unistr/test-strcmp.h: New file.
3898
3899         Tests for module 'unistr/u32-strncat'.
3900         * modules/unistr/u32-strncat-tests: New file.
3901         * tests/unistr/test-u32-strncat.c: New file.
3902
3903         Tests for module 'unistr/u16-strncat'.
3904         * modules/unistr/u16-strncat-tests: New file.
3905         * tests/unistr/test-u16-strncat.c: New file.
3906
3907         Tests for module 'unistr/u8-strncat'.
3908         * modules/unistr/u8-strncat-tests: New file.
3909         * tests/unistr/test-u8-strncat.c: New file.
3910         * tests/unistr/test-strncat.h: New file.
3911
3912         Tests for module 'unistr/u32-strcat'.
3913         * modules/unistr/u32-strcat-tests: New file.
3914         * tests/unistr/test-u32-strcat.c: New file.
3915
3916         Tests for module 'unistr/u16-strcat'.
3917         * modules/unistr/u16-strcat-tests: New file.
3918         * tests/unistr/test-u16-strcat.c: New file.
3919
3920         Tests for module 'unistr/u8-strcat'.
3921         * modules/unistr/u8-strcat-tests: New file.
3922         * tests/unistr/test-u8-strcat.c: New file.
3923         * tests/unistr/test-strcat.h: New file.
3924
3925         Tests for module 'unistr/u32-stpncpy'.
3926         * modules/unistr/u32-stpncpy-tests: New file.
3927         * tests/unistr/test-u32-stpncpy.c: New file.
3928
3929         Tests for module 'unistr/u16-stpncpy'.
3930         * modules/unistr/u16-stpncpy-tests: New file.
3931         * tests/unistr/test-u16-stpncpy.c: New file.
3932
3933         Tests for module 'unistr/u8-stpncpy'.
3934         * modules/unistr/u8-stpncpy-tests: New file.
3935         * tests/unistr/test-u8-stpncpy.c: New file.
3936         * tests/unistr/test-stpncpy.h: New file.
3937
3938         Tests for module 'unistr/u32-strncpy'.
3939         * modules/unistr/u32-strncpy-tests: New file.
3940         * tests/unistr/test-u32-strncpy.c: New file.
3941
3942         Tests for module 'unistr/u16-strncpy'.
3943         * modules/unistr/u16-strncpy-tests: New file.
3944         * tests/unistr/test-u16-strncpy.c: New file.
3945
3946         Tests for module 'unistr/u8-strncpy'.
3947         * modules/unistr/u8-strncpy-tests: New file.
3948         * tests/unistr/test-u8-strncpy.c: New file.
3949         * tests/unistr/test-strncpy.h: New file.
3950
3951         Tests for module 'unistr/u32-stpcpy'.
3952         * modules/unistr/u32-stpcpy-tests: New file.
3953         * tests/unistr/test-u32-stpcpy.c: New file.
3954
3955         Tests for module 'unistr/u16-stpcpy'.
3956         * modules/unistr/u16-stpcpy-tests: New file.
3957         * tests/unistr/test-u16-stpcpy.c: New file.
3958
3959         Tests for module 'unistr/u8-stpcpy'.
3960         * modules/unistr/u8-stpcpy-tests: New file.
3961         * tests/unistr/test-u8-stpcpy.c: New file.
3962         * tests/unistr/test-stpcpy.h: New file.
3963
3964         Tests for module 'unistr/u32-strcpy'.
3965         * modules/unistr/u32-strcpy-tests: New file.
3966         * tests/unistr/test-u32-strcpy.c: New file.
3967
3968         Tests for module 'unistr/u16-strcpy'.
3969         * modules/unistr/u16-strcpy-tests: New file.
3970         * tests/unistr/test-u16-strcpy.c: New file.
3971
3972         Tests for module 'unistr/u8-strcpy'.
3973         * modules/unistr/u8-strcpy-tests: New file.
3974         * tests/unistr/test-u8-strcpy.c: New file.
3975         * tests/unistr/test-strcpy.h: New file.
3976
3977         Tests for module 'unistr/u32-strnlen'.
3978         * modules/unistr/u32-strnlen-tests: New file.
3979         * tests/unistr/test-u32-strnlen.c: New file.
3980
3981         Tests for module 'unistr/u16-strnlen'.
3982         * modules/unistr/u16-strnlen-tests: New file.
3983         * tests/unistr/test-u16-strnlen.c: New file.
3984
3985         Tests for module 'unistr/u8-strnlen'.
3986         * modules/unistr/u8-strnlen-tests: New file.
3987         * tests/unistr/test-u8-strnlen.c: New file.
3988         * tests/unistr/test-strnlen.h: New file.
3989
3990         Tests for module 'unistr/u32-strlen'.
3991         * modules/unistr/u32-strlen-tests: New file.
3992         * tests/unistr/test-u32-strlen.c: New file.
3993
3994         Tests for module 'unistr/u16-strlen'.
3995         * modules/unistr/u16-strlen-tests: New file.
3996         * tests/unistr/test-u16-strlen.c: New file.
3997
3998         Tests for module 'unistr/u8-strlen'.
3999         * modules/unistr/u8-strlen-tests: New file.
4000         * tests/unistr/test-u8-strlen.c: New file.
4001
4002         Tests for module 'unistr/u32-prev'.
4003         * modules/unistr/u32-prev-tests: New file.
4004         * tests/unistr/test-u32-prev.c: New file.
4005
4006         Tests for module 'unistr/u16-prev'.
4007         * modules/unistr/u16-prev-tests: New file.
4008         * tests/unistr/test-u16-prev.c: New file.
4009
4010         Tests for module 'unistr/u8-prev'.
4011         * modules/unistr/u8-prev-tests: New file.
4012         * tests/unistr/test-u8-prev.c: New file.
4013
4014         Tests for module 'unistr/u32-next'.
4015         * modules/unistr/u32-next-tests: New file.
4016         * tests/unistr/test-u32-next.c: New file.
4017
4018         Tests for module 'unistr/u16-next'.
4019         * modules/unistr/u16-next-tests: New file.
4020         * tests/unistr/test-u16-next.c: New file.
4021
4022         Tests for module 'unistr/u8-next'.
4023         * modules/unistr/u8-next-tests: New file.
4024         * tests/unistr/test-u8-next.c: New file.
4025
4026         Tests for module 'unistr/u32-strmbtouc'.
4027         * modules/unistr/u32-strmbtouc-tests: New file.
4028         * tests/unistr/test-u32-strmbtouc.c: New file.
4029
4030         Tests for module 'unistr/u16-strmbtouc'.
4031         * modules/unistr/u16-strmbtouc-tests: New file.
4032         * tests/unistr/test-u16-strmbtouc.c: New file.
4033
4034         Tests for module 'unistr/u8-strmbtouc'.
4035         * modules/unistr/u8-strmbtouc-tests: New file.
4036         * tests/unistr/test-u8-strmbtouc.c: New file.
4037
4038         Tests for module 'unistr/u32-strmblen'.
4039         * modules/unistr/u32-strmblen-tests: New file.
4040         * tests/unistr/test-u32-strmblen.c: New file.
4041
4042         Tests for module 'unistr/u16-strmblen'.
4043         * modules/unistr/u16-strmblen-tests: New file.
4044         * tests/unistr/test-u16-strmblen.c: New file.
4045
4046         Tests for module 'unistr/u8-strmblen'.
4047         * modules/unistr/u8-strmblen-tests: New file.
4048         * tests/unistr/test-u8-strmblen.c: New file.
4049
4050         Tests for module 'unistr/u32-cpy-alloc'.
4051         * modules/unistr/u32-cpy-alloc-tests: New file.
4052         * tests/unistr/test-u32-cpy-alloc.c: New file.
4053
4054         Tests for module 'unistr/u16-cpy-alloc'.
4055         * modules/unistr/u16-cpy-alloc-tests: New file.
4056         * tests/unistr/test-u16-cpy-alloc.c: New file.
4057
4058         Tests for module 'unistr/u8-cpy-alloc'.
4059         * modules/unistr/u8-cpy-alloc-tests: New file.
4060         * tests/unistr/test-u8-cpy-alloc.c: New file.
4061         * tests/unistr/test-cpy-alloc.h: New file.
4062
4063         Tests for module 'unistr/u32-mbsnlen'.
4064         * modules/unistr/u32-mbsnlen-tests: New file.
4065         * tests/unistr/test-u32-mbsnlen.c: New file.
4066
4067         Tests for module 'unistr/u16-mbsnlen'.
4068         * modules/unistr/u16-mbsnlen-tests: New file.
4069         * tests/unistr/test-u16-mbsnlen.c: New file.
4070
4071         Tests for module 'unistr/u8-mbsnlen'.
4072         * modules/unistr/u8-mbsnlen-tests: New file.
4073         * tests/unistr/test-u8-mbsnlen.c: New file.
4074
4075         Tests for module 'unistr/u32-chr'.
4076         * modules/unistr/u32-chr-tests: New file.
4077         * tests/unistr/test-u32-chr.c: New file.
4078
4079         Tests for module 'unistr/u16-chr'.
4080         * modules/unistr/u16-chr-tests: New file.
4081         * tests/unistr/test-u16-chr.c: New file.
4082
4083         Tests for module 'unistr/u8-chr'.
4084         * modules/unistr/u8-chr-tests: New file.
4085         * tests/unistr/test-u8-chr.c: New file.
4086         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
4087
4088         Tests for module 'unistr/u32-cmp2'.
4089         * modules/unistr/u32-cmp2-tests: New file.
4090         * tests/unistr/test-u32-cmp2.c: New file.
4091
4092         Tests for module 'unistr/u16-cmp2'.
4093         * modules/unistr/u16-cmp2-tests: New file.
4094         * tests/unistr/test-u16-cmp2.c: New file.
4095
4096         Tests for module 'unistr/u8-cmp2'.
4097         * modules/unistr/u8-cmp2-tests: New file.
4098         * tests/unistr/test-u8-cmp2.c: New file.
4099         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
4100
4101         Tests for module 'unistr/u32-cmp'.
4102         * modules/unistr/u32-cmp-tests: New file.
4103         * tests/unistr/test-u32-cmp.c: New file.
4104
4105         Tests for module 'unistr/u16-cmp'.
4106         * modules/unistr/u16-cmp-tests: New file.
4107         * tests/unistr/test-u16-cmp.c: New file.
4108
4109         Tests for module 'unistr/u8-cmp'.
4110         * modules/unistr/u8-cmp-tests: New file.
4111         * tests/unistr/test-u8-cmp.c: New file.
4112         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
4113
4114         Tests for module 'unistr/u32-set'.
4115         * modules/unistr/u32-set-tests: New file.
4116         * tests/unistr/test-u32-set.c: New file.
4117
4118         Tests for module 'unistr/u16-set'.
4119         * modules/unistr/u16-set-tests: New file.
4120         * tests/unistr/test-u16-set.c: New file.
4121
4122         Tests for module 'unistr/u8-set'.
4123         * modules/unistr/u8-set-tests: New file.
4124         * tests/unistr/test-u8-set.c: New file.
4125         * tests/unistr/test-set.h: New file.
4126
4127         Tests for module 'unistr/u32-move'.
4128         * modules/unistr/u32-move-tests: New file.
4129         * tests/unistr/test-u32-move.c: New file.
4130
4131         Tests for module 'unistr/u16-move'.
4132         * modules/unistr/u16-move-tests: New file.
4133         * tests/unistr/test-u16-move.c: New file.
4134
4135         Tests for module 'unistr/u8-move'.
4136         * modules/unistr/u8-move-tests: New file.
4137         * tests/unistr/test-u8-move.c: New file.
4138         * tests/unistr/test-move.h: New file.
4139
4140         Tests for module 'unistr/u32-cpy'.
4141         * modules/unistr/u32-cpy-tests: New file.
4142         * tests/unistr/test-u32-cpy.c: New file.
4143
4144         Tests for module 'unistr/u16-cpy'.
4145         * modules/unistr/u16-cpy-tests: New file.
4146         * tests/unistr/test-u16-cpy.c: New file.
4147
4148         Tests for module 'unistr/u8-cpy'.
4149         * modules/unistr/u8-cpy-tests: New file.
4150         * tests/unistr/test-u8-cpy.c: New file.
4151         * tests/unistr/test-cpy.h: New file.
4152
4153 2010-01-09  Bruno Haible  <bruno@clisp.org>
4154
4155         Tests for module 'unistr/u32-uctomb'.
4156         * modules/unistr/u32-uctomb-tests: New file.
4157         * tests/unistr/test-u32-uctomb.c: New file.
4158
4159         Tests for module 'unistr/u16-uctomb'.
4160         * modules/unistr/u16-uctomb-tests: New file.
4161         * tests/unistr/test-u16-uctomb.c: New file.
4162
4163         Tests for module 'unistr/u8-uctomb'.
4164         * modules/unistr/u8-uctomb-tests: New file.
4165         * tests/unistr/test-u8-uctomb.c: New file.
4166
4167         Tests for module 'unistr/u32-mbtoucr'.
4168         * modules/unistr/u32-mbtoucr-tests: New file.
4169         * tests/unistr/test-u32-mbtoucr.c: New file.
4170
4171         Tests for module 'unistr/u16-mbtoucr'.
4172         * modules/unistr/u16-mbtoucr-tests: New file.
4173         * tests/unistr/test-u16-mbtoucr.c: New file.
4174
4175         Tests for module 'unistr/u8-mbtoucr'.
4176         * modules/unistr/u8-mbtoucr-tests: New file.
4177         * tests/unistr/test-u8-mbtoucr.c: New file.
4178
4179         Tests for module 'unistr/u32-mbtouc'.
4180         * modules/unistr/u32-mbtouc-tests: New file.
4181         * tests/unistr/test-u32-mbtouc.c: New file.
4182
4183         Tests for module 'unistr/u16-mbtouc'.
4184         * modules/unistr/u16-mbtouc-tests: New file.
4185         * tests/unistr/test-u16-mbtouc.c: New file.
4186
4187         Tests for module 'unistr/u8-mbtouc'.
4188         * modules/unistr/u8-mbtouc-tests: New file.
4189         * tests/unistr/test-u8-mbtouc.c: New file.
4190
4191         Tests for module 'unistr/u32-mbtouc-unsafe'.
4192         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
4193         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
4194         * tests/unistr/test-u32-mbtouc.h: New file.
4195
4196         Tests for module 'unistr/u16-mbtouc-unsafe'.
4197         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
4198         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
4199         * tests/unistr/test-u16-mbtouc.h: New file.
4200
4201         Tests for module 'unistr/u8-mbtouc-unsafe'.
4202         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
4203         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
4204         * tests/unistr/test-u8-mbtouc.h: New file.
4205
4206         Tests for module 'unistr/u32-mblen'.
4207         * modules/unistr/u32-mblen-tests: New file.
4208         * tests/unistr/test-u32-mblen.c: New file.
4209
4210         Tests for module 'unistr/u16-mblen'.
4211         * modules/unistr/u16-mblen-tests: New file.
4212         * tests/unistr/test-u16-mblen.c: New file.
4213
4214         Tests for module 'unistr/u8-mblen'.
4215         * modules/unistr/u8-mblen-tests: New file.
4216         * tests/unistr/test-u8-mblen.c: New file.
4217
4218         Tests for module 'unistr/u32-to-u16'.
4219         * modules/unistr/u32-to-u16-tests: New file.
4220         * tests/unistr/test-u32-to-u16.c: New file.
4221
4222         Tests for module 'unistr/u32-to-u8'.
4223         * modules/unistr/u32-to-u8-tests: New file.
4224         * tests/unistr/test-u32-to-u8.c: New file.
4225
4226         Tests for module 'unistr/u16-to-u32'.
4227         * modules/unistr/u16-to-u32-tests: New file.
4228         * tests/unistr/test-u16-to-u32.c: New file.
4229
4230         Tests for module 'unistr/u16-to-u8'.
4231         * modules/unistr/u16-to-u8-tests: New file.
4232         * tests/unistr/test-u16-to-u8.c: New file.
4233
4234         Tests for module 'unistr/u8-to-u32'.
4235         * modules/unistr/u8-to-u32-tests: New file.
4236         * tests/unistr/test-u8-to-u32.c: New file.
4237
4238         Tests for module 'unistr/u8-to-u16'.
4239         * modules/unistr/u8-to-u16-tests: New file.
4240         * tests/unistr/test-u8-to-u16.c: New file.
4241
4242         Tests for module 'unistr/u32-check'.
4243         * modules/unistr/u32-check-tests: New file.
4244         * tests/unistr/test-u32-check.c: New file.
4245
4246         Tests for module 'unistr/u16-check'.
4247         * modules/unistr/u16-check-tests: New file.
4248         * tests/unistr/test-u16-check.c: New file.
4249
4250         Tests for module 'unistr/u8-check'.
4251         * modules/unistr/u8-check-tests: New file.
4252         * tests/unistr/test-u8-check.c: New file.
4253
4254         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
4255         (category_equals): New function.
4256         (main): Add more tests.
4257         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
4258
4259         * tests/unictype/test-bidi_byname.c (main): Add more tests.
4260
4261 2010-01-10  Bruno Haible  <bruno@clisp.org>
4262
4263         unistr/u*-strcoll: Try harder to distinguish different strings.
4264         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
4265         compare s1 and s2 to see if they are different.
4266
4267 2010-01-10  Bruno Haible  <bruno@clisp.org>
4268
4269         unistr/u*-stpncpy: Fix the return value.
4270         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
4271         description of the return value consistent with stpncpy in glibc.
4272         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
4273         written non-NUL unit.
4274
4275 2010-01-10  Bruno Haible  <bruno@clisp.org>
4276
4277         unistr/u*-next: Add missing dependencies.
4278         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
4279         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
4280         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
4281
4282 2010-01-10  Bruno Haible  <bruno@clisp.org>
4283
4284         unistr/u8-mbsnlen: Fix return value for incomplete character.
4285         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
4286         u8_mblen.
4287         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
4288         Remove unistr/u8-mblen.
4289         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
4290         u16_mblen.
4291         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
4292         Remove unistr/u16-mblen.
4293
4294 2010-01-10  Bruno Haible  <bruno@clisp.org>
4295
4296         wchar: Fix compilation error when <wchar.h> is used from coreutils.
4297         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
4298         Reported by Brian Gough <bjg@gnu.org> and
4299         Chris Clayton <chris2553@googlemail.com> via
4300         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
4301
4302 2010-01-09  Bruno Haible  <bruno@clisp.org>
4303
4304         unistr/u16-to-u32: Reject invalid input.
4305         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
4306         u16_mbtouc.
4307         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
4308         Remove unistr/u16-mbtouc.
4309
4310         unistr/u16-to-u8: Reject invalid input.
4311         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
4312         u16_mbtouc.
4313         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
4314         Remove unistr/u16-mbtouc.
4315
4316         unistr/u8-to-u32: Reject invalid input.
4317         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
4318         u8_mbtouc.
4319         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
4320         Remove unistr/u8-mbtouc.
4321
4322         unistr/u8-to-u16: Reject invalid input.
4323         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
4324         u8_mbtouc.
4325         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
4326         Remove unistr/u8-mbtouc.
4327
4328 2010-01-09  Bruno Haible  <bruno@clisp.org>
4329
4330         Tests for module 'getlogin'.
4331         * modules/getlogin-tests: New file.
4332         * tests/test-getlogin.c: New file.
4333
4334         New module 'getlogin'.
4335         * lib/unistd.in.h (getlogin): New declaration.
4336         * lib/getlogin.c: New file.
4337         * m4/getlogin.m4: New file.
4338         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
4339         HAVE_GETLOGIN.
4340         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
4341         HAVE_GETLOGIN.
4342         * modules/getlogin: New file.
4343         * doc/posix-functions/getlogin.texi: Mention the new module.
4344         Reported by John W. Eaton <jwe@gnu.org>.
4345
4346 2010-01-09  Bruno Haible  <bruno@clisp.org>
4347
4348         getlogin_r: Support for native Windows.
4349         * lib/getlogin_r.c: Include <windows.h>
4350         (getlogin_r): Implement for native Windows.
4351         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
4352         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
4353         via John W. Eaton <jwe@gnu.org>.
4354
4355 2010-01-09  Bruno Haible  <bruno@clisp.org>
4356
4357         getlogin_r: Small fixes.
4358         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
4359         succeeds.
4360         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
4361         before testing whether getlogin_r is declared. No need to set
4362         HAVE_DECL_GETLOGIN_R to 1.
4363         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
4364
4365 2010-01-09  Bruno Haible  <bruno@clisp.org>
4366
4367         * lib/unistd.in.h (getlogin_r): Add comment.
4368
4369 2010-01-09  Bruno Haible  <bruno@clisp.org>
4370
4371         Tests for module 'getlogin_r'.
4372         * modules/getlogin_r-tests: New file.
4373         * tests/test-getlogin_r.c: New file.
4374
4375 2010-01-09  Jim Meyering  <meyering@redhat.com>
4376
4377         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
4378         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
4379         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
4380
4381 2010-01-08  Simon Josefsson  <simon@josefsson.org>
4382
4383         * lib/dup2.c (rpl_dup2): Improve comment.
4384
4385 2010-01-08  Eric Blake  <ebb9@byu.net>
4386
4387         maint.mk: allow packages to add makefile @@ exceptions
4388         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
4389         (sc_makefile_check): Rename...
4390         (sc_makefile_at_at_check): ...to this, and use hook.
4391
4392         dup2: work around mingw bug
4393         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
4394         Reported by Simon Josefsson.
4395
4396 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
4397
4398         glob: Fix C++ compilation.
4399         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
4400         C++.
4401
4402 2010-01-07  Bruno Haible  <bruno@clisp.org>
4403
4404         Fix indentation of wctype.in.h, broken since 2007-01-06.
4405         * lib/wctype.in.h: Fix indentation of preprocessor directives.
4406
4407 2010-01-07  Bruno Haible  <bruno@clisp.org>
4408
4409         mbslen: Avoid collision with system function.
4410         * lib/string.in.h [MirBSD]: Include <wchar.h>.
4411         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
4412         * m4/mbslen.m4: New file.
4413         * modules/mbslen (Files): Add it.
4414         (configure.ac): Invoke gl_MBSLEN.
4415         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
4416         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
4417         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
4418         via Ian Beckwith <ianb@erislabs.net>.
4419
4420 2010-01-07  Bruno Haible  <bruno@clisp.org>
4421
4422         dirent: Document the last fix.
4423         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
4424
4425 2010-01-07  Bruno Haible  <bruno@clisp.org>
4426
4427         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
4428         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
4429         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
4430         va_list are defined.
4431         * doc/posix-headers/stdio.texi: Document the bug of missing types.
4432         Reported by Eric Blake.
4433
4434 2010-01-07  Bruno Haible  <bruno@clisp.org>
4435
4436         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
4437         * modules/xlist (Depends-on): Add 'list',
4438         * modules/xoset (Depends-on): Add 'oset'.
4439         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4440
4441 2010-01-07  Bruno Haible  <bruno@clisp.org>
4442
4443         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
4444         * doc/posix-functions/strncasecmp.texi: Likewise.
4445
4446 2010-01-07  Bruno Haible  <bruno@clisp.org>
4447
4448         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
4449
4450 2010-01-07  John W. Eaton  <jwe@octave.org>
4451
4452         wctype: allow C++ use
4453         * lib/wctype.in.h: Add extern "C" block for C++.
4454
4455 2010-01-06  Eric Blake  <ebb9@byu.net>
4456
4457         maint.mk: detect incorrect GFDL usage
4458         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
4459
4460 2010-01-06  Jim Meyering  <meyering@redhat.com>
4461         and Eric Blake  <ebb9@byu.net>
4462
4463         maint.mk: ignore multi-line copyright in NEWS
4464         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
4465
4466 2010-01-06  Eric Blake  <ebb9@byu.net>
4467
4468         select: add missing dependency
4469         * modules/select-tests (Depends-on): Move sockets dependency...
4470         * modules/select (Depends-on): ...here.
4471         Reported by Ian Beckwith.
4472
4473         doc: regenerate INSTALL
4474         * doc/INSTALL: Reflect recent autoconf update.
4475         * doc/INSTALL.ISO: Likewise.
4476         * doc/INSTALL.UTF-8: Likewise.
4477
4478         pread: fix compilation on glibc
4479         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
4480         Reported by Ralf Wildenhues.
4481
4482         dirent: fix test failure
4483         * lib/dirent.in.h (includes): Guarantee ino_t.
4484         Reported by Ralf Wildenhues.
4485
4486 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
4487
4488         linkat, renameat: avoid bad free
4489         * lib/at-func2.c (at_func2): Fix typo.
4490         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
4491
4492 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4493
4494         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
4495         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
4496         to avoid failure of symlink test later.
4497
4498 2010-01-06  Eric Blake  <ebb9@byu.net>
4499
4500         stdio, unistd: guarantee ssize_t
4501         * lib/unistd.in.h (includes): Ensure that types required by POSIX
4502         2008 are exposed when needed.
4503         * lib/stdio.in.h (includes): Likewise.
4504         Reported by Ralf Wildenhues.
4505
4506 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
4507
4508         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
4509         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
4510         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
4511
4512 2010-01-06  Jim Meyering  <meyering@redhat.com>
4513
4514         readtokens: this module *does* require xalloc.h
4515         It uses only functions that were omitted by the old syntax-check rule.
4516         * lib/readtokens.c: Include "xalloc.h" once again.
4517         * modules/readtokens (Depends-on): Add xalloc.
4518         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
4519
4520 2010-01-05  Eric Blake  <ebb9@byu.net>
4521
4522         maint: support 'make announcement' from a VPATH build
4523         * top/maint.mk (announcement): Look for correct NEWS file.
4524
4525 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
4526
4527         utimens (fdutimens): ignore a negative FD, per contract
4528         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
4529         when we have a valid file descriptor.  Otherwise, using a brand
4530         new glibc (with just-patched futimens that now fails with EBADF)
4531         would cause this function to fail with ENOSYS.
4532         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
4533         See also http://bugzilla.redhat.com/552320.
4534
4535 2010-01-05  Eric Blake  <ebb9@byu.net>
4536
4537         strcase: document what it provides
4538         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
4539         gnulib module.
4540         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
4541         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
4542
4543 2010-01-05  Jim Meyering  <meyering@redhat.com>
4544
4545         maint: remove useless inclusions of "xalloc.h"
4546         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
4547         * lib/readtokens.c: Likewise.
4548         * lib/same.c: Likewise.
4549         * modules/getloadavg (Depends-on): Remove xalloc.
4550         * modules/readtokens: Likewise.
4551         * modules/same: Likewise.
4552
4553         maint.mk: include 4 more function names in alloca.h-checking regexp
4554         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
4555         regexp.  Before, we would give a false-positive (saying alloca.h
4556         is included unnecessarily) when the only uses involved omitted symbols.
4557
4558         xalloc.h: use consistent formatting
4559         * lib/xalloc.h: Move declarations to start in the first column.
4560
4561 2010-01-05  Eric Blake  <ebb9@byu.net>
4562
4563         mkdir: avoid xalloc
4564         * lib/mkdir.c (includes): Drop unused header.
4565         Reported by John W. Eaton.
4566
4567 2010-01-04  Jim Meyering  <meyering@redhat.com>
4568
4569         nl_langinfo: avoid configure-time syntax error
4570         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
4571         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
4572         the empty string.  Don't let that provoke a shell syntax error.
4573
4574         regcomp, regexec, fnmatch: avoid array bounds read error
4575         * lib/regcomp.c (build_equiv_class): From glibc:
4576         Use only the low 24 bits of a findidx return value as an index
4577         into the weights array.  Patch by Ulrich Drepper:
4578         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
4579         * lib/regexec.c (check_node_accept_bytes): Likewise.
4580         * lib/fnmatch_loop.c (FCT): Likewise.
4581
4582         regcomp: skip collseq lookup when there are no rules
4583         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
4584         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
4585
4586         regcomp: recognize ill-formed { } expressions
4587         * lib/regcomp.c (parse_dup_op): From glibc:
4588         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
4589
4590         regcomp: fix typo in comment
4591         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
4592         s/satisfy/satisfies/.
4593
4594         regcomp: sync from glibc: remove dead store
4595         * lib/regcomp.c (duplicate_node_closure): Remove useless
4596         search_duplicated_node call and dead store.
4597
4598         regcomp: sync from glibc; always use nl_langinfo
4599         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
4600         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
4601         * modules/regex (Depends-on): Add nl_langinfo.
4602
4603 2010-01-04  Eric Blake  <ebb9@byu.net>
4604
4605         fdopendir: fix configure test
4606         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
4607
4608 2010-01-01  Bruno Haible  <bruno@clisp.org>
4609
4610         wchar: Remove unused configure check.
4611         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
4612
4613 2010-01-01  Eric Blake  <ebb9@byu.net>
4614
4615         headers: make check of system header explicit
4616         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
4617         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
4618         ourselves.
4619         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
4620         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4621         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
4622         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
4623         internals.
4624         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
4625         missing.
4626         Suggested by Bruno Haible.
4627
4628 2010-01-01  Jim Meyering  <meyering@redhat.com>
4629
4630         ChangeLog: tweak to eliminate unnecessary copyright line
4631         * ChangeLog: Remove a copyright line that was mistakenly updated
4632         by today's update-copyright run.  Reported by Eric Blake.
4633
4634         test-update-copyright: don't let envvar setting cause test failure
4635         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
4636
4637 2010-01-01  Bruno Haible  <bruno@clisp.org>
4638
4639         localename: Avoid gcc warning.
4640         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
4641         function if it is not used.
4642
4643 2010-01-01  Jim Meyering  <meyering@redhat.com>
4644
4645         update nearly all FSF copyright year lists to include 2010
4646         Use the same procedure as for 2009, outlined in
4647         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
4648
4649         version-etc: set COPYRIGHT_YEAR to 2010
4650         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
4651
4652 2009-12-31  Eric Blake  <ebb9@byu.net>
4653
4654         doc: correct availability of cygwin 1.5.x getopt
4655         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
4656         variables.
4657         * doc/posix-functions/opterr.texi (opterr): Likewise.
4658         * doc/posix-functions/optind.texi (optind): Likewise.
4659         * doc/posix-functions/optopt.texi (optopt): Likewise.
4660         * doc/posix-functions/tzname.texi (tzname): Likewise.
4661
4662         openat: update maintainer
4663         * modules/openat (Maintainer): Add myself.
4664
4665         utimens: avoid shadowing warning
4666         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
4667         buffers into one, to avoid shadowing, as well as avoiding a
4668         redundant stat.
4669         Reported by Jim Meyering.
4670
4671         test-dup2: avoid compiler warning
4672         * tests/test-dup2.c (is_inheritable): Only define if used.
4673
4674 2010-01-01  Bruno Haible  <bruno@clisp.org>
4675
4676         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
4677         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
4678         defined, use wctomb instead of wcrtomb.
4679
4680 2010-01-01  Bruno Haible  <bruno@clisp.org>
4681
4682         iconv: Reject native Solaris iconv.
4683         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
4684         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
4685
4686 2009-12-31  Bruno Haible  <bruno@clisp.org>
4687
4688         * tests/test-signal.c (main): Remove test of 'SIG'.
4689
4690 2009-12-31  Bruno Haible  <bruno@clisp.org>
4691
4692         spawn: Fix incomplete fix.
4693         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
4694         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
4695         warnings for GNULIB_POSIXCHECK again.
4696         Reported by Eric Blake.
4697
4698 2009-12-31  Bruno Haible  <bruno@clisp.org>
4699
4700         Avoid namespace pollution on glibc systems.
4701         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
4702         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
4703         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
4704         glibc systems.
4705
4706 2009-12-31  Bruno Haible  <bruno@clisp.org>
4707
4708         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
4709         (gl_REPLACE_WCHAR_H): Turn into a no-op.
4710         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
4711         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
4712         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
4713         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
4714         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
4715
4716 2009-12-31  Bruno Haible  <bruno@clisp.org>
4717
4718         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
4719         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
4720         afterwards.
4721
4722 2009-12-31  Bruno Haible  <bruno@clisp.org>
4723
4724         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
4725         SYS_UTSNAME_H.
4726
4727 2009-12-31  Bruno Haible  <bruno@clisp.org>
4728
4729         spawn: Fix misapplied patch.
4730         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
4731         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
4732         warnings for GNULIB_POSIXCHECK.
4733
4734 2009-12-31  Bruno Haible  <bruno@clisp.org>
4735
4736         times: Update after sys_times changed.
4737         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
4738         * modules/times (Files): Add it.
4739         (configure.ac): Invoke gl_FUNC_TIMES.
4740
4741 2009-12-31  Bruno Haible  <bruno@clisp.org>
4742
4743         Use AC_C_INLINE where necessary.
4744         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
4745         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
4746         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
4747         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
4748         * m4/mbfile.m4 (gl_MBFILE): Likewise.
4749         * m4/mbiter.m4 (gl_MBITER): Likewise.
4750         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
4751         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
4752         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
4753         * modules/u64 (configure.ac): Likewise.
4754
4755 2009-12-31  Bruno Haible  <bruno@clisp.org>
4756
4757         Use AC_C_INLINE instead of module 'inline' where possible.
4758         * modules/inline (Description): Clarify purpose.
4759         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
4760         * modules/count-one-bits (Depends-on): Remove inline.
4761         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
4762         * modules/openat (Depends-on): Remove inline.
4763         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
4764         instead of depending on module 'inline'.
4765         * modules/filevercmp (Depends-on, configure.ac): Likewise.
4766         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
4767         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
4768         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
4769         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
4770         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
4771         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
4772         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
4773         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
4774         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
4775         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
4776         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
4777         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
4778         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
4779         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
4780         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
4781         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
4782         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
4783         Likewise.
4784         * modules/unictype/property-ascii-hex-digit (Depends-on,
4785         configure.ac): Likewise.
4786         * modules/unictype/property-bidi-arabic-digit (Depends-on,
4787         configure.ac): Likewise.
4788         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
4789         configure.ac): Likewise.
4790         * modules/unictype/property-bidi-block-separator (Depends-on,
4791         configure.ac): Likewise.
4792         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
4793         configure.ac): Likewise.
4794         * modules/unictype/property-bidi-common-separator (Depends-on,
4795         configure.ac): Likewise.
4796         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
4797         Likewise.
4798         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
4799         configure.ac): Likewise.
4800         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
4801         configure.ac): Likewise.
4802         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
4803         configure.ac): Likewise.
4804         * modules/unictype/property-bidi-european-digit (Depends-on,
4805         configure.ac): Likewise.
4806         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
4807         configure.ac): Likewise.
4808         * modules/unictype/property-bidi-left-to-right (Depends-on,
4809         configure.ac): Likewise.
4810         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
4811         configure.ac): Likewise.
4812         * modules/unictype/property-bidi-other-neutral (Depends-on,
4813         configure.ac): Likewise.
4814         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
4815         Likewise.
4816         * modules/unictype/property-bidi-segment-separator (Depends-on,
4817         configure.ac): Likewise.
4818         * modules/unictype/property-bidi-whitespace (Depends-on,
4819         configure.ac): Likewise.
4820         * modules/unictype/property-combining (Depends-on, configure.ac):
4821         Likewise.
4822         * modules/unictype/property-composite (Depends-on, configure.ac):
4823         Likewise.
4824         * modules/unictype/property-currency-symbol (Depends-on,
4825         configure.ac): Likewise.
4826         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
4827         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
4828         Likewise.
4829         * modules/unictype/property-default-ignorable-code-point (Depends-on,
4830         configure.ac): Likewise.
4831         * modules/unictype/property-deprecated (Depends-on, configure.ac):
4832         Likewise.
4833         * modules/unictype/property-diacritic (Depends-on, configure.ac):
4834         Likewise.
4835         * modules/unictype/property-extender (Depends-on, configure.ac):
4836         Likewise.
4837         * modules/unictype/property-format-control (Depends-on, configure.ac):
4838         Likewise.
4839         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
4840         Likewise.
4841         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
4842         Likewise.
4843         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
4844         Likewise.
4845         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
4846         Likewise.
4847         * modules/unictype/property-hyphen (Depends-on, configure.ac):
4848         Likewise.
4849         * modules/unictype/property-id-continue (Depends-on, configure.ac):
4850         Likewise.
4851         * modules/unictype/property-id-start (Depends-on, configure.ac):
4852         Likewise.
4853         * modules/unictype/property-ideographic (Depends-on, configure.ac):
4854         Likewise.
4855         * modules/unictype/property-ids-binary-operator (Depends-on,
4856         configure.ac): Likewise.
4857         * modules/unictype/property-ids-trinary-operator (Depends-on,
4858         configure.ac): Likewise.
4859         * modules/unictype/property-ignorable-control (Depends-on,
4860         configure.ac): Likewise.
4861         * modules/unictype/property-iso-control (Depends-on, configure.ac):
4862         Likewise.
4863         * modules/unictype/property-join-control (Depends-on, configure.ac):
4864         Likewise.
4865         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
4866         Likewise.
4867         * modules/unictype/property-line-separator (Depends-on, configure.ac):
4868         Likewise.
4869         * modules/unictype/property-logical-order-exception (Depends-on,
4870         configure.ac): Likewise.
4871         * modules/unictype/property-lowercase (Depends-on, configure.ac):
4872         Likewise.
4873         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
4874         * modules/unictype/property-non-break (Depends-on, configure.ac):
4875         Likewise.
4876         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
4877         Likewise.
4878         * modules/unictype/property-numeric (Depends-on, configure.ac):
4879         Likewise.
4880         * modules/unictype/property-other-alphabetic (Depends-on,
4881         configure.ac): Likewise.
4882         * modules/unictype/property-other-default-ignorable-code-point
4883         (Depends-on, configure.ac): Likewise.
4884         * modules/unictype/property-other-grapheme-extend (Depends-on,
4885         configure.ac): Likewise.
4886         * modules/unictype/property-other-id-continue (Depends-on,
4887         configure.ac): Likewise.
4888         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
4889         Likewise.
4890         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
4891         Likewise.
4892         * modules/unictype/property-other-math (Depends-on, configure.ac):
4893         Likewise.
4894         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
4895         Likewise.
4896         * modules/unictype/property-paired-punctuation (Depends-on,
4897         configure.ac): Likewise.
4898         * modules/unictype/property-paragraph-separator (Depends-on,
4899         configure.ac): Likewise.
4900         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
4901         Likewise.
4902         * modules/unictype/property-pattern-white-space (Depends-on,
4903         configure.ac): Likewise.
4904         * modules/unictype/property-private-use (Depends-on, configure.ac):
4905         Likewise.
4906         * modules/unictype/property-punctuation (Depends-on, configure.ac):
4907         Likewise.
4908         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
4909         Likewise.
4910         * modules/unictype/property-radical (Depends-on, configure.ac):
4911         Likewise.
4912         * modules/unictype/property-sentence-terminal (Depends-on,
4913         configure.ac): Likewise.
4914         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
4915         Likewise.
4916         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
4917         * modules/unictype/property-terminal-punctuation (Depends-on,
4918         configure.ac): Likewise.
4919         * modules/unictype/property-titlecase (Depends-on, configure.ac):
4920         Likewise.
4921         * modules/unictype/property-unassigned-code-value (Depends-on,
4922         configure.ac): Likewise.
4923         * modules/unictype/property-unified-ideograph (Depends-on,
4924         configure.ac): Likewise.
4925         * modules/unictype/property-uppercase (Depends-on, configure.ac):
4926         Likewise.
4927         * modules/unictype/property-variation-selector (Depends-on,
4928         configure.ac): Likewise.
4929         * modules/unictype/property-white-space (Depends-on, configure.ac):
4930         Likewise.
4931         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
4932         Likewise.
4933         * modules/unictype/property-xid-start (Depends-on, configure.ac):
4934         Likewise.
4935         * modules/unictype/property-zero-width (Depends-on, configure.ac):
4936         Likewise.
4937         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
4938         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
4939         Likewise.
4940
4941 2009-12-31  Bruno Haible  <bruno@clisp.org>
4942
4943         Remove unnecessary AC_C_INLINE invocation.
4944         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
4945         since 2009-08-21.
4946
4947 2009-12-31  Jim Meyering  <meyering@redhat.com>
4948
4949         maint.mk: don't require explicit gpg_key_ID in cfg.mk
4950         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
4951         With this change, we can all remove the gpg_key_ID = ... definition
4952         from our respective cfg.mk files.
4953
4954         maint.mk: create announcement template in ~/, not in /tmp
4955         * top/maint.mk (emit_upload_commands): Adjust.
4956         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
4957         Remove temporary file, .ci-msg.
4958
4959 2009-12-31  Eric Blake  <ebb9@byu.net>
4960
4961         link-warning: always build headers with link warnings
4962         * modules/arpa_inet (Makefile.am): Always build replacement
4963         header.
4964         * modules/ctype (Makefile.am): Likewise.
4965         * modules/dirent (Makefile.am): Likewise.
4966         * modules/inttypes (Makefile.am): Likewise.
4967         * modules/langinfo (Makefile.am): Likewise.
4968         * modules/locale (Makefile.am): Likewise.
4969         * modules/spawn (Makefile.am): Likewise.
4970         * modules/sys_file (Makefile.am): Likewise.
4971         * modules/sys_ioctl (Makefile.am): Likewise.
4972         * modules/sys_select (Makefile.am): Likewise.
4973         * modules/sys_socket (Makefile.am): Likewise.
4974         * modules/sys_times (Makefile.am): Likewise.
4975         * modules/sys_utsname (Makefile.am): Likewise.
4976         * modules/sys_wait (Makefile.am): Likewise.
4977         * modules/wchar (Makefile.am): Likewise.
4978         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
4979         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
4980         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
4981         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
4982         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
4983         Likewise.
4984         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
4985         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
4986         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
4987         Likewise.
4988         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
4989         Likewise.
4990         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
4991         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
4992         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
4993         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4994         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
4995         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
4996         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
4997         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
4998         (gl_WCHAR_H_DEFAULTS): Likewise.
4999
5000 2009-12-31  Eric Blake  <ebb9@byu.net>
5001
5002         signal, spawn: use link warnings
5003         * lib/signal.in.h (sigset_t): Make unconditional.
5004         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
5005         (sigpending, sigprocmask, sigaction): Add link warnings.
5006         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
5007         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
5008         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
5009         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
5010         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
5011         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
5012         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
5013         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
5014         (posix_spawn_file_actions_destroy)
5015         (posix_spawn_file_actions_addopen)
5016         (posix_spawn_file_actions_addclose)
5017         (posix_spawn_file_actions_adddup2): Likewise.
5018         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
5019         * tests/test-signal.c (main): Enhance test.
5020
5021         spawn: improve wrapper support
5022         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
5023         (gl_SPAWN_H_DEFAULTS): New defaults.
5024         * modules/spawn (Makefile.am): Substitute them.
5025         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
5026         Only declare if missing or broken.
5027
5028         sys_times, sys_utsname: use include_next
5029         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
5030         header.
5031         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
5032         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
5033         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
5034         * modules/sys_times (Depends-on): Add include_next.
5035         (Makefile.am): Substitute additional values.
5036         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
5037         * lib/sys_times.in.h (includes): Include native header, if
5038         available.
5039         * lib/sys_utsname.in.h (includes): Likewise.
5040         * tests/test-sys_times.c (main): Enhance test.
5041
5042         fdutimensat: revert prior patch
5043         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
5044         utimens.h.
5045         Reported by Bruno Haible.
5046
5047 2009-12-30  Eric Blake  <ebb9@byu.net>
5048
5049         sys_wait: drop link-warning dependency
5050         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
5051         link-warning efforts.
5052         * lib/sys_wait.in.h: Likewise.
5053
5054         fdutimensat: remove bogus dependency
5055         * modules/fdutimensat (Depends-on): Drop inline.
5056
5057         unistd: fix typo
5058         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
5059
5060 2009-12-30  Bruno Haible  <bruno@clisp.org>
5061
5062         Fix compilation error with Solaris cc.
5063         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
5064         * lib/unicase/u16-is-invariant.c: Likewise.
5065         * lib/unicase/u32-is-invariant.c: Likewise.
5066         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
5067
5068 2009-12-30  Bruno Haible  <bruno@clisp.org>
5069
5070         Fix test crash.
5071         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
5072         locales.
5073         Reported by Simon Josefsson <simon@josefsson.org>.
5074
5075 2009-12-30  Bruno Haible  <bruno@clisp.org>
5076
5077         Fix compilation error on most platforms.
5078         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
5079         Reported by Simon Josefsson <simon@josefsson.org>
5080         and Nelson H. F. Beebe <beebe@math.utah.edu>.
5081
5082 2009-12-30  Eric Blake  <ebb9@byu.net>
5083
5084         futimens, utimensat: work around ntfs-3g bug
5085         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
5086         a ctime bug is present, and expand workaround to cover ntfs-3g.
5087         * lib/utimens.c (fdutimens, lutimens): Likewise.
5088         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
5089         (validate_timespec): Adjust return value.
5090         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
5091         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
5092         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
5093
5094 2009-12-29  Eric Blake  <ebb9@byu.net>
5095
5096         link-warning: make usage consistent
5097         * modules/ctype (Depends-on): Add link-warning.
5098         (Makefile.am): Update rules accordingly.
5099         * modules/langinfo (Depends-on, Makefile.am): Likewise.
5100         * modules/locale (Depends-on, Makefile.am): Likewise.
5101         * modules/sys_file (Makefile.am): Likewise.
5102         * modules/getopt-posix (Makefile.am): Delete unused link warning
5103         efforts.
5104         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
5105         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
5106         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
5107         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
5108
5109         stdio: remove unused variables
5110         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
5111         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
5112         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
5113
5114         tests: test more substitute headers
5115         * modules/ctype-tests: New file.
5116         * modules/dirent-tests: Likewise.
5117         * modules/spawn-tests: Likewise.
5118         * modules/sys_file-tests: Likewise.
5119         * modules/sys_ioctl-tests: Likewise.
5120         * modules/sys_wait-tests: Likewise.
5121         * tests/test-ctype.c: Likewise.
5122         * tests/test-dirent.c: Likewise.
5123         * tests/test-spawn.c: Likewise.
5124         * tests/test-sys_file.c: Likewise.
5125         * tests/test-sys_ioctl.c: Likewise.
5126         * tests/test-sys_wait.c: Likewise.
5127         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
5128         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
5129         whether or not flock is in use.
5130
5131         tests: remove License section from module
5132         * modules/arpa_inet-tests: Remove unneeded section.
5133         * modules/byteswap-tests: Likewise.
5134         * modules/ceilf-tests: Likewise.
5135         * modules/ceill-tests: Likewise.
5136         * modules/crypto/des-tests: Likewise.
5137         * modules/crypto/gc-arcfour-tests: Likewise.
5138         * modules/crypto/gc-arctwo-tests: Likewise.
5139         * modules/crypto/gc-des-tests: Likewise.
5140         * modules/crypto/gc-hmac-md5-tests: Likewise.
5141         * modules/crypto/gc-hmac-sha1-tests: Likewise.
5142         * modules/crypto/gc-md2-tests: Likewise.
5143         * modules/crypto/gc-md4-tests: Likewise.
5144         * modules/crypto/gc-md5-tests: Likewise.
5145         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
5146         * modules/crypto/gc-rijndael-tests: Likewise.
5147         * modules/crypto/gc-sha1-tests: Likewise.
5148         * modules/crypto/gc-tests: Likewise.
5149         * modules/crypto/md2-tests: Likewise.
5150         * modules/crypto/md4-tests: Likewise.
5151         * modules/fcntl-h-tests: Likewise.
5152         * modules/floorf-tests: Likewise.
5153         * modules/floorl-tests: Likewise.
5154         * modules/frexp-nolibm-tests: Likewise.
5155         * modules/frexp-tests: Likewise.
5156         * modules/frexpl-nolibm-tests: Likewise.
5157         * modules/frexpl-tests: Likewise.
5158         * modules/getaddrinfo-tests: Likewise.
5159         * modules/inttypes-tests: Likewise.
5160         * modules/isfinite-tests: Likewise.
5161         * modules/isinf-tests: Likewise.
5162         * modules/ldexpl-tests: Likewise.
5163         * modules/locale-tests: Likewise.
5164         * modules/math-tests: Likewise.
5165         * modules/netdb-tests: Likewise.
5166         * modules/netinet_in-tests: Likewise.
5167         * modules/printf-frexp-tests: Likewise.
5168         * modules/printf-frexpl-tests: Likewise.
5169         * modules/priv-set-tests: Likewise.
5170         * modules/random_r-tests: Likewise.
5171         * modules/round-tests: Likewise.
5172         * modules/roundf-tests: Likewise.
5173         * modules/roundl-tests: Likewise.
5174         * modules/search-tests: Likewise.
5175         * modules/select-tests: Likewise.
5176         * modules/signal-tests: Likewise.
5177         * modules/stdbool-tests: Likewise.
5178         * modules/stddef-tests: Likewise.
5179         * modules/stdint-tests: Likewise.
5180         * modules/stdio-tests: Likewise.
5181         * modules/stdlib-tests: Likewise.
5182         * modules/string-tests: Likewise.
5183         * modules/strings-tests: Likewise.
5184         * modules/sys_select-tests: Likewise.
5185         * modules/sys_socket-tests: Likewise.
5186         * modules/sys_stat-tests: Likewise.
5187         * modules/sys_time-tests: Likewise.
5188         * modules/sys_utsname-tests: Likewise.
5189         * modules/sysexits-tests: Likewise.
5190         * modules/time-tests: Likewise.
5191         * modules/trunc-tests: Likewise.
5192         * modules/truncf-tests: Likewise.
5193         * modules/truncl-tests: Likewise.
5194         * modules/tsearch-tests: Likewise.
5195         * modules/unistd-tests: Likewise.
5196         * modules/wchar-tests: Likewise.
5197         * modules/wctype-tests: Likewise.
5198
5199         tests: fix license on several tests
5200         * tests/test-des.c: Update to GPLv3+.
5201         * tests/test-flock.c: Likewise.
5202         * tests/test-fsync.c: Likewise.
5203         * tests/test-futimens.h: Likewise.
5204         * tests/test-gc-arcfour.c: Likewise.
5205         * tests/test-gc-arctwo.c: Likewise.
5206         * tests/test-gc-des.c: Likewise.
5207         * tests/test-gc-hmac-md5.c: Likewise.
5208         * tests/test-gc-hmac-sha1.c: Likewise.
5209         * tests/test-gc-md2.c: Likewise.
5210         * tests/test-gc-md4.c: Likewise.
5211         * tests/test-gc-md5.c: Likewise.
5212         * tests/test-gc-pbkdf2-sha1.c: Likewise.
5213         * tests/test-gc-rijndael.c: Likewise.
5214         * tests/test-gc-sha1.c: Likewise.
5215         * tests/test-gc.c: Likewise.
5216         * tests/test-getcwd.c: Likewise.
5217         * tests/test-link.c: Likewise.
5218         * tests/test-link.h: Likewise.
5219         * tests/test-lutimens.h: Likewise.
5220         * tests/test-md2.c: Likewise.
5221         * tests/test-md4.c: Likewise.
5222         * tests/test-mkdir.h: Likewise.
5223         * tests/test-rename.c: Likewise.
5224         * tests/test-rename.h: Likewise.
5225         * tests/test-safe-alloc.c: Likewise.
5226         * tests/test-utimens-common.h: Likewise.
5227         * tests/test-utimens.h: Likewise.
5228
5229         maint: sync license texts
5230         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
5231         * doc/gpl-3.0.texi: Revert copyright year update.
5232         * doc/lgpl-3.0.texi: Likewise.
5233
5234 2009-12-29  Jim Meyering  <meyering@redhat.com>
5235
5236         update nearly all FSF copyright year lists to include 2009
5237         The files named by the following are exempted:
5238             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
5239               test -f "$dst" && { echo "$dst"; continue; }
5240               test -d "$dst" || continue
5241               echo "$dst"/$(basename "$src")
5242             done > exempt
5243             git ls-files tests/unictype >> exempt
5244         In the remaining files, convert to all-interval notation if
5245         - there is already at least one year interval like 2000-2003
5246         - the file is maintained by me
5247         - the file is in lib/uni*/, where that style already prevails
5248         Otherwise, use update-copyright's default.
5249
5250 2009-12-29  Simon Josefsson  <simon@josefsson.org>
5251         and Eric Blake  <ebb9@byu.net>
5252
5253         tests: don't require debug system() to pass
5254         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
5255         * tests/test-rmdir.h (test_rmdir_func): Likewise.
5256         * tests/test-unlink.h (test_unlink_func): Likewise.
5257         * tests/test-fstatat.c (main): ...into callers.
5258         * tests/test-lstat.c (main): Likewise.
5259         * tests/test-rmdir.c (main): Likewise.
5260         * tests/test-unlink.c (main): Likewise.
5261         * tests/test-unlinkat.c (main): Likewise.
5262         * tests/test-areadlink-with-size.c (main): Don't require a
5263         debug-only system call to pass, aiding cross-testing to mingw.
5264         * tests/test-areadlink.c (main): Likewise.
5265         * tests/test-areadlinkat-with-size.c (main): Likewise.
5266         * tests/test-areadlinkat.c (main): Likewise.
5267         * tests/test-canonicalize-lgpl.c (main): Likewise.
5268         * tests/test-canonicalize.c (main): Likewise.
5269         * tests/test-chown.c (main): Likewise.
5270         * tests/test-fchownat.c (main): Likewise.
5271         * tests/test-lchown.c (main): Likewise.
5272         * tests/test-fdutimensat.c (main): Likewise.
5273         * tests/test-futimens.c (main): Likewise.
5274         * tests/test-link.c (main): Likewise.
5275         * tests/test-linkat.c (main): Likewise.
5276         * tests/test-mkdir.c (main): Likewise.
5277         * tests/test-mkdirat.c (main): Likewise.
5278         * tests/test-mkfifo.c (main): Likewise.
5279         * tests/test-mkfifoat.c (main): Likewise.
5280         * tests/test-mknod.c (main): Likewise.
5281         * tests/test-readlink.c (main): Likewise.
5282         * tests/test-remove.c (main): Likewise.
5283         * tests/test-rename.c (main): Likewise.
5284         * tests/test-renameat.c (main): Likewise.
5285         * tests/test-symlink.c (main): Likewise.
5286         * tests/test-symlinkat.c (main): Likewise.
5287         * tests/test-utimens.c (main): Likewise.
5288         * tests/test-utimensat.c (main): Likewise.
5289
5290 2009-12-29  Simon Josefsson  <simon@josefsson.org>
5291
5292         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
5293         on $(UNUSED_PARAMETER_H) to avoid build failure.
5294
5295 2009-12-28  Jim Meyering  <meyering@redhat.com>
5296
5297         update-copyright: you may specify a max. line length other than 72
5298         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
5299
5300         maint: use consistent FSF copyright line syntax
5301         * lib/posixtm.c: Add missing comma in FSF copyright line.
5302         * lib/posixtm.h: Likewise.
5303         * lib/getugroups.c: Add missing ", Inc.".
5304
5305         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
5306         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
5307         FSF copyright line.  Remove trailing blanks.
5308
5309 2009-12-28  Eric Blake  <ebb9@byu.net>
5310
5311         test-dup2: reduce dependencies
5312         * modules/cloexec (Configure.ac): Set witness.
5313         * modules/dup2-tests (Depends-on): Drop cloexec.
5314         * tests/test-dup2.c (main): Skip portion of test if cloexec module
5315         not present.
5316         Suggested by Bruno Haible.
5317
5318 2009-12-26  Bruno Haible  <bruno@clisp.org>
5319
5320         Remove an unneeded dependency.
5321         * modules/fseterr (Depends-on): Remove dup2.
5322
5323 2009-12-26  Eric Blake  <ebb9@byu.net>
5324
5325         tests: use macros.h in more places
5326         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
5327         (ASSERT_STREAM): Provide default of stderr.
5328         * tests/test-dirent-safer.c: Include macros.h, using alternate
5329         stream for assertions.
5330         * tests/test-dup-safer.c: Likewise.
5331         * tests/test-freopen-safer.c: Likewise.
5332         * tests/test-getopt.c: Likewise.
5333         * tests/test-openat-safer.c: Likewise.
5334         * tests/test-pipe.c: Likewise.
5335         * tests/test-popen-safer.c: Likewise.
5336         * modules/dirent-safer-tests (Files): Include macros.h.
5337         * modules/unistd-safer-tests (Files): Likewise.
5338         * modules/freopen-safer-tests (Files): Likewise.
5339         * modules/getopt-posix-tests (Files): Likewise.
5340         * modules/openat-safer-tests (Files): Likewise.
5341         * modules/pipe-tests (Files): Likewise.
5342
5343 2009-12-26  Bruno Haible  <bruno@clisp.org>
5344
5345         javacomp: Portability fix.
5346         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
5347         that it also works on Solaris.
5348
5349 2009-12-26  Bruno Haible  <bruno@clisp.org>
5350
5351         localename: Fix storage allocation of gl_locale_name_thread's result.
5352         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
5353         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
5354         all platforms that have 'uselocale'.
5355         (gl_locale_name_thread_unsafe): New function, extracted from
5356         gl_locale_name_thread.
5357         (gl_locale_name_thread): Call struniq on all platforms that have
5358         'uselocale'.
5359         * tests/test-localename.c (test_locale_name_thread): Check that the
5360         resulting strings are permanently allocated.
5361         * modules/localename-tests (Depends-on): Add strdup.
5362
5363 2009-12-26  Bruno Haible  <bruno@clisp.org>
5364
5365         * tests/test-localename.c (categories): Fill in the strings.
5366
5367 2009-12-26  Jim Meyering  <meyering@redhat.com>
5368
5369         isdir: complete the removal of m4/isdir.m4
5370         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
5371
5372         isdir: clean up, since at least grep still uses it
5373         * lib/isdir.c: Include "isdir.h".
5374         (S_ISDIR): Remove now-unneeded definition.
5375         * modules/isdir (Files): Add lib/isdir.h.
5376         * lib/isdir.h: New file, with declaration.
5377         * m4/isdir.m4: Remove file -- unneeded.
5378
5379 2009-12-25  Bruno Haible  <bruno@clisp.org>
5380
5381         selinux-h: Make generated .h files standalone.
5382         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
5383         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
5384         * lib/se-selinux.in.h: Likewise.
5385         * modules/selinux-h (Depends-on): Add unused-parameter.
5386         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
5387         selinux/selinux.h and selinux/context.h.
5388         Suggested by Eric Blake.
5389
5390 2009-12-25  Bruno Haible  <bruno@clisp.org>
5391
5392         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
5393         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
5394         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
5395         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
5396         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
5397
5398 2009-12-24  Bruno Haible  <bruno@clisp.org>
5399
5400         openat: Fix warning.
5401         * lib/openat-proc.c: Include <unistd.h>.
5402
5403 2009-12-24  Bruno Haible  <bruno@clisp.org>
5404
5405         New module 'unused-parameter'.
5406         * build-aux/unused-parameter.h: New file, extracted from earlier
5407         gnulib-common.m4.
5408         * modules/unused-parameter: New file.
5409         * lib/unistr.h: Include unused-parameter.h.
5410         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
5411         _GL_UNUSED.
5412         * modules/unistr/base (Depends-on): Add unused-parameter.
5413
5414 2009-12-24  Bruno Haible  <bruno@clisp.org>
5415
5416         Add missing dependencies to 'extensions' module.
5417         * m4/extensions.m4: Add comment.
5418         * modules/accept4 (Depends-on): Add extensions.
5419         * modules/dup3 (Depends-on): Likewise.
5420         * modules/fcntl (Depends-on): Likewise.
5421         * modules/futimens (Depends-on): Likewise.
5422         * modules/mknod (Depends-on): Likewise.
5423         * modules/pipe2 (Depends-on): Likewise.
5424         * modules/stat-time (Depends-on): Likewise.
5425         * modules/strcasestr-simple (Depends-on): Likewise.
5426         * modules/strsignal (Depends-on): Likewise.
5427         * modules/utimensat (Depends-on): Likewise.
5428         * modules/localcharset (Depends-on): Likewise. Needed because of
5429         gl_FCNTL_O_FLAGS.
5430         * modules/wcrtomb (Depends-on): Likewise. Needed because of
5431         AC_TYPE_MBSTATE_T.
5432         * modules/wcsnrtombs (Depends-on): Likewise.
5433         * modules/wcsrtombs (Depends-on): Likewise.
5434
5435 2009-12-24  Bruno Haible  <bruno@clisp.org>
5436
5437         binary-io: Avoid gcc warning due to SET_BINARY.
5438         * lib/binary-io.h (SET_BINARY): Cast the result to void.
5439         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
5440
5441 2009-12-24  Bruno Haible  <bruno@clisp.org>
5442
5443         Avoid future namespace pollution on glibc systems.
5444         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
5445         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
5446         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
5447         glibc systems.
5448
5449 2009-12-24  Bruno Haible  <bruno@clisp.org>
5450
5451         Refactor common macros used in tests.
5452         * tests/macros.h: New file.
5453         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
5454         and/or <stdlib.h>, if appropriate.
5455         (ASSERT, SIZEOF): Remove macros.
5456         * tests/test-areadlink-with-size.c: Likewise.
5457         * tests/test-areadlinkat.c: Likewise.
5458         * tests/test-areadlinkat-with-size.c: Likewise.
5459         * tests/test-argmatch.c: Likewise.
5460         * tests/test-argv-iter.c: Likewise.
5461         * tests/test-array-mergesort.c: Likewise.
5462         * tests/test-array_list.c: Likewise.
5463         * tests/test-array_oset.c: Likewise.
5464         * tests/test-avltree_list.c: Likewise.
5465         * tests/test-avltree_oset.c: Likewise.
5466         * tests/test-avltreehash_list.c: Likewise.
5467         * tests/test-base64.c: Likewise.
5468         * tests/test-binary-io.c: Likewise.
5469         * tests/test-bitrotate.c: Likewise.
5470         * tests/test-btowc.c: Likewise.
5471         * tests/test-byteswap.c: Likewise.
5472         * tests/test-c-ctype.c: Likewise.
5473         * tests/test-c-stack.c: Likewise.
5474         * tests/test-c-strcasecmp.c: Likewise.
5475         * tests/test-c-strcasestr.c: Likewise.
5476         * tests/test-c-strncasecmp.c: Likewise.
5477         * tests/test-c-strstr.c: Likewise.
5478         * tests/test-canonicalize-lgpl.c: Likewise.
5479         * tests/test-canonicalize.c: Likewise.
5480         * tests/test-carray_list.c: Likewise.
5481         * tests/test-ceilf1.c: Likewise.
5482         * tests/test-ceilf2.c: Likewise.
5483         * tests/test-ceill.c: Likewise.
5484         * tests/test-chown.c: Likewise.
5485         * tests/test-cloexec.c: Likewise.
5486         * tests/test-copy-acl.c: Likewise.
5487         * tests/test-copy-file.c: Likewise.
5488         * tests/test-count-one-bits.c: Likewise.
5489         * tests/test-dprintf-posix.c: Likewise.
5490         * tests/test-dup2.c: Likewise.
5491         * tests/test-dup3.c: Likewise.
5492         * tests/test-duplocale.c: Likewise.
5493         * tests/test-fbufmode.c: Likewise.
5494         * tests/test-fchdir.c: Likewise.
5495         * tests/test-fchownat.c: Likewise.
5496         * tests/test-fcntl-safer.c: Likewise.
5497         * tests/test-fcntl.c: Likewise.
5498         * tests/test-fdopendir.c: Likewise.
5499         * tests/test-fdutimensat.c: Likewise.
5500         * tests/test-fflush2.c: Likewise.
5501         * tests/test-file-has-acl.c: Likewise.
5502         * tests/test-filevercmp.c: Likewise.
5503         * tests/test-flock.c: Likewise.
5504         * tests/test-floorf1.c: Likewise.
5505         * tests/test-floorf2.c: Likewise.
5506         * tests/test-floorl.c: Likewise.
5507         * tests/test-fnmatch.c: Likewise.
5508         * tests/test-fopen.h: Likewise.
5509         * tests/test-fpending.c: Likewise.
5510         * tests/test-fprintf-posix.c: Likewise.
5511         * tests/test-fpurge.c: Likewise.
5512         * tests/test-freadable.c: Likewise.
5513         * tests/test-freadahead.c: Likewise.
5514         * tests/test-freading.c: Likewise.
5515         * tests/test-freadptr.c: Likewise.
5516         * tests/test-freadptr2.c: Likewise.
5517         * tests/test-freadseek.c: Likewise.
5518         * tests/test-freopen.c: Likewise.
5519         * tests/test-frexp.c: Likewise.
5520         * tests/test-frexpl.c: Likewise.
5521         * tests/test-fseek.c: Likewise.
5522         * tests/test-fseeko.c: Likewise.
5523         * tests/test-fstatat.c: Likewise.
5524         * tests/test-fstrcmp.c: Likewise.
5525         * tests/test-fsync.c: Likewise.
5526         * tests/test-ftell.c: Likewise.
5527         * tests/test-ftello.c: Likewise.
5528         * tests/test-func.c: Likewise.
5529         * tests/test-futimens.c: Likewise.
5530         * tests/test-fwritable.c: Likewise.
5531         * tests/test-fwriting.c: Likewise.
5532         * tests/test-getcwd.c: Likewise.
5533         * tests/test-getdate.c: Likewise.
5534         * tests/test-getdelim.c: Likewise.
5535         * tests/test-getdtablesize.c: Likewise.
5536         * tests/test-getgroups.c: Likewise.
5537         * tests/test-getline.c: Likewise.
5538         * tests/test-getndelim2.c: Likewise.
5539         * tests/test-glob.c: Likewise.
5540         * tests/test-hash.c: Likewise.
5541         * tests/test-i-ring.c: Likewise.
5542         * tests/test-iconv-utf.c: Likewise.
5543         * tests/test-iconv.c: Likewise.
5544         * tests/test-idpriv-drop.c: Likewise.
5545         * tests/test-idpriv-droptemp.c: Likewise.
5546         * tests/test-inet_ntop.c: Likewise.
5547         * tests/test-inet_pton.c: Likewise.
5548         * tests/test-isblank.c: Likewise.
5549         * tests/test-isfinite.c: Likewise.
5550         * tests/test-isinf.c: Likewise.
5551         * tests/test-isnan.c: Likewise.
5552         * tests/test-isnand.h: Likewise.
5553         * tests/test-isnanf.h: Likewise.
5554         * tests/test-isnanl.h: Likewise.
5555         * tests/test-lchown.c: Likewise.
5556         * tests/test-ldexpl.c: Likewise.
5557         * tests/test-link.c: Likewise.
5558         * tests/test-linkat.c: Likewise.
5559         * tests/test-linked_list.c: Likewise.
5560         * tests/test-linkedhash_list.c: Likewise.
5561         * tests/test-localename.c: Likewise.
5562         * tests/test-lseek.c: Likewise.
5563         * tests/test-lstat.c: Likewise.
5564         * tests/test-mbmemcasecmp.c: Likewise.
5565         * tests/test-mbmemcasecoll.c: Likewise.
5566         * tests/test-mbrtowc.c: Likewise.
5567         * tests/test-mbscasecmp.c: Likewise.
5568         * tests/test-mbscasestr1.c: Likewise.
5569         * tests/test-mbscasestr2.c: Likewise.
5570         * tests/test-mbscasestr3.c: Likewise.
5571         * tests/test-mbscasestr4.c: Likewise.
5572         * tests/test-mbschr.c: Likewise.
5573         * tests/test-mbscspn.c: Likewise.
5574         * tests/test-mbsinit.c: Likewise.
5575         * tests/test-mbsncasecmp.c: Likewise.
5576         * tests/test-mbsnrtowcs.c: Likewise.
5577         * tests/test-mbspbrk.c: Likewise.
5578         * tests/test-mbspcasecmp.c: Likewise.
5579         * tests/test-mbsrchr.c: Likewise.
5580         * tests/test-mbsrtowcs.c: Likewise.
5581         * tests/test-mbsspn.c: Likewise.
5582         * tests/test-mbsstr1.c: Likewise.
5583         * tests/test-mbsstr2.c: Likewise.
5584         * tests/test-mbsstr3.c: Likewise.
5585         * tests/test-memchr.c: Likewise.
5586         * tests/test-memchr2.c: Likewise.
5587         * tests/test-memcmp.c: Likewise.
5588         * tests/test-memmem.c: Likewise.
5589         * tests/test-memrchr.c: Likewise.
5590         * tests/test-mkdir.c: Likewise.
5591         * tests/test-mkdirat.c: Likewise.
5592         * tests/test-mkfifo.c: Likewise.
5593         * tests/test-mkfifoat.c: Likewise.
5594         * tests/test-mknod.c: Likewise.
5595         * tests/test-nanosleep.c: Likewise.
5596         * tests/test-nl_langinfo.c: Likewise.
5597         * tests/test-obstack-printf.c: Likewise.
5598         * tests/test-open.c: Likewise.
5599         * tests/test-openat.c: Likewise.
5600         * tests/test-pipe-filter-gi1.c: Likewise.
5601         * tests/test-pipe-filter-gi2-main.c: Likewise.
5602         * tests/test-pipe-filter-ii1.c: Likewise.
5603         * tests/test-pipe-filter-ii2-main.c: Likewise.
5604         * tests/test-pipe2.c: Likewise.
5605         * tests/test-popen.h: Likewise.
5606         * tests/test-posixtm.c: Likewise.
5607         * tests/test-pread.c: Likewise.
5608         * tests/test-printf-frexp.c: Likewise.
5609         * tests/test-printf-frexpl.c: Likewise.
5610         * tests/test-printf-posix.c: Likewise.
5611         * tests/test-priv-set.c: Likewise.
5612         * tests/test-quotearg.c: Likewise.
5613         * tests/test-random_r.c: Likewise.
5614         * tests/test-rawmemchr.c: Likewise.
5615         * tests/test-rbtree_list.c: Likewise.
5616         * tests/test-rbtree_oset.c: Likewise.
5617         * tests/test-rbtreehash_list.c: Likewise.
5618         * tests/test-readlink.c: Likewise.
5619         * tests/test-remove.c: Likewise.
5620         * tests/test-rename.c: Likewise.
5621         * tests/test-renameat.c: Likewise.
5622         * tests/test-rmdir.c: Likewise.
5623         * tests/test-round1.c: Likewise.
5624         * tests/test-roundf1.c: Likewise.
5625         * tests/test-roundl.c: Likewise.
5626         * tests/test-safe-alloc.c: Likewise.
5627         * tests/test-sameacls.c: Likewise.
5628         * tests/test-set-mode-acl.c: Likewise.
5629         * tests/test-setenv.c: Likewise.
5630         * tests/test-sigaction.c: Likewise.
5631         * tests/test-signbit.c: Likewise.
5632         * tests/test-sleep.c: Likewise.
5633         * tests/test-snprintf-posix.c: Likewise.
5634         * tests/test-snprintf.c: Likewise.
5635         * tests/test-sprintf-posix.c: Likewise.
5636         * tests/test-stat-time.c: Likewise.
5637         * tests/test-stat.c: Likewise.
5638         * tests/test-strcasestr.c: Likewise.
5639         * tests/test-strchrnul.c: Likewise.
5640         * tests/test-strerror.c: Likewise.
5641         * tests/test-striconv.c: Likewise.
5642         * tests/test-striconveh.c: Likewise.
5643         * tests/test-striconveha.c: Likewise.
5644         * tests/test-strsignal.c: Likewise.
5645         * tests/test-strstr.c: Likewise.
5646         * tests/test-strtod.c: Likewise.
5647         * tests/test-strverscmp.c: Likewise.
5648         * tests/test-symlink.c: Likewise.
5649         * tests/test-symlinkat.c: Likewise.
5650         * tests/test-trunc1.c: Likewise.
5651         * tests/test-trunc2.c: Likewise.
5652         * tests/test-truncf1.c: Likewise.
5653         * tests/test-truncf2.c: Likewise.
5654         * tests/test-truncl.c: Likewise.
5655         * tests/test-uname.c: Likewise.
5656         * tests/test-unlink.c: Likewise.
5657         * tests/test-unlinkat.c: Likewise.
5658         * tests/test-unsetenv.c: Likewise.
5659         * tests/test-usleep.c: Likewise.
5660         * tests/test-utimens.c: Likewise.
5661         * tests/test-utimensat.c: Likewise.
5662         * tests/test-vasnprintf-posix.c: Likewise.
5663         * tests/test-vasnprintf-posix2.c: Likewise.
5664         * tests/test-vasnprintf.c: Likewise.
5665         * tests/test-vasprintf-posix.c: Likewise.
5666         * tests/test-vasprintf.c: Likewise.
5667         * tests/test-vdprintf-posix.c: Likewise.
5668         * tests/test-vfprintf-posix.c: Likewise.
5669         * tests/test-vprintf-posix.c: Likewise.
5670         * tests/test-vsnprintf-posix.c: Likewise.
5671         * tests/test-vsnprintf.c: Likewise.
5672         * tests/test-vsprintf-posix.c: Likewise.
5673         * tests/test-wcrtomb.c: Likewise.
5674         * tests/test-wcsnrtombs.c: Likewise.
5675         * tests/test-wcsrtombs.c: Likewise.
5676         * tests/test-wctype.c: Likewise.
5677         * tests/test-wcwidth.c: Likewise.
5678         * tests/test-xfprintf-posix.c: Likewise.
5679         * tests/test-xmemdup0.c: Likewise.
5680         * tests/test-xprintf-posix.c: Likewise.
5681         * tests/test-xvasprintf.c: Likewise.
5682         * tests/unicase/test-locale-language.c: Likewise.
5683         * tests/unicase/test-mapping-part1.h: Likewise.
5684         * tests/unicase/test-predicate-part1.h: Likewise.
5685         * tests/unicase/test-u8-casecmp.c: Likewise.
5686         * tests/unicase/test-u8-casecoll.c: Likewise.
5687         * tests/unicase/test-u8-casefold.c: Likewise.
5688         * tests/unicase/test-u8-is-cased.c: Likewise.
5689         * tests/unicase/test-u8-is-casefolded.c: Likewise.
5690         * tests/unicase/test-u8-is-lowercase.c: Likewise.
5691         * tests/unicase/test-u8-is-titlecase.c: Likewise.
5692         * tests/unicase/test-u8-is-uppercase.c: Likewise.
5693         * tests/unicase/test-u8-tolower.c: Likewise.
5694         * tests/unicase/test-u8-totitle.c: Likewise.
5695         * tests/unicase/test-u8-toupper.c: Likewise.
5696         * tests/unicase/test-u16-casecmp.c: Likewise.
5697         * tests/unicase/test-u16-casecoll.c: Likewise.
5698         * tests/unicase/test-u16-casefold.c: Likewise.
5699         * tests/unicase/test-u16-is-cased.c: Likewise.
5700         * tests/unicase/test-u16-is-casefolded.c: Likewise.
5701         * tests/unicase/test-u16-is-lowercase.c: Likewise.
5702         * tests/unicase/test-u16-is-titlecase.c: Likewise.
5703         * tests/unicase/test-u16-is-uppercase.c: Likewise.
5704         * tests/unicase/test-u16-tolower.c: Likewise.
5705         * tests/unicase/test-u16-totitle.c: Likewise.
5706         * tests/unicase/test-u16-toupper.c: Likewise.
5707         * tests/unicase/test-u32-casecmp.c: Likewise.
5708         * tests/unicase/test-u32-casecoll.c: Likewise.
5709         * tests/unicase/test-u32-casefold.c: Likewise.
5710         * tests/unicase/test-u32-is-cased.c: Likewise.
5711         * tests/unicase/test-u32-is-casefolded.c: Likewise.
5712         * tests/unicase/test-u32-is-lowercase.c: Likewise.
5713         * tests/unicase/test-u32-is-titlecase.c: Likewise.
5714         * tests/unicase/test-u32-is-uppercase.c: Likewise.
5715         * tests/unicase/test-u32-tolower.c: Likewise.
5716         * tests/unicase/test-u32-totitle.c: Likewise.
5717         * tests/unicase/test-u32-toupper.c: Likewise.
5718         * tests/unicase/test-ulc-casecmp.c: Likewise.
5719         * tests/unicase/test-ulc-casecoll.c: Likewise.
5720         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
5721         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
5722         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
5723         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
5724         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
5725         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
5726         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
5727         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
5728         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
5729         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
5730         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
5731         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
5732         * tests/unictype/test-bidi_byname.c: Likewise.
5733         * tests/unictype/test-bidi_name.c: Likewise.
5734         * tests/unictype/test-bidi_of.c: Likewise.
5735         * tests/unictype/test-bidi_test.c: Likewise.
5736         * tests/unictype/test-block_list.c: Likewise.
5737         * tests/unictype/test-block_of.c: Likewise.
5738         * tests/unictype/test-block_test.c: Likewise.
5739         * tests/unictype/test-categ_and.c: Likewise.
5740         * tests/unictype/test-categ_and_not.c: Likewise.
5741         * tests/unictype/test-categ_byname.c: Likewise.
5742         * tests/unictype/test-categ_name.c: Likewise.
5743         * tests/unictype/test-categ_none.c: Likewise.
5744         * tests/unictype/test-categ_of.c: Likewise.
5745         * tests/unictype/test-categ_or.c: Likewise.
5746         * tests/unictype/test-categ_test_withtable.c: Likewise.
5747         * tests/unictype/test-combining.c: Likewise.
5748         * tests/unictype/test-decdigit.c: Likewise.
5749         * tests/unictype/test-digit.c: Likewise.
5750         * tests/unictype/test-mirror.c: Likewise.
5751         * tests/unictype/test-numeric.c: Likewise.
5752         * tests/unictype/test-pr_byname.c: Likewise.
5753         * tests/unictype/test-pr_test.c: Likewise.
5754         * tests/unictype/test-predicate-part1.h: Likewise.
5755         * tests/unictype/test-scripts.c: Likewise.
5756         * tests/unictype/test-sy_c_ident.c: Likewise.
5757         * tests/unictype/test-sy_java_ident.c: Likewise.
5758         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
5759         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
5760         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
5761         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
5762         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
5763         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
5764         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
5765         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
5766         * tests/uninorm/test-canonical-decomposition.c: Likewise.
5767         * tests/uninorm/test-compat-decomposition.c: Likewise.
5768         * tests/uninorm/test-composition.c: Likewise.
5769         * tests/uninorm/test-decomposing-form.c: Likewise.
5770         * tests/uninorm/test-decomposition.c: Likewise.
5771         * tests/uninorm/test-u8-nfc.c: Likewise.
5772         * tests/uninorm/test-u8-nfd.c: Likewise.
5773         * tests/uninorm/test-u8-nfkc.c: Likewise.
5774         * tests/uninorm/test-u8-nfkd.c: Likewise.
5775         * tests/uninorm/test-u8-normcmp.c: Likewise.
5776         * tests/uninorm/test-u8-normcoll.c: Likewise.
5777         * tests/uninorm/test-u16-nfc.c: Likewise.
5778         * tests/uninorm/test-u16-nfd.c: Likewise.
5779         * tests/uninorm/test-u16-nfkc.c: Likewise.
5780         * tests/uninorm/test-u16-nfkd.c: Likewise.
5781         * tests/uninorm/test-u16-normcmp.c: Likewise.
5782         * tests/uninorm/test-u16-normcoll.c: Likewise.
5783         * tests/uninorm/test-u32-nfc.c: Likewise.
5784         * tests/uninorm/test-u32-nfd.c: Likewise.
5785         * tests/uninorm/test-u32-nfkc.c: Likewise.
5786         * tests/uninorm/test-u32-nfkd.c: Likewise.
5787         * tests/uninorm/test-u32-normalize-big.c: Likewise.
5788         * tests/uninorm/test-u32-normcmp.c: Likewise.
5789         * tests/uninorm/test-u32-normcoll.c: Likewise.
5790         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
5791         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
5792         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
5793         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
5794         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
5795         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
5796         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
5797         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
5798         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
5799         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
5800         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
5801         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
5802         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
5803         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
5804         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
5805         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
5806         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
5807         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
5808         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
5809         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
5810         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
5811         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
5812         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
5813         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
5814         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
5815         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
5816         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
5817         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
5818         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
5819         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
5820         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
5821         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
5822         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
5823         * tests/uniwidth/test-u8-strwidth.c: Likewise.
5824         * tests/uniwidth/test-u8-width.c: Likewise.
5825         * tests/uniwidth/test-u16-strwidth.c: Likewise.
5826         * tests/uniwidth/test-u16-width.c: Likewise.
5827         * tests/uniwidth/test-u32-strwidth.c: Likewise.
5828         * tests/uniwidth/test-u32-width.c: Likewise.
5829         * tests/uniwidth/test-uc_width.c: Likewise.
5830         * tests/uniwidth/test-uc_width2.c: Likewise.
5831         * modules/acl-tests (Files): Add tests/macros.h.
5832         * modules/areadlink-tests (Files): Likewise.
5833         * modules/areadlink-with-size-tests (Files): Likewise.
5834         * modules/areadlinkat-tests (Files): Likewise.
5835         * modules/areadlinkat-with-size-tests (Files): Likewise.
5836         * modules/argmatch-tests (Files): Likewise.
5837         * modules/argv-iter-tests (Files): Likewise.
5838         * modules/array-list-tests (Files): Likewise.
5839         * modules/array-mergesort-tests (Files): Likewise.
5840         * modules/array-oset-tests (Files): Likewise.
5841         * modules/avltree-list-tests (Files): Likewise.
5842         * modules/avltree-oset-tests (Files): Likewise.
5843         * modules/avltreehash-list-tests (Files): Likewise.
5844         * modules/base64-tests (Files): Likewise.
5845         * modules/binary-io-tests (Files): Likewise.
5846         * modules/bitrotate-tests (Files): Likewise.
5847         * modules/btowc-tests (Files): Likewise.
5848         * modules/byteswap-tests (Files): Likewise.
5849         * modules/c-ctype-tests (Files): Likewise.
5850         * modules/c-stack-tests (Files): Likewise.
5851         * modules/c-strcase-tests (Files): Likewise.
5852         * modules/c-strcasestr-tests (Files): Likewise.
5853         * modules/c-strstr-tests (Files): Likewise.
5854         * modules/canonicalize-lgpl-tests (Files): Likewise.
5855         * modules/canonicalize-tests (Files): Likewise.
5856         * modules/carray-list-tests (Files): Likewise.
5857         * modules/ceilf-tests (Files): Likewise.
5858         * modules/ceill-tests (Files): Likewise.
5859         * modules/chown-tests (Files): Likewise.
5860         * modules/cloexec-tests (Files): Likewise.
5861         * modules/copy-file-tests (Files): Likewise.
5862         * modules/count-one-bits-tests (Files): Likewise.
5863         * modules/dprintf-posix-tests (Files): Likewise.
5864         * modules/dup2-tests (Files): Likewise.
5865         * modules/dup3-tests (Files): Likewise.
5866         * modules/duplocale-tests (Files): Likewise.
5867         * modules/fbufmode-tests (Files): Likewise.
5868         * modules/fchdir-tests (Files): Likewise.
5869         * modules/fcntl-safer-tests (Files): Likewise.
5870         * modules/fcntl-tests (Files): Likewise.
5871         * modules/fdopendir-tests (Files): Likewise.
5872         * modules/fdutimensat-tests (Files): Likewise.
5873         * modules/fflush-tests (Files): Likewise.
5874         * modules/filevercmp-tests (Files): Likewise.
5875         * modules/flock-tests (Files): Likewise.
5876         * modules/floorf-tests (Files): Likewise.
5877         * modules/floorl-tests (Files): Likewise.
5878         * modules/fnmatch-tests (Files): Likewise.
5879         * modules/fopen-safer-tests (Files): Likewise.
5880         * modules/fopen-tests (Files): Likewise.
5881         * modules/fpending-tests (Files): Likewise.
5882         * modules/fprintf-posix-tests (Files): Likewise.
5883         * modules/fpurge-tests (Files): Likewise.
5884         * modules/freadable-tests (Files): Likewise.
5885         * modules/freadahead-tests (Files): Likewise.
5886         * modules/freading-tests (Files): Likewise.
5887         * modules/freadptr-tests (Files): Likewise.
5888         * modules/freadseek-tests (Files): Likewise.
5889         * modules/freopen-tests (Files): Likewise.
5890         * modules/frexp-nolibm-tests (Files): Likewise.
5891         * modules/frexp-tests (Files): Likewise.
5892         * modules/frexpl-nolibm-tests (Files): Likewise.
5893         * modules/frexpl-tests (Files): Likewise.
5894         * modules/fseek-tests (Files): Likewise.
5895         * modules/fseeko-tests (Files): Likewise.
5896         * modules/fstrcmp-tests (Files): Likewise.
5897         * modules/fsync-tests (Files): Likewise.
5898         * modules/ftell-tests (Files): Likewise.
5899         * modules/ftello-tests (Files): Likewise.
5900         * modules/func-tests (Files): Likewise.
5901         * modules/futimens-tests (Files): Likewise.
5902         * modules/fwritable-tests (Files): Likewise.
5903         * modules/fwriting-tests (Files): Likewise.
5904         * modules/getcwd-tests (Files): Likewise.
5905         * modules/getdate-tests (Files): Likewise.
5906         * modules/getdelim-tests (Files): Likewise.
5907         * modules/getdtablesize-tests (Files): Likewise.
5908         * modules/getgroups-tests (Files): Likewise.
5909         * modules/getline-tests (Files): Likewise.
5910         * modules/getndelim2-tests (Files): Likewise.
5911         * modules/glob-tests (Files): Likewise.
5912         * modules/hash-tests (Files): Likewise.
5913         * modules/i-ring-tests (Files): Likewise.
5914         * modules/iconv-tests (Files): Likewise.
5915         * modules/iconv_open-utf-tests (Files): Likewise.
5916         * modules/idpriv-drop-tests (Files): Likewise.
5917         * modules/idpriv-droptemp-tests (Files): Likewise.
5918         * modules/inet_ntop-tests (Files): Likewise.
5919         * modules/inet_pton-tests (Files): Likewise.
5920         * modules/isblank-tests (Files): Likewise.
5921         * modules/isfinite-tests (Files): Likewise.
5922         * modules/isinf-tests (Files): Likewise.
5923         * modules/isnan-tests (Files): Likewise.
5924         * modules/isnand-nolibm-tests (Files): Likewise.
5925         * modules/isnand-tests (Files): Likewise.
5926         * modules/isnanf-nolibm-tests (Files): Likewise.
5927         * modules/isnanf-tests (Files): Likewise.
5928         * modules/isnanl-nolibm-tests (Files): Likewise.
5929         * modules/isnanl-tests (Files): Likewise.
5930         * modules/lchown-tests (Files): Likewise.
5931         * modules/ldexpl-tests (Files): Likewise.
5932         * modules/link-tests (Files): Likewise.
5933         * modules/linkat-tests (Files): Likewise.
5934         * modules/linked-list-tests (Files): Likewise.
5935         * modules/linkedhash-list-tests (Files): Likewise.
5936         * modules/localename-tests (Files): Likewise.
5937         * modules/lseek-tests (Files): Likewise.
5938         * modules/lstat-tests (Files): Likewise.
5939         * modules/mbmemcasecmp-tests (Files): Likewise.
5940         * modules/mbmemcasecoll-tests (Files): Likewise.
5941         * modules/mbrtowc-tests (Files): Likewise.
5942         * modules/mbscasecmp-tests (Files): Likewise.
5943         * modules/mbscasestr-tests (Files): Likewise.
5944         * modules/mbschr-tests (Files): Likewise.
5945         * modules/mbscspn-tests (Files): Likewise.
5946         * modules/mbsinit-tests (Files): Likewise.
5947         * modules/mbsncasecmp-tests (Files): Likewise.
5948         * modules/mbsnrtowcs-tests (Files): Likewise.
5949         * modules/mbspbrk-tests (Files): Likewise.
5950         * modules/mbspcasecmp-tests (Files): Likewise.
5951         * modules/mbsrchr-tests (Files): Likewise.
5952         * modules/mbsrtowcs-tests (Files): Likewise.
5953         * modules/mbsspn-tests (Files): Likewise.
5954         * modules/mbsstr-tests (Files): Likewise.
5955         * modules/memchr-tests (Files): Likewise.
5956         * modules/memchr2-tests (Files): Likewise.
5957         * modules/memcmp-tests (Files): Likewise.
5958         * modules/memmem-tests (Files): Likewise.
5959         * modules/memrchr-tests (Files): Likewise.
5960         * modules/mkdir-tests (Files): Likewise.
5961         * modules/mkfifo-tests (Files): Likewise.
5962         * modules/mkfifoat-tests (Files): Likewise.
5963         * modules/mknod-tests (Files): Likewise.
5964         * modules/nanosleep-tests (Files): Likewise.
5965         * modules/nl_langinfo-tests (Files): Likewise.
5966         * modules/obstack-printf-tests (Files): Likewise.
5967         * modules/open-tests (Files): Likewise.
5968         * modules/openat-tests (Files): Likewise.
5969         * modules/pipe-filter-gi-tests (Files): Likewise.
5970         * modules/pipe-filter-ii-tests (Files): Likewise.
5971         * modules/pipe2-tests (Files): Likewise.
5972         * modules/popen-safer-tests (Files): Likewise.
5973         * modules/popen-tests (Files): Likewise.
5974         * modules/posixtm-tests (Files): Likewise.
5975         * modules/pread-tests (Files): Likewise.
5976         * modules/printf-frexp-tests (Files): Likewise.
5977         * modules/printf-frexpl-tests (Files): Likewise.
5978         * modules/printf-posix-tests (Files): Likewise.
5979         * modules/priv-set-tests (Files): Likewise.
5980         * modules/quotearg-tests (Files): Likewise.
5981         * modules/random_r-tests (Files): Likewise.
5982         * modules/rawmemchr-tests (Files): Likewise.
5983         * modules/rbtree-list-tests (Files): Likewise.
5984         * modules/rbtree-oset-tests (Files): Likewise.
5985         * modules/rbtreehash-list-tests (Files): Likewise.
5986         * modules/readlink-tests (Files): Likewise.
5987         * modules/remove-tests (Files): Likewise.
5988         * modules/rename-tests (Files): Likewise.
5989         * modules/renameat-tests (Files): Likewise.
5990         * modules/rmdir-tests (Files): Likewise.
5991         * modules/round-tests (Files): Likewise.
5992         * modules/roundf-tests (Files): Likewise.
5993         * modules/roundl-tests (Files): Likewise.
5994         * modules/safe-alloc-tests (Files): Likewise.
5995         * modules/setenv-tests (Files): Likewise.
5996         * modules/sigaction-tests (Files): Likewise.
5997         * modules/signbit-tests (Files): Likewise.
5998         * modules/sleep-tests (Files): Likewise.
5999         * modules/snprintf-posix-tests (Files): Likewise.
6000         * modules/snprintf-tests (Files): Likewise.
6001         * modules/sprintf-posix-tests (Files): Likewise.
6002         * modules/stat-tests (Files): Likewise.
6003         * modules/stat-time-tests (Files): Likewise.
6004         * modules/strcasestr-tests (Files): Likewise.
6005         * modules/strchrnul-tests (Files): Likewise.
6006         * modules/strerror-tests (Files): Likewise.
6007         * modules/striconv-tests (Files): Likewise.
6008         * modules/striconveh-tests (Files): Likewise.
6009         * modules/striconveha-tests (Files): Likewise.
6010         * modules/strsignal-tests (Files): Likewise.
6011         * modules/strstr-tests (Files): Likewise.
6012         * modules/strtod-tests (Files): Likewise.
6013         * modules/strverscmp-tests (Files): Likewise.
6014         * modules/symlink-tests (Files): Likewise.
6015         * modules/symlinkat-tests (Files): Likewise.
6016         * modules/trunc-tests (Files): Likewise.
6017         * modules/truncf-tests (Files): Likewise.
6018         * modules/truncl-tests (Files): Likewise.
6019         * modules/uname-tests (Files): Likewise.
6020         * modules/unicase/cased-tests (Files): Likewise.
6021         * modules/unicase/ignorable-tests (Files): Likewise.
6022         * modules/unicase/locale-language-tests (Files): Likewise.
6023         * modules/unicase/tolower-tests (Files): Likewise.
6024         * modules/unicase/totitle-tests (Files): Likewise.
6025         * modules/unicase/toupper-tests (Files): Likewise.
6026         * modules/unicase/u8-casecmp-tests (Files): Likewise.
6027         * modules/unicase/u8-casecoll-tests (Files): Likewise.
6028         * modules/unicase/u8-casefold-tests (Files): Likewise.
6029         * modules/unicase/u8-is-cased-tests (Files): Likewise.
6030         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
6031         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
6032         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
6033         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
6034         * modules/unicase/u8-tolower-tests (Files): Likewise.
6035         * modules/unicase/u8-totitle-tests (Files): Likewise.
6036         * modules/unicase/u8-toupper-tests (Files): Likewise.
6037         * modules/unicase/u16-casecmp-tests (Files): Likewise.
6038         * modules/unicase/u16-casecoll-tests (Files): Likewise.
6039         * modules/unicase/u16-casefold-tests (Files): Likewise.
6040         * modules/unicase/u16-is-cased-tests (Files): Likewise.
6041         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
6042         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
6043         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
6044         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
6045         * modules/unicase/u16-tolower-tests (Files): Likewise.
6046         * modules/unicase/u16-totitle-tests (Files): Likewise.
6047         * modules/unicase/u16-toupper-tests (Files): Likewise.
6048         * modules/unicase/u32-casecmp-tests (Files): Likewise.
6049         * modules/unicase/u32-casecoll-tests (Files): Likewise.
6050         * modules/unicase/u32-casefold-tests (Files): Likewise.
6051         * modules/unicase/u32-is-cased-tests (Files): Likewise.
6052         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
6053         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
6054         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
6055         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
6056         * modules/unicase/u32-tolower-tests (Files): Likewise.
6057         * modules/unicase/u32-totitle-tests (Files): Likewise.
6058         * modules/unicase/u32-toupper-tests (Files): Likewise.
6059         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
6060         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
6061         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
6062         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
6063         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
6064         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
6065         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
6066         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
6067         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
6068         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
6069         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
6070         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
6071         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
6072         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
6073         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
6074         * modules/unictype/bidicategory-name-tests (Files): Likewise.
6075         * modules/unictype/bidicategory-of-tests (Files): Likewise.
6076         * modules/unictype/bidicategory-test-tests (Files): Likewise.
6077         * modules/unictype/block-list-tests (Files): Likewise.
6078         * modules/unictype/block-of-tests (Files): Likewise.
6079         * modules/unictype/block-test-tests (Files): Likewise.
6080         * modules/unictype/category-C-tests (Files): Likewise.
6081         * modules/unictype/category-Cc-tests (Files): Likewise.
6082         * modules/unictype/category-Cf-tests (Files): Likewise.
6083         * modules/unictype/category-Cn-tests (Files): Likewise.
6084         * modules/unictype/category-Co-tests (Files): Likewise.
6085         * modules/unictype/category-Cs-tests (Files): Likewise.
6086         * modules/unictype/category-L-tests (Files): Likewise.
6087         * modules/unictype/category-Ll-tests (Files): Likewise.
6088         * modules/unictype/category-Lm-tests (Files): Likewise.
6089         * modules/unictype/category-Lo-tests (Files): Likewise.
6090         * modules/unictype/category-Lt-tests (Files): Likewise.
6091         * modules/unictype/category-Lu-tests (Files): Likewise.
6092         * modules/unictype/category-M-tests (Files): Likewise.
6093         * modules/unictype/category-Mc-tests (Files): Likewise.
6094         * modules/unictype/category-Me-tests (Files): Likewise.
6095         * modules/unictype/category-Mn-tests (Files): Likewise.
6096         * modules/unictype/category-N-tests (Files): Likewise.
6097         * modules/unictype/category-Nd-tests (Files): Likewise.
6098         * modules/unictype/category-Nl-tests (Files): Likewise.
6099         * modules/unictype/category-No-tests (Files): Likewise.
6100         * modules/unictype/category-P-tests (Files): Likewise.
6101         * modules/unictype/category-Pc-tests (Files): Likewise.
6102         * modules/unictype/category-Pd-tests (Files): Likewise.
6103         * modules/unictype/category-Pe-tests (Files): Likewise.
6104         * modules/unictype/category-Pf-tests (Files): Likewise.
6105         * modules/unictype/category-Pi-tests (Files): Likewise.
6106         * modules/unictype/category-Po-tests (Files): Likewise.
6107         * modules/unictype/category-Ps-tests (Files): Likewise.
6108         * modules/unictype/category-S-tests (Files): Likewise.
6109         * modules/unictype/category-Sc-tests (Files): Likewise.
6110         * modules/unictype/category-Sk-tests (Files): Likewise.
6111         * modules/unictype/category-Sm-tests (Files): Likewise.
6112         * modules/unictype/category-So-tests (Files): Likewise.
6113         * modules/unictype/category-Z-tests (Files): Likewise.
6114         * modules/unictype/category-Zl-tests (Files): Likewise.
6115         * modules/unictype/category-Zp-tests (Files): Likewise.
6116         * modules/unictype/category-Zs-tests (Files): Likewise.
6117         * modules/unictype/category-and-not-tests (Files): Likewise.
6118         * modules/unictype/category-and-tests (Files): Likewise.
6119         * modules/unictype/category-byname-tests (Files): Likewise.
6120         * modules/unictype/category-name-tests (Files): Likewise.
6121         * modules/unictype/category-none-tests (Files): Likewise.
6122         * modules/unictype/category-of-tests (Files): Likewise.
6123         * modules/unictype/category-or-tests (Files): Likewise.
6124         * modules/unictype/category-test-withtable-tests (Files): Likewise.
6125         * modules/unictype/combining-class-tests (Files): Likewise.
6126         * modules/unictype/ctype-alnum-tests (Files): Likewise.
6127         * modules/unictype/ctype-alpha-tests (Files): Likewise.
6128         * modules/unictype/ctype-blank-tests (Files): Likewise.
6129         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
6130         * modules/unictype/ctype-digit-tests (Files): Likewise.
6131         * modules/unictype/ctype-graph-tests (Files): Likewise.
6132         * modules/unictype/ctype-lower-tests (Files): Likewise.
6133         * modules/unictype/ctype-print-tests (Files): Likewise.
6134         * modules/unictype/ctype-punct-tests (Files): Likewise.
6135         * modules/unictype/ctype-space-tests (Files): Likewise.
6136         * modules/unictype/ctype-upper-tests (Files): Likewise.
6137         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
6138         * modules/unictype/decimal-digit-tests (Files): Likewise.
6139         * modules/unictype/digit-tests (Files): Likewise.
6140         * modules/unictype/mirror-tests (Files): Likewise.
6141         * modules/unictype/numeric-tests (Files): Likewise.
6142         * modules/unictype/property-alphabetic-tests (Files): Likewise.
6143         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
6144         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
6145         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
6146         Likewise.
6147         * modules/unictype/property-bidi-block-separator-tests (Files):
6148         Likewise.
6149         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
6150         Likewise.
6151         * modules/unictype/property-bidi-common-separator-tests (Files):
6152         Likewise.
6153         * modules/unictype/property-bidi-control-tests (Files): Likewise.
6154         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
6155         Likewise.
6156         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
6157         Likewise.
6158         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
6159         Likewise.
6160         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
6161         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
6162         Likewise.
6163         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
6164         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
6165         Likewise.
6166         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
6167         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
6168         * modules/unictype/property-bidi-segment-separator-tests (Files):
6169         Likewise.
6170         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
6171         * modules/unictype/property-byname-tests (Files): Likewise.
6172         * modules/unictype/property-combining-tests (Files): Likewise.
6173         * modules/unictype/property-composite-tests (Files): Likewise.
6174         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
6175         * modules/unictype/property-dash-tests (Files): Likewise.
6176         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
6177         * modules/unictype/property-default-ignorable-code-point-tests (Files):
6178         Likewise.
6179         * modules/unictype/property-deprecated-tests (Files): Likewise.
6180         * modules/unictype/property-diacritic-tests (Files): Likewise.
6181         * modules/unictype/property-extender-tests (Files): Likewise.
6182         * modules/unictype/property-format-control-tests (Files): Likewise.
6183         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
6184         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
6185         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
6186         * modules/unictype/property-hex-digit-tests (Files): Likewise.
6187         * modules/unictype/property-hyphen-tests (Files): Likewise.
6188         * modules/unictype/property-id-continue-tests (Files): Likewise.
6189         * modules/unictype/property-id-start-tests (Files): Likewise.
6190         * modules/unictype/property-ideographic-tests (Files): Likewise.
6191         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
6192         * modules/unictype/property-ids-trinary-operator-tests (Files):
6193         Likewise.
6194         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
6195         * modules/unictype/property-iso-control-tests (Files): Likewise.
6196         * modules/unictype/property-join-control-tests (Files): Likewise.
6197         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
6198         * modules/unictype/property-line-separator-tests (Files): Likewise.
6199         * modules/unictype/property-logical-order-exception-tests (Files):
6200         Likewise.
6201         * modules/unictype/property-lowercase-tests (Files): Likewise.
6202         * modules/unictype/property-math-tests (Files): Likewise.
6203         * modules/unictype/property-non-break-tests (Files): Likewise.
6204         * modules/unictype/property-not-a-character-tests (Files): Likewise.
6205         * modules/unictype/property-numeric-tests (Files): Likewise.
6206         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
6207         * modules/unictype/property-other-default-ignorable-code-point-tests
6208         (Files): Likewise.
6209         * modules/unictype/property-other-grapheme-extend-tests (Files):
6210         Likewise.
6211         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
6212         * modules/unictype/property-other-id-start-tests (Files): Likewise.
6213         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
6214         * modules/unictype/property-other-math-tests (Files): Likewise.
6215         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
6216         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
6217         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
6218         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
6219         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
6220         * modules/unictype/property-private-use-tests (Files): Likewise.
6221         * modules/unictype/property-punctuation-tests (Files): Likewise.
6222         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
6223         * modules/unictype/property-radical-tests (Files): Likewise.
6224         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
6225         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
6226         * modules/unictype/property-space-tests (Files): Likewise.
6227         * modules/unictype/property-terminal-punctuation-tests (Files):
6228         Likewise.
6229         * modules/unictype/property-test-tests (Files): Likewise.
6230         * modules/unictype/property-titlecase-tests (Files): Likewise.
6231         * modules/unictype/property-unassigned-code-value-tests (Files):
6232         Likewise.
6233         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
6234         * modules/unictype/property-uppercase-tests (Files): Likewise.
6235         * modules/unictype/property-variation-selector-tests (Files): Likewise.
6236         * modules/unictype/property-white-space-tests (Files): Likewise.
6237         * modules/unictype/property-xid-continue-tests (Files): Likewise.
6238         * modules/unictype/property-xid-start-tests (Files): Likewise.
6239         * modules/unictype/property-zero-width-tests (Files): Likewise.
6240         * modules/unictype/scripts-tests (Files): Likewise.
6241         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
6242         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
6243         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
6244         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
6245         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
6246         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
6247         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
6248         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
6249         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
6250         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
6251         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
6252         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
6253         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
6254         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
6255         * modules/uninorm/composition-tests (Files): Likewise.
6256         * modules/uninorm/decomposing-form-tests (Files): Likewise.
6257         * modules/uninorm/decomposition-tests (Files): Likewise.
6258         * modules/uninorm/filter-tests (Files): Likewise.
6259         * modules/uninorm/nfc-tests (Files): Likewise.
6260         * modules/uninorm/nfd-tests (Files): Likewise.
6261         * modules/uninorm/nfkc-tests (Files): Likewise.
6262         * modules/uninorm/nfkd-tests (Files): Likewise.
6263         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
6264         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
6265         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
6266         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
6267         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
6268         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
6269         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
6270         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
6271         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
6272         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
6273         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
6274         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
6275         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
6276         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
6277         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
6278         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
6279         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
6280         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
6281         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
6282         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
6283         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
6284         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
6285         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
6286         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
6287         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
6288         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
6289         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
6290         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
6291         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
6292         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
6293         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
6294         * modules/uniwidth/u8-width-tests (Files): Likewise.
6295         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
6296         * modules/uniwidth/u16-width-tests (Files): Likewise.
6297         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
6298         * modules/uniwidth/u32-width-tests (Files): Likewise.
6299         * modules/uniwidth/width-tests (Files): Likewise.
6300         * modules/unlink-tests (Files): Likewise.
6301         * modules/unsetenv-tests (Files): Likewise.
6302         * modules/usleep-tests (Files): Likewise.
6303         * modules/utimens-tests (Files): Likewise.
6304         * modules/utimensat-tests (Files): Likewise.
6305         * modules/vasnprintf-posix-tests (Files): Likewise.
6306         * modules/vasnprintf-tests (Files): Likewise.
6307         * modules/vasprintf-posix-tests (Files): Likewise.
6308         * modules/vasprintf-tests (Files): Likewise.
6309         * modules/vdprintf-posix-tests (Files): Likewise.
6310         * modules/vfprintf-posix-tests (Files): Likewise.
6311         * modules/vprintf-posix-tests (Files): Likewise.
6312         * modules/vsnprintf-posix-tests (Files): Likewise.
6313         * modules/vsnprintf-tests (Files): Likewise.
6314         * modules/vsprintf-posix-tests (Files): Likewise.
6315         * modules/wcrtomb-tests (Files): Likewise.
6316         * modules/wcsnrtombs-tests (Files): Likewise.
6317         * modules/wcsrtombs-tests (Files): Likewise.
6318         * modules/wctype-tests (Files): Likewise.
6319         * modules/wcwidth-tests (Files): Likewise.
6320         * modules/xmemdup0-tests (Files): Likewise.
6321         * modules/xprintf-posix-tests (Files): Likewise.
6322         * modules/xvasprintf-tests (Files): Likewise.
6323
6324 2009-12-24  Eric Blake  <ebb9@byu.net>
6325
6326         test-nanosleep: fix typo
6327         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
6328         patch.
6329         Reported by Bruno Haible.
6330
6331 2009-12-24  Bruno Haible  <bruno@clisp.org>
6332
6333         Reduce namespace pollution on glibc systems.
6334         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
6335         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
6336         systems.
6337         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
6338         <getopt.h> on glibc systems.
6339         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
6340         systems.
6341         * lib/fcntl.c: Include <unistd.h> here instead.
6342
6343 2009-12-24  Bruno Haible  <bruno@clisp.org>
6344
6345         * lib/stdlib.in.h (includes): Fix typo in today's commit.
6346
6347 2009-12-24  Eric Blake  <ebb9@byu.net>
6348
6349         tests: add signature checks
6350         * tests/signature.h (SIGNATURE_CHECK): New file.
6351         * modules/atexit-tests (Files): Use it.
6352         * modules/btowc-tests (Files): Likewise.
6353         * modules/canonicalize-lgpl-tests (Files): Likewise.
6354         * modules/ceilf-tests (Files): Likewise.
6355         * modules/ceill-tests (Files): Likewise.
6356         * modules/chown-tests (Files): Likewise.
6357         * modules/dprintf-posix-tests (Files): Likewise.
6358         * modules/dup2-tests (Files): Likewise.
6359         * modules/dup3-tests (Files): Likewise.
6360         * modules/duplocale-tests (Files): Likewise.
6361         * modules/fchdir-tests (Files): Likewise.
6362         * modules/fcntl-tests (Files): Likewise.
6363         * modules/fdopendir-tests (Files): Likewise.
6364         * modules/fflush-tests (Files): Likewise.
6365         * modules/flock-tests (Files): Likewise.
6366         * modules/floorf-tests (Files): Likewise.
6367         * modules/floorl-tests (Files): Likewise.
6368         * modules/fnmatch-tests (Files): Likewise.
6369         * modules/fopen-tests (Files): Likewise.
6370         * modules/fprintf-posix-tests (Files): Likewise.
6371         * modules/freopen-tests (Files): Likewise.
6372         * modules/frexp-nolibm-tests (Files): Likewise.
6373         * modules/frexp-tests (Files): Likewise.
6374         * modules/frexpl-nolibm-tests (Files): Likewise.
6375         * modules/frexpl-tests (Files): Likewise.
6376         * modules/fseek-tests (Files): Likewise.
6377         * modules/fseeko-tests (Files): Likewise.
6378         * modules/fsync-tests (Files): Likewise.
6379         * modules/ftell-tests (Files): Likewise.
6380         * modules/ftello-tests (Files): Likewise.
6381         * modules/futimens-tests (Files): Likewise.
6382         * modules/getaddrinfo-tests (Files): Likewise.
6383         * modules/getcwd-tests (Files): Likewise.
6384         * modules/getdelim-tests (Files): Likewise.
6385         * modules/getdtablesize-tests (Files): Likewise.
6386         * modules/getgroups-tests (Files): Likewise.
6387         * modules/gethostname-tests (Files): Likewise.
6388         * modules/getline-tests (Files): Likewise.
6389         * modules/getopt-posix-tests (Files): Likewise.
6390         * modules/gettimeofday-tests (Files): Likewise.
6391         * modules/glob-tests (Files): Likewise.
6392         * modules/iconv-tests (Files): Likewise.
6393         * modules/inet_ntop-tests (Files): Likewise.
6394         * modules/inet_pton-tests (Files): Likewise.
6395         * modules/isblank-tests (Files): Likewise.
6396         * modules/lchown-tests (Files): Likewise.
6397         * modules/ldexpl-tests (Files): Likewise.
6398         * modules/link-tests (Files): Likewise.
6399         * modules/linkat-tests (Files): Likewise.
6400         * modules/lseek-tests (Files): Likewise.
6401         * modules/lstat-tests (Files): Likewise.
6402         * modules/mbrtowc-tests (Files): Likewise.
6403         * modules/mbsinit-tests (Files): Likewise.
6404         * modules/mbsnrtowcs-tests (Files): Likewise.
6405         * modules/mbsrtowcs-tests (Files): Likewise.
6406         * modules/memchr-tests (Files): Likewise.
6407         * modules/memcmp-tests (Files): Likewise.
6408         * modules/memmem-tests (Files): Likewise.
6409         * modules/memrchr-tests (Files): Likewise.
6410         * modules/mkdir-tests (Files): Likewise.
6411         * modules/mkfifo-tests (Files): Likewise.
6412         * modules/mkfifoat-tests (Files): Likewise.
6413         * modules/mknod-tests (Files): Likewise.
6414         * modules/nanosleep-tests (Files): Likewise.
6415         * modules/nl_langinfo-tests (Files): Likewise.
6416         * modules/obstack-printf-tests (Files): Likewise.
6417         * modules/open-tests (Files): Likewise.
6418         * modules/openat-tests (Files): Likewise.
6419         * modules/perror-tests (Files): Likewise.
6420         * modules/pipe2-tests (Files): Likewise.
6421         * modules/poll-tests (Files): Likewise.
6422         * modules/popen-tests (Files): Likewise.
6423         * modules/posix_spawn-tests (Files): Likewise.
6424         * modules/posix_spawnp-tests (Files): Likewise.
6425         * modules/pread-tests (Files): Likewise.
6426         * modules/printf-posix-tests (Files): Likewise.
6427         * modules/pty-tests (Files): Likewise.
6428         * modules/random_r-tests (Files): Likewise.
6429         * modules/rawmemchr-tests (Files): Likewise.
6430         * modules/readlink-tests (Files): Likewise.
6431         * modules/remove-tests (Files): Likewise.
6432         * modules/rename-tests (Files): Likewise.
6433         * modules/renameat-tests (Files): Likewise.
6434         * modules/rmdir-tests (Files): Likewise.
6435         * modules/round-tests (Files): Likewise.
6436         * modules/roundf-tests (Files): Likewise.
6437         * modules/roundl-tests (Files): Likewise.
6438         * modules/select-tests (Files): Likewise.
6439         * modules/setenv-tests (Files): Likewise.
6440         * modules/sigaction-tests (Files): Likewise.
6441         * modules/sleep-tests (Files): Likewise.
6442         * modules/snprintf-posix-tests (Files): Likewise.
6443         * modules/snprintf-tests (Files): Likewise.
6444         * modules/sprintf-posix-tests (Files): Likewise.
6445         * modules/stat-tests (Files): Likewise.
6446         * modules/strcasestr-tests (Files): Likewise.
6447         * modules/strchrnul-tests (Files): Likewise.
6448         * modules/strerror-tests (Files): Likewise.
6449         * modules/strsignal-tests (Files): Likewise.
6450         * modules/strstr-tests (Files): Likewise.
6451         * modules/strtod-tests (Files): Likewise.
6452         * modules/strverscmp-tests (Files): Likewise.
6453         * modules/symlink-tests (Files): Likewise.
6454         * modules/symlinkat-tests (Files): Likewise.
6455         * modules/times-tests (Files): Likewise.
6456         * modules/trunc-tests (Files): Likewise.
6457         * modules/truncf-tests (Files): Likewise.
6458         * modules/truncl-tests (Files): Likewise.
6459         * modules/tsearch-tests (Files): Likewise.
6460         * modules/uname-tests (Files): Likewise.
6461         * modules/unlink-tests (Files): Likewise.
6462         * modules/unsetenv-tests (Files): Likewise.
6463         * modules/usleep-tests (Files): Likewise.
6464         * modules/utimensat-tests (Files): Likewise.
6465         * modules/vasprintf-tests (Files): Likewise.
6466         * modules/vdprintf-posix-tests (Files): Likewise.
6467         * modules/vfprintf-posix-tests (Files): Likewise.
6468         * modules/vprintf-posix-tests (Files): Likewise.
6469         * modules/vsnprintf-posix-tests (Files): Likewise.
6470         * modules/vsnprintf-tests (Files): Likewise.
6471         * modules/vsprintf-posix-tests (Files): Likewise.
6472         * modules/wcrtomb-tests (Files): Likewise.
6473         * modules/wcsnrtombs-tests (Files): Likewise.
6474         * modules/wcsrtombs-tests (Files): Likewise.
6475         * modules/wcwidth-tests (Files): Likewise.
6476         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
6477         * tests/test-isinf.c (isinf): Likewise.
6478         * tests/test-isnan.c (isnan): Likewise.
6479         * tests/test-signbit.c (signbit): Likewise.
6480         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
6481         declaration, either as macro or with correct signature.
6482         (select): Ensure function under test is declared with correct
6483         signature in correct header.
6484         * tests/test-atexit.c (atexit): Likewise.
6485         * tests/test-btowc.c (btowc): Likewise.
6486         * tests/test-canonicalize-lgpl.c (realpath)
6487         (canonicalize_file_name): Likewise.
6488         * tests/test-ceilf1.c (ceilf): Likewise.
6489         * tests/test-ceill.c (ceill): Likewise.
6490         * tests/test-chown.c (chown): Likewise.
6491         * tests/test-dprintf-posix.c (dprintf): Likewise.
6492         * tests/test-dup2.c (dup2): Likewise.
6493         * tests/test-dup3.c (dup3): Likewise.
6494         * tests/test-duplocale.c (duplocale): Likewise.
6495         * tests/test-fchdir.c (fchdir): Likewise.
6496         * tests/test-fchownat.c (fchownat): Likewise.
6497         * tests/test-fcntl.c (fcntl): Likewise.
6498         * tests/test-fdopendir.c (fdopendir): Likewise.
6499         * tests/test-fflush.c (fflush): Likewise.
6500         * tests/test-flock.c (flock): Likewise.
6501         * tests/test-floorf1.c (floorf): Likewise.
6502         * tests/test-floorl.c (floorl): Likewise.
6503         * tests/test-fnmatch.c (fnmatch): Likewise.
6504         * tests/test-fopen.c (fopen): Likewise.
6505         * tests/test-fprintf-posix.c (fprintf): Likewise.
6506         * tests/test-freopen.c (freopen): Likewise.
6507         * tests/test-frexp.c (frexp): Likewise.
6508         * tests/test-frexpl.c (frexpl): Likewise.
6509         * tests/test-fseek.c (fseek): Likewise.
6510         * tests/test-fseeko.c (fseeko): Likewise.
6511         * tests/test-fstatat.c (fstatat): Likewise.
6512         * tests/test-fsync.c (fsync): Likewise.
6513         * tests/test-ftell.c (ftell): Likewise.
6514         * tests/test-ftello.c (ftello): Likewise.
6515         * tests/test-futimens.c (futimens): Likewise.
6516         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
6517         (gai_strerror): Likewise.
6518         * tests/test-getcwd.c (getcwd): Likewise.
6519         * tests/test-getdelim.c (getdelim): Likewise.
6520         * tests/test-getdtablesize.c (getdtablesize): Likewise.
6521         * tests/test-getgroups.c (getgroups): Likewise.
6522         * tests/test-gethostname.c (gethostname): Likewise.
6523         * tests/test-getline.c (getline): Likewise.
6524         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
6525         Likewise.
6526         * tests/test-gettimeofday.c (gettimeofday): Likewise.
6527         * tests/test-glob.c (glob, globfree): Likewise.
6528         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
6529         * tests/test-inet_ntop.c (inet_ntop): Likewise.
6530         * tests/test-inet_pton.c (inet_pton): Likewise.
6531         * tests/test-isblank.c (isblank): Likewise.
6532         * tests/test-lchown.c (lchown): Likewise.
6533         * tests/test-ldexpl.c (ldexpl): Likewise.
6534         * tests/test-link.c (link): Likewise.
6535         * tests/test-linkat.c (linkat): Likewise.
6536         * tests/test-lseek.c (lseek): Likewise.
6537         * tests/test-lstat.c (lstat): Likewise.
6538         * tests/test-mbrtowc.c (mbrtowc): Likewise.
6539         * tests/test-mbsinit.c (mbsinit): Likewise.
6540         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
6541         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
6542         * tests/test-memchr.c (memchr): Likewise.
6543         * tests/test-memcmp.c (memcmp): Likewise.
6544         * tests/test-memmem.c (memmem): Likewise.
6545         * tests/test-memrchr.c (memrchr): Likewise.
6546         * tests/test-mkdir.c (mkdir): Likewise.
6547         * tests/test-mkdirat.c (mkdirat): Likewise.
6548         * tests/test-mkfifo.c (mkfifo): Likewise.
6549         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
6550         * tests/test-mknod.c (mknod): Likewise.
6551         * tests/test-nanosleep.c (nanosleep): Likewise.
6552         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
6553         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
6554         Likewise.
6555         * tests/test-open.c (open): Likewise.
6556         * tests/test-openat.c (openat): Likewise.
6557         * tests/test-perror.c (perror): Likewise.
6558         * tests/test-pipe2.c (pipe2): Likewise.
6559         * tests/test-poll.c (poll): Likewise.
6560         * tests/test-popen.c (popen, pclose): Likewise.
6561         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
6562         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
6563         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
6564         (posix_spawn_file_actions_destroy)
6565         (posix_spawn_file_actions_addclose)
6566         (posix_spawn_file_actions_addopen)
6567         (posix_spawn_file_actions_adddup2): Likewise.
6568         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
6569         * tests/test-pread.c (pread): Likewise.
6570         * tests/test-printf-posix.c (printf): Likewise.
6571         * tests/test-pty.c (openpty, forkpty): Likewise.
6572         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
6573         (random_r): Likewise.
6574         * tests/test-rawmemchr.c (rawmemchr): Likewise.
6575         * tests/test-readlink.c (readlink): Likewise.
6576         * tests/test-remove.c (remove): Likewise.
6577         * tests/test-rename.c (rename): Likewise.
6578         * tests/test-renameat.c (renameat): Likewise.
6579         * tests/test-rmdir.c (rmdir): Likewise.
6580         * tests/test-round1.c (round): Likewise.
6581         * tests/test-roundf1.c (roundf): Likewise.
6582         * tests/test-roundl.c (roundl): Likewise.
6583         * tests/test-setenv.c (setenv): Likewise.
6584         * tests/test-sigaction.c (sigaction): Likewise.
6585         * tests/test-sleep.c (sleep): Likewise.
6586         * tests/test-snprintf.c (snprintf): Likewise.
6587         * tests/test-sprintf-posix.c (sprintf): Likewise.
6588         * tests/test-stat.c (stat): Likewise.
6589         * tests/test-stpncpy.c (stpncpy): Likewise.
6590         * tests/test-strcasestr.c (strcasestr): Likewise.
6591         * tests/test-strchrnul.c (strchrnul): Likewise.
6592         * tests/test-strerror.c (strerror): Likewise.
6593         * tests/test-strsignal.c (strsignal): Likewise.
6594         * tests/test-strstr.c (strstr): Likewise.
6595         * tests/test-strtod.c (strtod): Likewise.
6596         * tests/test-strverscmp.c (strverscmp): Likewise.
6597         * tests/test-symlink.c (symlink): Likewise.
6598         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
6599         * tests/test-times.c (times): Likewise.
6600         * tests/test-trunc1.c (trunc): Likewise.
6601         * tests/test-truncf1.c (truncf): Likewise.
6602         * tests/test-truncl.c (truncl): Likewise.
6603         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
6604         Likewise.
6605         * tests/test-uname.c (uname): Likewise.
6606         * tests/test-unlink.c (unlink): Likewise.
6607         * tests/test-unlinkat.c (unlinkat): Likewise.
6608         * tests/test-unsetenv.c (unsetenv): Likewise.
6609         * tests/test-usleep.c (usleep): Likewise.
6610         * tests/test-utimensat.c (utimensat): Likewise.
6611         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
6612         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
6613         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
6614         * tests/test-vprintf-posix.c (vprintf): Likewise.
6615         * tests/test-vsnprintf.c (vsnprintf): Likewise.
6616         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
6617         * tests/test-wcrtomb.c (wcrtomb): Likewise.
6618         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
6619         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
6620         * tests/test-wcwidth.c (wcwidth): Likewise.
6621
6622         build: pull in conditional headers during GNULIB_POSIXCHECK
6623         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
6624         definitions from any conditionally-included headers.
6625         * lib/stdlib.in.h (includes): Likewise.
6626         * lib/unistd.in.h (includes): Likewise.
6627
6628 2009-12-24  Bruno Haible  <bruno@clisp.org>
6629
6630         * tests/test-argv-iter.c: Include header file being tested immediately
6631         after config.h.
6632         * tests/test-base64.c: Likewise.
6633         * tests/test-flock.c: Likewise.
6634         * tests/test-fsync.c: Likewise.
6635         * tests/test-getdate.c: Likewise.
6636         * tests/test-getndelim2.c: Likewise.
6637         * tests/test-isfinite.c: Likewise.
6638         * tests/test-isinf.c: Likewise.
6639         * tests/test-strerror.c: Likewise.
6640         * tests/test-strsignal.c: Likewise.
6641
6642 2009-12-23  Eric Blake  <ebb9@byu.net>
6643
6644         unistd: work around cygwin bug
6645         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
6646         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
6647         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
6648
6649 2009-12-23  Bruno Haible  <bruno@clisp.org>
6650
6651         localename: More tests.
6652         * tests/test-localename.c (SIZEOF): New macro.
6653         (categories): New variable.
6654         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
6655         test_locale_name_default): Add test w.r.t. thread locale.
6656         (test_locale_name_thread): New function.
6657         (main): Invoke it.
6658
6659         localename: Make aware of thread locale.
6660         * lib/localename.h (gl_locale_name_thread): New declaration.
6661         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
6662         behaviour with respect to thread locale.
6663         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
6664         <langinfo.h>, glthread/lock.h.
6665         (SIZE_BITS): New macro.
6666         (string_hash): New function.
6667         (struct hash_node): New type.
6668         (HASH_TABLE_SIZE): New macro.
6669         (struniq_hash_table, struniq_lock): New variables.
6670         (struniq): New function.
6671         (gl_locale_name_thread): New function.
6672         (gl_locale_name): Invoke it.
6673         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
6674         * modules/localename (Depends-on): Add lock.
6675         Reported by Mike Gran <spk121@yahoo.com>.
6676
6677 2009-12-23  Eric Blake  <ebb9@byu.net>
6678
6679         va-args: new module
6680         * modules/va-args: New file.
6681         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
6682         * MODULES.html.sh (Core language properties): Mention it.
6683
6684         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
6685         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
6686         named alias for __attribute__((__unused__)).
6687         * lib/chown.c: Update client.
6688         * lib/fchmodat.c: Likewise.
6689         * lib/fts.c: Likewise.
6690         * lib/getdate.y: Likewise.
6691         * lib/getgroups.c: Likewise.
6692         * lib/getopt.c: Likewise.
6693         * lib/getugroups.c: Likewise.
6694         * lib/mkdir.c: Likewise.
6695         * lib/mkfifo.c: Likewise.
6696         * lib/mkfifoat.c: Likewise.
6697         * lib/mknod.c: Likewise.
6698         * lib/mknodat.c: Likewise.
6699         * lib/readlink.c: Likewise.
6700         * lib/se-context.in.h: Likewise.
6701         * lib/se-selinux.in.h: Likewise.
6702         * lib/sockets.c: Likewise.
6703         * lib/symlink.c: Likewise.
6704         * lib/symlinkat.c: Likewise.
6705         * lib/unicodeio.c: Likewise.
6706         * lib/unistr.h: Likewise.
6707         * tests/test-areadlink.c: Likewise.
6708         * tests/test-areadlinkat.c: Likewise.
6709         * tests/test-filenamecat.c: Likewise.
6710         * tests/test-fseeko.c: Likewise.
6711         * tests/test-ftello.c: Likewise.
6712         * tests/test-getdate.c: Likewise.
6713         * tests/test-getgroups.c: Likewise.
6714         * tests/test-gethostname.c: Likewise.
6715         * tests/test-quotearg.c: Likewise.
6716         * tests/test-version-etc.c: Likewise.
6717         * tests/test-xalloc-die.c: Likewise.
6718         * tests/test-xfprintf-posix.c: Likewise.
6719         * tests/test-xprintf-posix.c: Likewise.
6720         * tests/test-xvasprintf.c: Likewise.
6721
6722         tests: avoid compiler warnings
6723         * tests/test-fcntl.c (main): Delete unused parameters.
6724         * tests/test-freopen-safer.c (main): Likewise.
6725         * tests/test-xalloc-die.c (main): Mark unused parameters.
6726         * tests/test-fseeko.c (main): Likewise.
6727         * tests/test-ftello.c (main): Likewise.
6728         * tests/test-nanosleep.c (main): Avoid declaration warning.
6729         * tests/test-sleep.c (main): Likewise.
6730         * tests/test-unsetenv.c (main): Silence warning about string
6731         literal.
6732         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
6733
6734 2009-12-23  Bruno Haible  <bruno@clisp.org>
6735
6736         * tests/test-localename.c (test_locale_name): New function, extracted
6737         from main. Also test mixed situations.
6738         (test_locale_name_posix, test_locale_name_environ,
6739         test_locale_name_default): New functions.
6740         (main): Invoke them all.
6741         * modules/localename-tests (configure.ac): Test for newlocale.
6742
6743 2009-12-23  Bruno Haible  <bruno@clisp.org>
6744
6745         unistd: Ensure getcwd gets declared before being overridden.
6746         * lib/unistd.in.h: Conditionally include <io.h>.
6747
6748 2009-12-22  Bruno Haible  <bruno@clisp.org>
6749
6750         wchar: Diagnose broken combination of glibc and gcc versions and flags.
6751         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
6752         (gl_WCHAR_H): Invoke it.
6753         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
6754         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
6755         Reported by Karl Berry <karl@freefriends.org>.
6756
6757 2009-12-22  Eric Blake  <ebb9@byu.net>
6758
6759         math, unistd: avoid redundant includes
6760         * lib/math.in.h (isnan): No need to re-include <math.h>.
6761         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
6762
6763         getsubopt: work around cygwin bug
6764         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
6765         avoid conflicting with system getsubopt.
6766         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
6767         bug.
6768
6769         getopt: synchronize from glibc
6770         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
6771         parameter order.  Adjust all callers.
6772         (_getopt_internal_r, main): Adjust quoting in error messages.
6773         Drop considerations for outdated POSIX 1003.2 error message.
6774         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
6775         callers.
6776         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
6777
6778         test-getopt: test stderr behavior
6779         * modules/getopt-posix-tests (Depends-on): Add dup2.
6780         * tests/test-getopt.c (ASSERT): Avoid stderr.
6781         (main): Move stderr to a temporary file.
6782         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
6783         Instead, add parameter to inform caller if output occurred.
6784         (test_getopt): Adjust all existing tests to expect silence, and
6785         add new tests of leading ":".
6786         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
6787         glibc shortcomings with leading "-:" or "+:" in optstring.
6788         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6789         Likewise.
6790         * doc/posix-functions/getopt.texi (getopt): Likewise.
6791
6792         test-getopt: enhance test
6793         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
6794         supports optind=0.
6795         * tests/test-getopt.c (OPTIND_MIN): Move...
6796         * tests/test-getopt.h (OPTIND_MIN): ...here.
6797         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
6798         Require that optind=0 works, since modern BSD supports it in
6799         addition to optreset, and since coreutils expects it.
6800         (test_getopt_long_only): New test.
6801         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
6802         glibc shortcomings with 'W;', and enforcement of optind=0.
6803         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6804         Likewise.
6805
6806 2009-12-21  Bruno Haible  <bruno@clisp.org>
6807
6808         localename: Improvements for MacOS X and Cygwin.
6809         * lib/localename.h (gl_locale_name_environ): New declaration.
6810         * lib/localename.c (gl_locale_name_environ): New function, extracted from
6811         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
6812         (gl_locale_name_posix): Invoke it.
6813         (gl_locale_name_default): Add comments. Use Windows native API also on
6814         Cygwin.
6815
6816 2009-12-21  Bruno Haible  <bruno@clisp.org>
6817
6818         Update list of Win32 locale ids.
6819         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
6820         (LANG_SAMI): Renamed from LANG_SAAMI.
6821         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
6822         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
6823         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
6824         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
6825         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
6826         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
6827         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
6828         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
6829         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
6830         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
6831         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
6832         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
6833         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
6834         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
6835         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
6836         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
6837         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
6838         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
6839         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
6840         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
6841         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
6842         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
6843         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
6844         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
6845         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
6846         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
6847         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
6848         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
6849         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
6850         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
6851         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
6852         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
6853         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
6854         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
6855         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
6856         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
6857         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
6858         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
6859         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
6860         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
6861         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
6862         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
6863         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
6864         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
6865         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
6866         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
6867         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
6868         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
6869         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
6870         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
6871         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
6872         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
6873         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
6874         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
6875         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
6876         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
6877         Add more languages and countries for Sami, Sorbian. Add more countries
6878         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
6879         for Pashto. Change country for Syriac, Tswana.
6880
6881 2009-12-21  Eric Blake  <ebb9@byu.net>
6882
6883         test-utimens: avoid spurious failure
6884         * tests/test-chown.h (nap): Factor...
6885         * tests/nap.h: ...into new file.
6886         * tests/test-lchown.h (nap): Avoid duplication.
6887         * tests/test-utimens-common.h (nap): Use shared implementation,
6888         necessary on file systems with 1-second resolution.
6889         * modules/chown-tests (Files): Include new file.
6890         * modules/fdutimensat-tests (Files): Likewise.
6891         * modules/futimens-tests (Files): Likewise.
6892         * modules/lchown-tests (Files): Likewise.
6893         * modules/openat-tests (Files): Likewise.
6894         * modules/utimens-tests (Files): Likewise.
6895         * modules/utimensat-tests (Files): Likewise.
6896
6897 2009-12-19  Eric Blake  <ebb9@byu.net>
6898
6899         futimens, utimensat: work around Linux bug
6900         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
6901         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
6902         * lib/utimensat.c (rpl_utimensat): Work around it.
6903         * lib/futimens.c (rpl_futimens): Adjust comment.
6904
6905         utimens: work around Linux ctime bug
6906         * lib/utimens.c (detect_ctime_bug): New helper function.
6907         (update_timespec): Differentiate between workaround needed for
6908         this bug vs. what is needed for systems that lack utimensat.
6909         (fdutimens, lutimens): Work around bug.
6910
6911         utimens: check for ctime update
6912         * tests/test-utimens-common.h (check_ctime): Define.
6913         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
6914         * tests/test-futimens.h (test_futimens): Likewise.
6915         * tests/test-lutimens.h (test_lutimens): Likewise.
6916         * doc/posix-functions/futimens.texi (futimens): Document the bug.
6917         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
6918
6919 2009-12-19  Bruno Haible  <bruno@clisp.org>
6920
6921         dprintf-posix: Check against memory leak fixed on 2009-12-15.
6922         * tests/test-dprintf-posix2.sh: New file.
6923         * tests/test-dprintf-posix2.c: New file.
6924         * modules/dprintf-posix-tests (Files): Add them.
6925         (configure.ac): Check for getrlimit and setrlimit.
6926         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
6927
6928 2009-12-19  Bruno Haible  <bruno@clisp.org>
6929
6930         fprintf-posix: Check against memory leak fixed on 2009-12-15.
6931         * tests/test-fprintf-posix3.sh: New file.
6932         * tests/test-fprintf-posix3.c: New file.
6933         * modules/fprintf-posix-tests (Files): Add them.
6934         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
6935
6936 2009-12-19  Eric Blake  <ebb9@byu.net>
6937
6938         dirfd: fix prototype
6939         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
6940         * lib/dirfd.c (dirfd): Likewise.
6941
6942         canonicalize: reduce memory usage
6943         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
6944         allocation to size.
6945         Reported by Solar Designer <solar@openwall.com>.
6946
6947 2009-12-19  Bruno Haible  <bruno@clisp.org>
6948
6949         New module attribute 'Applicability'.
6950         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
6951         * gnulib-tool: New option --extract-applicability.
6952         (func_usage): Document it.
6953         (sed_extract_prog): Recognize it.
6954         (func_get_applicability): New function.
6955         (func_import): Generalize handling of 'link-warning' module.
6956         * modules/link-warning (Applicability): New section.
6957         * modules/arg-nonnull (Applicability): New section.
6958         Repoted by Simon Josefsson <simon@josefsson.org>.
6959
6960 2009-12-19  Bruno Haible  <bruno@clisp.org>
6961
6962         fflush: tweak
6963         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
6964         * lib/fseeko.c (rpl_fseeko): Likewise.
6965
6966 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
6967
6968         * lib/gl_list.h: Fix typo in comment.
6969
6970 2009-12-16  Eric Blake  <ebb9@byu.net>
6971
6972         fcntl: use to simplify other modules
6973         * modules/cloexec (Depends-on): Add fcntl.
6974         * modules/fchdir (Depends-on): Likewise.
6975         * modules/fd-safer-flag (Depends-on): Likewise.
6976         * modules/unistd-safer (Depends-on): Likewise.
6977         * modules/dup3 (configure.ac): Set module indicator.
6978         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
6979         missing.
6980         * lib/fchdir.c (_gl_register_dup): Fix comment.
6981         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
6982         * lib/dup-safer.c (dup_safer): Likewise.
6983         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
6984         * lib/dup3.c (dup3): Likewise.
6985         * tests/test-fchdir.c (main): Enhance test.
6986         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
6987
6988         fcntl: port portions of fcntl to mingw
6989         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
6990         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
6991         replacement for mingw.
6992         * modules/fcntl (Description): Update.
6993         (Depends-on): Add dup2.
6994         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
6995         * modules/fcntl-h (Makefile.am): Substitute it.
6996         * lib/fcntl.in.h (fcntl): Update declaration.
6997         (F_DUPFD, F_GETFD): New macros, when needed.
6998         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
6999         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
7000         * tests/test-fcntl.c (check_flags, main): Enhance test for items
7001         we now guarantee.
7002
7003         fcntl: work around cygwin bug in F_DUPFD
7004         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
7005         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
7006         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
7007         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
7008         * doc/posix-functions/fcntl.texi (fcntl): Document it.
7009
7010         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
7011         * modules/fcntl (Files): List new files.
7012         (configure.ac): Run a test.
7013         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
7014         * lib/fcntl.c (rpl_fcntl): Likewise.
7015         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
7016         (gl_FCNTL_H): Always replace fcntl.h.
7017         * modules/fcntl-h (Makefile.am): Substitute witnesses.
7018         * lib/fcntl.in.h (fcntl): Declare replacement.
7019         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
7020         needed, plus a witness.
7021         * doc/posix-functions/fcntl.texi (fcntl): Document this.
7022         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
7023         * tests/test-fcntl.c: New file.
7024         * modules/fcntl-tests: Likewise.
7025
7026         binary-io: avoid potential compilation warning
7027         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
7028         directives.
7029
7030         fflush: avoid compilation error on NetBSD
7031         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
7032         between off_t and fpos_t, since the latter is sometimes a struct.
7033         * lib/fseeko.c (rpl_fseeko): Likewise.
7034         Reported by Alexander Nasonov <alnsn@yandex.ru>.
7035
7036 2009-12-15  Eric Blake  <ebb9@byu.net>
7037
7038         fcntl-h, stdio, sys_ioctl: fix declarations
7039         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
7040         function must not take arguments.
7041         * lib/sys_ioctl.in.h (ioctl): Likewise.
7042         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
7043         (open): Add a link warning.
7044
7045 2009-12-15  Jim Meyering  <meyering@redhat.com>
7046
7047         areadlink, areadlink-with-size: relax license to LGPLv2+
7048         * modules/areadlink (License): Relax to LGPLv2+.
7049         * modules/areadlink-with-size (License): Likewise.
7050
7051 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
7052             Bruno Haible  <bruno@clisp.org>
7053
7054         *printf: Fix memory leak.
7055         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
7056         * lib/vfprintf.c (vfprintf): Likewise.
7057         * lib/dprintf.c (dprintf): Likewise.
7058         * lib/vdprintf.c (vdprintf): Likewise.
7059
7060 2009-12-14  Eric Blake  <ebb9@byu.net>
7061
7062         accept4: adjust module dependencies
7063         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
7064
7065         utimens: one more try at avoiding compiler warning
7066         * lib/utimens.c (lutimens): Lower scope of result.
7067
7068 2009-12-13  Bruno Haible  <bruno@clisp.org>
7069
7070         Move the malloc checking from module 'list' to new module 'xlist'.
7071         * modules/xlist: New file.
7072         * lib/gl_xlist.h: New file.
7073         * lib/gl_xlist.c: New file.
7074         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
7075         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
7076         gl_list_add_last, gl_list_add_before, gl_list_add_after,
7077         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
7078         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
7079         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
7080         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
7081         gl_sortedlist_nx_add): New declarations.
7082         (struct gl_list_implementation): Rename and change methods accordingly.
7083         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
7084         (gl_list_nx_create): Renamed from gl_list_create.
7085         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
7086         (gl_list_nx_set_at): Renamed from gl_list_set_at.
7087         (gl_list_nx_add_first): Renamed from gl_list_add_first.
7088         (gl_list_nx_add_last): Renamed from gl_list_add_last.
7089         (gl_list_nx_add_before): Renamed from gl_list_add_before.
7090         (gl_list_nx_add_after): Renamed from gl_list_add_after.
7091         (gl_list_nx_add_at): Renamed from gl_list_add_at.
7092         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
7093         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
7094         gl_list_create_empty.
7095         (gl_list_nx_create): Renamed from gl_list_create.
7096         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
7097         (gl_list_nx_set_at): Renamed from gl_list_set_at.
7098         (gl_list_nx_add_first): Renamed from gl_list_add_first.
7099         (gl_list_nx_add_last): Renamed from gl_list_add_last.
7100         (gl_list_nx_add_before): Renamed from gl_list_add_before.
7101         (gl_list_nx_add_after): Renamed from gl_list_add_after.
7102         (gl_list_nx_add_at): Renamed from gl_list_add_at.
7103         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
7104         * lib/gl_array_list.c: Don't include xalloc.h.
7105         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
7106         NULL upon out-of-memory.
7107         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
7108         out-of-memory.
7109         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
7110         Change return type to 'int'.
7111         (gl_array_nx_set_at): Renamed from gl_array_set_at.
7112         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
7113         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
7114         upon out-of-memory.
7115         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
7116         upon out-of-memory.
7117         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
7118         upon out-of-memory.
7119         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
7120         upon out-of-memory.
7121         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
7122         out-of-memory.
7123         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
7124         Update.
7125         (gl_array_list_implementation): Update.
7126         * lib/gl_carray_list.c: Don't include xalloc.h.
7127         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
7128         Return NULL upon out-of-memory.
7129         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
7130         out-of-memory.
7131         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
7132         Change return type to 'int'.
7133         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
7134         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
7135         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
7136         upon out-of-memory.
7137         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
7138         upon out-of-memory.
7139         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
7140         out-of-memory.
7141         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
7142         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
7143         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
7144         Update.
7145         (gl_carray_list_implementation): Update.
7146         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
7147         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
7148         gl_linked_create_empty. Return NULL upon out-of-memory.
7149         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
7150         out-of-memory.
7151         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
7152         Change return type to 'int'. Return -1 upon out-of-memory.
7153         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
7154         out-of-memory.
7155         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
7156         upon out-of-memory.
7157         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
7158         upon out-of-memory.
7159         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
7160         NULL upon out-of-memory.
7161         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
7162         upon out-of-memory.
7163         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
7164         out-of-memory.
7165         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
7166         Update.
7167         * lib/gl_linked_list.c: Don't include xalloc.h.
7168         (gl_linked_list_implementation): Update.
7169         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
7170         (add_to_bucket): Change return type to 'int'.
7171         (gl_linkedhash_list_implementation): Update.
7172         * lib/gl_anytree_list1.h (free_subtree): New function.
7173         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
7174         gl_tree_create_empty. Return NULL upon out-of-memory.
7175         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
7176         Change return type to 'int'. Return -1 upon out-of-memory.
7177         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
7178         out-of-memory.
7179         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
7180         (gl_tree_remove_node): New function, moved here from
7181         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
7182         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
7183         Update.
7184         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
7185         malloc, not xmalloc. Return NULL upon out-of-memory.
7186         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
7187         out-of-memory.
7188         (gl_tree_remove_node_from_tree): New function, extracted from
7189         gl_tree_remove_node.
7190         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
7191         upon out-of-memory.
7192         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
7193         out-of-memory.
7194         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
7195         upon out-of-memory.
7196         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
7197         upon out-of-memory.
7198         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
7199         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
7200         not xmalloc. Return NULL upon out-of-memory.
7201         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
7202         out-of-memory.
7203         (gl_tree_remove_node_from_tree): New function, extracted from
7204         gl_tree_remove_node.
7205         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
7206         upon out-of-memory.
7207         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
7208         out-of-memory.
7209         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
7210         upon out-of-memory.
7211         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
7212         upon out-of-memory.
7213         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
7214         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
7215         gl_anytree_list1.h before gl_anyavltree_list2.h.
7216         (gl_avltree_list_implementation): Update.
7217         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
7218         gl_anytree_list1.h before gl_anyavltree_list2.h.
7219         (gl_rbtree_list_implementation): Update.
7220         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
7221         Change return type to 'int'. Return -1 upon out-of-memory. Use
7222         __builtin_expect.
7223         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
7224         (gl_avltreehash_list_implementation): Update.
7225         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
7226         (gl_rbtreehash_list_implementation): Update.
7227         * modules/array-list (Depends-on): Remove xalloc.
7228         * modules/carray-list (Depends-on): Likewise.
7229         * modules/linked-list (Depends-on): Likewise.
7230         * modules/linkedhash-list (Depends-on): Likewise.
7231         * modules/avltree-list (Depends-on): Likewise.
7232         * modules/rbtree-list (Depends-on): Likewise.
7233         * modules/avltreehash-list (Depends-on): Likewise.
7234         * modules/rbtreehash-list (Depends-on): Likewise.
7235
7236         * modules/xsublist: New file.
7237         * lib/gl_xsublist.h: New file.
7238         * lib/gl_xsublist.c: New file.
7239         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
7240         (gl_sublist_nx_create): New declaration.
7241         * lib/gl_sublist.c: Don't include xalloc.h.
7242         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
7243         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
7244         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
7245         Change return type to 'int'. Return -1 upon out-of-memory.
7246         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
7247         upon out-of-memory.
7248         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
7249         NULL upon out-of-memory.
7250         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
7251         upon out-of-memory.
7252         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
7253         NULL upon out-of-memory.
7254         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
7255         NULL upon out-of-memory.
7256         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
7257         upon out-of-memory.
7258         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
7259         (gl_sublist_list_implementation): Update.
7260         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
7261         upon out-of-memory.
7262         * modules/sublist (Depends-on): Remove xalloc.
7263
7264         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
7265         * tests/test-carray_list.c: Likewise.
7266         * tests/test-linked_list.c: Likewise.
7267         * tests/test-linkedhash_list.c: Likewise.
7268         * tests/test-avltree_list.c: Likewise.
7269         * tests/test-rbtree_list.c: Likewise.
7270         * tests/test-avltreehash_list.c: Likewise.
7271         * tests/test-rbtreehash_list.c: Likewise.
7272         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
7273         * modules/carray-list-tests (Makefile.am): Likewise.
7274         * modules/linked-list-tests (Makefile.am): Likewise.
7275         * modules/linkedhash-list-tests (Makefile.am): Likewise.
7276         * modules/avltree-list-tests (Makefile.am): Likewise.
7277         * modules/rbtree-list-tests (Makefile.am): Likewise.
7278         * modules/avltreehash-list-tests (Makefile.am): Likewise.
7279         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
7280
7281         * NEWS: Mention the changes.
7282
7283         * lib/clean-temp.c: Include gl_xlist.h.
7284         * modules/clean-temp (Depends-on): Add xlist.
7285
7286         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
7287         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
7288
7289         * tests/test-array_oset.c: Include gl_xlist.h.
7290         * modules/array-oset-tests (Depends-on): Add xlist.
7291
7292         Reported by José E. Marchesi <jemarch@gnu.org>.
7293
7294 2009-12-13  Bruno Haible  <bruno@clisp.org>
7295
7296         Move the malloc checking from module 'oset' to new module 'xoset'.
7297         * modules/xoset: New file.
7298         * lib/gl_xoset.h: New file.
7299         * lib/gl_xoset.c: New file.
7300         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
7301         declarations.
7302         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
7303         (struct gl_oset_implementation): Rename and change methods accordingly.
7304         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
7305         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
7306         'int'. Mark as __warn_unused_result__.
7307         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
7308         gl_oset_create_empty.
7309         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
7310         'int'.
7311         * lib/gl_array_oset.c: Don't include xalloc.h.
7312         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
7313         malloc, not xmalloc.
7314         (grow): Change return type to 'int'. Don't call xalloc_die.
7315         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
7316         to 'int'.
7317         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
7318         'int'.
7319         (gl_array_oset_implementation): Update.
7320         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
7321         gl_tree_create_empty.
7322         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
7323         'int'.
7324         * lib/gl_avltree_oset.c: Don't include xalloc.h.
7325         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
7326         xmalloc.
7327         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
7328         not xmalloc.
7329         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
7330         xmalloc.
7331         (gl_avltree_oset_implementation): Update.
7332         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
7333         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
7334         xmalloc.
7335         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
7336         not xmalloc.
7337         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
7338         xmalloc.
7339         (gl_rbtree_oset_implementation): Update.
7340         * modules/array-oset (Depends-on): Remove xalloc.
7341         * modules/avltree-oset (Depends-on): Likewise.
7342         * modules/rbtree-oset (Depends-on): Likewise.
7343         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
7344         * tests/test-avltree_oset.c: Likewise.
7345         * tests/test-rbtree_oset.c: Likewise.
7346         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
7347         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
7348         * modules/rbtree-oset-tests (Makefile.am): Likewise.
7349         * NEWS: Mention the change.
7350
7351 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
7352
7353         maint.mk: allow a project to override release-prep commands
7354         * top/maint.mk (alpha, beta, stable): Move release-preparatory
7355         commands into a new rule.
7356         (release-prep): New rule.
7357         (release-prep-hook): New overridable variable.
7358
7359 2009-12-13  Bruno Haible  <bruno@clisp.org>
7360
7361         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
7362
7363 2009-12-13  Jim Meyering  <meyering@redhat.com>
7364
7365         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
7366         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
7367
7368 2009-12-12  Bruno Haible  <bruno@clisp.org>
7369
7370         duplocale: Tweak.
7371         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
7372
7373 2009-12-12  Karl Berry  <karl@gnu.org>
7374
7375         * config/srclist.txt (strtoll.c): tab changes, no more sync.
7376
7377 2009-12-12  Bruno Haible  <bruno@clisp.org>
7378
7379         * m4/po.m4: Undo incorrect untabification.
7380
7381 2009-12-12  Bruno Haible  <bruno@clisp.org>
7382
7383         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
7384         * modules/c-strtod (Depends-on): Add locale.
7385         * modules/c-strtold (Depends-on): Likewise.
7386
7387 2009-12-12  Bruno Haible  <bruno@clisp.org>
7388
7389         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
7390
7391 2009-12-11  Eric Blake  <ebb9@byu.net>
7392
7393         setenv: relax requirement in light of POSIX ruling
7394         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
7395         not NULL.
7396         * tests/test-setenv.c (main): Relax test.
7397         * tests/test-unsetenv.c (main): Likewise.
7398         * doc/posix-functions/setenv.texi (setenv): Document this.
7399         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
7400
7401 2009-12-11  Bruno Haible  <bruno@clisp.org>
7402
7403         New module 'fd-safer-flag'.
7404         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
7405         * lib/dup-safer.c (dup_safer_flag): Remove function.
7406         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
7407         * lib/fd-safer.c (fd_safer_flag): Remove function.
7408         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
7409         * modules/cloexec (configure.ac): Drop indicator macro.
7410         * modules/fd-safer-flag: New file.
7411         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
7412         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
7413         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
7414
7415 2009-12-11  Bruno Haible  <bruno@clisp.org>
7416
7417         Tests for module 'nl_langinfo'.
7418         * modules/nl_langinfo-tests: New file.
7419         * tests/test-nl_langinfo.sh: New file.
7420         * tests/test-nl_langinfo.c: New file.
7421
7422         New module 'nl_langinfo'.
7423         * lib/nl_langinfo.c: New file.
7424         * m4/nl_langinfo.m4: New file.
7425         * modules/nl_langinfo: New file.
7426         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
7427
7428 2009-12-11  Bruno Haible  <bruno@clisp.org>
7429
7430         Tests for module 'langinfo'.
7431         * modules/langinfo-tests: New file.
7432         * tests/test-langinfo.c: New file.
7433
7434         New module 'langinfo'.
7435         * lib/langinfo.in.h: New file.
7436         * m4/langinfo_h.m4: New file.
7437         * modules/langinfo: New file.
7438         * doc/posix-headers/langinfo.texi: Mention the new module.
7439
7440 2009-12-11  Bruno Haible  <bruno@clisp.org>
7441
7442         * lib/config.charset: Untabify.
7443
7444 2009-12-11  Bruno Haible  <bruno@clisp.org>
7445
7446         * modules/unistd-safer (configure.ac): Drop indicator macro.
7447
7448 2009-12-11  Bruno Haible  <bruno@clisp.org>
7449
7450         Move pipe2-safer code to its own file.
7451         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
7452         * lib/pipe-safer.c (pipe2_safer): Remove function.
7453         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
7454         (Makefile.am): Add it to lib_SOURCES.
7455
7456 2009-12-10  Bruno Haible  <bruno@clisp.org>
7457
7458         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
7459
7460 2009-12-10  Bruno Haible  <bruno@clisp.org>
7461
7462         Declare which arguments expect non-NULL values, for GCC and clang.
7463         * build-aux/arg-nonnull.h: New file.
7464         * modules/arg-nonnull: New file.
7465         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
7466         (inet_ntop, inet_pton): Use it.
7467         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
7468         (closedir, dirfd, opendir, scandir, alphasort): Use it.
7469         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
7470         (open, openat): Use it.
7471         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
7472         (fnmatch): Use it.
7473         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
7474         (getopt, getopt_long, getopt_long_only): Use it.
7475         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
7476         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
7477         Use it.
7478         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
7479         (iconv_open): Use it.
7480         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
7481         (strtoimax, strtoumax): Use it.
7482         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
7483         (duplocale): Use it.
7484         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
7485         (frexp, frexpl): Use it.
7486         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
7487         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
7488         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
7489         (tsearch, tfind, tdelete, twalk): Use it.
7490         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
7491         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
7492         sigpending): Use it.
7493         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
7494         (posix_spawn, posix_spawnp, posix_spawnattr_init,
7495         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
7496         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
7497         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
7498         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
7499         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
7500         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
7501         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
7502         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
7503         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
7504         Use it.
7505         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
7506         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
7507         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
7508         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
7509         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
7510         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
7511         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
7512         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
7513         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
7514         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
7515         strtoull, unsetenv): Use it.
7516         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
7517         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
7518         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
7519         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
7520         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
7521         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
7522         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
7523         (strcasecmp, strncasecmp): Use it.
7524         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
7525         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
7526         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
7527         rpl_setsockopt): Use it.
7528         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
7529         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
7530         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
7531         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
7532         (gettimeofday): Use it.
7533         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
7534         (times): Use it.
7535         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
7536         (uname): Use it.
7537         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
7538         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
7539         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
7540         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
7541         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
7542         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
7543         unlinkat, write): Use it.
7544         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
7545         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
7546         * lib/argv-iter.h: Include arg-nonnull.h.
7547         (_ATTRIBUTE_NONNULL_): Remove macro.
7548         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
7549         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
7550         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
7551         optimization.
7552         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
7553         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
7554         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
7555         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
7556         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
7557         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
7558         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
7559         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
7560         * modules/arpa_inet (Depends-on): Add arg-nonnull.
7561         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
7562         * modules/dirent (Depends-on): Add arg-nonnull.
7563         (Makefile.am): Insert arg-nonnull.h into dirent.h.
7564         * modules/fcntl-h (Depends-on): Add arg-nonnull.
7565         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
7566         * modules/fnmatch (Depends-on): Add arg-nonnull.
7567         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
7568         * modules/getopt-posix (Depends-on): Add arg-nonnull.
7569         (Makefile.am): Insert arg-nonnull.h into getopt.h.
7570         * modules/glob (Depends-on): Add arg-nonnull.
7571         (Makefile.am): Insert arg-nonnull.h into glob.h.
7572         * modules/iconv_open (Depends-on): Add arg-nonnull.
7573         (Makefile.am): Insert arg-nonnull.h into iconv.h.
7574         * modules/inttypes (Depends-on): Add arg-nonnull.
7575         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
7576         * modules/locale (Depends-on): Add arg-nonnull.
7577         (Makefile.am): Insert arg-nonnull.h into locale.h.
7578         * modules/math (Depends-on): Add arg-nonnull.
7579         (Makefile.am): Insert arg-nonnull.h into math.h.
7580         * modules/netdb (Depends-on): Add arg-nonnull.
7581         (Makefile.am): Insert arg-nonnull.h into netdb.h.
7582         * modules/search (Depends-on): Add arg-nonnull.
7583         (Makefile.am): Insert arg-nonnull.h into search.h.
7584         * modules/signal (Depends-on): Add arg-nonnull.
7585         (Makefile.am): Insert arg-nonnull.h into signal.h.
7586         * modules/spawn (Depends-on): Add arg-nonnull.
7587         (Makefile.am): Insert arg-nonnull.h into spawn.h.
7588         * modules/stdio (Depends-on): Add arg-nonnull.
7589         (Makefile.am): Insert arg-nonnull.h into stdio.h.
7590         * modules/stdlib (Depends-on): Add arg-nonnull.
7591         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
7592         * modules/string (Depends-on): Add arg-nonnull.
7593         (Makefile.am): Insert arg-nonnull.h into string.h.
7594         * modules/strings (Depends-on): Add arg-nonnull.
7595         (Makefile.am): Insert arg-nonnull.h into strings.h.
7596         * modules/sys_socket (Depends-on): Add arg-nonnull.
7597         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
7598         * modules/sys_stat (Depends-on): Add arg-nonnull.
7599         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
7600         * modules/sys_time (Depends-on): Add arg-nonnull.
7601         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
7602         * modules/sys_times (Depends-on): Add arg-nonnull.
7603         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
7604         * modules/sys_utsname (Depends-on): Add arg-nonnull.
7605         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
7606         * modules/time (Depends-on): Add arg-nonnull.
7607         (Makefile.am): Insert arg-nonnull.h into time.h.
7608         * modules/unistd (Depends-on): Add arg-nonnull.
7609         (Makefile.am): Insert arg-nonnull.h into unistd.h.
7610         * modules/wchar (Depends-on): Add arg-nonnull.
7611         (Makefile.am): Insert arg-nonnull.h into wchar.h.
7612         * modules/argv-iter (Depends-on): Add arg-nonnull.
7613         * tests/test-canonicalize.c (null_ptr): New function.
7614         (main): Use it.
7615         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
7616         (main): Use it.
7617         * tests/test-memmem.c (null_ptr): New function.
7618         (main): Use it.
7619         Reported by Jim Meyering.
7620
7621 2009-12-10  Bruno Haible  <bruno@clisp.org>
7622
7623         Use spaces for indentation, not tabs.
7624         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
7625         * m4/*.m4: Untabify.
7626         * build-aux/*.h: Untabify.
7627         * tests/**/*.[hc]: Untabify.
7628         * README: New section "Indent with spaces, not TABs", based on
7629         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
7630         * NEWS: Mention the change.
7631
7632 2009-12-10  Bruno Haible  <bruno@clisp.org>
7633
7634         pty test: Fix link error.
7635         * modules/pty-tests (Makefile.am): Add the default LDADD value to
7636         test_pty_LDADD.
7637
7638 2009-12-07  Simon Josefsson  <simon@josefsson.org>
7639
7640         * modules/pty: New file.
7641         * modules/pty-tests: New file.
7642         * m4/pty.m4: New file.
7643         * tests/test-pty.c: New file.
7644         * doc/glibc-headers/pty.texi: Modified.
7645         * doc/glibc-functions/forkpty.texi: Modified.
7646         * doc/glibc-functions/openpty.texi: Modified.
7647
7648 2009-12-10  Bruno Haible  <bruno@clisp.org>
7649
7650         Avoid syntax error in C++ mode.
7651         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
7652
7653 2009-12-10  Bruno Haible  <bruno@clisp.org>
7654
7655         Use sed with option -e.
7656         * gnulib-tool (func_version, func_emit_copyright_notice,
7657         func_emit_initmacro_end, func_import, func_create_testdir): Pass
7658         option -e to sed.
7659         * modules/link-warning (Makefile.am): Likewise.
7660
7661 2009-12-10  Jim Meyering  <meyering@redhat.com>
7662
7663         mgetgroups: do not write bytes beyond end of malloc'd buffer
7664         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
7665         username, we call getgroups with a one-element-shorter buffer,
7666         but still told it the length was original, max_n_groups.
7667
7668 2009-12-09  Eric Blake  <ebb9@byu.net>
7669
7670         cloexec: relax license
7671         * modules/cloexec (Maintainer): Add myself.
7672         (License): Use LGPL, not GPL.
7673
7674         link-warning: optimize generation
7675         * modules/link-warning (Makefile.am): Reduce process usage.
7676
7677 2009-12-09  Bruno Haible  <bruno@clisp.org>
7678
7679         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
7680         workaround was added on 2009-11-17.
7681
7682 2009-12-09  Jim Meyering  <meyering@redhat.com>
7683             Bruno Haible  <bruno@clisp.org>
7684
7685         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
7686         * modules/link-warning (Makefile.am): Make the comment-removing sed
7687         command more robust in the face of bootstrap-prepended comment lines.
7688
7689 2009-12-09  Bruno Haible  <bruno@clisp.org>
7690
7691         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
7692         most one group.
7693
7694 2009-12-09  Simon Josefsson <simon@josefsson.org>
7695             Bruno Haible  <bruno@clisp.org>
7696
7697         * build-aux/link-warning.h: Add copyright notice.
7698         * modules/link-warning (Makefile.am): Generate link-warning.h from
7699         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
7700         * NEWS: Mention change in link-warning module.
7701         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
7702         * modules/dirent (Makefile.am): Add dependency to dirent.h.
7703         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
7704         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
7705         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
7706         * modules/math (Makefile.am): Add dependency to math.h.
7707         * modules/search (Makefile.am): Add dependency to search.h.
7708         * modules/signal (Makefile.am): Add dependency to signal.h.
7709         * modules/spawn (Makefile.am): Add dependency to spawn.h.
7710         * modules/stdio (Makefile.am): Add dependency to stdio.h.
7711         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
7712         * modules/string (Makefile.am): Add dependency to string.h.
7713         * modules/strings (Makefile.am): Add dependency to strings.h.
7714         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
7715         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
7716         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
7717         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
7718         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
7719         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
7720         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
7721         * modules/unistd (Makefile.am): Add dependency to unistd.h.
7722         * modules/wchar (Makefile.am): Add dependency to wchar.h.
7723
7724 2009-12-09  Bruno Haible  <bruno@clisp.org>
7725
7726         fchdir: Optimize away rpl_fstat when possible.
7727         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
7728         REPLACE_OPEN_DIRECTORY.
7729         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
7730
7731 2009-12-09  Bruno Haible  <bruno@clisp.org>
7732
7733         * lib/fchdir.c: Update comment.
7734
7735 2009-12-09  Bruno Haible  <bruno@clisp.org>
7736
7737         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
7738
7739 2009-12-08  Eric Blake  <ebb9@byu.net>
7740
7741         fchdir: avoid memory leak on re-registration.
7742         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
7743
7744 2009-12-08  Jim Meyering  <meyering@redhat.com>
7745
7746         init.sh: avoid Solaris 10 /bin/sh portability problem
7747         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
7748         sourced script:
7749           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
7750           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
7751           bar
7752         tests/init.sh relied on that, accepting a --set-path=DIR argument,
7753         and two tests used that idiom.
7754         * tests/init.sh: Update suggested usage comments.
7755         (path_prepend_): New function, to be used in place
7756         of the --src-path=DIR option.
7757         (setup_): Move PATH-prepending code into path_prepend_.
7758         * tests/test-pread.sh: Adapt to new usage.
7759         * tests/test-xalloc-die.sh: Likewise.
7760
7761 2009-12-08  Simon Josefsson  <simon@josefsson.org>
7762
7763         * doc/gnulib.texi (Glibc pty.h): Add.
7764         * doc/glibc-functions/forkpty.texi: Add.
7765         * doc/glibc-functions/openpty.texi: Add.
7766         Suggested by Bruno Haible.
7767
7768 2009-12-08  Eric Blake  <ebb9@byu.net>
7769
7770         fchdir: fix logic bugs
7771         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
7772         * tests/test-fchdir.c (main): Enhance test.
7773         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
7774         is in use.
7775
7776         dup2: fix logic bugs
7777         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
7778         REPLACE_DUP2 to decide when rpl_dup2 is needed.
7779         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
7780         exists.
7781         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
7782
7783 2009-12-07  Eric Blake  <ebb9@byu.net>
7784
7785         unlink: fix m4 detection
7786         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
7787
7788         unistd-safer: add unit test
7789         * modules/unistd-safer-tests: New file.
7790         * tests/test-dup-safer.c: Likewise.
7791         * tests/test-cloexec.c (setmode): Avoid compiler warning.
7792         * tests/test-dup2.c (setmode): Likewise.
7793         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
7794
7795         cloexec: preserve text vs. binary across dup_cloexec
7796         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
7797         mode.
7798         * modules/dup2-tests (Depends-on): Add binary-io.
7799         * modules/cloexec-tests (Depends-on): Likewise.
7800         * tests/test-dup2.c (setmode, is_mode): New helpers.
7801         (main): Add tests that translation mode is preserved.
7802         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
7803         Reported by Bruno Haible.
7804
7805         mgetgroups: reduce duplicate listings
7806         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
7807         resulting array.
7808         * tests/test-chown.h (test_chown): Simplify client.
7809         * tests/test-lchown.h (test_lchown): Likewise.
7810
7811 2009-12-06  Bruno Haible  <bruno@clisp.org>
7812
7813         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
7814         value.
7815
7816 2009-12-06  Bruno Haible  <bruno@clisp.org>
7817
7818         * lib/progname.c: Include stdio.h, stdlib.h.
7819         (set_program_name): Reject a NULL argument.
7820
7821 2009-12-05  Eric Blake  <ebb9@byu.net>
7822
7823         pipe2-safer: new module
7824         * modules/pipe2-safer: New file.
7825         * lib/unistd-safer.h (pipe2_safer): New prototype.
7826         * lib/unistd--.h (pipe2): New wrapper.
7827         * lib/pipe-safer.c (pipe2_safer): New function.
7828         * modules/pipe (Depends-on): Add pipe2-safer.
7829         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
7830
7831         stdlib-safer: preserve cloexec flag for mkostemp[s]
7832         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
7833         fd_safer_flag.
7834
7835         unistd-safer: allow preservation of cloexec status via flag
7836         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
7837         prototypes.
7838         * lib/dup-safer.c (dup_safer_flag): New function.
7839         * lib/fd-safer.c (fd_safer_flag): Likewise.
7840         * modules/cloexec (configure.ac): Set witness.
7841
7842         test-dup2: enhance test
7843         * modules/dup2-tests (Depends-on): Add cloexec.
7844         * tests/test-dup2.c (main): Enhance test.
7845
7846         cloexec: add dup_cloexec
7847         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
7848         header and comments.
7849         * lib/cloexec.c (set_cloexec_flag): Add comments.
7850         (dup_cloexec): New function, with mingw implementation borrowed
7851         from...
7852         * lib/w32spawn.h (dup_noinherit): ...here.
7853         * modules/execute (Depends-on): Add cloexec.
7854         * modules/pipe (Depends-on): Likewise.
7855         * modules/cloexec (Depends-on): Add dup2.
7856         * modules/cloexec-tests (Files): New file.
7857         * tests/test-cloexec.c: Likewise.
7858
7859         test-xalloc-die: fix test for mingw
7860         * modules/xalloc-die-tests (Files): Add tests/init.sh.
7861         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
7862         directory and .exe suffix off argv[0] output.
7863
7864         test-fseeko: fix test for mingw
7865         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
7866         than undefining fseek, so test will pass on mingw.
7867
7868 2009-12-05  Bruno Haible  <bruno@clisp.org>
7869
7870         * lib/progname.h (set_program_name): Clarify specification.
7871         * lib/progname.c (set_program_name): Likewise.
7872         Reported by Jim Meyering.
7873
7874 2009-12-05  Jim Meyering  <meyering@redhat.com>
7875
7876         maint.mk: backslash-escape parens in default regexp
7877         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
7878         backslash-escape the literal parentheses.
7879
7880         maint.mk: news-date-check: use grep -E
7881         * top/maint.mk (today): Define a Make variable, not a...
7882         (news-date-check): ...shell variable.
7883         (news-date-regexp): Use the Make variable.
7884         Use grep's -E option.  Change the failing diagnostic to mention
7885         the variable, $(news-date-regexp).
7886
7887 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
7888
7889         maintainer-makefile: allow customization of NEWS entry format
7890         * top/maint.mk (news-date-regexp): New overridable variable.
7891         (news-date-check): Use it.
7892
7893 2009-12-04  Eric Blake  <ebb9@byu.net>
7894
7895         mgetgroups: add xgetgroups, and avoid ENOSYS failures
7896         * lib/mgetgroups.h (xgetgroups): New prototype.
7897         * lib/mgetgroups.c (xgetgroups): New wrapper.
7898         (mgetgroups): Handle ENOSYS.
7899         * modules/mgetgroups (Depends-on): Add realloc.
7900         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
7901
7902         mgetgroups: avoid argument promotion issues with -1
7903         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
7904         for invalid gid_t.
7905         * tests/test-chown.h (getegid, test_chown): Likewise.
7906         * tests/test-lchown.h (getegid, test_lchown): Likewise.
7907
7908 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
7909
7910         exclude: Fix header file problems.
7911         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
7912
7913 2009-12-01  Jim Meyering  <meyering@redhat.com>
7914
7915         fts: fts_open: do not let an empty string cause immediate failure
7916         This is required in support of GNU rm, for which the command
7917         "rm A '' B" must process and remove both A and B, in spite of
7918         the empty string argument.
7919         * lib/fts.c (fts_open): Do not let the presence of an empty string
7920         cause fts_open to fail immediately.  Most fts-using tools must be
7921         able to process all arguments, in order, and can be expected to
7922         diagnose such arguments themselves.
7923
7924 2009-11-30  Eric Blake  <ebb9@byu.net>
7925
7926         utimens: fix compilation error
7927         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
7928         Declare variable at right scope.
7929
7930 2009-11-29  Jim Meyering  <meyering@redhat.com>
7931
7932         bootstrap: handle perl-5.11's changed --version output
7933         * build-aux/bootstrap (get_version): Handle perl separately,
7934         since perl-5.11's --version output is different.
7935
7936 2009-11-28  Jim Meyering  <meyering@redhat.com>
7937
7938         userspec: depend on the inttostr module, too
7939         * modules/userspec (Depends-on): Add inttostr.
7940
7941         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
7942         * lib/userspec.c (parse_with_separator): Do not accept a user ID
7943         number of MAXUID when it evaluates to (uid_t) -1.
7944         Likewise for group ID.  Reported by Matt McCutchen in
7945         <http://savannah.gnu.org/bugs/?28113>
7946
7947         userspec: reformat to use spaces, not TABs
7948         * lib/userspec.c: Expand TABs to spaces.
7949         Add Emacs' "indent-tabs-mode: nil" hint.
7950
7951 2009-11-27  Eric Blake  <ebb9@byu.net>
7952
7953         getopt-gnu: flush out another BSD bug
7954         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
7955         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
7956         flush out BSD bug.
7957         * tests/test-getopt.h (test_getopt): End lists with NULL.
7958         * tests/test-getopt_long.h (test_getopt_long): Likewise.
7959         (test_getopt_long_posix): Enhance test.
7960         * modules/getopt-posix-tests (Depends-on): Add stdbool.
7961         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
7962         getopt-gnu.
7963         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7964         Likewise.
7965
7966 2009-11-27  Simon Josefsson  <simon@josefsson.org>
7967
7968         * modules/idpriv-droptemp-tests (Notice): Fix text.
7969
7970 2009-11-27  Jim Meyering  <meyering@redhat.com>
7971
7972         test-xalloc-die: avoid spurious failure due to libtool argv difference
7973         In a libtool-enabled project, this test would fail due to a difference
7974         in the emitted program name, e.g.,
7975         -test-xalloc-die: memory exhausted
7976         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
7977         Use program to avoid that.
7978         * modules/xalloc-die-tests (Depends-on): Add progname.
7979         * tests/test-xalloc-die.c: Include progname.h".
7980         (program_name): Remove decl.
7981         (main): Call set_program_name.
7982         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
7983
7984 2009-11-26  Richard Jones  <rjones@redhat.com>
7985
7986         w32sock: leave win32 error in place.
7987         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
7988
7989 2009-11-26  Eric Blake  <ebb9@byu.net>
7990
7991         init.sh: suggest to use skip_ and fail_ functions in comments
7992         * tests/init.sh: Add a sentence.
7993
7994 2009-11-25  Bruno Haible  <bruno@clisp.org>
7995
7996         init.sh: add documentation in comments
7997         * tests/init.sh: Add some developer and user documentation.
7998
7999 2009-11-26  Jim Meyering  <meyering@redhat.com>
8000
8001         init.sh: accommodate even those who specify bogus srcdir manually
8002         * tests/init.sh: Normally, srcdir is guaranteed by automake and
8003         configure-time tests to be sanitized, so that there is no need to
8004         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
8005         (with no double quotes) suffices.  However, since tests may be
8006         invoked manually, and since you may explicitly set srcdir to the
8007         name of a directory containing spaces, do quote its uses here.
8008         * tests/test-pread.sh: Likewise.
8009         Suggested by Bruno Haible.
8010
8011         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
8012         * tests/test-pread.sh: Write no data into the pipe, because
8013         test-pread actually reads none.  This avoids a diagnostic,
8014         "bash: echo: write error: Broken pipe", that arises in the unusual
8015         event something is ignoring SIGPIPE, and might be interpreted
8016         as some sort of failure.  Reported by Bruno Haible.
8017
8018 2009-11-25  Jim Meyering  <meyering@redhat.com>
8019
8020         test-pread: cover failure with ESPIPE and EINVAL
8021         * tests/test-pread.c (main): Test for failure, too.
8022         * tests/test-pread.sh: Invoke with stdin on a pipe.
8023         Suggested by Eric Blake.
8024
8025         pread: improvement and fix
8026         * modules/pread (Depends-on): Depend on lseek, for portability to
8027         e.g., mingw.  Suggested by Eric Blake.
8028         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
8029
8030         unistd.in.h: correct declaration of pread
8031         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
8032         Reported by Richard W.M. Jones.
8033
8034         test-pread.sh: distribute the test script
8035         * modules/pread-tests (Files): Include test-pread.sh.
8036
8037         test-pread.sh: clean up
8038         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
8039         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
8040         That is unnecessary, since it's always ".".
8041         Suggestion from Eric Blake.
8042
8043         test-pread.sh: make executable
8044         * tests/test-pread.sh: Set executable bit.
8045         Reported by Eric Blake.
8046
8047         correct typo in test-pread.sh
8048         * tests/test-pread.sh: Add #! line.
8049
8050         test pread
8051         * tests/test-pread.c: New file.
8052         * tests/test-pread.sh: Likewise.
8053         * modules/pread-tests: Likewise.
8054
8055         pread: new module
8056         * modules/pread: New file.
8057         * lib/unistd.in.h (pread): Define/declare.
8058         * lib/pread.c (pread): New file.
8059         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
8060         * modules/unistd (Makefile.am): Substitute witnesses.
8061         * doc/posix-functions/pread.texi (pread): Update.
8062         * MODULES.html.sh: Add pread.
8063
8064 2009-11-25  Jim Meyering  <meyering@redhat.com>
8065
8066         tests/init.sh: new file to be used via most *.sh tests
8067         * tests/init.sh: New file.
8068
8069 2009-11-25  Eric Blake  <ebb9@byu.net>
8070
8071         utimens: work around older Linux failure with symlinks
8072         * lib/utimens.c (lutimensat_works_really): New variable.
8073         (fdutimens, lutimens): Use it to manage kernels that support
8074         nanosecond times on files, but not on symlinks.
8075         Reported by OndÅ™ej Vašík.
8076
8077         utimes: fix configure grammar
8078         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
8079
8080 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
8081
8082         regex: Fix fastmap for multibyte character ranges.
8083         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
8084         characters when a multibyte character range is included.
8085
8086 2009-11-22  Andy Wingo  <wingo@pobox.com>
8087
8088         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
8089         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
8090
8091 2009-11-24  Bruno Haible  <bruno@clisp.org>
8092
8093         doc: Most *_l functions exist in MacOS X 10.5.
8094         * doc/posix-functions/duplocale.texi: Update platforms list.
8095         * doc/posix-functions/freelocale.texi: Likewise.
8096         * doc/posix-functions/newlocale.texi: Likewise.
8097         * doc/posix-functions/uselocale.texi: Likewise.
8098         * doc/posix-functions/isalnum_l.texi: Likewise.
8099         * doc/posix-functions/isalpha_l.texi: Likewise.
8100         * doc/posix-functions/isblank_l.texi: Likewise.
8101         * doc/posix-functions/iscntrl_l.texi: Likewise.
8102         * doc/posix-functions/isdigit_l.texi: Likewise.
8103         * doc/posix-functions/isgraph_l.texi: Likewise.
8104         * doc/posix-functions/islower_l.texi: Likewise.
8105         * doc/posix-functions/isprint_l.texi: Likewise.
8106         * doc/posix-functions/ispunct_l.texi: Likewise.
8107         * doc/posix-functions/isspace_l.texi: Likewise.
8108         * doc/posix-functions/isupper_l.texi: Likewise.
8109         * doc/posix-functions/iswalnum_l.texi: Likewise.
8110         * doc/posix-functions/iswalpha_l.texi: Likewise.
8111         * doc/posix-functions/iswblank_l.texi: Likewise.
8112         * doc/posix-functions/iswcntrl_l.texi: Likewise.
8113         * doc/posix-functions/iswctype_l.texi: Likewise.
8114         * doc/posix-functions/iswdigit_l.texi: Likewise.
8115         * doc/posix-functions/iswgraph_l.texi: Likewise.
8116         * doc/posix-functions/iswlower_l.texi: Likewise.
8117         * doc/posix-functions/iswprint_l.texi: Likewise.
8118         * doc/posix-functions/iswpunct_l.texi: Likewise.
8119         * doc/posix-functions/iswspace_l.texi: Likewise.
8120         * doc/posix-functions/iswupper_l.texi: Likewise.
8121         * doc/posix-functions/iswxdigit_l.texi: Likewise.
8122         * doc/posix-functions/isxdigit_l.texi: Likewise.
8123         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
8124         * doc/posix-functions/strcasecmp_l.texi: Likewise.
8125         * doc/posix-functions/strcoll_l.texi: Likewise.
8126         * doc/posix-functions/strfmon_l.texi: Likewise.
8127         * doc/posix-functions/strftime_l.texi: Likewise.
8128         * doc/posix-functions/strncasecmp_l.texi: Likewise.
8129         * doc/posix-functions/strxfrm_l.texi: Likewise.
8130         * doc/posix-functions/tolower_l.texi: Likewise.
8131         * doc/posix-functions/toupper_l.texi: Likewise.
8132         * doc/posix-functions/towctrans_l.texi: Likewise.
8133         * doc/posix-functions/towlower_l.texi: Likewise.
8134         * doc/posix-functions/towupper_l.texi: Likewise.
8135         * doc/posix-functions/wcscoll_l.texi: Likewise.
8136         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
8137         * doc/posix-functions/wctrans_l.texi: Likewise.
8138         * doc/posix-functions/wctype_l.texi: Likewise.
8139         * doc/glibc-functions/strptime_l.texi: Likewise.
8140         * doc/glibc-functions/strtod_l.texi: Likewise.
8141         * doc/glibc-functions/strtof_l.texi: Likewise.
8142         * doc/glibc-functions/strtol_l.texi: Likewise.
8143         * doc/glibc-functions/strtold_l.texi: Likewise.
8144         * doc/glibc-functions/strtoll_l.texi: Likewise.
8145         * doc/glibc-functions/strtoul_l.texi: Likewise.
8146         * doc/glibc-functions/strtoull_l.texi: Likewise.
8147         * doc/glibc-functions/wcsftime_l.texi: Likewise.
8148         * doc/glibc-functions/wcstod_l.texi: Likewise.
8149         * doc/glibc-functions/wcstof_l.texi: Likewise.
8150         * doc/glibc-functions/wcstol_l.texi: Likewise.
8151         * doc/glibc-functions/wcstold_l.texi: Likewise.
8152         * doc/glibc-functions/wcstoll_l.texi: Likewise.
8153         * doc/glibc-functions/wcstoul_l.texi: Likewise.
8154         * doc/glibc-functions/wcstoull_l.texi: Likewise.
8155
8156 2009-11-24  Bruno Haible  <bruno@clisp.org>
8157
8158         duplocale: Fix logic bug.
8159         * lib/duplocale.c: Don't include <langinfo.h>.
8160         (_NL_LOCALE_NAME): Remove macro.
8161         (rpl_duplocale): Use setlocale instead of nl_langinfo.
8162         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
8163
8164 2009-11-23  Jim Meyering  <meyering@redhat.com>
8165
8166         test-update-copyright: don't hard-code /usr/bin/perl
8167         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
8168         perl to print the current year.  Gilles Espinasse reported that
8169         the replaced use of perl was hard-coded as /usr/bin/perl.
8170
8171 2009-11-23  Bruno Haible  <bruno@clisp.org>
8172
8173         duplocale: Add support for glibc 2.3.x.
8174         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
8175
8176 2009-11-22  Bruno Haible  <bruno@clisp.org>
8177
8178         vasnprintf: Tiny optimization.
8179         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
8180         MacOS X.
8181
8182 2009-11-22  Bruno Haible  <bruno@clisp.org>
8183
8184         Tests for module 'duplocale'.
8185         * modules/duplocale-tests: New file.
8186         * tests/test-duplocale.c: New file.
8187
8188         New module 'duplocale'.
8189         * m4/duplocale.m4: New file.
8190         * lib/locale.in.h (duplocale): New declaration.
8191         * lib/duplocale.c: New file.
8192         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
8193         gl_LOCALE_H_DEFAULTS): New macros.
8194         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
8195         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
8196         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
8197         REPLACE_DUPLOCALE.
8198         * modules/duplocale: New file.
8199         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
8200
8201 2009-11-22  Bruno Haible  <bruno@clisp.org>
8202
8203         * modules/locale-tests (configure.ac): Test for newlocale function.
8204         * tests/test-locale.c: When the system has extended locale functions,
8205         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
8206
8207         locale: Make locale_t available when possible.
8208         * lib/locale.in.h: Include <xlocale.h> when it exists.
8209         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
8210         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
8211         * modules/locale (Depends-on): Add extensions.
8212         (Makefile.am): Also substitute HAVE_XLOCALE_H.
8213         * doc/posix-headers/locale.texi: Document the problem with locale_t.
8214
8215 2009-11-22  Bruno Haible  <bruno@clisp.org>
8216
8217         Add comments.
8218         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
8219         invocation.
8220         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
8221         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8222         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
8223
8224 2009-11-22  Bruno Haible  <bruno@clisp.org>
8225
8226         error: account for the possibility of freopen (stdout).
8227         * lib/error.c: Include <unistd.h>.
8228         (flush_stdout): New function, extracted from error and error_at_line.
8229         Determine stdout's fd dynamically.
8230         (error, error_at_line): Invoke flush_stdout.
8231         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
8232         * modules/error (Depends-on): Add unistd.
8233
8234 2009-11-22  Bruno Haible  <bruno@clisp.org>
8235
8236         diffseq: Add comment.
8237         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
8238
8239 2009-11-22  Jim Meyering  <meyering@redhat.com>
8240
8241         c-stack: avoid defining an unused static function
8242         * lib/c-stack.c (find_stack_direction): Do not define this function
8243         when it will not be used.
8244
8245         diffseq: avoid spurious gcc warnings
8246         * lib/diffseq.h (IF_LINT2): Define.
8247         (compareseq): Use it to initialize two members of "part".
8248         This avoids two used-uninitialized warnings.
8249
8250 2009-11-21  Jim Meyering  <meyering@redhat.com>
8251
8252         c-stack: avoid "ignoring return value of `write'" warning
8253         * lib/c-stack.c: Include "ignore-value.h".
8254         (die): Explicitly ignore each write return value.
8255         * modules/c-stack (Depends-on): Add ignore-value.
8256
8257 2009-11-21  Bruno Haible  <bruno@clisp.org>
8258
8259         diffseq: reduce scope of variable 'best'.
8260         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
8261         variable, earlier used for two different purposes.
8262
8263 2009-11-21  Jim Meyering  <meyering@redhat.com>
8264
8265         diffseq: remove useless assignment to "best"
8266         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
8267         assignment.  At that point "best" is already guaranteed to be zero.
8268
8269 2009-11-20  Eric Blake  <ebb9@byu.net>
8270
8271         build: mention ftp redirector in release announcements
8272         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
8273         values that used to come from cfg.mk; mention FTP redirect URL.
8274         * build-aux/announce-gen: Mention the mirror list.
8275         Suggested by Karl Berry.
8276
8277         nanosleep: improve port to mingw
8278         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
8279         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
8280         LIB_NANOSLEEP, but only when needed.
8281         * modules/select (Link): Document LIBSOCKET.
8282         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
8283         enough.
8284
8285         nanosleep: work around cygwin bug
8286         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
8287         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
8288         bug.
8289         (getnow): Delete, not needed.
8290         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
8291         LIB_CLOCK_GETTIME.
8292         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
8293         clock-time, gettime.
8294         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
8295         bug.
8296         * modules/nanosleep-tests: New test.
8297         * tests/test-nanosleep.c: New file.
8298
8299         sleep: work around cygwin bug
8300         * lib/sleep.c (rpl_sleep): Work around the bug.
8301         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
8302         (gl_PREREQ_SLEEP): Delete unused macro.
8303         * modules/sleep (Depends-on): Add verify.
8304         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
8305         * modules/unistd (Makefile.am): Substitute witness.
8306         * lib/unistd.in.h (sleep): Update prototype.
8307         * doc/posix-functions/sleep.texi (sleep): Document the bug.
8308         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
8309         * modules/sleep-tests (Depends-on): Check for alarm.
8310
8311 2009-11-20  Jim Meyering  <meyering@redhat.com>
8312
8313         maint.mk: improve sc_prohibit_magic_number_exit
8314         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
8315         so it does not match uses like System.exit(1).
8316         Add comments showing how to correct all offenders.
8317
8318 2009-11-19  Eric Blake  <ebb9@byu.net>
8319
8320         xalloc-die-tests: add missing library
8321         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
8322
8323         test-xvasprintf: silence compiler warnings
8324         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
8325         empty string from gcc.
8326
8327 2009-11-19  Jim Meyering  <meyering@redhat.com>
8328
8329         xfreopen: new module, from coreutils
8330         * modules/xfreopen: New module.
8331         * lib/xfreopen.c: New file.
8332         * lib/xfreopen.h: New file.
8333         * MODULES.html.sh (File stream based Input/Output"): Add it.
8334
8335 2009-11-19  Eric Blake  <ebb9@byu.net>
8336
8337         manywarnings: depend on warnings
8338         * modules/manywarnings (Depends-on): Add warnings.
8339
8340         build: avoid compiler warnings
8341         * lib/select.c (rpl_select): Delete unused variable.
8342         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
8343
8344 2009-11-18  Eric Blake  <ebb9@byu.net>
8345
8346         tests: avoid false negative with --with-packager
8347         * tests/test-version-etc.sh: Discard packager information.
8348         * tests/test-argp-version-etc-1.sh: Likewise.
8349         Reported by Mike Frysinger.
8350
8351         utimens: fix regression on Solaris
8352         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
8353         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
8354         can only change fd timestamps via futimesat.  Instead, use an
8355         additional witness macro to avoid BSD bug.
8356         Reported by Jim Meyering.
8357
8358 2009-11-17  Eric Blake  <ebb9@byu.net>
8359
8360         usleep: use it to simplify tests
8361         * modules/stat-time-tests (Depends-on): Add usleep.
8362         (configure.ac): Drop usleep check.
8363         * modules/chown-tests (Depends-on, configure.ac): Likewise.
8364         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
8365         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
8366         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
8367         * modules/openat-tests (Depends-on, configure.ac): Likewise.
8368         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
8369         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
8370         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
8371         Likewise.
8372         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
8373         * tests/test-lchown.h (nap): Likewise.
8374         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
8375         * tests/test-stat-time.c (nap): Likewise.
8376         * tests/test-utimens-common.h (nap): Update comments.
8377
8378         usleep: new module
8379         * modules/usleep: New file.
8380         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
8381         * lib/usleep.c (usleep): Likewise.
8382         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
8383         * modules/unistd (Makefile.am): Substitute witnesses.
8384         * lib/unistd.in.h (usleep): Add declaration.
8385         * doc/pastposix-functions/usleep.texi (usleep): Document this.
8386         * MODULES.html.sh (Date and time): Likewise.
8387         * modules/usleep-tests (Depends-on): New test.
8388         * tests/test-usleep.c: New file.
8389
8390         chown: work around OpenBSD bug
8391         * lib/chown.c (rpl_chown): Work around the bug.
8392         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
8393         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
8394         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
8395         * modules/chown (Depends-on): Add stdbool.
8396         * modules/lchown (Depends-on): Likewise.
8397         * doc/posix-functions/chown.texi (chown): Document the bug.
8398         * doc/posix-functions/lchown.texi (lchown): Likewise.
8399         * tests/test-lchown.h (test_chown): Relax test.
8400
8401         mkstemp: avoid conflict with C++ keyword template
8402         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
8403         * lib/mkostemp.c (mkostemp): Likewise.
8404         * lib/mkostemps.c (mkostemps): Likewise.
8405         * lib/mkstemp.c (mkstemp): Likewise.
8406         * lib/mkstemps.c (mkstemps): Likewise.
8407
8408         xalloc-die-tests: optimize
8409         * tests/test-xalloc-die.sh: Reduce number of processes.
8410
8411 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8412
8413         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
8414         patch from ludo@gnu.org (Ludovic Courtès).
8415
8416 2009-11-17  Jim Meyering  <meyering@redhat.com>
8417
8418         version-etc: use proper license string
8419         * modules/version-etc (License): Use LGPL, not LGPLv3+.
8420         * modules/version-etc-fsf: Likewise.
8421
8422 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8423
8424         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
8425         printed to stdout.  Deal with EOL differences.
8426
8427 2009-11-17  Eric Blake  <ebb9@byu.net>
8428
8429         unsetenv: work around Solaris bug
8430         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
8431         * lib/unsetenv.c (rpl_unsetenv): Work around it.
8432         Reported by Jim Meyering.
8433
8434         vasnprintf: avoid compiler warnings
8435         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
8436         variables.
8437         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
8438
8439 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8440
8441         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
8442         settings since xalloc-die is no longer the self test,
8443         xalloc-die.sh is.
8444
8445 2009-11-17  Jim Meyering  <meyering@redhat.com>
8446
8447         test-xalloc-die.sh: make the code agree with the commit log
8448         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
8449         at the end, just in case you happen to have a test-xalloc-die
8450         program in some other PATH directory.
8451
8452         test-xalloc-die.sh: fix a portability bug
8453         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
8454         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
8455         Otherwise, argv[0] (as often seen in diagnostics) would be too
8456         system-dependent, sometimes with, and sometimes without the leading "./".
8457
8458         version-etc-fsf: relax license to LGPLv3+
8459         * modules/version-etc-fsf (License): Relax license.
8460
8461 2009-11-16  Eric Blake  <ebb9@byu.net>
8462
8463         xalloc-die-tests: avoid printing null pointer
8464         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
8465         shell script.
8466         * tests/test-xalloc-die.c (program_name): Declare.
8467         * tests/test-xalloc-die.sh (tmpfiles): New file.
8468
8469         setenv, unsetenv: work around various bugs
8470         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
8471         (setenv) [HAVE_SETENV]: Work around bugs.
8472         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
8473         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
8474         for bugs.
8475         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
8476         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
8477         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
8478         * modules/stdlib (Makefile.am): Update substitutions.
8479         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
8480         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
8481         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
8482         * modules/setenv-tests: New test.
8483         * modules/unsetenv-tests: Likewise.
8484         * tests/test-setenv.c: New file.
8485         * tests/test-unsetenv.c: Likewise.
8486
8487 2009-11-16  Jim Meyering  <meyering@redhat.com>
8488
8489         version-etc: relax license to LGPLv3+
8490         * modules/version-etc (License): Relax license.
8491
8492         better AC_REQUIRE expanded-before-required-warning avoidance
8493         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
8494         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
8495         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
8496         which is no longer needed.
8497
8498 2009-11-16  Eric Blake  <ebb9@byu.net>
8499
8500         test-freading: clean up temporary file
8501         * tests/test-freading.c (main): Remove file on success, and use
8502         ASSERT more liberally.
8503         Reported by Jim Meyering.
8504
8505 2009-11-16  Jim Meyering  <meyering@redhat.com>
8506
8507         avoid new AC_REQUIRE expanded-before-required warnings
8508         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
8509         merely using it.
8510         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
8511         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
8512
8513 2009-11-15  Simon Josefsson  <simon@josefsson.org>
8514
8515         * tests/test-xalloc-die.c: New file.
8516         * modules/xalloc-die-tests: New file.
8517         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
8518         XFAIL_TESTS so it can be appended by modules.
8519
8520 2009-11-15  Simon Josefsson  <simon@josefsson.org>
8521
8522         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
8523         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
8524
8525 2009-11-14  Eric Blake  <ebb9@byu.net>
8526
8527         fnmatch: avoid compiler warning
8528         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
8529         to silence compiler warning about mismatch signedness in ?:.
8530         Reported by Robert Millan.
8531
8532         intprops: add double-inclusion guard
8533         * lib/intprops.h: Allow idempotent includes.
8534         Suggested by Bruce Korb.
8535
8536         openat: detect Solaris fchownat bug
8537         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
8538         penalizing glibc chownat when only lchownat is broken.
8539         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
8540         trailing slash bugs.
8541         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
8542         * modules/openat-tests (Files): Include more files.
8543         (Depends-on): Add mgetgroups, sleep, stat-time.
8544         (configure.ac): Add additional checks.
8545         (Makefile.am): Build new test.
8546         * tests/test-fchownat.c: New file.
8547
8548         lchown: detect Solaris and FreeBSD bug
8549         * lib/lchown.c (rpl_lchown): Work around bug.
8550         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
8551         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8552         * modules/unistd (Makefile.am): Populate it.
8553         * lib/unistd.in.h (lchown): Update declaration.
8554         * doc/posix-functions/lchown.texi (lchown): Document the bug.
8555         * modules/lchown-tests: New file.
8556         * tests/test-lchown.h (test_lchown): Likewise.
8557         * tests/test-lchown.c (main): Likewise.
8558
8559         chown: detect Solaris and FreeBSD bug
8560         * lib/chown.c (rpl_chown): Work around bug.
8561         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
8562         (gl_PREREQ_CHOWN): Delete.
8563         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8564         * modules/unistd (Makefile.am): Populate it.
8565         * lib/unistd.in.h (chown): Update declaration.
8566         * lib/lchown.c (chown): Update client.
8567         * modules/lchown (Depends-on): Add lstat.
8568         * doc/posix-functions/chown.texi (chown): Document the bug.
8569         * doc/posix-functions/getgroups.texi (getgroups): Document
8570         getgroups pitfall.
8571         * modules/chown-tests: New file.
8572         * tests/test-chown.h (test_chown): Likewise.
8573         * tests/test-chown.c (main): Likewise.
8574
8575 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
8576
8577         gnulib-tool: correctly detect absence of m4 directories
8578         * gnulib-tool: Avoid extra newline on data passed to wc -l.
8579
8580 2009-11-14  Jim Meyering  <meyering@redhat.com>
8581
8582         maint.mk: Prohibit inclusion of "xalloc.h" without use.
8583         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
8584
8585 2009-11-14  John W. Eaton  <jwe@gnu.org>
8586
8587         strftime.h: wrap funtion declaration in extern "C" block
8588         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
8589
8590 2009-11-13  Eric Blake  <ebb9@byu.net>
8591
8592         getgroups: avoid compiler warning
8593         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
8594
8595         getgroups: work around FreeBSD bug
8596         * lib/getgroups.c (rpl_getgroups): Work around the bug.
8597         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
8598         * doc/posix-functions/getgroups.texi (getgroups): Document it.
8599         * tests/test-getgroups.c (main): Fix buffer overrun.
8600
8601         getgroups: avoid compilation failure
8602         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
8603         * modules/getgroups (Depends-on): Add stdint.
8604
8605 2009-11-13  Jim Meyering  <meyering@redhat.com>
8606
8607         test-getgroups: avoid compilation failure
8608         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
8609
8610 2009-11-13  Eric Blake  <ebb9@byu.net>
8611
8612         mgetgroups: new module, taken from coreutils
8613         * modules/mgetgroups: New file.
8614         * lib/mgetgroups.h: Likewise.
8615         * lib/mgetgroups.c (mgetgroups): Likewise.
8616         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
8617         * MODULES.html.sh (Users and groups): Mention it.
8618
8619         getgroups: don't expose GETGROUPS_T to user
8620         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
8621         an element at a time if GETGROUPS_T is wrong size.
8622         * lib/getugroups.h (getugroups): Change signature.
8623         * lib/unistd.in.h (getgroups): Likewise.
8624         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
8625         signature needs fixing.
8626         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
8627         AC_TYPE_GETGROUPS.
8628         * modules/group-member (Depends-on): Add getgroups.
8629         * lib/group-member.c (group_info, get_group_info): Use gid_t.
8630         (group_member): Rely on getgroups replacement.
8631         * lib/getugroups.c (getugroups): Use gid_t.
8632         * tests/test-getgroups.c (main): Likewise.
8633         * NEWS: Mention the signature change.
8634         * doc/posix-functions/getgroups.texi (getgroups): Mention the
8635         problem with signature.
8636         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
8637         GETGROUPS_T is still useful for setgroups.
8638
8639         getgroups, getugroups: provide stubs for mingw
8640         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
8641         * lib/getugroups.c (getugroups): Likewise.
8642         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
8643         function.  Modernize replacement scheme.
8644         (gl_PREREQ_GETGROUPS): Delete.
8645         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
8646         * modules/getgroups (configure.ac): Declare witness.
8647         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
8648         * modules/unistd (Depends-on): Substitute witness.
8649         * lib/unistd.in.h (getgroups): Declare replacement.
8650
8651         getgroups: avoid calling exit
8652         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
8653         drop xalloc.
8654         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
8655         dependencies.
8656         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
8657         exiting, in the rare case of malloc failure.
8658
8659         getgroups: fix logic error
8660         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
8661         has more than 20 groups.
8662         * modules/getgroups-tests: New test.
8663         * tests/test-getgroups.c: New file.
8664
8665 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8666
8667         * tests/test-base64.c: Improve.
8668
8669 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8670
8671         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
8672         Blake <ebb9@byu.net>.
8673
8674 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8675
8676         * tests/test-xvasprintf.c: Add %s%s related checks.
8677
8678 2009-11-12  Eric Blake  <ebb9@byu.net>
8679
8680         version-etc: match standards.texi style
8681         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
8682         and use <> only for URLs.
8683
8684 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
8685
8686         fts: do not fail on a submount during traversal
8687         * lib/fts.c (fts_build): Read the stat info again after opening
8688         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
8689         Original report at http://bugzilla.redhat.com/501848.
8690
8691 2009-11-12  Jim Meyering  <meyering@redhat.com>
8692
8693         bootstrap: sync from coreutils
8694         * build-aux/bootstrap (bootstrap_epilogue): New function.
8695         Use git_modules_config in one more place.  This make bootstrap's
8696         --gnulib-srcdir option more useful for testing.
8697
8698         bootstrap: generalize autoheader check
8699         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
8700         AC_CONFIG_HEADERS.
8701
8702 2009-11-11  Eric Blake  <ebb9@byu.net>
8703
8704         mkfifoat: use new modules for Solaris and BSD bugs
8705         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
8706         * lib/mkfifoat.c (mknodat): Split...
8707         * lib/mknodat.c (mknodat): ...into new file.
8708         * modules/mkfifoat (Files): Ship new file.
8709         (Depends-on): Add mkfifo, mknod.
8710         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
8711         (Depends-on): Add symlink.
8712         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
8713         redundant with test_mkfifo.h.
8714         (do_mkfifoat, do_mknodat): New helpers.
8715
8716         mknod: new module
8717         * modules/mknod: New file.
8718         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
8719         * lib/mknod.c (mknod): Likewise.
8720         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
8721         defaults.
8722         * modules/sys_stat (Makefile.am): Substitute them.
8723         * lib/sys_stat.in.h (mknod): Declare replacement.
8724         * MODULES.html.sh (Support for systems lacking POSIX:2008):
8725         Document it.
8726         * doc/posix-functions/mknod.texi (mknod): Likewise.
8727         * modules/mknod-tests: New test.
8728         * tests/test-mknod.c: Likewise.
8729
8730         mkfifo: new module
8731         * modules/mkfifo: New file.
8732         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
8733         * lib/mkfifo.c (mkfifo): Likewise.
8734         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
8735         defaults.
8736         * modules/sys_stat (Makefile.am): Substitute them.
8737         * lib/sys_stat.in.h (mkfifo): Declare replacement.
8738         * MODULES.html.sh (Support for systems lacking POSIX:2008):
8739         Document it.
8740         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
8741         * modules/mkfifo-tests: New test.
8742         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
8743         from test-mkfifoat.c.
8744         * tests/test-mkfifo.c: New file.
8745
8746         readlink: detect FreeBSD bug
8747         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
8748         slash on symlink.
8749         * doc/posix-functions/readlink.texi (readlink): Document the bug.
8750         * tests/test-readlink.h (test_readlink): Enhance test.
8751
8752         symlink: detect FreeBSD bug
8753         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
8754         slash on symlink.
8755         * doc/posix-functions/symlink.texi (symlink): Document the bug.
8756         * tests/test-symlink.h (test_symlink): Enhance test.
8757
8758 2009-11-10  Eric Blake  <ebb9@byu.net>
8759
8760         link: detect FreeBSD bug
8761         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
8762         symlink.
8763         * doc/posix-functions/link.texi (link): Document the bug.
8764         * tests/test-link.h (test_link): Enhance test.
8765         * tests/test-linkat.c (main): Update caller.
8766
8767         unlink, remove: detect FreeBSD bug
8768         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
8769         slash on symlink.
8770         * doc/posix-functions/unlink.texi (unlink): Document the bug.
8771         * doc/posix-functions/remove.texi (remove): Likewise.
8772         * tests/test-unlink.h (test_unlink): Enhance test.
8773         * tests/test-remove.c (main): Likewise.
8774
8775 2009-11-09  Eric Blake  <ebb9@byu.net>
8776
8777         rename: detect FreeBSD bug
8778         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
8779         slash on symlink.
8780         * modules/renameat-tests (Depends-on): Add filenamecat.
8781         * tests/test-rename.h (test_rename): Allow one more errno.
8782         * tests/test-renameat.c (main): Likewise.
8783         * doc/posix-functions/rename.texi (rename): Document the bug.
8784
8785         open: detect FreeBSD bug
8786         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
8787         symlink.
8788         * doc/posix-functions/open.texi (open): Document the bug.
8789         * doc/posix-functions/utimes.texi (utimes): Likewise.
8790         * tests/test-open.h (test_open): Add parameters, and test symlink
8791         handling.
8792         * tests/test-open.c (main): Adjust caller.
8793         * tests/test-fcntl-safer.c (main): Likewise.
8794         * modules/open-tests (Depends-on): Add stdbool, symlink.
8795         * modules/fcntl-safer-tests (Depends-on): Likewise.
8796         * tests/test-openat.c (main): Add test-open tests.
8797
8798         stat: detect FreeBSD bug
8799         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
8800         symlink.
8801         * doc/posix-functions/stat.texi (stat): Document the bug.
8802         * tests/test-stat.h (test_stat_func): Add argument.
8803         * tests/test-stat.c (main): Adjust caller.
8804         * tests/test-fstatat.c (main): Likewise.
8805         * modules/stat-tests (Depends-on): Add stdbool, symlink.
8806         Reported by Jim Meyering.
8807
8808 2009-11-09  James Youngman  <jay@gnu.org>
8809
8810         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
8811         * lib/strftime.c: Correct placement of #include "ignore-value.h".
8812
8813 2009-11-08  Jim Meyering  <meyering@redhat.com>
8814
8815         utimens: remove invalid futimesat call
8816         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
8817         It used the file descriptor of the target file as the DIR_FD
8818         parameter and NULL as the file name.  That caused failure with
8819         errno == EFAULT on FreeBSD-8.0-rc2
8820
8821 2009-11-07  Eric Blake  <ebb9@byu.net>
8822
8823         fflush, freadseek: use fseeko, not fseek
8824         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
8825         (clear_ungetc_buffer): Avoid potential problems on large files.
8826         * lib/freadseek.c (freadseek): Likewise.
8827         * modules/freadseek (Depends-on): Add fseeko.
8828         * modules/fseek (configure.ac): Set a witness.
8829         * tests/test-fflush.c (main): Use fseeko.
8830         * tests/test-fpurge.c (fseek): Disable link warning.
8831         * tests/test-freadable.c (fseek): Likewise.
8832         * tests/test-freading.c (fseek): Likewise.
8833         * tests/test-fseeko.c (fseek): Likewise.
8834         * tests/test-ftell.c (fseek): Likewise.
8835         * tests/test-ftello.c (fseek): Likewise.
8836         * tests/test-fwritable.c (fseek): Likewise.
8837         * tests/test-fwriting.c (fseek): Likewise.
8838
8839 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8840
8841         * modules/memchr (Depends-on): Drop getpagesize dependency.
8842
8843 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8844
8845         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
8846         Reported by Ludovic Courtès.
8847         * build-aux/pmccabe2html: Improve example usage.
8848         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
8849
8850 2009-11-06  Jim Meyering  <meyering@redhat.com>
8851
8852         do-release-commit-and-tag: New module.
8853         Automate the release-commit and tag process.
8854         * build-aux/do-release-commit-and-tag: New script, from coreutils.
8855         * modules/do-release-commit-and-tag: New file.
8856         * MODULES.html.sh (Support for maintaining and releasing): Add it.
8857
8858 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8859
8860         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
8861         because test-select.c uses inet_pton.
8862
8863 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8864
8865         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
8866         GETADDRINFO_LIB.  Bump serial number.
8867         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
8868         Suggested by Eric Blake <ebb9@byu.net>.
8869
8870 2009-11-05  Eric Blake  <ebb9@byu.net>
8871
8872         strtod: detect darwin bug
8873         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
8874         Reported by Leo Davis.
8875
8876         freopen-safer: new module
8877         * modules/freopen-safer: New module.
8878         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
8879         * lib/freopen-safer.c (freopen_safer): New file.
8880         * lib/stdio-safer.h (freopen_safer): New declaration.
8881         * lib/stdio--.h (freopen): New override.
8882         * MODULES.html.sh (File stream based Input/Output): Mention it.
8883         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
8884         freopen-safer module.
8885         * doc/posix-functions/stderr.texi (stderr): Likewise.
8886         * doc/posix-functions/stdin.texi (stdin): Likewise.
8887         * doc/posix-functions/stdout.texi (stdout): Likewise.
8888         * modules/freopen-safer-tests: New test.
8889         * tests/test-reopen-safer.c: New file.
8890
8891 2009-11-05  Jim Meyering  <meyering@redhat.com>
8892
8893         maint.mk: Prohibit inclusion of "close-stream.h" without use.
8894         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
8895
8896 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8897
8898         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
8899
8900 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8901
8902         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
8903
8904 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8905
8906         Fix link error.
8907         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
8908         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
8909
8910 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8911
8912         * tests/test-func.c: Also test value of __func__.
8913
8914 2009-11-05  Simon Josefsson  <simon@josefsson.org>
8915
8916         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
8917         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
8918
8919 2009-11-05  Bruno Haible  <bruno@clisp.org>
8920
8921         Fix link error.
8922         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
8923         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
8924         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
8925
8926 2009-11-05  Bruno Haible  <bruno@clisp.org>
8927
8928         Tests for module 'inet_pton'.
8929         * modules/inet_pton-tests: New file.
8930         * tests/test-inet_pton.c: New file.
8931
8932 2009-11-05  Bruno Haible  <bruno@clisp.org>
8933
8934         Tests for module 'inet_ntop'.
8935         * modules/inet_ntop-tests: New file.
8936         * tests/test-inet_ntop.c: New file.
8937
8938 2009-11-04  Eric Blake  <ebb9@byu.net>
8939
8940         stdlib-safer: wrap all mkstemp variants
8941         * modules/mkostemp (configure.ac): Set witness.
8942         * modules/mkostemps (configure.ac): Likewise.
8943         * modules/mkstemps (configure.ac): Likewise.
8944         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
8945         (mkstemps_safer): Wrap more functions.
8946         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
8947         wrapping.
8948         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
8949         (mkstemps_safer): Implement the wrappers.
8950
8951         mkstemps, mkostemps: new modules
8952         * modules/mkostemps: New module.
8953         * modules/mkstemps: Likewise.
8954         * lib/mkostemps.c (mkostemps): New file.
8955         * lib/mkstemps.c (mkstemps): Likewise.
8956         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
8957         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
8958         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
8959         * modules/stdlib (Makefile.am): Substitute them.
8960         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
8961         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
8962         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
8963         * doc/gnulib.texi (Glibc stdlib.h): Include them.
8964         * MODULES.html.sh (File system functions): Mention them.
8965
8966         tempname: resync from glibc
8967         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
8968         same values for __GT_FILE as glibc.  Abort even when assertions
8969         are disabled.
8970         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
8971         match its value otherwise.  Allow idempotent inclusion.
8972         * lib/mkdtemp.c (mkdtemp): Adjust caller.
8973         * lib/mkostemp.c (mkostemp): Likewise.
8974         * lib/mkstemp.c (mkstemp): Likewise.
8975         * lib/tmpfile.c (tmpfile): Likewise.
8976         * NEWS: Document this.
8977
8978         utimens: fix use of futimens on older Linux
8979         * lib/utimens.c (fdutimens): Use updated, rather than original,
8980         timespec to avoid bug in older Linux kernel.
8981         Reported by Simon Josefsson.
8982
8983 2009-11-04  Bruno Haible  <bruno@clisp.org>
8984
8985         Make num_processors more flexible and consistent.
8986         * lib/nproc.h (enum nproc_query): New type.
8987         (num_processors): Add a 'query' argument.
8988         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
8989         (num_processors): Add a 'query' argument. Test the value of the
8990         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
8991         mingw, count the number of CPUs available for the current process.
8992         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
8993         Check for sched_getaffinity and sched_getaffinity_np.
8994         * modules/nproc (Depends-on): Add c-ctype, extensions.
8995         * NEWS: Mention the change.
8996
8997 2009-11-03  Bruno Haible  <bruno@clisp.org>
8998
8999         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
9000
9001 2009-11-03  Jim Meyering  <meyering@redhat.com>
9002
9003         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
9004         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
9005         if it is defined.
9006
9007 2009-11-02  Eric Blake  <ebb9@byu.net>
9008
9009         mktime, timegm: share common declaration
9010         * lib/mktime-internal.h: New file.
9011         * lib/mktime.c: Use it rather than open-coding a declaration.
9012         * lib/timegm.c: Likewise.
9013         * modules/mktime (Files): Ship it.
9014         * modules/timegm (Files): Likewise.
9015         Suggested by Bruno Haible.
9016
9017         test-update-copyright: update test to match script changes
9018         * tests/test-update-copyright.sh: Avoid hard-coding perl
9019         location.  Don't update *.bak created by earlier runs.
9020
9021 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
9022             Simon Josefsson  <simon@josefsson.org>
9023             Bruno Haible  <bruno@clisp.org>
9024
9025         Fix link error on Solaris 8.
9026         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
9027         also in libnsl. Define also INET_PTON_LIB.
9028         * modules/inet_pton (Link): New section.
9029
9030 2009-11-02  Simon Josefsson  <simon@josefsson.org>
9031             Bruno Haible  <bruno@clisp.org>
9032
9033         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
9034         * modules/inet_ntop (Link): New section.
9035         Reported by Boyan Kasarov <bkasarov@gmail.com>.
9036
9037 2009-11-02  Eric Blake  <ebb9@byu.net>
9038
9039         maint: avoid compiler warnings in m4 macros
9040         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
9041         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
9042
9043 2009-11-02  Simon Josefsson  <simon@josefsson.org>
9044
9045         * m4/pmccabe2html.m4: Remove file.
9046         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
9047         function.  Change maintainer.
9048         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
9049         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
9050         Courtès).
9051
9052 2009-10-31  Eric Blake  <ebb9@byu.net>
9053
9054         fseeko: fix m4 regression
9055         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
9056         regression from 2009-10-27.
9057         Reported by Ralf Wildenhues.
9058
9059 2009-10-31  Jim Meyering  <meyering@redhat.com>
9060
9061         inttostr: aesthetics and improved (compile-time) safety
9062         Define inttype_is_signed rather than inttype_is_unsigned,
9063         since the sole use is via "#if inttype_is_signed".
9064         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
9065         inttype_is_unsigned.
9066         * lib/offtostr.c (inttype_is_signed): Likewise.
9067         * lib/uinttostr.c (inttype_is_signed): Likewise.
9068         * lib/umaxtostr.c (inttype_is_signed): Likewise.
9069         * lib/inttostr.c (inttostr): Use verify to cross-check the
9070         inttype_is_signed value and the signedness of the actual type.
9071         * modules/inttostr (Depends-on): Add verify.
9072
9073 2009-10-30  Eric Blake  <ebb9@byu.net>
9074
9075         build: avoid compiler warnings
9076         * lib/fchmodat.c (lchmod): Mark unused variables.
9077         * lib/getopt.c (_getopt_initialize): Likewise.
9078         * lib/mktime.c (__mktime_internal): Provide prototype.
9079         * lib/inttostr.c (inttostr): Avoid compiler warning even with
9080         older gcc that do not understand #pragma GCC diagnostic.
9081         * lib/uinttostr.c (inttype_is_unsigned): Define.
9082         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
9083
9084 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
9085
9086         stat: fix compilation on AIX
9087         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
9088         only see struct stat64.
9089
9090 2009-10-30  Eric Blake  <ebb9@byu.net>
9091
9092         exclude: make more robust
9093         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
9094         rather than masking a coding bug.
9095         Suggested by Bruno Haible.
9096
9097 2009-10-30  Jim Meyering  <meyering@redhat.com>
9098
9099         perl scripts: remove #!/usr/bin/perl in favor of more portable...
9100         Rather than putting #!/usr/bin/perl on the first line,
9101         start with a variant of what's recommended by "man perlrun" that
9102         invokes the first "perl" program from your shell's search path.
9103         * build-aux/gitlog-to-changelog: Replace #!... as above.
9104         Add a "Local Variables" perl mode setting.
9105         Prompted by a patch from Ludovic Courtès.
9106         Improved by Eric Blake.
9107         * build-aux/useless-if-before-free: Likewise.
9108         * build-aux/announce-gen: Likewise.
9109         * build-aux/update-copyright: Likewise.
9110
9111 2009-10-29  Eric Blake  <ebb9@byu.net>
9112
9113         filenamecat-lgpl: adjust clients
9114         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
9115         filenamecat.
9116         * modules/renameat (Depends-on): Likewise.
9117
9118         filenamecat: split into filenamecat-lgpl
9119         * modules/filenamecat-lgpl: New module.
9120         * modules/filenamecat (Files): Move library-safe files into
9121         filenamecat-lgpl.
9122         (Depends-on): Add filenamecat-lgpl.
9123         (configure.ac): Declare witness.
9124         * lib/filenamecat.h (file_name_concat): Only declare when using
9125         GPL module.
9126         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
9127         Move...
9128         * lib/filenamecat-lgpl.c: ...into new file.
9129         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
9130         (gl_FILE_NAME_CONCAT): Use it.
9131         * MODULES.html.sh (File system functions): Mention new module.
9132
9133         argp: avoid memory leak
9134         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
9135         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
9136         base_name, since the latter malloc()s and can call exit().
9137         Leak introduced 2006-07-03.
9138
9139         dirname-lgpl: adjust clients that don't need full dirname
9140         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
9141         * modules/filenamecat (Depends-on): Likewise.
9142         * modules/linkat (Depends-on): Likewise.
9143         * modules/mkancesdirs (Depends-on): Likewise.
9144         * modules/mkdir (Depends-on): Likewise.
9145         * modules/openat (Depends-on): Likewise.
9146         * modules/savewd (Depends-on): Likewise.
9147         * modules/rename (Depends-on): Likewise.
9148         (License): Relax license.
9149         * modules/mkdir-tests (Depends-on): Drop progname.
9150         (Makefile.am): Delete unneeded LDADD.
9151         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
9152
9153         dirname: split into dirname-lgpl
9154         * modules/dirname-lgpl: New module.
9155         * modules/dirname (Files): Move library-safe files into
9156         dirname-lgpl.
9157         (Depends-on): Add dirname-lgpl.
9158         (configure.ac): Declare witness.
9159         * modules/double-slash-root (License): Relax license.
9160         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
9161         module.
9162         * lib/dirname.c (dir_len, mdir_name): Move...
9163         * lib/dirname-lgpl.c: ...into new file.
9164         * lib/basename.c (last_component, base_len): Move...
9165         * lib/basename-lgpl.c: ...into new file.
9166         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
9167         (gl_DIRNAME): Use it.
9168         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
9169         Mention new module.
9170         * modules/dirname-tests (Depends-on): Add progname.
9171         * tests/test-dirname.c (program_name): Delete.
9172
9173         mkdir: make safe for libraries
9174         * modules/mkdir (Depends-on): Drop xalloc.
9175         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
9176         exit.
9177
9178         tests: avoid some compiler warnings
9179         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
9180         literals.
9181         * tests/test-memchr.c (main): Avoid type mismatch.
9182         * tests/test-arpa_inet.c (main): Avoid unused parameters.
9183         * tests/test-base64.c (main): Likewise.
9184         * tests/test-getdelim.c (main): Likewise.
9185         * tests/test-gethostname.c (main): Likewise.
9186         * tests/test-getline.c (main): Likewise.
9187         * tests/test-netinet_in.c (main): Likewise.
9188         * tests/test-select.c (open_server_socket, main): Likewise.
9189         * tests/test-select-stdin.c (main): Likewise.
9190         * tests/test-sockets.c (main): Likewise.
9191         * tests/test-strsignal.c (main): Likewise.
9192         * tests/test-sys_select.c (main): Likewise.
9193         * tests/test-sys_socket.c (main): Likewise.
9194         * tests/test-u64.c (main): Likewise.
9195         * tests/test-xfprintf-posix.c (main): Likewise.
9196         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
9197
9198         sockets: avoid compiler warning
9199         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
9200
9201         maint: detect usage(1) and other suspicious exits
9202         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
9203
9204 2009-10-29  Jim Meyering  <meyering@redhat.com>
9205
9206         timespec: long-to-int truncation could make timespec_cmp malfunction
9207         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
9208         a multiple of 2^32 nanoseconds as no difference.
9209
9210 2009-10-28  Jim Meyering  <meyering@redhat.com>
9211
9212         fprintftime: wrap macro code argument in "do {...} while(0)"
9213         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
9214         cpy macro must be a statement that can be followed by a semicolon.
9215         Now that the else clause contains a comment and is hence longer
9216         than one line, I require curly braces.  That in turn requires
9217         that we wrap this code block in the standard do...while(0).
9218
9219         fprintftime: remove stray semicolon from previous change
9220         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
9221
9222         fprintftime: avoid a warning about ignored fwrite return value
9223         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
9224         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
9225         that is unsafe.
9226         * modules/fprintftime (Depends-on): Add ignore-value.
9227
9228         exclude: avoid an unwarranted warning
9229         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
9230
9231 2009-10-27  Eric Blake  <ebb9@byu.net>
9232
9233         fseek: avoid compilation failure when fflush is replaced
9234         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
9235         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
9236         module is in use.
9237         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
9238         module is not in use; since REPLACE_FSEEK worked otherwise.
9239         (GNULIB_FTELLO): Likewise for ftell.
9240         Reported by Ian Beckwith and others.
9241
9242 2009-10-27  Bruno Haible  <bruno@clisp.org>
9243
9244         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
9245         Reported by Jim Meyering.
9246
9247 2009-10-27  Jim Meyering  <jim@meyering.net>
9248             Bruno Haible  <bruno@clisp.org>
9249
9250         Avoid warning despite dropping the return value of fwrite.
9251         * lib/unicodeio.c: Include ignore-value.h.
9252         (fwrite_success_callback): Explicitly ignore fwrite's return value.
9253         * modules/unicodeio (Depends-on): Add ignore-value.
9254
9255 2009-10-26  Eric Blake  <ebb9@byu.net>
9256
9257         areadlinkat: fix fallback path
9258         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
9259         pointer and zero.
9260
9261 2009-10-22  Pádraig Brady  <P@draigBrady.com>
9262
9263         Use a better IO block size for modern systems
9264         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
9265         * lib/md2.c: Likewise.
9266         * lib/md4.c: Likewise.
9267         * lib/md5.c: Likewise.
9268         * lib/sha1.c: Likewise.
9269         * lib/sha256.c: Likewise.
9270         * lib/sha512.c: Likewise.
9271
9272 2009-10-22  Eric Blake  <ebb9@byu.net>
9273
9274         tests: avoid several compiler warnings
9275         * tests/test-getcwd.c (main): Avoid buffer underflow.
9276         * tests/test-getdate.c (main): String literals are not safe with
9277         putenv, so use setenv.  Declare unused argument.
9278         * modules/getdate-tests (Depends-on): Add setenv.
9279         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
9280         problems with string literals in char *.
9281         * tests/test-hash.c (main): Avoid shadowing declaration.
9282         (insert_new): Treat string literals as char const *.
9283         * tests/test-getopt.h (test_getopt): Likewise.
9284         (getopt_loop): Alter types to minimize casting elsewhere.
9285         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
9286         (test_getopt_long_posix): Likewise.
9287         (do_getopt_long): Add wrapper to minimize casting.
9288         * tests/test-atexit.c (clear_temp_file): Use void.
9289         * tests/test-areadlink-with-size.c (main): Declare unused
9290         arguments.
9291         * tests/test-areadlink.c (main): Likewise.
9292         * tests/test-areadlinkat-with-size.c (main): Likewise.
9293         * tests/test-areadlinkat.c (main): Likewise.
9294         * tests/test-canonicalize-lgpl.c (main): Likewise.
9295         * tests/test-canonicalize.c (main): Likewise.
9296         * tests/test-dirent-safer.c (main): Likewise.
9297         * tests/test-dirname.c (main): Likewise.
9298         * tests/test-dup2.c (main): Likewise.
9299         * tests/test-fchdir.c (main): Likewise.
9300         * tests/test-fcntl-h.c (main): Likewise.
9301         * tests/test-fcntl-safer.c (main): Likewise.
9302         * tests/test-fdopendir.c (main): Likewise.
9303         * tests/test-fdutimensat.c (main): Likewise.
9304         * tests/test-fflush.c (main): Likewise.
9305         * tests/test-filenamecat.c (main): Likewise.
9306         * tests/test-filevercmp.c (main): Likewise.
9307         * tests/test-fopen-safer.c (main): Likewise.
9308         * tests/test-fopen.c (main): Likewise.
9309         * tests/test-fpending.c (main): Likewise.
9310         * tests/test-fpurge.c (main): Likewise.
9311         * tests/test-freading.c (main): Likewise.
9312         * tests/test-fstatat.c (main): Likewise.
9313         * tests/test-fsync.c (main): Likewise.
9314         * tests/test-futimens.c (main): Likewise.
9315         * tests/test-getndelim2.c (main): Likewise.
9316         * tests/test-gettimeofday.c (main): Likewise.
9317         * tests/test-getopt.c (main): Likewise.
9318         * tests/test-i-ring.c (main): Likewise.
9319         * tests/test-inttypes.c (main): Likewise.
9320         * tests/test-link.c (main): Likewise.
9321         * tests/test-lstat.c (main): Likewise.
9322         * tests/test-math.c (main): Likewise.
9323         * tests/test-md5.c (main): Likewise.
9324         * tests/test-memchr2.c (main): Likewise.
9325         * tests/test-memrchr.c (main): Likewise.
9326         * tests/test-mkdir.c (main): Likewise.
9327         * tests/test-mkdirat.c (main): Likewise.
9328         * tests/test-mkfifoat.c (main): Likewise.
9329         * tests/test-open.c (main): Likewise.
9330         * tests/test-openat-safer.c (main): Likewise.
9331         * tests/test-openat.c (main): Likewise.
9332         * tests/test-quotearg.c (main): Likewise.
9333         * tests/test-rawmemchr.c (main): Likewise.
9334         * tests/test-readlink.c (main): Likewise.
9335         * tests/test-remove.c (main): Likewise.
9336         * tests/test-rename.c (main): Likewise.
9337         * tests/test-renameat.c (main): Likewise.
9338         * tests/test-rmdir.c (main): Likewise.
9339         * tests/test-sha1.c (main): Likewise.
9340         * tests/test-signal.c (main): Likewise.
9341         * tests/test-sigaction.c (main): Likewise.
9342         * tests/test-stat.c (main): Likewise.
9343         * tests/test-stat-time.c (main): Likewise.
9344         * tests/test-stddef.c (main): Likewise.
9345         * tests/test-stdint.c (main): Likewise.
9346         * tests/test-stdio.c (main): Likewise.
9347         * tests/test-stdlib.c (main): Likewise.
9348         * tests/test-strchrnul.c (main): Likewise.
9349         * tests/test-strerror.c (main): Likewise.
9350         * tests/test-string.c (main): Likewise.
9351         * tests/test-strtod.c (main): Likewise.
9352         * tests/test-strverscmp.c (main): Likewise.
9353         * tests/test-symlink.c (main): Likewise.
9354         * tests/test-symlinkat.c (main): Likewise.
9355         * tests/test-sys_stat.c (main): Likewise.
9356         * tests/test-sys_time.c (main): Likewise.
9357         * tests/test-time.c (main): Likewise.
9358         * tests/test-unistd.c (main): Likewise.
9359         * tests/test-unlink.c (main): Likewise.
9360         * tests/test-unlinkat.c (main): Likewise.
9361         * tests/test-utimens.c (main): Likewise.
9362         * tests/test-utimensat.c (main): Likewise.
9363         * tests/test-version-etc.c (main): Likewise.
9364         * tests/test-wchar.c (main): Likewise.
9365         * tests/test-wctype.c (main): Likewise.
9366         * tests/test-xprintf-posix.c (main): Likewise.
9367         * tests/test-posixtm.c (main): Likewise.
9368         (STREQ): Delete unused macro.
9369         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
9370         shadowed variables.
9371         * tests/test-memchr.c (main): Likewise.
9372
9373 2009-10-21  Eric Blake  <ebb9@byu.net>
9374
9375         areadlinkat: avoid failure on older glibc
9376         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
9377         rather than mis-comparing 0 against FUNC_RESULT of char*.
9378
9379 2009-10-21  Bruno Haible  <bruno@clisp.org>
9380
9381         * modules/stpncpy (License): Relicense under LGPLv2+.
9382         Reported by David Lutterkort <lutter@redhat.com>.
9383
9384 2009-10-20  Eric Blake  <ebb9@byu.net>
9385
9386         utimensat: work around Solaris 9 bug
9387         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
9388         has trailing slash bugs.
9389         * tests/test-lutimens.h (test_lutimens): Enhance test.
9390         * tests/test-utimens.h (test_utimens): Likewise.
9391         * doc/posix-functions/utime.texi (utime): Enhance documentation.
9392         * doc/posix-functions/utimes.texi (utimes): Likewise.
9393         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9394         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
9395         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
9396         * doc/posix-functions/futimens.texi (futimens): Likewise.
9397
9398         fdutimensat: new module
9399         * modules/fdutimensat: New file.
9400         * lib/fdutimensat.c (fdutimensat): Likewise.
9401         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
9402         * MODULES.html.sh (File system functions): Mention module.
9403         * modules/fdutimensat-tests: New test.
9404         * tests/test-fdutimensat.c: Likewise.
9405
9406         doc: regenerate INSTALL
9407         * doc/INSTALL: Reflect recent autoconf update.
9408         * doc/INSTALL.ISO: Likewise.
9409         * doc/INSTALL.UTF-8: Likewise.
9410
9411 2009-10-20  Pádraig Brady  <P@draigBrady.com>
9412
9413         acl: warn if ACL support is not detected
9414         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
9415
9416 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
9417
9418         * lib/nproc.h: Add extern "C" block for C++.
9419
9420 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
9421             Bruno Haible  <bruno@clisp.org>
9422
9423         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
9424         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
9425         * doc/posix-functions/isalpha.texi: Likewise.
9426         * doc/posix-functions/isblank.texi: Likewise.
9427         * doc/posix-functions/iscntrl.texi: Likewise.
9428         * doc/posix-functions/isdigit.texi: Likewise.
9429         * doc/posix-functions/isgraph.texi: Likewise.
9430         * doc/posix-functions/islower.texi: Likewise.
9431         * doc/posix-functions/isprint.texi: Likewise.
9432         * doc/posix-functions/ispunct.texi: Likewise.
9433         * doc/posix-functions/isspace.texi: Likewise.
9434         * doc/posix-functions/isupper.texi: Likewise.
9435         * doc/posix-functions/isxdigit.texi: Likewise.
9436
9437 2009-10-18  Bruno Haible  <bruno@clisp.org>
9438
9439         Tests for module 'isblank'.
9440         * modules/isblank-tests: New file.
9441         * tests/test-isblank.c: New file.
9442
9443         New module 'isblank'.
9444         * lib/isblank.c: New file.
9445         * m4/isblank.m4: New file.
9446         * modules/isblank: New file.
9447         * doc/posix-functions/isblank.texi: Mention the new module.
9448
9449 2009-10-18  Bruno Haible  <bruno@clisp.org>
9450
9451         New module 'ctype'.
9452         * lib/ctype.in.h: New file.
9453         * m4/ctype.m4: New file.
9454         * modules/ctype: New file.
9455         * doc/posix-headers/ctype.texi: Mention the new module.
9456
9457 2009-10-18  Jim Meyering  <meyering@redhat.com>
9458
9459         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
9460         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
9461         right after its initialization, rather than farther down.
9462         Keeping these in close proximity makes it easier to ensure
9463         that each such variable is initialized.  E.g.,
9464
9465             LIB_CLOCK_GETTIME=
9466             AC_SUBST([LIB_CLOCK_GETTIME])
9467
9468         This change also increments these serial numbers.
9469         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
9470         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
9471         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9472
9473 2009-10-18  Bruno Haible  <bruno@clisp.org>
9474
9475         Don't let environment variables perturb build.
9476         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
9477         (gl_PREREQ_GETHRXTIME): ... not here.
9478
9479 2009-10-18  Bruno Haible  <bruno@clisp.org>
9480
9481         Avoid symlink attack in localcharset module.
9482         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
9483         (O_NOFOLLOW): Define fallback.
9484         (get_charset_aliases): Don't open the file if it is a symbolic link.
9485         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
9486         gl_FCNTL_H.
9487         (gl_FCNTL_H): Require it.
9488         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
9489         * modules/localcharset (Files): Add m4/fcntl_h.m4.
9490         Reported by Fergal Glynn <fglynn@veracode.com>.
9491
9492 2009-10-18  Bruno Haible  <bruno@clisp.org>
9493
9494         Implement nproc for mingw.
9495         * lib/nproc.c: Include <windows.h>
9496         (num_processors): On native Windows platforms, try GetSystemInfo.
9497
9498 2009-10-18  Bruno Haible  <bruno@clisp.org>
9499
9500         Implement nproc for IRIX.
9501         * lib/nproc.c: Include <sys/sysmp.h>.
9502         (num_processors): On IRIX systems, try sysmp.
9503         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
9504
9505 2009-10-18  Bruno Haible  <bruno@clisp.org>
9506
9507         Implement nproc for HP-UX.
9508         * lib/nproc.c: Include <sys/pstat.h>
9509         (num_processors): On HP-UX systems, try pstat_getdynamic.
9510         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
9511         pstat_getdynamic.
9512
9513 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
9514             Bruno Haible  <bruno@clisp.org>
9515
9516         Implement nproc for NetBSD, OpenBSD.
9517         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
9518         (ARRAY_SIZE): New macro.
9519         (num_processors): On BSD systems, try sysctl of HW_NCPU.
9520         * m4/nproc.m4: New file.
9521         * modules/nproc (Files): Add m4/nproc.m4.
9522         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
9523         (Makefile.am): Instead, augment lib_SOURCES.
9524
9525 2009-10-18  Bruno Haible  <bruno@clisp.org>
9526
9527         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
9528         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
9529         sys/param.h.
9530
9531 2009-10-16  Eric Blake  <ebb9@byu.net>
9532
9533         utimensat: new module
9534         * modules/utimensat: New file.
9535         * lib/utimensat.c (utimensat): Likewise.
9536         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9537         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
9538         so we can work around Linux bugs.
9539         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9540         * modules/sys_stat (Makefile.am): Substitute them.
9541         * lib/sys_stat.in.h (utimensat): Declare it.
9542         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9543         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9544         * modules/utimensat-tests: New test.
9545         * tests/test-utimensat.c: Likewise.
9546
9547         utimens: let lutimens work on non-symlinks
9548         * lib/utimens.c (lutimens): Fall back to utimens rather than
9549         failing with ENOSYS, when file is not a symlink.
9550         (utimens): Reduce redirection.
9551         * tests/test-lutimens.h (test_lutimens): Update test to cover
9552         non-symlinks.
9553         * tests/test-utimens.h (test_utimens): Update test to cover
9554         symlinks.
9555         * tests/test-utimens.c (main): Update caller.
9556
9557         utimens: cache whether utimensat syscall works
9558         * lib/utimens.c (utimensat_works_really): New cache variable.
9559         (fdutimens, lutimens): Use it to avoid failing syscall.
9560
9561         test-stat-time, test-utimens: improve portability
9562         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
9563         ext4 on alpha, and for cygwin.
9564         * tests/test-utimens-common.h: New file.
9565         (nap): Factor delays into single function.
9566         * tests/test-lutimens.h (test_lutimens): Use new header.
9567         * tests/test-futimens.h (test_futimens): Likewise.
9568         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
9569         timestamps to occur from same machine, as was done previously for
9570         test_utimens.
9571         * modules/utimens-tests (Files): Ship new file.
9572         * modules/futimens-tests (Files): Likewise.
9573         Reported in part by Jim Meyering.
9574
9575         sys_stat: sort replacement declarations
9576         * lib/sys_stat.in.h: Sort declarations.
9577         * lib/futimens.c (futimens): Fix typo.
9578
9579 2009-10-15  Jim Meyering  <meyering@redhat.com>
9580
9581         don't let environment settings perturb build
9582         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
9583         could cause a configure-time and/or build-time malfunction.
9584         Typically, a configure-time function-in-library test is performed
9585         via code like this:
9586
9587           LIB_VAR=
9588           AC_SUBST([LIB_VAR])
9589           prefix_saved_LIBS=$LIBS
9590             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
9591                        [test "$ac_cv_search_FUNC" = "none required" ||
9592                         LIB_VAR=$ac_cv_search_FUNC])
9593           LIBS=$prefix_saved_LIBS
9594
9595         However, in each of the files affected by this change, the LIB_VAR=
9596         initialization was omitted.  Thus, when set in the environment, its
9597         value would propagate into generated Makefiles when FUNC is not found
9598         in LIB_NAME.
9599         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
9600         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
9601         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9602
9603 2009-10-14  Eric Blake  <ebb9@byu.net>
9604
9605         fchdir: avoid infinite recursion in mingw
9606         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
9607         recursing.
9608
9609         test-stat-time: port to mingw
9610         * tests/test-stat-time.c (force_unlink): Return a value.
9611         (test_ctime) [W32]: Fix compilation error.
9612         (nap): Don't call usleep with too large an argument.  Use
9613         force_unlink.
9614         * doc/pastposix-functions/usleep.texi (usleep): Document the
9615         portability issue.
9616
9617 2009-10-13  Jim Meyering  <meyering@redhat.com>
9618
9619         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
9620         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
9621         * modules/pipe-filter-ii: Likewise.
9622         * modules/sys_socket-tests: Likewise.
9623         * modules/tsearch-tests: Likewise.
9624         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
9625         (check): Depend on it.
9626
9627 2009-10-12  Eric Blake  <ebb9@byu.net>
9628
9629         utimens-tests: port to NFS file systems
9630         * tests/test-utimens.h (test_utimens): Refactor utimecmp
9631         comparisons to avoid spurious failures from timestamp drift
9632         between NFS machines.
9633
9634 2009-10-12  Eric Blake  <ebb9@byu.net>
9635
9636         stat-time-tests: minor cleanups
9637         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
9638         * tests/test-stat-time.c (nap): Separate assignment from call.
9639         Suggested by Paolo Bonzini and Bruno Haible.
9640
9641         sys_stat: guarantee struct timespec
9642         * lib/sys_stat.in.h (includes): Always include <time.h>
9643         * modules/sys_stat (Depends-on): Add time.
9644         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
9645         mode_t permission values.
9646         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
9647         get at subsecond timestamps.
9648
9649 2009-10-10  Eric Blake  <ebb9@byu.net>
9650
9651         futimens: new module
9652         * modules/futimens: New file.
9653         * lib/futimens.c (futimens): Likewise.
9654         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
9655         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
9656         we can work around Linux bugs.
9657         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9658         * modules/sys_stat (Makefile.am): Substitute them.
9659         * lib/sys_stat.in.h (futimens): Declare it.
9660         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9661         * doc/posix-functions/futimens.texi (futimens): Likewise.
9662         * modules/futimens-tests: New test.
9663         * tests/test-futimens.c: Likewise.
9664
9665         utimens: introduce fdutimens
9666         * lib/utimens.h (fdutimens): New prototype.
9667         * lib/utimens.c (gl_futimens): Move guts...
9668         (fdutimens): ...to new interface.
9669         * tests/test-utimens.c (do_fdutimens): Use it.
9670
9671         utimens: add UTIME_NOW and UTIME_OMIT support
9672         * lib/utimens.c (validate_timespec, update_timespec): New helper
9673         functions.
9674         (gl_futimens, lutimens): Use them.
9675         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
9676         stdbool, sys_stat.
9677         (Link): Mention resulting library dependency.
9678         * modules/utimecmp (Link): Likewise.
9679         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
9680         (Makefile.am): Pick up library dependency.
9681         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
9682         definition.
9683         * tests/test-sys_stat.c: Test the definitions.
9684         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
9685         * NEWS: Document library dependency.
9686
9687         utimecmp: support symlink timestamps
9688         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
9689         hashing when possible.  Use pathconf when available.
9690         (SYSCALL_RESOLUTION): Recognize tighter resolution.
9691         * modules/utimecmp (Depends-on): Add lstat.
9692
9693         utimens: add lutimens interface
9694         * lib/utimens.c (lutimens): New function.
9695         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
9696         * lib/utimens.h (lutimens): Declare new interface.
9697         * tests/test-utimens.c (main): Enhance test.
9698         * tests/test-lutimens.h (test_lutimens): New file.
9699         * modules/utimens-tests (Files): Distribute it.
9700         (Depends-on): Add symlink.
9701         (configure.ac): Check for usleep.
9702
9703         utimens: validate futimens usage
9704         * lib/utimens.c (gl_futimens): Require valid fd up front, using
9705         fewer syscalls on failure later on.  Avoid compiler warning on
9706         mingw.
9707         * modules/utimens (Depends-on): Add dup2.
9708
9709         utimens: add test
9710         * modules/utimens-tests: New test.
9711         * tests/test-utimens.h: New file.
9712         * tests/test-futimens.h: Likewise.
9713         * tests/test-utimens.c: Likewise.
9714
9715         doc: mention timestamp portability issues
9716         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
9717         instead.
9718         * doc/posix-functions/utime.texi (utime): Likewise.
9719         * doc/posix-functions/utimes.texi (utimes): Likewise.
9720         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
9721         instead.
9722         * doc/posix-functions/futimens.texi (futimens): Mention utimens
9723         module.
9724         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9725         Mention weakness with symlink timestamps.
9726         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
9727         to utimensat/futimens instead.
9728         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
9729
9730         test-dup2: enhance test
9731         * tests/test-dup2.c (main): Also check AT_FDCWD.
9732
9733         test-stat-time: avoid more spurious failures
9734         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
9735         xfs; and avoid race if the two timestamps cross quantization edge.
9736
9737         relocatable: prefer 'file system' over 'filesystem'
9738         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
9739         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
9740         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
9741         * doc/relocatable.texi (Enabling Relocatability): Likewise.
9742         * lib/relocatable.c (compute_curr_prefix): Likewise.
9743
9744 2009-10-10  Jim Meyering  <meyering@redhat.com>
9745
9746         stat-time-tests: check for the usleep function
9747         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
9748
9749 2009-10-10  Bruno Haible  <bruno@clisp.org>
9750
9751         * modules/xnanosleep: Put the Link section after the Include section.
9752
9753 2009-10-09  Eric Blake  <ebb9@byu.net>
9754
9755         dup2: work around FreeBSD 6.1 bug
9756         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
9757         * doc/posix-functions/dup2.texi (dup2): Document it.
9758         Reported by Nelson H. F. Beebe and Jim Meyering.
9759
9760         test-stat-time: port to buggy NFS clients
9761         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
9762         (test_ctime): Also skip test if mtime and ctime are skewed.
9763
9764         maint: prefer 'file system' over 'filesystem'
9765         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
9766         * doc/posix-functions/lstat.texi (lstat): Likewise.
9767         * lib/file-has-acl.c (file_has_acl): Likewise.
9768         * lib/fwriteerror.c [TEST]: Likewise.
9769         * tests/test-areadlink.h (test_areadlink): Likewise.
9770         * tests/test-areadlinkat-with-size.c (main): Likewise.
9771         * tests/test-areadlinkat.c (main): Likewise.
9772         * tests/test-canonicalize-lgpl.c (main): Likewise.
9773         * tests/test-canonicalize.c (main): Likewise.
9774         * tests/test-fstatat.c (main): Likewise.
9775         * tests/test-linkat.c (main): Likewise.
9776         * tests/test-lstat.h (test_lstat_func): Likewise.
9777         * tests/test-mkdir.h (test_mkdir): Likewise.
9778         * tests/test-readlink.h (test_readlink): Likewise.
9779         * tests/test-remove.c (main): Likewise.
9780         * tests/test-rename.h (test_rename): Likewise.
9781         * tests/test-renameat.c (main): Likewise.
9782         * tests/test-rmdir.h (test_rmdir_func): Likewise.
9783         * tests/test-symlink.h (test_symlink): Likewise.
9784         * tests/test-symlinkat.c (main): Likewise.
9785         * tests/test-unlink.h (test_unlink_func): Likewise.
9786         * tests/test-unlinkat.c (main): Likewise.
9787
9788         maint: make realtime library usage explicit
9789         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
9790         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
9791         * modules/settime (Link): Likewise.
9792         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
9793
9794         test-stat-time: speed up execution
9795         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
9796         warning on mingw.
9797         (nap): New helper function.
9798         (prepare_test): Use it to reduce sleep time.
9799         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
9800         execution.
9801         * modules/stat-time-tests (configure.ac): Check for usleep.
9802
9803 2009-10-09  Jim Meyering  <meyering@redhat.com>
9804
9805         selinux-h: always use getfilecon wrappers
9806         * lib/getfilecon.c: New file.
9807         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
9808         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
9809         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
9810         (fgetfilecon): Provide a stub.
9811         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
9812         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
9813         file unconditionally.
9814         When <selinux/selinux.h> is found, arrange to use wrappers.
9815         * modules/selinux-h (Files): Add getfilecon.c.
9816         (Makefile.am): Substitute include-next-related bits
9817         into the now-always-generated selinux/selinux.h file.
9818         * doc/glibc-functions/lgetfilecon.texi: New file.
9819         * doc/glibc-functions/fgetfilecon.texi: New file.
9820         * doc/glibc-functions/getfilecon.texi: New file.
9821         * doc/glibc-functions/getfilecon-desc.texi: New file.
9822         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
9823         which to pull in the new files.
9824         * MODULES.html.sh (Misc): Add selinux-h.
9825
9826 2009-10-08  Jim Meyering  <meyering@redhat.com>
9827
9828         unistd: fix comment typo
9829         * lib/unistd.in.h (euidaccess): Fix a comment typo.
9830
9831 2009-10-08  Eric Blake  <ebb9@byu.net>
9832
9833         areadlink: use SIZE_MAX consistently
9834         * modules/areadlink (Depends-on): Add stdint.
9835         * modules/areadlink-with-size (Depends-on): Likewise.
9836         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
9837         gives NULL; drop sys/types, since unistd gives size_t; and add
9838         stdint for SIZE_MAX.
9839         (SIZE_MAX): Rely on headers.
9840         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
9841         and add stdint.
9842         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
9843         (SIZE_MAX): Likewise.
9844         (INITIAL_BUF_SIZE): Turn into enum.
9845         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
9846
9847 2009-10-08  Jim Meyering  <meyering@redhat.com>
9848
9849         areadlinkat: avoid compilation failure
9850         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
9851         Fix typo in comment.
9852
9853 2009-10-07  Eric Blake  <ebb9@byu.net>
9854
9855         areadlinkat-with-size: new module
9856         * modules/areadlinkat-with-size: New module.
9857         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
9858         * lib/areadlink.h (areadlinkat): Declare it.
9859         * MODULES.html.sh (File system functions): Mention it.
9860         * modules/areadlinkat-with-size-tests: New test.
9861         * tests/test-areadlinkat-with-size.c: New file.
9862
9863         xreadlinkat: new module
9864         * modules/xreadlinkat: New module.
9865         * lib/xreadlinkat.c (xreadlinkat): New file.
9866         * lib/xreadlink.h (xreadlinkat): Declare it.
9867         * MODULES.html.sh (File system functions): Mention it.
9868
9869         areadlinkat: new module
9870         * lib/at-func.c (FUNC_FAIL): New define.
9871         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
9872         * modules/areadlinkat: New module.
9873         * lib/linkat.c (areadlinkat): Move...
9874         * lib/areadlinkat.c (areadlinkat): ...to new file.
9875         * lib/areadlink.h (areadlinkat): Declare it.
9876         * modules/linkat (Depends-on): Add areadlinkat.
9877         * MODULES.html.sh (File system functions): Mention it.
9878         * modules/areadlinkat-tests: New test.
9879         * tests/test-areadlinkat.c: New file.
9880
9881         areadlink, areadlink-with-size: add tests
9882         * modules/areadlink-tests: New test.
9883         * modules/areadlink-with-size-tests: Likewise.
9884         * tests/test-areadlink.h: New file.
9885         * tests/test-areadlink.c: Likewise.
9886         * tests/test-areadlink-with-size.c: Likewise.
9887
9888         maint: minor cleanups
9889         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
9890         _UNUSED_PARAMETER_ instead.
9891         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
9892         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
9893         * modules/linkat-tests (Files): Distribute test-link.h.
9894
9895         openat, utimens: whitespace cleanup
9896         * lib/openat.c: Prefer space throughout, rather than mix of 8
9897         spaces vs. tabs.
9898         * lib/at-func.c: Likewise.
9899         * lib/utimens.c: Likewise.
9900
9901         openat: avoid using wrong fd
9902         * lib/openat.c (openat_permissive): Reject user's fd if saving the
9903         working directory chooses same fd.
9904         * lib/at-func.c (AT_FUNC_NAME): Likewise.
9905
9906         mkdir, mkdirat: fix cygwin 1.5.x bug
9907         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
9908         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
9909         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
9910         bug.
9911         (gl_PREREQ_MKDIR): Delete unused macro.
9912         * modules/mkdir (Files): Track file rename.
9913         (configure.ac): Update macro name.
9914         * modules/openat (Depends-on): Add mkdir.
9915         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
9916
9917         mkdir, mkdirat: add tests
9918         * modules/mkdir-tests: New test.
9919         * tests/test-mkdir.h: New file.
9920         * tests/test-mkdir.c: Likewise.
9921         * tests/test-mkdirat.c: Likewise.
9922         * modules/openat-tests (Files): Add new files.
9923         (Makefile.am): Run new test.
9924
9925 2009-10-06  Eric Blake  <ebb9@byu.net>
9926
9927         doc: tweak *at function documentation
9928         * doc/posix-functions/faccessat.texi (faccessat): Mention
9929         known issue with replacement.
9930         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
9931         * doc/posix-functions/linkat.texi (linkat): Likewise.
9932         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
9933         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
9934         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9935         * doc/posix-functions/renameat.texi (renameat): Likewise.
9936         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
9937
9938         openat: fix GNU/Hurd bug in unlinkat
9939         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
9940         broken.
9941         * doc/posix-functions/unlink.texi (unlink): Document this.
9942         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
9943
9944         fdopendir: fix GNU/Hurd bug
9945         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
9946         allowing non-directory fds.
9947         * lib/fdopendir.c (rpl_fdopendir): Work around it.
9948         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
9949         * modules/dirent (Makefile.am): Substitute it.
9950         * lib/dirent.in.h (fdopendir): Declare replacement.
9951         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
9952         * tests/test-fdopendir.c (main): Test something other than
9953         /dev/null, since on Hurd that behaves like a directory.
9954
9955         test-symlink: port to GNU/Hurd
9956         * tests/test-symlink.h (test_symlink): Relax expected errno.
9957
9958         doc: tweak more cygwin information
9959         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
9960         now compatible with glibc.
9961         * doc/posix-functions/getopt.texi (getopt): Likewise.
9962
9963         getopt-gnu: add another test
9964         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
9965         guarantee behavior relied on by m4.
9966         * tests/test-getopt.c (main): Use it.
9967         * modules/getopt-posix-tests (Depends-on): Add setenv.
9968         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
9969
9970         getopt: fix compilation on darwin
9971         * lib/getopt.in.h (includes): Leave breadcrumbs during system
9972         include.
9973         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
9974         Reported by Ludovic Courtès.
9975
9976 2009-10-06  Bruno Haible  <bruno@clisp.org>
9977
9978         * modules/size_max (Description): Discourage its use.
9979         Reported by Simon Josefsson.
9980
9981 2009-10-06  Jim Meyering  <meyering@redhat.com>
9982
9983         linkat: avoid compilation failure
9984         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
9985
9986 2009-10-05  Eric Blake  <ebb9@byu.net>
9987
9988         linkat: support Linux 2.6.17
9989         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
9990         linkat on Linux, but allow cache variable override.
9991         * lib/linkat.c (rpl_linkat): Define override.
9992         * modules/linkat (Depends-on): Add symlinkat.
9993         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
9994         * modules/unistd (Makefile.am): Substitute it.
9995         * lib/unistd.in.h (linkat): Declare replacement.
9996         Reported by Pádraig Brady.
9997
9998         quotearg: port test to systems with C.UTF-8 locale
9999         * tests/test-quotearg.c (struct result_strings): Add another
10000         member, differentiating between C.ASCII and C.UTF-8 handling.
10001         (compare_strings): Add parameter.
10002         (main): Adjust all callers.
10003
10004         getopt: avoid clash with FreeBSD _getopt_internal
10005         * lib/getopt.in.h (_getopt_internal): Override the name.
10006         * lib/getopt_int.h (includes): Pick up any overrides.
10007         Reported by Reuben Thomas.
10008
10009         hash: allow C89 compilation
10010         * lib/hash.c (check_tuning): Move declaration before statement.
10011         Reported by Reuben Thomas.
10012
10013 2009-10-05  Karl Berry  <karl@gnu.org>
10014
10015         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
10016
10017 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
10018             Bruno Haible  <bruno@clisp.org>
10019
10020         * lib/uname.c (uname): Use a table-driven algorithm to compute
10021         Windows NT versions.
10022
10023 2009-10-04  Bruno Haible  <bruno@clisp.org>
10024
10025         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
10026         program_invocation_short_name.
10027         * modules/progname (configure.ac): Test for presence of
10028         program_invocation_short_name.
10029         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
10030
10031 2009-10-04  Bruno Haible  <bruno@clisp.org>
10032
10033         * lib/progname.c (set_program_name): Fix comment.
10034         Reported by Jim Meyering.
10035
10036 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
10037             Bruno Haible  <bruno@clisp.org>
10038
10039         * lib/uname.c: Include <string.h>.
10040         (uname): Do only one call to GetVersionEx in the common case.
10041
10042 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
10043             Bruno Haible  <bruno@clisp.org>
10044
10045         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
10046         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
10047         (uname): Add support for Windows CE and various non-x86 CPU types.
10048
10049 2009-10-03  Bruno Haible  <bruno@clisp.org>
10050
10051         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
10052         invocation to tests/configure.ac.
10053         Reported by Ian Beckwith <ianb@erislabs.net>.
10054
10055 2009-10-02  Eric Blake  <ebb9@byu.net>
10056
10057         fchdir: avoid compiler warning
10058         * lib/fchdir.c (canonicalize_file_name)
10059         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
10060
10061         test-open: support mingw errno values
10062         * tests/test-open.h (test_open): Relax test.
10063         * tests/test-fopen.h (test_fopen): Likewise.
10064         * tests/test-openat-safer.c (main): Likewise.
10065
10066         open: fix opening directory on mingw
10067         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
10068
10069         test-open: on GNU/Hurd, /dev/null is a directory
10070         * tests/test-fopen.h (main): Rename...
10071         (test_fopen): ...to this.  Use a guaranteed non-directory when
10072         confirming open behavior on trailing slash.
10073         * tests/test-openat-safer.c (main): Likewise.
10074         * tests/test-open.h (main): Likewise....
10075         (test_open): ...to this.
10076         * tests/test-fopen.c (main): Adjust caller.
10077         * tests/test-fopen-safer.c (main): Likewise.
10078         * tests/test-open.c (main): Likewise.
10079         * tests/test-fcntl-safer.c (main): Likewise.
10080         Reported by Samuel Thibault.
10081
10082         rename, fchdir: don't ignore chdir failure
10083         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
10084         * lib/rename.c (rpl_rename) [W32]: Likewise.
10085         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
10086         an empty destination directory if source cannot be renamed,
10087         although there is still possibility for failure.
10088         * doc/posix-functions/rename.texi (rename): Document the race.
10089         Reported by Jim Meyering.
10090
10091         maint: cleanup whitespace in recent commits
10092         * lib/rename.c (rpl_rename): Remove tabs.
10093         * tests/test-link.h (test_link): Likewise.
10094         * lib/fchdir.c (get_name): Likewise.
10095         Reported by Jim Meyering.
10096
10097 2009-10-02  Ben Pfaff  <blp@gnu.org>
10098
10099         relocatable-prog-wrapper: Add missing dependency on
10100         double-slash-root.
10101         * modules/relocatable-prog-wrapper: Add dependency.
10102         Reported by Ian Beckwith <ianb@erislabs.net>.
10103
10104 2009-10-02  Eric Blake  <ebb9@byu.net>
10105
10106         renameat: fix Solaris bugs
10107         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
10108         needed fixing.
10109         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
10110         * modules/stdio (Makefile.am): Substitute it.
10111         * lib/stdio.in.h (renameat): Declare replacement.
10112         * lib/renameat.c (rpl_renameat): Implement fix.
10113
10114         renameat: new module
10115         * modules/renameat: New file.
10116         * lib/renameat.c (renameat): Likewise.
10117         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
10118         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
10119         * modules/stdio (Makefile.am): Substitute them.
10120         * lib/stdio.in.h (renameat): Declare it.
10121         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10122         * doc/posix-functions/renameat.texi (renameat): Likewise.
10123         * modules/renameat-tests: New test.
10124         * tests/test-renameat.c: Likewise.
10125
10126         rename: fix mingw bugs
10127         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
10128         directory overwrite bugs.
10129
10130         rename: fix another cygwin 1.5 bug
10131         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
10132         checks.
10133         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
10134         unnecessary cygwin workarounds.  Also work around bug with moving
10135         full directory onto an empty one.
10136         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
10137
10138         rename-dest-slash: merge into rename module
10139         * modules/rename-dest-slash (Status): Mark obsolete.
10140         (Depends-on): Add rename.
10141         (Files): Let rename do it all.
10142         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
10143         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
10144         * m4/rename-dest-slash.m4: ...so this file can be deleted.
10145         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
10146         * lib/rename.c (rpl_rename): Update comments.
10147
10148         rename: fix cygwin 1.5.x bugs
10149         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
10150         * lib/rename.c (rpl_rename): Work around them.
10151         * modules/rename (Depends-on): Add same-inode.
10152
10153         rename: fix Solaris 10 bug
10154         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
10155         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
10156         was the only bug.
10157
10158         rename: fix Solaris 9 bug
10159         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
10160         on non-directory.  Avoid calling exit.
10161         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
10162         strdup.
10163         * modules/rename-tests (Depends-on): Drop lstat.
10164         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
10165         (gl_PREREQ_RENAME): Delete unused macro.
10166
10167         rename-dest-slash: fix NetBSD bug
10168         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
10169         links.
10170         * modules/rename-dest-slash (Depends-on): Add same-inode.
10171
10172         rename-tests: new test, exposes several platform bugs
10173         * modules/rename-tests: New file.
10174         * tests/test-rename.h: Likewise.
10175         * tests/test-rename.c: Likewise.
10176         * doc/posix-functions/rename.texi (rename): Improve documentation,
10177         including bugs that will eventually be fixed in gnulib.
10178
10179 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
10180
10181         * lib/uname.c: Include <stdlib.h>
10182         (uname): Assume version info is available.
10183
10184 2009-10-02  Jim Meyering  <meyering@redhat.com>
10185
10186         gnu-web-doc-update: correct --help output
10187         * build-aux/gnu-web-doc-update: Make --help output relevant.
10188
10189         gnu-web-doc-update: add standard options
10190         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
10191
10192         gnu-web-doc-update: New module.
10193         Use this script to automatically update the on-line web documentation
10194         for your GNU project at http://www.gnu.org/software/$pkg/manual/
10195         * modules/gnu-web-doc-update: New file, from coreutils.
10196         * build-aux/gnu-web-doc-update: New script.
10197
10198 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
10199
10200         link: LoadLibrary is not needed.
10201         * lib/link.c: Use GetModuleHandle.
10202
10203 2009-10-01  Eric Blake  <ebb9@byu.net>
10204
10205         getopt: bump serial number
10206         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
10207         change.
10208
10209         tests: tighten link, rmdir, and remove tests
10210         * tests/test-link.h (includes): No need to use <config.h> here.
10211         Clean up if directory hard link was created, otherwise test for
10212         trailing '.'.
10213         * tests/test-linkat.c (main): Simplify.
10214         * tests/test-remove.c (main): Enhance test for trailing '.'.
10215         * tests/test-rmdir.h (test_rmdir_func): Likewise.
10216
10217 2009-10-01  Jim Meyering  <meyering@redhat.com>
10218
10219         maint.mk: requiring "make major" was annoying, for a "minor" release.
10220         What is intended is "stable", to contrast with alpha and beta,
10221         so require "make stable", not "make major".
10222         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
10223         (get_tool_versions): Likewise.
10224         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
10225
10226 2009-09-30  Ben Pfaff  <blp@gnu.org>
10227
10228         Fix broken build of replacement for Windows tmpfile().
10229         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
10230         flags argument added along with the 'mkostemp' module.
10231
10232 2009-09-28  Bruno Haible  <bruno@clisp.org>
10233
10234         Avoid identifier clash with POSIX function 'remove' defined as a macro.
10235         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
10236         to 'remove_elt'.
10237         (gl_list_remove): Update.
10238         * lib/gl_list.c (gl_list_remove): Update.
10239         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
10240         to 'remove_elt'.
10241         (gl_oset_remove): Update.
10242         * lib/gl_list.c (gl_oset_remove): Update.
10243         Reported by Eric Blake.
10244
10245 2009-09-28  Eric Blake  <ebb9@byu.net>
10246
10247         doc: mention yet more cygwin 1.7 status
10248         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
10249         cygwin.
10250         * doc/glibc-functions/execvpe.texi (execvpe): New file.
10251         * doc/gnulib.texi (Glibc unistd.h): Mention it.
10252
10253         argp: fix test failure
10254         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
10255         that are not upper-case.  Pass correct range to tolower.
10256
10257 2009-09-27  Jim Meyering  <meyering@redhat.com>
10258
10259         test-yesno: work around sparc-dash here-document infelicity
10260         Without this change, the literal \177 byte in a here document
10261         would make dash 0.5.5.1-3 access uninitialized memory.
10262         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
10263         Instead, use a marker, "@", and filter through tr to create the desired
10264         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
10265
10266 2009-09-27  Bruno Haible  <bruno@clisp.org>
10267
10268         Disable untested support for new flavours of ACLs on AIX.
10269         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
10270         progress.
10271         * lib/set-mode-acl.c (qset_acl): Likewise.
10272
10273 2008-12-07  Bruno Haible  <bruno@clisp.org>
10274
10275         Add support for new flavours of ACLs on AIX. (Untested.)
10276         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
10277         (file_has_acl): Add support for newer AIX.
10278         * lib/set-mode-acl.c (qset_acl): Likewise.
10279         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
10280         Rainer Tammer <tammer@tammer.net>.
10281
10282 2009-09-26  Eric Blake  <ebb9@byu.net>
10283
10284         argp: fix compilation of getopt
10285         * lib/getopt.in.h (includes): Use different guard than glibc.
10286         Reported by Sergey Poznyakoff.
10287
10288         doc: mention more cygwin 1.7 status
10289         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
10290         bug.
10291         * doc/posix-functions/execl.texi (execl): Likewise.
10292         * doc/posix-functions/execle.texi (execle): Likewise.
10293         * doc/posix-functions/execlp.texi (execlp): Likewise.
10294         * doc/posix-functions/execv.texi (execv): Likewise.
10295         * doc/posix-functions/execve.texi (execve): Likewise.
10296         * doc/posix-functions/execvp.texi (execvp): Likewise.
10297         * doc/glibc-functions/canonicalize_file_name.texi
10298         (canonicalize_file_name): Cygwin 1.7 now provides this.
10299         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
10300         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
10301         on AT_SYMLINK_NOFOLLOW.
10302
10303 2009-09-24  Eric Blake  <ebb9@byu.net>
10304
10305         test-linkat: make test more robust
10306         * tests/test-linkat.c (main): Avoid collision with EEXIST.
10307
10308         getopt: fix inclusion guards for cygwin
10309         * modules/getopt-posix (Depends-on): Add include-next.
10310         (Makefile.am): Substitute more items in replacement header.
10311         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
10312         <getopt.h>.
10313         * lib/getopt.in.h (includes): Use split inclusion guard, and
10314         prefer <getopt.h> over include <unistd.h> when one is present.
10315         (option): Also override name of 'struct option'.
10316
10317         same-inode: revert prior change; it is not yet ready
10318         * NEWS: Undo mention of this change.
10319         * lib/same-inode.h (same-inode.h): Undo tri-state change.
10320         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
10321         * lib/cycle-check.c (cycle_check): Likewise.
10322         * lib/same.c (same_name): Likewise.
10323         * lib/at-func2.c (at_func2): Likewise.
10324
10325 2009-09-23  Eric Blake  <ebb9@byu.net>
10326
10327         linkat: new module
10328         * modules/linkat: New file.
10329         * lib/at-func2.c (at_func2): Likewise.
10330         * lib/linkat.c (linkat): Likewise.
10331         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
10332         * lib/openat-priv.h (at_func2): Add declaration.
10333         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10334         * modules/unistd (Makefile.am): Substitute them.
10335         * lib/unistd.in.h (linkat): Declare it.
10336         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10337         * doc/posix-functions/linkat.texi (linkat): Likewise.
10338         * doc/posix-functions/link.texi (link): Tweak wording.
10339         * tests/test-link.c (main): Move guts...
10340         * tests/test-link.h (test_link): ...into new file.
10341         * modules/linkat-tests: New test.
10342         * tests/test-linkat.c: Likewise.
10343         * modules/link-tests (Files): Ship new file.
10344         (Depends-on): Add stdbool.
10345
10346         dirname: add library-safe mdir_name
10347         * lib/dirname.h (mdir_name): New prototype.
10348         * lib/dirname.c (dir_name): Move guts...
10349         (mdir_name): ...to new function that avoids xalloc_die.
10350
10351         fchdir: another mingw fix
10352         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
10353         * lib/fchdir.c (get_name): New helper method; skips canonicalize
10354         on mingw (where it has not yet been ported), and make it optional
10355         elsewhere.
10356         (_gl_register_fd): Use it.
10357
10358         same-inode: make SAME_INODE tri-state, to port to mingw
10359         * NEWS: Mention this change.
10360         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
10361         st_ino always being 0.
10362         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
10363         * lib/cycle-check.c (cycle_check): Likewise.
10364         * lib/same.c (same_name): Likewise.
10365
10366         lstat: avoid mingw compilation error
10367         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
10368         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
10369         lstat ourselves.
10370         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
10371         was adequate.
10372         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
10373         the checks for lstat.
10374         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
10375
10376         link: fix test failure on Solaris 9
10377         * lib/link.c (rpl_link): Don't assume link will catch bogus
10378         trailing slash on source.
10379
10380         test-symlinkat: enhance test
10381         * tests/test-readlink.c (main): Move guts...
10382         * tests/test-readlink.h (test_readlink): ...into new file.
10383         * tests/test-symlink.c (main): Move guts...
10384         * tests/test-symlink.h (test_symlink): ...into new file.
10385         * tests/test-symlinkat.c (main): Use new files for further
10386         coverage.
10387         (do_symlink, do_readlink): New helper functions.
10388         * modules/symlink-tests (Files): Ship new file.
10389         (Depends-on): Add stdbool.
10390         * modules/readlink-tests (Files): Ship new file.
10391         (Depends-on): Add stdbool.
10392         * modules/symlinkat-tests (Files): Use new files.
10393
10394 2009-09-23  Eric Blake  <ebb9@byu.net>
10395
10396         readlink: document portability issue with symlink length
10397         * doc/posix-functions/lstat.texi (lstat): Mention that some file
10398         systems have bogus st_size on symlinks, and mention the
10399         areadlink-with-size module.
10400         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
10401         * doc/posix-functions/readlink.texi (readlink): Mention the
10402         areadlink module, and ERANGE failure.
10403         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10404         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
10405
10406         readlink: fix Solaris 9 bug with trailing slash
10407         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
10408         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
10409         * doc/posix-functions/readlink.texi (readlink): Document this.
10410         * modules/readlink-tests: New test.
10411         * tests/test-readlink.c: Likewise.
10412
10413         readlink: fix cygwin 1.5.x bug with return type
10414         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
10415         * lib/unistd.in.h (readlink): Use ssize_t.
10416         * lib/readlink.c (readlink): Likewise.
10417         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10418         * modules/unistd (Makefile.am): Substitute it.
10419         * lib/unistd.in.h (readlink): Declare replacement.
10420         * doc/posix-functions/readlink.texi (readlink): Document this.
10421
10422         symlink: use throughout gnulib
10423         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
10424         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
10425         symlink is not used.
10426         * modules/symlinkat (Depends-on): Add symlink.
10427         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
10428         * modules/canonicalize-tests (Depends-on): Likewise.
10429         * modules/lstat-tests (Depends-on): Likewise.
10430         * modules/openat-tests (Depends-on): Likewise.
10431         * modules/remove-tests (Depends-on): Likewise.
10432         * modules/rmdir-tests (Depends-on): Likewise.
10433         * modules/unlink-tests (Depends-on): Likewise.
10434         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
10435         * tests/test-canonicalize.c (symlink): Likewise.
10436         * tests/test-fstatat.c (symlink): Likewise.
10437         * tests/test-lstat.c (symlink): Likewise.
10438         * tests/test-remove.c (symlink): Likewise.
10439         * tests/test-rmdir.c (symlink): Likewise.
10440         * tests/test-unlink.c (symlink): Likewise.
10441         * tests/test-unlinkat.c (symlink): Likewise.
10442
10443         symlink: new module, for Solaris 9 bug
10444         * modules/symlink: New file.
10445         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
10446         * lib/symlink.c: Likewise.
10447         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
10448         * modules/unistd (Makefile.am): Substitute them.
10449         * lib/unistd.in.h (symlink): Declare replacement.
10450         * MODULES.html.sh (File system functions): Mention it.
10451         * doc/posix-functions/symlink.texi (symlink): Likewise.
10452         * modules/symlink-tests: New test.
10453         * tests/test-symlink.c: Likewise.
10454
10455 2009-09-23  Bruno Haible  <bruno@clisp.org>
10456
10457         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
10458         when needed.
10459         Test case: gnulib-tool --import --with-tests atexit inttypes.
10460         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
10461
10462 2009-09-23  Bruno Haible  <bruno@clisp.org>
10463
10464         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
10465         subcommand, not in a subshell.
10466
10467 2009-09-22  Eric Blake  <ebb9@byu.net>
10468
10469         unistd: sort replacement declarations
10470         * lib/unistd.in.h: Sort declarations.
10471
10472         open, openat: minor optimization
10473         * lib/open.c (open): If open succeeded, len is non-zero.
10474         * lib/openat.c (rpl_openat): Likewise.
10475
10476         link-follow: ensure correct result
10477         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
10478         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
10479         distinguish between possible failures.
10480
10481 2009-09-21  Eric Blake  <ebb9@byu.net>
10482
10483         fts: avoid compiler warning
10484         * lib/fts.c (dirent_inode_sort_may_be_useful)
10485         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
10486
10487 2009-09-19  Bruno Haible  <bruno@clisp.org>
10488
10489         * lib/progreloc.c (canonicalize_file_name): New declaration.
10490
10491 2009-09-19  Eric Blake  <ebb9@byu.net>
10492
10493         link: fix quoting
10494         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
10495
10496         openat: fix openat bugs on Solaris 9
10497         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
10498         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
10499         * modules/openat (Depends-on): Add open.
10500         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
10501         * modules/fcntl-h (Makefile.am): Substitute it.
10502         * lib/fcntl.in.h (openat): Declare replacement.
10503         * doc/posix-functions/openat.texi (openat): Document this.
10504
10505         openat: move fstatat and unlinkat into correct files
10506         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
10507         compiled.
10508         * lib/openat.c (fstatat, unlinkat): Move...
10509         * lib/fstatat.c (fstatat): ...into correct files.
10510         * lib/unlinkat.c (unlinkat): Likewise.
10511
10512         openat: fix unlinkat bugs on Solaris 9
10513         * lib/unlinkat.c (unlinkat): New file.
10514         * modules/openat (Depends-on): Add unlink.
10515         (Files): Distribute it.
10516         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
10517         trailing slash behavior is broken.
10518         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10519         * modules/unistd (Makefile.am): Substitute it.
10520         * lib/unistd.in.h (unlinkat): Declare replacement.
10521         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
10522
10523         openat: fix fstatat bugs on Solaris 9
10524         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
10525         stat.
10526         * doc/posix-functions/fstatat.texi (fstatat): Document this.
10527
10528         test-unlinkat: enhance test, to expose Solaris 9 bug
10529         * tests/test-unlink.c (main): Factor guts...
10530         * tests/test-unlink.h (test_rmdir_func): ...into new file.
10531         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
10532         * tests/test-rmdir.c (main): Adjust caller.
10533         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
10534         (unlinker): New helper function.
10535         (rmdirat): Enhance check.
10536         * modules/rmdir-tests (Depends-on): Add stdbool.
10537         * modules/unlink-tests (Depends-on): Likewise.
10538         (Files): Add test-unlink.h.
10539         * modules/openat-tests (Files): Likewise.
10540         (Depends-on): Add unlinkdir.
10541
10542         test-fstatat: new test, to expose Solaris 9 bugs
10543         * tests/test-stat.c (main): Factor guts...
10544         * tests/test-stat.h (test_stat_func): ...into new file.
10545         * tests/test-lstat.c (main): Factor guts...
10546         * tests/test-lstat.h (test_lstat_func): ...into new file.
10547         * tests/test-fstatat.c: New file.
10548         * modules/stat-tests (Files): Add test-stat.h.
10549         * modules/lstat-tests (Files): Add test-lstat.h.
10550         (Depends-on): Add stdbool.
10551         * modules/openat-tests (Depends-on): Add pathmax.
10552         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
10553         (Makefile.am): Run new test.
10554
10555         remove: new module, for mingw and Solaris 9 bugs
10556         * modules/remove: New file.
10557         * lib/remove.c: Likewise.
10558         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
10559         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
10560         * modules/stdio (Makefile.am): Use them.
10561         * lib/stdio.in.h (remove): Declare replacement.
10562         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10563         * doc/posix-functions/remove.texi (remove): Likewise.
10564         * modules/remove-tests: New test.
10565         * tests/test-remove.c: Likewise.
10566
10567         unlink: new module, for Solaris 9 bug
10568         * modules/unlink: New file.
10569         * lib/unlink.c: Likewise.
10570         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10571         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10572         * modules/unistd (Makefile.am): Use them.
10573         * lib/unistd.in.h (stat): Declare replacement.
10574         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10575         * doc/posix-functions/unlink.texi (unlink): Likewise.
10576         * modules/unlink-tests: New test.
10577         * tests/test-unlink.c: Likewise.
10578
10579         lstat: fix Solaris 9 bug
10580         * lib/lstat.c (lstat): Also check for trailing slash on
10581         non-symlink, non-directories.  Use stat module to simplify logic.
10582         * doc/posix-functions/lstat.texi (lstat): Document it.
10583         * modules/lstat-tests (Depends-on): Add errno, same-inode.
10584         (configure.ac): Check for symlink.
10585         * tests/test-lstat.c (main): Add more tests.
10586
10587         stat: add as dependency to other modules
10588         * modules/chown (Depends-on): Add stat.
10589         * modules/euidaccess (Depends-on): Likewise.
10590         * modules/fchdir (Depends-on): Likewise.
10591         * modules/isdir (Depends-on): Likewise.
10592         * modules/link (Depends-on): Likewise.
10593         * modules/lstat (Depends-on): Likewise.
10594         * modules/mkdir-p (Depends-on): Likewise.
10595         * modules/modechange (Depends-on): Likewise.
10596         * modules/open (Depends-on): Likewise.
10597         * modules/readlink (Depends-on): Likewise.
10598         * modules/same (Depends-on): Likewise.
10599
10600         stat: fix Solaris 9 bug
10601         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
10602         slash.
10603         * lib/stat.c (rpl_stat): Work around it.
10604         * doc/posix-functions/stat.texi (stat): Update documentation.
10605
10606         stat: new module, for mingw bug
10607         * modules/stat: New file.
10608         * lib/stat.c: Likewise.
10609         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10610         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
10611         * modules/sys_stat (Makefile.am): Use them.
10612         * lib/sys_stat.in.h (stat): Declare replacement.
10613         * lib/openat.c (fstatat): Deal with lstat and stat being function
10614         macros.
10615         * modules/openat (Depends-on): Add inline.
10616         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10617         * doc/posix-functions/stat.texi (stat): Likewise.
10618         * modules/stat-tests: New test.
10619         * tests/test-stat.c: Likewise.
10620
10621 2009-09-19  Jim Meyering  <meyering@redhat.com>
10622
10623         syntax-check: detect unnecessary inclusion of canonicalize.h
10624         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
10625
10626 2009-09-19  Eric Blake  <ebb9@byu.net>
10627
10628         canonicalize-lgpl: adjust clients to use correct header
10629         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
10630         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
10631         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
10632         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
10633         * lib/progreloc.c (includes): Likewise.
10634
10635 2009-09-19  Jim Meyering  <meyering@redhat.com>
10636
10637         test-posixtm.c: correct a comment
10638         * tests/test-posixtm.c: Correct first-line comment.
10639         Spotted by Eric Blake.
10640
10641 2009-09-16  Jim Meyering  <meyering@redhat.com>
10642
10643         posixtm-tests: make T const-correct; add a test case
10644         * tests/test-posixtm.c (T): Declare const.
10645         Add a test for -(2^31+1).
10646         Remove useless can-succeed-only-in-2002 test.
10647
10648         posixtm-tests: adjust the sole failing test
10649         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
10650         expected output matches what mktime now produces.  Cross-checked via
10651         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
10652
10653         posixtm: move #ifdef'd tests into a new module
10654         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
10655         * tests/test-posixtm.c: ... this new file.
10656         * modules/posixtm-tests: New module.
10657
10658 2009-09-19  Eric Blake  <ebb9@byu.net>
10659
10660         openat: simplify use of at-func.c
10661         * lib/at-func.c (includes): Include prerequisites here, to
10662         simplify requirements on client files.
10663         * lib/openat-priv.h: Add double-inclusion guard.
10664         * lib/faccessat.c (includes): Simplify.
10665         * lib/fchmodat.c (includes): Likewise.
10666         * lib/fchownat.c (includes): Likewise.
10667         * lib/mkdirat.c (includes): Likewise.
10668         * lib/mkfifoat.c (includes): Likewise.
10669         * lib/symlinkat.c (includes): Likewise.
10670
10671         openat: allow return of fd 0
10672         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
10673         * modules/save-cwd (Depends-on): Replace fcntl-safer with
10674         unistd-safer.
10675         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
10676         <fcntl.h>; this module does not leak fds.
10677         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
10678         must be allowed to return 0, leaving openat_safer to add the
10679         safety.
10680         (openat_permissive): Avoid writing to just-opened fd 2 if
10681         restoring the current directory fails.
10682         * lib/openat-die.c (openat_restore_fail): Add comment.
10683         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
10684         (save_cwd): Guarantee safe fd, but without use of open_safer.
10685         * tests/test-openat.c: New test.
10686         * modules/openat-tests (Files, Makefile.am): Distribute and build
10687         new file.
10688
10689         relocatable-prog-wrapper: fix build
10690         * modules/relocatable-prog-wrapper (Files): Update name of
10691         canonicalize m4 file, broken on 2009-09-17.
10692         Reported by emad hajjar <aleppos@hotmail.com>.
10693
10694 2009-09-19  Bruno Haible  <bruno@clisp.org>
10695
10696         * lib/safe-alloc.h: Use the standard header with GPL copyright.
10697         * lib/safe-alloc.c: Likewise.
10698         Reported by Ian Beckwith <ianb@erislabs.net>.
10699
10700 2009-09-18  Bruno Haible  <bruno@clisp.org>
10701
10702         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
10703         Reported by <erobles@sensacd.com.mx>.
10704
10705 2009-09-17  Eric Blake  <ebb9@byu.net>
10706
10707         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
10708         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
10709         slashes when checking if last component is missing.
10710         * tests/test-canonicalize.c (main): Test this.
10711
10712         canonicalize, canonicalize-lgpl: honor // if distinct from /
10713         * modules/canonicalize (Files): Add double-slash-root.m4.
10714         * modules/canonicalize-lgpl (Files): Likewise.
10715         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
10716         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
10717         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
10718         fallback definition.
10719         (canonicalize_filename_mode): Use it to protect //.
10720         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
10721         (__realpath): Likewise.
10722         * tests/test-canonicalize.c (main): Test this.
10723         * tests/test-canonicalize-lgpl.c (main): Likewise.
10724         * modules/canonicalize-tests (Depends-on): Add same-inode.
10725         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
10726
10727         canonicalize-lgpl: fix glibc bug with trailing slash
10728         * m4/canonicalize-lgpl.m4: Move contents...
10729         * m4/canonicalize.m4: ...here.
10730         (gl_CANONICALIZE_LGPL): Factor realpath check...
10731         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
10732         glibc 2.3.5 bug, fixed 2005-04-27.
10733         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
10734         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
10735         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
10736         * modules/canonicalize-lgpl (Files): Manage file rename.
10737         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
10738         * modules/stdlib (Makefile.am): Substitute witness.
10739         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
10740         is needed.
10741         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
10742         replacement is required.
10743         * lib/canonicalize.c (canonicalize_file_name): Likewise.
10744         * doc/glibc-functions/canonicalize_file_name.texi
10745         (canonicalize_file_name): Document this.
10746         * doc/posix-functions/realpath.texi (realpath): Likewise.
10747
10748         canonicalize-lgpl: reject non-directory with trailing slash
10749         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
10750         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
10751         catches failures in glibc 2.3.5.
10752         * tests/test-canonicalize.c (main): Likewise.
10753
10754         canonicalize-lgpl: use native realpath if it works
10755         * lib/canonicalize-lgpl.c (realpath): Guard with
10756         FUNC_REALPATH_WORKS.
10757         * lib/stdlib.in.h (realpath): Make declaration optional based on
10758         HAVE_REALPATH.
10759         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
10760         native realpath works.
10761         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
10762         * modules/stdlib (Makefile.am): Substitute witness.
10763
10764         canonicalize, canonicalize-lgpl: use <stdlib.h>
10765         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
10766         (Include): Mention <stdlib.h>.
10767         (configure.ac): Mention functions we provide.
10768         * modules/canonicalize (configure.ac): Likewise.
10769         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
10770         realpath if canonicalize_file_name is missing.
10771         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
10772         * modules/stdlib (Makefile.am): Substitute witnesses.
10773         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
10774         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
10775         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
10776         * NEWS: Document this.
10777         * doc/glibc-functions/canonicalize_file_name.texi
10778         (canonicalize_file_name): Likewise.
10779         * doc/posix-functions/realpath.texi (realpath): Likewise.
10780         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
10781
10782         test-canonicalize: consolidate into single C program
10783         * tests/test-canonicalize.sh: Delete; move setup into...
10784         * tests/test-canonicalize.c (main): ...the program, making it
10785         easier to run in debugger.  Add some tests.
10786         * modules/canonicalize-tests (Files): Remove unused file.
10787         (Depends-on): Add progname.
10788         (configure.ac, Makefile.am): Simplify.
10789
10790         test-canonicalize-lgpl: consolidate into single C program
10791         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
10792         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
10793         easier to run in debugger.  Add some tests.
10794         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
10795         (configure.ac, Makefile.am): Simplify.
10796
10797         canonicalize: avoid resolvepath
10798         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
10799         unnecessary checks.
10800         * lib/canonicalize.c (includes): Simplify.
10801         (canonicalize_file_name): Drop resolvepath implementation.
10802         * modules/canonicalize (Depends-on): Drop filenamecat.
10803
10804         canonicalize: don't lose errno
10805         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
10806         over calls to free.
10807
10808         canonicalize: simplify errno handling
10809         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
10810         assignment.
10811
10812         canonicalize, canonicalize-lgpl: update module dependencies
10813         * modules/canonicalize (Depends-on): Add extensions, lstat,
10814         pathmax, stdlib.
10815         (Files): Drop pathmax.h.
10816         (configure.ac): Adjust macro name.
10817         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
10818         lstat, stdlib, sys_stat.
10819         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
10820         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
10821         extensions.
10822         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
10823         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
10824         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
10825         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
10826         declaration, if available.
10827         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
10828         we can rely on the readlink module.
10829         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
10830         (includes): Use <unistd.h> unconditionally.
10831
10832 2009-09-17  Eric Blake  <ebb9@byu.net>
10833
10834         maint: make Include sections of modules consistent
10835         * modules/alloca: Use only header name; no need to list #include.
10836         * modules/alloca-opt: Likewise.
10837         * modules/arpa_inet: Likewise.
10838         * modules/canon-host: Likewise.
10839         * modules/configmake: Likewise.
10840         * modules/dirent: Likewise.
10841         * modules/eealloc: Likewise.
10842         * modules/environ: Likewise.
10843         * modules/fchdir: Likewise.
10844         * modules/fcntl: Likewise.
10845         * modules/fcntl-h: Likewise.
10846         * modules/gethrxtime: Likewise.
10847         * modules/gettime: Likewise.
10848         * modules/ignore-value: Likewise.
10849         * modules/inet_ntop: Likewise.
10850         * modules/inet_pton: Likewise.
10851         * modules/inttypes: Likewise.
10852         * modules/isnand-nolibm: Likewise.
10853         * modules/isnanf-nolibm: Likewise.
10854         * modules/mbchar: Likewise.
10855         * modules/mbfile: Likewise.
10856         * modules/mbiter: Likewise.
10857         * modules/mbuiter: Likewise.
10858         * modules/netdb: Likewise.
10859         * modules/netinet_in: Likewise.
10860         * modules/nproc: Likewise.
10861         * modules/pagealign_alloc: Likewise.
10862         * modules/poll: Likewise.
10863         * modules/printf-frexp: Likewise.
10864         * modules/pthread: Likewise.
10865         * modules/putenv: Likewise.
10866         * modules/random_r: Likewise.
10867         * modules/relocatable-prog: Likewise.
10868         * modules/search: Likewise.
10869         * modules/select: Likewise.
10870         * modules/selinux-h: Likewise.
10871         * modules/settime: Likewise.
10872         * modules/signal: Likewise.
10873         * modules/size_max: Likewise.
10874         * modules/socklen: Likewise.
10875         * modules/ssize_t: Likewise.
10876         * modules/stdarg: Likewise.
10877         * modules/stdbool: Likewise.
10878         * modules/stddef: Likewise.
10879         * modules/stdint: Likewise.
10880         * modules/stdio: Likewise.
10881         * modules/stdlib: Likewise.
10882         * modules/string: Likewise.
10883         * modules/strings: Likewise.
10884         * modules/sys_file: Likewise.
10885         * modules/sys_ioctl: Likewise.
10886         * modules/sys_select: Likewise.
10887         * modules/sys_socket: Likewise.
10888         * modules/sys_stat: Likewise.
10889         * modules/sys_time: Likewise.
10890         * modules/sys_times: Likewise.
10891         * modules/sys_utsname: Likewise.
10892         * modules/sys_wait: Likewise.
10893         * modules/sysexits: Likewise.
10894         * modules/time: Likewise.
10895         * modules/times: Likewise.
10896         * modules/tmpfile: Likewise.
10897         * modules/trim: Likewise.
10898         * modules/unistd: Likewise.
10899         * modules/wchar: Likewise.
10900         * modules/wctype: Likewise.
10901
10902 2009-09-17  Bruno Haible  <bruno@clisp.org>
10903
10904         Make getdate.y compile on QNX and NetBSD 5 / i386.
10905         * m4/getdate.m4 (gl_GETDATE): Conditionally define
10906         TIME_T_FITS_IN_LONG_INT.
10907         * lib/getdate.y (long_time_t): New type.
10908         (relative_time): Change type of 'seconds' field to long_time_t.
10909         (get_date): Update types of local variables. Check against overflow
10910         during conversion from long_time_t to time_t.
10911         Reported by Matt Kraai <kraai@ftbfs.org>
10912         and Hasso Tepper <hasso@netbsd.org>.
10913
10914 2009-09-17  Bruno Haible  <bruno@clisp.org>
10915
10916         * modules/COPYING: Update copyright years.
10917         * modules/README: Likeiwse.
10918         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
10919         Reported by Ian Beckwith <ianb@erislabs.net>.
10920
10921 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
10922
10923         * users.txt: Update references for gnuit package.
10924
10925 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
10926
10927         * m4/getdelim.m4: Fix typo in copyright line.
10928
10929 2009-09-17  Bruno Haible  <bruno@clisp.org>
10930
10931         * lib/atoll.c: Use the standard header with GPL copyright.
10932         * lib/argz.in.h: Likewise.
10933         * lib/glob.c: Likewise.
10934         * lib/glob-libc.h: Likewise.
10935         * lib/random_r.c: Likewise.
10936         * lib/siglist.h: Likewise.
10937         * lib/strsignal.c: Likewise.
10938         Reported by Ian Beckwith <ianb@erislabs.net>.
10939
10940 2009-09-17  Eric Blake  <ebb9@byu.net>
10941
10942         rmdir: ensure correct dependency order
10943         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
10944
10945 2009-09-17  Bruno Haible  <bruno@clisp.org>
10946
10947         Disable assertion that fails on NetBSD 5 / i386.
10948         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
10949         Reported by Sam Steingold <sds@gnu.org>
10950         and Hasso Tepper <hasso@netbsd.org>.
10951
10952 2009-09-16  Eric Blake  <ebb9@byu.net>
10953
10954         unlinkdir: port to mingw
10955         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
10956         on which no one can unlink a directory.
10957
10958         stdlib: sort witness names
10959         * modules/stdlib (Makefile.am): Sort replacements.
10960         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
10961         * lib/stdlib.in.h: Likewise.
10962
10963         parse-duration-tests: avoid link failure
10964         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
10965         LIBINTL.
10966         Reported by Tom G. Christensen.
10967
10968         openat-tests: ensure unlinkat behaves like rmdir
10969         * tests/test-rmdir.c (main): Factor guts...
10970         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
10971         * modules/rmdir-tests (Files): Ship new file.
10972         * modules/openat-tests: New test.
10973         * tests/test-unlinkat.c: Likewise.
10974
10975         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
10976         * modules/rmdir-errno (Status, Notice): Now obsolete.
10977
10978         rmdir: work around cygwin 1.5.x and mingw bugs
10979         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
10980         * lib/rmdir.c (rmdir): Work around it.
10981         * modules/rmdir (Status, Notice): No longer obsolete.
10982         (Files): Add dos.m4.
10983         (Depends-on): Add unistd.
10984         (configure.ac): Set witnesses.
10985         (License): Relax to LGPLv2+.
10986         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
10987         * modules/unistd (Makefile.am): Substitute witnesses.
10988         * lib/unistd.in.h (rmdir): Declare replacement.
10989         * doc/posix-functions/rmdir.texi (rmdir): Document this.
10990         * modules/rmdir-tests: New tests.
10991         * tests/test-rmdir.c: Likewise.
10992
10993 2009-09-15  Eric Blake  <ebb9@byu.net>
10994
10995         fchdir: improve use of replacement functions
10996         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
10997         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
10998         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
10999         REPLACE_CLOSEDIR.
11000         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
11001         * modules/sys_stat (Makefile.am): Substitute correct witness.
11002         * modules/dirent (Makefile.am): Likewise.
11003         * modules/unistd (Makefile.am): Likewise.
11004         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
11005         * lib/unistd.in.h (dup): Likewise.
11006         * lib/sys_stat.in.h (fstat): Likewise.
11007
11008         maint: ignore gnulib-tool temp files
11009         * .gitignore: Ignore files created during gnulib-tool --test.
11010
11011 2009-09-13  Jim Meyering  <meyering@redhat.com>
11012
11013         posixtm: don't reject a time that specify "60" as the number of seconds
11014         * lib/posixtm.c (posixtime): The code to reject invalid dates
11015         would also reject a time specified with the .60 suffix.
11016         But POSIX allows that, in order to accommodate leap seconds.
11017         So don't reject it.
11018         (main): Adjust tests accordingly.
11019         * modules/posixtm (Depends-on): Add stpcpy.
11020
11021 2009-09-11  Jim Meyering  <meyering@redhat.com>
11022
11023         announce-gen: include [$release_type] in emitted Subject:
11024         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
11025         e.g., [stable] in the emitted Subject: line.
11026
11027 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11028
11029         Remove obsolete macros from several modules.
11030         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
11031         obsolete Autoconf macros with their modern counterparts.
11032         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
11033         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
11034         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
11035         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
11036         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
11037         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11038         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
11039         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
11040         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
11041         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
11042         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11043         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11044         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
11045         * m4/sockets.m4 (gl_SOCKETS): Likewise.
11046         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
11047         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
11048         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
11049         * m4/time_r.m4 (gl_TIME_R): Likewise.
11050         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
11051         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
11052         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
11053
11054         Fix copyright header in build-aux scripts.
11055         * build-aux/git-version-gen: Fix copyright header to match GPLv3
11056         recommendation.
11057         * build-aux/ncftpput-ftp: Likewise.
11058         * build-aux/update-copyright: Likewise.
11059
11060 2009-09-09  Eric Blake  <ebb9@byu.net>
11061
11062         test-link: allow Linux choice of errno
11063         * tests/test-link.c (main): Relax test for alternate error.
11064
11065         strndup: fix improper m4 caching
11066         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
11067         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
11068         (gl_PREREQ_STRNDUP): Delete.
11069         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
11070         * modules/string (Makefile.am): Substitute it.
11071         * lib/string.in.h (strndup): Modernize prototype.
11072
11073         getcwd: port to mingw
11074         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
11075         different from the POSIX assumptions made throughout the getcwd
11076         module; fortunately, the mingw getcwd does not need replacement.
11077         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
11078         * modules/getcwd-tests: New test.
11079         * tests/test-getcwd.c: Likewise.
11080
11081         link: fix platform bugs
11082         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
11083         * lib/link.c (link): Work around them.  Fix related mingw bug.
11084         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
11085         * modules/unistd (Makefile.am): Substitute it.
11086         * lib/unistd.in.h (link): Declare replacement.
11087         * doc/posix-functions/link.texi (link): Document this.
11088         * modules/link (Depends-on): Add strdup-posix, sys_stat.
11089
11090         test-link: consolidate into single C program, test more cases
11091         * tests/test-link.sh: Delete.
11092         * tests/test-link.c: Test more error conditions.  Exposes bugs on
11093         at least Cygwin and Solaris.
11094         * modules/link-tests (Files): Remove unused file.
11095         (Depends-on): Add errno, sys_stat.
11096         (Makefile.am): Simplify.
11097
11098 2009-09-08  Bruno Haible  <bruno@clisp.org>
11099
11100         Work around towlower, towupper bug on mingw.
11101         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
11102         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
11103         * doc/posix-functions/towlower.texi: Mention the mingw bug.
11104         * doc/posix-functions/towupper.texi: Likewise.
11105         Reported by Eric Blake.
11106
11107 2009-09-08  Jim Meyering  <meyering@redhat.com>
11108
11109         build: don't try to run autoheader if we don't use it
11110         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
11111         is not used in configure.ac.
11112
11113 2009-09-08  Eric Blake  <ebb9@byu.net>
11114
11115         euidaccess: fix compilation error
11116         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
11117
11118         rawmemchr: relax license
11119         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
11120         okay.
11121         Reported by Jim Meyering.
11122
11123         mkfifoat: new module
11124         * modules/mkfifoat: New file.
11125         * lib/mkfifoat.c: Likewise.
11126         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
11127         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
11128         * modules/sys_stat (Makefile.am): Use them.
11129         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
11130         * MODULES.html.sh (File system functions): Mention module.
11131         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
11132         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
11133         * modules/mkfifoat-tests: New test.
11134         * tests/test-mkfifoat.c: Likewise.
11135
11136         strchrnul: relax license
11137         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
11138         okay.
11139         Reported by Jim Meyering.
11140
11141 2009-09-08  Eric Blake  <ebb9@byu.net>
11142
11143         fstatat: fix compilation on Solaris
11144         * lib/fstatat.c (includes): Add fcntl.h.
11145         Reported by Pádraig Brady.
11146
11147 2009-09-07  Eric Blake  <ebb9@byu.net>
11148
11149         rename: modernize replacement
11150         * modules/rename (Depends-on): Add stdio.
11151         (configure.ac): Declare witness.
11152         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
11153         stdio take care of replacement.
11154         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
11155         * modules/stdio (Makefile.am): Substitute them.
11156         * lib/stdio.in.h (rename): Declare replacement.
11157         * lib/rename.c (includes): Allow cross-compilation to non-windows
11158         machines.
11159         * doc/posix-functions/rename.texi (rename): Improve
11160         documentation.
11161
11162         stdio: sort witness names
11163         * modules/stdio (Makefile.am): Sort replacements.
11164         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
11165         * lib/stdio.in.h: Likewise.
11166
11167         getcwd: minor cleanups
11168         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
11169         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
11170
11171         openat: provide more convenience names
11172         * modules/faccessat (configure.ac): Add C witness.
11173         * lib/unistd.in.h (readlinkat): Fix typo.
11174         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
11175         convenience wrappers.
11176         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
11177         wrappers in syntax checks.
11178
11179 2009-09-06  Eric Blake  <ebb9@byu.net>
11180
11181         doc: fix comments in recent patches
11182         * lib/faccessat.c: Mention correct function.
11183         * lib/fchmodat.c: Likewise.
11184         * lib/fchownat.c: Likewise.
11185         * lib/symlinkat.c: Likewise.
11186         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
11187         constants.
11188
11189         faccessat, symlinkat: continue cleanup of previous patch
11190         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
11191         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
11192         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
11193         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
11194         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
11195         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
11196         set.
11197
11198 2009-09-06  Bruno Haible  <bruno@clisp.org>
11199
11200         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
11201         (fstatat): Declare if GNULIB_FSTATAT is set.
11202         (mkdirat): Declare if GNULIB_MKDIRAT is set.
11203         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
11204         (unlinkat): Declare if GNULIB_UNLINKAT is set.
11205         * modules/fcntl-h (Files): Remove m4/openat.m4.
11206         * modules/sys_stat (Files): Remove m4/openat.m4.
11207         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
11208         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
11209         * modules/unistd (Files): Remove m4/openat.m4.
11210         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
11211         GNULIB_OPENAT.
11212         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
11213         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
11214         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
11215         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
11216         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
11217         gl_OPENAT_DEFAULTS.
11218         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
11219         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
11220         Don't require gl_OPENAT_DEFAULTS.
11221         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
11222         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
11223         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
11224         (gl_OPENAT_DEFAULTS): Remove macro.
11225
11226 2009-09-06  Bruno Haible  <bruno@clisp.org>
11227
11228         * modules/openat (configure.ac): Remove unneeded witness.
11229
11230 2009-09-06  Bruno Haible  <bruno@clisp.org>
11231
11232         Set errno to ENOSYS when a function is entirely unsupported.
11233         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
11234         EOPNOTSUPP.
11235         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
11236         * modules/chown (Depends-on): Remove errno.
11237
11238 2009-09-06  Bruno Haible  <bruno@clisp.org>
11239
11240         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
11241
11242 2009-09-06  Bruno Haible  <bruno@clisp.org>
11243
11244         * lib/sys_stat.in.h: Fix preprocessor command indentation.
11245
11246 2009-09-06  Ben Pfaff  <blp@gnu.org>
11247             Bruno Haible  <bruno@clisp.org>
11248
11249         Work around a glibc bug in strtok_r.
11250         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
11251         Undefine if UNDEFINE_STRTOK_R is set.
11252         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
11253         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
11254         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
11255         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
11256         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
11257         UNDEFINE_STRTOK_R.
11258         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
11259
11260 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
11261
11262         exclude: minor fix
11263         * lib/exclude.c: Include wctype.h
11264
11265 2009-09-06  Akim Demaille  <demaille@gostai.com>
11266
11267         bootstrap: improve error message
11268         * build-aux/bootstrap (find_tool): Upon failure, report the list
11269         of candidates.
11270         Honor the initial value of the envvar.
11271
11272 2009-09-05  Eric Blake  <ebb9@byu.net>
11273
11274         symlinkat: new module
11275         * modules/symlinkat: New file.
11276         * lib/symlinkat.c: Likewise.
11277         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
11278         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
11279         * modules/unistd (Makefile.am): Use them.
11280         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
11281         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
11282         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
11283         * MODULES.html.sh (File system functions): Mention module.
11284         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
11285         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
11286         * modules/symlinkat-tests: New test.
11287         * tests/test-symlinkat.c: Likewise.
11288
11289         test-openat-safer: add more checks
11290         * tests/test-openat-safer.c (main): Check more code paths.
11291
11292 2009-09-05  Jim Meyering  <meyering@redhat.com>
11293
11294         syntax-check: detect unnecessary inclusion of openat.h
11295         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
11296
11297 2009-09-05  Bruno Haible  <bruno@clisp.org>
11298
11299         Support towlower, towupper.
11300         * doc/posix-functions/towlower.texi: Mention module wctype.
11301         * doc/posix-functions/towupper.texi: Likewise.
11302         * lib/wctype.in.h (towlower, towupper): New functions.
11303         * tests/test-wctype.c: Include stdio.h, stdlib.h.
11304         (ASSERT): New macro.
11305         (e): New variable.
11306         (main): Test also towlower, towupper. Test WEOF argument.
11307         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
11308
11309 2009-09-05  Bruno Haible  <bruno@clisp.org>
11310
11311         Fix conversion behaviour when the input is invalid.
11312         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
11313         mark occurring in first pass of indirect conversion.
11314         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
11315         input.
11316         Found by clang's static analyzer.
11317
11318 2009-09-05  Bruno Haible  <bruno@clisp.org>
11319
11320         * tests/test-striconveh.c (main): Test indirect conversion on platforms
11321         where direct conversion is possible.
11322
11323 2009-09-04  Eric Blake  <ebb9@byu.net>
11324
11325         openat: fail with ENOENT on empty name
11326         * lib/openat-proc.c (openat_proc_name): Special-case the empty
11327         buffer.
11328
11329         link-follow: fix logic bug in prior patch
11330         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
11331         reversed sense of yes and no in prior patch.  Avoid confusing
11332         compilation failure with desired semantics.
11333
11334         link-follow: accomodate mingw and cross-compilation
11335         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
11336         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
11337         cross-compilation results to -1, to make linkat easier to
11338         implement when cross-compiling.  Trivially support mingw.
11339         * modules/link-follow (configure.ac): Call new name.
11340         * NEWS: Mention this.
11341
11342 2009-09-03  Eric Blake  <ebb9@byu.net>
11343
11344         faccessat: compile replacement
11345         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
11346         needed.
11347
11348         fts: fix compilation error
11349         * lib/fts.c (includes): Re-add "openat.h", for
11350         openat_needs_fchdir.
11351
11352         faccessat: new module
11353         * modules/faccessat: New file.
11354         * lib/faccessat.c: Likewise.
11355         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
11356         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11357         * modules/unistd (Makefile.am): Use it.
11358         * lib/unistd.in.h (faccessat): Declare it.
11359         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
11360         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
11361         * MODULES.html.sh (File system functions): Mention it.
11362         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
11363         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
11364
11365         euidaccess: prefer POSIX over non-standard implementation
11366         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
11367         * lib/euidaccess.c (euidaccess): Use it if available.
11368
11369         openat: make template easier to use
11370         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
11371         AT_FUNC_F2 to be undefined.
11372         (VALIDATE_FLAG): New macro; use it to reject bad flags.
11373         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
11374         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
11375         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
11376         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
11377         Likewise.
11378         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
11379         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
11380         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
11381         Likewise.
11382
11383         openat: declare in POSIX headers
11384         * NEWS: Mention this.
11385         * modules/openat (configure.ac): Declare witnesses.
11386         (Depends-on): Add fcntl-h, sys_stat, unistd.
11387         (Include): Mention correct headers.
11388         * modules/fcntl-h (Depends-on): Add link-warning.
11389         (Files): Add openat.m4.
11390         (Makefile.am): Substitute witnesses.
11391         * modules/sys_stat (Files, Makefile.am): Likewise.
11392         * modules/unistd (Files, Makefile.am): Likewise.
11393         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
11394         (gl_OPENAT_DEFAULTS): New macro.
11395         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
11396         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
11397         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
11398         (SYS_STAT_H): Remove unused variable.
11399         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
11400         * lib/fcntl--.h (includes): Remove unneeded header.
11401         * lib/openat-safer.c (includes): Likewise.
11402         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
11403         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
11404         appropriate headers.
11405         (__OPENAT_PREFIX): Delete.
11406         * lib/fcntl.in.h (openat): Provide declaration.
11407         (AT_FDCWD): Fix Solaris bug.
11408         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
11409         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
11410         * lib/fchmodat.c (includes):  Adjust to find declaration.
11411         * lib/fchownat.c (includes): Likewise.
11412         * lib/mkdirat.c (includes): Likewise.
11413         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
11414         still visible.
11415
11416 2009-09-02  Eric Blake  <ebb9@byu.net>
11417
11418         errno: use consistently
11419         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
11420         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
11421         * lib/canonicalize.c (ELOOP): Likewise.
11422         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
11423         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
11424         * lib/lchown.c (EOPNOTSUPP): Likewise.
11425         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
11426         * lib/savewd.c (ESTALE): Likewise.
11427         * lib/settime.c (ENOSYS): Likewise.
11428         * lib/utimens.c (ENOSYS): Likewise.
11429         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
11430         * lib/chdir-safer.c (ELOOP): Likewise.
11431         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
11432         * modules/c-stack (Depends-on): Add errno.
11433         * modules/canonicalize (Depends-on): Likewise.
11434         * modules/chdir-safer (Depends-on): Likewise.
11435         * modules/fdopendir (Depends-on): Likewise.
11436         * modules/inet_ntop (Depends-on): Likewise.
11437         * modules/inet_pton (Depends-on): Likewise.
11438         * modules/lchown (Depends-on): Likewise.
11439         * modules/openat (Depends-on): Likewise.
11440         * modules/savewd (Depends-on): Likewise.
11441         * modules/settime (Depends-on): Likewise.
11442         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
11443
11444         fts: avoid leaking fds
11445         * modules/fts (Depends-on): Add cloexec.
11446         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
11447         flag.
11448
11449         fts: make directory fds more robust
11450         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
11451         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
11452
11453         backupfile, chdir-long, fts, savedir: make safer
11454         * lib/backupfile.c (includes): Use "dirent--.h", since
11455         numbered_backup can write to stderr during readdir.
11456         * lib/savedir.c (includes): Likewise.
11457         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
11458         emulation can write to stderr on failure.
11459         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
11460         * lib/getcwd.c: Document why opendir_safer is unused.
11461         * lib/glob.c: Likewise.
11462         * lib/scandir.c: Likewise.
11463         * lib/openat-proc.c: Likewise, for open_safer.
11464         * modules/backupfile (Depends-on): Add dirent-safer.
11465         * modules/savedir (Depends-on): Likewise.
11466         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
11467         * modules/chdir-long (Depends-on): Add openat-safer.
11468
11469         openat-safer: new module
11470         * modules/openat-safer: New file.
11471         * lib/openat-safer.c: Likewise.
11472         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
11473         * lib/fcntl-safer.h (openat_safer): Declare.
11474         * lib/fcntl--.h (openat): Override.
11475         * MODULES.html.sh (File descriptor based I/O): Mention it.
11476         * lib/openat.h: Add double-inclusion guards.
11477         * lib/openat.c (includes): Only include "fcntl-safer.h", not
11478         "fcntl--.h", so we can implement openat.
11479         * modules/openat-safer-tests: New test.
11480         * tests/test-openat-safer.c: New file.
11481
11482         dirent-safer: new module
11483         * modules/dirent-safer: New file.
11484         * lib/dirent--.h: Likewise.
11485         * lib/dirent-safer.h: Likewise.
11486         * lib/opendir-safer.c: Likewise.
11487         * m4/dirent-safer.m4: Likewise.
11488         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
11489         * modules/dirent-safer-tests: New test.
11490         * tests/test-dirent-safer.c: New file.
11491         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
11492
11493         fdopendir: optimize on mingw
11494         * lib/unistd.in.h (_gl_directory_name): New prototype.
11495         * lib/fchdir.c (_gl_directory_name): Implement it.
11496         (fchdir): Use it to simplify implementation.
11497         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
11498         fchdir, when available, to avoid calling [f]chdir().
11499
11500         fdopendir: split into its own module
11501         * lib/openat.c (fdopendir): Move...
11502         * lib/fdopendir.c: ...into new file.
11503         * modules/fdopendir: New module.
11504         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
11505         * modules/openat (Depends-on): Add fdopendir.
11506         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
11507         fdopendir here.
11508         * modules/savedir (Depends-on): Only need fdopendir, not full
11509         openat.
11510         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
11511         * lib/openat.h (fdopendir): Drop prototype.
11512         * lib/dirent.in.h (fdopendir): Provide prototype.
11513         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
11514         * modules/dirent (Makefile.am): Substitute them.
11515         * MODULES.html.sh (File system functions): Mention it.
11516         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
11517         * modules/fdopendir-tests: New file.
11518         * tests/test-fdopendir.c: Likewise.
11519
11520         fchdir: use more consistent macro convention
11521         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
11522         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
11523         REPLACE_FCHDIR, rather than relying on config.h macros.
11524         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
11525         inside a single make-time REPLACE_FCHDIR block, rather than using
11526         the config.h FCHDIR_REPLACEMENT.
11527         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
11528         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
11529         Manage fstat replacement.
11530         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
11531         REPLACE_FCHDIR.
11532         * modules/sys_stat (Files): Add m4/unistd_h.m4.
11533         (Makefile.am): Substitute REPLACE_FCHDIR.
11534         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
11535         FCHDIR_REPLACEMENT.
11536         * lib/dup-safer.c (dup_safer): Likewise.
11537         * lib/dup2.c (rpl_dup2): Likewise.
11538         * lib/dup3.c (rpl_dup3): Likewise.
11539         * lib/open.c (rpl_open): Likewise.
11540
11541         fchdir: simplify error handling, and support dup3
11542         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
11543         stdbool, malloc-posix, realloc-posix.
11544         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
11545         (ensure_dirs_slot): Return false on allocation failure.
11546         (rpl_dup2): Delete.
11547         (_gl_register_dup): New function.
11548         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
11549         (_gl_register_fd): Close fd on allocation failure.
11550         * lib/fcntl.in.h (_gl_register_fd): Update signature.
11551         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
11552         prototype.
11553         (rpl_dup2_fchdir): Delete prototype.
11554         * lib/open.c (open): Update caller.
11555         * lib/dup2.c (dup2): Track fchdir metadata.
11556         * lib/dup3.c (dup3): Likewise.
11557         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
11558         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
11559
11560 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11561
11562         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
11563         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
11564         don't pass arguments to AC_OUTPUT.
11565
11566 2009-09-02  Bruno Haible  <bruno@clisp.org>
11567
11568         * modules/mkdtemp (License): Relicense under LGPLv2+.
11569         Reported by Paolo Bonzini.
11570
11571 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11572
11573         Replace uses of obsolete autoconf macros in Jim's modules.
11574         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
11575         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
11576         can evoke a warning from autoconf when run with -Wobsolete
11577         enabled.  They were declared obsolete for good reasons (see
11578         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
11579         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
11580         should not continue using the deprecated macros.
11581         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
11582         obsolete Autoconf macros with modern counterparts.
11583         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
11584         * m4/dos.m4 (gl_AC_DOS): Likewise.
11585         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
11586         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
11587         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
11588         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
11589         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
11590         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
11591         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
11592         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
11593         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
11594         Likewise.
11595         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
11596         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
11597         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
11598         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
11599         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
11600         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
11601
11602 2009-09-01  Eric Blake  <ebb9@byu.net>
11603
11604         fchdir: fix off-by-one bug in previous patch
11605         * lib/fchdir.c (rpl_fstat): Use correct bounds.
11606         (_gl_unregister_fd): Delete useless if.
11607
11608 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
11609
11610         maint.mk: sort the list of syntax-check rules
11611         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
11612         easier to get a sense of progress when the rules are run sequentially
11613         and take a long time.
11614
11615 2009-09-01  Simon Josefsson  <simon@josefsson.org>
11616
11617         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
11618         * modules/netinet_in: Likewise.
11619         * modules/sys_file: Likewise.
11620         * modules/sys_ioctl: Likewise.
11621         * modules/sys_select: Likewise.
11622         * modules/sys_socket: Likewise.
11623         * modules/sys_stat: Likewise.
11624         * modules/sys_time: Likewise.
11625         * modules/sys_times: Likewise.
11626         * modules/sys_utsname: Likewise.
11627         * modules/sys_wait: Likewise.
11628
11629 2009-09-01  Jim Meyering  <meyering@redhat.com>
11630
11631         fts: help ensure that return values are not ignored
11632         * lib/fts_.h (__GNUC_PREREQ): Define.
11633         (__attribute_warn_unused_result__): Define.
11634         (fts_children, fts_close, fts_open, fts_read): Declare with
11635         __attribute_warn_unused_result__.
11636
11637         fts: fts_close now fails also when closing a dir file descriptor fails
11638         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
11639         and propagate to caller, along with errno.
11640
11641         announce-gen: correct formatting in --help output
11642         * build-aux/announce-gen (usage): Move the one-line description in
11643         --help output "up", to where it belongs, just after Usage:.
11644
11645 2009-08-31  Eric Blake  <ebb9@byu.net>
11646
11647         fchdir: port to mingw
11648         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
11649         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
11650         opened, then use a substitute.
11651         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
11652         replacement.
11653         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
11654         (_gl_register_fd): No need to check stat if open already filters
11655         all directories.
11656         (fchdir): Fix error condition to match POSIX.
11657         * modules/fchdir (Depends-on): Add sys_stat.
11658         * doc/posix-functions/open.texi (open): Document the limitation.
11659         * modules/fchdir-tests: New file.
11660         * tests/test-fchdir.c: Likewise.
11661
11662         canonicalize: allow cross-testing from cygwin to mingw
11663         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
11664         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
11665         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
11666         Likewise.
11667         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
11668         target does not support symlinks.
11669         * tests/test-canonicalize-lgpl.sh: Likewise.
11670
11671         chown: avoid compilation warning on mingw
11672         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
11673         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
11674         mingw.
11675         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
11676         * modules/chown (Depends-on): Add errno.
11677
11678 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
11679
11680         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
11681         command.
11682
11683 2009-08-31  Jim Meyering  <meyering@redhat.com>
11684
11685         canonicalize: remove useless initialization
11686         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
11687         initialization of local, "end".
11688
11689 2009-08-30  Bruno Haible  <bruno@clisp.org>
11690
11691         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
11692         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
11693         ENOSYS.
11694
11695 2009-08-30  Bruno Haible  <bruno@clisp.org>
11696
11697         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
11698         /usr/xpg4/bin/tr when it exists.
11699         * tests/test-pipe-filter-gi1.sh: Likewise.
11700
11701 2009-08-30  Bruno Haible  <bruno@clisp.org>
11702
11703         Work around deficient /usr/bin/id program on Solaris.
11704         * tests/test-file-has-acl.sh (ID): New variable.
11705         * tests/test-set-mode-acl.sh (ID): Likewise.
11706         * tests/test-copy-acl.sh (ID): Likewise.
11707         * tests/test-copy-file.sh (ID): Likewise.
11708
11709 2009-08-30  Bruno Haible  <bruno@clisp.org>
11710
11711         New module 'xstriconveh'.
11712         * lib/xstriconveh.h: New file.
11713         * lib/xstriconveh.c: New file.
11714         * modules/xstriconveh: New file.
11715
11716 2009-08-30  Bruno Haible  <bruno@clisp.org>
11717
11718         Make it easier to use mem_cd_iconveh.
11719         * lib/striconveh.h (iconveh_t): New type.
11720         (iconveh_open, iconveh_close): New declarations.
11721         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
11722         with a single 'const iconveh_t *' argument.
11723         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
11724         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
11725         with a single 'const iconveh_t *' argument.
11726         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
11727         * tests/test-striconveh.c (main): Update.
11728         * NEWS: Mention the change.
11729
11730 2009-08-30  Bruno Haible  <bruno@clisp.org>
11731
11732         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
11733         problem.
11734
11735 2009-08-30  Bruno Haible  <bruno@clisp.org>
11736
11737         Work around iconv_open problem on Solaris.
11738         * lib/iconv_open-solaris.gperf: New file.
11739         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
11740         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
11741         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
11742         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
11743         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
11744         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
11745
11746 2009-08-29  Jim Meyering  <meyering@redhat.com>
11747
11748         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
11749         * top/maint.mk (cvs-check): Remove target; it was just an alias
11750         to the better-named vc-diff-check.
11751         (maintainer-distcheck): Remove rule.  It was used only from
11752         the (alpha/beta/major) target, and all of its commands but one
11753         were coreutils-specific.
11754         (vc-dist): Remove rule.
11755         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
11756         Run vc-diff-check, not vc-dist.
11757         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
11758
11759 2009-08-27  Bruno Haible  <bruno@clisp.org>
11760
11761         * tests/test-bitrotate.c (main): Remove test that uses a shift count
11762         of 0.
11763
11764 2009-08-27  Bruno Haible  <bruno@clisp.org>
11765
11766         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
11767         compilers.
11768         * doc/func.texi: Document the SunPRO C bug.
11769
11770 2009-08-27  Bruno Haible  <bruno@clisp.org>
11771
11772         Fix link error on Solaris.
11773         * tests/test-parse-duration.c (xstrdup): Remove function.
11774
11775 2009-08-26  Pádraig Brady  <P@draigbrady.com>
11776
11777         ignore-value: handle pointer types, too
11778         * lib/ignore-value.h (__attribute__): Remove definition.
11779         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
11780         of a more concise and more-often effective "(void) i" statement.
11781         (ignore_ptr): New function to suppress warnings from functions that
11782         return pointers, and to make it explicit that one function doesn't
11783         handle all cases.
11784
11785 2009-08-25  Bruno Haible  <bruno@clisp.org>
11786
11787         dup2: work around a Linux bug.
11788         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
11789         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
11790         * doc/posix-functions/dup2.texi: Mention the Linux bug.
11791         Reported by Simon Josefsson.
11792
11793 2009-08-25  Jim Meyering  <meyering@redhat.com>
11794
11795         libguestfs uses gnulib
11796         * users.txt: Add libguestfs.
11797
11798 2009-08-24  Eric Blake  <ebb9@byu.net>
11799
11800         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
11801         * lib/pipe2.c (includes): Add binary-io.h.
11802         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
11803
11804 2009-08-24  Bruno Haible  <bruno@clisp.org>
11805
11806         Tolerate declared but missing accept4 syscall.
11807         * lib/accept4.c (accept4): Invoke original accept4 function first, if
11808         available.
11809         * lib/sys_socket.in.h (accept4): If the function is already present,
11810         override it.
11811         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
11812         * modules/accept4 (Makefile.am): Compile accept4.c always.
11813         Reported by Paolo Bonzini and Eric Blake.
11814
11815 2009-08-23  Bruno Haible  <bruno@clisp.org>
11816
11817         New module 'accept4'.
11818         * lib/sys_socket.in.h (accept4): New declaration.
11819         * lib/accept4.c: New file.
11820         * m4/accept4.m4: New file.
11821         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
11822         GNULIB_ACCEPT4, HAVE_ACCEPT4.
11823         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
11824         HAVE_ACCEPT4.
11825         * modules/accept4: New file.
11826         * doc/glibc-functions/accept4.texi: Mention the new module.
11827
11828 2009-08-24  Jim Meyering  <meyering@redhat.com>
11829
11830         progname: also set global program_invocation_name, when possible
11831         Before this change, a libtool-enabled program that calls glibc's
11832         error function would report the program name as
11833         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
11834         * modules/progname (configure.ac): Check for a declaration of
11835         program_invocation_name.
11836         * lib/progname.c:  Include <errno.h>.
11837         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
11838         Set program_invocation_name.
11839
11840 2009-08-23  Bruno Haible  <bruno@clisp.org>
11841
11842         * lib/dup3.c: Include <string.h>.
11843
11844 2009-08-23  Bruno Haible  <bruno@clisp.org>
11845
11846         * lib/dup3.c (dup3): Test only once whether the system actually exists.
11847         * lib/pipe2.c (pipe2): Likewise.
11848         Suggested by Eric Blake.
11849
11850 2009-08-23  Bruno Haible  <bruno@clisp.org>
11851
11852         Tolerate declared but missing dup3 syscall.
11853         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
11854         * lib/unistd.in.h (dup3): If the function is already present,
11855         override it.
11856         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
11857         * modules/dup3 (Makefile.am): Compile dup3.c always.
11858         Reported by Paolo Bonzini.
11859
11860 2009-08-23  Bruno Haible  <bruno@clisp.org>
11861
11862         Tolerate declared but missing pipe2 syscall.
11863         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
11864         available.
11865         * lib/unistd.in.h (pipe2): If the function is already present,
11866         override it.
11867         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
11868         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
11869         Reported by Paolo Bonzini.
11870
11871 2009-08-23  Bruno Haible  <bruno@clisp.org>
11872
11873         * lib/pipe2.c (pipe2): Move #ifs inside function.
11874
11875 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11876
11877         quotearg: document limitations of quote_these_too
11878         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
11879         those limitations are created.
11880         * lib/quotearg.h (set_char_quoting): Document that digits and
11881         letters that are special after backslash are not permitted.
11882         (quotearg_char): Cross-reference set_char_quoting documentation.
11883
11884 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
11885
11886         quotearg: implement custom_quoting_style
11887         * lib/quotearg.c: (struct quoting_options): Add left_quote and
11888         right_quote fields.
11889         (set_custom_quoting): New public function.
11890         (quotearg_buffer_restyled): Add left_quote and right_quote
11891         arguments, handle them very much like locale quoting, and update
11892         all uses.
11893         (quotearg_n_custom): New public function.
11894         (quotearg_n_custom_mem): New public function.
11895         (quotearg_custom): New public function.
11896         (quotearg_custom_mem): New public function.
11897         * lib/quotearg.h: Prototype and document new public functions.
11898         (enum quoting_style): For escape_quoting_style and
11899         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
11900         ignored even though they're otherwise like c_quoting_style.
11901         Add custom_quoting_style member and document with comparison to
11902         clocale_quoting_style.
11903         * tests/test-quotearg.c (custom_quotes): New array.
11904         (custom_results): New array.
11905         (main): Extend to test custom quoting.
11906
11907 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11908
11909         quotearg: fix right quote escaping when it's in quote_these_too
11910         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
11911         quote, be sure to prepend only one backslash.
11912         * tests/test-quotearg.c (use_quote_double_quotes): New function.
11913         (main): Test it.
11914
11915 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11916
11917         quotearg-tests: test escaping of embedded locale quotes
11918         * tests/test-quotearg.c (struct result_strings): Add member for
11919         new input.
11920         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
11921         (inputs): Add new input.
11922         (results_g): Add expected results.
11923         (flag_results): Likewise.
11924         (locale_results): Likewise.
11925         (compare_strings): Check those.
11926
11927 2009-08-23  Bruno Haible  <bruno@clisp.org>
11928
11929         Tests for module 'dup3'.
11930         * modules/dup3-tests: New file.
11931         * tests/test-dup3.c: New file.
11932
11933         New module 'dup3'.
11934         * lib/unistd.in.h (dup3): New declaration.
11935         * lib/dup3.c: New file.
11936         * m4/dup3.m4: New file.
11937         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
11938         HAVE_DUP3.
11939         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
11940         * modules/dup3: New file.
11941         * doc/glibc-functions/dup3.texi: Mention the new module.
11942
11943 2009-08-23  Bruno Haible  <bruno@clisp.org>
11944
11945         Tweak the dup2 test.
11946         * tests/test-dup2.c (main): Create the test file empty. Verify that an
11947         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
11948         the test file is still empty. Fix argument order of lseek.
11949
11950 2009-08-23  Bruno Haible  <bruno@clisp.org>
11951
11952         Avoid test link errors when the modules getopt-gnu, gettext are used.
11953         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
11954         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11955
11956 2009-08-23  Bruno Haible  <bruno@clisp.org>
11957
11958         Fix getdtablesize() on mingw.
11959         * lib/getdtablesize.c (getdtablesize): Implement differently.
11960         * lib/unistd.in.h (getdtablesize): Improve comment.
11961
11962 2009-08-23  Bruno Haible  <bruno@clisp.org>
11963
11964         New module 'mkostemp'.
11965         Based on Ulrich Drepper's 2007-08-10 change in glibc.
11966         * lib/stdlib.in.h (mksotemp): New declaration.
11967         * lib/mkostemp.c: New file, from glibc with modifications.
11968         * lib/tempname.h (GT_FILE): Remove outdated comment.
11969         (gen_tempname): Add flags argument.
11970         * lib/tempname.c (__GT_BIGFILE): Remove macro.
11971         (__GT_FILE): Map to 1.
11972         (small_open, large_open): Remove macros.
11973         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
11974         * lib/mkstemp.c (mkstemp): Update.
11975         * lib/mkdtemp.c (mkdtemp): Likewise.
11976         * m4/mkostemp.m4: New file.
11977         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
11978         HAVE_MKOSTEMP.
11979         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
11980         HAVE_MKOSTEMP.
11981         * modules/mkostemp: New file, based on modules/mkstemp.
11982         * doc/glibc-functions/mkostemp.texi: Mention the new module.
11983         * NEWS: Mention the change.
11984
11985 2009-08-23  Bruno Haible  <bruno@clisp.org>
11986
11987         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
11988         Reported by Eric Blake.
11989
11990 2009-08-23  Bruno Haible  <bruno@clisp.org>
11991
11992         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
11993         Reported by Eric Blake.
11994
11995 2009-08-23  Bruno Haible  <bruno@clisp.org>
11996
11997         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
11998         * modules/pipe2 (Depends-on): Likewise.
11999
12000 2009-08-23  Eric Blake  <ebb9@byu.net>
12001
12002         fcntl-h: add O_TTY_INIT support
12003         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
12004         * tests/test-fcntl-h.c (o): Test it.
12005         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
12006
12007         fcntl-h: rename from fcntl, in preparation for fcntl(2)
12008         * modules/fcntl: Move <fcntl.h> header replacement...
12009         * modules/fcntl-h: ...to new name, so as not to collide with
12010         like-named function.
12011         * tests/test-fcntl.c: Rename...
12012         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
12013         * modules/fcntl-tests: Rename...
12014         * modules/fcntl-h-tests: ...to this.  Update test file name.
12015         * modules/chdir-long (Depends-on): Update clients.
12016         * modules/chdir-safer (Depends-on): Likewise.
12017         * modules/fcntl-safer (Depends-on): Likewise.
12018         * modules/fts (Depends-on): Likewise.
12019         * modules/mkancesdirs (Depends-on): Likewise.
12020         * modules/mkdir-p (Depends-on): Likewise.
12021         * modules/open (Depends-on): Likewise.
12022         * modules/savewd (Depends-on): Likewise.
12023         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
12024         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
12025
12026 2009-08-22  Bruno Haible  <bruno@clisp.org>
12027
12028         * modules/binary-io (License): Relicense under LGPL.
12029         * modules/pipe2 (License): Likewise.
12030
12031 2009-08-22  Bruno Haible  <bruno@clisp.org>
12032
12033         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
12034         return value.
12035         * lib/pipe-filter-gi.c (filter_init): Likewise.
12036         Reported by Eric Blake.
12037
12038 2009-08-22  Bruno Haible  <bruno@clisp.org>
12039
12040         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
12041         * modules/pipe (Depends-on): Add pipe2.
12042
12043 2009-08-22  Bruno Haible  <bruno@clisp.org>
12044
12045         Tests for module 'pipe2'.
12046         * modules/pipe2-tests: New file.
12047         * tests/test-pipe2.c: New file.
12048
12049         New module 'pipe2'.
12050         * lib/unistd.in.h (pipe2): New declaration.
12051         * lib/pipe2.c: New file.
12052         * m4/pipe2.m4: New file.
12053         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
12054         HAVE_PIPE2.
12055         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
12056         * modules/pipe2: New file.
12057         * doc/glibc-functions/pipe2.texi: Mention the new module.
12058
12059 2009-08-22  Bruno Haible  <bruno@clisp.org>
12060
12061         Reference some new glibc functions.
12062         * doc/glibc-functions/accept4.texi: New file.
12063         * doc/glibc-functions/dup3.texi: New file.
12064         * doc/glibc-functions/mkostemp.texi: New file.
12065         * doc/glibc-functions/pipe2.texi: New file.
12066         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
12067         (Glibc sys/socket.h): Refer to accept4.
12068         (Glibc unistd.h): Refer to dup3, pipe2.
12069         Reported by Eric Blake.
12070
12071 2009-08-22  Jim Meyering  <meyering@redhat.com>
12072             Bruno Haible  <bruno@clisp.org>
12073
12074         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
12075         This makes it so packages using automake-1.11's silent-rules option
12076         can print e.g., a single "GEN    configmake.h" line, rather than
12077         the 30+ statements that perform the job.  If you want to see the
12078         actual commands, you can still run "make V=1".
12079         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
12080         so that make output is abbreviated when those variables are defined
12081         appropriately.
12082         * modules/argz: Likewise.
12083         * modules/arpa_inet: Likewise.
12084         * modules/byteswap: Likewise.
12085         * modules/configmake: Likewise.
12086         * modules/dirent: Likewise.
12087         * modules/errno: Likewise.
12088         * modules/fcntl: Likewise.
12089         * modules/float: Likewise.
12090         * modules/fnmatch: Likewise.
12091         * modules/getopt-posix: Likewise.
12092         * modules/glob: Likewise.
12093         * modules/iconv_open: Likewise.
12094         * modules/inttypes: Likewise.
12095         * modules/localcharset: Likewise.
12096         * modules/locale: Likewise.
12097         * modules/math: Likewise.
12098         * modules/netdb: Likewise.
12099         * modules/netinet_in: Likewise.
12100         * modules/poll: Likewise.
12101         * modules/posix_spawnp-tests: Likewise.
12102         * modules/sched: Likewise.
12103         * modules/search: Likewise.
12104         * modules/selinux-h: Likewise.
12105         * modules/signal: Likewise.
12106         * modules/spawn: Likewise.
12107         * modules/stdarg: Likewise.
12108         * modules/stdbool: Likewise.
12109         * modules/stddef: Likewise.
12110         * modules/stdint: Likewise.
12111         * modules/stdio: Likewise.
12112         * modules/stdlib: Likewise.
12113         * modules/string: Likewise.
12114         * modules/strings: Likewise.
12115         * modules/sys_file: Likewise.
12116         * modules/sys_ioctl: Likewise.
12117         * modules/sys_select: Likewise.
12118         * modules/sys_socket: Likewise.
12119         * modules/sys_stat: Likewise.
12120         * modules/sys_time: Likewise.
12121         * modules/sys_times: Likewise.
12122         * modules/sys_utsname: Likewise.
12123         * modules/sys_wait: Likewise.
12124         * modules/sysexits: Likewise.
12125         * modules/time: Likewise.
12126         * modules/unistd: Likewise.
12127         * modules/wchar: Likewise.
12128         * modules/wctype: Likewise.
12129
12130 2009-08-22  Jim Meyering  <meyering@redhat.com>
12131
12132         announce-gen: detect write failure
12133         * build-aux/announce-gen: Add Coda at end.
12134         Remove equivalent-but-more-verbose block at top.
12135
12136 2009-08-19  Akim Demaille  <demaille@gostai.com>
12137
12138         bootstrap: --help to stdout.
12139         * bootstrap (usage): Don't send --help to stderr.
12140         Use a here doc instead of a long string.
12141
12142 2009-08-21  Eric Blake  <ebb9@byu.net>
12143
12144         test-popen-safer: split from test-popen
12145         * tests/test-popen.c (main): Move...
12146         * tests/test-popen.h: ...into new file.
12147         * tests/test-popen-safer2.c: New file.
12148         * modules/popen-tests (Files): Add test-popen.h.
12149         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
12150         Suggested by Bruno Haible.
12151
12152         test-fcntl-safer: split from test-open
12153         * tests/test-open.c (main): Move...
12154         * tests/test-open.h: ...into new file.
12155         * tests/test-fcntl-safer.c: New file.
12156         * modules/open-tests (Files): Add test-open.h.
12157         * modules/fcntl-safer-tests: New file.
12158         Suggested by Bruno Haible.
12159
12160         test-fopen-safer: split from test-fopen
12161         * tests/test-fopen.c (main): Move...
12162         * tests/test-fopen.h: ...into new file.
12163         * tests/test-fopen-safer.c: New file.
12164         * modules/fopen-tests (Files): Add test-fopen.h.
12165         * modules/fopen-safer-tests: New file.
12166         Suggested by Bruno Haible.
12167
12168 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
12169
12170         popen-safer: test O_CLOEXEC at run-time.
12171         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
12172
12173 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
12174
12175         fcntl: move more flags to the header
12176         * lib/cloexec.c: Do not define FD_CLOEXEC here.
12177         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
12178         * lib/fcntl.in.h: Do both things here.
12179
12180 2009-08-21  Jim Meyering  <meyering@redhat.com>
12181
12182         consistently remove $@-t before redirecting to it
12183         * modules/argz: Remove $@-t and $@ before redirecting to the former.
12184         * modules/alloca-opt: Likewise.
12185         * modules/byteswap: Likewise.
12186         * modules/fnmatch: Likewise.
12187         * modules/getopt-posix: Likewise.
12188         * modules/glob: Likewise.
12189         * modules/poll: Likewise.
12190         * modules/posix_spawnp-tests: Likewise.
12191         * modules/sys_socket: Likewise.
12192         * modules/sysexits: Likewise.
12193
12194 2009-08-21  Eric Blake  <ebb9@byu.net>
12195
12196         popen: simplify access to original popen
12197         * lib/popen.c (rpl_popen): No need to worry about popen being a
12198         macro.
12199         Reported by Bruno Haible.
12200
12201 2009-08-20  Eric Blake  <ebb9@byu.net>
12202
12203         build: avoid some compiler warnings
12204         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
12205         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
12206         type.
12207         (new_exclude_segment, excluded_file_pattern_p)
12208         (excluded_file_name_p): Reduce scope.
12209         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
12210         old-style declaration.
12211
12212 2009-08-20  Simon Josefsson  <simon@josefsson.org>
12213
12214         * tests/test-exclude1.sh: Handle Windows EOL.
12215         * tests/test-exclude2.sh: Likewise.
12216         * tests/test-exclude3.sh: Likewise.
12217         * tests/test-exclude4.sh: Likewise.
12218         * tests/test-exclude5.sh: Likewise.
12219         * tests/test-exclude6.sh: Likewise.
12220         * tests/test-exclude7.sh: Likewise.
12221
12222 2009-08-19  Akim Demaille  <demaille@gostai.com>
12223
12224         bootstrap: find sha1sum when named gsha1sum.
12225         * bootstrap (find_tool): New.
12226         ($SHA1SUM): New.
12227         Use it.
12228
12229 2009-08-20  Jim Meyering  <meyering@redhat.com>
12230
12231         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
12232         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
12233         expression that converts "." in a file name to "\." in the resulting
12234         regexp.  Start with a dummy statement, so that prior shell variable
12235         definitions are expanded portably.  Reported by Simon Josefsson.
12236
12237 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
12238
12239         Fix polling for writeability of a screen buffer.
12240         * lib/poll.c: Distinguish input and screen buffers for the
12241         Win32 implementation.
12242         * lib/select.c: Likewise.
12243
12244 2009-08-19  Eric Blake  <ebb9@byu.net>
12245
12246         popen-safer: prevent popen from clobbering std descriptors
12247         * modules/popen-safer: New file.
12248         * lib/popen-safer.c: Likewise.
12249         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
12250         * lib/stdio--.h (popen): Provide override.
12251         * lib/stdio-safer.h (popen_safer): Provide declaration.
12252         * tests/test-popen.c (includes): Partially test this.
12253         * modules/popen-safer-tests: New file, for more tests.
12254         * tests/test-popen-safer.c: Likewise.
12255         * MODULES.html.sh (file stream based Input/Output): Mention it.
12256
12257         tests: test some of the *-safer modules
12258         * modules/fopen-safer (Depends-on): Add fopen.
12259         * modules/fcntl-safer (Depends-on): Add fcntl.
12260         * modules/stdlib-safer (Depends-on): Add stdlib.
12261         (configure.ac): Set indicator.
12262         * modules/unistd-safer (configure.ac): Likewise.
12263         * modules/tmpfile-safer (configure.ac): Likewise.
12264         (Depends-on): Add tmpfile.
12265         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
12266         active.
12267         * tests/test-fopen.c (includes): Test safer versions when they are
12268         in use.
12269         * tests/test-open.c (includes): Likewise.
12270
12271         popen: fix cygwin 1.5 bug when stdin closed
12272         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
12273         * modules/popen: New file.
12274         * modules/popen-tests: Likewise.
12275         * tests/test-popen.c: Likewise.
12276         * m4/popen.m4: Likewise.
12277         * lib/popen.c: Likewise.
12278         * lib/stdio.in.h (popen): New declaration.
12279         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
12280         * modules/stdio (Makefile.am): Likewise.
12281         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
12282
12283 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
12284
12285         maint.mk: give full control over update-copyright exclusions
12286         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
12287         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
12288         (update-copyright): Don't force inclusion of top-level
12289         ChangeLog.  Don't force exclusion of all COPYING files, but make
12290         them the default exclusion instead.
12291
12292 2009-08-16  Bruno Haible  <bruno@clisp.org>
12293
12294         Fix test failures on Solaris 10.
12295         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
12296         tests when Solaris iconv() is used.
12297         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
12298         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
12299         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
12300         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
12301         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
12302
12303 2009-08-16  Bruno Haible  <bruno@clisp.org>
12304
12305         Fix test failures on Solaris 10.
12306         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
12307         'tr' program and pass it as first argument.
12308         * tests/test-pipe-filter-gi1.sh: Likewise.
12309         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
12310         program as first argument.
12311         * tests/test-pipe-filter-gi1.c (main): Likewise.
12312
12313 2009-08-16  Eric Blake  <ebb9@byu.net>
12314
12315         fpurge: fix previous commits
12316         * modules/fpurge (Makefile.am): Make replacement conditional,
12317         partially reverting 2007-04-29 change; missed in previous
12318         attempt.
12319         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
12320         is missing.
12321
12322 2009-08-16  Bruno Haible  <bruno@clisp.org>
12323
12324         Clarify fpurge's effect on the file position.
12325         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
12326         * tests/test-fpurge.c (main): Make a second pass for checking the file
12327         position.
12328
12329 2009-08-16  Bruno Haible  <bruno@clisp.org>
12330
12331         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
12332         declaration of fpurge is missing.
12333         * tests/test-fpurge.c (main): Check that the file has not more contents
12334         than expected. Close the file before removing it.
12335
12336 2009-08-15  Eric Blake  <ebb9@byu.net>
12337
12338         fpurge: don't wrap working cygwin implementation
12339         * lib/fpurge.c (fpurge): Fix comment typo.
12340         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
12341         1.7 to avoid replacement.
12342         * tests/test-fpurge.c (main): Enhance test.
12343
12344 2009-08-15  Eric Blake  <ebb9@byu.net>
12345         and Jim Meyering  <meyering@redhat.com>
12346
12347         test-update-copyright: skip if perl is insufficient
12348         * tests/test-update-copyright.sh: Failure to run maintainer tool
12349         should not cause testsuite failure on cygwin 1.5.
12350
12351 2009-08-14  Eric Blake  <ebb9@byu.net>
12352
12353         doc: mention more functions added in cygwin 1.7.0
12354         * doc/posix-headers/limits.texi (limits.h): Update for recent
12355         cygwin additions.
12356         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
12357         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
12358         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
12359         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
12360         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
12361
12362 2009-08-14  Eric Blake  <ebb9@byu.net>
12363
12364         maint.mk: simplify update-copyright rule
12365         * top/maint.mk (update-copyright-local): Delete, and document how
12366         to do it in cfg.mk instead.
12367         (update-copyright-exclude-regexp): Delete, and document how to do
12368         it in .x-update-copyright instead.
12369         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
12370         exclude ChangeLog.
12371
12372 2009-08-14  Bruno Haible  <bruno@clisp.org>
12373
12374         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
12375
12376 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12377
12378         maint.mk: support update-copyright-env
12379         * top/maint.mk (update-copyright-env): Define place-holder.
12380         (update-copyright): Expand $(update-copyright-env) before
12381         invoking update-copyright.
12382
12383 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12384
12385         update-copyright: implement forced reformatting
12386         * build-aux/update-copyright: Implement and document
12387         UPDATE_COPYRIGHT_FORCE.
12388         * tests/test-update-copyright.sh: Test it.
12389
12390 2009-08-14  Eric Blake  <ebb9@byu.net>
12391         and Bruno Haible  <bruno@clisp.org>
12392
12393         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
12394         * tests/test-locale.c: Revert previous patch related to NULL.
12395         * tests/test-stdio.c: Likewise.
12396         * tests/test-stdlib.c: Likewise.
12397         * tests/test-string.c: Likewise.
12398         * tests/test-unistd.c: Likewise.
12399         * modules/time-tests (Depends-on): Add verify.
12400         * modules/wchar-tests (Depends-on): Likewise.
12401         * tests/test-time.c: Test for NULL compliance.
12402         * tests/test-wchar.c: Likewise.
12403         * modules/locale (Depends-on): Add stddef.
12404         * modules/stdio (Depends-on): Likewise.
12405         * modules/stdlib (Depends-on): Likewise.
12406         * modules/string (Depends-on): Likewise.
12407         * modules/time (Depends-on): Likewise.
12408         * modules/unistd (Depends-on): Likewise.
12409         * modules/wchar (Depends-on): Likewise.
12410         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
12411         * lib/stdlib.in.h (includes): Likewise.
12412         * lib/string.in.h (includes): Likewise.
12413         * lib/time.in.h (includes): Likewise.
12414         * lib/unistd.in.h (includes): Likewise.
12415         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
12416         replaced.
12417         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12418         * m4/stddef_h.m4: New file.
12419         * modules/stddef: Likewise.
12420         * lib/stddef.in.h: Likewise.
12421         * modules/stddef-tests: Likewise.
12422         * tests/test-stddef.c: Likewise.
12423         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
12424         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
12425         * doc/posix-headers/locale.texi (locale.h): Likewise.
12426         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
12427         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
12428         * doc/posix-headers/string.texi (string.h): Likewise.
12429         * doc/posix-headers/time.texi (time.h): Likewise.
12430         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
12431         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
12432
12433 2009-08-14  Eric Blake  <ebb9@byu.net>
12434
12435         doc: improve git diff of texinfo files
12436         * .gitattributes: Add rule for *.texi files, with hint on how to
12437         use it.
12438         Copied from m4, and based on a report by Bruno Haible.
12439
12440 2009-08-14  Bruno Haible  <bruno@clisp.org>
12441
12442         Disable multithread support by default on Cygwin 1.5.x for real.
12443         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
12444
12445 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12446
12447         update-copyright: much ado about intervals
12448         * build-aux/update-copyright: Implement and document
12449         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
12450         of copyright year intervals.
12451         Also, document UPDATE_COPYRIGHT_YEAR.
12452         * tests/test-update-copyright.sh: Test it.
12453
12454         update-copyright: convert 2-digit to 4-digit years
12455         * build-aux/update-copyright: Implement and document.
12456         * tests/test-update-copyright.sh: Update.
12457
12458 2009-08-14  Jim Meyering  <meyering@redhat.com>
12459
12460         test-exclude: avoid coreutils "make check" failure
12461         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
12462         just as in test-argmatch.c.
12463
12464 2009-08-13  Eric Blake  <ebb9@byu.net>
12465
12466         test-dup2: fix bad assumption
12467         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
12468         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
12469
12470         test-version-etc: fix CRLF portability issue
12471         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
12472         recognize \r.
12473         * tests/test-argp-version-etc-1.sh: Likewise.
12474
12475         getopt: update client modules
12476         * modules/argp (Depends-on): Use getopt-gnu.
12477         * modules/git-merge-changelog (Depends-on): Likewise.
12478         * modules/long-options (Depends-on): Likewise.
12479         * modules/xstrtol (Depends-on): Likewise.
12480
12481 2009-08-13  Simon Josefsson  <simon@josefsson.org>
12482
12483         * tests/test-version-etc.sh: Don't fail on different
12484         project/version.  Don't fail on CRLF differences.  Rewrite to use
12485         multiple -e instead of multiple sed forks, suggested by Eric Blake
12486         <ebb9@byu.net>.
12487         * tests/test-argp-version-etc-1.sh: Likewise.
12488
12489 2009-08-13  Simon Josefsson  <simon@josefsson.org>
12490
12491         * tests/test-version-etc.sh: Don't fail on different
12492         project/version.
12493
12494 2009-08-12  Bruno Haible  <bruno@clisp.org>
12495
12496         Tests for modules 'getopt-posix', 'getopt-gnu'.
12497         * modules/getopt-posix-tests: New file.
12498         * tests/test-getopt.c: New file.
12499         * tests/test-getopt.h: New file.
12500         * tests/test-getopt_long.h: New file.
12501
12502         New modules 'getopt-posix', 'getopt-gnu'.
12503         * modules/getopt-gnu: New file, renamed from modules/getopt.
12504         * modules/getopt-posix: New file.
12505         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
12506         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
12507         (gl_GETOPT): Remove macro.
12508         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
12509         Disable the test against BSD systems that declare optreset. Test
12510         against mingw bug. Test against lack of support of optional arguments
12511         on many platforms.
12512         * doc/glibc-headers/getopt.texi: Update module name and list of
12513         relevant platforms.
12514         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
12515         'getopt-gnu' and more portability problems.
12516         * NEWS: Mention the changes.
12517
12518 2009-08-12  Bruno Haible  <bruno@clisp.org>
12519
12520         Ensure that optarg etc. get declared by <unistd.h>.
12521         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
12522         AC_USE_SYSTEM_EXTENSIONS.
12523         * modules/getopt (Depends-on): Add 'extensions'.
12524
12525 2009-08-12  Bruno Haible  <bruno@clisp.org>
12526
12527         Avoid test link errors.
12528         * modules/pipe-filter-ii-tests (Makefile.am): Define
12529         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
12530         * modules/pipe-filter-gi-tests (Makefile.am): Define
12531         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
12532         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12533
12534 2009-08-12  Bruno Haible  <bruno@clisp.org>
12535
12536         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
12537         gl_GETOPT_SUBSTITUTE before.
12538         (gl_GETOPT): Use it.
12539         * m4/argp.m4 (gl_ARGP): Update.
12540         Reported by Sergey Poznyakoff.
12541
12542         * m4/getopt.m4: Reorder macros.
12543         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
12544         (gl_GETOPT_SUBSTITUTE): Remove macro.
12545
12546 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12547
12548         Minor improvement in gitlog-to-changelog
12549
12550         * build-aux/gitlog-to-changelog: New option `--format' makes
12551         output format string configurable.
12552
12553 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12554
12555         Optimize exclude: use hash tables for non-wildcard patterns.
12556
12557         * lib/exclude.c: Include hash.h and mbuiter.h
12558         (struct exclude_pattern, exclude_segment): New data types.
12559         (struct exclude): Rewrite.
12560         (fnmatch_pattern_has_wildcards): New function.
12561         (new_exclude_segment, free_exclude_segment): New functions.
12562         (excluded_file_pattern_p, excluded_file_name_p): New functions.
12563         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
12564         * lib/exclude.h (is_fnmatch_pattern): New prototype.
12565         * modules/exclude: Depend on hash and mbuiter.
12566
12567         * modules/exclude-tests: New file.
12568         * tests/test-exclude.c: New file.
12569         * tests/test-exclude1.sh: New file.
12570         * tests/test-exclude2.sh: New file.
12571         * tests/test-exclude3.sh: New file.
12572         * tests/test-exclude4.sh: New file.
12573         * tests/test-exclude5.sh: New file.
12574         * tests/test-exclude6.sh: New file.
12575         * tests/test-exclude7.sh: New file.
12576
12577 2009-08-12  Bruno Haible  <bruno@clisp.org>
12578
12579         Ensure that getopt() gets declared by <unistd.h>.
12580         * lib/unistd.in.h: Conditionally include getopt.h.
12581         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
12582         Set GNULIB_UNISTD_H_GETOPT.
12583         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12584         GNULIB_UNISTD_H_GETOPT.
12585         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
12586
12587 2009-08-12  Bruno Haible  <bruno@clisp.org>
12588
12589         Clarify logic.
12590         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
12591         gl_replace_getopt instead of GETOPT_H.
12592
12593 2009-08-12  Bruno Haible  <bruno@clisp.org>
12594
12595         * m4/getopt.m4: Add comments.
12596
12597 2009-08-12  Bruno Haible  <bruno@clisp.org>
12598
12599         Disable multithread support by default on Cygwin 1.5.x.
12600         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
12601         set gl_use_threads=no if not specified otherwise.
12602
12603 2009-08-11  Bruno Haible  <bruno@clisp.org>
12604
12605         Avoid compilation error on NetBSD 5.0.
12606         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
12607         * tests/test-stdio.c: Likewise.
12608         * tests/test-stdlib.c: Likewise.
12609         * tests/test-string.c: Likewise.
12610         * tests/test-unistd.c: Likewise.
12611         Reported by Greg Troxel <gdt@ir.bbn.com>
12612         at <https://savannah.gnu.org/support/?106973>.
12613
12614 2009-08-11  Bruno Haible  <bruno@clisp.org>
12615
12616         * modules/dup2-tests (Depends-on): Remove close.
12617
12618         Undo 2009-07-19 commit.
12619         * modules/acl-tests (Depends-on): Remove close.
12620         * modules/binary-io-tests (Depends-on): Likewise.
12621         * modules/closein-tests (Depends-on): Likewise.
12622         * modules/flock-tests (Depends-on): Likewise.
12623         * modules/fsync-tests (Depends-on): Likewise.
12624         * modules/lseek-tests (Depends-on): Likewise.
12625         * modules/pipe-tests (Depends-on): Likewise.
12626         * modules/posix_spawn-tests (Depends-on): Likewise.
12627         * modules/posix_spawnp-tests (Depends-on): Likewise.
12628         * modules/stat-time-tests (Depends-on): Likewise.
12629         * modules/yesno-tests (Depends-on): Likewise.
12630
12631 2009-08-10  Bruno Haible  <bruno@clisp.org>
12632
12633         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
12634
12635 2009-08-10  Bruno Haible  <bruno@clisp.org>
12636
12637         Fix a gcc warning.
12638         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
12639
12640 2009-08-10  Bruno Haible  <bruno@clisp.org>
12641
12642         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
12643         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
12644         not only the first time.
12645         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
12646         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
12647         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
12648         is 1, not only the the first time.
12649
12650 2009-08-10  Bruno Haible  <bruno@clisp.org>
12651
12652         Make it possible to use module 'gethostname' without module 'close'.
12653         * lib/unistd.in.h (close): Evoke a link error only if
12654         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
12655         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12656         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12657         * modules/unistd (Makefile.am): Substitute
12658         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12659         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
12660         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
12661         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
12662         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12663         * modules/sys_ioctl (Makefile.am): Substitute
12664         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12665         * modules/socket (configure.ac): On native Windows, set
12666         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
12667         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12668         Reported by Sam Steingold <sds@gnu.org>.
12669
12670 2009-08-10  Bruno Haible  <bruno@clisp.org>
12671
12672         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
12673         * modules/ioctl (configure.ac): Likewise.
12674
12675 2009-08-10  Bruno Haible  <bruno@clisp.org>
12676
12677         Avoid collision between gnulib wrapper and libintl wrapper.
12678         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
12679         already defined in intl/printf.c.
12680         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
12681         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
12682
12683 2009-08-09  Bruno Haible  <bruno@clisp.org>
12684
12685         Make <sys/select.h> really self-contained, also on Solaris 10.
12686         * lib/sys_select.in.h: Include <string.h>.
12687         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
12688         Solaris 10 problem.
12689         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
12690         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
12691         Reported by Jim Meyering.
12692
12693 2009-08-09  Bruno Haible  <bruno@clisp.org>
12694
12695         Avoid warnings from 'aclocal' that are due to a use of macro name
12696         AM_XGETTEXT_OPTION that is not defined in automake.
12697         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
12698         automake.
12699         * modules/error (configure.ac): Likewise.
12700         * modules/propername (configure.ac): Likewise.
12701         * modules/vasprintf (configure.ac): Likewise.
12702         * modules/verror (configure.ac): Likewise.
12703         * modules/xprintf (configure.ac): Likewise.
12704         * modules/xvasprintf (configure.ac): Likewise.
12705
12706 2009-08-08  Bruno Haible  <bruno@clisp.org>
12707
12708         Avoid compilation error in C++ mode.
12709         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
12710         Reported by Sam Steingold <sds@gnu.org>.
12711
12712 2009-08-08  Bruno Haible  <bruno@clisp.org>
12713
12714         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
12715         for the various Unix platforms.
12716         * doc/posix-headers/limits.texi: Update platforms list regarding
12717         HOST_NAME_MAX.
12718         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12719
12720 2009-08-07  Jim Meyering  <meyering@redhat.com>
12721
12722         selinux-at: fix typo in a comment
12723         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
12724         Spotted by Paolo Bonzini.
12725
12726         selinux-at: remove redundant m4 code, add documentation
12727         * modules/selinux-at (configure.ac): Remove redundant code.
12728         LIB_SELINUX is already set via the dependent module, selinux-h.
12729         (Include): Add quotes around selinux-at.h.
12730         * lib/selinux-at.h: Add documentation.
12731         Reported by Bruno Haible in
12732         http://marc.info/?l=gnulib-bug&m=124958988300749
12733
12734 2009-08-07  Bruno Haible  <bruno@clisp.org>
12735
12736         Avoid link error on MacOS X 10.3 and 10.4.
12737         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
12738         on non-ELF systems.
12739         * lib/argp-pv.c (argp_program_version): Likewise.
12740         Reported by Simon Josefsson.
12741
12742 2009-08-07  Simon Josefsson  <simon@josefsson.org>
12743
12744         * tests/test-version-etc.sh: Use $EXEEXT.
12745
12746 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
12747
12748         update-copyright: update documentation to point to maint.mk
12749         * build-aux/update-copyright: Here.
12750
12751 2009-08-06  Jim Meyering  <meyering@redhat.com>
12752
12753         maint.mk: support update-copyright-local
12754         * top/maint.mk (update-copyright-local): Define place-holder.
12755         (update-copyright): Depend on $(update-copyright-local).
12756
12757 2009-08-06  Jim Meyering  <meyering@redhat.com>
12758
12759         selinux-at: new module
12760         Initially written for coreutils, this module will soon be
12761         used by findutils, too.
12762         * MODULES.html.sh [Misc]: Add selinux-at.
12763         * lib/selinux-at.h: New file, from coreutils.
12764         * lib/selinux-at.c: Likewise.
12765         * modules/selinux-at: Likewise.
12766         (License): Change from LGPL to GPL, since it depends
12767         on the GPL'd openat module.
12768
12769         doc: update README
12770         * README: Remove references to cogito.
12771         Remove cvs-repo-updating instructions from 2007.
12772         Don't imply that CVS is better if you have limited disk space.
12773
12774 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12775
12776         update-copyright: support C-style comments
12777         * build-aux/update-copyright: Implement and document.
12778         * tests/test-update-copyright.sh: Test.
12779
12780 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12781
12782         update-copyright: support omitted "(C)"
12783         * build-aux/update-copyright: Implement and document.  Also,
12784         allow variable whitespace before "(C)".
12785         * tests/test-update-copyright.sh: Test.
12786
12787 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12788
12789         update-copyright: don't trip on non-FSF copyright statements
12790         * build-aux/update-copyright: Fix so that the first correctly
12791         formatted FSF copyright statement is recognized no matter what
12792         appears before it.  Update documentation.
12793         * tests/test-update-copyright.sh: Test that.
12794
12795 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12796
12797         update-copyright: clean up code a little
12798         * build-aux/update-copyright: Append "_re" to the name of any
12799         variable holding a regular expression.
12800         Replace "old" and "new" with "stmt" in variable names.
12801         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
12802         handled correctly.
12803         Format code more consistently.
12804
12805 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12806
12807         update-copyright-tests: improve portability
12808         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
12809         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
12810
12811 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
12812
12813         update-copyright: support @copyright{} and &copy;
12814         * build-aux/update-copyright: Implement and document.
12815         * tests/test-update-copyright.sh: Test.
12816
12817 2009-08-04  Jim Meyering  <meyering@redhat.com>
12818
12819         update-copyright-tests: correctly test EOL=\r\n handling
12820         * tests/test-update-copyright.sh: Put \r at the end of some lines
12821         for the dos-eol tests.  Based on a patch by Joel E. Denny.
12822
12823         maint.mk: make update-copyright exclusion list more configurable
12824         * top/maint.mk (update-copyright): Default to excluding COPYING,
12825         but allow an override, in case someone does want to update that file.
12826
12827         maint.mk: don't update copyright date in COPYING
12828         * top/maint.mk (update-copyright): Exclude COPYING.
12829
12830         maint.mk: add a copyright-updating rule
12831         * top/maint.mk (update-copyright): New rule.
12832         Derived from coreutils/Makefile.am.
12833
12834         update-copyright: rename some variables
12835         * build-aux/update-copyright: Rename a few variables for clarity.
12836         Tweak syntax.  List Joel E. Denny as coauthor.
12837
12838 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
12839
12840         update-copyright: fix bug for 2-digit last year and add tests
12841         * build-aux/update-copyright: Fix bug.
12842         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
12843         specified.
12844         * modules/update-copyright-tests: New
12845         * tests/test-update-copyright.sh: New.
12846
12847 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12848
12849         update-copyright: handle leading tabs in line prefix
12850         * build-aux/update-copyright: Count leading tabs as 8 spaces
12851         when computing margin.  This helps with the formatting of
12852         ChangeLogs, for example.
12853         Fix documentation a little.
12854
12855 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12856
12857         update-copyright: support EOL=\r\n
12858         * build-aux/update-copyright: Implement that.
12859
12860 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12861
12862         update-copyright: automatically format copyright statements
12863         * build-aux/update-copyright: Implement that.
12864         Also, be a little more predictable and safer by always failing
12865         when the full copyright format is not perfectly recognized as an
12866         unbroken whole.  Discussed at
12867         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
12868         Rewrite documentation.
12869
12870 2009-08-03  Bruno Haible  <bruno@clisp.org>
12871
12872         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
12873
12874 2009-08-02  Bruno Haible  <bruno@clisp.org>
12875
12876         Tests for module 'uname'.
12877         * modules/uname-tests: New file.
12878         * tests/test-uname.c: New file.
12879
12880         New module 'uname'.
12881         * lib/uname.c: New file.
12882         * m4/uname.m4: New file.
12883         * modules/uname: New file.
12884         * doc/posix-functions/uname.texi: Mention the new module.
12885
12886 2009-08-02  Bruno Haible  <bruno@clisp.org>
12887
12888         Tests for module 'sys_utsname'.
12889         * modules/sys_utsname-tests: New file.
12890         * tests/test-sys_utsname.c: New file.
12891
12892         New module 'sys_utsname'.
12893         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
12894         * m4/sys_utsname_h.m4: New file.
12895         * modules/sys_utsname: New file.
12896         * doc/posix-headers/sys_utsname.texi: Mention the new module.
12897
12898 2009-08-02  Bruno Haible  <bruno@clisp.org>
12899
12900         Implicitly initialize the sockets library.
12901         * lib/gethostname.c: Include sockets.h.
12902         (rpl_gethostname): Invoke gl_sockets_startup.
12903         * lib/socket.c: Include sockets.h.
12904         (rpl_socket): Invoke gl_sockets_startup.
12905         * modules/gethostname (Depends-on): Add sockets.
12906         * modules/socket (Depends-on): Likewise.
12907         * tests/test-poll.c: Don't include sockets.h.
12908         (main): Don't invoke gl_sockets_startup.
12909         * tests/test-select.c: Don't include sockets.h.
12910         (main): Don't invoke gl_sockets_startup.
12911
12912 2009-08-02  Bruno Haible  <bruno@clisp.org>
12913
12914         Allow multiple calls to gl_sockets_startup.
12915         * lib/sockets.c (initialized_sockets_version): New variable.
12916         (gl_sockets_startup): Do nothing if already called for this or a higher
12917         version.
12918         (gl_sockets_cleanup): Reset initialized_sockets_version.
12919
12920 2009-08-03  Simon Josefsson  <simon@josefsson.org>
12921
12922         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
12923         different project/version.
12924
12925 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
12926             Bruno Haible  <bruno@clisp.org>
12927
12928         Tests for module 'pipe-filter-gi'.
12929         * modules/pipe-filter-gi-tests: New file.
12930         * tests/test-pipe-filter-gi1.sh: New file.
12931         * tests/test-pipe-filter-gi1.c: New file.
12932         * tests/test-pipe-filter-gi2.sh: New file.
12933         * tests/test-pipe-filter-gi2-main.c: New file.
12934         * tests/test-pipe-filter-gi2-child.c: New file.
12935
12936         New module 'pipe-filter-gi'.
12937         * lib/pipe-filter-gi.c: New file.
12938         * modules/pipe-filter-gi: New file.
12939
12940 2009-08-02  Bruno Haible  <bruno@clisp.org>
12941             Paolo Bonzini  <bonzini@gnu.org>
12942
12943         Tests for module 'pipe-filter-ii'.
12944         * modules/pipe-filter-ii-tests: New file.
12945         * tests/test-pipe-filter-ii1.sh: New file.
12946         * tests/test-pipe-filter-ii1.c: New file.
12947         * tests/test-pipe-filter-ii2.sh: New file.
12948         * tests/test-pipe-filter-ii2-main.c: New file.
12949         * tests/test-pipe-filter-ii2-child.c: New file.
12950
12951         New module 'pipe-filter-ii'.
12952         * lib/pipe-filter.h: New file.
12953         * lib/pipe-filter-ii.c: New file.
12954         * lib/pipe-filter-aux.h: New file.
12955         * modules/pipe-filter-ii: New file.
12956
12957 2009-08-02  Simon Josefsson  <simon@josefsson.org>
12958
12959         * lib/gc-libgcrypt.c: Change copyright to FSF.
12960         * lib/gc-gnulib.c: Likewise.
12961
12962 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
12963
12964         * lib/gethostname.c: Include limits.h.
12965
12966 2009-08-02  Simon Josefsson  <simon@josefsson.org>
12967             Bruno Haible  <bruno@clisp.org>
12968
12969         Ensure HOST_NAME_MAX as part of the gethostname module.
12970         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
12971         define also HOST_NAME_MAX.
12972         * tests/test-gethostname.c: Include <limits.h>.
12973         (main): Check also HOST_NAME_MAX.
12974         * doc/posix-headers/limits.texi: Document the mingw problem.
12975
12976 2009-08-02  Bruno Haible  <bruno@clisp.org>
12977
12978         * lib/gethostname.c (gethostname): Fix handling of large len argument.
12979         Add comments.
12980
12981 2009-03-31  Simon Josefsson  <simon@josefsson.org>
12982
12983         * lib/gethostname.c: Add Windows wrapper.
12984         * m4/gethostname.m4: Look for gethostname in -lws2_32.
12985         * modules/gethostname: Depend on sys_socket & errno, for also
12986         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
12987         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
12988
12989 2009-07-31  Jim Meyering  <meyering@redhat.com>
12990
12991         getloadavg: fix symbol name in comment
12992         * lib/getloadavg.c: Correct a typo I introduced when adding
12993         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
12994         Matt Kraai spotted the problem.
12995
12996 2009-07-29  Matt Kraai  <mkraai@beckman.com>
12997
12998         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
12999         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
13000         code also if ! defined N_NAME_POINTER.
13001         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
13002         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
13003         but the n_name member is a 12-byte array.
13004
13005 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
13006
13007         update-copyright: generalize comment handling
13008         * build-aux/update-copyright: Handle copyright statements
13009         within more comment styles.
13010         Document usage.
13011         Report any file with an external copyright holder or parse failure.
13012
13013 2009-07-29  Jim Meyering  <meyering@redhat.com>
13014
13015         mktime: correct setting of REPLACE_MKTIME
13016         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
13017
13018         update-copyright: new module
13019         * modules/update-copyright: New file.
13020         * build-aux/update-copyright: New file.
13021         * MODULES.html.sh (maint+release support): Add update-copyright.
13022
13023 2009-07-27  Bruno Haible  <bruno@clisp.org>
13024
13025         Fix compilation error when <ctime> is used and mktime is replaced.
13026         * lib/time.in.h (mktime): New declaration.
13027         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
13028         REPLACE_MKTIME instead of defining mktime in config.h.
13029         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
13030         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
13031         Reported by Ross McFarland <rwmcfa1@neces.com>.
13032
13033 2009-07-27  Bruno Haible  <bruno@clisp.org>
13034
13035         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
13036         Reported by Matt Kraai <mkraai@beckman.com>.
13037
13038 2009-07-25  Jim Meyering  <meyering@redhat.com>
13039
13040         maint.mk: avoid warnings about missing files
13041         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
13042         diagnostic when .prev-version does not exist.
13043         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
13044         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
13045         nonexistent cfg.mk.
13046         Suggestions from Simon Josefsson.
13047
13048 2009-07-25  Bruno Haible  <bruno@clisp.org>
13049
13050         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
13051         defined as macros. Needed on QNX 6.4.1.
13052         Reported by Matt Kraai <mkraai@beckman.com>.
13053
13054 2009-07-23  Jim Meyering  <meyering@redhat.com>
13055
13056         maint.mk: invoke "make dist" with a working value of XZ_OPT
13057         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
13058
13059 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
13060
13061         Make fseeko.c compile on QNX.
13062         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
13063
13064 2009-07-22  Peter Simons  <simons@cryp.to>
13065
13066         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
13067         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
13068         * lib/md4.h: Likewise.
13069         * lib/md5.h: Likewise.
13070         * lib/sha1.h: Likewise.
13071         * lib/sha256.h: Likewise.
13072         * lib/sha512.h: Likewise.
13073
13074         tests-sha1: don't assign literal string to 'char *' variable
13075         * tests/test-sha1.c (main): Declare locals with "const" to match
13076         attributes of the right hand side.
13077
13078 2009-07-21  Eric Blake  <ebb9@byu.net>
13079
13080         dup2: fix more mingw problems
13081         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
13082         fd to itself.
13083         * doc/posix-functions/dup2.texi (dup2): Document the bug.
13084         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
13085         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
13086         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
13087         care of mingw bugs.
13088
13089 2009-07-21  Jim Meyering  <meyering@redhat.com>
13090
13091         vc-list-files: avoid failure when /bin/sh is dash
13092         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
13093         On some Debian based systems, /bin/sh is a symlink to dash, and running
13094         this command would omit the "/" following each 'tests' prefix:
13095           dash -x build-aux/vc-list-files -C . tests
13096         That is because bash and dash work differently:
13097           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
13098           bash ok
13099           dash odd
13100
13101 2009-07-21  Eric Blake  <ebb9@byu.net>
13102
13103         dup2-tests: test previous patch
13104         * modules/dup2-tests: New file.
13105         * tests/test-dup2.c: Likewise.
13106         * tests/test-open.c (main): Avoid unspecified behavior.
13107         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
13108         test.
13109
13110         dup2: work around mingw and cygwin 1.5 bug
13111         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
13112         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13113         * modules/unistd (Makefile.am): Substitute it.
13114         * lib/unistd.in.h (dup2): Declare the replacement.
13115         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
13116         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
13117         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
13118         * modules/execute (Depends-on): Add dup2.
13119         * modules/fseterr (Depends-on): Likewise.
13120         * modules/pipe (Depends-on): Likewise.
13121         * modules/posix_spawn-internal (Depends-on): Likewise.
13122
13123 2009-07-21  Bruno Haible  <bruno@clisp.org>
13124
13125         * modules/.gitattributes: New file.
13126
13127 2009-07-20  Bruno Haible  <bruno@clisp.org>
13128
13129         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
13130         (main): Use it.
13131
13132 2009-07-20  Eric Blake  <ebb9@byu.net>
13133
13134         test-pipe: make a bit more robust.
13135         * tests/test-pipe.c (myerr): Allow error messages regardless of
13136         what we do to stderr.
13137         (test_pipe): Rearrange to avoid deadlock.
13138         (child_main): Try a larger read, to ensure we avoided deadlock.
13139         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
13140         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
13141         if misused.
13142
13143 2009-07-19  Jim Meyering  <meyering@redhat.com>
13144
13145         fts: avoid false-positive cycle-detection
13146         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
13147         for each new command line argument.
13148
13149 2009-07-19  Bruno Haible  <bruno@clisp.org>
13150
13151         Fix build error on mingw with the modules sys_select and unistd.
13152         * modules/acl-tests (Depends-on): Add close.
13153         * modules/binary-io-tests (Depends-on): Likewise.
13154         * modules/closein-tests (Depends-on): Likewise.
13155         * modules/flock-tests (Depends-on): Likewise.
13156         * modules/fsync-tests (Depends-on): Likewise.
13157         * modules/lseek-tests (Depends-on): Likewise.
13158         * modules/pipe-tests (Depends-on): Likewise.
13159         * modules/posix_spawn-tests (Depends-on): Likewise.
13160         * modules/posix_spawnp-tests (Depends-on): Likewise.
13161         * modules/stat-time-tests (Depends-on): Likewise.
13162         * modules/yesno-tests (Depends-on): Likewise.
13163
13164 2009-07-19  Bruno Haible  <bruno@clisp.org>
13165
13166         Unify conditionals.
13167         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
13168         macros, not at the compiler macros.
13169         * lib/pipe.c: Likewise.
13170         * lib/execute.c: Likewise.
13171         * lib/spawni.c: Likewise.
13172
13173 2009-07-19  Bruno Haible  <bruno@clisp.org>
13174
13175         Fix handling of closed stdin/stdout/stderr on mingw.
13176         * lib/w32spawn.h: Include unistd.h.
13177         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
13178         file descriptor with O_NOINHERIT flag.
13179         (fd_safer_noinherit): New function, based on fd-safer.c.
13180         (dup_safer_noinherit): New function, based on dup-safer.c.
13181         (undup_safer_noinherit): New function.
13182         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
13183         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
13184         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
13185         instead of fd_safer.
13186         * tests/test-pipe.c: Include <windows.h>.
13187         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
13188
13189         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
13190         from main.
13191         (test_pipe): Pass an extra argument for disambiguation.
13192         (main): Invoke parent_main or child_main.
13193
13194         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
13195         consistently.
13196
13197 2009-07-18  Eric Blake  <ebb9@byu.net>
13198
13199         test-pipe: fix mingw build
13200         * tests/test-pipe.c (main): Avoid fcntl on mingw.
13201
13202 2009-07-18  Bruno Haible  <bruno@clisp.org>
13203
13204         * modules/pipe-tests (Makefile.am): Fix typo.
13205
13206 2009-07-18  Eric Blake  <ebb9@byu.net>
13207
13208         error: fix mingw build
13209         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
13210         Reported by Bruno Haible.
13211
13212         error: avoid undefined use of stdout
13213         * lib/error.c (error, error_at_line): Check that fd 1 is open
13214         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
13215         is handling faults and the close_stdout module wants to report the
13216         detection of closed stdout as an error.
13217
13218 2009-07-17  Eric Blake  <ebb9@byu.net>
13219
13220         pipe: be robust in face of closed fds
13221         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
13222         should cause child to misbehave.
13223         * modules/pipe-tests: New module.
13224         * tests/test-pipe.c: New file.
13225         * tests/test-pipe.sh: New file.
13226         Reported by Akim Demaille.
13227
13228 2009-07-14  Bruno Haible  <bruno@clisp.org>
13229
13230         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
13231         Reported by anonymous kc.
13232
13233 2009-07-07  Jim Meyering  <meyering@redhat.com>
13234
13235         maint.mk: don't look for translatable strings in *.m4 or *.mk
13236         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
13237         when searching for translatable strings.
13238
13239 2009-07-05  Jim Meyering  <meyering@redhat.com>
13240
13241         remove superfluous parentheses in STREQ definition
13242         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
13243         * lib/getugroups.c (STREQ): Likewise.
13244         * lib/fnmatch.c (STREQ): Likewise.
13245         Spotted by Bruno Haible.
13246
13247 2009-07-04  Jim Meyering  <meyering@redhat.com>
13248
13249         argv-iter: new module
13250         * MODULES.html.sh: Add argv-iter.
13251         * lib/argv-iter.c, lib/argv-iter.h: New files.
13252         * modules/argv-iter: New file.
13253         * modules/argv-iter-tests: New file.
13254         * tests/test-argv-iter.c: Test it.
13255
13256 2009-07-04  Bruno Haible  <bruno@clisp.org>
13257
13258         Fix assertion.
13259         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
13260         contains more exact copies of a given entry than file2, leave the extra
13261         copies unpaired rather than aborting.
13262         Reported by Eric Blake.
13263
13264 2009-07-02  Bruno Haible  <bruno@clisp.org>
13265
13266         Speedup git-merge-changelog for git cherry-pick.
13267         * lib/git-merge-changelog.c (struct entries_mapping): New type.
13268         (entries_mapping_get): New function, extracted from compute_mapping.
13269         (entries_mapping_reverse_get): New function.
13270         (compute_mapping): Add a 'full' argument. Return the result in a
13271         'struct entries_mapping'.
13272         (main): Update. Access the mappings through entries_mapping_get.
13273         Reported by Eric Blake.
13274
13275 2009-07-02  Bruno Haible  <bruno@clisp.org>
13276
13277         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
13278         best_i.
13279
13280 2009-07-02  Bruno Haible  <bruno@clisp.org>
13281
13282         Speed up approximate search for matching ChangeLog entries.
13283         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
13284         argument. Call fstrcmp_bounded instead of fstrcmp.
13285         (compute_mapping, try_split_merged_entry, main): Update callers.
13286
13287 2009-07-02  Bruno Haible  <bruno@clisp.org>
13288
13289         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
13290
13291 2009-06-30  Bruno Haible  <bruno@clisp.org>
13292
13293         Reduce the number of uc_is_cased calls.
13294         * lib/unicase.h (casing_suffix_context_t): Add
13295         'first_char_except_ignorable' field.
13296         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
13297         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
13298         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
13299         Update initializer.
13300         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
13301         case-ignorable characters.
13302         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
13303         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
13304         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
13305         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
13306         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
13307
13308 2009-06-30  Bruno Haible  <bruno@clisp.org>
13309
13310         Tests for module 'unicase/ignorable'.
13311         * modules/unicase/ignorable-tests: New file.
13312         * tests/unicase/test-ignorable.c: New file, generated by
13313         gen-uni-tables.
13314
13315         Tests for module 'unicase/cased'.
13316         * modules/unicase/cased-tests: New file.
13317         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
13318         * tests/unicase/test-predicate-part1.h: New file, derived from
13319         tests/unictype/test-predicate-part1.h.
13320         * tests/unicase/test-predicate-part2.h: New file, same as
13321         tests/unictype/test-predicate-part2.h.
13322
13323         Fix evaluation of "Before C" condition of FINAL_SIGMA.
13324         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
13325         (output_casing_properties): New function.
13326         (main): Call it.
13327         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
13328         * lib/unicase/cased.c: Include unictype/bitmap.h.
13329         (uc_is_cased): Define through a bitmap lookup.
13330         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
13331         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
13332         (uc_is_case_ignorable): Define through a bitmap lookup.
13333         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
13334         lib/unictype/bitmap.h.
13335         (Depends-on): Add inline. Clean up.
13336         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
13337         lib/unictype/bitmap.h.
13338         (Depends-on): Add inline. Clean up.
13339         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
13340         recognition.
13341         * tests/unicase/test-u16-tolower.c (main): Likewise.
13342         * tests/unicase/test-u32-tolower.c (main): Likewise.
13343
13344 2009-06-30  Bruno Haible  <bruno@clisp.org>
13345
13346         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
13347         * lib/unicase/u16-casemap.c: Likewise.
13348         * lib/unicase/u32-casemap.c: Likewise.
13349
13350 2009-06-29  Bruno Haible  <bruno@clisp.org>
13351
13352         Define u32_casefold as a wrapper around u32_ct_casefold.
13353         * lib/unicase/u32-casefold.c: Update.
13354         * modules/unicase/u32-casefold (Depends-on): Add
13355         unicase/u32-ct-casefold, unicase/empty-prefix-context,
13356         unicase/empty-suffix-context. Clean up.
13357
13358         Define u16_casefold as a wrapper around u16_ct_casefold.
13359         * lib/unicase/u16-casefold.c: Update.
13360         * modules/unicase/u16-casefold (Depends-on): Add
13361         unicase/u16-ct-casefold, unicase/empty-prefix-context,
13362         unicase/empty-suffix-context. Clean up.
13363
13364         Define u8_casefold as a wrapper around u8_ct_casefold.
13365         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
13366         * lib/unicase/u8-casefold.c: Update.
13367         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
13368         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13369
13370         Define u32_totitle as a wrapper around u32_ct_totitle.
13371         * lib/unicase/u32-totitle.c: Update.
13372         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
13373         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13374
13375         Define u16_totitle as a wrapper around u16_ct_totitle.
13376         * lib/unicase/u16-totitle.c: Update.
13377         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
13378         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13379
13380         Define u8_totitle as a wrapper around u8_ct_totitle.
13381         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
13382         functions.
13383         (FUNC): Delegate to U_CT_TOTITLE.
13384         * lib/unicase/u8-totitle.c: Update.
13385         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
13386         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13387
13388         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
13389         invocation.
13390         * modules/unicase/u32-tolower (Depends-on): Add
13391         unicase/empty-prefix-context, unicase/empty-suffix-context.
13392
13393         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
13394         invocation.
13395         * modules/unicase/u16-tolower (Depends-on): Add
13396         unicase/empty-prefix-context, unicase/empty-suffix-context.
13397
13398         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
13399         * modules/unicase/u8-tolower (Depends-on): Add
13400         unicase/empty-prefix-context, unicase/empty-suffix-context.
13401
13402         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
13403         invocation.
13404         * modules/unicase/u32-toupper (Depends-on): Add
13405         unicase/empty-prefix-context, unicase/empty-suffix-context.
13406
13407         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
13408         invocation.
13409         * modules/unicase/u16-toupper (Depends-on): Add
13410         unicase/empty-prefix-context, unicase/empty-suffix-context.
13411
13412         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
13413         * modules/unicase/u8-toupper (Depends-on): Add
13414         unicase/empty-prefix-context, unicase/empty-suffix-context.
13415
13416         New module 'unicase/u32-ct-casefold'.
13417         * lib/unicase/u32-ct-casefold.c: New file.
13418         * modules/unicase/u32-ct-casefold: New file.
13419
13420         New module 'unicase/u16-ct-casefold'.
13421         * lib/unicase/u16-ct-casefold.c: New file.
13422         * modules/unicase/u16-ct-casefold: New file.
13423
13424         New module 'unicase/u8-ct-casefold'.
13425         * lib/unicase/u8-ct-casefold.c: New file.
13426         * lib/unicase/u-ct-casefold.h: New file, derived from
13427         lib/unicase/u-casefold.h.
13428         * modules/unicase/u8-ct-casefold: New file.
13429
13430         New module 'unicase/u32-ct-totitle'.
13431         * lib/unicase/u32-ct-totitle.c: New file.
13432         * modules/unicase/u32-ct-totitle: New file.
13433
13434         New module 'unicase/u16-ct-totitle'.
13435         * lib/unicase/u16-ct-totitle.c: New file.
13436         * modules/unicase/u16-ct-totitle: New file.
13437
13438         New module 'unicase/u8-ct-totitle'.
13439         * lib/unicase/u8-ct-totitle.c: New file.
13440         * lib/unicase/u-ct-totitle.h: New file, derived from
13441         lib/unicase/u-totitle.h.
13442         * modules/unicase/u8-ct-totitle: New file.
13443
13444         New module 'unicase/u32-ct-tolower'.
13445         * lib/unicase/u32-ct-tolower.c: New file.
13446         * modules/unicase/u32-ct-tolower: New file.
13447
13448         New module 'unicase/u16-ct-tolower'.
13449         * lib/unicase/u16-ct-tolower.c: New file.
13450         * modules/unicase/u16-ct-tolower: New file.
13451
13452         New module 'unicase/u8-ct-tolower'.
13453         * lib/unicase/u8-ct-tolower.c: New file.
13454         * modules/unicase/u8-ct-tolower: New file.
13455
13456         New module 'unicase/u32-ct-toupper'.
13457         * lib/unicase/u32-ct-toupper.c: New file.
13458         * modules/unicase/u32-ct-toupper: New file.
13459
13460         New module 'unicase/u16-ct-toupper'.
13461         * lib/unicase/u16-ct-toupper.c: New file.
13462         * modules/unicase/u16-ct-toupper: New file.
13463
13464         New module 'unicase/u8-ct-toupper'.
13465         * lib/unicase/u8-ct-toupper.c: New file.
13466         * modules/unicase/u8-ct-toupper: New file.
13467
13468         Add context arguments to u*_casemap functions.
13469         * lib/unicase/unicasemap.h: Include unicase.h.
13470         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
13471         suffix_context arguments.
13472         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
13473         functions.
13474         (FUNC): Add prefix_context and suffix_context arguments. Use
13475         uc_is_cased and uc_is_case_ignorable.
13476         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
13477         * lib/unicase/u16-casemap.c: Likewise.
13478         * lib/unicase/u32-casemap.c: Likewise.
13479         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
13480         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13481         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
13482         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13483         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
13484         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13485
13486         New module 'unicase/u32-suffix-context'.
13487         * lib/unicase/u32-suffix-context.c: New file.
13488         * modules/unicase/u32-suffix-context: New file.
13489
13490         New module 'unicase/u16-suffix-context'.
13491         * lib/unicase/u16-suffix-context.c: New file.
13492         * modules/unicase/u16-suffix-context: New file.
13493
13494         New module 'unicase/u8-suffix-context'.
13495         * lib/unicase/u8-suffix-context.c: New file.
13496         * lib/unicase/u-suffix-context.h: New file.
13497         * modules/unicase/u8-suffix-context: New file.
13498
13499         New module 'unicase/empty-suffix-context'.
13500         * lib/unicase/empty-suffix-context.c: New file.
13501         * modules/unicase/empty-suffix-context: New file.
13502
13503         New module 'unicase/u32-prefix-context'.
13504         * lib/unicase/u32-prefix-context.c: New file.
13505         * modules/unicase/u32-prefix-context: New file.
13506
13507         New module 'unicase/u16-prefix-context'.
13508         * lib/unicase/u16-prefix-context.c: New file.
13509         * modules/unicase/u16-prefix-context: New file.
13510
13511         New module 'unicase/u8-prefix-context'.
13512         * lib/unicase/u8-prefix-context.c: New file.
13513         * lib/unicase/u-prefix-context.h: New file.
13514         * lib/unicase/context.h: New file.
13515         * modules/unicase/u8-prefix-context: New file.
13516
13517         New module 'unicase/empty-prefix-context'.
13518         * lib/unicase/empty-prefix-context.c: New file.
13519         * modules/unicase/empty-prefix-context: New file.
13520
13521         New module 'unicase/ignorable'.
13522         * lib/unicase/ignorable.c: New file.
13523         * modules/unicase/ignorable: New file.
13524
13525         New module 'unicase/cased'.
13526         * lib/unicase/caseprop.h: New file.
13527         * lib/unicase/cased.c: New file.
13528         * modules/unicase/cased: New file.
13529
13530         New functions for case mapping of substrings.
13531         * lib/unicase.h (casing_prefix_context_t): New type.
13532         (unicase_empty_prefix_context): New variable.
13533         (u8_casing_prefix_context, u16_casing_prefix_context,
13534         u32_casing_prefix_context, u8_casing_prefixes_context,
13535         u16_casing_prefixes_context, u32_casing_prefixes_context): New
13536         declarations.
13537         (casing_suffix_context_t): New type.
13538         (unicase_empty_suffix_context): New variable.
13539         (u8_casing_suffix_context, u16_casing_suffix_context,
13540         u32_casing_suffix_context, u8_casing_suffixes_context,
13541         u16_casing_suffixes_context, u32_casing_suffixes_context,
13542         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
13543         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
13544         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
13545         declarations.
13546
13547 2009-06-28  Jim Meyering  <meyering@redhat.com>
13548
13549         boostrap: indent only with spaces
13550         * build-aux/bootstrap: Indent only with spaces, never TABs.
13551
13552         bootstrap: split long lines
13553         * build-aux/bootstrap: Keep line length < 80.
13554
13555         bootstrap: sync from coreutils
13556         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
13557         just as autoreconf does.  Verify a list of prerequisite
13558         package-name,version-number pairs if defined in bootstrap.conf.
13559         Refer to README-prereq, if prerequisites are not satisfied.
13560
13561 2009-06-27  Eric Blake  <ebb9@byu.net>
13562
13563         tests: add test for bogus NULL definition
13564         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
13565         * tests/test-stdlib.c: Likewise.
13566         * tests/test-string.c: Likewise.
13567         * tests/test-locale.c: Likewise.
13568         * tests/test-unistd.c: Likewise.
13569         * modules/stdio-tests (Depends-on): Add verify.
13570         * modules/stdlib-tests (Depends-on): Likewise.
13571         * modules/string-tests (Depends-on): Likewise.
13572         * modules/locale-tests (Depends-on): Likewise.
13573         * modules/unistd-tests (Depends-on): Likewise.
13574
13575 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
13576
13577         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
13578         self-explaining comment.
13579         * m4/selinux-selinux-h: Update serial.
13580         (gl_LIBSELINUX): New macro, adding a warning for missing development
13581         packages to code extracted from...
13582         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
13583         Add warning for missing development packages here, too.
13584
13585 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
13586
13587         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
13588
13589 2009-06-25  Eric Blake  <ebb9@byu.net>
13590
13591         version-etc: fix regression
13592         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
13593         gcc.
13594         (version_etc): Use it, to catch bugs with trailing NULL.
13595         * lib/version-etc.c (version_etc_arn): Delete unused argument.
13596         (version_etc_va): Fix logic bug.
13597         * modules/version-etc-tests: Add test.
13598         * tests/test-version-etc.c: New file.
13599         * tests/test-version-etc.sh: Likewise.
13600
13601 2009-06-25  Sam Steingold  <sds@gnu.org>
13602
13603         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
13604         mbtowc declaration.
13605
13606 2009-06-25  Eric Blake  <ebb9@byu.net>
13607
13608         fpurge: migrate into <stdio.h>
13609         * lib/fpurge.h: Delete...
13610         * lib/stdio.in.h (fpurge): ...and declare here, instead.
13611         * lib/fpurge.c (fpurge): Change declaring header.
13612         * modules/fpurge (Files): Drop deleted file.
13613         (Depends-on): Add stdio.
13614         (configure.ac): Set witness.
13615         * modules/stdio (Makefile.am): Support fpurge macros.
13616         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
13617         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
13618         * lib/fflush.c: Update client.
13619         * tests/test-fpurge.c: Likewise.
13620         * NEWS: Mention the change.
13621
13622 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13623
13624         * lib/argp-version-etc.c (program_authors): Add const
13625         qualifier.
13626         * lib/version-etc.c: Fix typos in the comments.
13627         * modules/argp-version-etc: Depends on version-etc.
13628
13629 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13630
13631         argp-version-etc: new module.
13632
13633         * lib/argp-version-etc.c: New file.
13634         * lib/argp-version-etc.h: New file.
13635         * modules/argp-version-etc: New file.
13636         * modules/argp-version-etc-tests: New file.
13637         * tests/test-argp-version-etc.c: New test.
13638         * tests/test-argp-version-etc-1.sh: New test.
13639
13640 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13641
13642         Provide additional interfaces and documentation for version-etc
13643         module.
13644
13645         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
13646         interfaces.
13647         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
13648         prototypes.
13649
13650 2009-06-24  Bruno Haible  <bruno@clisp.org>
13651
13652         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
13653         HAVE_LIB${NAME} macro.
13654         Reported by Sam Steingold <sds@gnu.org>.
13655
13656 2009-06-23  Simon Josefsson  <simon@josefsson.org>
13657
13658         * modules/hash-tests (test_hash_LDADD): Link to libintl when
13659         needed.
13660
13661 2009-06-21  Bruno Haible  <bruno@clisp.org>
13662
13663         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
13664         work.
13665         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
13666         together with LIB${NAME}, LTLIB${NAME}.
13667         Reported by Sam Steingold <sds@gnu.org>.
13668
13669 2009-06-20  Jim Meyering  <meyering@redhat.com>
13670
13671         tests: make sc_require_test_exit_idiom more generic
13672         * top/maint.mk (Exit_witness_file): New overridable variable.
13673         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
13674         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
13675
13676 2009-06-19  Jim Meyering  <meyering@redhat.com>
13677
13678         hash: reverse order of src/dst parameters in an internal interface
13679         * lib/hash.c (transfer_entries): Reverse order of parameters to
13680         put DST before SRC.  Adjust callers.
13681
13682         tests: test-hash: avoid wholesale duplication
13683         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
13684         Instead, use a loop and add a single conditional.
13685
13686         tests: test-hash: allow seed selection via a command line argument
13687         * tests/test-hash.c (get_seed): New function.
13688         (main): Use it.
13689
13690 2009-06-19  Eric Blake  <ebb9@byu.net>
13691
13692         hash: avoid memory leak on allocation failure
13693         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
13694         failure.  Factor repeated algorithm...
13695         (transfer_entries): ...into new helper routine.
13696         (hash_delete): React to hash_rehash return value.
13697
13698         hash: reduce memory pressure in hash_rehash no-op case
13699         * lib/hash.c (next_prime): Avoid overflow.
13700         (hash_initialize): Factor bucket size computation...
13701         (compute_bucket_size): ...into new helper function.
13702         (hash_rehash): Use new function and open coding to reduce memory
13703         pressure, and avoid a memory leak in USE_OBSTACK code.
13704         Reported by Jim Meyering.
13705
13706 2009-06-18  Eric Blake  <ebb9@byu.net>
13707
13708         hash: make rotation more obvious
13709         * modules/hash (Depends-on): Add bitrotate and stdint.
13710         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
13711         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
13712         (SIZE_MAX): Rely on headers for definition.
13713         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
13714         (raw_hasher): Use rotr_sz.
13715         Suggested by Jim Meyering.
13716
13717         hash: fix memory leak in last patch
13718         * lib/hash.c (hash_rehash): Avoid memory leak.
13719
13720         hash: avoid no-op rehashing
13721         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
13722
13723         hash: provide default callback functions
13724         * lib/hash.c (raw_hasher, raw_comparator): New functions.
13725         (hash_initialize): Use them as defaults.
13726         * tests/test-hash.c (main): Test this.
13727
13728         hash: minor optimization
13729         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
13730         when possible.
13731         (hash_initialize): Document this promise.
13732         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
13733         * tests/test-hash.c (hash_compare_strings): Test this.
13734
13735 2009-06-18  Bruno Haible  <bruno@clisp.org>
13736
13737         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
13738         going to be replaced anyway.
13739
13740 2009-06-18  Bruno Haible  <bruno@clisp.org>
13741
13742         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
13743         in one place.
13744         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
13745         be replaced anyway.
13746
13747 2009-06-18  Eric Blake  <ebb9@byu.net>
13748
13749         hash: check for resize before insertion
13750         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
13751         threshold before insertion, so that a pathological hash_rehash
13752         that fills every bucket can still trigger another rehash.
13753
13754 2009-06-18  Jim Meyering  <meyering@redhat.com>
13755
13756         hash-tests: add a loop around the small tests
13757         * tests/test-hash.c (main): Repeat small tests with selected
13758         small initial table sizes.
13759
13760 2009-06-17  Eric Blake  <ebb9@byu.net>
13761
13762         hash: minor cleanups
13763         * lib/hash.h (hash_entry): Make opaque, by moving...
13764         * lib/hash.c (hash_entry): ...here.
13765         (hash_insert): Clarify restrictions on what can be inserted.
13766         (hash_get_next): Clarify when it is safe to remove an element
13767         during traversal.
13768         (check_tuning): Skip verification when tuning is known safe.
13769         (hash_initialize): Clarify restrictions on tuning.
13770
13771 2009-06-17  Jim Meyering  <jim@meyering.net>
13772         and Eric Blake  <ebb9@byu.net>
13773
13774         hash-tests: new module
13775         * modules/hash-tests: New file.
13776         * tests/test-hash.c: New file.
13777
13778 2009-06-17  Eric Blake  <ebb9@byu.net>
13779
13780         strstr-simple: document new module
13781         * MODULES.html.sh: Document new module.
13782
13783         strstr, strcasestr: replace on platforms with broken memchr
13784         * modules/strstr: Split into...
13785         * modules/strstr-simple: ...new module that does not care about
13786         performance, but does care about glibc bug.
13787         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
13788         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
13789         if platform memchr is broken, per Debian bug 521737.
13790         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
13791         memchr.
13792         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
13793         * doc/posix-functions/strstr.texi (strstr): Document the fix.
13794         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
13795         * modules/mountlist (Depends-on): Add strstr-simple.
13796         * modules/gen-uni-tables (Depends-on): Likewise.
13797         * modules/argz (Depends-on): Add strstr.
13798
13799 2009-06-17  Bruno Haible  <bruno@clisp.org>
13800
13801         * modules/posix_spawn-internal (Depends-on): Add errno.
13802
13803 2009-06-17  Bruno Haible  <bruno@clisp.org>
13804
13805         Define missing ESTALE on Interix 3.5.
13806         * lib/errno.in.h (ESTALE): Assign a value if missing.
13807         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
13808         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
13809         missing.
13810         * doc/posix-headers/errno.texi: Mention the Interix bug.
13811         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
13812
13813 2009-06-15  Eric Blake  <ebb9@byu.net>
13814
13815         memchr, memchr2: add valgrind exception
13816         * lib/memchr.valgrind: New file.
13817         * lib/memchr2.valgrind: New file.
13818         * modules/memchr (Files): Distribute valgrind file.
13819         * modules/memchr2 (Files): Likewise.
13820
13821         docs: memchr is no longer obsolete
13822         * MODULES.html.sh: Move memchr from obsolete to string.h section.
13823         * lib/string.in.h (memchr): Simplify logic.
13824
13825 2009-06-14  Jim Meyering  <meyering@redhat.com>
13826
13827         link-follow: fix the "checking..." message to not mention trailing slash
13828         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
13829         never considered trailing slashes.
13830
13831 2009-06-14  Bruno Haible  <bruno@clisp.org>
13832
13833         * m4/memchr.m4: Mention also the bug on IA-64.
13834         * doc/posix-functions/memchr.texi: Likewise.
13835
13836 2009-06-12  Eric Blake  <ebb9@byu.net>
13837
13838         memchr: detect broken x86_64 and alpha implementations
13839         * modules/memchr-tests (Depends-on): Move mmap detection...
13840         * modules/memchr (Depends-on): ...here.
13841         (configure.ac): Set indicator.
13842         * lib/string.in.h (memchr): Declare replacement.
13843         * modules/string (Makefile.am): Trigger replacement.
13844         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
13845         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
13846         bugs.
13847         * doc/posix-functions/memchr.texi (memchr): Document the bug.
13848         * modules/getpagesize (License): Relax license.
13849
13850 2009-06-11  Bruno Haible  <bruno@clisp.org>
13851
13852         * lib/idpriv.h: Add more references.
13853
13854 2009-06-08  Bruno Haible  <bruno@clisp.org>
13855
13856         Tests for module 'idpriv-droptemp'.
13857         * modules/idpriv-droptemp-tests: New file.
13858         * tests/test-idpriv-droptemp.sh: New file.
13859         * tests/test-idpriv-droptemp.su.sh: New file.
13860         * tests/test-idpriv-droptemp.c: New file.
13861
13862         New module 'idpriv-droptemp'.
13863         * lib/idpriv-droptemp.c: New file.
13864         * modules/idpriv-droptemp: New file.
13865
13866 2009-06-08  Bruno Haible  <bruno@clisp.org>
13867
13868         Tests for module 'idpriv-drop'.
13869         * modules/idpriv-drop-tests: New file.
13870         * tests/test-idpriv-drop.sh: New file.
13871         * tests/test-idpriv-drop.su.sh: New file.
13872         * tests/test-idpriv-drop.c: New file.
13873
13874         New module 'idpriv-drop'.
13875         * lib/idpriv.h: New file.
13876         * lib-idpriv-drop.c: New file.
13877         * m4/idpriv.m4: New file.
13878         * modules/idpriv-drop: New file.
13879
13880 2009-06-08  Bruno Haible  <bruno@clisp.org>
13881
13882         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
13883         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
13884         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
13885         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
13886         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
13887         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
13888         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
13889
13890 2009-06-08  Eric Blake  <ebb9@byu.net>
13891
13892         test-strstr: use memory fence, when possible
13893         * tests/test-strstr.c (main): Use memory fence, in order to be
13894         more likely to trigger Debian bug 521737.
13895         * modules/strstr-tests (Files): Pull in additional files.
13896
13897         memchr: no longer obsolete, for wider field testing
13898         * modules/memchr (Status, Notice): Delete, this module is no
13899         longer obsolete.
13900         * modules/vasnprintf (Depends-on): Add memchr.
13901
13902 2009-06-07  Jim Meyering  <meyering@redhat.com>
13903
13904         hash: declare some functions with the warn_unused_result attribute
13905         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
13906
13907 2009-06-07  Bruno Haible  <bruno@clisp.org>
13908
13909         * tests/test-alignof.c: Don't test int64_t if it does not exist.
13910         Reported by Eric Blake.
13911
13912 2009-06-06  Eric Blake  <ebb9@byu.net>
13913
13914         test-alignof: fix typo with long double
13915         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
13916         compiler error.
13917
13918 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
13919
13920         Escape non-texinfo { and }s.
13921         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
13922         markup error.
13923
13924 2009-06-04  Jim Meyering  <meyering@redhat.com>
13925
13926         gitlog-to-changelog: don't infloop on an empty commit log
13927         * build-aux/gitlog-to-changelog: Warn about an empty log message.
13928         Reported by Boris Petersen <transacid@centerim.org>.
13929
13930 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
13931
13932         version-etc: extend for packagers
13933         Add three new configure options, intended for packagers:
13934           --with-packager="packager name"
13935           --with-packager-version="packager-specific version"
13936           --with-packager-bug-reports="packager bug reporting"
13937         An example with coreutils:
13938           $ ./configure \
13939             --with-packager=Gentoo \
13940             --with-packager-bug-report=http://bugs.gentoo.org/ \
13941             --with-packager-version="patchset 1.6"
13942           $ ./src/ls --version | head -n2
13943           ls (GNU coreutils) 7.1-dirty
13944           Packaged by Gentoo (patchset 1.6)
13945         Note that the bug reporting info via --help doesn't show up because
13946         coreutils uses its own custom emit_bug_reporting_address() implementation
13947         in src/system.h.  If it didn't, it'd look like:
13948           $ ./src/ls --help | tail -n4
13949           Report bugs to <bug-coreutils@gnu.org>.
13950           Report Gentoo bugs to <http://bugs.gentoo.org/>.
13951           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
13952           General help using GNU software: <http://www.gnu.org/gethelp/>.
13953         * lib/version-etc.c: Print new information, if provided.
13954         * m4/version-etc.m4: New file.
13955         * modules/version-etc (Files): Add m4/version-etc.m4.
13956         (configure.ac): Add gl_VERSION_ETC.
13957
13958 2009-05-31  Bruno Haible  <bruno@clisp.org>
13959
13960         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
13961         and 'int64_t'.
13962         * modules/alignof-tests (Dependencies): Add stdint.
13963         Reported by Eric Blake.
13964
13965 2009-05-31  Bruno Haible  <bruno@clisp.org>
13966
13967         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
13968         restriction due to compiler bugs.
13969         Reported by Eric Blake.
13970
13971 2009-05-31  Simon Josefsson  <simon@josefsson.org>
13972             Bruno Haible  <bruno@clisp.org>
13973
13974         Fix test-alignof failure.
13975         * lib/alignof.h (alignof_slot): New macro.
13976         (alignof_type): New macro, with the same semantics as the previous
13977         'alignof'.
13978         (alignof): Alias to alignof_slot.
13979         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
13980         check that the results are usable as constant expressions.
13981
13982 2009-05-31  Bruno Haible  <bruno@clisp.org>
13983
13984         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
13985         * tests/test-memchr.c (main): Check that memchr does not read past the
13986         first occurrence of the byte.
13987         * tests/test-strstr.c (main): Update comment.
13988         Suggested by Eric Blake.
13989
13990 2009-05-30  Bruno Haible  <bruno@clisp.org>
13991
13992         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
13993         detail how to use dumpbin.
13994         Reported by David Byron <dbyron@dbyron.com>.
13995
13996 2009-06-02  Simon Josefsson  <simon@josefsson.org>
13997
13998         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
13999
14000 2009-06-02  Simon Josefsson  <simon@josefsson.org>
14001
14002         * m4/manywarnings.m4: Add GCC 4.4 warnings.
14003
14004 2009-05-28  Bruno Haible  <bruno@clisp.org>
14005
14006         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
14007         build-aux/ files.
14008
14009 2009-05-28  Simon Josefsson  <simon@josefsson.org>
14010
14011         * gnulib-tool (func_import): Transform license on build-aux/ files too.
14012
14013 2009-05-27  Simon Josefsson  <simon@josefsson.org>
14014
14015         * gnulib-tool (sed_transform_main_lib_file)
14016         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
14017         regexps.
14018
14019 2009-05-26  Simon Josefsson  <simon@josefsson.org>
14020
14021         * tests/test-strstr.c: Add another self-test.
14022         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
14023         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
14024
14025 2009-05-23  Bruno Haible  <bruno@clisp.org>
14026
14027         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
14028         change.
14029
14030 2009-05-21  Bruno Haible  <bruno@clisp.org>
14031
14032         Simplify use of mode_t varargs.
14033         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
14034         uses 'mode_t' or 'int'.
14035         * lib/openat.c (openat): Likewise.
14036         * lib/open-safer.c (open_safer): Likewise.
14037         * m4/mode_t.m4: New file.
14038         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
14039         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
14040         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
14041         * modules/open (Files): Add m4/mode_t.m4.
14042         * modules/openat (Files): Likewise.
14043         * modules/fcntl-safer (Files): Likewise.
14044         Suggested by Eric Blake.
14045
14046 2009-05-21  Pádraig Brady  <P@draigbrady.com>
14047
14048         * doc/glibc-functions/fallocate.texi: New file.
14049         * doc/gnulib.texi: Include it.
14050
14051 2009-05-21  Eric Blake  <ebb9@byu.net>
14052             Bruno Haible  <bruno@clisp.org>
14053
14054         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
14055         invocations.
14056         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
14057
14058 2009-05-21  Eric Blake  <ebb9@byu.net>
14059             Bruno Haible  <bruno@clisp.org>
14060
14061         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
14062         include_next. Fix of 2008-11-20 commit.
14063         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
14064         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
14065         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
14066         NEXT_MATH_H.
14067         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
14068         instead of NEXT_MATH_H.
14069
14070 2009-05-21  Bruno Haible  <bruno@clisp.org>
14071
14072         Avoid redefinition warnings for SIZE_MAX.
14073         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
14074         Reported by Simon Josefsson.
14075
14076 2009-05-21  Bruno Haible  <bruno@clisp.org>
14077
14078         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
14079         AC_CACHE_VAL.
14080
14081 2009-05-20  Bruno Haible  <bruno@clisp.org>
14082
14083         Make zeroptr.h work on mingw.
14084         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
14085         mprotect.
14086         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
14087         * modules/memchr2-tests (configure.ac): Likewise.
14088         * modules/memcmp-tests (configure.ac): Likewise.
14089         * modules/memmem-tests (configure.ac): Likewise.
14090         * modules/memrchr-tests (configure.ac): Likewise.
14091         Reported by Simon Josefsson.
14092
14093 2009-05-20  Simon Josefsson  <simon@josefsson.org>
14094
14095         * tests/test-glob.c: Include string.h for strcmp prototype.
14096
14097 2009-05-20  Simon Josefsson  <simon@josefsson.org>
14098
14099         * modules/getdelim (Depends-on): Add explicit stdint, although it
14100         was implicitly already pulled in via realloc-posix.
14101         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
14102
14103 2009-05-20  Simon Josefsson  <simon@josefsson.org>
14104
14105         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
14106         G. Christensen" <tgc@jupiterrise.com>.
14107         * m4/sys_socket_h.m4: Check for sa_family_t.
14108         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
14109         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
14110         * tests/test-sys_socket.c: Check that sa_family_t works.
14111
14112 2009-05-18  Eric Blake  <ebb9@byu.net>
14113
14114         maint.mk: allow gnulib_dir in VPATH build
14115         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
14116
14117 2009-05-15  Jim Meyering  <meyering@redhat.com>
14118
14119         maint.mk: Give gnulib_dir a default definition.
14120         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
14121         Thus, most packages no longer need to specify this variable in cfg.mk
14122
14123 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
14124
14125         rename.m4: fix typos that would make non-mingw cross-configure fail
14126         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
14127
14128 2009-05-13  Eric Blake  <ebb9@byu.net>
14129
14130         mmap-anon: avoid out-of-order autoconf expansion
14131         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
14132         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
14133         * modules/memchr-tests (Depends-on): Add extensions.
14134         * modules/memchr2-tests (Depends-on): Add extensions.
14135         * modules/memcmp-tests (Depends-on): Add extensions.
14136         * modules/memmem-tests (Depends-on): Add extensions.
14137         * modules/memrchr-tests (Depends-on): Add extensions.
14138
14139 2009-05-13  Bruno Haible  <bruno@clisp.org>
14140
14141         Make some tests ISO C 99 compliant.
14142         * tests/zerosize-ptr.h: New file.
14143         * tests/test-memchr.c: Include zerosize-ptr.h.
14144         (main): Use a zero-size object pointer instead of NULL.
14145         * tests/test-memchr2.c: Include zerosize-ptr.h.
14146         (main): Use a zero-size object pointer instead of NULL.
14147         * tests/test-memcmp.c: Include zerosize-ptr.h.
14148         (main): Use a zero-size object pointer instead of NULL.
14149         * tests/test-memmem.c: Include zerosize-ptr.h.
14150         (main): Use a zero-size object pointer instead of NULL.
14151         * tests/test-memrchr.c: Include zerosize-ptr.h.
14152         (main): Use a zero-size object pointer instead of NULL.
14153         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
14154         m4/mmap-anon.m4.
14155         (Depends-on): Add getpagesize.
14156         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14157         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
14158         m4/mmap-anon.m4.
14159         (Depends-on): Add getpagesize.
14160         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14161         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
14162         m4/mmap-anon.m4.
14163         (Depends-on): Add getpagesize.
14164         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14165         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
14166         m4/mmap-anon.m4.
14167         (Depends-on): Add getpagesize.
14168         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14169         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
14170         m4/mmap-anon.m4.
14171         (Depends-on): Add getpagesize.
14172         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14173
14174 2009-05-12  Bruno Haible  <bruno@clisp.org>
14175
14176         Tests for module 'alignof'.
14177         * modules/alignof-tests: New file.
14178         * tests/test-alignof.c: New file.
14179
14180 2009-05-12  Bruno Haible  <bruno@clisp.org>
14181
14182         Fix alignof macro.
14183         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
14184         vendor compilers that are always correct.
14185
14186 2009-05-12  Bruno Haible  <bruno@clisp.org>
14187
14188         Make the MAP_ANONYMOUS detection work on HP-UX 11.
14189         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
14190         not whether its fully works.
14191
14192 2009-05-12  Bruno Haible  <bruno@clisp.org>
14193
14194         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
14195
14196 2009-05-12  Jim Meyering  <meyering@redhat.com>
14197
14198         * top/maint.mk: Adjust backslash alignment.
14199
14200 2009-05-11  Simon Josefsson  <simon@josefsson.org>
14201
14202         * top/maint.mk: Make $(srcdir)/build-aux configurable.
14203
14204 2009-05-11  Eric Blake  <ebb9@byu.net>
14205
14206         argp: avoid undefined behavior
14207         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
14208         macros.
14209
14210 2009-05-08  Simon Josefsson  <simon@josefsson.org>
14211
14212         * tests/test-vc-list-files-git.sh: Do git config of user.email and
14213         user.name to prevent git commit from complaining.
14214
14215 2009-05-10  Bruno Haible  <bruno@clisp.org>
14216
14217         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
14218         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
14219         it rewrites every file name only once.
14220         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
14221
14222 2009-05-08  Bruno Haible  <bruno@clisp.org>
14223
14224         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
14225         instead of 'max'.
14226
14227 2009-05-08  Simon Josefsson  <simon@josefsson.org>
14228
14229         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
14230         sockaddr_storage test.
14231
14232 2009-05-07  Simon Josefsson  <simon@josefsson.org>
14233
14234         * modules/sys_socket (Makefile.am): Substitute
14235         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
14236         * m4/sys_socket_h.m4: Check for sockaddr_storage.
14237         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
14238         * tests/test-sys_socket.c: Check sockaddr_storage.
14239
14240 2009-05-08  Bruno Haible  <bruno@clisp.org>
14241
14242         New module 'alignof'.
14243         * lib/alignof.h: New file.
14244         * modules/alignof: New file.
14245
14246 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14247             Bruno Haible  <bruno@clisp.org>
14248
14249         Fix test-file-has-acl on FreeBSD.
14250         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
14251         mask is implicitly added.
14252         * tests/test-file-has-acl.c: Include <signal.h>.
14253         (main): Terminate the test after 5 seconds.
14254         * modules/acl-tests (configure.ac): Check for alarm function.
14255
14256 2009-05-04  Bruno Haible  <bruno@clisp.org>
14257
14258         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
14259         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
14260         * modules/errno (configure.ac): Drop AC_REQUIRE.
14261         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
14262         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
14263
14264 2009-05-04  Simon Josefsson  <simon@josefsson.org>
14265
14266         * modules/glob-tests: New module.
14267         * tests/test-glob.c: Add.
14268
14269 2009-05-04  Simon Josefsson  <simon@josefsson.org>
14270
14271         * modules/fnmatch-tests: New module.
14272         * tests/test-fnmatch.c: Add.
14273
14274 2009-05-04  Eric Blake  <ebb9@byu.net>
14275
14276         maint: make the new no-submodule-changes rule VPATH-safe
14277         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
14278
14279 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14280             Bruno Haible  <bruno@clisp.org>
14281
14282         acl: Fix infinite loop on FreeBSD.
14283         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
14284         of return value from acl_get_entry.
14285         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
14286         Likewise.
14287
14288 2009-05-03  Bruno Haible  <bruno@clisp.org>
14289
14290         * lib/acl-internal.h (acl_entries): Clarify return value.
14291         * lib/acl_entries.c (acl_entries): Likewise.
14292
14293 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14294
14295         Bug fix in acl module.
14296         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
14297
14298 2009-05-03  Bruno Haible  <bruno@clisp.org>
14299
14300         Create gperf-generated file in the source dir, not in the build dir.
14301         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
14302         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
14303         * modules/unicase/locale-language (unicase/locale-languages.h):
14304         Likewise.
14305         * modules/unicase/special-casing (unicase/special-casing-table.h):
14306         Likewise.
14307         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
14308         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
14309         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
14310         Reported by Ralf Wildenhues.
14311
14312 2009-05-03  Bruno Haible  <bruno@clisp.org>
14313
14314         * modules/fnmatch (Description, configure.ac): Taken from
14315         fnmatch-posix.
14316         * modules/fnmatch-posix: Turn into a symbolic reference to the
14317         'fnmatch' module, and deprecate.
14318         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
14319
14320 2009-05-03  Bruno Haible  <bruno@clisp.org>
14321
14322         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
14323         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
14324         Reported by Ralf Wildenhues.
14325
14326 2009-05-04  Simon Josefsson  <simon@josefsson.org>
14327
14328         * m4/fnmatch.m4: Fix fnmatch re-define.
14329
14330 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14331
14332         priv-set: new module and tests; adapt write-any-file
14333         * lib/priv-set.c: New file.
14334         * lib/priv-set.h: New file.
14335         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
14336         * lib/write-any-file.c: Simplify by using priv-set module.
14337         * m4/priv-set.m4: New file.
14338         * modules/priv-set: New file.
14339         * modules/unlinkdir: Add dependency on priv-set module.
14340         * modules/write-any-file: Likewise.
14341
14342         Tests for module 'priv-set'.
14343         * modules/priv-set-tests: New file.
14344         * tests/test-priv-set.c: New file.
14345
14346 2009-05-03  Jim Meyering  <meyering@redhat.com>
14347             Bruno Haible  <bruno@clisp.org>
14348
14349         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
14350         use the converted UTF-8 variant of the name instead.
14351
14352 2009-05-03  Jim Meyering  <meyering@redhat.com>
14353
14354         tests: tighten some getdate tests
14355         * tests/test-getdate.c (main): Tighten tests: require equality,
14356         not just greater than.  Set TZ envvar to UTC0.
14357
14358 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
14359
14360         getdate: correctly interpret "next monday" when run on a Monday
14361         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
14362         that e.g., "next tues" (when run on a tuesday) results in a date
14363         that is one week in the future, and not today's date.
14364         I.e., add a week when the wday is the same as the current one.
14365         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
14366         and earlier by Martin Bernreuther and Jan Minář.
14367         * tests/test-getdate.c (main): Check that "next DAY" is always in
14368         the future and that "last DAY" is always in the past.
14369
14370 2009-05-02  Jim Meyering  <meyering@redhat.com>
14371
14372         build: ensure that a release build fails when a submodule is unclean
14373         * top/maint.mk (no-submodule-changes): New rule.
14374         (alpha beta major): Depend on it.
14375
14376 2009-05-02  Bruno Haible  <bruno@clisp.org>
14377
14378         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
14379         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
14380         shell variable gl_fnmatch_required to detect which variant is
14381         requested.
14382         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
14383         gl_FUNC_FNMATCH_POSIX.
14384         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
14385         exclude fnmatch-posix.
14386
14387 2009-05-02  Bruno Haible  <bruno@clisp.org>
14388
14389         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
14390         * modules/mbsrtowcs (License): Change to LGPLv2+.
14391         * modules/strnlen1 (License): Likewise.
14392         Reported by Simon Josefsson.
14393
14394 2009-05-02  Bruno Haible  <bruno@clisp.org>
14395
14396         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
14397         "cross".
14398         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
14399         gnulib-tool was called with option --source-base=lib.
14400
14401 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14402
14403         Use automake *-local hooks without commands, for extensibility.
14404         * modules/localcharset (Makefile.am): Rename install-exec-local
14405         rule to install-exec-localcharset, and make it a prerequisite of
14406         install-exec-local.  Likewise, rename the uninstall-local rule to
14407         uninstall-localcharset, and make it a prerequisite of the former.
14408
14409 2009-05-01  Bruno Haible  <bruno@clisp.org>
14410
14411         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
14412         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
14413         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
14414         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
14415         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
14416         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
14417         m4/locale-zh.m4, m4/codeset.m4.
14418
14419         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
14420         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
14421         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
14422         m4/locale-zh.m4.
14423
14424         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
14425         REPLACE_WCRTOMB if mbstate_t must be replaced.
14426         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
14427         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
14428
14429 2009-05-01  Bruno Haible  <bruno@clisp.org>
14430
14431         Avoid compiler warnings when redefining macros defined by <libintl.h>.
14432         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
14433         dngettext, dcngettext, textdomain, bindtextdomain,
14434         bind_textdomain_codeset): Undefine before redefining.
14435
14436 2009-04-30  Bruno Haible  <bruno@clisp.org>
14437
14438         Fix bug introduced on 2009-04-25.
14439         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
14440         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
14441         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
14442         is defined.
14443         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
14444         is defined.
14445         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
14446         is defined.
14447         Reported by Elbert_Pol <elbert.pol@gmail.com>.
14448
14449 2009-04-28  Bruno Haible  <bruno@clisp.org>
14450
14451         Comment tweaks.
14452         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
14453         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
14454         * lib/unicase.h (u*_casexfrm): Likewise.
14455         Reported by Paolo Bonzini.
14456
14457 2009-04-28  Bruno Haible  <bruno@clisp.org>
14458
14459         Fix a compilation error.
14460         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
14461         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
14462         Reported by Jim Meyering.
14463
14464 2009-04-27  Bruno Haible  <bruno@clisp.org>
14465
14466         New module 'libunistring'.
14467         * modules/libunistring: New file.
14468         * m4/libunistring.m4: New file.
14469         * MODULES.html.sh (Unicode string functions): Add it.
14470
14471 2009-04-27  Eric Blake  <ebb9@byu.net>
14472
14473         maint.mk: allow package-specific header to provide <config.h>
14474         * top/maint.mk (sc_require_config_h): New variable.
14475         (sc_require_config_h, sc_require_config_h_first): Use it.
14476
14477 2009-04-27  Simon Josefsson  <simon@josefsson.org>
14478
14479         * top/maint.mk (sc_avoid_if_before_free): Except
14480         useless-if-before-free script.
14481
14482 2009-04-27  Eric Blake  <ebb9@byu.net>
14483
14484         maintainer-makefile: depend on all required helper scripts
14485         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
14486         useless-if-before-free.
14487         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
14488         version, rather than assuming gnulib checkout is available.
14489         Reported by Simen Josefsson.
14490
14491 2009-04-26  Bruno Haible  <bruno@clisp.org>
14492
14493         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
14494         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
14495         "../" or "..".
14496
14497 2009-04-26  Bruno Haible  <bruno@clisp.org>
14498
14499         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
14500         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
14501         AC_LIB_HAVE_LINKFLAGS.
14502
14503 2009-04-26  Bruno Haible  <bruno@clisp.org>
14504
14505         Simplify calling convention of u*_conv_from_encoding.
14506         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
14507         u32_conv_from_encoding): Expect a resultbuf argument and return the
14508         result directly as a pointer.
14509         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
14510         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
14511         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
14512         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
14513         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
14514         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
14515         Update.
14516         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
14517         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
14518         * lib/vasnprintf.c (VASNPRINTF): Update.
14519         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
14520         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
14521         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
14522         * NEWS: Mention the change.
14523
14524 2009-04-26  Bruno Haible  <bruno@clisp.org>
14525
14526         Simplify calling convention of u*_conv_to_encoding.
14527         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
14528         u32_conv_to_encoding): Expect a resultbuf argument and return the
14529         result directly as a pointer.
14530         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
14531         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
14532         freeing scaled_offsets if mem_iconveha failed.
14533         * lib/unicase/u-casexfrm.h (FUNC): Update.
14534         * lib/uninorm/u-normxfrm.h (FUNC): Update.
14535         * lib/vasnprintf.c (VASNPRINTF): Update.
14536         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
14537         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
14538         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
14539         * NEWS: Mention the change.
14540
14541 2009-04-26  Bruno Haible  <bruno@clisp.org>
14542
14543         Avoid test failures on AIX and OSF/1.
14544         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
14545         malloc(0).
14546         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
14547         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
14548         Likewise.
14549         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
14550         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
14551         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
14552         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
14553         * doc/posix-functions/malloc.texi: Document the portability problem
14554         related to malloc(0).
14555
14556 2009-04-26  Bruno Haible  <bruno@clisp.org>
14557
14558         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
14559         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
14560         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
14561
14562 2009-04-25  Bruno Haible  <bruno@clisp.org>
14563
14564         Avoid link error when creating a namespace clean library.
14565         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
14566         as macro with arguments if already defined as an alias.
14567         * lib/signbitf.c (gl_signbitf): Don't undefine.
14568         * lib/signbitd.c (gl_signbitd): Don't undefine.
14569         * lib/signbitl.c (gl_signbitl): Don't undefine.
14570
14571 2009-04-25  Jim Meyering  <meyering@redhat.com>
14572
14573         vc-list-files: fix another quoting bug
14574         * build-aux/vc-list-files: Avoid sed backslash expansion
14575         of pathological directory names.
14576
14577 2009-04-25  Eric Blake  <ebb9@byu.net>
14578
14579         vc-list-files: fix shell quoting error
14580         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
14581         timestamp.
14582
14583 2009-04-25  Jim Meyering  <meyering@redhat.com>
14584
14585         vc-list-files: restore lost functionality with subdir argument
14586         * build-aux/vc-list-files: When given a non-"." sub-directory
14587         argument, substitute the $dir/ prefix back onto each resulting name.
14588         Otherwise, coreutils' root_tests check would fail.
14589
14590 2009-04-24  Eric Blake  <ebb9@byu.net>
14591
14592         vc-list-files: ignore git symlinks
14593         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
14594         than ls-files, to ignore git symlinks.
14595
14596         maint.mk: import improvements from m4
14597         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
14598         (move_if_change): Delete unused macro.
14599         (news-date-check, vc-diff-check): Support VPATH builds.
14600         (announcement): Likewise.  Split --bootstrap-tools list...
14601         (boostrap-tools): ...into separate list, which can be overridden
14602         in cfg.mk.
14603         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
14604         requiring dependency on useless-if-before-free module.
14605         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
14606         Support VPATH builds.
14607
14608 2009-04-24  Jim Meyering  <meyering@redhat.com>
14609
14610         maint.mk: remove coreutils-specific rules and variables
14611         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
14612         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
14613         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
14614
14615         maint.mk: remove obsolete rule
14616         * top/maint.mk (rel-check): Remove rule.
14617         (WGET, WGETFLAGS): Remove now-unused variables.
14618
14619 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14620
14621         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
14622         consistency.
14623
14624         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
14625         '$(PATH_SEPARATOR)' instead of ':'.
14626
14627 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14628
14629         * lib/getopt1.c (main): Use 'const' for static array.
14630
14631 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14632
14633         * top/maint.mk: Sync with coreutils.
14634         * NEWS: Explain incompatibilities.
14635
14636 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14637             Bruno Haible  <bruno@clisp.org>
14638
14639         Fix cross-compilation results.
14640         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
14641         statement, as third argument of AC_TRY_RUN.
14642         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
14643         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
14644         Likewise.
14645         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14646         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
14647         Likewise.
14648         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14649         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
14650         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
14651
14652 2009-04-20  Bruno Haible  <bruno@clisp.org>
14653
14654         Avoid test failure on mingw.
14655         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
14656
14657 2009-04-20  Bruno Haible  <bruno@clisp.org>
14658
14659         Avoid compilation error on mingw.
14660         * modules/localename-tests (Depends-on): Add locale.
14661
14662 2009-04-19  Bruno Haible  <bruno@clisp.org>
14663
14664         Support for building a shared library on Windows platforms.
14665         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
14666         (main): Test the presence of UNINORM_NFC here.
14667         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
14668         (main): Test the presence of UNINORM_NFD here.
14669         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
14670         (main): Test the presence of UNINORM_NFKC here.
14671         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
14672         (main): Test the presence of UNINORM_NFKD here.
14673
14674 2009-04-19  Bruno Haible  <bruno@clisp.org>
14675
14676         Avoid a compiler warning.
14677         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
14678         Change type of variable 'sequence'.
14679
14680 2009-04-19  Bruno Haible  <bruno@clisp.org>
14681
14682         * modules/configmake (Makefile.am): When the contents of configmake.h
14683         does not change, arrange to preserve its modification time.
14684
14685 2009-04-17  Simon Josefsson  <simon@josefsson.org>
14686
14687         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
14688         gettext domain.
14689
14690 2009-04-16  Jim Meyering  <meyering@redhat.com>
14691
14692         useless-if-before-free: improve conversion code
14693         * build-aux/useless-if-before-free: Adjust code-in-comment to match
14694         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
14695
14696 2009-04-14  Bruno Haible  <bruno@clisp.org>
14697
14698         * modules/fcntl (Depends-on): Add extensions.
14699         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
14700
14701 2009-04-12  Ben Pfaff  <blp@gnu.org>
14702
14703         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
14704         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
14705
14706 2009-03-20  Ben Pfaff  <blp@gnu.org>
14707
14708         Make rename replace existing destinations on Windows.
14709         * m4/rename.m4: Add test for Mingw.
14710         * lib/rename.c: Add rename replacement that uses MoveFileEx with
14711         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
14712         * doc/posix-functions/rename.texi: Document.
14713
14714 2009-04-10  Bruno Haible  <bruno@clisp.org>
14715
14716         New include file "iconveh.h".
14717         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
14718         * lib/striconveh.h: Include it.
14719         (enum iconv_ilseq_handler): Remove definition.
14720         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
14721         striconveh.h.
14722         * lib/striconveha.c: Include striconveh.h.
14723         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
14724         * modules/striconveh (Files): Add lib/iconveh.h.
14725         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
14726         lib/striconveh.h.
14727
14728 2009-04-10  Bruno Haible  <bruno@clisp.org>
14729
14730         * lib/uniconv.h: Update comment.
14731
14732 2009-04-10  Bruno Haible  <bruno@clisp.org>
14733
14734         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
14735         always.
14736         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
14737         * lib/unistr/u16-mbtouc-aux.c: Likewise.
14738         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
14739         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
14740         "unistring-notinline.h", so that the function gets defined always.
14741         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
14742         * lib/unistr/u8-uctomb.c: Likewise.
14743         * lib/unistr/u16-mbtouc.c: Likewise.
14744         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
14745         * lib/unistr/u16-uctomb.c: Likewise.
14746         * lib/unistr/u32-mbtouc.c: Likewise.
14747         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
14748         * lib/unistr/u32-uctomb.c: Likewise.
14749
14750 2009-04-10  Bruno Haible  <bruno@clisp.org>
14751
14752         Mark 'utime' obsolete.
14753         * modules/utime (Status, Notice): New sections.
14754         Suggested by Jim Meyering.
14755
14756         Fix cross-compile guess for utime test.
14757         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
14758         autoconf.
14759         * doc/posix-functions/utime.texi: Give more precisions.
14760         Reported by Jan <ipif@ymail.com>.
14761
14762 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
14763
14764         filevercmp: correct today's change
14765         * lib/filevercmp.c: Also handle coreutils' test inputs.
14766         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
14767
14768         Fix regression in 'filevercmp' module. Thanks Sven Joachim
14769         for reporting it.
14770         * lib/filevercmp.c: Special handle for "", "." and "..".
14771         * tests/test-filevercmp.c: Enlarge the set suite.
14772
14773 2009-04-07  Jim Meyering  <meyering@redhat.com>
14774
14775         useless-if-before-free: show how to remove braced useless free, too
14776         * build-aux/useless-if-before-free: still only in a comment, though.
14777
14778 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
14779
14780         maint.mk: import changes to syntax-check macros from coreutils
14781         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
14782         Use them in the relevant macros.
14783
14784 2009-04-06  Bruno Haible  <bruno@clisp.org>
14785
14786         Fix unportable use of bit-fields.
14787         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
14788         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
14789         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
14790
14791 2009-04-06  Bruno Haible  <bruno@clisp.org>
14792
14793         Avoid test failures on AIX and OSF/1.
14794         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
14795         that malloc(0) = NULL.
14796         * tests/unicase/test-u8-tolower.c (check): Likewise.
14797         * tests/unicase/test-u8-totitle.c (check): Likewise.
14798         * tests/unicase/test-u8-toupper.c (check): Likewise.
14799         * tests/unicase/test-u16-casefold.c (check): Likewise.
14800         * tests/unicase/test-u16-tolower.c (check): Likewise.
14801         * tests/unicase/test-u16-totitle.c (check): Likewise.
14802         * tests/unicase/test-u16-toupper.c (check): Likewise.
14803         * tests/unicase/test-u32-casefold.c (check): Likewise.
14804         * tests/unicase/test-u32-tolower.c (check): Likewise.
14805         * tests/unicase/test-u32-totitle.c (check): Likewise.
14806         * tests/unicase/test-u32-toupper.c (check): Likewise.
14807         * tests/uninorm/test-u8-nfc.c (check): Likewise.
14808         * tests/uninorm/test-u8-nfd.c (check): Likewise.
14809         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
14810         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
14811         * tests/uninorm/test-u16-nfc.c (check): Likewise.
14812         * tests/uninorm/test-u16-nfd.c (check): Likewise.
14813         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
14814         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
14815         * tests/uninorm/test-u32-nfc.c (check): Likewise.
14816         * tests/uninorm/test-u32-nfd.c (check): Likewise.
14817         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
14818         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
14819
14820 2009-04-05  Bruno Haible  <bruno@clisp.org>
14821
14822         Work around an autoconf limitation.
14823         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
14824         comment line if it would be longer than 3 KB.
14825
14826 2009-04-05  Bruno Haible  <bruno@clisp.org>
14827
14828         Avoid test failure with libiconv-1.13.
14829         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
14830         of the expected test results.
14831
14832 2009-04-05  Bruno Haible  <bruno@clisp.org>
14833
14834         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
14835         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
14836         that it should be installed.
14837
14838 2009-04-05  Bruno Haible  <bruno@clisp.org>
14839
14840         * gnulib-tool: New option --copy-file.
14841         (func_usage): Document it.
14842         (func_dest_tmpfilename): Moved out of func_import.
14843         (func_add_file, func_update_file): New functions, extracted from
14844         func_import.
14845         (func_import): Update.
14846
14847 2009-04-05  Karl Berry  <karl@gnu.org>
14848
14849         * README: prominently mention gnulib-tool.
14850         Rearrange sections so getting the code is near the top.
14851
14852 2009-04-05  Bruno Haible  <bruno@clisp.org>
14853
14854         * lib/unicase.h: Mention u*_cmp2.
14855         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
14856         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
14857         * lib/unicase/ulc-casecmp.c: Likewise.
14858         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
14859         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
14860         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
14861         unistr/u8-cmp.
14862         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
14863         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
14864         unistr/u16-cmp.
14865         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
14866         unistr/u32-cmp.
14867
14868         * lib/uninorm.h: Mention u*_cmp2.
14869         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
14870         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
14871         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
14872         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
14873         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
14874         unistr/u8-cmp.
14875         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
14876         unistr/u16-cmp.
14877         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
14878         unistr/u32-cmp.
14879
14880         New module 'unistr/u32-cmp2'.
14881         * lib/unistr/u32-cmp2.c: New file.
14882         * modules/unistr/u32-cmp2: New file.
14883
14884         New module 'unistr/u16-cmp2'.
14885         * lib/unistr/u16-cmp2.c: New file.
14886         * modules/unistr/u16-cmp2: New file.
14887
14888         New module 'unistr/u8-cmp2'.
14889         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
14890         * lib/unistr/u8-cmp2.c: New file.
14891         * lib/unistr/u-cmp2.h: New file.
14892         * modules/unistr/u8-cmp2: New file.
14893
14894 2009-04-05  Bruno Haible  <bruno@clisp.org>
14895
14896         * lib/unictype.h (uc_property_is_valid): New macro.
14897         * tests/unictype/test-pr_byname.c (main): Use it.
14898
14899         * lib/unistr.h: Doc fixes.
14900         * lib/uniconv.h: Doc fixes.
14901         * lib/unictype.h: Doc fixes.
14902
14903 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
14904
14905         Port coreutils 7.2 to Solaris 8.
14906
14907         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
14908         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
14909         for Solaris 8.  This is a bit of a hack, as it means it's the
14910         caller's responsibility to add -lnsl if needed, but most likely it
14911         won't be needed since only getaddrinfo uses this and getaddrinfo
14912         isn't needed on Solaris 8.
14913
14914         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
14915         problem to Solaris 8 encountered with coreutils 7.2, which
14916         resulted in a message "fnmatch.c:292: warning: passing argument 4
14917         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
14918         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
14919
14920 2009-04-03  Simon Josefsson  <simon@josefsson.org>
14921
14922         * m4/ld-version-script.m4: Add FIXME comment.
14923
14924 2009-04-02  Simon Josefsson  <simon@josefsson.org>
14925
14926         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
14927         SOVERSION variable.
14928
14929 2009-04-02  Bruno Haible  <bruno@clisp.org>
14930
14931         * Makefile (info, html, dvi, pdf): Combine the rules.
14932         Suggested by Jim Meyering.
14933
14934 2009-04-01  Bruno Haible  <bruno@clisp.org>
14935
14936         * Makefile (info, html, dvi, pdf): New targets.
14937         Reported by Reuben Thomas <rrt@sc3d.org>.
14938
14939 2009-04-01  Bruno Haible  <bruno@clisp.org>
14940
14941         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
14942         can be put into PATH.
14943         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
14944
14945 2009-04-01  Bruno Haible  <bruno@clisp.org>
14946
14947         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
14948
14949 2009-04-01  Bruno Haible  <bruno@clisp.org>
14950
14951         Rename module 'visibility'.
14952         * modules/lib-symbol-visibility: Renamed from modules/visibility.
14953         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
14954         * doc/gnulib.texi: Update.
14955         * MODULES.html.sh (Misc): Update.
14956         * NEWS: Mention the change.
14957
14958 2009-04-01  Simon Josefsson  <simon@josefsson.org>
14959
14960         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
14961         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
14962         Eric Blake <ebb9@byu.net> for review.
14963         * MODULES.html.sh: Add lib-msvc-compat.
14964         * doc/gnulib.texi: Link to new section.
14965         * m4/ld-output-def.m4: New file.
14966         * doc/ld-output-def.texi: New file.
14967
14968 2009-04-01  Simon Josefsson  <simon@josefsson.org>
14969
14970         Rename ld-version-script to lib-symbol-versions.  Suggested by
14971         Bruno Haible <bruno@clisp.org>.
14972         * modules/ld-version-script: Renamed to lib-symbol-versions.
14973         * doc/ld-version-script.texi: Fix module name.
14974         * MODULES.html.sh: Add lib-symbol-versions.
14975
14976 2009-03-31  Simon Josefsson  <simon@josefsson.org>
14977
14978         * modules/u64-tests: New file.
14979         * tests/test-u64.c: New file.
14980
14981 2009-03-04  Simon Josefsson  <simon@josefsson.org>
14982
14983         * MODULES.html.sh: Mention u64.
14984         * modules/u64: New module.
14985         * modules/crypto/sha512: Depend on u64 module instead of providing
14986         u64.h.
14987
14988 2009-03-27  Eric Blake  <ebb9@byu.net>
14989
14990         test-strerror: make debugging EAI_SYSTEM easier
14991         * modules/getaddrinfo-tests (Depends-on): Add strerror.
14992         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
14993         failure was EAI_SYSTEM.
14994
14995 2009-03-25  Bruno Haible  <bruno@clisp.org>
14996
14997         Fix a problem with --enable-relocatable on Solaris 7.
14998         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
14999         since 2008-02-24.
15000
15001 2009-03-25  Eric Blake  <ebb9@byu.net>
15002
15003         test-sockets: avoid gcc warning
15004         * tests/test-sockets.c (main): Silence compiler warning.
15005
15006 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
15007
15008         New modules nproc, pthread, contributed by Glen Lenker.
15009
15010         * MODULES.html.sh: Add pthread, nproc.
15011         * lib/nproc.c: New file.
15012         * lib/nproc.h: New file.
15013         * lib/pthread.in.h: New file.
15014         * m4/pthread.m4: New file.
15015         * modules/nproc: New file.
15016         * modules/pthread: New file.
15017
15018 2009-03-24  Simon Josefsson  <simon@josefsson.org>
15019
15020         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
15021         New variable.
15022
15023 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
15024
15025         filevercmp: handle simple~ and numbered.~3~ backup suffixes
15026         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
15027         * tests/test-filevercmp.c: Add tests for backup suffixes.
15028
15029 2009-03-24  Simon Josefsson  <simon@josefsson.org>
15030
15031         * modules/stdlib (Depends-on): Add stdint, needed when defining
15032         struct random_data on, for example, HP-UX 10.20.  Reported by
15033         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15034
15035 2009-03-24  Simon Josefsson  <simon@josefsson.org>
15036
15037         * lib/readline.c (readline): Call fflush on stdout after printing
15038         prompt.
15039
15040 2009-03-20  Bruno Haible  <bruno@clisp.org>
15041
15042         Remove dependency from 'close' module to -lws2_32 on native Windows.
15043         * lib/close-hook.h: New file.
15044         * lib/close-hook.c: New file.
15045         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
15046         w32sock.h.
15047         (_gl_close_fd_maybe_socket): Remove function.
15048         (rpl_close): Invoke execute_all_close_hooks instead of
15049         _gl_close_fd_maybe_socket.
15050         * lib/sockets.c: Include close-hook.h, w32sock.h.
15051         (close_fd_maybe_socket): New function, essentially from lib/close.c.
15052         (close_sockets_hook): New variable.
15053         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
15054         (gl_sockets_cleanup): Unregister it.
15055         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
15056         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
15057         * modules/close-hook: New file.
15058         * modules/close (Files): Remove lib/w32sock.h.
15059         (Depends-on): Add close-hook.
15060         (Link): Remove section.
15061         * modules/sockets (Files): Add lib/w32sock.h.
15062         (Depends-on): Add close-hook.
15063         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
15064         invocation.
15065         * NEWS: Mention that LIB_CLOSE is gone.
15066
15067 2009-03-23  Eric Blake  <ebb9@byu.net>
15068
15069         signal-tests: test previous patch
15070         * tests/test-signal.c: New file.
15071         * modules/signal-tests: Likewise.
15072
15073         signal.h: always support 'volatile sig_atomic_t'
15074         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
15075         (gl_SIGNAL_H_DEFAULTS): Add a default.
15076         * modules/signal (Makefile.am): Substitute if needed.
15077         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
15078         users can blindly add volatile.
15079         * doc/posix-headers/signal.texi (signal.h): Document it.
15080         Reported by Matthew Woehlke.
15081
15082 2009-03-23  Jim Meyering  <meyering@redhat.com>
15083
15084         pathmax: PATH_MAX: use pathconf only when available
15085         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
15086         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
15087         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
15088         This avoids a link failure in a PSP cross-compilation environment
15089         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
15090
15091         * lib/vasnprintf.c (divide): Fix typo in comment.
15092
15093 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15094
15095         * gnulib-tool (func_filter_filelist): Fix comment.
15096
15097 2009-03-20  Bruno Haible  <bruno@clisp.org>
15098
15099         Make sockets.h self-contained.
15100         * lib/sockets.c: Include sockets.h first.
15101         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
15102
15103 2009-03-19  Eric Blake  <ebb9@byu.net>
15104
15105         doc: mention more functions added in cygwin 1.7.0
15106         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
15107         addition.
15108         * doc/posix-functions/log2f.texi: Likewise.
15109
15110 2009-03-19  Jim Meyering  <meyering@redhat.com>
15111
15112         fsusage: avoid syntax error due to statement-before-declaration
15113         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
15114         after all declarations.  Reported by Matthew Woehlke in
15115         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
15116
15117 2009-03-18  Eric Blake  <ebb9@byu.net>
15118
15119         build-aux/compile: sync from automake
15120         * build-aux/compile: New file, from automake.
15121         * config/srclist.txt: Mention build-aux/compile.
15122
15123 2009-03-17  Bruno Haible  <bruno@clisp.org>
15124
15125         * lib/git-merge-changelog.c: Fix typo in comment.
15126         Reported by Reuben Thomas <rrt@sc3d.org>.
15127
15128 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
15129
15130         * m4/regex.m4: update and improve help for
15131         --without-included-regex.
15132
15133 2009-03-17  Simon Josefsson  <simon@josefsson.org>
15134
15135         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
15136         failure on missing include files.
15137
15138 2009-03-17  Eric Blake  <ebb9@byu.net>
15139
15140         doc: mention more functions added in cygwin 1.7.0
15141         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
15142         addition.
15143         * doc/posix-functions/fwscanf.texi: Likewise.
15144         * doc/posix-functions/swprintf.texi: Likewise.
15145         * doc/posix-functions/swscanf.texi: Likewise.
15146         * doc/posix-functions/vfwprintf.texi: Likewise.
15147         * doc/posix-functions/vfwscanf.texi: Likewise.
15148         * doc/posix-functions/vswprintf.texi: Likewise.
15149         * doc/posix-functions/vswscanf.texi: Likewise.
15150         * doc/posix-functions/vwprintf.texi: Likewise.
15151         * doc/posix-functions/vwscanf.texi: Likewise.
15152         * doc/posix-functions/wcscasecmp.texi: Likewise.
15153         * doc/posix-functions/wcsdup.texi: Likewise.
15154         * doc/posix-functions/wcsftime.texi: Likewise.
15155         * doc/posix-functions/wcsncasecmp.texi: Likewise.
15156         * doc/posix-functions/wprintf.texi: Likewise.
15157         * doc/posix-functions/wscanf.texi: Likewise.
15158         * doc/glibc-functions/gethostbyname2.texi: Likewise.
15159
15160 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15161
15162         maint.mk: really add $(AM_MAKEFLAGS)
15163         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
15164         was inadvertently omitted in the last commit.
15165         Spotted by Bruno Haible.
15166
15167         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
15168         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
15169         $(AM_MAKEFLAGS)' rather than plain `make'.
15170
15171         gnulib-tool: execute $MAKE not make
15172         * gnulib-tool: Default $MAKE to 'make'.
15173         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
15174         than make.  Initialize $MAKE in the do-autobuild script.
15175
15176         gnulib-tool: use $MAKE not make in generated files
15177         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
15178         make, in generated files.  Initialize $MAKE in the do-autobuild
15179         script.
15180
15181         * top/GNUmakefile (_have-git-version-gen): Fix typo.
15182
15183         GNUmakefile: disable parallelism only for multiple, recursive targets
15184         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
15185         additions in the Makefile.
15186         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
15187         by Automake.
15188         (.NOTPARALLEL): Only disable parallel builds if multiple targets
15189         are listed on the command line and at least one of them is
15190         listed in $(ALL_RECURSIVE_TARGETS).
15191
15192 2009-03-14  Bruno Haible  <bruno@clisp.org>
15193
15194         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
15195         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
15196         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
15197         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
15198         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
15199         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
15200         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
15201         unistr/u8-uctomb.
15202         * modules/unistr/u8-strchr (Depends-on): Likewise.
15203         * modules/unistr/u8-strrchr (Depends-on): Likewise.
15204         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
15205         unistr/u16-uctomb.
15206         * modules/unistr/u16-strchr (Depends-on): Likewise.
15207         * modules/unistr/u16-strrchr (Depends-on): Likewise.
15208
15209 2009-03-12  Bruno Haible  <bruno@clisp.org>
15210
15211         Work around select() bug on Interix 3.5.
15212         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
15213         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
15214         * m4/select.m4: New file.
15215         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
15216         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
15217         * modules/select (Files): Add m4/select.m4.
15218         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
15219         * modules/nanosleep (Depends-on): Add select.
15220         * modules/poll (Depends-on): Likewise.
15221         * doc/posix-functions/select.texi: Mention the Interix bug.
15222         Reported by Markus Duft <mduft@gentoo.org>.
15223
15224         * lib/select.c: Renamed from lib/winsock-select.c.
15225         * modules/select (Files): Add lib/select.c, remove
15226         lib/winsock-select.c.
15227         (configure.ac): Update.
15228
15229 2009-03-12  Jim Meyering  <meyering@redhat.com>
15230
15231         avoid gcc warnings about unused macro definitions
15232         * lib/readtokens.c (STREQ): Remove unused definition.
15233         * lib/xmalloc.c (SIZE_MAX): Likewise.
15234         * lib/openat-die.c (N_): Likewise.
15235         * lib/mountlist.c (SIZE_MAX): Remove definition.
15236         Instead, include <stdint.h>.
15237         * lib/readutmp.c: Likewise.
15238         * modules/readutmp (Depends-on): Add stdint.
15239         * modules/mountlist (Depends-on): Add stdint.
15240         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
15241
15242 2009-03-10  Bruno Haible  <bruno@clisp.org>
15243
15244         Tests for module 'mbmemcasecoll'.
15245         * modules/mbmemcasecoll-tests: New file.
15246         * tests/test-mbmemcasecoll1.sh: New file.
15247         * tests/test-mbmemcasecoll2.sh: New file.
15248         * tests/test-mbmemcasecoll3.sh: New file.
15249         * tests/test-mbmemcasecoll.c: New file.
15250
15251         New module 'mbmemcasecoll'.
15252         * lib/mbmemcasecoll.h: New file.
15253         * lib/mbmemcasecoll.c: New file.
15254         * modules/mbmemcasecoll: New file.
15255
15256         * tests/test-mbmemcasecmp.h: New file, extracted from
15257         tests/test-mbmemcasecmp.c.
15258         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
15259         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
15260         (main): Update.
15261         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
15262
15263 2009-03-09  Bruno Haible  <bruno@clisp.org>
15264
15265         Tests for module 'mbmemcasecmp'.
15266         * modules/mbmemcasecmp-tests: New file.
15267         * tests/test-mbmemcasecmp1.sh: New file.
15268         * tests/test-mbmemcasecmp2.sh: New file.
15269         * tests/test-mbmemcasecmp3.sh: New file.
15270         * tests/test-mbmemcasecmp.c: New file.
15271
15272         New module 'mbmemcasecmp'.
15273         * lib/mbmemcasecmp.h: New file.
15274         * lib/mbmemcasecmp.c: New file.
15275         * modules/mbmemcasecmp: New file.
15276
15277 2009-03-09  Bruno Haible  <bruno@clisp.org>
15278
15279         Tests for module 'unicase/ulc-casecoll'.
15280         * modules/unicase/ulc-casecoll-tests: New file.
15281         * tests/unicase/test-ulc-casecoll1.sh: New file.
15282         * tests/unicase/test-ulc-casecoll2.sh: New file.
15283         * tests/unicase/test-ulc-casecoll.c: New file.
15284
15285         New module 'unicase/ulc-casecoll'.
15286         * lib/unicase.h (ulc_casecoll): New declaration.
15287         * lib/unicase/ulc-casecoll.c: New file.
15288         * modules/unicase/ulc-casecoll: New file.
15289
15290         New module 'unicase/ulc-casexfrm'.
15291         * lib/unicase.h (ulc_casexfrm): New declaration.
15292         * lib/unicase/ulc-casexfrm.c: New file.
15293         * modules/unicase/ulc-casexfrm: New file.
15294
15295 2009-03-09  Bruno Haible  <bruno@clisp.org>
15296
15297         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
15298         invocations.
15299
15300         * m4/mbscasecmp.m4: Remove file.
15301         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
15302         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
15303
15304         * m4/mbscasestr.m4: Remove file.
15305         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
15306         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
15307
15308         * m4/mbschr.m4: Remove file.
15309         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
15310         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
15311
15312         * m4/mbscspn.m4: Remove file.
15313         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
15314         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
15315
15316         * m4/mbslen.m4: Remove file.
15317         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
15318         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
15319
15320         * m4/mbsncasecmp.m4: Remove file.
15321         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
15322         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
15323
15324         * m4/mbsnlen.m4: Remove file.
15325         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
15326         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
15327
15328         * m4/mbspbrk.m4: Remove file.
15329         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
15330         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
15331
15332         * m4/mbspcasecmp.m4: Remove file.
15333         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
15334         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
15335
15336         * m4/mbsrchr.m4: Remove file.
15337         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
15338         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
15339
15340         * m4/mbssep.m4: Remove file.
15341         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
15342         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
15343
15344         * m4/mbsspn.m4: Remove file.
15345         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
15346         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
15347
15348         * m4/mbsstr.m4: Remove file.
15349         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
15350         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
15351
15352         * m4/mbstok_r.m4: Remove file.
15353         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
15354         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
15355
15356         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
15357
15358         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
15359         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
15360
15361         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
15362
15363 2009-03-08  Bruno Haible  <bruno@clisp.org>
15364
15365         Tests for module 'unicase/ulc-casecmp'.
15366         * modules/unicase/ulc-casecmp-tests: New file.
15367         * tests/unicase/test-ulc-casecmp1.sh: New file.
15368         * tests/unicase/test-ulc-casecmp2.sh: New file.
15369         * tests/unicase/test-ulc-casecmp.c: New file.
15370
15371         New module 'unicase/ulc-casecmp'.
15372         * lib/unicase.h (ulc_casecmp): New declaration.
15373         * lib/unicase/ulc-casecmp.c: New file.
15374         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
15375         'const SRC_UNIT *'.
15376         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
15377         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
15378         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
15379         * modules/unicase/ulc-casecmp: New file.
15380
15381         Tests for module 'unicase/u32-is-cased'.
15382         * modules/unicase/u32-is-cased-tests: New file.
15383         * tests/unicase/test-u32-is-cased.c: New file.
15384
15385         Tests for module 'unicase/u16-is-cased'.
15386         * modules/unicase/u16-is-cased-tests: New file.
15387         * tests/unicase/test-u16-is-cased.c: New file.
15388
15389         Tests for module 'unicase/u8-is-cased'.
15390         * modules/unicase/u8-is-cased-tests: New file.
15391         * tests/unicase/test-u8-is-cased.c: New file.
15392         * tests/unicase/test-is-cased.h: New file.
15393
15394         New module 'unicase/u32-is-cased'.
15395         * lib/unicase/u32-is-cased.c: New file.
15396         * modules/unicase/u32-is-cased: New file.
15397
15398         New module 'unicase/u16-is-cased'.
15399         * lib/unicase/u16-is-cased.c: New file.
15400         * modules/unicase/u16-is-cased: New file.
15401
15402         New module 'unicase/u8-is-cased'.
15403         * lib/unicase/u8-is-cased.c: New file.
15404         * lib/unicase/u-is-cased.h: New file.
15405         * modules/unicase/u8-is-cased: New file.
15406
15407         Tests for module 'unicase/u32-is-casefolded'.
15408         * modules/unicase/u32-is-casefolded-tests: New file.
15409         * tests/unicase/test-u32-is-casefolded.c: New file.
15410
15411         Tests for module 'unicase/u16-is-casefolded'.
15412         * modules/unicase/u16-is-casefolded-tests: New file.
15413         * tests/unicase/test-u16-is-casefolded.c: New file.
15414
15415         Tests for module 'unicase/u8-is-casefolded'.
15416         * modules/unicase/u8-is-casefolded-tests: New file.
15417         * tests/unicase/test-u8-is-casefolded.c: New file.
15418         * tests/unicase/test-is-casefolded.h: New file.
15419
15420         New module 'unicase/u32-is-casefolded'.
15421         * lib/unicase/u32-is-casefolded.c: New file.
15422         * modules/unicase/u32-is-casefolded: New file.
15423
15424         New module 'unicase/u16-is-casefolded'.
15425         * lib/unicase/u16-is-casefolded.c: New file.
15426         * modules/unicase/u16-is-casefolded: New file.
15427
15428         New module 'unicase/u8-is-casefolded'.
15429         * lib/unicase/u8-is-casefolded.c: New file.
15430         * modules/unicase/u8-is-casefolded: New file.
15431
15432         Tests for module 'unicase/u32-is-titlecase'.
15433         * modules/unicase/u32-is-titlecase-tests: New file.
15434         * tests/unicase/test-u32-is-titlecase.c: New file.
15435
15436         Tests for module 'unicase/u16-is-titlecase'.
15437         * modules/unicase/u16-is-titlecase-tests: New file.
15438         * tests/unicase/test-u16-is-titlecase.c: New file.
15439
15440         Tests for module 'unicase/u8-is-titlecase'.
15441         * modules/unicase/u8-is-titlecase-tests: New file.
15442         * tests/unicase/test-u8-is-titlecase.c: New file.
15443         * tests/unicase/test-is-titlecase.h: New file.
15444
15445         New module 'unicase/u32-is-titlecase'.
15446         * lib/unicase/u32-is-titlecase.c: New file.
15447         * modules/unicase/u32-is-titlecase: New file.
15448
15449         New module 'unicase/u16-is-titlecase'.
15450         * lib/unicase/u16-is-titlecase.c: New file.
15451         * modules/unicase/u16-is-titlecase: New file.
15452
15453         New module 'unicase/u8-is-titlecase'.
15454         * lib/unicase/u8-is-titlecase.c: New file.
15455         * modules/unicase/u8-is-titlecase: New file.
15456
15457         Tests for module 'unicase/u32-is-lowercase'.
15458         * modules/unicase/u32-is-lowercase-tests: New file.
15459         * tests/unicase/test-u32-is-lowercase.c: New file.
15460
15461         Tests for module 'unicase/u16-is-lowercase'.
15462         * modules/unicase/u16-is-lowercase-tests: New file.
15463         * tests/unicase/test-u16-is-lowercase.c: New file.
15464
15465         Tests for module 'unicase/u8-is-lowercase'.
15466         * modules/unicase/u8-is-lowercase-tests: New file.
15467         * tests/unicase/test-u8-is-lowercase.c: New file.
15468         * tests/unicase/test-is-lowercase.h: New file.
15469
15470         New module 'unicase/u32-is-lowercase'.
15471         * lib/unicase/u32-is-lowercase.c: New file.
15472         * modules/unicase/u32-is-lowercase: New file.
15473
15474         New module 'unicase/u16-is-lowercase'.
15475         * lib/unicase/u16-is-lowercase.c: New file.
15476         * modules/unicase/u16-is-lowercase: New file.
15477
15478         New module 'unicase/u8-is-lowercase'.
15479         * lib/unicase/u8-is-lowercase.c: New file.
15480         * modules/unicase/u8-is-lowercase: New file.
15481
15482         Tests for module 'unicase/u32-is-uppercase'.
15483         * modules/unicase/u32-is-uppercase-tests: New file.
15484         * tests/unicase/test-u32-is-uppercase.c: New file.
15485
15486         Tests for module 'unicase/u16-is-uppercase'.
15487         * modules/unicase/u16-is-uppercase-tests: New file.
15488         * tests/unicase/test-u16-is-uppercase.c: New file.
15489
15490         Tests for module 'unicase/u8-is-uppercase'.
15491         * modules/unicase/u8-is-uppercase-tests: New file.
15492         * tests/unicase/test-u8-is-uppercase.c: New file.
15493         * tests/unicase/test-is-uppercase.h: New file.
15494
15495         New module 'unicase/u32-is-uppercase'.
15496         * lib/unicase/u32-is-uppercase.c: New file.
15497         * modules/unicase/u32-is-uppercase: New file.
15498
15499         New module 'unicase/u16-is-uppercase'.
15500         * lib/unicase/u16-is-uppercase.c: New file.
15501         * modules/unicase/u16-is-uppercase: New file.
15502
15503         New module 'unicase/u8-is-uppercase'.
15504         * lib/unicase/u8-is-uppercase.c: New file.
15505         * modules/unicase/u8-is-uppercase: New file.
15506
15507         New module 'unicase/u32-is-invariant'.
15508         * lib/unicase/u32-is-invariant.c: New file.
15509         * modules/unicase/u32-is-invariant: New file.
15510
15511         New module 'unicase/u16-is-invariant'.
15512         * lib/unicase/u16-is-invariant.c: New file.
15513         * modules/unicase/u16-is-invariant: New file.
15514
15515         New module 'unicase/u8-is-invariant'.
15516         * lib/unicase/u8-is-invariant.c: New file.
15517         * lib/unicase/invariant.h: New file.
15518         * lib/unicase/u-is-invariant.h: New file.
15519         * modules/unicase/u8-is-invariant: New file.
15520
15521         Tests for module 'unicase/u32-casecoll'.
15522         * modules/unicase/u32-casecoll-tests: New file.
15523         * tests/unicase/test-u32-casecoll.c: New file.
15524
15525         Tests for module 'unicase/u16-casecoll'.
15526         * modules/unicase/u16-casecoll-tests: New file.
15527         * tests/unicase/test-u16-casecoll.c: New file.
15528
15529         Tests for module 'unicase/u8-casecoll'.
15530         * modules/unicase/u8-casecoll-tests: New file.
15531         * tests/unicase/test-u8-casecoll.c: New file.
15532
15533         New module 'unicase/u32-casecoll'.
15534         * lib/unicase/u32-casecoll.c: New file.
15535         * modules/unicase/u32-casecoll: New file.
15536
15537         New module 'unicase/u16-casecoll'.
15538         * lib/unicase/u16-casecoll.c: New file.
15539         * modules/unicase/u16-casecoll: New file.
15540
15541         New module 'unicase/u8-casecoll'.
15542         * lib/unicase/u8-casecoll.c: New file.
15543         * lib/unicase/u-casecoll.h: New file.
15544         * modules/unicase/u8-casecoll: New file.
15545
15546         New module 'unicase/u32-casexfrm'.
15547         * lib/unicase/u32-casexfrm.c: New file.
15548         * modules/unicase/u32-casexfrm: New file.
15549
15550         New module 'unicase/u16-casexfrm'.
15551         * lib/unicase/u16-casexfrm.c: New file.
15552         * modules/unicase/u16-casexfrm: New file.
15553
15554         New module 'unicase/u8-casexfrm'.
15555         * lib/unicase/u8-casexfrm.c: New file.
15556         * lib/unicase/u-casexfrm.h: New file.
15557         * modules/unicase/u8-casexfrm: New file.
15558
15559         Tests for module 'unicase/u32-casecmp'.
15560         * modules/unicase/u32-casecmp-tests: New file.
15561         * tests/unicase/test-u32-casecmp.c: New file.
15562
15563         Tests for module 'unicase/u16-casecmp'.
15564         * modules/unicase/u16-casecmp-tests: New file.
15565         * tests/unicase/test-u16-casecmp.c: New file.
15566
15567         Tests for module 'unicase/u8-casecmp'.
15568         * modules/unicase/u8-casecmp-tests: New file.
15569         * tests/unicase/test-u8-casecmp.c: New file.
15570         * tests/unicase/test-casecmp.h: New file.
15571
15572         New module 'unicase/u32-casecmp'.
15573         * lib/unicase/u32-casecmp.c: New file.
15574         * modules/unicase/u32-casecmp: New file.
15575
15576         New module 'unicase/u16-casecmp'.
15577         * lib/unicase/u16-casecmp.c: New file.
15578         * modules/unicase/u16-casecmp: New file.
15579
15580         New module 'unicase/u8-casecmp'.
15581         * lib/unicase/u8-casecmp.c: New file.
15582         * lib/unicase/u-casecmp.h: New file.
15583         * modules/unicase/u8-casecmp: New file.
15584
15585         Tests for module 'unicase/u32-casefold'.
15586         * modules/unicase/u32-casefold-tests: New file.
15587         * tests/unicase/test-u32-casefold.c: New file.
15588
15589         Tests for module 'unicase/u16-casefold'.
15590         * modules/unicase/u16-casefold-tests: New file.
15591         * tests/unicase/test-u16-casefold.c: New file.
15592
15593         Tests for module 'unicase/u8-casefold'.
15594         * modules/unicase/u8-casefold-tests: New file.
15595         * tests/unicase/test-u8-casefold.c: New file.
15596
15597         New module 'unicase/u32-casefold'.
15598         * lib/unicase/u32-casefold.c: New file.
15599         * modules/unicase/u32-casefold: New file.
15600
15601         New module 'unicase/u16-casefold'.
15602         * lib/unicase/u16-casefold.c: New file.
15603         * modules/unicase/u16-casefold: New file.
15604
15605         New module 'unicase/u8-casefold'.
15606         * lib/unicase/u8-casefold.c: New file.
15607         * lib/unicase/u-casefold.h: New file.
15608         * modules/unicase/u8-casefold: New file.
15609
15610         New module 'unicase/tocasefold'.
15611         * lib/unicase/casefold.h: New file.
15612         * lib/unicase/tocasefold.c: New file.
15613         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
15614         * modules/unicase/tocasefold: New file.
15615
15616         Tests for module 'unicase/u32-totitle'.
15617         * modules/unicase/u32-totitle-tests: New file.
15618         * tests/unicase/test-u32-totitle.c: New file.
15619
15620         Tests for module 'unicase/u16-totitle'.
15621         * modules/unicase/u16-totitle-tests: New file.
15622         * tests/unicase/test-u16-totitle.c: New file.
15623
15624         Tests for module 'unicase/u8-totitle'.
15625         * modules/unicase/u8-totitle-tests: New file.
15626         * tests/unicase/test-u8-totitle.c: New file.
15627
15628         New module 'unicase/u32-totitle'.
15629         * lib/unicase/u32-totitle.c: New file.
15630         * modules/unicase/u32-totitle: New file.
15631
15632         New module 'unicase/u16-totitle'.
15633         * lib/unicase/u16-totitle.c: New file.
15634         * modules/unicase/u16-totitle: New file.
15635
15636         New module 'unicase/u8-totitle'.
15637         * lib/unicase/u8-totitle.c: New file.
15638         * lib/unicase/u-totitle.h: New file.
15639         * modules/unicase/u8-totitle: New file.
15640
15641         Tests for module 'unicase/u32-tolower'.
15642         * modules/unicase/u32-tolower-tests: New file.
15643         * tests/unicase/test-u32-tolower.c: New file.
15644
15645         Tests for module 'unicase/u16-tolower'.
15646         * modules/unicase/u16-tolower-tests: New file.
15647         * tests/unicase/test-u16-tolower.c: New file.
15648
15649         Tests for module 'unicase/u8-tolower'.
15650         * modules/unicase/u8-tolower-tests: New file.
15651         * tests/unicase/test-u8-tolower.c: New file.
15652
15653         New module 'unicase/u32-tolower'.
15654         * lib/unicase/u32-tolower.c: New file.
15655         * modules/unicase/u32-tolower: New file.
15656
15657         New module 'unicase/u16-tolower'.
15658         * lib/unicase/u16-tolower.c: New file.
15659         * modules/unicase/u16-tolower: New file.
15660
15661         New module 'unicase/u8-tolower'.
15662         * lib/unicase/u8-tolower.c: New file.
15663         * modules/unicase/u8-tolower: New file.
15664
15665         Tests for module 'unicase/u32-toupper'.
15666         * modules/unicase/u32-toupper-tests: New file.
15667         * tests/unicase/test-u32-toupper.c: New file.
15668
15669         Tests for module 'unicase/u16-toupper'.
15670         * modules/unicase/u16-toupper-tests: New file.
15671         * tests/unicase/test-u16-toupper.c: New file.
15672
15673         Tests for module 'unicase/u8-toupper'.
15674         * modules/unicase/u8-toupper-tests: New file.
15675         * tests/unicase/test-u8-toupper.c: New file.
15676
15677         New module 'unicase/u32-toupper'.
15678         * lib/unicase/u32-toupper.c: New file.
15679         * modules/unicase/u32-toupper: New file.
15680
15681         New module 'unicase/u16-toupper'.
15682         * lib/unicase/u16-toupper.c: New file.
15683         * modules/unicase/u16-toupper: New file.
15684
15685         New module 'unicase/u8-toupper'.
15686         * lib/unicase/u8-toupper.c: New file.
15687         * modules/unicase/u8-toupper: New file.
15688
15689         New module 'unicase/u32-casemap'.
15690         * lib/unicase/u32-casemap.c: New file.
15691         * modules/unicase/u32-casemap: New file.
15692
15693         New module 'unicase/u16-casemap'.
15694         * lib/unicase/u16-casemap.c: New file.
15695         * modules/unicase/u16-casemap: New file.
15696
15697         New module 'unicase/u8-casemap'.
15698         * lib/unicase/unicasemap.h: New file.
15699         * lib/unicase/u8-casemap.c: New file.
15700         * lib/unicase/u-casemap.h: New file.
15701         * modules/unicase/u8-casemap: New file.
15702
15703         New module 'unicase/special-casing'.
15704         * lib/unicase/special-casing.h: New file.
15705         * lib/unicase/special-casing.c: New file.
15706         * lib/unicase/special-casing-table.gperf: New file, generated by
15707         gen-uni-tables.c.
15708         * modules/unicase/special-casing: New file.
15709
15710         Tests for module 'unicase/locale-language'.
15711         * modules/unicase/locale-language-tests: New file.
15712         * tests/unicase/test-locale-language.sh: New file.
15713         * tests/unicase/test-locale-language.c: New file.
15714
15715         New module 'unicase/locale-language'.
15716         * lib/unicase/locale-language.c: New file.
15717         * lib/unicase/locale-languages.gperf: New file.
15718         * modules/unicase/locale-language: New file.
15719
15720         Generate more tables for case conversion and case folding.
15721         * lib/gen-uni-tables.c (SCC_*): New enum items.
15722         (struct special_casing_rule): New type.
15723         (casing_rules, num_casing_rules, allocated_casing_rules): New
15724         variables.
15725         (add_casing_rule, fill_casing_rules): New functions.
15726         (struct casefold_rule): New type.
15727         (casefolding_rules, num_casefolding_rules,
15728         allocated_casefolding_rules): New variables.
15729         (fill_casefolding_rules): New function.
15730         (unicode_casefold): New variable.
15731         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
15732         sort_casing_rules, output_casing_rules): New functions.
15733         (main): Accept to more arguments: SpecialCasing.txt and
15734         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
15735         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
15736         Output mapping for casefolding.
15737
15738         * lib/unicase.h: Include stdbool.h, uninorm.h.
15739         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
15740         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
15741         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
15742         arguments.
15743         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
15744         resultp arguments.
15745         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
15746         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
15747         resultp arguments.
15748         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
15749         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
15750         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
15751         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
15752         declarations.
15753         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
15754
15755 2009-03-08  Bruno Haible  <bruno@clisp.org>
15756
15757         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
15758         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
15759         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
15760         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
15761
15762 2009-03-07  Bruno Haible  <bruno@clisp.org>
15763
15764         Adjust u*_normcmp, u*_normcoll API.
15765         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
15766         u16_normcoll, u32_normcoll): Change failure conventions.
15767         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
15768         errno and return -1.
15769         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
15770
15771 2009-03-07  Bruno Haible  <bruno@clisp.org>
15772
15773         Tests for module 'uninorm/u32-normcoll'.
15774         * modules/uninorm/u32-normcoll-tests: New file.
15775         * tests/uninorm/test-u32-normcoll.c: New file.
15776
15777         Tests for module 'uninorm/u16-normcoll'.
15778         * modules/uninorm/u16-normcoll-tests: New file.
15779         * tests/uninorm/test-u16-normcoll.c: New file.
15780
15781         Tests for module 'uninorm/u8-normcoll'.
15782         * modules/uninorm/u8-normcoll-tests: New file.
15783         * tests/uninorm/test-u8-normcoll.c: New file.
15784
15785 2009-03-07  Bruno Haible  <bruno@clisp.org>
15786
15787         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
15788         tests/uninorm/test-u32-normcmp.c.
15789         * tests/uninorm/test-u32-normcmp.c: Include it.
15790         (test_nonascii): New function, extracted from main. Add some more
15791         tests.
15792         (main): Invoke test_ascii and test_nonascii.
15793         * modules/uninorm/u32-normcmp-tests (Files): Add
15794         tests/uninorm/test-u32-normcmp.h.
15795         (Depends-on): Remove uninorm/u32-normcmp.
15796
15797         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
15798         tests/uninorm/test-u16-normcmp.c.
15799         * tests/uninorm/test-u16-normcmp.c: Include it.
15800         (test_nonascii): New function, extracted from main. Add some more
15801         tests.
15802         (main): Invoke test_ascii and test_nonascii.
15803         * modules/uninorm/u16-normcmp-tests (Files): Add
15804         tests/uninorm/test-u16-normcmp.h.
15805         (Depends-on): Remove uninorm/u16-normcmp.
15806
15807         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
15808         tests/uninorm/test-u8-normcmp.c.
15809         * tests/uninorm/test-u8-normcmp.c: Include it.
15810         (test_nonascii): New function, extracted from main. Add some more
15811         tests.
15812         (main): Invoke test_ascii and test_nonascii.
15813         * modules/uninorm/u8-normcmp-tests (Files): Add
15814         tests/uninorm/test-u8-normcmp.h.
15815         (Depends-on): Remove uninorm/u8-normcmp.
15816
15817 2009-03-07  Bruno Haible  <bruno@clisp.org>
15818
15819         New module 'uninorm/u32-normcoll'.
15820         * lib/uninorm/u32-normcoll.c: New file.
15821         * modules/uninorm/u32-normcoll: New file.
15822
15823         New module 'uninorm/u16-normcoll'.
15824         * lib/uninorm/u16-normcoll.c: New file.
15825         * modules/uninorm/u16-normcoll: New file.
15826
15827         New module 'uninorm/u8-normcoll'.
15828         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
15829         declarations.
15830         * lib/uninorm/u8-normcoll.c: New file.
15831         * lib/uninorm/u-normcoll.h: New file.
15832         * modules/uninorm/u8-normcoll: New file.
15833
15834         New module 'uninorm/u32-normxfrm'.
15835         * lib/uninorm/u32-normxfrm.c: New file.
15836         * modules/uninorm/u32-normxfrm: New file.
15837
15838         New module 'uninorm/u16-normxfrm'.
15839         * lib/uninorm/u16-normxfrm.c: New file.
15840         * modules/uninorm/u16-normxfrm: New file.
15841
15842         New module 'uninorm/u8-normxfrm'.
15843         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
15844         declarations.
15845         * lib/uninorm/u8-normxfrm.c: New file.
15846         * lib/uninorm/u-normxfrm.h: New file.
15847         * modules/uninorm/u8-normxfrm: New file.
15848
15849 2009-03-07  Bruno Haible  <bruno@clisp.org>
15850
15851         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
15852         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
15853         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
15854
15855 2009-03-07  Bruno Haible  <bruno@clisp.org>
15856
15857         New module 'memxfrm'.
15858         * lib/memxfrm.h: New file.
15859         * lib/memxfrm.c: New file.
15860         * modules/memxfrm: New file.
15861
15862 2009-03-07  Bruno Haible  <bruno@clisp.org>
15863
15864         New module 'memcmp2'.
15865         * lib/memcmp2.h: New file.
15866         * lib/memcmp2.c: New file.
15867         * modules/memcmp2: New file.
15868
15869 2009-03-07  Bruno Haible  <bruno@clisp.org>
15870
15871         Tests for module 'uninorm/decomposing-form'.
15872         * modules/uninorm/decomposing-form-tests: New file.
15873         * tests/uninorm/test-decomposing-form.c: New file.
15874
15875         New module 'uninorm/decomposing-form'.
15876         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
15877         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
15878         Add 'decomposing_variant' field.
15879         * lib/uninorm/decomposing-form.c: New file.
15880         * lib/uninorm/nfc.c (uninorm_nfc): Update.
15881         * lib/uninorm/nfd.c (uninorm_nfd): Update.
15882         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
15883         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
15884         * modules/uninorm/decomposing-form: New file.
15885         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
15886         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
15887
15888 2009-03-07  Bruno Haible  <bruno@clisp.org>
15889
15890         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
15891         strings.
15892
15893 2009-03-06  Bruno Haible  <bruno@clisp.org>
15894
15895         Tests for module 'uninorm/u32-normcmp'.
15896         * tests/uninorm/test-u32-normcmp.c: New file.
15897         * modules/uninorm/u32-normcmp-tests: New file.
15898
15899         Tests for module 'uninorm/u16-normcmp'.
15900         * tests/uninorm/test-u16-normcmp.c: New file.
15901         * modules/uninorm/u16-normcmp-tests: New file.
15902
15903         Tests for module 'uninorm/u8-normcmp'.
15904         * tests/uninorm/test-u8-normcmp.c: New file.
15905         * modules/uninorm/u8-normcmp-tests: New file.
15906
15907         New module 'uninorm/u32-normcmp'.
15908         * lib/uninorm/u32-normcmp.c: New file.
15909         * modules/uninorm/u32-normcmp: New file.
15910
15911         New module 'uninorm/u16-normcmp'.
15912         * lib/uninorm/u16-normcmp.c: New file.
15913         * modules/uninorm/u16-normcmp: New file.
15914
15915         New module 'uninorm/u8-normcmp'.
15916         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
15917         declarations.
15918         * lib/uninorm/u8-normcmp.c: New file.
15919         * lib/uninorm/u-normcmp.h: New file.
15920         * modules/uninorm/u8-normcmp: New file.
15921
15922 2009-03-06  Bruno Haible  <bruno@clisp.org>
15923
15924         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
15925         Reported by Eric Blake.
15926
15927 2009-03-06  Eric Blake  <ebb9@byu.net>
15928             Bruno Haible  <bruno@clisp.org>
15929
15930         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
15931         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
15932         condition.
15933         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
15934         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
15935         condition.
15936         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
15937
15938 2009-03-06  Eric Blake  <ebb9@byu.net>
15939
15940         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
15941         to avoid compiler warnings.
15942         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
15943
15944 2009-03-05  Bruno Haible  <bruno@clisp.org>
15945
15946         * tests/test-ftell.c (main): Disable test beyond end of file on
15947         FreeMiNT.
15948         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
15949
15950 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
15951
15952         * lib/filevercmp.c: Move hidden files up in ordering.
15953         * tests/test-filevercmp.c: Add tests for hidden files.
15954
15955 2009-03-04  Bruno Haible  <bruno@clisp.org>
15956
15957         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
15958         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
15959         AM_CFLAGS.
15960         Reported by Simon Josefsson.
15961
15962 2009-03-03  Bruno Haible  <bruno@clisp.org>
15963
15964         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
15965         Reported by Simon Josefsson.
15966
15967         * doc/ld-version-script.texi: Update node reference.
15968
15969 2009-03-03  Bruno Haible  <bruno@clisp.org>
15970
15971         * modules/visibility (License): Change to 'unlimited'.
15972         Suggested by Simon Josefsson.
15973
15974 2009-03-03  Jim Meyering  <meyering@redhat.com>
15975
15976         unlinkdir: cannot_unlink_dir may modify process state
15977         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
15978         it's neither thread-safe nor appropriate for use in a library.
15979
15980 2009-03-03  Eric Blake  <ebb9@byu.net>
15981
15982         test-closein: silence test under Darwin
15983         * tests/test-closein.sh: Ignore stderr from cat, since we don't
15984         care if it dies from EPIPE or EBADF.
15985
15986 2009-03-03  Bruno Haible  <bruno@clisp.org>
15987
15988         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
15989         earlier.
15990         * doc/visibility.texi: Fix @node and @section.
15991
15992 2009-03-03  Simon Josefsson  <simon@josefsson.org>
15993
15994         * doc/gnulib.texi: Link to sections for ld version script and
15995         visibility.
15996         * doc/visibility.texi: Add @node and @section.
15997         * modules/ld-version-script: New module.
15998         * m4/ld-version-script.m4: New file.
15999         * doc/ld-version-script.texi: New file.
16000
16001 2009-03-02  David Lutterkort  <lutter@redhat.com>
16002
16003         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
16004         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16005
16006 2009-03-02  Bruno Haible  <bruno@clisp.org>
16007
16008         * doc/visibility.texi: Mention libtool's -export-symbols option.
16009
16010 2009-03-02  Jim Meyering  <meyering@redhat.com>
16011
16012         announce-gen: new option: --no-print-checksums
16013         * build-aux/announce-gen (usage): Describe it.
16014         (print_checksums): Print a newline here, not in the [*] footnote.
16015         (main): Honor it.
16016
16017 2009-03-01  Bruno Haible  <bruno@clisp.org>
16018
16019         Use socklen_t in the native Windows replacements prototypes.
16020         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
16021         instead of 'int'.
16022         * lib/getsockopt.c (rpl_getsockopt): Likewise.
16023         * lib/setsockopt.c (rpl_setsockopt): Likewise.
16024         * modules/getsockopt (Depends-on): Add socklen.
16025         * modules/setsockopt (Depends-on): Add socklen.
16026
16027 2009-03-01  Bruno Haible  <bruno@clisp.org>
16028
16029         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
16030         least 4.2.
16031
16032 2009-03-01  Eric Blake  <ebb9@byu.net>
16033             Bruno Haible  <bruno@clisp.org>
16034
16035         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
16036         error messages.
16037         * lib/wait-process.c (wait_subprocess): Omit error message about
16038         deadly signal sent to the child of termsigp != NULL.
16039
16040 2009-03-01  Eric Blake  <ebb9@byu.net>
16041
16042         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
16043
16044 2009-03-01  Bruno Haible  <bruno@clisp.org>
16045
16046         Avoid a gcc warning.
16047         * tests/test-sched.c (b): Make global.
16048         Reported by Eric Blake.
16049
16050 2009-01-19  Martin Lambers  <marlam@marlam.de>
16051
16052         Provide POSIX semantics for socket timeout options on W32.
16053         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
16054         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
16055         * modules/setsockopt: Depend on sys_time module for struct timeval.
16056         * modules/getsockopt: Depend on sys_time module for struct timeval.
16057
16058 2009-03-01  Simon Josefsson  <simon@josefsson.org>
16059
16060         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
16061         __USE_GNU, for consistency with netdb.in.h.
16062         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16063
16064 2009-03-01  Bruno Haible  <bruno@clisp.org>
16065
16066         More support for FreeMiNT.
16067         * lib/fseeko.c (rpl_fseeko): Complete last commit.
16068         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16069
16070 2009-03-01  Bruno Haible  <bruno@clisp.org>
16071
16072         More support for FreeMiNT.
16073         * lib/fpurge.c (fpurge): Correct last commit.
16074         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16075
16076 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16077
16078         Fix unportable awk script in vc-list-files.
16079         * build-aux/vc-list-files: In the replacement awk script, use
16080         substr with a second argument of 1, not zero.
16081         Report by Simon Josefsson.
16082
16083 2009-02-28  Bruno Haible  <bruno@clisp.org>
16084
16085         More support for FreeMiNT.
16086         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
16087         to FreeMiNT today.
16088         * lib/fwriting.c (fwriting): Likewise.
16089         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
16090
16091 2009-02-28  Bruno Haible  <bruno@clisp.org>
16092
16093         * tests/test-freadseek.c (main): Disable test beyond end of file on
16094         FreeMiNT.
16095         * tests/test-ftello.c (main): Likewise.
16096         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
16097
16098 2009-02-28  Bruno Haible  <bruno@clisp.org>
16099
16100         Add tentative support for FreeMiNT.
16101         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
16102         * lib/fpurge.c (fpurge): Likewise.
16103         * lib/freadable.c (freadable): Likewise.
16104         * lib/freading.c (freading): Likewise.
16105         * lib/freadptr.c (freadptr): Likewise.
16106         * lib/freadseek.c (freadptrinc): Likewise.
16107         * lib/fseeko.c (rpl_fseeko): Likewise.
16108         * lib/fseterr.c (fseterr): Likewise.
16109         * lib/fwritable.c (fwritable): Likewise.
16110         * lib/fwriting.c (fwriting): Likewise.
16111         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
16112         Hourihane.
16113         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16114
16115 2009-02-28  Bruno Haible  <bruno@clisp.org>
16116
16117         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
16118         SIGCHLD.
16119         Reported by Jim Meyering.
16120
16121 2009-02-28  Bruno Haible  <bruno@clisp.org>
16122
16123         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
16124         Mention the results of these tests on various platforms.
16125         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
16126         order.
16127         * doc/posix-functions/printf.texi: Likewise.
16128         * doc/posix-functions/snprintf.texi: Likewise.
16129         * doc/posix-functions/sprintf.texi: Likewise.
16130         * doc/posix-functions/vfprintf.texi: Likewise.
16131         * doc/posix-functions/vprintf.texi: Likewise.
16132         * doc/posix-functions/vsnprintf.texi: Likewise.
16133         * doc/posix-functions/vsprintf.texi: Likewise.
16134         * doc/glibc-functions/obstack_printf.texi: Likewise.
16135         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
16136
16137 2009-02-28  Bruno Haible  <bruno@clisp.org>
16138
16139         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
16140         Reported by Loïc Minier <lool@dooz.org>.
16141
16142 2009-02-27  Bruno Haible  <bruno@clisp.org>
16143
16144         * gnulib-tool (func_import): Make the sed expression used to create the
16145         sed script for updating the .gitignore file POSIX compliant.
16146         Reported by Eric Blake.
16147
16148 2009-02-27  Bruno Haible  <bruno@clisp.org>
16149
16150         * gnulib-tool (sed): Don't alias as "sed --posix".
16151         Reported by Eric Blake.
16152
16153 2009-02-27  Bruno Haible  <bruno@clisp.org>
16154
16155         Avoid test link errors.
16156         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
16157         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
16158         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
16159         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
16160         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16161
16162 2009-02-27  Bruno Haible  <bruno@clisp.org>
16163
16164         Avoid spurious "(cached)" in configure output.
16165         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
16166         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
16167         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
16168         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
16169         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
16170         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
16171         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
16172         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
16173         Reported by Eric Blake.
16174
16175 2009-02-27  Eric Blake  <ebb9@byu.net>
16176
16177         printf: fix regression in previous patch
16178         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
16179
16180 2009-02-27  Bruno Haible  <bruno@clisp.org>
16181
16182         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
16183         value.
16184         * lib/stdint.in.h: Likewise.
16185         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
16186
16187 2009-02-27  Eric Blake  <ebb9@byu.net>
16188
16189         doc: mention more functions added in cygwin 1.7.0
16190         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
16191         addition.
16192         * doc/posix-functions/open_wmemstream.texi: Likewise.
16193         * doc/posix-functions/wcsnlen.texi: Likewise.
16194         * doc/posix-functions/wcsnrtombs.texi: Likewise.
16195         * doc/posix-functions/wcstod.texi: Likewise.
16196         * doc/posix-functions/wcstof.texi: Likewise.
16197         * doc/posix-functions/wcstoimax.texi: Likewise.
16198         * doc/posix-functions/wcstok.texi: Likewise.
16199         * doc/posix-functions/wcstoumax.texi: Likewise.
16200
16201         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
16202         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
16203         * doc/posix-functions/fprintf.texi: Update.
16204         * doc/posix-functions/printf.texi: Update.
16205         * doc/posix-functions/snprintf.texi: Update.
16206         * doc/posix-functions/sprintf.texi: Update.
16207         * doc/posix-functions/vfprintf.texi: Update.
16208         * doc/posix-functions/vprintf.texi: Update.
16209         * doc/posix-functions/vsnprintf.texi: Update.
16210         * doc/posix-functions/vsprintf.texi: Update.
16211         * doc/glibc-functions/obstack_printf.texi: Update.
16212         * doc/glibc-functions/obstack_vprintf.texi: Update.
16213
16214 2009-02-26  Eric Blake  <ebb9@byu.net>
16215
16216         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
16217         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
16218         compilation bug by using runtime conversion.
16219         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
16220         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
16221         * modules/ceill-tests (Files): Use nan.h.
16222         * modules/floorl-tests (Files): Likewise.
16223         * modules/frexpl-tests (Files): Likewise.
16224         * modules/isnanl-tests (Files): Likewise.
16225         * modules/ldexpl-tests (Files): Likewise.
16226         * modules/roundl-tests (Files): Likewise.
16227         * modules/truncl-tests (Files): Likewise.
16228         * tests/test-ceill.c (main): Use a working NaN.
16229         * tests/test-floorl.c (main): Likewise.
16230         * tests/test-frexpl.c (main): Likewise.
16231         * tests/test-isnan.c (test_long_double): Likewise.
16232         * tests/test-isnanl.h (main): Likewise.
16233         * tests/test-ldexpl.h (main): Likewise.
16234         * tests/test-roundl.h (main): Likewise.
16235         * tests/test-truncl.h (main): Likewise.
16236         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
16237
16238 2009-02-26  Eric Blake  <ebb9@byu.net>
16239             Bruno Haible  <bruno@clisp.org>
16240
16241         Work around a *printf bug with %ls on Solaris.
16242         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
16243         precision is specified, sprintf stops converting the wide string
16244         argument when the number of bytes that have been produced by this
16245         conversion equals or exceeds the precision.
16246         * doc/posix-functions/fprintf.texi: Update.
16247         * doc/posix-functions/printf.texi: Update.
16248         * doc/posix-functions/snprintf.texi: Update.
16249         * doc/posix-functions/sprintf.texi: Update.
16250         * doc/posix-functions/vfprintf.texi: Update.
16251         * doc/posix-functions/vprintf.texi: Update.
16252         * doc/posix-functions/vsnprintf.texi: Update.
16253         * doc/posix-functions/vsprintf.texi: Update.
16254         * doc/glibc-functions/obstack_printf.texi: Update.
16255         * doc/glibc-functions/obstack_vprintf.texi: Update.
16256
16257 2009-02-26  Eric Blake  <ebb9@byu.net>
16258
16259         stdlib: favor compiler check of random.h
16260         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
16261         to avoid an ObjC random.h installed by Swarm.
16262
16263 2009-02-26  Bruno Haible  <bruno@clisp.org>
16264
16265         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
16266         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
16267         Reported by Gary V. Vaughan <gary@gnu.org>.
16268
16269 2009-02-26  Bruno Haible  <bruno@clisp.org>
16270
16271         Fix *printf behaviour regarding the %ls directive.
16272         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
16273         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
16274         NEED_PRINTF_DIRECTIVE_LS.
16275         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
16276         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
16277         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
16278         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
16279         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
16280         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
16281         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
16282         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
16283         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
16284         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
16285         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
16286         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
16287         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
16288         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
16289         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
16290         * doc/posix-functions/fprintf.texi: Update.
16291         * doc/posix-functions/printf.texi: Update.
16292         * doc/posix-functions/snprintf.texi: Update.
16293         * doc/posix-functions/sprintf.texi: Update.
16294         * doc/posix-functions/vfprintf.texi: Update.
16295         * doc/posix-functions/vprintf.texi: Update.
16296         * doc/posix-functions/vsnprintf.texi: Update.
16297         * doc/posix-functions/vsprintf.texi: Update.
16298         * doc/glibc-functions/obstack_printf.texi: Update.
16299         * doc/glibc-functions/obstack_vprintf.texi: Update.
16300         Reported by Eric Blake.
16301
16302 2009-02-25  Bruno Haible  <bruno@clisp.org>
16303
16304         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
16305         with known value.
16306         Reported by Gary V. Vaughan <gary@gnu.org>.
16307
16308 2009-02-25  Bruno Haible  <bruno@clisp.org>
16309
16310         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
16311         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
16312         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
16313         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
16314         Reported by Gary V. Vaughan <gary@gnu.org>.
16315
16316 2009-02-25  Bruno Haible  <bruno@clisp.org>
16317
16318         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
16319         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
16320         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
16321         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
16322         Reported by Gary V. Vaughan <gary@gnu.org>.
16323
16324 2009-02-25  Eric Blake  <ebb9@byu.net>
16325
16326         tests: skip fseek/ftell tests if ungetc is broken
16327         * m4/ungetc.m4: New file.
16328         * modules/fseek-tests: Split test, so ungetc dependency is
16329         separate from rest of test.
16330         * modules/fseeko-tests: Likewise.
16331         * modules/ftell-tests: Likewise.
16332         * modules/ftello-tests: Likewise.
16333         * tests/test-fseek.c (main): Isolate ungetc dependency.
16334         * tests/test-fseeko.c (main): Likewise.
16335         * tests/test-ftell.c (main): Likewise.
16336         * tests/test-ftello.c (main): Likewise.
16337         * tests/test-fseek2.sh: New file.
16338         * tests/test-fseeko2.sh: Likewise.
16339         * tests/test-ftell2.sh: Likewise.
16340         * tests/test-ftello2.sh: Likewise.
16341
16342 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
16343
16344         test-getaddrinfo: fix usage of skip return code 77
16345         * tests/test-gettaddrinfo.c: Return skip code 77 only
16346         for first occurance of skip (4x77 is not 77)
16347
16348 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
16349
16350         strtod: avoid C99 decl-after-statement
16351         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
16352
16353 2009-02-24  Eric Blake  <ebb9@byu.net>
16354
16355         strtod: detect HP-UX 11.31 bug
16356         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
16357         Reported by Gary V. Vaughan.
16358
16359 2009-02-23  Bruno Haible  <bruno@clisp.org>
16360
16361         Fix invalid read past end of memory block.
16362         * lib/vasnprintf.c (DCHAR_SET): Define.
16363         (local_wcslen): Define only when needed.
16364         (local_strnlen, local_wcsnlen): New functions.
16365         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
16366         directives that involve a conversion ourselves.
16367         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
16368         wcsnlen, mbrtowc, wcrtomb.
16369         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
16370         * tests/test-vasprintf-posix.c (test_function): Likewise.
16371         * tests/test-snprintf-posix.h (test_function): Likewise.
16372         * tests/test-sprintf-posix.h (test_function): Likewise.
16373         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16374
16375 2009-02-22  Bruno Haible  <bruno@clisp.org>
16376
16377         Implement new clarified decomposition of Hangul syllables.
16378         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
16379         of type LTV, return only a pairwise decomposition.
16380         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
16381         Likewise.
16382         * tests/uninorm/test-decomposition.c (main): Updated expected result.
16383         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
16384         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
16385
16386 2009-02-22  Bruno Haible  <bruno@clisp.org>
16387
16388         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
16389         zero-length results and shrink excess allocated memory.
16390         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
16391         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
16392         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
16393         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
16394         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
16395         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
16396         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
16397         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
16398         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
16399         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
16400         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
16401         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
16402
16403 2009-02-21  Bruno Haible  <bruno@clisp.org>
16404
16405         * doc/gnulib.texi: Include safe-alloc.texi earlier.
16406         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
16407         spaces after a period. Put a space between a macro name and its
16408         argument list. Trivial rewordings.
16409         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
16410         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
16411         (main): Return 0 explicitly.
16412
16413 2009-02-21  Bruno Haible  <bruno@clisp.org>
16414
16415         Tests for module 'uninorm/filter'.
16416         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
16417         * modules/uninorm/filter-tests: New file.
16418
16419         New module 'uninorm/filter'.
16420         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
16421         uninorm_filter_flush, uninorm_filter_free): New declarations.
16422         * lib/uninorm/uninorm-filter.c: New file.
16423         * modules/uninorm/filter: New file.
16424
16425 2009-02-21  Bruno Haible  <bruno@clisp.org>
16426
16427         Tests for module 'uninorm/nfkc'.
16428         * tests/uninorm/test-nfkc.c: New file.
16429         * tests/uninorm/test-u8-nfkc.c: New file.
16430         * tests/uninorm/test-u16-nfkc.c: New file.
16431         * tests/uninorm/test-u32-nfkc.c: New file.
16432         * tests/uninorm/test-u32-nfkc-big.sh: New file.
16433         * tests/uninorm/test-u32-nfkc-big.c: New file.
16434         * modules/uninorm/nfkc-tests: New file.
16435
16436         New module 'uninorm/nfkc'.
16437         * lib/uninorm/nfkc.c: New file.
16438         * modules/uninorm/nfkc: New file.
16439
16440         Tests for module 'uninorm/nfkd'.
16441         * tests/uninorm/test-nfkd.c: New file.
16442         * tests/uninorm/test-u8-nfkd.c: New file.
16443         * tests/uninorm/test-u16-nfkd.c: New file.
16444         * tests/uninorm/test-u32-nfkd.c: New file.
16445         * tests/uninorm/test-u32-nfkd-big.sh: New file.
16446         * tests/uninorm/test-u32-nfkd-big.c: New file.
16447         * modules/uninorm/nfkd-tests: New file.
16448
16449         New module 'uninorm/nfkd'.
16450         * lib/uninorm/nfkd.c: New file.
16451         * modules/uninorm/nfkd: New file.
16452
16453         Tests for module 'uninorm/nfc'.
16454         * tests/uninorm/test-nfc.c: New file.
16455         * tests/uninorm/test-u8-nfc.c: New file.
16456         * tests/uninorm/test-u16-nfc.c: New file.
16457         * tests/uninorm/test-u32-nfc.c: New file.
16458         * tests/uninorm/test-u32-nfc-big.sh: New file.
16459         * tests/uninorm/test-u32-nfc-big.c: New file.
16460         * modules/uninorm/nfc-tests: New file.
16461
16462         New module 'uninorm/nfc'.
16463         * lib/uninorm/nfc.c: New file.
16464         * modules/uninorm/nfc: New file.
16465
16466         Tests for module 'uninorm/nfd'.
16467         * tests/uninorm/test-nfd.c: New file.
16468         * tests/uninorm/test-u8-nfd.c: New file.
16469         * tests/uninorm/test-u16-nfd.c: New file.
16470         * tests/uninorm/test-u32-nfd.c: New file.
16471         * tests/uninorm/test-u32-nfd-big.sh: New file.
16472         * tests/uninorm/test-u32-nfd-big.c: New file.
16473         * tests/uninorm/test-u32-normalize-big.h: New file.
16474         * tests/uninorm/test-u32-normalize-big.c: New file.
16475         * tests/uninorm/NormalizationTest.txt: New file, created from
16476         Unicode 5.1.0 NormalizationTest.txt.
16477         * modules/uninorm/nfd-tests: New file.
16478
16479         New module 'uninorm/nfd'.
16480         * lib/uninorm/nfd.c: New file.
16481         * modules/uninorm/nfd: New file.
16482
16483         New module 'uninorm/u32-normalize'.
16484         * lib/uninorm/u32-normalize.c: New file.
16485         * modules/uninorm/u32-normalize: New file.
16486
16487         New module 'uninorm/u16-normalize'.
16488         * lib/uninorm/u16-normalize.c: New file.
16489         * modules/uninorm/u16-normalize: New file.
16490
16491         New module 'uninorm/u8-normalize'.
16492         * lib/uninorm/u8-normalize.c: New file.
16493         * lib/uninorm/normalize-internal.h: New file.
16494         * lib/uninorm/u-normalize-internal.h: New file.
16495         * modules/uninorm/u8-normalize: New file.
16496
16497         New module 'uninorm/decompose-internal'.
16498         * lib/uninorm/decompose-internal.c: New file.
16499         * modules/uninorm/decompose-internal: New file.
16500
16501         Tests for module 'uninorm/composition'.
16502         * tests/uninorm/test-composition.c: New file.
16503         * modules/uninorm/composition-tests: New file.
16504
16505         New module 'uninorm/composition'.
16506         * lib/uninorm/composition.c: New file.
16507         * lib/uninorm/composition-table.gperf: New file, generated by
16508         gen-uni-tables.
16509         * modules/uninorm/composition: New file.
16510
16511         Tests for module 'uninorm/compat-decomposition'.
16512         * tests/uninorm/test-compat-decomposition.c: New file.
16513         * modules/uninorm/compat-decomposition-tests: New file.
16514
16515         New module 'uninorm/compat-decomposition'.
16516         * lib/uninorm/decompose-internal.h: New file.
16517         * lib/uninorm/compat-decomposition.c: New file.
16518         * modules/uninorm/compat-decomposition: New file.
16519
16520         Tests for module 'uninorm/canonical-decomposition'.
16521         * tests/uninorm/test-canonical-decomposition.c: New file.
16522         * modules/uninorm/canonical-decomposition-tests: New file.
16523
16524         New module 'uninorm/canonical-decomposition'.
16525         * lib/uninorm/canonical-decomposition.c: New file.
16526         * modules/uninorm/canonical-decomposition: New file.
16527
16528         Tests for module 'uninorm/decomposition'.
16529         * tests/uninorm/test-decomposition.c: New file.
16530         * modules/uninorm/decomposition-tests: New file.
16531
16532         New module 'uninorm/decomposition'.
16533         * lib/uninorm/decomposition.c: New file.
16534         * modules/uninorm/decomposition: New file.
16535
16536         New module 'uninorm/decomposition-table'.
16537         * lib/uninorm/decomposition-table.h: New file.
16538         * lib/uninorm/decomposition-table.c: New file.
16539         * lib/uninorm/decomposition-table1.h: New file, generated by
16540         gen-uni-tables.
16541         * lib/uninorm/decomposition-table2.h: New file, generated by
16542         gen-uni-tables.
16543         * modules/uninorm/decomposition-table: New file.
16544
16545         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
16546         (UC_DECOMP_*): New enumeration items.
16547         (get_decomposition): New function.
16548         (struct decomp_table): New type.
16549         (output_decomposition, output_decomposition_tables): New functions.
16550         (unicode_composition_exclusions): New variable.
16551         (fill_composition_exclusions, debug_output_composition_tables): New
16552         functions.
16553         (main): Accept one more argument. Invoke fill_composition_exclusions.
16554         Output decomposition and composition tables.
16555
16556         New module 'uninorm/base'.
16557         * lib/uninorm.h: New file.
16558         * lib/unictype.h: Update comment.
16559         * modules/uninorm/base: New file.
16560
16561 2009-02-21  David Lutterkort  <lutter@redhat.com>
16562
16563         Tests for module 'safe-alloc'.
16564         * tests/test-safe-alloc.c: New file.
16565         * modules/safe-alloc-tests: New file.
16566
16567         New module 'safe-alloc'.
16568         * lib/safe-alloc.h: New file.
16569         * lib/safe-alloc.c: New file.
16570         * m4/safe-alloc.m4: New file.
16571         * modules/safe-alloc: New file.
16572         * doc/safe-alloc.texi: New file.
16573         * doc/gnulib.texi: Include it.
16574         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
16575         safe-alloc.
16576
16577 2009-02-18  Bruno Haible  <bruno@clisp.org>
16578
16579         Fix link error on non-glibc systems.
16580         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
16581         variable.
16582         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16583
16584 2009-02-18  Jim Meyering  <meyering@redhat.com>
16585
16586         fts: avoid used-uninitialized error due to recent change
16587         * lib/fts.c (fts_read): Guard uses of the new member,
16588         parent->fts_n_dirs_remaining, since it's not relevant for
16589         the parent of a directory specified on the command-line.
16590
16591 2009-02-17  James Youngman  <jay@gnu.org>
16592             Bruno Haible  <bruno@clisp.org>
16593
16594         * m4/include_next.m4: Reformulate comment.
16595
16596 2009-02-16  Jim Meyering  <meyering@redhat.com>
16597
16598         fts: add #if guards so that the fts_lgpl module still builds
16599         * lib/fts.c: Guard just-added hash-table-using parts with
16600         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
16601         Reported by Simon Josefsson.
16602
16603 2009-02-15  Bruno Haible  <bruno@clisp.org>
16604
16605         * modules/array-mergesort-tests: New file.
16606         * tests/test-array-mergesort.c: New file.
16607
16608         New module 'array-mergesort'.
16609         * modules/array-mergesort: New file.
16610         * lib/array-mergesort.h: New file.
16611
16612 2009-02-15  Bruno Haible  <bruno@clisp.org>
16613
16614         Fix 2009-02-07 commit.
16615         * lib/gen-uni-tables.c (output_predicate, output_category,
16616         output_combclass, output_bidi_category, output_decimal_digit,
16617         output_digit, output_numeric, output_mirror, output_scripts,
16618         output_ident_category, output_simple_mapping): Fix format directives.
16619         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
16620
16621 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
16622
16623         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
16624         fixes are available from IBM.
16625
16626 2009-02-13  Jim Meyering  <meyering@redhat.com>
16627
16628         fts: arrange not to stat non-directories in more cases
16629         This makes GNU find (when it doesn't need to stat each file)
16630         *much* more efficient at traversing reiserfs file systems.
16631         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
16632         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
16633         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
16634         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
16635         (leaf_optimization_applies): New function.
16636         (LCO_hash, LCO_compare): New helper functions.
16637         (link_count_optimize_ok): New function.
16638         (fts_stat): Initialize new member (if dir).
16639         (fts_read): Decrement parent's fts_n_dirs_remaining count if
16640         we've just stat'ed a directory.  Skip the stat call when possible.
16641         ---
16642         Note this AFS-related exchange:
16643         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
16644         and note find's pioctl call in find/fstype.c.
16645         But that is necessary only if you want to enable the
16646         optimization for AFS, and for now, I don't.
16647
16648         fts: move a function definition "up" (no semantic change)
16649         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
16650         "up" to precede upcoming use of a related function.
16651
16652 2009-02-11  Jim Meyering  <meyering@redhat.com>
16653
16654         fts: correct internal computation of nlinks (optimization-related)
16655         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
16656         whether the current entry is a directory, so don't test it.
16657
16658 2009-02-10  Bruno Haible  <bruno@clisp.org>
16659
16660         Tests for module 'uniwbrk/ulc-wordbreaks'.
16661         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
16662         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
16663         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
16664
16665         Tests for module 'uniwbrk/u32-wordbreaks'.
16666         * modules/uniwbrk/u32-wordbreaks-tests: New file.
16667         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
16668
16669         Tests for module 'uniwbrk/u16-wordbreaks'.
16670         * modules/uniwbrk/u16-wordbreaks-tests: New file.
16671         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
16672
16673         Tests for module 'uniwbrk/u8-wordbreaks'.
16674         * modules/uniwbrk/u8-wordbreaks-tests: New file.
16675         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
16676
16677 2009-02-10  Bruno Haible  <bruno@clisp.org>
16678
16679         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
16680         property.
16681         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
16682         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
16683         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
16684
16685 2009-02-10  Simon Josefsson  <simon@josefsson.org>
16686
16687         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
16688         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
16689
16690 2009-02-10  Bruno Haible  <bruno@clisp.org>
16691
16692         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
16693         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
16694         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
16695         * lib/unilbrk/u8-possible-linebreaks.c: Update.
16696         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
16697         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
16698
16699 2009-02-09  Simon Josefsson  <simon@josefsson.org>
16700
16701         * lib/sockets.h (gl_fd_to_handle): New function.
16702
16703         * tests/test-sockets.c: Call gl_fd_to_handle.
16704
16705 2009-02-09  Bruno Haible  <bruno@clisp.org>
16706
16707         * doc/havelib.texi: Document the conventions on bi-arch systems.
16708
16709 2009-02-08  Bruno Haible  <bruno@clisp.org>
16710
16711         Document the AC_LIB_LINKFLAGS macro.
16712         * doc/havelib.texi: New file, mostly written on 2005-05-24.
16713         * doc/gnulib.texi: Include it.
16714
16715 2009-02-08  Bruno Haible  <bruno@clisp.org>
16716
16717         Fix wrong order of sections, compared to TOC.
16718         * doc/gnulib.texi: Include relocatable-maint.texi after the
16719         "Regular expressions" node, not before.
16720
16721 2009-02-08  Bruno Haible  <bruno@clisp.org>
16722
16723         Tests for module 'unicase/totitle'.
16724         * modules/unicase/totitle-tests: New file.
16725
16726         Tests for module 'unicase/tolower'.
16727         * modules/unicase/tolower-tests: New file.
16728
16729         Tests for module 'unicase/toupper'.
16730         * modules/unicase/toupper-tests: New file.
16731         * tests/unicase/test-mapping-part1.h: New file.
16732         * tests/unicase/test-mapping-part2.h: New file.
16733
16734         New module 'unicase/totitle'.
16735         * modules/unicase/totitle: New file.
16736         * lib/unicase/totitle.c: New file.
16737
16738         New module 'unicase/tolower'.
16739         * modules/unicase/tolower: New file.
16740         * lib/unicase/tolower.c: New file.
16741
16742         New module 'unicase/toupper'.
16743         * modules/unicase/toupper: New file.
16744         * lib/unicase/toupper.c: New file.
16745         * lib/unicase/simple-mapping.h: New file.
16746
16747         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
16748         (mapping_table): New structure.
16749         (output_simple_mapping): New function.
16750         (main): Invoke output_simple_mapping_test and output_simple_mapping.
16751         * modules/gen-uni-tables (Description): Update.
16752         * lib/unicase/toupper.h: New file, automatically generated by
16753         gen-uni-tables.
16754         * lib/unicase/tolower.h: New file, automatically generated by
16755         gen-uni-tables.
16756         * lib/unicase/totitle.h: New file, automatically generated by
16757         gen-uni-tables.
16758         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
16759         gen-uni-tables.
16760         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
16761         gen-uni-tables.
16762         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
16763         gen-uni-tables.
16764
16765         New module 'unicase/base'.
16766         * modules/unicase/base: New file.
16767         * lib/unicase.h: New file.
16768
16769 2009-02-08  Bruno Haible  <bruno@clisp.org>
16770
16771         New module 'uniwbrk/ulc-wordbreaks'.
16772         * modules/uniwbrk/ulc-wordbreaks: New file.
16773         * lib/uniwbrk/ulc-wordbreaks.c: New file.
16774
16775         New module 'uniwbrk/u32-wordbreaks'.
16776         * modules/uniwbrk/u32-wordbreaks: New file.
16777         * lib/uniwbrk/u32-wordbreaks.c: New file.
16778
16779         New module 'uniwbrk/u16-wordbreaks'.
16780         * modules/uniwbrk/u16-wordbreaks: New file.
16781         * lib/uniwbrk/u16-wordbreaks.c: New file.
16782
16783         New module 'uniwbrk/u8-wordbreaks'.
16784         * modules/uniwbrk/u8-wordbreaks: New file.
16785         * lib/uniwbrk/u8-wordbreaks.c: New file.
16786         * lib/uniwbrk/u-wordbreaks.h: New file.
16787
16788         New module 'uniwbrk/table'.
16789         * modules/uniwbrk/table: New file.
16790         * lib/uniwbrk/wbrktable.h: New file.
16791         * lib/uniwbrk/wbrktable.c: New file.
16792
16793         New module 'uniwbrk/wordbreak-property'.
16794         * modules/uniwbrk/wordbreak-property: New file.
16795         * lib/uniwbrk/wordbreak-property.c: New file.
16796
16797         * lib/gen-uni-tables.c (WBP_*): New enum items.
16798         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
16799         (unicode_org_wbp): New variable.
16800         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
16801         New functions.
16802         (wbp_table): New structure.
16803         (output_wbp, output_wbrk_tables): New functions.
16804         (main): Accept additional argument. Invoke fill_org_wbp,
16805         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
16806         output_wbrk_tables.
16807         * modules/gen-uni-tables (Description): Update.
16808         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
16809         gen-uni-tables.
16810
16811         New module 'uniwbrk/base'.
16812         * modules/uniwbrk/base: New file.
16813         * lib/uniwbrk.h: New file.
16814
16815 2009-02-08  Bruno Haible  <bruno@clisp.org>
16816
16817         Update to Unicode 5.1.0.
16818         * lib/gen-uni-tables.c (is_property_alphabetic): Include
16819         U+2185..U+2188.
16820         (is_property_default_ignorable_code_point): Don't include characters
16821         of category Cc or Cs and not-a-characters.
16822         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
16823         U+0D79, U+109E, U+109F, U+A60C.
16824         * lib/unictype/bidi_of.h: Regenerated.
16825         * lib/unictype/blocks.h: Regenerated.
16826         * lib/unictype/categ_C.h: Regenerated.
16827         * lib/unictype/categ_Cf.h: Regenerated.
16828         * lib/unictype/categ_Cn.h: Regenerated.
16829         * lib/unictype/categ_L.h: Regenerated.
16830         * lib/unictype/categ_Ll.h: Regenerated.
16831         * lib/unictype/categ_Lm.h: Regenerated.
16832         * lib/unictype/categ_Lo.h: Regenerated.
16833         * lib/unictype/categ_Lu.h: Regenerated.
16834         * lib/unictype/categ_M.h: Regenerated.
16835         * lib/unictype/categ_Mc.h: Regenerated.
16836         * lib/unictype/categ_Me.h: Regenerated.
16837         * lib/unictype/categ_Mn.h: Regenerated.
16838         * lib/unictype/categ_N.h: Regenerated.
16839         * lib/unictype/categ_Nd.h: Regenerated.
16840         * lib/unictype/categ_Nl.h: Regenerated.
16841         * lib/unictype/categ_No.h: Regenerated.
16842         * lib/unictype/categ_P.h: Regenerated.
16843         * lib/unictype/categ_Pd.h: Regenerated.
16844         * lib/unictype/categ_Pe.h: Regenerated.
16845         * lib/unictype/categ_Pf.h: Regenerated.
16846         * lib/unictype/categ_Pi.h: Regenerated.
16847         * lib/unictype/categ_Po.h: Regenerated.
16848         * lib/unictype/categ_Ps.h: Regenerated.
16849         * lib/unictype/categ_S.h: Regenerated.
16850         * lib/unictype/categ_Sk.h: Regenerated.
16851         * lib/unictype/categ_Sm.h: Regenerated.
16852         * lib/unictype/categ_So.h: Regenerated.
16853         * lib/unictype/categ_of.h: Regenerated.
16854         * lib/unictype/combining.h: Regenerated.
16855         * lib/unictype/ctype_alnum.h: Regenerated.
16856         * lib/unictype/ctype_alpha.h: Regenerated.
16857         * lib/unictype/ctype_graph.h: Regenerated.
16858         * lib/unictype/ctype_lower.h: Regenerated.
16859         * lib/unictype/ctype_print.h: Regenerated.
16860         * lib/unictype/ctype_punct.h: Regenerated.
16861         * lib/unictype/ctype_upper.h: Regenerated.
16862         * lib/unictype/decdigit.h: Regenerated.
16863         * lib/unictype/digit.h: Regenerated.
16864         * lib/unictype/mirror.h: Regenerated.
16865         * lib/unictype/numeric.h: Regenerated.
16866         * lib/unictype/pr_alphabetic.h: Regenerated.
16867         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
16868         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
16869         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
16870         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
16871         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
16872         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
16873         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
16874         * lib/unictype/pr_combining.h: Regenerated.
16875         * lib/unictype/pr_dash.h: Regenerated.
16876         * lib/unictype/pr_decimal_digit.h: Regenerated.
16877         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
16878         * lib/unictype/pr_deprecated.h: Regenerated.
16879         * lib/unictype/pr_diacritic.h: Regenerated.
16880         * lib/unictype/pr_extender.h: Regenerated.
16881         * lib/unictype/pr_format_control.h: Regenerated.
16882         * lib/unictype/pr_grapheme_base.h: Regenerated.
16883         * lib/unictype/pr_grapheme_extend.h: Regenerated.
16884         * lib/unictype/pr_grapheme_link.h: Regenerated.
16885         * lib/unictype/pr_id_continue.h: Regenerated.
16886         * lib/unictype/pr_id_start.h: Regenerated.
16887         * lib/unictype/pr_ideographic.h: Regenerated.
16888         * lib/unictype/pr_ignorable_control.h: Regenerated.
16889         * lib/unictype/pr_lowercase.h: Regenerated.
16890         * lib/unictype/pr_math.h: Regenerated.
16891         * lib/unictype/pr_numeric.h: Regenerated.
16892         * lib/unictype/pr_other_alphabetic.h: Regenerated.
16893         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
16894         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
16895         * lib/unictype/pr_other_id_continue.h: Regenerated.
16896         * lib/unictype/pr_other_lowercase.h: Regenerated.
16897         * lib/unictype/pr_other_math.h: Regenerated.
16898         * lib/unictype/pr_punctuation.h: Regenerated.
16899         * lib/unictype/pr_sentence_terminal.h: Regenerated.
16900         * lib/unictype/pr_soft_dotted.h: Regenerated.
16901         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
16902         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
16903         * lib/unictype/pr_unified_ideograph.h: Regenerated.
16904         * lib/unictype/pr_uppercase.h: Regenerated.
16905         * lib/unictype/pr_xid_continue.h: Regenerated.
16906         * lib/unictype/pr_xid_start.h: Regenerated.
16907         * lib/unictype/pr_zero_width.h: Regenerated.
16908         * lib/unictype/scripts.h: Regenerated.
16909         * lib/unictype/scripts_byname.gperf: Regenerated.
16910         * lib/unictype/sy_java_ident.h: Regenerated.
16911         * lib/unilbrk/lbrkprop1.h: Regenerated.
16912         * lib/unilbrk/lbrkprop2.h: Regenerated.
16913         * tests/unictype/test-categ_C.c: Regenerated.
16914         * tests/unictype/test-categ_Cf.c: Regenerated.
16915         * tests/unictype/test-categ_Cn.c: Regenerated.
16916         * tests/unictype/test-categ_L.c: Regenerated.
16917         * tests/unictype/test-categ_Ll.c: Regenerated.
16918         * tests/unictype/test-categ_Lm.c: Regenerated.
16919         * tests/unictype/test-categ_Lo.c: Regenerated.
16920         * tests/unictype/test-categ_Lu.c: Regenerated.
16921         * tests/unictype/test-categ_M.c: Regenerated.
16922         * tests/unictype/test-categ_Mc.c: Regenerated.
16923         * tests/unictype/test-categ_Me.c: Regenerated.
16924         * tests/unictype/test-categ_Mn.c: Regenerated.
16925         * tests/unictype/test-categ_N.c: Regenerated.
16926         * tests/unictype/test-categ_Nd.c: Regenerated.
16927         * tests/unictype/test-categ_Nl.c: Regenerated.
16928         * tests/unictype/test-categ_No.c: Regenerated.
16929         * tests/unictype/test-categ_P.c: Regenerated.
16930         * tests/unictype/test-categ_Pd.c: Regenerated.
16931         * tests/unictype/test-categ_Pe.c: Regenerated.
16932         * tests/unictype/test-categ_Pf.c: Regenerated.
16933         * tests/unictype/test-categ_Pi.c: Regenerated.
16934         * tests/unictype/test-categ_Po.c: Regenerated.
16935         * tests/unictype/test-categ_Ps.c: Regenerated.
16936         * tests/unictype/test-categ_S.c: Regenerated.
16937         * tests/unictype/test-categ_Sk.c: Regenerated.
16938         * tests/unictype/test-categ_Sm.c: Regenerated.
16939         * tests/unictype/test-categ_So.c: Regenerated.
16940         * tests/unictype/test-ctype_alnum.c: Regenerated.
16941         * tests/unictype/test-ctype_alpha.c: Regenerated.
16942         * tests/unictype/test-ctype_graph.c: Regenerated.
16943         * tests/unictype/test-ctype_lower.c: Regenerated.
16944         * tests/unictype/test-ctype_print.c: Regenerated.
16945         * tests/unictype/test-ctype_punct.c: Regenerated.
16946         * tests/unictype/test-ctype_upper.c: Regenerated.
16947         * tests/unictype/test-decdigit.h: Regenerated.
16948         * tests/unictype/test-digit.h: Regenerated.
16949         * tests/unictype/test-numeric.h: Regenerated.
16950         * tests/unictype/test-pr_alphabetic.c: Regenerated.
16951         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
16952         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
16953         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
16954         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
16955         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
16956         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
16957         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
16958         * tests/unictype/test-pr_combining.c: Regenerated.
16959         * tests/unictype/test-pr_dash.c: Regenerated.
16960         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
16961         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
16962         * tests/unictype/test-pr_deprecated.c: Regenerated.
16963         * tests/unictype/test-pr_diacritic.c: Regenerated.
16964         * tests/unictype/test-pr_extender.c: Regenerated.
16965         * tests/unictype/test-pr_format_control.c: Regenerated.
16966         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
16967         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
16968         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
16969         * tests/unictype/test-pr_id_continue.c: Regenerated.
16970         * tests/unictype/test-pr_id_start.c: Regenerated.
16971         * tests/unictype/test-pr_ideographic.c: Regenerated.
16972         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
16973         * tests/unictype/test-pr_lowercase.c: Regenerated.
16974         * tests/unictype/test-pr_math.c: Regenerated.
16975         * tests/unictype/test-pr_numeric.c: Regenerated.
16976         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
16977         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
16978         Regenerated.
16979         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
16980         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
16981         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
16982         * tests/unictype/test-pr_other_math.c: Regenerated.
16983         * tests/unictype/test-pr_punctuation.c: Regenerated.
16984         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
16985         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
16986         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
16987         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
16988         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
16989         * tests/unictype/test-pr_uppercase.c: Regenerated.
16990         * tests/unictype/test-pr_xid_continue.c: Regenerated.
16991         * tests/unictype/test-pr_xid_start.c: Regenerated.
16992         * tests/unictype/test-pr_zero_width.c: Regenerated.
16993
16994         Update to Unicode 5.1.0.
16995         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
16996         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
16997         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
16998         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
16999         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
17000         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
17001         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
17002         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
17003         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
17004         (nonspacing_table_ind): Update.
17005         * tests/uniwidth/test-uc_width2.sh: Update expected result.
17006
17007         Update to Unicode 5.1.0.
17008         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
17009         code transform.
17010         * lib/uniname/uniname.c (unicode_character_name,
17011         unicode_name_character): Add the range 0x1Fxxx to the code transform.
17012         * lib/uniname/uninames.h: Regenerated.
17013         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
17014
17015 2009-02-07  Bruno Haible  <bruno@clisp.org>
17016
17017         Merge gen-ctype and gen-lbrk into a single program.
17018         * lib/gen-uni-tables.c: New file, incorporating
17019         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
17020         Add directory prefixes to the names of the generated files.
17021         * lib/unictype/gen-ctype.c: Remove file.
17022         * lib/unilbrk/gen-lbrk.c: Remove file.
17023         * modules/gen-uni-tables: New file.
17024         * modules/unictype/gen-ctype: Remove file.
17025         * modules/unilbrk/gen-lbrk: Remove file.
17026
17027 2009-02-07  Bruno Haible  <bruno@clisp.org>
17028
17029         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
17030
17031         New module 'unistr/u32-strcoll'.
17032         * modules/unistr/u32-strcoll: New file.
17033         * lib/unistr/u32-strcoll.c: New file.
17034
17035         New module 'unistr/u16-strcoll'.
17036         * modules/unistr/u16-strcoll: New file.
17037         * lib/unistr/u16-strcoll.c: New file.
17038
17039         New module 'unistr/u8-strcoll'.
17040         * modules/unistr/u8-strcoll: New file.
17041         * lib/unistr/u8-strcoll.c: New file.
17042         * lib/unistr/u-strcoll.h: New file.
17043
17044 2009-02-07  Bruno Haible  <bruno@clisp.org>
17045
17046         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
17047         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
17048         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
17049         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
17050         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
17051         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
17052
17053 2009-02-07  Bruno Haible  <bruno@clisp.org>
17054
17055         Make 64-bit clean.
17056         * lib/unictype/gen-ctype.c (output_predicate, output_category,
17057         output_combclass, output_bidi_category, output_decimal_digit,
17058         output_digit, output_numeric, output_mirror, output_scripts,
17059         output_ident_category): Use proper width specifier in format strings.
17060
17061 2009-02-07  Bruno Haible  <bruno@clisp.org>
17062
17063         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
17064         failure behaviour.
17065
17066 2009-02-07  Jim Meyering  <meyering@redhat.com>
17067
17068         regex: avoid compilation failure with upcoming gcc-4.4
17069         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
17070         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
17071         "... error: integer overflow in preprocessor expression".
17072
17073 2009-02-05  Ben Pfaff  <blp@gnu.org>
17074
17075         Fix link errors on Windows when close module is used.
17076         * modules/close: Add $(LIB_CLOSE) to Link section.
17077         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
17078         $(LIB_CLOSE) on Windows.
17079
17080 2009-02-05  Jim Meyering  <meyering@redhat.com>
17081
17082         still avoid unused-parameter warnings, but do it cleanly
17083         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
17084         (get_fs_usage): Cast to void instead.
17085         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
17086         (dev_from_mount_options, read_file_system_list): Cast to void.
17087         Prompted by Bruno Haible.
17088
17089 2009-02-04  Jim Meyering  <meyering@redhat.com>
17090
17091         fsusage.c: correct copyright year
17092         * lib/fsusage.c: Reflect year in which the change is pushed into
17093
17094         avoid misc. warnings
17095         * lib/fsusage.c (UNUSED_PARAM): Define.
17096         (get_fs_usage): Mark parameter "disk" as unused.
17097         * lib/getugroups.c (getgrent): Use "void" in prototype.
17098         * lib/mountlist.c: Mark unused parameters.
17099         (read_file_system_list): Declare a local with "const".
17100         * lib/nanosleep.c (getnow): Declare static.
17101         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
17102
17103         dirfd: set errno upon failure
17104         * lib/dirfd.c: Include <errno.h>.
17105         Set errno to ENOTSUP when returning -1.
17106         * modules/dirfd (Depends-on): Add errno.
17107         Suggested by John Kodis <kodis@comcast.net>.
17108
17109 2009-02-01  Bruno Haible  <bruno@clisp.org>
17110
17111         Don't assume sizeof (long) >= sizeof (void *).
17112         * lib/memcmp.c: Include stdint.h.
17113         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
17114         srcp2 to 'const byte *'.
17115         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
17116         types to uintptr_t.
17117         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
17118         * modules/memcmp (Depends-on): Add stdint.
17119         Reported by Ozkan Sezer <sezeroz@gmail.com>.
17120
17121 2009-01-30  Eric Blake  <ebb9@byu.net>
17122
17123         fix more require-before-expand issues
17124         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
17125         expand, AC_PROG_AWK.
17126         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
17127
17128 2009-01-28  Eric Blake  <ebb9@byu.net>
17129
17130         version-etc: use consistent URL formatting
17131         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
17132         Improve formatting.  Use fputs for string without %.
17133
17134 2009-01-28  Jim Meyering  <meyering@redhat.com>
17135
17136         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
17137         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
17138         "underquoted definition of NAME" from autoconf-2.59.
17139
17140 2009-01-28  Bruno Haible  <bruno@clisp.org>
17141
17142         * doc/gnulib.texi: Add "Obsolete modules" to index.
17143
17144 2009-01-28  Jim Meyering  <meyering@redhat.com>
17145
17146         useless-if-before-free: recognize more variants
17147         * build-aux/useless-if-before-free: Also recognize e.g.,
17148         if (NULL != p) free (p);
17149
17150 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
17151
17152         test-getaddrinfo: skip (don't fail) this test when there's no network
17153         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
17154         on the presumption that it means you lack network access.
17155
17156 2009-01-26  Jim Meyering  <meyering@redhat.com>
17157
17158         fflush: avoid warnings on modern systems
17159         * lib/fflush.c (rpl_fflush): Move declarations of locals,
17160         pos and result, into scopes where they're used.
17161
17162 2009-01-26  Eric Blake  <ebb9@byu.net>
17163
17164         Silence warning reintroduced by recent extensions patch.
17165         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
17166         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
17167         autoconf.
17168
17169         Backport improved autoconf semantics of AC_DEFUN_ONCE.
17170         * m4/00gnulib.m4: New file.
17171         * gnulib-tool (func_get_filelist): Always use it.
17172         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
17173         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
17174
17175 2009-01-25  Bruno Haible  <bruno@clisp.org>
17176
17177         Make test-quotearg work on MacOS X and AIX.
17178         * tests/test-quotearg.sh: New file.
17179         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
17180         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
17181         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
17182         include <libintl.h>.
17183         (fake_locale): Remove variable.
17184         (gettext, dgettext, dcgettext): Remove functions.
17185         (main): Instead of setting a fake locale, set a real locale. Call
17186         textdomain and bindtextdomain.
17187         * modules/quotearg-tests (Files): Add the new files.
17188         (Depends-on): Add gettext, setenv, unsetenv.
17189         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
17190         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
17191         Augment TESTS_ENVIRONMENT.
17192
17193 2009-01-25  Bruno Haible  <bruno@clisp.org>
17194
17195         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
17196         fr_FR.ISO8859-1 locale on MacOS X.
17197         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
17198         ja_JP.eucJP locale on MacOS X.
17199         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
17200         zh_CN.GB18030 locale on MacOS X.
17201
17202 2009-01-25  Bruno Haible  <bruno@clisp.org>
17203
17204         Avoid link errors on MacOS X 10.3.
17205         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
17206         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
17207
17208 2009-01-25  Bruno Haible  <bruno@clisp.org>
17209
17210         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
17211         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
17212         * modules/pipe (Files): Remove m4/posix_spawn.m4.
17213         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
17214         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
17215         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
17216         posix_spawnattr_init, posix_spawnattr_setsigmask,
17217         posix_spawnattr_setflags, posix_spawnattr_destroy.
17218
17219         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
17220         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
17221         * modules/execute (Files): Remove m4/posix_spawn.m4.
17222         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
17223         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
17224         posix_spawnattr_init, posix_spawnattr_setsigmask,
17225         posix_spawnattr_setflags, posix_spawnattr_destroy.
17226
17227 2009-01-25  Bruno Haible  <bruno@clisp.org>
17228
17229         * lib/glthread/threadlib.c: Include <stdlib.h>.
17230
17231 2009-01-25  Bruno Haible  <bruno@clisp.org>
17232
17233         * lib/glthread/threadlib.c (dummy): New declaration.
17234
17235 2009-01-25  Bruno Haible  <bruno@clisp.org>
17236
17237         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
17238         multibyte characters also for the GB18030 encoding. Don't crash when
17239         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
17240
17241 2009-01-25  Bruno Haible  <bruno@clisp.org>
17242
17243         Avoid redefining 'struct random_data' on OSF/1 5.1.
17244         * lib/stdlib.in.h: Include <random.h> if it exists.
17245         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
17246         HAVE_RANDOM_H. Include <random.h> when testing whether
17247         'struct random_data' exists.
17248         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
17249
17250 2009-01-25  Bruno Haible  <bruno@clisp.org>
17251
17252         Don't install charset.alias on MacOS X >= 10.3.
17253         * lib/localcharset.c (DARWIN7): New macro.
17254         (get_charset_aliases): Hardcode the result for Darwin7.
17255         * modules/localcharset (install-exec-local): Don't install
17256         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
17257
17258 2009-01-25  Bruno Haible  <bruno@clisp.org>
17259
17260         Don't install charset.alias on mingw and Cygwin.
17261         * modules/localcharset (install-exec-local): Don't install
17262         charset.alias on mingw and Cygwin, if the file does not yet exist.
17263         The result for these platforms is hardcoded in localcharset.c.
17264
17265 2009-01-25  Bruno Haible  <bruno@clisp.org>
17266
17267         Make it possible again to use AC_GNU_SOURCE together with gnulib.
17268         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
17269         before requiring AC_USE_SYSTEM_EXTENSIONS.
17270
17271 2009-01-25  Jim Meyering  <meyering@redhat.com>
17272
17273         c-strtod: avoid warnings
17274         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
17275         "assignment discards qualifiers from pointer target type" warnings.
17276
17277 2009-01-24  Bruno Haible  <bruno@clisp.org>
17278
17279         Add support for non-UTF-8 locales on MacOS X.
17280         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
17281         canonical encodings. For Darwin 7 and newer, don't map traditional
17282         encodings to UTF-8.
17283         Reported by Vincent Lefevre <vincent@vinc17.org>
17284         at <http://savannah.gnu.org/bugs/?25235>.
17285
17286 2009-01-24  Bruno Haible  <bruno@clisp.org>
17287
17288         * doc/gnulib.texi (Obsolete modules): New section.
17289         Reported by Mike Frysinger <vapier@gentoo.org>.
17290
17291 2009-01-24  Bruno Haible  <bruno@clisp.org>
17292
17293         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
17294         (%.dvi): New rule.
17295
17296 2009-01-24  Bruno Haible  <bruno@clisp.org>
17297
17298         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
17299         Reported by Eric Blake.
17300
17301 2009-01-24  Bruno Haible  <bruno@clisp.org>
17302
17303         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
17304         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
17305         Reported by Gary V. Vaughan <gary@gnu.org>.
17306
17307 2009-01-24  Bruno Haible  <bruno@clisp.org>
17308
17309         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
17310
17311 2009-01-23  Bruno Haible  <bruno@clisp.org>
17312
17313         Make c-strtod, c-strtold usable in libraries.
17314         * lib/c-strtod.c: Include string.h instead of xalloc.h.
17315         (C_STRTOD): Call strdup instead of xstrdup.
17316         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
17317         * modules/c-strtold (Depends-on): Likewise.
17318         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
17319         * NEWS: Mention the change.
17320         Reported by Michael Gold <mgold@ncf.ca>.
17321
17322 2009-01-23  Jim Meyering  <meyering@redhat.com>
17323
17324         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
17325         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
17326         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
17327
17328 2009-01-23  Simon Josefsson  <simon@josefsson.org>
17329
17330         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
17331         GNU CoreUtils.
17332         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
17333         * modules/version-etc (Description): Update.
17334
17335 2009-01-22  Bruno Haible  <bruno@clisp.org>
17336
17337         Cache the C locale object.
17338         * lib/c-strtod.c (c_locale_cache): New variable.
17339         (c_locale): New function.
17340         (C_STRTOD): Use it, and don't call freelocale.
17341         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
17342         Suggested by Paolo Bonzini.
17343
17344 2009-01-21  Bruno Haible  <bruno@clisp.org>
17345
17346         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
17347         conditions other than overflow.
17348
17349 2009-01-21  Bruno Haible  <bruno@clisp.org>
17350
17351         * lib/c-strtod.c: Include errno.h.
17352         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
17353         value from STRTOD_L and STRTOD.
17354
17355 2009-01-21  Bruno Haible  <bruno@clisp.org>
17356         and Jim Meyering  <meyering@redhat.com>
17357
17358         nanosleep: skip configure test (fail it) for apple universal builds
17359         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
17360         universal builds, assume that nanosleep does not work.
17361         * modules/nanosleep (Depends-on): Add multiarch.
17362
17363         mktime: skip configure test (fail it) for apple universal builds
17364         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
17365         universal builds, assume that mktime does not work.
17366         * modules/mktime (Depends-on): Add multiarch.
17367
17368 2009-01-21  Eric Blake  <ebb9@byu.net>
17369
17370         multiarch: avoid expand-before-require warning
17371         * modules/multiarch (configure.ac): Require, rather than expand,
17372         gl_MULTIARCH.
17373         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
17374         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
17375         enforce that all clients require it.  Partial reversion of
17376         2008-12-29 patch.
17377
17378         error: avoid expand-before-require warning
17379         * modules/errno (configure.ac): Require, rather than expand,
17380         gl_HEADER_ERRNO_H.
17381         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
17382         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
17383         enforce that all clients require it.
17384
17385         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
17386         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
17387         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
17388         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
17389
17390 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
17391
17392         Revert:
17393         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
17394
17395         regex: do not depend on obsolete modules.
17396         * modules/regex: Remove memcmp and memmove.
17397
17398 2009-01-20  Bruno Haible  <bruno@clisp.org>
17399
17400         Make the 'link' module link on Windows NT 4.
17401         * lib/link.c (_WIN32_WINNT): Don't define.
17402         (CreateHardLinkFuncType): New type.
17403         (CreateHardLinkFunc, initialized): New variables.
17404         (initialize): New function.
17405         (link): Invoke CreateHardLink indirectly through the function pointer.
17406
17407 2009-01-20  Bruno Haible  <bruno@clisp.org>
17408
17409         Fix compilation failure on mingw.
17410         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
17411
17412 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
17413
17414         * doc/c-strtod.texi: Mention a couple of restrictions.
17415
17416 2009-01-20  Jim Meyering  <meyering@redhat.com>
17417
17418         gettimeofday: move more declarations out of functions
17419         * lib/gettimeofday.c: Move extern declarations of tzset and
17420         gmtime out of containing functions.  Prompted by Bruno Haible.
17421
17422 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
17423
17424         regex: do not depend on obsolete modules.
17425         * modules/regex: Remove memcmp and memmove.
17426
17427 2009-01-19  Bruno Haible  <bruno@clisp.org>
17428
17429         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
17430         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
17431         gl_BIGENDIAN, not AC_C_BIGENDIAN.
17432         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
17433         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
17434
17435 2009-01-19  Bruno Haible  <bruno@clisp.org>
17436
17437         * tests/test-link.c: Include <errno.h>.
17438         (main): Exit with code 77 when a hard link cannot be created due to
17439         the file system.
17440         * tests/test-link.sh: Skip test when a hard link cannot be created due
17441         to the file system.
17442         Suggested by Eric Blake.
17443
17444 2009-01-19  Martin Lambers  <marlam@marlam.de>
17445
17446         * modules/link-tests: New file.
17447         * tests/test-link.sh: New file.
17448         * tests/test-link.c: New file.
17449
17450 2009-01-19  Eric Blake  <ebb9@byu.net>
17451
17452         doc: mention another function added in cygwin 1.7.0
17453         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
17454         Another new function in cygwin 1.7.
17455
17456 2009-01-19  Bruno Haible  <bruno@clisp.org>
17457
17458         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
17459         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
17460         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
17461         gl_BIGENDIAN, not AC_C_BIGENDIAN.
17462         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
17463         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
17464         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17465         * m4/md4.m4 (gl_MD4): Likewise.
17466         * m4/md5.m4 (gl_MD5): Likewise.
17467         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
17468         * m4/sha1.m4 (gl_SHA1): Likewise.
17469         * m4/sha256.m4 (gl_SHA256): Likewise.
17470         * m4/sha512.m4 (gl_SHA512): Likewise.
17471
17472 2009-01-19  Bruno Haible  <bruno@clisp.org>
17473
17474         * modules/uniname/uniname-tests (Depends-on): Add progname.
17475         * tests/uniname/test-uninames.c: Include progname.h.
17476         (main): Call set_program_name.
17477
17478         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
17479         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
17480         (main): Call set_program_name.
17481
17482         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
17483         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
17484         (main): Call set_program_name.
17485
17486         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
17487         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
17488         (main): Call set_program_name.
17489
17490         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
17491         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
17492         (main): Call set_program_name.
17493
17494         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
17495         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
17496         (main): Call set_program_name.
17497
17498         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
17499         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
17500         (main): Call set_program_name.
17501
17502         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
17503         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
17504         (main): Call set_program_name.
17505
17506         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
17507         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
17508         (main): Call set_program_name.
17509
17510 2009-01-19  Eric Blake  <ebb9@byu.net>
17511
17512         test-unistd: test previous patch
17513         * tests/test-unistd.c: Test *_FILENO macros.
17514
17515         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
17516         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17517         Guarantee a definition.
17518         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
17519         * modules/unistd-safer (Depends-on): Add dependency on unistd.
17520         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
17521         * lib/dup-safer.c (STDERR_FILENO): Likewise.
17522         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17523         Likewise.
17524         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
17525         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
17526         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17527         Likewise.
17528         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
17529         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
17530         (STDERR_FILENO): Likewise.
17531         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
17532         (STDERR_FILENO): Likewise.
17533         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
17534         (STDERR_FILENO): Likewise.
17535         Reported by Elbert Pol.
17536
17537 2009-01-19  Eric Blake  <ebb9@byu.net>
17538
17539         doc: mention more functions added in cygwin 1.7.0
17540         * doc/posix-functions/abort.texi (abort): Update wording related
17541         to cygwin.
17542         * doc/posix-functions/daylight.texi (daylight): Likewise.
17543         * doc/posix-functions/optarg.texi (optarg): Likewise.
17544         * doc/posix-functions/optarg.texi (opterr): Likewise.
17545         * doc/posix-functions/optarg.texi (optind): Likewise.
17546         * doc/posix-functions/optarg.texi (optopt): Likewise.
17547         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
17548         worked in 1.5.x, and was withdrawn in 1.7.
17549         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
17550         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
17551         cygwin versions.
17552         * doc/posix-functions/perror.texi (perror): Likewise.
17553         * doc/posix-functions/printf.texi (printf): Likewise.
17554         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
17555         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
17556         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
17557         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
17558         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17559         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
17560         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
17561         Likewise.
17562         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
17563         Likewise.
17564         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
17565         this function.
17566         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
17567         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
17568         Likewise.
17569         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
17570         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
17571         * doc/posix-functions/confstr.texi (confstr): Likewise.
17572         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
17573         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
17574         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
17575         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
17576         * doc/posix-functions/fputws.texi (fputws): Likewise.
17577         * doc/posix-functions/fwide.texi (fwide): Likewise.
17578         * doc/posix-functions/getwc.texi (getwc): Likewise.
17579         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
17580         * doc/posix-functions/putwc.texi (putwc): Likewise.
17581         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
17582         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
17583         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
17584         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
17585         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
17586         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
17587         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
17588         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
17589         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
17590         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
17591         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
17592
17593 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
17594
17595         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
17596         * lib/ioctl.c: Include <sys/ioctl.h>.
17597
17598 2009-01-19  Simon Josefsson  <simon@josefsson.org>
17599
17600         * modules/getdate-tests (Depends-on): Add progname.
17601         * tests/test-getdate.c: Use progname module, to avoid link errors
17602         on non-glibc systems.
17603
17604 2009-01-18  Simon Josefsson  <simon@josefsson.org>
17605
17606         * modules/filenamecat-tests (Depends-on): Add progname.
17607         * modules/fstrcmp-tests (Depends-on): Likewise.
17608
17609         * tests/test-filenamecat.c: Use progname module, to avoid link
17610         errors on non-glibc systems.
17611         * tests/test-fstrcmp.c: Likewise.
17612
17613 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
17614
17615         gettimeofday: avoid warning: nested extern declaration of 'localtime'
17616         * lib/gettimeofday.c: Move extern declaration out of function.
17617
17618 2009-01-18  Bruno Haible  <bruno@clisp.org>
17619
17620         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
17621         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
17622         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
17623
17624 2009-01-18  Bruno Haible  <bruno@clisp.org>
17625
17626         * lib/strftime.c (MEMPCPY): Remove unused macro.
17627         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
17628
17629 2009-01-18  Martin Lambers  <marlam@marlam.de>
17630
17631         New module 'link'.
17632         * lib/unistd.in.h (link): New declaration.
17633         * lib/link.c: New file.
17634         * m4/link.m4: New file.
17635         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
17636         HAVE_LINK.
17637         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
17638         * modules/link: New file.
17639         * doc/posix-functions/link.texi: Mention the new module.
17640
17641 2009-01-18  Bruno Haible  <bruno@clisp.org>
17642
17643         * tests/test-avltree_list.c (main): Call set_program_name.
17644         * tests/test-avltree_oset.c (main): Likewise.
17645         * tests/test-obstack-printf.c: Include progname.h.
17646         (main): Call set_program_name.
17647         * tests/test-quotearg.c: Include progname.h.
17648         (main): Call set_program_name.
17649         * tests/test-xmemdup0.c: Include progname.h.
17650         (main): Call set_program_name.
17651
17652 2009-01-18  Bruno Haible  <bruno@clisp.org>
17653
17654         New module 'alphasort'.
17655         * lib/dirent.in.h (alphasort): New declaration.
17656         * lib/alphasort.c: New file, from glibc with modifications.
17657         * m4/alphasort.m4: New file.
17658         * modules/alphasort: New file.
17659         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
17660         HAVE_ALPHASORT.
17661         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
17662         HAVE_ALPHASORT.
17663         * doc/posix-functions/alphasort.texi: Mention the new module and the
17664         portability problems.
17665
17666 2009-01-18  Bruno Haible  <bruno@clisp.org>
17667
17668         New module 'scandir'.
17669         * lib/dirent.in.h (scandir): New declaration.
17670         * lib/scandir.c: New file, from glibc with modifications.
17671         * m4/scandir.m4: New file.
17672         * modules/scandir: New file.
17673         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
17674         HAVE_SCANDIR.
17675         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
17676         HAVE_SCANDIR.
17677         * doc/posix-functions/scandir.texi: Mention the new module and the
17678         portability problems.
17679
17680 2009-01-17  Bruno Haible  <bruno@clisp.org>
17681
17682         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
17683         Update documentation.
17684         (func_remove_suffix): Escape all dots in the suffix. Update
17685         documentation.
17686         (func_filter_filelist): Update documentation.
17687         Reported by Ralf Wildenhues.
17688
17689 2009-01-17  Bruno Haible  <bruno@clisp.org>
17690
17691         * modules/dprintf-posix-tests: New file.
17692         * tests/test-dprintf-posix.sh: New file.
17693         * tests/test-dprintf-posix.c: New file.
17694
17695         New modules 'dprintf', 'dprintf-posix'.
17696         * lib/stdio.in.h (dprintf): New declaration.
17697         * lib/dprintf.c: New file.
17698         * m4/dprintf.m4: New file.
17699         * m4/dprintf-posix.m4: New file.
17700         * modules/dprintf: New file.
17701         * modules/dprintf-posix: New file.
17702         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
17703         HAVE_DPRINTF, REPLACE_DPRINTF.
17704         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
17705         HAVE_DPRINTF, REPLACE_DPRINTF.
17706         * doc/posix-functions/dprintf.texi: Mention the new modules.
17707
17708 2009-01-17  Bruno Haible  <bruno@clisp.org>
17709
17710         * modules/vdprintf-posix-tests: New file.
17711         * tests/test-vdprintf-posix.sh: New file.
17712         * tests/test-vdprintf-posix.c: New file.
17713
17714         New modules 'vdprintf', 'vdprintf-posix'.
17715         * lib/stdio.in.h (vdprintf): New declaration.
17716         * lib/vdprintf.c: New file.
17717         * m4/vdprintf.m4: New file.
17718         * m4/vdprintf-posix.m4: New file.
17719         * modules/vdprintf: New file.
17720         * modules/vdprintf-posix: New file.
17721         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
17722         HAVE_VDPRINTF, REPLACE_VDPRINTF.
17723         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
17724         HAVE_VDPRINTF, REPLACE_VDPRINTF.
17725         * doc/posix-functions/vdprintf.texi: Mention the new modules.
17726
17727 2009-01-17  Bruno Haible  <bruno@clisp.org>
17728
17729         Fix replacement of fopen on mingw.
17730         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
17731         mingw.
17732
17733 2009-01-17  Bruno Haible  <bruno@clisp.org>
17734
17735         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
17736         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
17737
17738 2009-01-17  Bruno Haible  <bruno@clisp.org>
17739
17740         Avoid test-fflush2.sh failure on mingw.
17741         * tests/test-fflush2.c: Include binary-io.h.
17742         (main): Put standard input into binary mode.
17743         * modules/fflush-tests (Depends-on): Add binary-io.
17744
17745 2009-01-17  Bruno Haible  <bruno@clisp.org>
17746
17747         * lib/wchar.in.h: In another particular situation, include only the
17748         system's <wchar.h> file.
17749         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
17750         Reported by Albert Chin-A-Young <china@thewrittenword.com>
17751         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
17752
17753 2009-01-17  Bruno Haible  <bruno@clisp.org>
17754
17755         Support for stripping executables in --enable-relocatable.
17756         * build-aux/install-reloc: Expect one more argument, or an environment
17757         variable RELOC_STRIP_PROG. If set, strip the destination program and
17758         its wrapper.
17759         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
17760         RELOC_STRIP_PROG.
17761         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
17762         to set RELOCATABLE_STRIP.
17763         * NEWS: Mention the new Makefile requirement.
17764
17765 2009-01-17  Bruno Haible  <bruno@clisp.org>
17766
17767         * build-aux/install-reloc: Remove debugging information left over by
17768         C compiler on MacOS X.
17769
17770 2009-01-17  Bruno Haible  <bruno@clisp.org>
17771
17772         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
17773         * lib/progreloc.c (find_executable): Fix type of pointer passed to
17774         _NSGetExecutablePath.
17775
17776 2009-01-16  Jim Meyering  <meyering@redhat.com>
17777
17778         strerror: avoid warnings about discarding "const"
17779         * lib/strerror.c (rpl_strerror): Instead of returning a const
17780         string from each and every "case", use a variable, and add a single
17781         cast after the switch.
17782
17783 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
17784
17785         * lib/arpa_inet.in.h: Add extern "C" block for C++.
17786
17787 2009-01-16  Bruno Haible  <bruno@clisp.org>
17788
17789         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
17790         array initializer syntax that also works in C++ mode.
17791         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17792
17793 2009-01-16  Jim Meyering  <meyering@redhat.com>
17794
17795         poll: suppress a warning
17796         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
17797         to ignore "...unsigned expression < 0 is always false" warnings.
17798
17799 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
17800
17801         poll: remove declarations of unused variables
17802         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
17803         sockbuf and optlen.
17804
17805 2009-01-15  Bruno Haible  <bruno@clisp.org>
17806
17807         Make fflush-after-ungetc POSIX compliant on BSD systems.
17808         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
17809         (clear_ungetc_buffer): Implement also for other systems.
17810         (rpl_fflush): On glibc systems, invoke
17811         clear_ungetc_buffer_preserving_position. Otherwise, invoke
17812         clear_ungetc_buffer after fetching the stream's position, not before.
17813
17814 2009-01-15  Bruno Haible  <bruno@clisp.org>
17815
17816         Make fflush-after-ungetc POSIX compliant on glibc systems.
17817         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
17818         after ungetc.
17819         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
17820         (rpl_fflush): On glibc systems, simply call the system's fflush
17821         function after clearing the ungetc buffer.
17822         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
17823         Instead, lseek only to the end of file, then use the system's fseeko
17824         for the rest. On glibc systems, reset the EOF indicator bit.
17825
17826 2009-01-15  Jim Meyering  <meyering@redhat.com>
17827
17828         openmp.m4: revert quote-adding change, for portability to older autoconf
17829         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
17830         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
17831         Simon Josefsson noticed the problem when using autoconf-2.61.
17832
17833 2009-01-15  Bruno Haible  <bruno@clisp.org>
17834
17835         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
17836         * tests/test-fflush2.c (ASSERT): Always fail.
17837         (main): Add two tests for fflush() after ungetc(), taking into account
17838         the Austin Group's clarification.
17839         Suggested by Eric Blake.
17840
17841 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
17842
17843         mktime.m4: remove K&R-style function prototypes
17844         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
17845         for the Sun C++ compiler.
17846
17847 2009-01-14  Bruno Haible  <bruno@clisp.org>
17848
17849         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
17850         while including <wchar.h>.
17851         * lib/wchar.in.h: In two particular situations on HP-UX, include only
17852         the system's <wchar.h> file.
17853         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17854
17855 2009-01-14  Bruno Haible  <bruno@clisp.org>
17856
17857         * m4/csharp.m4: Don't mention gettext on the serial number line.
17858         * m4/csharpexec.m4: Likewise.
17859         * m4/eaccess.m4: Likewise.
17860         * m4/javaexec.m4: Likewise.
17861         * m4/sig_atomic_t.m4: Likewise.
17862         * m4/tmpdir.m4: Likewise.
17863         * m4/intldir.m4: Bump gettext version.
17864         * m4/lib-ld.m4: Likewise.
17865
17866 2009-01-14  Bruno Haible  <bruno@clisp.org>
17867
17868         * lib/progname.c (set_program_name): Add more comments.
17869         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
17870
17871 2009-01-14  Simon Josefsson  <simon@josefsson.org>
17872
17873         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
17874         were sys/stat.h does not define it.
17875
17876 2009-01-14  Jim Meyering  <meyering@redhat.com>
17877
17878         many *.m4 files: improve m4 quoting
17879         99% of this change was performed by running the following commands:
17880         git ls-files | grep '\.m4$' | xargs perl -pi \
17881           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
17882           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
17883           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
17884           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
17885         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
17886         The remainder were to add Copyright dates, increment serial numbers,
17887         undo some changes in comments, exclude m4/intl.m4, and add quotes
17888         around the "1" in ",1" where the unusual spacing prohibited the
17889         above regexps from doing the job.  For more details, see
17890         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
17891         * m4/acl.m4: Modified.
17892         * m4/afs.m4: Likewise.
17893         * m4/alloca.m4: Likewise.
17894         * m4/argp.m4: Likewise.
17895         * m4/argz.m4: Likewise.
17896         * m4/atexit.m4: Likewise.
17897         * m4/bison-i18n.m4: Likewise.
17898         * m4/bison.m4: Likewise.
17899         * m4/byteswap.m4: Likewise.
17900         * m4/c-stack.m4: Likewise.
17901         * m4/c-strtod.m4: Likewise.
17902         * m4/calloc.m4: Likewise.
17903         * m4/canonicalize-lgpl.m4: Likewise.
17904         * m4/chown.m4: Likewise.
17905         * m4/clock_time.m4: Likewise.
17906         * m4/codeset.m4: Likewise.
17907         * m4/copy-file.m4: Likewise.
17908         * m4/csharp.m4: Likewise.
17909         * m4/csharpcomp.m4: Likewise.
17910         * m4/csharpexec.m4: Likewise.
17911         * m4/d-ino.m4: Likewise.
17912         * m4/d-type.m4: Likewise.
17913         * m4/dirfd.m4: Likewise.
17914         * m4/double-slash-root.m4: Likewise.
17915         * m4/eaccess.m4: Likewise.
17916         * m4/eealloc.m4: Likewise.
17917         * m4/environ.m4: Likewise.
17918         * m4/errno_h.m4: Likewise.
17919         * m4/euidaccess.m4: Likewise.
17920         * m4/execute.m4: Likewise.
17921         * m4/fatal-signal.m4: Likewise.
17922         * m4/fchdir.m4: Likewise.
17923         * m4/fcntl_h.m4: Likewise.
17924         * m4/fileblocks.m4: Likewise.
17925         * m4/filenamecat.m4: Likewise.
17926         * m4/findprog.m4: Likewise.
17927         * m4/flexmember.m4: Likewise.
17928         * m4/fnmatch.m4: Likewise.
17929         * m4/fopen.m4: Likewise.
17930         * m4/fpending.m4: Likewise.
17931         * m4/fprintf-posix.m4: Likewise.
17932         * m4/free.m4: Likewise.
17933         * m4/frexp.m4: Likewise.
17934         * m4/frexpl.m4: Likewise.
17935         * m4/fsusage.m4: Likewise.
17936         * m4/ftruncate.m4: Likewise.
17937         * m4/gc-camellia.m4: Likewise.
17938         * m4/gc-random.m4: Likewise.
17939         * m4/gc.m4: Likewise.
17940         * m4/getaddrinfo.m4: Likewise.
17941         * m4/getcwd-abort-bug.m4: Likewise.
17942         * m4/getcwd-path-max.m4: Likewise.
17943         * m4/getdate.m4: Likewise.
17944         * m4/getdomainname.m4: Likewise.
17945         * m4/getgroups.m4: Likewise.
17946         * m4/gethostname.m4: Likewise.
17947         * m4/gethrxtime.m4: Likewise.
17948         * m4/getline.m4: Likewise.
17949         * m4/getloadavg.m4: Likewise.
17950         * m4/getndelim2.m4: Likewise.
17951         * m4/getpass.m4: Likewise.
17952         * m4/gettext.m4: Likewise.
17953         * m4/gettime.m4: Likewise.
17954         * m4/gettimeofday.m4: Likewise.
17955         * m4/gnulib-common.m4: Likewise.
17956         * m4/group-member.m4: Likewise.
17957         * m4/host-os.m4: Likewise.
17958         * m4/iconv.m4: Likewise.
17959         * m4/iconv_open.m4: Likewise.
17960         * m4/inet_ntop.m4: Likewise.
17961         * m4/inet_pton.m4: Likewise.
17962         * m4/inline.m4: Likewise.
17963         * m4/intldir.m4: Likewise.
17964         * m4/intlmacosx.m4: Likewise.
17965         * m4/intmax.m4: Likewise.
17966         * m4/intmax_t.m4: Likewise.
17967         * m4/inttypes.m4: Likewise.
17968         * m4/inttypes_h.m4: Likewise.
17969         * m4/inttypes-pri.m4: Likewise.
17970         * m4/isapipe.m4: Likewise.
17971         * m4/isnand.m4: Likewise.
17972         * m4/isnanf.m4: Likewise.
17973         * m4/isnanl.m4: Likewise.
17974         * m4/javacomp.m4: Likewise.
17975         * m4/javaexec.m4: Likewise.
17976         * m4/jm-winsz1.m4: Likewise.
17977         * m4/jm-winsz2.m4: Likewise.
17978         * m4/lchown.m4: Likewise.
17979         * m4/lcmessage.m4: Likewise.
17980         * m4/ldexpl.m4: Likewise.
17981         * m4/lib-ld.m4: Likewise.
17982         * m4/lib-link.m4: Likewise.
17983         * m4/libsigsegv.m4: Likewise.
17984         * m4/link-follow.m4: Likewise.
17985         * m4/localcharset.m4: Likewise.
17986         * m4/locale-fr.m4: Likewise.
17987         * m4/locale-ja.m4: Likewise.
17988         * m4/locale-tr.m4: Likewise.
17989         * m4/locale-zh.m4: Likewise.
17990         * m4/lock.m4: Likewise.
17991         * m4/longlong.m4: Likewise.
17992         * m4/ls-mntd-fs.m4: Likewise.
17993         * m4/lstat.m4: Likewise.
17994         * m4/malloc.m4: Likewise.
17995         * m4/mathl.m4: Likewise.
17996         * m4/mbrtowc.m4: Likewise.
17997         * m4/mbstate_t.m4: Likewise.
17998         * m4/mbswidth.m4: Likewise.
17999         * m4/memchr.m4: Likewise.
18000         * m4/memcmp.m4: Likewise.
18001         * m4/memcpy.m4: Likewise.
18002         * m4/memmem.m4: Likewise.
18003         * m4/memmove.m4: Likewise.
18004         * m4/mempcpy.m4: Likewise.
18005         * m4/memrchr.m4: Likewise.
18006         * m4/memset.m4: Likewise.
18007         * m4/minmax.m4: Likewise.
18008         * m4/mkdir-slash.m4: Likewise.
18009         * m4/mkdtemp.m4: Likewise.
18010         * m4/mktime.m4: Likewise.
18011         * m4/mmap-anon.m4: Likewise.
18012         * m4/mountlist.m4: Likewise.
18013         * m4/nanosleep.m4: Likewise.
18014         * m4/nls.m4: Likewise.
18015         * m4/nocrash.m4: Likewise.
18016         * m4/open.m4: Likewise.
18017         * m4/openat.m4: Likewise.
18018         * m4/openmp.m4: Likewise.
18019         * m4/pathmax.m4: Likewise.
18020         * m4/perl.m4: Likewise.
18021         * m4/physmem.m4: Likewise.
18022         * m4/pipe.m4: Likewise.
18023         * m4/po.m4: Likewise.
18024         * m4/poll.m4: Likewise.
18025         * m4/posixtm.m4: Likewise.
18026         * m4/posixver.m4: Likewise.
18027         * m4/printf-frexp.m4: Likewise.
18028         * m4/printf-frexpl.m4: Likewise.
18029         * m4/printf-posix.m4: Likewise.
18030         * m4/printf-posix-rpl.m4: Likewise.
18031         * m4/printf.m4: Likewise.
18032         * m4/progtest.m4: Likewise.
18033         * m4/putenv.m4: Likewise.
18034         * m4/readline.m4: Likewise.
18035         * m4/readlink.m4: Likewise.
18036         * m4/readutmp.m4: Likewise.
18037         * m4/realloc.m4: Likewise.
18038         * m4/regex.m4: Likewise.
18039         * m4/relocatable.m4: Likewise.
18040         * m4/relocatable-lib.m4: Likewise.
18041         * m4/rename-dest-slash.m4: Likewise.
18042         * m4/rename.m4: Likewise.
18043         * m4/rmdir-errno.m4: Likewise.
18044         * m4/rmdir.m4: Likewise.
18045         * m4/roundf.m4: Likewise.
18046         * m4/roundl.m4: Likewise.
18047         * m4/rpmatch.m4: Likewise.
18048         * m4/save-cwd.m4: Likewise.
18049         * m4/selinux-selinux-h.m4: Likewise.
18050         * m4/setenv.m4: Likewise.
18051         * m4/settime.m4: Likewise.
18052         * m4/sig2str.m4: Likewise.
18053         * m4/sig_atomic_t.m4: Likewise.
18054         * m4/signalblocking.m4: Likewise.
18055         * m4/signbit.m4: Likewise.
18056         * m4/sigpipe.m4: Likewise.
18057         * m4/sockets.m4: Likewise.
18058         * m4/sockpfaf.m4: Likewise.
18059         * m4/st_dm_mode.m4: Likewise.
18060         * m4/stat-time.m4: Likewise.
18061         * m4/stdbool.m4: Likewise.
18062         * m4/stdint.m4: Likewise.
18063         * m4/stdint_h.m4: Likewise.
18064         * m4/stpcpy.m4: Likewise.
18065         * m4/stpncpy.m4: Likewise.
18066         * m4/strcase.m4: Likewise.
18067         * m4/strchrnul.m4: Likewise.
18068         * m4/strcspn.m4: Likewise.
18069         * m4/strdup.m4: Likewise.
18070         * m4/strftime.m4: Likewise.
18071         * m4/strndup.m4: Likewise.
18072         * m4/strnlen.m4: Likewise.
18073         * m4/strpbrk.m4: Likewise.
18074         * m4/strptime.m4: Likewise.
18075         * m4/strsep.m4: Likewise.
18076         * m4/strtod.m4: Likewise.
18077         * m4/strtoimax.m4: Likewise.
18078         * m4/strtok_r.m4: Likewise.
18079         * m4/strtol.m4: Likewise.
18080         * m4/strtoll.m4: Likewise.
18081         * m4/strtoul.m4: Likewise.
18082         * m4/strtoull.m4: Likewise.
18083         * m4/strtoumax.m4: Likewise.
18084         * m4/strverscmp.m4: Likewise.
18085         * m4/threadlib.m4: Likewise.
18086         * m4/timegm.m4: Likewise.
18087         * m4/tm_gmtoff.m4: Likewise.
18088         * m4/tmpdir.m4: Likewise.
18089         * m4/tmpfile.m4: Likewise.
18090         * m4/tzset.m4: Likewise.
18091         * m4/uintmax_t.m4: Likewise.
18092         * m4/unlinkdir.m4: Likewise.
18093         * m4/unlocked-io.m4: Likewise.
18094         * m4/uptime.m4: Likewise.
18095         * m4/userspec.m4: Likewise.
18096         * m4/utimbuf.m4: Likewise.
18097         * m4/utime.m4: Likewise.
18098         * m4/utimes-null.m4: Likewise.
18099         * m4/utimes.m4: Likewise.
18100         * m4/vararrays.m4: Likewise.
18101         * m4/vasnprintf.m4: Likewise.
18102         * m4/vfprintf-posix.m4: Likewise.
18103         * m4/vprintf-posix.m4: Likewise.
18104         * m4/wait-process.m4: Likewise.
18105         * m4/wchar_t.m4: Likewise.
18106         * m4/wint_t.m4: Likewise.
18107         * m4/write-any-file.m4: Likewise.
18108         * m4/yield.m4: Likewise.
18109
18110 2009-01-13  Bruno Haible  <bruno@clisp.org>
18111
18112         Avoid test-copy-file.sh failures when ACL support insufficient.
18113         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
18114         TESTS_ENVIRONMENT.
18115         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
18116         Reported by Jim Meyering.
18117
18118 2009-01-13  Bruno Haible  <bruno@clisp.org>
18119
18120         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
18121         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
18122         * modules/unistdio/u8-printf-parse (Files): Likewise.
18123         * modules/unistdio/u32-printf-parse (Files): Likewise.
18124         * modules/unistdio/ulc-printf-parse (Files): Likewise.
18125
18126 2009-01-13  Simon Josefsson  <simon@josefsson.org>
18127
18128         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
18129         and m4/inttypes_h.m4 too.
18130
18131 2009-01-12  Eric Blake  <ebb9@byu.net>
18132
18133         tests: IRIX 6.2 cc can't compile -0.0 into .data
18134         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
18135         rather than at compile-time.
18136         * tests/test-floorl.c (minus_zero): Likewise.
18137         * tests/test-frexpl.c (minus_zero): Likewise.
18138         * tests/test-isnan.c (minus_zerol): Likewise.
18139         * tests/test-isnanl.h (minus_zero): Likewise.
18140         * tests/test-ldexpl.c (minus_zero): Likewise.
18141         * tests/test-roundl.c (minus_zero): Likewise.
18142         * tests/test-signbit.c (minus_zerol): Likewise.
18143         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
18144         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
18145         * tests/test-truncl.c (minus_zero): Likewise.
18146         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
18147         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
18148         Reported by Tom G. Christensen and Nelson H. F. Beebe.
18149
18150 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
18151
18152         regex: fix glibc bug 9697
18153         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
18154         handling.
18155
18156 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
18157
18158         regex: fix glibc bug 697
18159         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
18160         being NULL also if there are no backreferences.
18161
18162 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
18163
18164         regex: merge glibc changes
18165         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
18166         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
18167         re_string_skip_chars, re_string_reconstruct): Likewise.
18168         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
18169
18170 2009-01-07  Jim Meyering  <meyering@redhat.com>
18171
18172         poll: filter through cppi
18173         * lib/poll.c: Indent cpp directives to reflect nesting.
18174
18175 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
18176
18177         poll: don't return uninitialized
18178         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
18179
18180 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
18181
18182         avoid compile failure on AIX 6.1
18183         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
18184         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
18185
18186 2009-01-04  Jim Meyering  <meyering@redhat.com>
18187
18188         remove duplicate inclusion of <stdio.h>
18189         * tests/test-fprintf-posix.c: Likewise.
18190         * tests/test-printf-posix.c: Likewise.
18191         * tests/test-snprintf-posix.c: Likewise.
18192         * tests/test-sprintf-posix.c: Likewise.
18193         * tests/test-vasprintf-posix.c: Likewise.
18194         * tests/test-vfprintf-posix.c: Likewise.
18195         * tests/test-vprintf-posix.c: Likewise.
18196         * tests/test-vsnprintf-posix.c: Likewise.
18197         * tests/test-vsprintf-posix.c: Likewise.
18198
18199 2009-01-03  Jim Meyering  <meyering@redhat.com>
18200
18201         gnulib-tool: fix sed-based filtering
18202         * gnulib-tool (func_filter_filelist): Remove extra backslash
18203         in sed_fff_filter definition.
18204
18205 2009-01-02  Jim Meyering  <meyering@redhat.com>
18206
18207         strftime: avoid compilation failure on Solaris 2.6
18208         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
18209         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
18210         Don't #define mbrlen or mbsinit, since now they're guaranteed to
18211         be available.  Reported by Tom G. Christensen.  Details in
18212         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
18213
18214 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18215             Bruno Haible  <bruno@clisp.org>
18216
18217         Speed up gnulib-tool by doing more string processing through shell
18218         built-ins.
18219         * gnulib-tool (fast_func_append): New variable.
18220         (func_remove_prefix, func_remove_suffix): New functions.
18221         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
18222         (func_filter_filelist): New function.
18223         (func_get_dependencies): Use func_remove_suffix instead of sed.
18224         (func_get_automake_snippet): Use func_filter_filelist instead of a
18225         subshell and sed invocation.
18226
18227 2009-01-01  Bruno Haible  <bruno@clisp.org>
18228
18229         Fix a security bug.
18230         * gnulib-tool (func_import, import, update): Don't allow the characters
18231         '"', '$', '`', '\' in macro arguments that become part of commands that
18232         are evaluated.
18233
18234 2009-01-01  Bruno Haible  <bruno@clisp.org>
18235
18236         * gnulib-tool (func_reset_sigpipe): Add more comments.
18237
18238 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18239
18240         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
18241         func_emit_tests_Makefile_am, func_import): Abort loops early if we
18242         already know the answer.
18243
18244 2009-01-01  Jim Meyering  <meyering@redhat.com>
18245
18246         * lib/version-etc.c (version_etc_va): Update copyright year.
18247
18248 2008-12-30  Bruno Haible  <bruno@clisp.org>
18249
18250         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
18251         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
18252         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
18253
18254 2008-12-29  Eric Blake  <ebb9@byu.net>
18255
18256         multiarch: avoid autoconf AC_REQUIRE bug
18257         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
18258         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
18259         2.63 and older.
18260         Reported by Bruno Haible, and analyzed in
18261         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
18262
18263 2008-12-29  Bruno Haible  <bruno@clisp.org>
18264
18265         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
18266         files in subdirectories correctly.
18267         Reported by Ralf Wildenhues.
18268
18269 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18270
18271         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
18272         rather than 'join FILE -', for Solaris join.
18273
18274 2008-12-29  Bruno Haible  <bruno@clisp.org>
18275
18276         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
18277         quoting.
18278         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
18279         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
18280         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
18281         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
18282         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
18283         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
18284         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
18285         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
18286         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
18287         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
18288         * m4/nls.m4 (AM_NLS): Likewise.
18289         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
18290         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
18291         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
18292         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
18293         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
18294         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
18295         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
18296         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
18297         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
18298         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
18299         * m4/xsize.m4 (gl_XSIZE): Likewise.
18300         Suggested by Jim Meyering.
18301
18302 2008-11-17  Bruce Korb  <bkorb@gnu.org>
18303
18304         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
18305         * lib/parse-duration.c: use a switch instead of cascading if's.
18306
18307 2008-12-29  Eric Blake  <ebb9@byu.net>
18308
18309         wchar.h: supply WEOF on Irix 5.3
18310         * lib/wchar.in.h (wint_t): Also supply WEOF.
18311         * lib/wctype.in.h (wint_t): Likewise.
18312         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
18313         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
18314         Reported by Tom G. Christensen.
18315
18316 2008-12-26  Bruno Haible  <bruno@clisp.org>
18317
18318         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
18319         i486, i586, i686.
18320
18321 2008-12-26  Bruno Haible  <bruno@clisp.org>
18322
18323         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
18324
18325 2008-12-26  Bruno Haible  <bruno@clisp.org>
18326
18327         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
18328         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
18329         not __STDC_CONSTANT_MACROS.
18330         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
18331
18332 2008-12-25  Bruno Haible  <bruno@clisp.org>
18333
18334         Add support for universal builds to vasnprintf.
18335         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
18336         universal builds, guess no.
18337         * modules/vasnprintf-posix (Depends-on): Add multiarch.
18338         * modules/vasprintf-posix (Depends-on): Likewise.
18339         * modules/fprintf-posix (Depends-on): Likewise.
18340         * modules/vfprintf-posix (Depends-on): Likewise.
18341         * modules/snprintf-posix (Depends-on): Likewise.
18342         * modules/vsnprintf-posix (Depends-on): Likewise.
18343         * modules/sprintf-posix (Depends-on): Likewise.
18344         * modules/vsprintf-posix (Depends-on): Likewise.
18345         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
18346         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18347         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18348         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18349         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18350         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18351         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18352
18353         Add support for universal builds to <inttypes.h>.
18354         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
18355         _SCNu64_PREFIX): In Apple
18356         universal builds, define directly, using _LP64.
18357         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
18358         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
18359         * modules/inttypes (Depends-on): Add multiarch.
18360         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
18361
18362         Add support for universal builds to <stdint.h>.
18363         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
18364         universal builds, define directly, using _LP64.
18365         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
18366         Apple universal builds, don't test for the size and suffix of ptrdiff_t
18367         and size_t.
18368         * modules/stdint (Depends-on): Add multiarch.
18369         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
18370
18371         New module 'multiarch'.
18372         * modules/multiarch: New file.
18373         * m4/multiarch.m4: New file.
18374
18375 2008-12-25  Bruno Haible  <bruno@clisp.org>
18376
18377         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
18378
18379 2008-12-25  Bruno Haible  <bruno@clisp.org>
18380
18381         * modules/btowc (License): Relicense under LGPLv2+.
18382         * modules/mbsinit (License): Likewise.
18383         * modules/mbrtowc (License): Likewise.
18384         * modules/wcrtomb (License): Likewise.
18385         * modules/streq (License): Likewise.
18386         Reported by David Lutterkort <lutter@redhat.com>.
18387
18388 2008-12-23  Bruno Haible  <bruno@clisp.org>
18389
18390         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
18391
18392 2008-12-23  Bruno Haible  <bruno@clisp.org>
18393
18394         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
18395         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
18396         GETADDRINFO_LIB, not in LIBS.
18397         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
18398         * modules/canon-host (Link): Likewise.
18399         * NEWS: Mention the change.
18400         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
18401         GETADDRINFO_LIB.
18402
18403 2008-12-22  Bruno Haible  <bruno@clisp.org>
18404
18405         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
18406         * doc/posix-functions/iswalpha_l.texi: Likewise.
18407         * doc/posix-functions/iswblank_l.texi: Likewise.
18408         * doc/posix-functions/iswcntrl_l.texi: Likewise.
18409         * doc/posix-functions/iswctype_l.texi: Likewise.
18410         * doc/posix-functions/iswdigit_l.texi: Likewise.
18411         * doc/posix-functions/iswgraph_l.texi: Likewise.
18412         * doc/posix-functions/iswlower_l.texi: Likewise.
18413         * doc/posix-functions/iswprint_l.texi: Likewise.
18414         * doc/posix-functions/iswpunct_l.texi: Likewise.
18415         * doc/posix-functions/iswspace_l.texi: Likewise.
18416         * doc/posix-functions/iswupper_l.texi: Likewise.
18417         * doc/posix-functions/iswxdigit_l.texi: Likewise.
18418         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
18419         * doc/posix-functions/open_wmemstream.texi: Likewise.
18420         * doc/posix-functions/swscanf.texi: Likewise.
18421         * doc/posix-functions/towctrans_l.texi: Likewise.
18422         * doc/posix-functions/towlower.texi: Likewise.
18423         * doc/posix-functions/towlower_l.texi: Likewise.
18424         * doc/posix-functions/towupper.texi: Likewise.
18425         * doc/posix-functions/towupper_l.texi: Likewise.
18426         * doc/posix-functions/vfwprintf.texi: Likewise.
18427         * doc/posix-functions/vfwscanf.texi: Likewise.
18428         * doc/posix-functions/vswscanf.texi: Likewise.
18429         * doc/posix-functions/vwprintf.texi: Likewise.
18430         * doc/posix-functions/vwscanf.texi: Likewise.
18431         * doc/posix-functions/wcpcpy.texi: Likewise.
18432         * doc/posix-functions/wcpncpy.texi: Likewise.
18433         * doc/posix-functions/wcscasecmp.texi: Likewise.
18434         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
18435         * doc/posix-functions/wcscoll_l.texi: Likewise.
18436         * doc/posix-functions/wcsdup.texi: Likewise.
18437         * doc/posix-functions/wcsncasecmp.texi: Likewise.
18438         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
18439         * doc/posix-functions/wcsnlen.texi: Likewise.
18440         * doc/posix-functions/wcsnrtombs.texi: Likewise.
18441         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
18442         * doc/posix-functions/wctrans_l.texi: Likewise.
18443         * doc/posix-functions/wctype_l.texi: Likewise.
18444         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
18445         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
18446         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
18447         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
18448         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
18449         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
18450         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
18451         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
18452         * doc/glibc-functions/wcschrnul.texi: Likewise.
18453         * doc/glibc-functions/wcsftime_l.texi: Likewise.
18454         * doc/glibc-functions/wcstod_l.texi: Likewise.
18455         * doc/glibc-functions/wcstof_l.texi: Likewise.
18456         * doc/glibc-functions/wcstol_l.texi: Likewise.
18457         * doc/glibc-functions/wcstold_l.texi: Likewise.
18458         * doc/glibc-functions/wcstoll_l.texi: Likewise.
18459         * doc/glibc-functions/wcstoq.texi: Likewise.
18460         * doc/glibc-functions/wcstoul_l.texi: Likewise.
18461         * doc/glibc-functions/wcstoull_l.texi: Likewise.
18462         * doc/glibc-functions/wcstouq.texi: Likewise.
18463         * doc/glibc-functions/wmempcpy.texi: Likewise.
18464
18465 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
18466             Eric Blake  <ebb9@byu.net>
18467             Paolo Bonzini  <bonzini@gnu.org>
18468             Bruno Haible  <bruno@clisp.org>
18469
18470         Make c-stack work on Haiku.
18471         * lib/c-stack.c (SA_ONSTACK): Define fallback.
18472         (c_stack_action): Use SA_ONSTACK flag.
18473
18474 2008-12-22  Bruno Haible  <bruno@clisp.org>
18475
18476         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
18477
18478 2008-12-22  Bruno Haible  <bruno@clisp.org>
18479
18480         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
18481         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
18482         being overridden.
18483         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
18484         New macros.
18485         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
18486         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
18487         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
18488         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
18489
18490 2008-12-22  Bruno Haible  <bruno@clisp.org>
18491
18492         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
18493         from test code.
18494
18495 2008-12-22  Eric Blake  <ebb9@byu.net>
18496
18497         Avoid gcc warnings on cygwin.
18498         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
18499         Avoid unused variable.
18500         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
18501         Likewise.
18502
18503 2008-12-22  Bruno Haible  <bruno@clisp.org>
18504
18505         Remove HAVE_MBRTOWC conditionals.
18506         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
18507         (mbscasecmp): Assume mbrtowc function.
18508         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
18509         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
18510         * lib/mbschr.c: Include mbuiter.h unconditionally.
18511         (mbschr): Assume mbrtowc function.
18512         * lib/mbscspn.c: Include mbuiter.h unconditionally.
18513         (mbscspn): Assume mbrtowc function.
18514         * lib/mbslen.c: Include mbuiter.h unconditionally.
18515         (mbslen): Assume mbrtowc function.
18516         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
18517         (mbsncasecmp): Assume mbrtowc function.
18518         * lib/mbsnlen.c: Include mbiter.h unconditionally.
18519         (mbsnlen): Assume mbrtowc function.
18520         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
18521         (mbspbrk): Assume mbrtowc function.
18522         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
18523         (mbspcasecmp): Assume mbrtowc function.
18524         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
18525         (mbsrchr): Assume mbrtowc function.
18526         * lib/mbssep.c: Include mbuiter.h unconditionally.
18527         (mbssep): Assume mbrtowc function.
18528         * lib/mbsspn.c: Include mbuiter.h unconditionally.
18529         (mbsspn): Assume mbrtowc function.
18530         * lib/mbsstr.c: Include mbuiter.h unconditionally.
18531         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
18532         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
18533         (mbstok_r): Assume mbrtowc function.
18534         * lib/propername.c: Include mbuiter.h unconditionally.
18535         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
18536         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
18537         (trim2): Assume mbrtowc function.
18538         * lib/mbswidth.c (mbsinit): Remove fallback definition.
18539         (mbsnwidth): Assume mbrtowc function.
18540         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
18541         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
18542         fallback definitions.
18543         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
18544
18545 2008-12-22  Bruno Haible  <bruno@clisp.org>
18546
18547         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
18548
18549 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
18550
18551         * modules/regex: Request emulations for the mb*/wc* functions we need.
18552         * m4/regex.m4: Don't look for those functions here.
18553         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
18554
18555 2008-12-22  Bruno Haible  <bruno@clisp.org>
18556
18557         * modules/fnmatch (Depends-on): Remove duplicated dependency.
18558
18559 2008-12-21  Bruno Haible  <bruno@clisp.org>
18560
18561         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
18562         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
18563         (Include): Remove conditionalization.
18564         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
18565         (Include): Remove conditionalization.
18566         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
18567         (Include): Remove conditionalization.
18568         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
18569         * m4/mbfile.m4 (gl_MBFILE): Likewise.
18570         * NEWS: Mention the change.
18571         Reported by Alan Hourihane <alanh@fairlite.co.uk>
18572         via Sergey Poznyakoff <gray@gnu.org.ua>.
18573
18574 2008-12-21  Bruno Haible  <bruno@clisp.org>
18575
18576         * MODULES.html.sh (Extended multibyte and wide character utilities
18577         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
18578         wcrtomb, wcsrtombs.
18579         (Support for systems lacking POSIX:2008): Add accept, bind, close,
18580         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
18581         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
18582         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
18583
18584 2008-12-21  Bruno Haible  <bruno@clisp.org>
18585
18586         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
18587
18588 2008-12-21  Bruno Haible  <bruno@clisp.org>
18589
18590         * modules/wcsnrtombs-tests: New file.
18591         * tests/test-wcsnrtombs1.sh: New file.
18592         * tests/test-wcsnrtombs2.sh: New file.
18593         * tests/test-wcsnrtombs3.sh: New file.
18594         * tests/test-wcsnrtombs4.sh: New file.
18595         * tests/test-wcsnrtombs.c: New file.
18596
18597         New module 'wcsnrtombs'.
18598         * lib/wchar.in.h (wcsnrtombs): New declaration.
18599         * lib/wcsnrtombs.c: New file.
18600         * lib/wcsrtombs-state.c: New file.
18601         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
18602         (internal_state): Remove variable.
18603         * m4/wcsnrtombs.m4: New file.
18604         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
18605         compilation units.
18606         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
18607         HAVE_WCSNRTOMBS.
18608         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
18609         HAVE_WCSNRTOMBS.
18610         * modules/wcsnrtombs: New file.
18611         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
18612         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
18613
18614 2008-12-21  Bruno Haible  <bruno@clisp.org>
18615
18616         * modules/wcsrtombs-tests: New file.
18617         * tests/test-wcsrtombs1.sh: New file.
18618         * tests/test-wcsrtombs2.sh: New file.
18619         * tests/test-wcsrtombs3.sh: New file.
18620         * tests/test-wcsrtombs4.sh: New file.
18621         * tests/test-wcsrtombs.c: New file.
18622
18623         New module 'wcsrtombs'.
18624         * lib/wchar.in.h (wcsrtombs): New declaration.
18625         * lib/wcsrtombs.c: New file.
18626         * m4/wcsrtombs.m4: New file.
18627         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
18628         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
18629         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
18630         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
18631         * modules/wcsrtombs: New file.
18632         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
18633         bugs.
18634
18635 2008-12-21  Bruno Haible  <bruno@clisp.org>
18636
18637         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
18638         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
18639         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
18640         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
18641         if not correct.
18642         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
18643         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
18644         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18645         m4/locale-zh.m4, m4/codeset.m4.
18646         * doc/posix-functions/wcrtomb.texi: Document the bug.
18647
18648 2008-12-21  Bruno Haible  <bruno@clisp.org>
18649
18650         Work around a btowc() bug on IRIX 6.5.
18651         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
18652         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
18653         REPLACE_WTOBC if not.
18654         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
18655         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
18656         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
18657
18658 2008-12-21  Bruno Haible  <bruno@clisp.org>
18659
18660         * modules/wcrtomb-tests: New file.
18661         * tests/test-wcrtomb.sh: New file.
18662         * tests/test-wcrtomb.c: New file.
18663
18664         New module 'wcrtomb'.
18665         * lib/wchar.in.h (wcrtomb): New declaration.
18666         * lib/wcrtomb.c: New file.
18667         * m4/wcrtomb.m4: New file.
18668         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
18669         HAVE_WCRTOMB.
18670         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
18671         HAVE_WCRTOMB.
18672         * modules/wcrtomb: New file.
18673         * doc/posix-functions/wcrtomb.texi: Mention the new module.
18674
18675 2008-12-21  Bruno Haible  <bruno@clisp.org>
18676
18677         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
18678         * modules/mbsrtowcs (Files): Likewise.
18679         * modules/wctob (Files): Likewise.
18680         * modules/c-strcase-tests (Files): Likewise.
18681         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
18682         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
18683         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
18684         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
18685         * modules/vasnprintf-posix-tests (Files): Likewise.
18686
18687 2008-12-21  William Pursell  <bill.pursell@gmail.com>
18688
18689         gitlog-to-changelog: pass all command-line arguments to git-log
18690         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
18691         it is sometimes convenient to filter the commits in various ways.
18692         gitlog-to-changelog only allows --since to specify a start date,
18693         but git-log itself supports many other filtering mechanisms.
18694         At the moment, I want to filter by branch name.  Rather than
18695         adding a --branch option to gitlog-to-changelog, it seems more
18696         flexible to simply pass all options directly to git-log and let
18697         git do the work.  Notice that this effectively makes --since a
18698         redundant option for gitlog-to-changelog, but removing it would
18699         require current usage to change since calls would then require
18700         an additional '--'.
18701
18702 2008-12-21  Bruno Haible  <bruno@clisp.org>
18703
18704         * modules/mbsnrtowcs-tests: New file.
18705         * tests/test-mbsnrtowcs1.sh: New file.
18706         * tests/test-mbsnrtowcs2.sh: New file.
18707         * tests/test-mbsnrtowcs3.sh: New file.
18708         * tests/test-mbsnrtowcs4.sh: New file.
18709         * tests/test-mbsnrtowcs.c: New file.
18710
18711         New module 'mbsnrtowcs'.
18712         * lib/wchar.in.h (mbsnrtowcs): New declaration.
18713         * lib/mbsnrtowcs.c: New file.
18714         * lib/mbsrtowcs-state.c: New file.
18715         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
18716         (internal_state): Remove variable.
18717         * m4/mbsnrtowcs.m4: New file.
18718         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
18719         compilation units.
18720         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
18721         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
18722         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
18723         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
18724         * modules/mbsnrtowcs: New file.
18725         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
18726         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
18727         portability problem.
18728
18729 2008-12-21  Bruno Haible  <bruno@clisp.org>
18730
18731         Work around mbsrtowcs bug.
18732         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
18733         (gl_FUNC_MBSRTOWCS): Invoke it.
18734         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18735         m4/locale-zh.m4.
18736         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
18737
18738 2008-12-21  Bruno Haible  <bruno@clisp.org>
18739
18740         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
18741
18742 2008-12-21  Bruno Haible  <bruno@clisp.org>
18743
18744         Update doc for AIX.
18745         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
18746         16-bit wchar_t type.
18747         * doc/posix-functions/btowc.texi: Likewise.
18748         * doc/posix-functions/fgetwc.texi: Likewise.
18749         * doc/posix-functions/fgetws.texi: Likewise.
18750         * doc/posix-functions/fputwc.texi: Likewise.
18751         * doc/posix-functions/fputws.texi: Likewise.
18752         * doc/posix-functions/fwide.texi: Likewise.
18753         * doc/posix-functions/fwprintf.texi: Likewise.
18754         * doc/posix-functions/fwscanf.texi: Likewise.
18755         * doc/posix-functions/getwchar.texi: Likewise.
18756         * doc/posix-functions/getwc.texi: Likewise.
18757         * doc/posix-functions/iswalnum.texi: Likewise.
18758         * doc/posix-functions/iswalpha.texi: Likewise.
18759         * doc/posix-functions/iswblank.texi: Likewise.
18760         * doc/posix-functions/iswcntrl.texi: Likewise.
18761         * doc/posix-functions/iswctype.texi: Likewise.
18762         * doc/posix-functions/iswdigit.texi: Likewise.
18763         * doc/posix-functions/iswgraph.texi: Likewise.
18764         * doc/posix-functions/iswlower.texi: Likewise.
18765         * doc/posix-functions/iswprint.texi: Likewise.
18766         * doc/posix-functions/iswpunct.texi: Likewise.
18767         * doc/posix-functions/iswspace.texi: Likewise.
18768         * doc/posix-functions/iswupper.texi: Likewise.
18769         * doc/posix-functions/iswxdigit.texi: Likewise.
18770         * doc/posix-functions/mbrtowc.texi: Likewise.
18771         * doc/posix-functions/mbsrtowcs.texi: Likewise.
18772         * doc/posix-functions/mbstowcs.texi: Likewise.
18773         * doc/posix-functions/mbtowc.texi: Likewise.
18774         * doc/posix-functions/putwchar.texi: Likewise.
18775         * doc/posix-functions/putwc.texi: Likewise.
18776         * doc/posix-functions/swprintf.texi: Likewise.
18777         * doc/posix-functions/tolower.texi: Likewise.
18778         * doc/posix-functions/toupper.texi: Likewise.
18779         * doc/posix-functions/towctrans.texi: Likewise.
18780         * doc/posix-functions/ungetwc.texi: Likewise.
18781         * doc/posix-functions/vswprintf.texi: Likewise.
18782         * doc/posix-functions/wcrtomb.texi: Likewise.
18783         * doc/posix-functions/wcscat.texi: Likewise.
18784         * doc/posix-functions/wcschr.texi: Likewise.
18785         * doc/posix-functions/wcscmp.texi: Likewise.
18786         * doc/posix-functions/wcscoll.texi: Likewise.
18787         * doc/posix-functions/wcscpy.texi: Likewise.
18788         * doc/posix-functions/wcscspn.texi: Likewise.
18789         * doc/posix-functions/wcsftime.texi: Likewise.
18790         * doc/posix-functions/wcslen.texi: Likewise.
18791         * doc/posix-functions/wcsncat.texi: Likewise.
18792         * doc/posix-functions/wcsncmp.texi: Likewise.
18793         * doc/posix-functions/wcsncpy.texi: Likewise.
18794         * doc/posix-functions/wcspbrk.texi: Likewise.
18795         * doc/posix-functions/wcsrchr.texi: Likewise.
18796         * doc/posix-functions/wcsrtombs.texi: Likewise.
18797         * doc/posix-functions/wcsspn.texi: Likewise.
18798         * doc/posix-functions/wcsstr.texi: Likewise.
18799         * doc/posix-functions/wcstod.texi: Likewise.
18800         * doc/posix-functions/wcstof.texi: Likewise.
18801         * doc/posix-functions/wcstoimax.texi: Likewise.
18802         * doc/posix-functions/wcstok.texi: Likewise.
18803         * doc/posix-functions/wcstold.texi: Likewise.
18804         * doc/posix-functions/wcstoll.texi: Likewise.
18805         * doc/posix-functions/wcstol.texi: Likewise.
18806         * doc/posix-functions/wcstombs.texi: Likewise.
18807         * doc/posix-functions/wcstoull.texi: Likewise.
18808         * doc/posix-functions/wcstoul.texi: Likewise.
18809         * doc/posix-functions/wcstoumax.texi: Likewise.
18810         * doc/posix-functions/wcswidth.texi: Likewise.
18811         * doc/posix-functions/wcsxfrm.texi: Likewise.
18812         * doc/posix-functions/wctob.texi: Likewise.
18813         * doc/posix-functions/wctomb.texi: Likewise.
18814         * doc/posix-functions/wctrans.texi: Likewise.
18815         * doc/posix-functions/wctype.texi: Likewise.
18816         * doc/posix-functions/wcwidth.texi: Likewise.
18817         * doc/posix-functions/wmemchr.texi: Likewise.
18818         * doc/posix-functions/wmemcmp.texi: Likewise.
18819         * doc/posix-functions/wmemcpy.texi: Likewise.
18820         * doc/posix-functions/wmemmove.texi: Likewise.
18821         * doc/posix-functions/wmemset.texi: Likewise.
18822         * doc/posix-functions/wprintf.texi: Likewise.
18823         * doc/posix-functions/wscanf.texi: Likewise.
18824
18825 2008-12-21  Bruno Haible  <bruno@clisp.org>
18826
18827         Update doc for HP-UX 11.11.
18828         * doc/posix-functions/btowc.texi: Clarify that the function is missing
18829         in HP-UX version 11.00, not in all versions of HP-UX 11.
18830         * doc/posix-functions/fwide.texi: Likewise.
18831         * doc/posix-functions/fwprintf.texi: Likewise.
18832         * doc/posix-functions/fwscanf.texi: Likewise.
18833         * doc/posix-functions/inet_ntop.texi: Likewise.
18834         * doc/posix-functions/inet_pton.texi: Likewise.
18835         * doc/posix-functions/mbrlen.texi: Likewise.
18836         * doc/posix-functions/mbrtowc.texi: Likewise.
18837         * doc/posix-functions/mbsinit.texi: Likewise.
18838         * doc/posix-functions/mbsrtowcs.texi: Likewise.
18839         * doc/posix-functions/swprintf.texi: Likewise.
18840         * doc/posix-functions/swscanf.texi: Likewise.
18841         * doc/posix-functions/towctrans.texi: Likewise.
18842         * doc/posix-functions/vfwprintf.texi: Likewise.
18843         * doc/posix-functions/vswprintf.texi: Likewise.
18844         * doc/posix-functions/vwprintf.texi: Likewise.
18845         * doc/posix-functions/wcrtomb.texi: Likewise.
18846         * doc/posix-functions/wcsrtombs.texi: Likewise.
18847         * doc/posix-functions/wcsstr.texi: Likewise.
18848         * doc/posix-functions/wctob.texi: Likewise.
18849         * doc/posix-functions/wctrans.texi: Likewise.
18850         * doc/posix-functions/wmemchr.texi: Likewise.
18851         * doc/posix-functions/wmemcmp.texi: Likewise.
18852         * doc/posix-functions/wmemcpy.texi: Likewise.
18853         * doc/posix-functions/wmemmove.texi: Likewise.
18854         * doc/posix-functions/wmemset.texi: Likewise.
18855         * doc/posix-functions/wprintf.texi: Likewise.
18856         * doc/posix-functions/wscanf.texi: Likewise.
18857
18858 2008-12-21  Bruno Haible  <bruno@clisp.org>
18859
18860         Work around a portability problem.
18861         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
18862         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
18863
18864 2008-12-20  Bruno Haible  <bruno@clisp.org>
18865
18866         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
18867         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
18868         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
18869         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
18870         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
18871
18872         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
18873         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
18874         set.
18875         (GNULIB_defined_mbstate_t): New macro.
18876         (mbsinit): Redefine if REPLACE_MBSINIT is set.
18877         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
18878         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
18879         reuses the system's mbrtowc function but works around the bugs.
18880         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
18881         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
18882         macros.
18883         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
18884         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
18885         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
18886         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
18887         REPLACE_MBSINIT if mbsinit needs to be overridden.
18888         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
18889         REPLACE_MBSINIT, REPLACE_MBRTOWC.
18890         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
18891         REPLACE_MBSINIT, REPLACE_MBRTOWC.
18892         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18893         m4/locale-zh.m4.
18894         (Depends): Add mbsinit.
18895         * modules/mbsinit (Depends): Add mbrtowc.
18896         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
18897
18898 2008-12-20  Bruno Haible  <bruno@clisp.org>
18899
18900         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
18901         so that there are no conversion errors on AIX.
18902         * tests/test-mbsrtowcs.c (main): LIkewise.
18903
18904 2008-12-20  Bruno Haible  <bruno@clisp.org>
18905
18906         Work around wctob bug on Solaris <= 9.
18907         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
18908         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
18909         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
18910         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
18911         * modules/wctob (Files): Add m4/locale-fr.m4.
18912         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
18913
18914 2008-12-20  Bruno Haible  <bruno@clisp.org>
18915
18916         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
18917         /dev/null.
18918         * tests/test-select-in.sh: Likewise.
18919         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18920
18921 2008-12-20  Bruno Haible  <bruno@clisp.org>
18922
18923         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
18924         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
18925         Cygwin 1.5.x.
18926
18927 2008-12-20  Bruno Haible  <bruno@clisp.org>
18928
18929         Ensure mbstate_t is defined on HP-UX 11.11.
18930         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
18931         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
18932         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
18933         AC_USE_SYSTEM_EXTENSIONS.
18934         * modules/fnmatch (Depends-on): Add extensions.
18935         * modules/mbrlen (Depends-on): Likewise.
18936         * modules/mbrtowc (Depends-on): Likewise.
18937         * modules/mbsinit (Depends-on): Likewise.
18938         * modules/mbsrtowcs (Depends-on): Likewise.
18939         * modules/mbswidth (Depends-on): Likewise.
18940         * modules/quotearg (Depends-on): Likewise.
18941         * modules/strftime (Depends-on): Likewise.
18942
18943 2008-12-20  Bruno Haible  <bruno@clisp.org>
18944
18945         Ensure wctob is declared on IRIX 6.5.
18946         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
18947         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
18948         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
18949         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
18950         of HAVE_WCTOB.
18951         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
18952         HAVE_WCTOB.
18953         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
18954
18955 2008-12-19  Bruno Haible  <bruno@clisp.org>
18956
18957         * modules/mbsrtowcs-tests: New file.
18958         * tests/test-mbsrtowcs1.sh: New file.
18959         * tests/test-mbsrtowcs2.sh: New file.
18960         * tests/test-mbsrtowcs3.sh: New file.
18961         * tests/test-mbsrtowcs4.sh: New file.
18962         * tests/test-mbsrtowcs.c: New file.
18963
18964         New module 'mbsrtowcs'.
18965         * lib/wchar.in.h (mbsrtowcs): New declaration.
18966         * lib/mbsrtowcs.c: New file.
18967         * m4/mbsrtowcs.m4: New file.
18968         * modules/mbsrtowcs: New file.
18969         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
18970         HAVE_MBSRTOWCS.
18971         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
18972         HAVE_MBSRTOWCS.
18973         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
18974
18975 2008-12-19  Bruno Haible  <bruno@clisp.org>
18976
18977         New module 'mbrlen'.
18978         * lib/wchar.in.h (mbrlen): New declaration.
18979         * lib/mbrlen.c: New file.
18980         * m4/mbrlen.m4: New file.
18981         * modules/mbrlen: New file.
18982         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
18983         HAVE_MBRLEN.
18984         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
18985         HAVE_MBRLEN.
18986         * doc/posix-functions/mbrlen.texi: Document the new module.
18987
18988 2008-12-19  Bruno Haible  <bruno@clisp.org>
18989
18990         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
18991         * modules/mbrtowc (Depends-on): Add verify.
18992         Suggested by Paul Eggert.
18993
18994 2008-12-18  Bruno Haible  <bruno@clisp.org>
18995
18996         * modules/mbsinit-tests: New file.
18997         * tests/test-mbsinit.sh: New file.
18998         * tests/test-mbsinit.c: New file.
18999
19000 2008-12-18  Bruno Haible  <bruno@clisp.org>
19001
19002         * modules/mbrtowc-tests: New file.
19003         * tests/test-mbrtowc1.sh: New file.
19004         * tests/test-mbrtowc2.sh: New file.
19005         * tests/test-mbrtowc3.sh: New file.
19006         * tests/test-mbrtowc4.sh: New file.
19007         * tests/test-mbrtowc.c: New file.
19008
19009         New module 'mbrtowc'.
19010         * lib/wchar.in.h (mbstate_t): Override when the system does not have
19011         mbsinit and mbrtowc.
19012         (mbrtowc): New declaration.
19013         * lib/mbrtowc.c: New file.
19014         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
19015         * modules/mbrtowc: New file.
19016         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
19017         HAVE_MBRTOWC.
19018         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
19019         HAVE_MBRTOWC.
19020         * doc/posix-functions/mbrtowc.texi: Document the new module.
19021
19022 2008-12-18  Bruno Haible  <bruno@clisp.org>
19023
19024         New module 'wctob'.
19025         * lib/wchar.in.h (wctob): New declaration.
19026         * lib/wctob.c: New file.
19027         * m4/wctob.m4: New file.
19028         * modules/wctob: New file.
19029         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
19030         HAVE_WCTOB.
19031         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
19032         * doc/posix-functions/wctob.texi: Document the new module.
19033
19034 2008-12-18  Bruno Haible  <bruno@clisp.org>
19035
19036         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
19037         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
19038
19039 2008-12-18  Simon Josefsson  <simon@josefsson.org>
19040
19041         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
19042         G. Christensen" <tgc@jupiterrise.com>.
19043
19044         * lib/flock.c: Need to include errno.h.  Reported by "Tom
19045         G. Christensen" <tgc@jupiterrise.com>.
19046
19047         * lib/flock.c: Need to include string.h.  Reported by "Tom
19048         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
19049         <ebb9@byu.net>.
19050
19051 2008-12-18  Bruno Haible  <bruno@clisp.org>
19052
19053         * m4/locale-ja.m4: New file, from GNU gettext.
19054
19055 2008-12-17  Bruno Haible  <bruno@clisp.org>
19056
19057         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
19058         Suggested by Eric Blake.
19059
19060 2008-12-17  Bruno Haible  <bruno@clisp.org>
19061
19062         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
19063
19064 2008-12-17  Bruno Haible  <bruno@clisp.org>
19065
19066         * lib/mbsinit.c: Include verify.h. Verify an assumption.
19067         * modules/mbsinit (Depends-on): Add verify.
19068         Suggested by Paul Eggert.
19069
19070 2008-12-17  Bruno Haible  <bruno@clisp.org>
19071
19072         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
19073         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
19074         gl_FUNC_MBRTOWC.
19075         * m4/mbiter.m4 (gl_MBITER): LIkewise.
19076         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
19077         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
19078         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
19079         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
19080         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
19081         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
19082         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
19083         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
19084         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
19085         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
19086         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
19087         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
19088         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
19089         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
19090         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
19091         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
19092         * modules/trim (configure.ac): Likewise.
19093
19094 2008-12-17  Bruno Haible  <bruno@clisp.org>
19095
19096         * modules/btowc-tests: New file.
19097         * tests/test-btowc1.sh: New file.
19098         * tests/test-btowc2.sh: New file.
19099         * tests/test-btowc.c: New file.
19100
19101         New module 'btowc'.
19102         * lib/wchar.in.h (btowc): New declaration.
19103         * lib/btowc.c: New file.
19104         * m4/btowc.m4: New file.
19105         * modules/btowc: New file.
19106         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
19107         HAVE_BTOWC.
19108         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
19109         * doc/posix-functions/btowc.texi: Document the new module.
19110
19111 2008-12-17  Bruno Haible  <bruno@clisp.org>
19112
19113         New module 'mbsinit'.
19114         * lib/wchar.in.h (mbsinit): New declaration.
19115         * lib/mbsinit.c: New file.
19116         * m4/mbsinit.m4: New file.
19117         * modules/mbsinit: New file.
19118         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
19119         HAVE_MBSINIT.
19120         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
19121         HAVE_MBSINIT.
19122         * doc/posix-functions/mbsinit.texi: Document the new module.
19123
19124 2008-12-16  Bruno Haible  <bruno@clisp.org>
19125
19126         * lib/unistd.in.h: Add comment.
19127         * tests/test-environ.c: Don't include <stdlib.h>.
19128
19129 2008-12-16  Bruno Haible  <bruno@clisp.org>
19130
19131         * lib/parse-duration.h (parse_duration): Document return value
19132         convention.
19133         * lib/parse-duration.c: Include specification header first. Add
19134         comments.
19135         (_): Remove macro.
19136         (parse_year_month_day, parse_hour_minute_second): Move side effects
19137         outside of strchr call.
19138         (parse_non_iso8601): Move side effects outside of isspace call.
19139         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
19140         call.
19141
19142 2008-12-16  Bruno Haible  <bruno@clisp.org>
19143
19144         * tests/test-parse-duration.sh: Produce no output when the test
19145         succeeds.
19146
19147 2008-12-16  Bruno Haible  <bruno@clisp.org>
19148
19149         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
19150         expressions.
19151
19152 2008-12-15  Bruno Haible  <bruno@clisp.org>
19153
19154         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
19155         * doc/glibc-functions/flistxattr.texi: Likewise.
19156         * doc/glibc-functions/fopencookie.texi: Likewise.
19157         * doc/glibc-functions/fremovexattr.texi: Likewise.
19158         * doc/glibc-functions/fsetxattr.texi: Likewise.
19159         * doc/glibc-functions/getxattr.texi: Likewise.
19160         * doc/glibc-functions/lgetxattr.texi: Likewise.
19161         * doc/glibc-functions/listxattr.texi: Likewise.
19162         * doc/glibc-functions/llistxattr.texi: Likewise.
19163         * doc/glibc-functions/lremovexattr.texi: Likewise.
19164         * doc/glibc-functions/lsetxattr.texi: Likewise.
19165         * doc/glibc-functions/removexattr.texi: Likewise.
19166         * doc/glibc-functions/setxattr.texi: Likewise.
19167         * doc/posix-functions/open_memstream.texi: Likewise.
19168
19169 2008-12-15  Eric Blake  <ebb9@byu.net>
19170
19171         Update doc for cygwin 1.7.
19172         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
19173         functions.
19174         * doc/posix-functions/fchmodat.texi: Likewise.
19175         * doc/posix-functions/fchownat.texi: Likewise.
19176         * doc/posix-functions/fdopendir.texi: Likewise.
19177         * doc/posix-functions/fmemopen.texi: Likewise.
19178         * doc/posix-functions/freeaddrinfo.texi: Likewise.
19179         * doc/posix-functions/fstatat.texi: Likewise.
19180         * doc/posix-functions/futimens.texi: Likewise.
19181         * doc/posix-functions/gai_strerror.texi: Likewise.
19182         * doc/posix-functions/getaddrinfo.texi: Likewise.
19183         * doc/posix-functions/getnameinfo.texi: Likewise.
19184         * doc/posix-functions/if_freenameindex.texi: Likewise.
19185         * doc/posix-functions/if_indextoname.texi: Likewise.
19186         * doc/posix-functions/if_nameindex.texi: Likewise.
19187         * doc/posix-functions/if_nametoindex.texi: Likewise.
19188         * doc/posix-functions/insque.texi: Likewise.
19189         * doc/posix-functions/linkat.texi: Likewise.
19190         * doc/posix-functions/llrint.texi: Likewise.
19191         * doc/posix-functions/llrintf.texi: Likewise.
19192         * doc/posix-functions/llrintl.texi: Likewise.
19193         * doc/posix-functions/lockf.texi: Likewise.
19194         * doc/posix-functions/lrintl.texi: Likewise.
19195         * doc/posix-functions/mkdirat.texi: Likewise.
19196         * doc/posix-functions/mkfifoat.texi: Likewise.
19197         * doc/posix-functions/mknodat.texi: Likewise.
19198         * doc/posix-functions/mq_close.texi: Likewise.
19199         * doc/posix-functions/mq_getattr.texi: Likewise.
19200         * doc/posix-functions/mq_notify.texi: Likewise.
19201         * doc/posix-functions/mq_open.texi: Likewise.
19202         * doc/posix-functions/mq_receive.texi: Likewise.
19203         * doc/posix-functions/mq_send.texi: Likewise.
19204         * doc/posix-functions/mq_setattr.texi: Likewise.
19205         * doc/posix-functions/mq_timedreceive.texi: Likewise.
19206         * doc/posix-functions/mq_timedsend.texi: Likewise.
19207         * doc/posix-functions/mq_unlink.texi: Likewise.
19208         * doc/posix-functions/open_memstream.texi: Likewise.
19209         * doc/posix-functions/openat.texi: Likewise.
19210         * doc/posix-functions/posix_fadvise.texi: Likewise.
19211         * doc/posix-functions/posix_fallocate.texi: Likewise.
19212         * doc/posix-functions/posix_madvise.texi: Likewise.
19213         * doc/posix-functions/posix_memalign.texi: Likewise.
19214         * doc/posix-functions/posix_openpt.texi: Likewise.
19215         * doc/posix-functions/readlinkat.texi: Likewise.
19216         * doc/posix-functions/remque.texi: Likewise.
19217         * doc/posix-functions/renameat.texi: Likewise.
19218         * doc/posix-functions/rintl.texi: Likewise.
19219         * doc/posix-functions/sem_unlink.texi: Likewise.
19220         * doc/posix-functions/shm_open.texi: Likewise.
19221         * doc/posix-functions/shm_unlink.texi: Likewise.
19222         * doc/posix-functions/signgam.texi: Likewise.
19223         * doc/posix-functions/sigset.texi: Likewise.
19224         * doc/posix-functions/stpcpy.texi: Likewise.
19225         * doc/posix-functions/stpncpy.texi: Likewise.
19226         * doc/posix-functions/strerror.texi: Likewise.
19227         * doc/posix-functions/strtod.texi: Likewise.
19228         * doc/posix-functions/symlinkat.texi: Likewise.
19229         * doc/posix-functions/unlinkat.texi: Likewise.
19230         * doc/posix-functions/utimensat.texi: Likewise.
19231         * doc/glibc-functions/bindresvport.texi: Likewise.
19232         * doc/glibc-functions/dn_expand.texi: Likewise.
19233         * doc/glibc-functions/exp10.texi: Likewise.
19234         * doc/glibc-functions/exp10f.texi: Likewise.
19235         * doc/glibc-functions/fgetxattr.texi: Likewise.
19236         * doc/glibc-functions/flistxattr.texi: Likewise.
19237         * doc/glibc-functions/fopencookie.texi: Likewise.
19238         * doc/glibc-functions/freeifaddrs.texi: Likewise.
19239         * doc/glibc-functions/fremovexattr.texi: Likewise.
19240         * doc/glibc-functions/fsetxattr.texi: Likewise.
19241         * doc/glibc-functions/getifaddrs.texi: Likewise.
19242         * doc/glibc-functions/getxattr.texi: Likewise.
19243         * doc/glibc-functions/lgetxattr.texi: Likewise.
19244         * doc/glibc-functions/listxattr.texi: Likewise.
19245         * doc/glibc-functions/llistxattr.texi: Likewise.
19246         * doc/glibc-functions/lremovexattr.texi: Likewise.
19247         * doc/glibc-functions/lsetxattr.texi: Likewise.
19248         * doc/glibc-functions/pow10.texi: Likewise.
19249         * doc/glibc-functions/pow10f.texi: Likewise.
19250         * doc/glibc-functions/rcmd_af.texi: Likewise.
19251         * doc/glibc-functions/removexattr.texi: Likewise.
19252         * doc/glibc-functions/res_init.texi: Likewise.
19253         * doc/glibc-functions/res_mkquery.texi: Likewise.
19254         * doc/glibc-functions/res_query.texi: Likewise.
19255         * doc/glibc-functions/res_querydomain.texi: Likewise.
19256         * doc/glibc-functions/res_send.texi: Likewise.
19257         * doc/glibc-functions/rresvport_af.texi: Likewise.
19258         * doc/glibc-functions/setxattr.texi: Likewise.
19259         * doc/glibc-functions/strcasestr.texi: Likewise.
19260
19261 2008-12-15  Bruno Haible  <bruno@clisp.org>
19262
19263         Fix compilation error on OSF/1 4.0.
19264         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
19265         <sys/time.h>, simply delegate to the system header.
19266         Reported by Daniel Richard G. <oss@teragram.com>.
19267
19268 2008-12-15  Bruno Haible  <bruno@clisp.org>
19269
19270         * doc/posix-functions/openat.texi: Mention the 'openat' module.
19271         * doc/posix-functions/fchmodat.texi: Likewise.
19272         * doc/posix-functions/fchownat.texi: Likewise.
19273         * doc/posix-functions/fdopendir.texi: Likewise.
19274         * doc/posix-functions/fstatat.texi: Likewise.
19275         * doc/posix-functions/mkdirat.texi: Likewise.
19276         * doc/posix-functions/unlinkat.texi: Likewise.
19277
19278 2008-12-14  Bruno Haible  <bruno@clisp.org>
19279
19280         Update doc for POSIX:2008.
19281         * doc/posix-functions/faccessat.texi: New file.
19282         * doc/posix-functions/fchmodat.texi: New file.
19283         * doc/posix-functions/fchownat.texi: New file.
19284         * doc/posix-functions/fdopendir.texi: New file.
19285         * doc/posix-functions/fstatat.texi: New file.
19286         * doc/posix-functions/futimens.texi: New file.
19287         * doc/posix-functions/linkat.texi: New file.
19288         * doc/posix-functions/mkdirat.texi: New file.
19289         * doc/posix-functions/mkfifoat.texi: New file.
19290         * doc/posix-functions/mknodat.texi: New file.
19291         * doc/posix-functions/open_wmemstream.texi: New file.
19292         * doc/posix-functions/openat.texi: New file.
19293         * doc/posix-functions/psiginfo.texi: New file.
19294         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
19295         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
19296         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
19297         * doc/posix-functions/readlinkat.texi: New file.
19298         * doc/posix-functions/renameat.texi: New file.
19299         * doc/posix-functions/strerror_l.texi: New file.
19300         * doc/posix-functions/symlinkat.texi: New file.
19301         * doc/posix-functions/unlinkat.texi: New file.
19302         * doc/posix-functions/utimensat.texi: New file.
19303         * doc/gnulib.texi (Function Substitutes): Add these subsections.
19304
19305 2008-12-14  Bruno Haible  <bruno@clisp.org>
19306
19307         Update doc for POSIX:2008.
19308         * doc/posix-functions/alphasort.texi: Renamed from
19309         doc/glibc-functions/alphasort.texi.
19310         * doc/posix-functions/dirfd.texi: Renamed from
19311         doc/glibc-functions/dirfd.texi.
19312         * doc/posix-functions/dprintf.texi: Renamed from
19313         doc/glibc-functions/dprintf.texi.
19314         * doc/posix-functions/duplocale.texi: Renamed from
19315         doc/glibc-functions/duplocale.texi.
19316         * doc/posix-functions/fexecve.texi: Renamed from
19317         doc/glibc-functions/fexecve.texi.
19318         * doc/posix-functions/fmemopen.texi: Renamed from
19319         doc/glibc-functions/fmemopen.texi.
19320         * doc/posix-functions/freelocale.texi: Renamed from
19321         doc/glibc-functions/freelocale.texi.
19322         * doc/posix-functions/getdate_err.texi: Renamed from
19323         doc/glibc-functions/getdate_err.texi.
19324         * doc/posix-functions/isalnum_l.texi: Renamed from
19325         doc/glibc-functions/isalnum_l.texi.
19326         * doc/posix-functions/isalpha_l.texi: Renamed from
19327         doc/glibc-functions/isalpha_l.texi.
19328         * doc/posix-functions/isblank_l.texi: Renamed from
19329         doc/glibc-functions/isblank_l.texi.
19330         * doc/posix-functions/iscntrl_l.texi: Renamed from
19331         doc/glibc-functions/iscntrl_l.texi.
19332         * doc/posix-functions/isdigit_l.texi: Renamed from
19333         doc/glibc-functions/isdigit_l.texi.
19334         * doc/posix-functions/isgraph_l.texi: Renamed from
19335         doc/glibc-functions/isgraph_l.texi.
19336         * doc/posix-functions/islower_l.texi: Renamed from
19337         doc/glibc-functions/islower_l.texi.
19338         * doc/posix-functions/isprint_l.texi: Renamed from
19339         doc/glibc-functions/isprint_l.texi.
19340         * doc/posix-functions/ispunct_l.texi: Renamed from
19341         doc/glibc-functions/ispunct_l.texi.
19342         * doc/posix-functions/isspace_l.texi: Renamed from
19343         doc/glibc-functions/isspace_l.texi.
19344         * doc/posix-functions/isupper_l.texi: Renamed from
19345         doc/glibc-functions/isupper_l.texi.
19346         * doc/posix-functions/iswalnum_l.texi: Renamed from
19347         doc/glibc-functions/iswalnum_l.texi.
19348         * doc/posix-functions/iswalpha_l.texi: Renamed from
19349         doc/glibc-functions/iswalpha_l.texi.
19350         * doc/posix-functions/iswblank_l.texi: Renamed from
19351         doc/glibc-functions/iswblank_l.texi.
19352         * doc/posix-functions/iswcntrl_l.texi: Renamed from
19353         doc/glibc-functions/iswcntrl_l.texi.
19354         * doc/posix-functions/iswctype_l.texi: Renamed from
19355         doc/glibc-functions/iswctype_l.texi.
19356         * doc/posix-functions/iswdigit_l.texi: Renamed from
19357         doc/glibc-functions/iswdigit_l.texi.
19358         * doc/posix-functions/iswgraph_l.texi: Renamed from
19359         doc/glibc-functions/iswgraph_l.texi.
19360         * doc/posix-functions/iswlower_l.texi: Renamed from
19361         doc/glibc-functions/iswlower_l.texi.
19362         * doc/posix-functions/iswprint_l.texi: Renamed from
19363         doc/glibc-functions/iswprint_l.texi.
19364         * doc/posix-functions/iswpunct_l.texi: Renamed from
19365         doc/glibc-functions/iswpunct_l.texi.
19366         * doc/posix-functions/iswspace_l.texi: Renamed from
19367         doc/glibc-functions/iswspace_l.texi.
19368         * doc/posix-functions/iswupper_l.texi: Renamed from
19369         doc/glibc-functions/iswupper_l.texi.
19370         * doc/posix-functions/iswxdigit_l.texi: Renamed from
19371         doc/glibc-functions/iswxdigit_l.texi.
19372         * doc/posix-functions/isxdigit_l.texi: Renamed from
19373         doc/glibc-functions/isxdigit_l.texi.
19374         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
19375         doc/glibc-functions/mbsnrtowcs.texi.
19376         * doc/posix-functions/mkdtemp.texi: Renamed from
19377         doc/glibc-functions/mkdtemp.texi.
19378         * doc/posix-functions/newlocale.texi: Renamed from
19379         doc/glibc-functions/newlocale.texi.
19380         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
19381         doc/glibc-functions/nl_langinfo_l.texi.
19382         * doc/posix-functions/open_memstream.texi: Renamed from
19383         doc/glibc-functions/open_memstream.texi.
19384         * doc/posix-functions/opterr.texi: Renamed from
19385         doc/glibc-functions/opterr.texi.
19386         * doc/posix-functions/optind.texi: Renamed from
19387         doc/glibc-functions/optind.texi.
19388         * doc/posix-functions/optopt.texi: Renamed from
19389         doc/glibc-functions/optopt.texi.
19390         * doc/posix-functions/psignal.texi: Renamed from
19391         doc/glibc-functions/psignal.texi.
19392         * doc/posix-functions/scandir.texi: Renamed from
19393         doc/glibc-functions/scandir.texi.
19394         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
19395         doc/glibc-functions/sched_get_priority_min.texi.
19396         * doc/posix-functions/signgam.texi: Renamed from
19397         doc/glibc-functions/signgam.texi.
19398         * doc/posix-functions/stpcpy.texi: Renamed from
19399         doc/glibc-functions/stpcpy.texi.
19400         * doc/posix-functions/stpncpy.texi: Renamed from
19401         doc/glibc-functions/stpncpy.texi.
19402         * doc/posix-functions/strcasecmp_l.texi: Renamed from
19403         doc/glibc-functions/strcasecmp_l.texi.
19404         * doc/posix-functions/strcoll_l.texi: Renamed from
19405         doc/glibc-functions/strcoll_l.texi.
19406         * doc/posix-functions/strfmon_l.texi: Renamed from
19407         doc/glibc-functions/strfmon_l.texi.
19408         * doc/posix-functions/strftime_l.texi: Renamed from
19409         doc/glibc-functions/strftime_l.texi.
19410         * doc/posix-functions/strncasecmp_l.texi: Renamed from
19411         doc/glibc-functions/strncasecmp_l.texi.
19412         * doc/posix-functions/strndup.texi: Renamed from
19413         doc/glibc-functions/strndup.texi.
19414         * doc/posix-functions/strnlen.texi: Renamed from
19415         doc/glibc-functions/strnlen.texi.
19416         * doc/posix-functions/strsignal.texi: Renamed from
19417         doc/glibc-functions/strsignal.texi.
19418         * doc/posix-functions/strxfrm_l.texi: Renamed from
19419         doc/glibc-functions/strxfrm_l.texi.
19420         * doc/posix-functions/timer_gettime.texi: Renamed from
19421         doc/glibc-functions/timer_gettime.texi.
19422         * doc/posix-functions/tolower_l.texi: Renamed from
19423         doc/glibc-functions/tolower_l.texi.
19424         * doc/posix-functions/toupper_l.texi: Renamed from
19425         doc/glibc-functions/toupper_l.texi.
19426         * doc/posix-functions/towctrans_l.texi: Renamed from
19427         doc/glibc-functions/towctrans_l.texi.
19428         * doc/posix-functions/towlower_l.texi: Renamed from
19429         doc/glibc-functions/towlower_l.texi.
19430         * doc/posix-functions/towupper_l.texi: Renamed from
19431         doc/glibc-functions/towupper_l.texi.
19432         * doc/posix-functions/uselocale.texi: Renamed from
19433         doc/glibc-functions/uselocale.texi.
19434         * doc/posix-functions/vdprintf.texi: Renamed from
19435         doc/glibc-functions/vdprintf.texi.
19436         * doc/posix-functions/wcpcpy.texi:
19437         Renamed from doc/glibc-functions/wcpcpy.texi.
19438         * doc/posix-functions/wcpncpy.texi: Renamed from
19439         doc/glibc-functions/wcpncpy.texi.
19440         * doc/posix-functions/wcscasecmp.texi: Renamed from
19441         doc/glibc-functions/wcscasecmp.texi.
19442         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
19443         doc/glibc-functions/wcscasecmp_l.texi.
19444         * doc/posix-functions/wcscoll_l.texi: Renamed from
19445         doc/glibc-functions/wcscoll_l.texi.
19446         * doc/posix-functions/wcsdup.texi: Renamed from
19447         doc/glibc-functions/wcsdup.texi.
19448         * doc/posix-functions/wcsncasecmp.texi: Renamed from
19449         doc/glibc-functions/wcsncasecmp.texi.
19450         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
19451         doc/glibc-functions/wcsncasecmp_l.texi.
19452         * doc/posix-functions/wcsnlen.texi: Renamed from
19453         doc/glibc-functions/wcsnlen.texi.
19454         * doc/posix-functions/wcsnrtombs.texi: Renamed from
19455         doc/glibc-functions/wcsnrtombs.texi.
19456         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
19457         doc/glibc-functions/wcsxfrm_l.texi.
19458         * doc/posix-functions/wctrans_l.texi: Renamed from
19459         doc/glibc-functions/wctrans_l.texi.
19460         * doc/posix-functions/wctype_l.texi: Renamed from
19461         doc/glibc-functions/wctype_l.texi.
19462         * doc/gnulib.texi (Function Substitutes): Add these subsections.
19463         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
19464         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
19465         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
19466         these subsections.
19467         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
19468         Remove sections.
19469
19470 2008-12-14  Bruno Haible  <bruno@clisp.org>
19471
19472         Update doc for POSIX:2008.
19473         * doc/posix-functions/*.texi: Update URL of POSIX specification.
19474
19475 2008-12-14  Bruno Haible  <bruno@clisp.org>
19476
19477         Update doc for POSIX:2008.
19478         * doc/pastposix-functions/bcmp.texi: Renamed from
19479         doc/posix-functions/bcmp.texi.
19480         * doc/pastposix-functions/bcopy.texi: Renamed from
19481         doc/posix-functions/bcopy.texi.
19482         * doc/pastposix-functions/bsd_signal.texi: Renamed from
19483         doc/posix-functions/bsd_signal.texi.
19484         * doc/pastposix-functions/bzero.texi: Renamed from
19485         doc/posix-functions/bzero.texi.
19486         * doc/pastposix-functions/ecvt.texi: Renamed from
19487         doc/posix-functions/ecvt.texi.
19488         * doc/pastposix-functions/fcvt.texi: Renamed from
19489         doc/posix-functions/fcvt.texi.
19490         * doc/pastposix-functions/ftime.texi: Renamed from
19491         doc/posix-functions/ftime.texi.
19492         * doc/pastposix-functions/gcvt.texi: Renamed from
19493         doc/posix-functions/gcvt.texi.
19494         * doc/pastposix-functions/getcontext.texi: Renamed from
19495         doc/posix-functions/getcontext.texi.
19496         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
19497         doc/posix-functions/gethostbyaddr.texi.
19498         * doc/pastposix-functions/gethostbyname.texi: Renamed from
19499         doc/posix-functions/gethostbyname.texi.
19500         * doc/pastposix-functions/getwd.texi: Renamed from
19501         doc/posix-functions/getwd.texi.
19502         * doc/pastposix-functions/h_errno.texi: Renamed from
19503         doc/posix-functions/h_errno.texi.
19504         * doc/pastposix-functions/index.texi: Renamed from
19505         doc/posix-functions/index.texi.
19506         * doc/pastposix-functions/makecontext.texi: Renamed from
19507         doc/posix-functions/makecontext.texi.
19508         * doc/pastposix-functions/mktemp.texi: Renamed from
19509         doc/posix-functions/mktemp.texi.
19510         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
19511         doc/posix-functions/pthread_attr_getstackaddr.texi.
19512         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
19513         doc/posix-functions/pthread_attr_setstackaddr.texi.
19514         * doc/pastposix-functions/rindex.texi: Renamed from
19515         doc/posix-functions/rindex.texi.
19516         * doc/pastposix-functions/scalb.texi: Renamed from
19517         doc/posix-functions/scalb.texi.
19518         * doc/pastposix-functions/setcontext.texi: Renamed from
19519         doc/posix-functions/setcontext.texi.
19520         * doc/pastposix-functions/swapcontext.texi: Renamed from
19521         doc/posix-functions/swapcontext.texi.
19522         * doc/pastposix-functions/ualarm.texi: Renamed from
19523         doc/posix-functions/ualarm.texi.
19524         * doc/pastposix-functions/usleep.texi: Renamed from
19525         doc/posix-functions/usleep.texi.
19526         * doc/pastposix-functions/vfork.texi: Renamed from
19527         doc/posix-functions/vfork.texi.
19528         * doc/pastposix-functions/wcswcs.texi: Renamed from
19529         doc/posix-functions/wcswcs.texi.
19530         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
19531         (Function Substitutes): Update.
19532
19533 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19534
19535         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
19536         m4/strerror.m4.
19537
19538 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19539             Bruno Haible  <bruno@clisp.org>
19540
19541         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
19542
19543 2008-12-13  Bruno Haible  <bruno@clisp.org>
19544
19545         * modules/strtoull (Depends-on): Remove unistd.
19546
19547 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19548
19549         * modules/strtoull (Depends-on): Add stdlib.
19550
19551 2008-12-11  Simon Josefsson  <simon@josefsson.org>
19552
19553         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
19554
19555 2008-12-10  Jim Meyering  <meyering@redhat.com>
19556
19557         gl_ASSERT: don't say assertions are disabled when they're not
19558         * m4/assert.m4 (gl_ASSERT): Do not make configure report
19559         "checking whether to enable assertions... no", when they are in
19560         fact enabled.  This is solely a bug in the output of configure.
19561         In spite of saying "no", NDEBUG was not defined in that case.
19562         Also, as noted by Eric Blake, leave assertions enabled upon
19563         --enable-assert=INVALID.
19564
19565 2008-12-10  Bruno Haible  <bruno@clisp.org>
19566
19567         Change MODULES.html to refer to POSIX:2008 where possible.
19568         * MODULES.html.sh (POSIX2008_URL): New variable.
19569         (posix_headers): Remove sys/timeb, ucontext.
19570         (posix2001_headers): New variable.
19571         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
19572         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
19573         index, makecontext, mktemp, pthread_attr_getstackaddr,
19574         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
19575         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
19576         (posix2001_functions): New variable.
19577         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
19578         otherwise.
19579
19580 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19581
19582         add missing include to parse-duration.c
19583         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
19584         * modules/parse-duration (Depends-on): Add xalloc.
19585
19586         fix sed script reading maint.mk
19587         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
19588         (syntax-check-rules): Use it.
19589
19590 2008-12-09  Bruno Haible  <bruno@clisp.org>
19591
19592         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
19593         MacOS X 10.4/PowerPC.
19594         Reported by Simon Josefsson.
19595
19596 2008-12-08  Jim Meyering  <meyering@redhat.com>
19597
19598         work around mingw's lack of some S_IF definitions
19599         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
19600         Reported by Simon Josefsson.
19601
19602 2008-12-08  Bruno Haible  <bruno@clisp.org>
19603
19604         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
19605         applied to variables. Needed on MacOS X 10.4/PowerPC.
19606         Reported by Simon Josefsson.
19607
19608 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
19609         and Eric Blake  <ebb9@byu.net>
19610
19611         assert: honor --enable-assert
19612         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
19613         order to honor --enable-assert, rather than treating it as a
19614         synonym for --disable-assert.
19615
19616 2008-12-08  Jim Meyering  <meyering@redhat.com>
19617
19618         * lib/posixtm.c: Remove now-useless declaration of mktime.
19619
19620         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
19621
19622 2008-12-07  Bruno Haible  <bruno@clisp.org>
19623
19624         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
19625         test_once): Mark functions as static.
19626         * tests/test-tls.c (test_tls): Likewise.
19627
19628 2008-12-07  Bruno Haible  <bruno@clisp.org>
19629
19630         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
19631         iconv_register_autodetect.
19632
19633 2008-12-07  Jim Meyering  <meyering@redhat.com>
19634
19635         posixtm.c: avoid a warning
19636         * lib/posixtm.c (posixtime): Don't initialize tm0.
19637         It's no longer needed to placate gcc4's -Wuninitialized,
19638         and the attempt to placate would elicit a new warning.
19639
19640         unicodeio.c: mark unused parameters
19641         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
19642         (fallback_failure_callback): Likewise.
19643
19644 2008-12-07  Bruno Haible  <bruno@clisp.org>
19645
19646         * gnulib-tool (func_create_testdir): When building the tests
19647         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
19648         Reported by Simon Josefsson.
19649
19650 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19651
19652         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
19653
19654 2008-12-06  Bruno Haible  <bruno@clisp.org>
19655
19656         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
19657         Suggested by Eric Blake.
19658
19659 2008-12-06  Bruno Haible  <bruno@clisp.org>
19660
19661         Fix a c-stack test failure on MacOS X.
19662         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
19663         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
19664         handler for SIGBUS as well.
19665         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
19666         install a signal handler for SIGBUS as well.
19667         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
19668
19669 2008-12-06  Bruno Haible  <bruno@clisp.org>
19670
19671         Advocacy documentation.
19672         * doc/gnulib-intro.texi (Benefits): New section.
19673         * doc/gnulib.texi: Update.
19674
19675 2008-12-06  Bruno Haible  <bruno@clisp.org>
19676
19677         Document the 'manywarnings' module.
19678         * doc/manywarnings.texi: New file.
19679         * doc/gnulib.texi: Include it.
19680
19681 2008-12-05  Eric Blake  <ebb9@byu.net>
19682
19683         tests: silence some gcc warnings
19684         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
19685         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
19686         type mismatches.
19687
19688 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19689             Bruno Haible  <bruno@clisp.org>
19690
19691         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
19692
19693 2008-11-29  Jim Meyering  <meyering@redhat.com>
19694
19695         unicodeio.c: mark unused parameters
19696         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
19697         (fallback_failure_callback): Likewise.
19698
19699         fts: fix a thinko
19700         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
19701         (set_stat_type): Return S_IF*-valued "type" directly.
19702         Prompted by James Youngman's spotting a related bug.
19703         Confirmed by further testing through find.
19704
19705         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
19706         * lib/fts.c (D_TYPE): Define.
19707         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
19708         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
19709         (s_ifmt_shift_bits): New function.
19710         (set_stat_type): New function.
19711         (fts_build): When not calling fts_stat, call set_stat_type
19712         to propagate dirent.d_type info to fts_read caller.
19713         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
19714         fts_statp->st_mode type information may be valid.
19715
19716 2008-11-28  Simon Josefsson  <simon@josefsson.org>
19717
19718         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
19719         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
19720         <sds@gnu.org>.
19721
19722 2008-11-20  Bruno Haible  <bruno@clisp.org>
19723
19724         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
19725         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
19726         INCLUDE_NEXT.
19727         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
19728         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
19729         * modules/math (Makefile.am): Substitute
19730         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
19731         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19732
19733 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
19734             Bruno Haible  <bruno@clisp.org>
19735
19736         * lib/stdint.in.h: Define all type macros so that their expansion is
19737         a single typedef'ed token. Fixes a compilation failure in Boost which
19738         does "using ::int8_t;".
19739
19740 2008-11-18  Simon Josefsson  <simon@josefsson.org>
19741
19742         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
19743         gl_MANYWARN_ALL_GCC.
19744         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
19745         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
19746         * modules/manywarnings: New file.
19747         * MODULES.html.sh: Mention manywarnings module.
19748
19749 2008-11-18  Bruno Haible  <bruno@clisp.org>
19750
19751         * doc/gnulib-tool.texi (Unit tests): New section.
19752
19753 2008-11-18  Simon Josefsson  <simon@josefsson.org>
19754
19755         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
19756         paths like 'lib/po/foo.po'.
19757
19758 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19759
19760         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
19761         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
19762
19763 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19764
19765         * m4/warnings.m4: Use CPPFLAGS to really check whether the
19766         parameter works.
19767
19768 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19769
19770         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
19771
19772 2008-11-17  Bruce Korb  <bkorb@gnu.org>
19773
19774         * modules/parse-duration-tests: New file.
19775         * tests/test-parse-duration.sh: New file.
19776         * tests/test-parse-duration.c: New file.
19777
19778         New module 'parse-duration'.
19779         * lib/parse-duration.h: New file.
19780         * lib/parse-duration.c: New file.
19781         * modules/parse-duration: New file.
19782
19783 2008-11-17  Bruno Haible  <bruno@clisp.org>
19784
19785         * tests/test-select-out.sh: Comment out the first pipe test.
19786         Reported by Simon Josefsson.
19787
19788 2008-11-17  Bruno Haible  <bruno@clisp.org>
19789
19790         * modules/getaddrinfo (Depends-on): Add servent, hostent.
19791         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
19792         gl_HOSTENT.
19793
19794 2008-11-17  Bruno Haible  <bruno@clisp.org>
19795
19796         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
19797         -lnetwork and -lnet. Needed for Haiku and BeOS.
19798
19799 2008-11-16  Bruno Haible  <bruno@clisp.org>
19800
19801         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
19802
19803 2008-11-16  Bruno Haible  <bruno@clisp.org>
19804
19805         Avoid test failure on Haiku.
19806         * tests/test-fsync.c: Include <errno.h>.
19807         (main): Don't require that fsync (0) fails.
19808
19809 2008-11-15  Bruno Haible  <bruno@clisp.org>
19810
19811         New module 'hostent'.
19812         * modules/hostent: New file.
19813         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
19814
19815 2008-11-15  Bruno Haible  <bruno@clisp.org>
19816
19817         New module 'servent'.
19818         * modules/servent: New file.
19819         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
19820
19821 2008-11-15  Bruno Haible  <bruno@clisp.org>
19822
19823         Avoid generating same test program with two different rules.
19824         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
19825         test-frexp to test-frexp-nolibm.
19826         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
19827         test-frexpl to test-frexpl-nolibm.
19828
19829 2008-11-15  Bruno Haible  <bruno@clisp.org>
19830
19831         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
19832         $(FREXPL_LIBM).
19833
19834 2008-11-15  Bruno Haible  <bruno@clisp.org>
19835
19836         * lib/netdb.in.h: Activate the definitions also when the system's
19837         <netdb.h> has 'struct addrinfo'.
19838         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
19839         EAI_OVERFLOW or AI_NUMERICSERV.
19840         * doc/posix-headers/netdb.texi: Document the problem.
19841
19842 2008-11-15  Bruno Haible  <bruno@clisp.org>
19843
19844         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
19845
19846         Make the 'sched' module work on platforms where <sched.h> exists but
19847         is incomplete (such as Haiku).
19848         * lib/sched.in.h; Include the system's <sched.h> if it exists.
19849         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
19850         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
19851         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
19852         HAVE_STRUCT_SCHED_PARAM.
19853         * modules/sched (Depends-on): Add include_next.
19854         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
19855         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
19856         * doc/posix-headers/sched.texi: Document the issue.
19857
19858 2008-11-13  Jim Meyering  <meyering@redhat.com>
19859
19860         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
19861         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
19862         test would fail due to the difference in the Report bugs to ...
19863         line.  The expected address is empty, "<>", while the actual
19864         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
19865
19866 2008-11-12  Bruno Haible  <bruno@clisp.org>
19867
19868         lstat: don't compile lstat.c on systems lacking lstat
19869         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
19870         which don't have lstat; this is handled by lib/sys_stat.in.h already.
19871         Reported by Daniel P. Berrange via Jim Meyering.
19872
19873 2008-11-12  Jim Meyering  <meyering@redhat.com>
19874
19875         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
19876
19877 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19878
19879         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
19880         instead.
19881
19882 2008-11-12  Bruno Haible  <bruno@clisp.org>
19883
19884         * lib/unicodeio.c: Include unistr.h.
19885         (utf8_wctomb): Remove function.
19886         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
19887
19888 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19889
19890         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
19891         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
19892         <bruno@clisp.org>.
19893         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
19894
19895 2008-11-12  Simon Josefsson  <simon@josefsson.org>
19896
19897         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
19898         * doc/gnulib.texi: Add section for warnings.
19899
19900 2008-11-11  Bruno Haible  <bruno@clisp.org>
19901
19902         * lib/sockets.h: Add a comment.
19903
19904 2008-11-11  Karl Berry  <karl@gnu.org>
19905
19906         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
19907
19908 2008-11-11  Eric Blake  <ebb9@byu.net>
19909
19910         fdl.texi: avoid git symlinks
19911         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
19912
19913 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19914
19915         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
19916
19917 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19918
19919         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
19920         (gl_WARN_ADD): Substitute $2 if literal.
19921
19922 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19923
19924         * m4/warning.m4: Remove.
19925
19926 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
19927
19928         * m4/warnings.m4: Almost complete rewrite. :-)
19929
19930 2008-11-10  Simon Josefsson  <simon@josefsson.org>
19931
19932         * modules/warnings: New module.
19933         * m4/warnings.m4: New file.
19934         * MODULES.html.sh: Mention warnings module.
19935         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
19936         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19937
19938 2008-11-10  Eric Blake  <ebb9@byu.net>
19939
19940         fdl.texi: make a symlink to the latest version
19941         * doc/standards.texi: Revert today's earlier change.
19942         * doc/fdl-1.2.texi: Rename from old fdl.texi...
19943         * doc/fdl.texi: ...and replace this with a symlink to the newer
19944         fdl-1.3.texi.
19945
19946 2008-11-10  Bruno Haible  <bruno@clisp.org>
19947
19948         * tests/test-select-fd.c (main): Accept the result file name as fourth
19949         argument.
19950         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
19951         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
19952
19953 2008-11-10  Bruno Haible  <bruno@clisp.org>
19954
19955         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
19956         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
19957         as autoconf-substituted macros.
19958         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
19959         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
19960         gl_NETDB_H_DEFAULTS. Set these variables.
19961         * modules/netdb (Makefile.am): Substitute these variables.
19962
19963 2008-11-10  Eric Blake  <ebb9@byu.net>
19964
19965         standards.texi: include correct file for FDL 1.3
19966         * doc/standards.texi (GNU Free Documentation License): Change
19967         include file to pull in FDL 1.3, not 1.2.
19968
19969         fdl.texi: revert accidental change to license
19970         * doc/fdl.texi: This is FDL 1.2, not 1.3.
19971
19972 2008-11-10  Bruno Haible  <bruno@clisp.org>
19973
19974         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
19975         cross-compiling guesses also when the native compile gives no result.
19976
19977 2008-11-10  Bruno Haible  <bruno@clisp.org>
19978
19979         * lib/spawni.c (__spawni): Force variable into the stack.
19980
19981 2008-11-10  Bruno Haible  <bruno@clisp.org>
19982
19983         Add support for Haiku.
19984         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
19985         glibc and BeOS, but also on Haiku.
19986         * lib/fpurge.c (fpurge): Likewise.
19987         * lib/freadable.c (freadable): Likewise.
19988         * lib/freadahead.c (freadahead): Likewise.
19989         * lib/freading.c (freading): Likewise.
19990         * lib/freadptr.c (freadptr): Likewise.
19991         * lib/freadseek.c (freadptrinc): Likewise.
19992         * lib/fseeko.c (rpl_fseeko): Likewise.
19993         * lib/fseterr.c (fseterr): Likewise.
19994         * lib/fwritable.c (fwritable): Likewise.
19995         * lib/fwriting.c (fwriting): Likewise.
19996         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
19997
19998 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
19999
20000         * lib/config.charset: Treat Haiku like BeOS.
20001
20002 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
20003
20004         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
20005         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
20006
20007 2008-11-08  Bruno Haible  <bruno@clisp.org>
20008
20009         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
20010         AC_CACHE_CHECK.
20011
20012 2008-11-08  Bruno Haible  <bruno@clisp.org>
20013
20014         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
20015
20016 2008-11-08  Bruno Haible  <bruno@clisp.org>
20017
20018         * tests/test-select-fd.c: New file.
20019         * tests/test-select-in.sh: New file.
20020         * tests/test-select-out.sh: New file.
20021         * tests/test-select-stdin.c: New file.
20022         * modules/select-tests (Files): Add the new files.
20023         (Depends-on): Add gettimeofday.
20024         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
20025         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
20026         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
20027
20028 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
20029             Bruno Haible  <bruno@clisp.org>
20030
20031         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
20032
20033 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
20034
20035         * build-aux/pmccabe2html: Added support for C++ source files.
20036
20037 2008-11-05  Ben Pfaff  <blp@gnu.org>
20038
20039         Fix lib/close.c build on Windows.
20040         * modules/close (Files): Add lib/w32sock.h.
20041
20042 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
20043
20044         Accept Bison's NEWS format.
20045         * build-aux/announce-gen (print_news_deltas): Tweak
20046         $re_prefix.
20047
20048 2008-11-04  Bruno Haible  <bruno@clisp.org>
20049
20050         * modules/random_r (Maintainer): Add glibc.
20051
20052 2008-11-04  Simon Josefsson  <simon@josefsson.org>
20053
20054         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
20055         by karl@freefriends.org (Karl Berry).
20056         * doc/alloca.texi: Likewise.
20057         * doc/c-ctype.texi: Likewise.
20058         * doc/c-strcase.texi: Likewise.
20059         * doc/c-strcaseeq.texi: Likewise.
20060         * doc/c-strcasestr.texi: Likewise.
20061         * doc/c-strstr.texi: Likewise.
20062         * doc/c-strtod.texi: Likewise.
20063         * doc/c-strtold.texi: Likewise.
20064         * doc/ctime.texi: Likewise.
20065         * doc/error.texi: Likewise.
20066         * doc/fdl.texi: Likewise.
20067         * doc/gcd.texi: Likewise.
20068         * doc/getdate.texi: Likewise.
20069         * doc/gnulib-intro.texi: Likewise.
20070         * doc/gnulib-tool.texi: Likewise.
20071         * doc/gnulib.texi: Likewise.
20072         * doc/inet_ntoa.texi: Likewise.
20073         * doc/maintain.texi: Likewise.
20074         * doc/make-stds.texi: Likewise.
20075         * doc/quote.texi: Likewise.
20076         * doc/regexprops-generic.texi: Likewise.
20077         * doc/standards.texi: Likewise.
20078         * doc/verify.texi: Likewise.
20079         * doc/visibility.texi: Likewise.
20080         * doc/gnulib.texi (GNU Free Documentation License): Include
20081         fdl-1.3.texi instead of fdl.texi.
20082
20083 2008-11-04  Simon Josefsson  <simon@josefsson.org>
20084
20085         * doc/fdl-1.3.texi: New file, from
20086         <http://www.gnu.org/licenses/fdl-1.3.texi>.
20087         * modules/fdl-1.3: Add.
20088         * MODULES.html.sh: Add fdl-1.3.
20089
20090 2008-11-03  Bruno Haible  <bruno@clisp.org>
20091
20092         Make determination of absolute name of header file work with AIX xlc.
20093         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
20094         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
20095         preprocessing.
20096         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
20097         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
20098
20099 2008-11-03  Simon Josefsson  <simon@josefsson.org>
20100
20101         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
20102         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
20103         <ludo@gnu.org>.
20104
20105 2008-11-02  Bruno Haible  <bruno@clisp.org>
20106
20107         Mark 'strpbrk' obsolete.
20108         * modules/strpbrk (Status, Notice): New sections.
20109         * modules/strtok_r (Depends-on): Add strpbrk.
20110
20111 2008-11-02  Bruno Haible  <bruno@clisp.org>
20112
20113         Mark 'strdup' obsolete.
20114         * modules/strdup (Status, Notice): New sections.
20115         * modules/findprog (Depends-on): Add strdup.
20116         * modules/getaddrinfo (Depends-on): Likewise.
20117         * modules/localename (Depends-on): Likewise.
20118         * modules/relocatable-lib (Depends-on): Likewise.
20119         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
20120         * modules/relocatable-prog (Depends-on): Likewise.
20121         * modules/trim (Depends-on): Likewise.
20122         * modules/unictype/gen-ctype (Depends-on): Likewise.
20123         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
20124
20125 2008-11-02  Bruno Haible  <bruno@clisp.org>
20126
20127         Mark 'strcspn' obsolete.
20128         * modules/strcspn (Status, Notice): New sections.
20129
20130 2008-11-02  Bruno Haible  <bruno@clisp.org>
20131
20132         Mark 'rmdir' obsolete.
20133         * modules/rmdir (Status, Notice): New sections.
20134         * modules/clean-temp (Depends-on): Add rmdir.
20135         * modules/openat (Depends-on): Likewise.
20136
20137 2008-11-02  Bruno Haible  <bruno@clisp.org>
20138
20139         Mark 'raise' obsolete.
20140         * modules/raise (Status, Notice): New sections.
20141         (Include): Specify <signal.h>.
20142         * modules/stdio (Depends-on): Add raise.
20143         * modules/write (Depends-on): Likewise.
20144
20145 2008-11-02  Bruno Haible  <bruno@clisp.org>
20146
20147         Mark 'memset' obsolete.
20148         * modules/memset (Status, Notice): New sections.
20149
20150 2008-11-02  Bruno Haible  <bruno@clisp.org>
20151
20152         Mark 'memmove' obsolete.
20153         * modules/memmove (Status, Notice): New sections.
20154         * modules/argp (Depends-on): Add memmove.
20155         * modules/argz (Depends-on): Likewise.
20156         * modules/canonicalize (Depends-on): Likewise.
20157         * modules/canonicalize-lgpl (Depends-on): Likewise.
20158         * modules/fts (Depends-on): Likewise.
20159         * modules/getcwd (Depends-on): Likewise.
20160         * modules/human (Depends-on): Likewise.
20161         * modules/regex (Depends-on): Likewise.
20162         * modules/striconveh (Depends-on): Likewise.
20163         * modules/trim (Depends-on): Likewise.
20164         * modules/unistr/u8-move (Depends-on): Likewise.
20165         * modules/unistr/u16-move (Depends-on): Likewise.
20166         * modules/unistr/u32-move (Depends-on): Likewise.
20167
20168 2008-11-02  Bruno Haible  <bruno@clisp.org>
20169
20170         Mark 'memcpy' obsolete.
20171         * modules/memcpy (Status, Notice): New sections.
20172
20173 2008-11-02  Bruno Haible  <bruno@clisp.org>
20174
20175         Mark 'memcmp' obsolete.
20176         * modules/memcmp (Status, Notice): New sections.
20177         * modules/argmatch (Depends-on): Add memchr.
20178         * modules/backupfile (Depends-on): Likewise.
20179         * modules/c-strcasestr (Depends-on): Likewise.
20180         * modules/crypto/des (Depends-on): Likewise.
20181         * modules/csharpcomp (Depends-on): Likewise.
20182         * modules/fnmatch (Depends-on): Likewise.
20183         * modules/git-merge-changelog (Depends-on): Likewise.
20184         * modules/isnand (Depends-on): Likewise.
20185         * modules/isnand-nolibm (Depends-on): Likewise.
20186         * modules/isnanf (Depends-on): Likewise.
20187         * modules/isnanf-nolibm (Depends-on): Likewise.
20188         * modules/isnanl (Depends-on): Likewise.
20189         * modules/isnanl-nolibm (Depends-on): Likewise.
20190         * modules/mbchar (Depends-on): Likewise.
20191         * modules/memcoll (Depends-on): Likewise.
20192         * modules/quotearg (Depends-on): Likewise.
20193         * modules/regex (Depends-on): Likewise.
20194         * modules/relocatable-prog (Depends-on): Likewise.
20195         * modules/same (Depends-on): Likewise.
20196         * modules/signbit (Depends-on): Likewise.
20197         * modules/strcasestr-simple (Depends-on): Likewise.
20198         * modules/unictype/gen-ctype (Depends-on): Likewise.
20199         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
20200         * modules/uniname/uniname (Depends-on): Likewise.
20201         * modules/unistr/u8-cmp (Depends-on): Likewise.
20202
20203 2008-11-02  Bruno Haible  <bruno@clisp.org>
20204
20205         Mark 'memchr' obsolete.
20206         * modules/memchr (Status, Notice): New sections.
20207         * modules/argp (Depends-on): Add memchr.
20208         * modules/base64 (Depends-on): Likewise.
20209         * modules/c-strcasestr (Depends-on): Likewise.
20210         * modules/chdir-long (Depends-on): Likewise.
20211         * modules/fnmatch (Depends-on): Likewise.
20212         * modules/getsubopt (Depends-on): Likewise.
20213         * modules/git-merge-changelog (Depends-on): Likewise.
20214         * modules/glob (Depends-on): Likewise.
20215         * modules/strcasestr-simple (Depends-on): Likewise.
20216         * modules/strnlen (Depends-on): Likewise.
20217
20218 2008-11-02  Bruno Haible  <bruno@clisp.org>
20219
20220         Mark 'atexit' obsolete.
20221         * modules/atexit (Status, Notice): New sections.
20222         * modules/chdir-long (Depends-on): Add atexit.
20223         * modules/wait-process (Depends-on): Likewise.
20224
20225 2008-11-02  Bruno Haible  <bruno@clisp.org>
20226
20227         * gnulib-tool: New option --with-obsolete.
20228         (func_usage): Document it.
20229         (func_modules_transitive_closure): Drop obsolete dependencies if
20230         incobsolete is not true.
20231         (func_import): Read and save the incobsolete variable to the cache.
20232
20233 2008-11-02  Bruno Haible  <bruno@clisp.org>
20234
20235         * modules/TEMPLATE-EXTENDED: New field 'Status'.
20236         * gnulib-tool: New option --extract-status.
20237         (func_usage): Document it.
20238         (sed_extract_prog): Recognize it.
20239         (func_get_status): New function.
20240
20241 2008-10-30  Simon Josefsson  <simon@josefsson.org>
20242
20243         * modules/sockets (License): Change from LGPL to LGPLv2+.
20244
20245 2008-10-28  Simon Josefsson  <simon@josefsson.org>
20246
20247         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
20248
20249 2008-10-28  Simon Josefsson  <simon@josefsson.org>
20250
20251         * MODULES.html.sh (Support for systems lacking POSIX:2001):
20252         Mention times and sys_times.
20253         * modules/sys_times, modules/sys_times-tests: New modules.
20254         * modules/times, modules/times-tests: Likewise
20255         * m4/sys_times_h.m4: New file.
20256         * lib/sys_times.in.h: Likewise
20257         * lib/times.c: Likewise.
20258         * tests/test-sys_times.c: Likewise.
20259         * tests/test-times.c: Likewise.
20260         * doc/posix-headers/sys_times.texi: Update.
20261         * doc/posix-functions/times.texi: Update.
20262
20263 2008-10-28  Jim Meyering  <meyering@redhat.com>
20264
20265         * modules/tempname (Depends-on): Add lstat.
20266
20267         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
20268
20269 2008-10-28  Simon Josefsson  <simon@josefsson.org>
20270
20271         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
20272         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
20273         using idiom used elsewhere in gnulib.
20274
20275 2008-10-27  Jim Meyering  <meyering@redhat.com>
20276
20277         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
20278
20279 2008-10-27  Simon Josefsson  <simon@josefsson.org>
20280
20281         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
20282         TESTS_ENVIRONMENT, for shell scripts that needs to call built
20283         programs.
20284         * tests/test-argp-2.sh: Use $EXEEXT when needed.
20285
20286 2008-10-27  Simon Josefsson  <simon@josefsson.org>
20287
20288         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
20289
20290 2008-10-27  Bruno Haible  <bruno@clisp.org>
20291
20292         * tests/test-lstat.c: Include <stdio.h>.
20293
20294 2008-10-27  Simon Josefsson  <simon@josefsson.org>
20295
20296         * modules/lstat-tests: New module.
20297         * tests/test-lstat.c: New file.
20298
20299 2008-10-26  Jim Meyering  <meyering@redhat.com>
20300
20301         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
20302
20303 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20304             Bruno Haible  <bruno@clisp.org>
20305
20306         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
20307         * modules/configmake (Include): Add a note that the include must come
20308         after all system headers.
20309         * lib/javaversion.c: Include configmake.h after all other includes.
20310
20311 2008-10-26  Bruno Haible  <bruno@clisp.org>
20312
20313         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
20314         HAVE_STRUCT_RANDOM_DATA to 1.
20315         (gl_STDLIB_H): Simplify.
20316
20317 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20318
20319         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
20320         substitute HAVE_STRUCT_RANDOM_DATA.
20321         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
20322         random_data.
20323         * modules/stdlib (Makefile.am): Substitute
20324         HAVE_STRUCT_RANDOM_DATA.
20325
20326 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20327
20328         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
20329         * doc/gnulib-intro.texi (Copyright): Likewise.
20330
20331 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20332
20333         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
20334         findings.
20335
20336 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
20337             Bruno Haible  <bruno@clisp.org>
20338
20339         * lib/unistd.in.h: Include <winsock2.h>.
20340         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
20341         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
20342         Provide dummy declarations.
20343         (gethostname): Override.
20344         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
20345         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
20346         gl_PREREQ_SYS_H_WINSOCK2.
20347         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
20348         * doc/posix-functions/gethostname.texi: More details.
20349
20350 2008-10-25  Bruno Haible  <bruno@clisp.org>
20351
20352         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
20353         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
20354         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
20355
20356         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
20357         here ...
20358         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
20359         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
20360         gl_UNISTD_H_DEFAULTS.
20361
20362 2008-10-25  Eric Blake  <ebb9@byu.net>
20363
20364         signbit: avoid spurious compiler failure
20365         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
20366         declarations inside function.
20367
20368 2008-10-24  Simon Josefsson  <simon@josefsson.org>
20369             Bruno Haible  <bruno@clisp.org>
20370
20371         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
20372         * modules/random_r (Depends-on): Add stdint.
20373
20374 2008-10-24  Bruno Haible  <bruno@clisp.org>
20375
20376         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
20377         Eggert.
20378         * modules/strerror (License): Likewise.
20379
20380 2008-10-24  Jim Meyering  <meyering@redhat.com>
20381
20382         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
20383         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
20384
20385 2008-10-24  Eric Blake  <ebb9@byu.net>
20386
20387         getgroups: fix compilation when getgroups is available
20388         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
20389         but with <config.h> override of getgroups disabled.
20390
20391 2008-10-24  Simon Josefsson  <simon@josefsson.org>
20392
20393         * doc/gnulib.texi (Header files): Add note about C++ problems.
20394         Explained by Bruno Haible <bruno@clisp.org>.
20395
20396 2008-10-23  Bruno Haible  <bruno@clisp.org>
20397
20398         Define a dummy SA_NODEFER macro on Interix.
20399         * lib/signal.in.h (SA_NODEFER): Define fallback.
20400         Reported by Aleksey Cheusov <cheusov@tut.by> via
20401         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
20402
20403 2008-10-23  Bruno Haible  <bruno@clisp.org>
20404
20405         * modules/freadahead (License): Change to LGPLv2+.
20406         Suggested by Simon Josefsson.
20407
20408 2008-10-23  Jim Meyering  <meyering@redhat.com>
20409
20410         random_r: new module
20411         * modules/random_r: New file.
20412         * m4/random_r.m4: New file.
20413         * lib/random_r.c: New file, from glibc.
20414         * modules/random_r-tests: New file.
20415         * tests/test-random_r.c: New file.
20416         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
20417          Declare.
20418         (RAND_MAX): Define.
20419         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
20420         * modules/stdlib: Substitute them, too.
20421         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
20422         * doc/glibc-functions/initstate_r.texi: Mention the new module.
20423         * doc/glibc-functions/random_r.texi: Likewise.
20424         * doc/glibc-functions/setstate_r.texi: Likewise.
20425         * doc/glibc-functions/srandom_r.texi: Likewise.
20426         * config/srclist.txt: Mention it.
20427
20428 2008-10-23  David Lutterkort  <lutter@redhat.com>
20429
20430         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
20431         link requirement
20432
20433 2008-10-23  Jim Meyering  <meyering@redhat.com>
20434
20435         selinux-h: mark parameters of stub functions as intentionally unused
20436         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
20437         * lib/se-context.in.h: Likewise.
20438
20439 2008-10-22  Simon Josefsson  <simon@josefsson.org>
20440
20441         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
20442
20443 2008-10-22  Simon Josefsson  <simon@josefsson.org>
20444
20445         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
20446
20447 2008-10-22  Eric Blake  <ebb9@byu.net>
20448
20449         glthread/thread: avoid compiler warning
20450         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
20451         Add unreachable abort to silence compiler.
20452
20453 2008-10-22  Eric Blake  <ebb9@byu.net>
20454
20455         netdb: also supply struct addrinfo for cygwin 1.5.x
20456         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
20457         older cygwin.
20458         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
20459         cygwin.
20460         * doc/posix-headers/netdb.texi (netdb.h): Document this.
20461
20462 2008-10-22  Bruno Haible  <bruno@clisp.org>
20463
20464         * users.txt: Update entry about pspp.
20465
20466 2008-10-21  Bruno Haible  <bruno@clisp.org>
20467
20468         Simplification.
20469         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
20470         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
20471
20472         Simplification.
20473         * lib/ioctl.c (ioctl): Don't undefine.
20474         * lib/socket.c (socket): Don't undefine.
20475
20476         Remove unused module indicator macros.
20477         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
20478         GNULIB_$1 as a C macro.
20479
20480         * doc/posix-functions/close.texi: Undo last change.
20481         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
20482         Windows platforms.
20483
20484 2008-10-21  Bruno Haible  <bruno@clisp.org>
20485
20486         Add gethostname() declaration to <unistd.h>.
20487         * lib/unistd.in.h (gethostname): New declaration.
20488         * lib/gethostname.c: Include <unistd.h>.
20489         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
20490         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
20491         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
20492         and HAVE_GETHOSTNAME.
20493         * modules/gethostname (Depends-on): Add unistd.
20494         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20495         (Include): Specify <unistd.h>.
20496         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
20497         HAVE_GETHOSTNAME.
20498         * tests/test-gethostname.c: Include <unistd.h> first.
20499
20500 2008-10-21  Bruno Haible  <bruno@clisp.org>
20501
20502         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
20503         * modules/select-tests (Depends-on): Likewise.
20504         Reported by Simon Josefsson.
20505
20506 2008-10-21  Simon Josefsson  <simon@josefsson.org>
20507
20508         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
20509         * lib/accept.c: New file, based on winsock.c.
20510         * lib/bind.c: New file, based on winsock.c.
20511         * lib/connect.c: New file, based on winsock.c.
20512         * lib/getpeername.c: New file, based on winsock.c.
20513         * lib/getsockname.c: New file, based on winsock.c.
20514         * lib/getsockopt.c: New file, based on winsock.c.
20515         * lib/ioctl.c: New file, based on winsock.c.
20516         * lib/listen.c: New file, based on winsock.c.
20517         * lib/recv.c: New file, based on winsock.c.
20518         * lib/recvfrom.c: New file, based on winsock.c.
20519         * lib/send.c: New file, based on winsock.c.
20520         * lib/sendto.c: New file, based on winsock.c.
20521         * lib/setsockopt.c: New file, based on winsock.c.
20522         * lib/shutdown.c: New file, based on winsock.c.
20523         * lib/socket.c: New file, based on winsock.c.
20524         * lib/w32sock.h: New file, based on winsock.c.
20525         * lib/winsock.c: Remove file.
20526         * modules/accept: Likewise.
20527         * modules/bind: Likewise.
20528         * modules/connect: Likewise.
20529         * modules/getpeername: Likewise.
20530         * modules/getsockname: Likewise.
20531         * modules/getsockopt: Likewise.
20532         * modules/ioctl: Likewise.
20533         * modules/listen: Likewise.
20534         * modules/recv: Likewise.
20535         * modules/recvfrom: Likewise.
20536         * modules/send: Likewise.
20537         * modules/sendto: Likewise.
20538         * modules/setsockopt: Likewise.
20539         * modules/shutdown: Likewise.
20540         * modules/socket: Use socket.c instead of winsock.c.
20541         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
20542         * doc/posix-functions/accept.texi: Doc fix.
20543         * doc/posix-functions/bind.texi: Doc fix.
20544         * doc/posix-functions/close.texi: Doc fix.
20545         * doc/posix-functions/connect.texi: Doc fix.
20546         * doc/posix-functions/getpeername.texi: Doc fix.
20547         * doc/posix-functions/getsockname.texi: Doc fix.
20548         * doc/posix-functions/getsockopt.texi: Doc fix.
20549         * doc/posix-functions/ioctl.texi: Doc fix.
20550         * doc/posix-functions/listen.texi: Doc fix.
20551         * doc/posix-functions/recv.texi: Doc fix.
20552         * doc/posix-functions/recvfrom.texi: Doc fix.
20553         * doc/posix-functions/send.texi: Doc fix.
20554         * doc/posix-functions/sendto.texi: Doc fix.
20555         * doc/posix-functions/setsockopt.texi: Doc fix.
20556         * doc/posix-functions/shutdown.texi: Doc fix.
20557         * doc/posix-functions/socket.texi: Doc fix.
20558
20559 2008-10-20  Bruno Haible  <bruno@clisp.org>
20560
20561         Take into account the role of SIGABRT_COMPAT on Windows 2008.
20562         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
20563         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
20564         as an alias for SIGABRT.
20565         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
20566         (sigaction): Map it to SIGABRT.
20567         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
20568
20569 2008-10-20  Bruno Haible  <bruno@clisp.org>
20570
20571         * lib/fts.c: Don't include lstat.h.
20572         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
20573
20574         Move the lstat() declaration to <sys/stat.h>.
20575         * lib/lstat.h: Remove file.
20576         * lib/sys_stat.in.h: Add special invocation convention.
20577         (lstat): New declaration.
20578         * lib/lstat.c (orig_lstat): New function.
20579         (rpl_lstat): Use orig_lstat instead of lstat.
20580         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
20581         AC_C_INLINE. Set REPLACE_LSTAT.
20582         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
20583         and REPLACE_LSTAT.
20584         * modules/lstat (Files): Remove lib/lstat.h.
20585         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
20586         (Include): Specify <sys/stat.h> instead of lstat.h.
20587         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
20588         REPLACE_LSTAT.
20589         * NEWS: Mention the change.
20590
20591 2008-10-20  Bruno Haible  <bruno@clisp.org>
20592
20593         * modules/posix_spawn-tests: New file.
20594         * tests/test-posix_spawn3.c: New file.
20595
20596 2008-10-20  Bruno Haible  <bruno@clisp.org>
20597
20598         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
20599         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
20600         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
20601         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
20602         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
20603
20604 2008-10-20  Bruno Haible  <bruno@clisp.org>
20605
20606         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
20607         of posix_spawn on AIX 5.3.
20608
20609 2008-10-20  Bruno Haible  <bruno@clisp.org>
20610
20611         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
20612
20613 2008-10-20  Bruno Haible  <bruno@clisp.org>
20614
20615         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
20616         of AC_LANG_PROGRAM.
20617
20618 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20619
20620         * lib/netdb.in.h: Don't define GNU specific constants until they
20621         are supported or needed.  Reported by Bruno Haible
20622         <bruno@clisp.org>.
20623
20624 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20625
20626         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
20627
20628 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20629
20630         * lib/getaddrinfo.h: Remove file.
20631         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
20632         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
20633         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
20634         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
20635         * modules/netdb: Substitute GNULIB_GETADDRINFO.
20636         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
20637         * tests/test-getaddrinfo.c: Likewise.
20638         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
20639         * NEWS: Mention change.
20640
20641 2008-10-19  Bruno Haible  <bruno@clisp.org>
20642
20643         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
20644
20645 2008-10-19  Bruno Haible  <bruno@clisp.org>
20646
20647         * lib/wait-process.c: Include simply <sys/wait.h>.
20648         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
20649         WIFSTOPPED): Remove fallback definitions.
20650         * modules/wait-process (Depends-on): Add sys_wait.
20651
20652         New module 'sys_wait'.
20653         * modules/sys_wait: New file.
20654         * lib/sys_wait.in.h: New file, partially copied from
20655         lib/wait-process.c.
20656         * m4/sys_wait_h.m4: New file.
20657         * doc/posix-headers/sys_wait.texi: Mention the new module.
20658
20659 2008-10-19  Bruno Haible  <bruno@clisp.org>
20660
20661         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
20662
20663 2008-10-19  Bruno Haible  <bruno@clisp.org>
20664
20665         Assume that waitpid() fills an 'int' status, not a 'union wait'.
20666         * lib/wait-process.c (WAIT_T): Remove type.
20667         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
20668         (wait_subprocess): Update.
20669
20670 2008-10-19  Bruno Haible  <bruno@clisp.org>
20671
20672         New module 'atoll'.
20673         * modules/atoll: New file.
20674         * lib/stdlib.in.h (atoll): New declaration.
20675         * lib/atoll.c: New file, from glibc with modifications.
20676         * m4/atoll.m4: New file.
20677         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
20678         HAVE_ATOLL.
20679         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
20680         * doc/posix-functions/atoll.texi: Mention the new module.
20681
20682 2008-10-19  Bruno Haible  <bruno@clisp.org>
20683
20684         Add strtoull() declaration to <stdlib.h>.
20685         * lib/stdlib.in.h (strtoull): New declaration.
20686         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
20687         Set HAVE_STRTOULL.
20688         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
20689         HAVE_STRTOULL.
20690         * modules/strtoull (Depends-on): Add stdlib.
20691         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20692         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
20693         HAVE_STRTOULL.
20694
20695 2008-10-19  Bruno Haible  <bruno@clisp.org>
20696
20697         Add strtoll() declaration to <stdlib.h>.
20698         * lib/stdlib.in.h (strtoll): New declaration.
20699         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
20700         Set HAVE_STRTOLL.
20701         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
20702         HAVE_STRTOLL.
20703         * modules/strtoll (Depends-on): Add stdlib.
20704         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20705         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
20706
20707 2008-10-19  Bruno Haible  <bruno@clisp.org>
20708
20709         * modules/bcopy (Depends-on): Add strings.
20710         (Include): Specify <strings.h>.
20711
20712 2008-10-19  Bruno Haible  <bruno@clisp.org>
20713
20714         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
20715
20716 2008-10-19  Bruno Haible  <bruno@clisp.org>
20717
20718         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
20719         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
20720         mingw.
20721
20722 2008-10-19  Bruno Haible  <bruno@clisp.org>
20723
20724         * lib/atanl.c: Don't include isnanl.h.
20725         * lib/cosl.c: Likewise.
20726         * lib/ldexpl.c: Likewise.
20727         * lib/logl.c: Likewise.
20728         * lib/sinl.c: Likewise.
20729         * lib/sqrtl.c: Likewise.
20730         * lib/tanl.c: Likewise.
20731
20732         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
20733         * lib/isnanf.h: Remove file.
20734         * lib/isnand.h: Remove file.
20735         * lib/isnanl.h: Remove file.
20736         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
20737         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
20738         macros.
20739         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
20740         HAVE_ISNANF, don't define it as a C macro.
20741         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
20742         HAVE_ISNAND, don't define it as a C macro.
20743         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
20744         HAVE_ISNANL, don't define it as a C macro.
20745         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
20746         HAVE_ISNAN[FDL].
20747         * modules/isnanf (Files): Remove lib/isnanf.h.
20748         (Depends-on): Add math.
20749         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20750         (Include): Specify <math.h> instead of isnanf.h.
20751         * modules/isnand (Files): Remove lib/isnand.h.
20752         (Depends-on): Add math.
20753         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20754         (Include): Specify <math.h> instead of isnand.h.
20755         * modules/isnanl (Files): Remove lib/isnanl.h.
20756         (Depends-on): Add math.
20757         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20758         (Include): Specify <math.h> instead of isnanl.h.
20759         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
20760         HAVE_ISNAN[FDL].
20761         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
20762         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
20763         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
20764         * NEWS: Mention the change.
20765
20766 2008-10-18  Bruno Haible  <bruno@clisp.org>
20767
20768         Add getusershell(), setusershell(), endusershell() declarations to
20769         <unistd.h>.
20770         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
20771         declarations.
20772         * lib/getusershell.c: Include unistd.h.
20773         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
20774         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
20775         HAVE_GETUSERSHELL.
20776         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
20777         and HAVE_GETUSERSHELL.
20778         * modules/getusershell (Depends-on): Add unistd, extensions.
20779         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20780         (Include): Specify <unistd.h>.
20781         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
20782         HAVE_GETUSERSHELL.
20783
20784 2008-10-18  Bruno Haible  <bruno@clisp.org>
20785
20786         Add a getloadavg() declaration to <stdlib.h>.
20787         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
20788         getloadavg declaration.
20789         (getloadavg): New declaration.
20790         * lib/getloadavg.c: Include <stdlib.h> first.
20791         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
20792         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
20793         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
20794         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
20795         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
20796         * modules/getloadavg (Depends-on): Add stdlib, extensions.
20797         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20798         (Include): Specify <stdlib.h>.
20799         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
20800         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
20801
20802 2008-10-18  Bruno Haible  <bruno@clisp.org>
20803
20804         * lib/dirchownmod.c: Don't include lchmod.h.
20805
20806         Move the lchmod() declaration to <sys/stat.h>.
20807         * lib/lchmod.h: Remove file.
20808         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
20809         (lchmod): New declaration, moved here from lib/lchown.h.
20810         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
20811         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
20812         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
20813         and HAVE_LCHMOD.
20814         * modules/lchmod (Files): Remove lib/lchmod.h.
20815         (Depends-on): Add sys_stat, extensions.
20816         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
20817         (Include): Specify <sys/stat.h> instead of lchmod.h.
20818         * modules/sys_stat (Depends-on): Add link-warning.
20819         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
20820         definition of GL_LINK_WARNING.
20821         * NEWS: Mention the change.
20822
20823 2008-10-18  Bruno Haible  <bruno@clisp.org>
20824
20825         * lib/fchdir.c: Don't include dirfd.h.
20826         * lib/fts.c: Likewise.
20827         * lib/getcwd.c: Likewise.
20828         * lib/glob.c: Likewise.
20829
20830         Move the dirfd() declaration to <dirent.h>.
20831         * lib/dirfd.h: Remove file.
20832         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
20833         (dirfd): New declaration.
20834         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
20835         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
20836         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
20837         HAVE_DECL_DIRFD.
20838         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
20839         HAVE_DECL_DIRFD.
20840         * modules/dirfd (Files): Remove lib/dirfd.h.
20841         (Depends-on): Add dirent, extensions.
20842         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
20843         (Include): Specify <dirent.h> instead of dirfd.h.
20844         * modules/dirent (Depends-on): Add link-warning.
20845         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
20846         definition of GL_LINK_WARNING.
20847         * NEWS: Mention the change.
20848
20849 2008-10-18  Bruno Haible  <bruno@clisp.org>
20850
20851         Move the euidaccess() declaration to <unistd.h>.
20852         * lib/euidaccess.h: Remove file.
20853         * lib/unistd.in.h (euidaccess): New declaration.
20854         * lib/euidaccess.c: Don't include euidaccess.h.
20855         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
20856         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
20857         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
20858         and HAVE_EUIDACCESS.
20859         * modules/euidaccess (Files): Remove lib/euidaccess.h.
20860         (Depends-on): Add unistd.
20861         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20862         (Include): Specify <unistd.h> instead of euidaccess.h.
20863         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
20864         HAVE_EUIDACCESS.
20865         * NEWS: Mention the change.
20866
20867 2008-10-18  Bruno Haible  <bruno@clisp.org>
20868
20869         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
20870
20871         Move the getdomainname() declaration to <unistd.h>.
20872         * lib/getdomainname.h: Remove file.
20873         * lib/unistd.in.h (getdomainname): New declaration.
20874         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
20875         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
20876         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
20877         HAVE_GETDOMAINNAME.
20878         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20879         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
20880         * modules/getdomainname (Files): Remove lib/getdomainname.h.
20881         (Depends-on): Add unistd, extensions.
20882         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20883         (Includes): Specify <unistd.h> instead of getdomainname.h.
20884         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
20885         HAVE_GETDOMAINNAME.
20886         * NEWS: Mention the change.
20887
20888 2008-10-18  Bruno Haible  <bruno@clisp.org>
20889
20890         * modules/dirent: New file.
20891         * m4/dirent_h.m4: New file.
20892         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
20893         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
20894         * modules/fchdir (Files): Remove lib/dirent.in.h.
20895         (Depends-on): Add dirent.
20896         (Makefile.am): Move rules to modules/dirent.
20897         * doc/posix-headers/dirent.texi: Mention the new module.
20898
20899 2008-10-18  Bruno Haible  <bruno@clisp.org>
20900
20901         Avoid -Wunused-parameter warnings in public gnulib header files.
20902         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
20903         macro.
20904         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
20905
20906 2008-10-18  Bruno Haible  <bruno@clisp.org>
20907
20908         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
20909         * doc/glibc-functions/error.texi: Mention the module 'error'.
20910         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
20911         * doc/glibc-functions/getdomainname.texi: Mention the module
20912         'getdomainname'.
20913         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
20914         * doc/glibc-functions/getpagesize.texi: Mention the module
20915         'getpagesize'.
20916         * doc/glibc-functions/getusershell.texi: Mention the module
20917         'getusershell'.
20918         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
20919         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
20920         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
20921         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
20922         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
20923         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
20924         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
20925         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
20926         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
20927         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
20928         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
20929         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
20930         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
20931         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
20932
20933 2008-10-17  Bruno Haible  <bruno@clisp.org>
20934
20935         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
20936         HP-UX and IRIX, use -0.0L.
20937         * tests/test-ceill.c (minus_zero): Likewise.
20938         * tests/test-floorl.c (minus_zero): Likewise.
20939         * tests/test-frexpl.c (minus_zero): Likewise.
20940         * tests/test-isnan.c (minus_zerol): Likewise.
20941         * tests/test-isnanl.h (minus_zero): Likewise.
20942         * tests/test-ldexpl.c (minus_zero): Likewise.
20943         * tests/test-roundl.c (minus_zero): Likewise.
20944         * tests/test-signbit.c (minus_zerol): Likewise.
20945         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
20946         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
20947         * tests/test-truncl.c (minus_zero): Likewise.
20948         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
20949         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
20950         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
20951         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
20952
20953 2008-10-17  Bruno Haible  <bruno@clisp.org>
20954
20955         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
20956         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
20957         that it gets activated only for gcc >= 3.0.
20958         * lib/dirent.in.h: Likewise.
20959         * lib/errno.in.h: Likewise.
20960         * lib/fcntl.in.h: Likewise.
20961         * lib/float.in.h: Likewise.
20962         * lib/iconv.in.h: Likewise.
20963         * lib/inttypes.in.h: Likewise.
20964         * lib/locale.in.h: Likewise.
20965         * lib/math.in.h: Likewise.
20966         * lib/netdb.in.h: Likewise.
20967         * lib/netinet_in.in.h: Likewise.
20968         * lib/search.in.h: Likewise.
20969         * lib/signal.in.h: Likewise.
20970         * lib/spawn.in.h: Likewise.
20971         * lib/stdarg.in.h: Likewise.
20972         * lib/stdint.in.h: Likewise.
20973         * lib/stdio.in.h: Likewise.
20974         * lib/stdlib.in.h: Likewise.
20975         * lib/string.in.h: Likewise.
20976         * lib/strings.in.h: Likewise.
20977         * lib/sys_file.in.h: Likewise.
20978         * lib/sys_ioctl.in.h: Likewise.
20979         * lib/sys_select.in.h: Likewise.
20980         * lib/sys_socket.in.h: Likewise.
20981         * lib/sys_stat.in.h: Likewise.
20982         * lib/sys_time.in.h: Likewise.
20983         * lib/sysexits.in.h: Likewise.
20984         * lib/time.in.h: Likewise.
20985         * lib/unistd.in.h: Likewise.
20986         * lib/wchar.in.h: Likewise.
20987         * lib/wctype.in.h: Likewise.
20988         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20989
20990 2008-10-17  Jim Meyering  <meyering@redhat.com>
20991
20992         ignore-value: don't depend on inline module
20993         * modules/ignore-value (Depends-on): Remove 'inline'.
20994         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
20995         Suggestion from Bruno Haible.
20996
20997 2008-10-17  Bruno Haible  <bruno@clisp.org>
20998
20999         New implementation of condition variables for Win32.
21000         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
21001         (gl_linked_waitqueue_t): New type.
21002         (gl_cond_t): Use it.
21003         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
21004         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
21005         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
21006         (glthread_cond_init_func, glthread_cond_wait_func,
21007         glthread_cond_timedwait_func, glthread_cond_signal_func,
21008         glthread_cond_broadcast_func, glthread_cond_destroy_func):
21009         Reimplemented on the basis of gl_linked_waitqueue_t.
21010         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
21011         gl_waitqueue_t.
21012         (gl_rwlock_t): Update.
21013         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
21014
21015 2008-10-17  Simon Josefsson  <simon@josefsson.org>
21016
21017         * modules/recvfrom (Depends-on): Add dependency on getpeername.
21018         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
21019
21020 2008-10-17  Jim Meyering  <meyering@redhat.com>
21021
21022         ignore-value: new module
21023         * modules/ignore-value: New file.
21024         * lib/ignore-value.h: New file.
21025         * MODULES.html.sh (Compiler warning management): New section,
21026         just for this module.  More to come.
21027
21028 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
21029
21030         open-safer.c: avoid 'signed and unsigned in conditional...' warning
21031         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
21032         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
21033
21034 2008-10-16  Jim Meyering  <meyering@redhat.com>
21035
21036         openat-die.c: avoid 'no previous prototype' warning
21037         * lib/openat-die.c: Include "openat.h".
21038         Reported by Reuben Thomas <rrt@sc3d.org>.
21039
21040 2008-10-16  Simon Josefsson  <simon@josefsson.org>
21041
21042         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
21043         * lib/netdb.in.h: Fix typo.
21044         Reported by Bruno Haible  <bruno@clisp.org>
21045
21046         * lib/netdb.in.h: Include sys/socket.h for platforms without
21047         netdb.h, to get structures like hostent on MinGW.
21048         * modules/netdb (Depends-on): Add sys_socket.
21049
21050 2008-10-15  Simon Josefsson  <simon@josefsson.org>
21051
21052         * modules/netdb, modules/netdb-tests: New file.
21053         * m4/netdb_h.m4: New file.
21054         * lib/netdb.in.h: Add, currently just an empty file pending
21055         definitions.
21056         * tests/test-netdb.c: New file.
21057         * doc/posix-headers/netdb.texi: Mention that we replace it if
21058         needed.
21059         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21060         netdb.
21061
21062 2008-10-15  Simon Josefsson  <simon@josefsson.org>
21063
21064         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
21065         with code.
21066
21067 2008-10-13  Bruno Haible  <bruno@clisp.org>
21068
21069         * lib/glthread/cond.c (glthread_cond_wait_func,
21070         glthread_cond_timedwait_func): Add a comment.
21071
21072 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
21073
21074         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
21075         * tests/test-select.c: Likewise,
21076
21077 2008-10-13  Bruno Haible  <bruno@clisp.org>
21078
21079         * lib/glthread/cond.c (glthread_cond_wait_func,
21080         glthread_cond_timedwait_func): Fix variable name.
21081         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
21082
21083 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
21084
21085         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
21086         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
21087         struct sockaddr.sa_len.
21088         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
21089
21090 2008-10-13  Simon Josefsson  <simon@josefsson.org>
21091
21092         * build-aux/pmccabe2html: Add css and css_url parameters.
21093
21094 2008-10-12  Bruno Haible  <bruno@clisp.org>
21095
21096         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
21097         calling aclx_get.
21098         Reported by Rainer Tammer <tammer@tammer.net>.
21099
21100 2008-10-12  Bruno Haible  <bruno@clisp.org>
21101
21102         Use msvcrt aware primitives for creation/termination of Win32 threads.
21103         * lib/glthread/thread.c: Include <process.h>.
21104         (glthread_create_func): Use _beginthreadex instead of CreateThread.
21105         (wrapper_func): Update signature.
21106         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
21107
21108 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
21109             Bruno Haible  <bruno@clisp.org>
21110
21111         Provide a Win32 implementation of the 'cond' module.
21112         * lib/glthread/cond.h [USE_WIN32]: New implementation.
21113         * lib/glthread/cond.c (glthread_cond_init_func,
21114         glthread_cond_wait_func, glthread_cond_timedwait_func,
21115         glthread_cond_signal_func, glthread_cond_broadcast_func,
21116         glthread_cond_destroy_func) [USE_WIN32]: New functions.
21117         * modules/cond (Dependencies): Add gettimeofday.
21118
21119 2008-10-11  Bruno Haible  <bruno@clisp.org>
21120
21121         Make sleep work on older versions of mingw.
21122         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
21123         only whether it exists.
21124         * doc/posix-functions/sleep.texi: Mention the problem with older
21125         versions of mingw.
21126
21127 2008-10-11  Bruno Haible  <bruno@clisp.org>
21128
21129         New module 'shutdown'.
21130         * modules/shutdown: New file.
21131         * lib/sys_socket.in.h (shutdown): New declaration.
21132         * lib/winsock.c (shutdown): New function.
21133         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
21134         GNULIB_SHUTDOWN.
21135         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
21136         * doc/posix-functions/shutdown.texi: Document the new module.
21137
21138 2008-10-11  Jim Meyering  <meyering@redhat.com>
21139
21140         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
21141
21142 2008-10-11  Bruno Haible  <bruno@clisp.org>
21143
21144         New module 'fclose'.
21145         * modules/fclose: New file.
21146         * lib/stdio.in.h (fclose): New declaration.
21147         * lib/fclose.c: New file.
21148         * m4/fclose.m4: New file.
21149         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
21150         REPLACE_FCLOSE.
21151         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
21152         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
21153         REPLACE_FCLOSE.
21154         * modules/close (Depends-on): fclose.
21155         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
21156
21157 2008-10-11  Bruno Haible  <bruno@clisp.org>
21158
21159         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
21160         set errno and don't call _close.
21161
21162 2008-10-10  Bruno Haible  <bruno@clisp.org>
21163
21164         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
21165         ACL, not afterwards. Fixes test failure on Cygwin.
21166
21167 2008-10-09  Ben Pfaff  <blp@gnu.org>
21168
21169         * build-aux/announce-gen: Fix gnulib version related part of usage
21170         message.  Die with a useful error message if no tarballs are
21171         found.
21172
21173 2008-10-10  Jim Meyering  <meyering@redhat.com>
21174
21175         bootstrap: use git's --depth=N option only if it's supported
21176         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
21177         recognize the --depth option.  Reported by Pádraig Brady.
21178
21179 2008-10-09  Bruno Haible  <bruno@clisp.org>
21180
21181         New module 'ioctl'.
21182         * modules/ioctl: New file.
21183         * lib/sys_socket.in.h (ioctl): Remove declaration.
21184         * lib/winsock.c: Include <sys/ioctl.h>.
21185         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
21186         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
21187         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
21188         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
21189         * doc/posix-functions/ioctl.texi: Mention the new module.
21190
21191 2008-10-09  Bruno Haible  <bruno@clisp.org>
21192
21193         New module 'sys_ioctl'.
21194         * lib/sys_ioctl.in.h: New file.
21195         * m4/sys_ioctl_h.m4: New file.
21196         * modules/sys_ioctl: New file.
21197         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
21198
21199 2008-10-09  Bruno Haible  <bruno@clisp.org>
21200
21201         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
21202         * lib/winsock.c: Include <stdarg.h>.
21203         (rpl_ioctl): Change to second argument 'int' and then varargs.
21204
21205 2008-10-09  Bruno Haible  <bruno@clisp.org>
21206
21207         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
21208         when the sys_socket module is present and the system has <winsock2.h>.
21209
21210 2008-10-09  Bruno Haible  <bruno@clisp.org>
21211
21212         * doc/posix-functions/close.texi: Mention module 'close' instead of
21213         module 'sys_socket'.
21214
21215 2008-10-09  Bruno Haible  <bruno@clisp.org>
21216
21217         * doc/glibc-headers/sys_ioctl.texi: New file.
21218         * doc/gnulib.texi: Include it.
21219
21220 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21221             Bruno Haible  <bruno@clisp.org>
21222
21223         Combine the two replacements of 'close'.
21224         * lib/sys_socket.in.h (close): Define to a reminder to include
21225         <unistd.h>.
21226         (_gl_close_fd_maybe_socket): New declaration.
21227         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
21228         * lib/winsock.c (close): Remove undefinition.
21229         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
21230         needed for the gnulib module 'close'.
21231         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
21232         define to an error symbol or to a warning, if suitable.
21233         * lib/close.c: Include <sys/socket.h>.
21234         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
21235         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
21236         UNISTD_H_HAVE_WINSOCK2_H.
21237         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
21238         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21239         UNISTD_H_HAVE_WINSOCK2_H.
21240         * modules/sys_socket (Files): Add m4/unistd_h.m4.
21241         (configure.ac): Set a module indicator.
21242         (Makefile.am): Substitute GNULIB_CLOSE.
21243         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
21244         * modules/poll-tests (Depends-on): Add close.
21245         * modules/select-tests (Depends-on): Likewise.
21246
21247 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21248             Bruno Haible  <bruno@clisp.org>
21249
21250         New module 'close'.
21251         * modules/close: New file.
21252         * lib/unistd.in.h (close): Move declaration out of the
21253         FCHDIR_REPLACEMENT scope.
21254         (_gl_unregister_fd): New declaration.
21255         * lib/close.c: New file.
21256         * lib/fchdir.c (rpl_close): Remove function.
21257         * m4/close.m4: New file.
21258         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
21259         close.
21260         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
21261         REPLACE_CLOSE.
21262         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
21263         REPLACE_CLOSE.
21264         * modules/fchdir (Depends-on): Add close.
21265
21266 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21267             Bruno Haible  <bruno@clisp.org>
21268
21269         * lib/fcntl.in.h (open): Simplify conditionals.
21270         (_gl_register_fd): New declaration.
21271         * lib/fchdir.c (rpl_open): Remove function.
21272         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
21273         also.
21274         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
21275         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
21276         open.
21277
21278 2008-10-09  Jim Meyering  <meyering@redhat.com>
21279
21280         GNUmakefile: use the more name-space-friendly "_version"
21281         * top/GNUmakefile (_dummy): Update.
21282         (_version): Rename from "version".
21283
21284 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21285             Bruno Haible  <bruno@clisp.org>
21286
21287         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
21288         rpl_close.
21289         (_gl_register_fd): New function, extracted from rpl_open.
21290         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
21291         (rpl_open, rpl_opendir): Use _gl_register_fd.
21292
21293 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21294
21295         Fix organization of 'open' replacement.
21296         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
21297         (gl_FUNC_OPEN): Use it.
21298         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
21299
21300 2008-10-08  Bruno Haible  <bruno@clisp.org>
21301
21302         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
21303
21304 2008-10-08  Simon Josefsson  <simon@josefsson.org>
21305
21306         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
21307         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
21308         listen).
21309
21310 2008-10-08  Eric Blake  <ebb9@byu.net>
21311
21312         GNUmakefile: add 'make version' target
21313         * top/GNUmakefile (_curr-ver): Split version update rules...
21314         (version): ...into a target.
21315
21316 2008-10-07  Bruno Haible  <bruno@clisp.org>
21317
21318         Use a more portable replacement expression for -0.0L.
21319         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
21320         instead of -0.0L. Fix m4 quotation.
21321
21322         * tests/test-signbit.c: Include <float.h>.
21323         (minus_zero): New variable.
21324         (test_signbitl): Use minus_zero instead of -zero.
21325         * modules/signbit-tests (Depends-on): Add float.
21326
21327         * tests/test-ceill.c: Include <float.h>.
21328         (zero): Remove variable.
21329         (minus_zero): New variable.
21330         (main): Use minus_zero instead of -zero.
21331         * modules/ceill-tests (Depends-on): Add float.
21332
21333         * tests/test-floorl.c: Include <float.h>.
21334         (zero): Remove variable.
21335         (minus_zero): New variable.
21336         (main): Use minus_zero instead of -zero.
21337         * modules/floorl-tests (Depends-on): Add float.
21338
21339         * tests/test-roundl.c: Include <float.h>.
21340         (zero): Remove variable.
21341         (minus_zero): New variable.
21342         (main): Use minus_zero instead of -zero.
21343         * modules/roundl-tests (Depends-on): Add float.
21344
21345         * tests/test-truncl.c: Include <float.h>.
21346         (zero): Remove variable.
21347         (minus_zero): New variable.
21348         (main): Use minus_zero instead of -zero.
21349         * modules/truncl-tests (Depends-on): Add float.
21350
21351         * tests/test-frexpl.c (zero): Remove variable.
21352         (minus_zero): New variable.
21353         (main): Use minus_zero instead of -zero.
21354         * modules/frexpl-tests (Depends-on): Add float.
21355
21356         * tests/test-isnan.c (zerol): Remove variable.
21357         (minus_zerol): New variable.
21358         (test_long_double): Use minus_zerol instead of -zerol.
21359         * modules/isnan-tests (Depends-on): Add float.
21360
21361         * tests/test-isnanl.h (zero): Remove variable.
21362         (minus_zero): New variable.
21363         (main): Use minus_zero instead of -zero.
21364         * modules/isnanl-nolibm-tests (Depends-on): Add float.
21365         * modules/isnanl-tests (Depends-on): Add float.
21366
21367         * tests/test-ldexpl.c (zero): Remove variable.
21368         (minus_zero): New variable.
21369         (main): Use minus_zero instead of -zero.
21370         * modules/ldexpl-tests (Depends-on): Add float.
21371
21372         * tests/test-snprintf-posix.h (zerol): Remove variable.
21373         (minus_zerol): New variable.
21374         (test_function): Use minus_zerol instead of -zerol.
21375         * modules/snprintf-posix-tests (Depends-on): Add float.
21376         * modules/vsnprintf-posix-tests (Depends-on): Add float.
21377
21378         * tests/test-sprintf-posix.h (zerol): Remove variable.
21379         (minus_zerol): New variable.
21380         (test_function): Use minus_zerol instead of -zerol.
21381         * modules/sprintf-posix-tests (Depends-on): Add float.
21382         * modules/vsprintf-posix-tests (Depends-on): Add float.
21383
21384         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
21385         (minus_zerol): New variable.
21386         (test_function): Use minus_zerol instead of -zerol.
21387         * modules/vasnprintf-posix-tests (Depends-on): Add float.
21388
21389         * tests/test-vasprintf-posix.c (zerol): Remove variable.
21390         (minus_zerol): New variable.
21391         (test_function): Use minus_zerol instead of -zerol.
21392         * modules/vasprintf-posix-tests (Depends-on): Add float.
21393
21394 2008-10-07  Simon Josefsson  <simon@josefsson.org>
21395
21396         * MODULES.html.sh (Support for building documentation): Mention
21397         pmccabe2html.  Sort entries.
21398
21399         Add pmccabe2html module, from gnupdf.
21400         * build-aux/pmccabe.css: New file.
21401         * build-aux/pmccabe2html: New file.
21402         * m4/pmccabe2html.m4: New file.
21403         * modules/pmccabe2html: New file.
21404
21405 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
21406
21407         flock: new module
21408         * MODULES.html.sh: Add to list of modules.
21409         * lib/flock.c: flock implementation for Windows and Unix systems
21410         which have fcntl.
21411         * doc/glibc-functions/flock.texi: Update documentation.
21412         * lib/sys_file.in.h: <sys/file.h> header file.
21413         * m4/flock.m4: M4 macros.
21414         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
21415         * modules/flock: flock module.
21416         * modules/flock-tests: flock tests module.
21417         * modules/sys_file: sys/file.h module.
21418         * tests/test-flock.c: test suite for flock.
21419
21420 2008-10-06  Jim Meyering  <meyering@redhat.com>
21421
21422         bootstrap: check for LT_INIT more portably still ;-)
21423         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
21424         Spotted by Bruno Haible.
21425
21426 2008-10-06  Eric Blake  <ebb9@byu.net>
21427
21428         test-signbit: avoid tripping Irix cc bug on -0.0L
21429         * tests/test-signbit.c (minus_zerol): Delete, and replace with
21430         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
21431         entire testsuite consistent and avoids an Irix 6.2 bug.
21432
21433 2008-10-05  Bruno Haible  <bruno@clisp.org>
21434             Jim Meyering  <jim@meyering.net>
21435
21436         Add an option for ignoring EPIPE during close_stdout.
21437         * lib/closeout.h: Include <stdbool.h>.
21438         (close_stdout_set_ignore_EPIPE): New declaration.
21439         * lib/closeout.c: Include <stdbool.h>.
21440         (ignore_EPIPE): New variable.
21441         (close_stdout_set_ignore_EPIPE): New function.
21442         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
21443         * lib/close-stream.c (close_stream): Mention the possible EPIPE
21444         failure.
21445         * modules/closeout (Depends-on): Add stdbool.
21446
21447 2008-10-05  Bruno Haible  <bruno@clisp.org>
21448
21449         * modules/accept: New file.
21450         * modules/bind: New file.
21451         * modules/connect: New file.
21452         * modules/getpeername: New file.
21453         * modules/getsockname: New file.
21454         * modules/getsockopt: New file.
21455         * modules/listen: New file.
21456         * modules/recv: New file.
21457         * modules/recvfrom: New file.
21458         * modules/send: New file.
21459         * modules/sendto: New file.
21460         * modules/setsockopt: New file.
21461         * modules/socket: New file.
21462         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
21463         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
21464         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
21465         the particular module is requested. Add a link warning when the
21466         particular module is not requested.
21467         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
21468         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
21469         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
21470         the particular module is requested.
21471         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
21472         gl_SYS_SOCKET_H_DEFAULTS): New macros.
21473         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
21474         * modules/sys_socket (Depends-on): Add link-warning.
21475         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
21476         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
21477         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
21478         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
21479         GL_LINK_WARNING.
21480         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
21481         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
21482         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
21483         * doc/posix-functions/getpeername.texi: Mention the new module
21484         'getpeername'.
21485         * doc/posix-functions/getsockname.texi: Mention the new module
21486         'getsockname'.
21487         * doc/posix-functions/getsockopt.texi: Mention the new module
21488         'getsockopt'.
21489         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
21490         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
21491         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
21492         * doc/posix-functions/send.texi: Mention the new module 'send'.
21493         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
21494         * doc/posix-functions/setsockopt.texi: Mention the new module
21495         'setsockopt'.
21496         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
21497         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
21498         listen, connect, accept.
21499         * modules/select-tests (Depends-on): Likewise.
21500
21501 2008-10-05  Bruno Haible  <bruno@clisp.org>
21502
21503         * lib/winsock.c (strerror): Remove unused #undef.
21504         (rpl_close): Remove unused local variable.
21505
21506         * modules/sys_socket (Depends-on); Add errno.
21507
21508 2008-10-05  Bruno Haible  <bruno@clisp.org>
21509
21510         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
21511         (select): Add a link warning when the 'select' module is not used.
21512         * modules/sys_select (Depends-on): Add link-warning.
21513         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
21514         Suggested by Paolo Bonzini.
21515
21516 2008-10-05  Jim Meyering  <meyering@redhat.com>
21517
21518         bootstrap: check for LT_INIT more portably
21519         * build-aux/bootstrap: Avoid using grep -E, since it's not
21520         portable enough.  Suggestion from Bruno Haible.
21521
21522 2008-10-05  Bruno Haible  <bruno@clisp.org>
21523
21524         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
21525         as being fixed by gnulib.
21526
21527 2008-10-05  Bruno Haible  <bruno@clisp.org>
21528
21529         * modules/select-tests: New file, mostly copied from
21530         modules/sys_select-tests.
21531         * tests/test-select.c: New file, mostly copied from
21532         tests/test-sys_select.c.
21533         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
21534         * modules/sys_select-tests (Depends-on): Remove all dependencies.
21535         (Makefile.am): Remove test_sys_select_LDADD.
21536
21537         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
21538         to an undefined symbol, for an error message.
21539         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
21540         (gl_SYS_SELECT_H_DEFAULTS): New macro.
21541         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
21542         winsock-select.c here.
21543         * modules/sys_select (Files): Remove lib/winsock-select.c.
21544         (Depends-on): Remove alloca.
21545         (Makefile.am): Substitute GNULIB_SELECT.
21546         * modules/select: New file.
21547         * doc/posix-functions/select.texi: Update.
21548
21549 2008-10-05  Bruno Haible  <bruno@clisp.org>
21550
21551         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
21552         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
21553         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
21554         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
21555         getdtablesize.
21556         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
21557         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
21558
21559 2008-10-05  Bruno Haible  <bruno@clisp.org>
21560
21561         * modules/getdtablesize-tests: New file.
21562         * tests/test-getdtablesize.c: New file.
21563
21564         New module 'getdtablesize'.
21565         * lib/unistd.in.h (getdtablesize): New declaration.
21566         * lib/getdtablesize.c: New file.
21567         * m4/getdtablesize.m4: New file.
21568         * modules/getdtablesize: New file.
21569         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21570         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
21571         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
21572         HAVE_GETDTABLESIZE.
21573         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
21574
21575 2008-10-05  Bruno Haible  <bruno@clisp.org>
21576
21577         * modules/sched (Makefile.am): Fix typo.
21578         Reported by Simon Josefsson.
21579
21580 2008-10-05  Jim Meyering  <meyering@redhat.com>
21581
21582         bootstrap: check for LT_INIT, too
21583         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
21584         are deprecated.  Suggestion from Ralf Wildenhues.
21585
21586 2008-10-05  Bruno Haible  <bruno@clisp.org>
21587
21588         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
21589         overriding them by ours.
21590         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
21591
21592 2008-10-05  Jim Meyering  <meyering@redhat.com>
21593
21594         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
21595         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
21596         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
21597
21598 2008-10-04  Bruno Haible  <bruno@clisp.org>
21599
21600         * modules/dup2 (License): Change to LGPLv2+.
21601         * modules/sleep (License): Likewise.
21602         * modules/perror (License): Likewise.
21603         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
21604         Blake.
21605         * modules/signal (License): Likewise.
21606         * modules/sigprocmask (License): Likewise.
21607         * modules/raise (License): Change to LGPLv2+, with approval by Jim
21608         Meyering.
21609
21610 2008-10-04  Bruno Haible  <bruno@clisp.org>
21611
21612         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
21613         Reported by Rainer Tammer <tammer@tammer.net>.
21614
21615 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
21616             Bruno Haible  <bruno@clisp.org>
21617
21618         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
21619         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
21620         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
21621
21622 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
21623
21624         filevercmp: new module
21625         * lib/filevercmp.h: New function filevercmp comparing version strings.
21626         * lib/filevercmp.c: Implementation of filevercmp function.
21627         * modules/filevercmp: Module metadata.
21628         * tests/test-filevercmp.c: Unit test for new module.
21629         * modules/filevercmp-tests: Unit test metadata.
21630         * MODULES.html.sh: Add filevercmp module.
21631
21632 2008-10-03  Bruno Haible  <bruno@clisp.org>
21633
21634         * lib/c-ctype.h: Add comment.
21635         Reported by Jim Meyering.
21636
21637 2008-10-02  Bruno Haible  <bruno@clisp.org>
21638
21639         * modules/posix_spawn-internal (Depends-on): Add 'open'.
21640
21641 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21642
21643         * build-aux/bootstrap: Allow renaming bootstrap, and change the
21644         name of bootstrap.conf accordingly.
21645
21646 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21647
21648         * build-aux/bootstrap: Install git-merge-changelog configuration
21649         items into .gitconfig if needed.
21650
21651 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21652
21653         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
21654         git repository, and initialize/update it accordingly.
21655
21656 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
21657
21658         * modules/fsync-tests: New file.
21659         * tests/test-fsync.c: New file.
21660
21661         New module 'fsync'.
21662         * lib/fsync.c: New file.
21663         * m4/fsync.m4: New file.
21664         * modules/fsync: New file.
21665         * lib/unistd.in.h (fsync): New declaration.
21666         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
21667         GNULIB_FSYNC and HAVE_FSYNC.
21668         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
21669         * MODULES.html.sh (posix_functions): Add fsync.
21670         * doc/posix-functions/fsync.texi: Mention the new module.
21671
21672 2008-10-02  Jim Meyering  <meyering@redhat.com>
21673
21674         fts.c: sync with similar code from coreutils' remove.c
21675         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
21676         Guard also with "#if defined __linux__", since for now at least,
21677         this code is Linux-kernel-specific.
21678
21679 2008-10-02  Jim Meyering  <meyering@redhat.com>
21680
21681         fts: bug fixes
21682         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
21683         Include <sys/vfs.h>, not <sys/statfs.h>.
21684
21685         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
21686         Include <sys/vfs.h>, not <sys/statfs.h>.
21687
21688 2008-10-01  Bruno Haible  <bruno@clisp.org>
21689
21690         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
21691         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
21692         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
21693         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
21694         * doc/posix-functions/posix_spawnp.texi: Likewise.
21695         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
21696         whether posix_spawn actually works.
21697         * m4/pipe.m4 (gl_PIPE): Likewise.
21698         * modules/execute (Files): Add m4/posix_spawn.m4.
21699         * modules/pipe (Files): Add m4/posix_spawn.m4.
21700         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
21701
21702 2008-10-01  Jim Meyering  <meyering@redhat.com>
21703
21704         remove trailing spaces
21705         * NEWS: Likewise.
21706         * lib/poll.c (poll): Likewise.
21707         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
21708         * lib/winsock.c (rpl_close): Likewise.
21709         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
21710         * modules/yield: Likewise.
21711         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
21712         * tests/test-sys_select.c (connect_to_socket): Likewise.
21713
21714         fts.c: adjust a new interface to be more generally useful
21715         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
21716         (fts_build): Adjust caller.
21717
21718 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21719
21720         * modules/cond-tests: New file.
21721         * tests/test-cond.c: New file.
21722
21723 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21724             Bruno Haible  <bruno@clisp.org>
21725
21726         * modules/cond (Dependencies): Add errno, time.
21727         * lib/glthread/cond.h: Include <time.h>.
21728         (gl_cond_define, gl_cond_define_initialized): Use the same definition
21729         across platforms.
21730
21731 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21732             Bruno Haible  <bruno@clisp.org>
21733
21734         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
21735
21736 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21737             Bruno Haible  <bruno@clisp.org>
21738
21739         * modules/tls-tests (Depends-on): Add thread, yield.
21740         (configure.ac): Remove all checks.
21741         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
21742         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
21743         gl_thread_self): Remove definitions. Include glthread/thread.h and
21744         glthread/yield.h instead.
21745         (test_tls): Pass an additional NULL argument to gl_thread_join.
21746
21747 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21748             Bruno Haible  <bruno@clisp.org>
21749
21750         * modules/lock-tests (Depends-on): Add thread, yield.
21751         (configure.ac): Remove all checks.
21752         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
21753         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
21754         gl_thread_self): Remove definitions. Include glthread/thread.h and
21755         glthread/yield.h instead.
21756         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
21757         additional NULL argument to gl_thread_join.
21758
21759 2008-09-30  Bruno Haible  <bruno@clisp.org>
21760
21761         Fix the Win32 implementation of the 'thread' module.
21762         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
21763         pointer type.
21764         (gl_thread_self): Invoke gl_thread_self_func.
21765         (gl_thread_self_func): New declaration.
21766         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
21767         (do_init_self_key, init_self_key): New functions.
21768         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
21769         Remove some fields.
21770         (running_threads, running_lock): Remove variables.
21771         (get_current_thread_handle): New function.
21772         (gl_thread_self_func, wrapper_func, glthread_create_func,
21773         glthread_join_func, gl_thread_exit_func): Largely rewritten and
21774         simplified.
21775
21776 2008-09-30  Bruno Haible  <bruno@clisp.org>
21777
21778         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
21779         files.
21780
21781 2008-09-30  Jim Meyering  <meyering@redhat.com>
21782
21783         fts.m4: correct the test for statfs.f_type
21784         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
21785         when checking for statfs.f_type.
21786
21787 2008-09-15  Simon Josefsson  <simon@josefsson.org>
21788
21789         tests: avoid some compiler warnings
21790         * tests/test-memchr.c (main): Pass NULL indirectly.
21791         * tests/test-getdate.c (main): Remove unused variable 'ret'.
21792
21793 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
21794
21795         getdate.y: disallow countable dayshifts like "4 yesterday ago"
21796         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
21797         exactly specified dayshifts.
21798         (dayshift): New rule.
21799         (rel): Add dayshift.
21800         (relative_time_table) [tomorrow, yesterday, today, now]:
21801         Use tDAY_SHIFT in place of tDAY_UNIT.
21802         * tests/test-getdate.c: Add tests for now-disallowed countable
21803         dayshifts, e.g., "4 yesterday ago".
21804
21805 2008-09-29  Bruno Haible  <bruno@clisp.org>
21806
21807         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
21808         * tests/test-posix_spawn1.in.sh: Renamed from
21809         tests/test-posix_spawn.in.sh.
21810         * tests/test-posix_spawn2.c: New file.
21811         * tests/test-posix_spawn2.in.sh: New file.
21812         * modules/posix_spawnp-tests (Files): Update.
21813         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
21814
21815 2008-09-29  Bruno Haible  <bruno@clisp.org>
21816
21817         Propagate effects of putenv/setenv/unsetenv to child processes.
21818         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
21819         * lib/pipe.c (create_pipe): Likewise.
21820
21821 2008-09-29  Bruno Haible  <bruno@clisp.org>
21822
21823         Enable use of shell scripts as executables in mingw.
21824         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
21825         run the program as a shell script.
21826         * lib/pipe.c (create_pipe): Likewise.
21827         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
21828         resulting array.
21829
21830 2008-09-29  Eric Blake  <ebb9@byu.net>
21831
21832         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
21833
21834 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
21835
21836         * doc/posix-functions/accept.texi: Update mingw problems.
21837         * doc/posix-functions/bind.texi: Update mingw problems.
21838         * doc/posix-functions/close.texi: Update mingw problems.
21839         * doc/posix-functions/connect.texi: Update mingw problems.
21840         * doc/posix-functions/getpeername.texi: Update mingw problems.
21841         * doc/posix-functions/getsockname.texi: Update mingw problems.
21842         * doc/posix-functions/getsockopt.texi: Update mingw problems.
21843         * doc/posix-functions/ioctl.texi: Update mingw problems.
21844         * doc/posix-functions/listen.texi: Update mingw problems.
21845         * doc/posix-functions/recv.texi: Update mingw problems.
21846         * doc/posix-functions/recvfrom.texi: Update mingw problems.
21847         * doc/posix-functions/select.texi: Update mingw problems.
21848         * doc/posix-functions/send.texi: Update mingw problems.
21849         * doc/posix-functions/sendto.texi: Update mingw problems.
21850         * doc/posix-functions/setsockopt.texi: Update mingw problems.
21851         * doc/posix-functions/socket.texi: Update mingw problems.
21852
21853 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
21854             Bruno Haible  <bruno@clisp.org>
21855
21856         * lib/sys_select.in.h: Include sys/time.h.
21857         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
21858         * modules/sys_select: Depend on sys_time.
21859         * tests/test-sys_select.c: Test that sys/select.h defines struct
21860         timeval fully.
21861
21862 2008-09-29  Bruno Haible  <bruno@clisp.org>
21863
21864         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
21865         * lib/sys_select.in.h: Likewise.
21866
21867 2008-09-29  Bruno Haible  <bruno@clisp.org>
21868
21869         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
21870
21871 2008-09-29  Bruno Haible  <bruno@clisp.org>
21872
21873         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
21874         Set LIBSOCKET instead of augmenting LIBS.
21875         * modules/sockets (Link): New section.
21876         * modules/sockets-tests (test_sockets_LDADD): New variable.
21877         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
21878         * modules/poll-tests (test_poll_LDADD): New variable.
21879         * NEWS: Document the change.
21880
21881 2008-09-29  Bruno Haible  <bruno@clisp.org>
21882
21883         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
21884         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
21885         ARPA_INET_H directly.
21886         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21887
21888 2008-09-28  Bruno Haible  <bruno@clisp.org>
21889
21890         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
21891         from gl_HEADER_SYS_SOCKET.
21892         (gl_HEADER_SYS_SOCKET): Invoke it.
21893         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21894
21895 2008-09-28  Bruno Haible  <bruno@clisp.org>
21896
21897         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
21898         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
21899         Needed on OSF/1 4.0.
21900
21901 2008-09-28  Bruno Haible  <bruno@clisp.org>
21902
21903         Override open more carefully.
21904         * lib/open.c (orig_open): New function.
21905         (rpl_open): Use orig_open instead of open.
21906         * lib/fcntl.in.h: Add special invocation convention.
21907         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
21908         (gl_FUNC_OPEN): Invoke it.
21909
21910         Override freopen more carefully.
21911         * lib/freopen.c (orig_freopen): New function.
21912         (rpl_freopen): Use orig_freopen instead of freopen.
21913         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
21914         (gl_FUNC_FREOPEN): Invoke it.
21915
21916         Override fopen more carefully.
21917         * lib/fopen.c (orig_fopen): New function.
21918         (rpl_fopen): Use orig_fopen instead of fopen.
21919         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
21920         (gl_FUNC_FOPEN): Invoke it.
21921         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
21922
21923 2008-09-28  Bruno Haible  <bruno@clisp.org>
21924
21925         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
21926         SIGPIPE.
21927
21928 2008-09-28  Bruno Haible  <bruno@clisp.org>
21929
21930         * tests/test-sigaction.c (handler, main): Disable the check whether
21931         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
21932         glibc systems with LinuxThreads.
21933
21934 2008-09-28  Bruno Haible  <bruno@clisp.org>
21935
21936         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
21937
21938         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
21939         with AIX xlc.
21940         * lib/fcntl.in.h (open): Likewise.
21941         Reported by Rainer Tammer <tammer@tammer.net>.
21942
21943 2008-09-28  Bruno Haible  <bruno@clisp.org>
21944
21945         * modules/posix_spawnp-tests: New file.
21946         * tests/test-posix_spawn.c: New file.
21947         * tests/test-posix_spawn.in.sh: New file.
21948
21949         New module 'posix_spawnp'.
21950         * modules/posix_spawnp: New file.
21951         * lib/spawnp.c: New file, from GNU libc with modifications.
21952         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
21953
21954         New module 'posix_spawn'.
21955         * modules/posix_spawn: New file.
21956         * lib/spawn.c: New file, from GNU libc with modifications.
21957         * doc/posix-functions/posix_spawn.texi: Mention the new module.
21958
21959         New module 'posix_spawnattr_destroy'.
21960         * modules/posix_spawnattr_destroy: New file.
21961         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
21962         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
21963         module.
21964
21965         New module 'posix_spawnattr_setsigmask'.
21966         * modules/posix_spawnattr_setsigmask: New file.
21967         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
21968         modifications.
21969         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
21970         new module.
21971
21972         New module 'posix_spawnattr_getsigmask'.
21973         * modules/posix_spawnattr_getsigmask: New file.
21974         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
21975         modifications.
21976         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
21977         new module.
21978
21979         New module 'posix_spawnattr_setsigdefault'.
21980         * modules/posix_spawnattr_setsigdefault: New file.
21981         * lib/spawnattr_setdefault.c: New file, from GNU libc with
21982         modifications.
21983         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
21984         new module.
21985
21986         New module 'posix_spawnattr_getsigdefault'.
21987         * modules/posix_spawnattr_getsigdefault: New file.
21988         * lib/spawnattr_getdefault.c: New file, from GNU libc with
21989         modifications.
21990         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
21991         new module.
21992
21993         New module 'posix_spawnattr_setschedpolicy'.
21994         * modules/posix_spawnattr_setschedpolicy: New file.
21995         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
21996         modifications.
21997         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
21998         new module.
21999
22000         New module 'posix_spawnattr_getschedpolicy'.
22001         * modules/posix_spawnattr_getschedpolicy: New file.
22002         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
22003         modifications.
22004         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
22005         new module.
22006
22007         New module 'posix_spawnattr_setschedparam'.
22008         * modules/posix_spawnattr_setschedparam: New file.
22009         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
22010         modifications.
22011         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
22012         new module.
22013
22014         New module 'posix_spawnattr_getschedparam'.
22015         * modules/posix_spawnattr_getschedparam: New file.
22016         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
22017         modifications.
22018         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
22019         new module.
22020
22021         New module 'posix_spawnattr_setpgroup'.
22022         * modules/posix_spawnattr_setpgroup: New file.
22023         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
22024         modifications.
22025         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
22026         module.
22027
22028         New module 'posix_spawnattr_getpgroup'.
22029         * modules/posix_spawnattr_getpgroup: New file.
22030         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
22031         modifications.
22032         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
22033         module.
22034
22035         New module 'posix_spawnattr_setflags'.
22036         * modules/posix_spawnattr_setflags: New file.
22037         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
22038         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
22039         module.
22040
22041         New module 'posix_spawnattr_getflags'.
22042         * modules/posix_spawnattr_getflags: New file.
22043         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
22044         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
22045         module.
22046
22047         New module 'posix_spawnattr_init'.
22048         * modules/posix_spawnattr_init: New file.
22049         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
22050         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
22051         module.
22052
22053         New module 'posix_spawn_file_actions_destroy'.
22054         * modules/posix_spawn_file_actions_destroy: New file.
22055         * lib/spawn_faction_destroy.c: New file, from GNU libc with
22056         modifications.
22057         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
22058         the new module.
22059
22060         New module 'posix_spawn_file_actions_addopen'.
22061         * modules/posix_spawn_file_actions_addopen: New file.
22062         * lib/spawn_faction_addopen.c: New file, from GNU libc with
22063         modifications.
22064         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
22065         the new module.
22066
22067         New module 'posix_spawn_file_actions_adddup2'.
22068         * modules/posix_spawn_file_actions_adddup2: New file.
22069         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
22070         modifications.
22071         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
22072         the new module.
22073
22074         New module 'posix_spawn_file_actions_addclose'.
22075         * modules/posix_spawn_file_actions_addclose: New file.
22076         * lib/spawn_faction_addclose.c: New file, from GNU libc with
22077         modifications.
22078         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
22079         the new module.
22080
22081         New module 'posix_spawn_file_actions_init'.
22082         * modules/posix_spawn_file_actions_init: New file.
22083         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
22084         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
22085         new module.
22086
22087         New module 'posix_spawn-internal'.
22088         * modules/posix_spawn-internal: New file.
22089         * lib/spawn_int.h: New file, from GNU libc with modifications.
22090         * lib/spawni.c: New file, from GNU libc with modifications.
22091         * m4/posix_spawn.m4: New file.
22092
22093         New module 'spawn'.
22094         * modules/spawn: New file.
22095         * lib/spawn.in.h: New file, from GNU libc with modifications.
22096         * m4/spawn_h.m4: New file.
22097         * doc/posix-headers/spawn.texi: Mention the new module.
22098
22099 2008-09-28  Bruno Haible  <bruno@clisp.org>
22100
22101         * modules/sched-tests: New file.
22102         * tests/test-sched.c: New file.
22103
22104         New module 'sched'.
22105         * modules/sched: New file.
22106         * lib/sched.in.h: New file.
22107         * m4/sched_h.m4: New file.
22108         * doc/posix-headers/sched.texi: Mention the new module.
22109
22110 2008-09-27  Eric Blake  <ebb9@byu.net>
22111
22112         Fix previous patch, and tweak references to $0.
22113         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
22114         (func_version, func_gnulib_dir): Don't call this program
22115         gnulib-tool.
22116         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
22117         with using $0 in function.
22118         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
22119         (func_fatal_error): Reuse the name the user invoked us with.
22120
22121 2008-09-27  Bruno Haible  <bruno@clisp.org>
22122
22123         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
22124         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
22125         (gl_ICONV_H): Not here.
22126         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
22127         instead of assigning ICONV_H directly.
22128
22129         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
22130         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
22131         WCHAR_H directly.
22132
22133 2008-09-27  Bruno Haible  <bruno@clisp.org>
22134
22135         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
22136         * modules/arpa_inet (Depends-on): Add link-warning.
22137         (Makefile.am): Insert the definition of GL_LINK-WARNING.
22138         * modules/unistd (Makefile.am): Likewise.
22139
22140 2008-09-26  Bruno Haible  <bruno@clisp.org>
22141
22142         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
22143         variables.
22144         (func_version): Essentially copied from gnulib-tool.
22145         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
22146         func_readlink): Copied from gnulib-tool.
22147
22148 2008-09-26  Bruno Haible  <bruno@clisp.org>
22149
22150         * gnulib-tool (func_version): Change directory to $gnulib_dir before
22151         invoking git-version-gen.
22152
22153 2008-09-26  Bruno Haible  <bruno@clisp.org>
22154
22155         * posix-modules: Update to directory names changed on 2008-01-19.
22156         Remove commas in output before splitting into words. No more need to
22157         avoid 'ftruncate' since 2007-02-19.
22158
22159 2008-09-26  Bruno Haible  <bruno@clisp.org>
22160
22161         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
22162
22163 2008-09-26  Bruno Haible  <bruno@clisp.org>
22164
22165         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
22166         * modules/fwriteerror (Depends-on): Add errno.
22167
22168 2008-09-26  Bruno Haible  <bruno@clisp.org>
22169
22170         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
22171         * tests/test-vc-list-files-cvs.sh: Likewise.
22172
22173 2008-09-26  Bruno Haible  <bruno@clisp.org>
22174
22175         * doc/posix-headers/sys_resource.texi: Reorder items.
22176
22177 2008-09-26  Jim Meyering  <meyering@redhat.com>
22178
22179         fts: tweak inode comparison function
22180         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
22181         inode numbers, as documented.
22182
22183         fts: sort dirent entries on inode number before traversing
22184         This avoids a quadratic, seek-related performance penalty when
22185         operating on a directory containing many entries (measurable at 10k;
22186         3.5 hours at 2 million entries with a cold cache) on certain types
22187         of file systems, including ext3 and ext4, but not tmpfs.
22188         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
22189         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
22190         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
22191         (fs_handles_readdir_ordered_dirents_efficiently): New function.
22192         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
22193         (fts_build): Set the stat.st_ino member from D_INO.
22194         If it is likely to be useful, sort dirent entries on inode number.
22195
22196         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
22197         and the struct statfs.f_type member.
22198         * modules/fts (Depends-on): Add d-ino.
22199
22200 2008-09-26  Bruno Haible  <bruno@clisp.org>
22201
22202         * modules/sigpipe-die (Depends-on): Add sigpipe.
22203
22204         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
22205         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
22206         and GNULIB_STDIO_H_SIGPIPE are set.
22207         * lib/stdio-write.c: New file.
22208         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
22209         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
22210         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
22211         REPLACE_STDIO_WRITE_FUNCS.
22212         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
22213         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
22214         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
22215         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
22216         * modules/stdio (Files): Add lib/stdio-write.c.
22217         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
22218         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
22219         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
22220         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
22221         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
22222         REPLACE_FPRINTF_POSIX.
22223         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
22224         REPLACE_PRINTF_POSIX.
22225         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
22226         REPLACE_VFPRINTF_POSIX.
22227         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
22228         REPLACE_VPRINTF_POSIX.
22229         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
22230         SIGPIPE issue.
22231         * doc/posix-functions/fputc.texi: Likewise.
22232         * doc/posix-functions/fputs.texi: Likewise.
22233         * doc/posix-functions/fwrite.texi: Likewise.
22234         * doc/posix-functions/printf.texi: Likewise.
22235         * doc/posix-functions/putc.texi: Likewise.
22236         * doc/posix-functions/putchar.texi: Likewise.
22237         * doc/posix-functions/puts.texi: Likewise.
22238         * doc/posix-functions/vfprintf.texi: Likewise.
22239         * doc/posix-functions/vprintf.texi: Likewise.
22240
22241         * modules/safe-write (Depends-on): Add write.
22242
22243         * modules/sigpipe-tests: New file.
22244         * tests/test-sigpipe.c: New file.
22245         * tests/test-sigpipe.sh: New file.
22246
22247         * modules/write: New file.
22248         * lib/unistd.in.h: Include <sys/types.h>.
22249         (write): New declaration.
22250         * lib/write.c: New file.
22251         * m4/write.m4: New file.
22252         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22253         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
22254         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
22255         GNULIB_WRITE, REPLACE_WRITE.
22256         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
22257         and the SIGPIPE issue.
22258
22259         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
22260         (raise): New declaration.
22261         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
22262         (ext_signal): New function.
22263         (rpl_raise): New function.
22264         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
22265         GNULIB_SIGNAL_H_SIGPIPE.
22266         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
22267         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
22268
22269         * modules/sigpipe: New file.
22270         * m4/sigpipe.m4: New file.
22271
22272 2008-09-25  Derek Price  <derek@ximbiot.com>
22273             Bruno Haible  <bruno@clisp.org>
22274
22275         * gnulib-tool (func_import): Report all license incompatibilities, not
22276         just the first one.
22277
22278 2008-09-25  Bruno Haible  <bruno@clisp.org>
22279
22280         * gnulib-tool (func_import): When computing the edits, consider not
22281         only the Makefile.ams that exist but also those that will be generated.
22282
22283 2008-09-25  Simon Josefsson  <simon@josefsson.org>
22284
22285         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
22286         fixes gnulib-tool --test warning about duplicate dependency.
22287
22288 2008-09-25  Bruno Haible  <bruno@clisp.org>
22289
22290         * gnulib-tool: Don't ask the user to perform edits in the generated
22291         Makefile.ams.
22292         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
22293         apply to the Makefile.am being generated.
22294         (func_emit_tests_Makefile_am): Execute edits that apply to the
22295         Makefile.am being generated.
22296         (func_import): Setup list of Makefile.am edits before emitting the
22297         Makefile.ams, not at the end.
22298         (func_create_testdir): Update.
22299         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
22300
22301 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22302
22303         * gnulib-tool (func_import): Store the --tests-base option in the
22304         comment in gnulib-cache.m4.
22305
22306 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
22307
22308         * NEWS: Document increased portability that sys_select now provides.
22309
22310         * lib/sys_select.in.h: Install select wrapper.
22311         * lib/sys_socket.in.h: Use more descriptive name when there is no
22312         select wrapper.
22313         * lib/winsock-select.c: New.
22314         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
22315         Require gl_HEADER_SYS_SOCKET.
22316         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
22317         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
22318         * tests/test-sys_select.c: Add functional tests.
22319
22320 2008-09-24  Eric Blake  <ebb9@byu.net>
22321
22322         open, fopen: close fd leak in last patch
22323         * lib/open.c (rpl_open): Close fd before returning error.
22324         * lib/fopen.c (rpl_fopen): Close fd before returning error.
22325         * doc/posix-functions/open.texi (open): Document that Irix also
22326         has the bug.
22327         * doc/posix-functions/fopen.texi (fopen): Likewise.
22328         Reported by Paolo Bonzini.
22329
22330 2008-09-24  Bruno Haible  <bruno@clisp.org>
22331
22332         Ensure that a filename ending in a slash cannot be used to access a
22333         non-directory.
22334         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
22335         to check whether it's really a directory.
22336         * lib/fopen.c: Include fcntl.h, unistd.h.
22337         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
22338         and fdopen().
22339         * modules/fopen (Depends-on): Add unistd.
22340         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
22341         * tests/test-fopen.c (main): Likewise.
22342         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
22343         * doc/posix-functions/fopen.texi: Likewise.
22344         Reported by Eric Blake.
22345
22346 2008-09-23  Eric Blake  <ebb9@byu.net>
22347
22348         c-stack: avoid compiler optimizations when provoking overflow
22349         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
22350         recursion harder to optimize, to ensure a stack overflow occurs.
22351         * tests/test-c-stack.c (recurse): Likewise.
22352         Borrowed from libsigsegv.
22353
22354         c-stack: work around Irix sigaltstack bug
22355         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
22356         whether sigaltstack uses wrong end of stack_t (copied in part from
22357         libsigsegv).
22358         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
22359         Irix bug, without requiring an over-allocation.
22360         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
22361         bug.
22362
22363         fopen: document mingw bug on directories
22364         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
22365         not allowing a stream visiting a directory, even though reading
22366         from such a stream is not portable.
22367
22368 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
22369
22370         * lib/poll.c: Rewrite.
22371         * modules/poll: Depend on alloca.
22372
22373 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
22374
22375         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
22376         instead define prototypes for a full set of wrappers.  Ensure
22377         that Cygwin does not use the compatibility code, which is only
22378         for MinGW.
22379         * lib/winsock.c: New.
22380         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
22381         * modules/sys_socket: Add lib/winsock.c.
22382
22383         * modules/poll-tests: Add errno and perror.
22384         * tests/test-poll.c: Use ioctl, not ioctlsocket.
22385
22386 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
22387
22388         * tests/test-poll.c: Downgrade minimum needed Winsock version.
22389
22390 2008-09-23  Bruno Haible  <bruno@clisp.org>
22391
22392         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
22393         * doc/glibc-functions/*: Likewise.
22394
22395 2008-09-23  Simon Josefsson  <simon@josefsson.org>
22396
22397         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
22398         success.
22399
22400 2008-09-22  Eric Blake  <ebb9@byu.net>
22401             Bruno Haible  <bruno@clisp.org>
22402
22403         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
22404         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
22405         supply %A but mishandle pseudo-NaN.
22406         Reported by Simon Josefsson.
22407
22408 2008-09-21  Bruno Haible  <bruno@clisp.org>
22409
22410         * tests/test-lock.c (main): Tweak skip message.
22411         * tests/test-tls.c (main): Likewise.
22412
22413 2008-09-21  Bruno Haible  <bruno@clisp.org>
22414
22415         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
22416         whether 'struct sigaction' has sa_sigaction here...
22417         (gl_PREREQ_SIG_HANDLER_H): ... not here.
22418         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
22419
22420 2008-09-21  Bruno Haible  <bruno@clisp.org>
22421
22422         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
22423         section.
22424         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
22425         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
22426         the new section.
22427         (Support for obsolete systems lacking POSIX:2001): New section.
22428         (String handling <string.h>): Move strdup to the new section.
22429         Suggested by Simon Josefsson and Paolo Bonzini.
22430
22431 2008-09-21  Bruno Haible  <bruno@clisp.org>
22432
22433         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
22434         exponents in %e and %g results on 'long double'. Needed for mingw's
22435         improved *printf functions.
22436         * tests/test-vasprintf-posix.c (test_function): Likewise.
22437         * tests/test-snprintf-posix.h (test_function): Likewise.
22438         * tests/test-sprintf-posix.h (test_function): Likewise.
22439         Reported by Eric Blake.
22440
22441 2008-09-21  Bruno Haible  <bruno@clisp.org>
22442
22443         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
22444         * tests/test-sprintf-posix.h (test_function): Likewise.
22445
22446 2008-09-21  Bruno Haible  <bruno@clisp.org>
22447
22448         * modules/getpass (Depends-on): Add strdup-posix.
22449
22450         New module 'strdup-posix'.
22451         * modules/strdup-posix: New file.
22452         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
22453         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
22454         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
22455         REPLACE_STRDUP.
22456         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
22457         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
22458         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22459         strdup-posix.
22460
22461         * modules/strdup (Depends-on): Remove malloc-posix.
22462
22463 2008-09-20  Bruno Haible  <bruno@clisp.org>
22464
22465         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
22466         Wildenhues.
22467
22468 2008-09-20  Bruno Haible  <bruno@clisp.org>
22469
22470         Ensure that wint_t gets defined on IRIX 5.3.
22471         * lib/wchar.in.h (wint_t): Define if not defined by the system.
22472         * lib/wctype.in.h (wint_t): Likewise.
22473         (__wctype_wint_t): Remove type.
22474         (isw*): Use wint_t instead of __wctype_wint_t.
22475         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
22476         * modules/wchar (Files): Add m4/wint_t.m4.
22477         (Makefile.am): Substitute HAVE_WINT_T.
22478         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
22479         * tests/test-wctype.c: Check that wint_t is defined.
22480         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
22481         * doc/posix-headers/wctype.texi: Likewise.
22482         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22483
22484 2008-09-18  Bruno Haible  <bruno@clisp.org>
22485
22486         * gnulib-tool (func_exit): Update comment.
22487
22488 2008-09-18  Simon Josefsson  <simon@josefsson.org>
22489
22490         * modules/getaddrinfo (Depends-on): Remove strdup, this module
22491         assumes strdup exists and does not depend on strdup to return
22492         ENOMEM on out of memory conditions.
22493
22494 2008-09-18  Bruno Haible  <bruno@clisp.org>
22495
22496         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
22497         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
22498         digits for the exponent.
22499
22500 2008-09-18  Jim Meyering  <meyering@redhat.com>
22501             Bruno Haible  <bruno@clisp.org>
22502
22503         * lib/vasnprintf.c (decimal_point_char): Define also if
22504         NEED_PRINTF_INFINITE_LONG_DOUBLE.
22505
22506 2008-09-16  Bruno Haible  <bruno@clisp.org>
22507         and Eric Blake  <ebb9@byu.net>
22508
22509         vasnprintf: support Irix 5.3
22510         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
22511         that mishandle long double infinity.
22512         Reported by Tom G. Christensen.
22513
22514 2008-09-16  Bruno Haible  <bruno@clisp.org>
22515
22516         * doc/glibc-functions/scandir.texi: Mention the function is missing on
22517         Solaris 9.
22518         * doc/glibc-functions/alphasort.texi: Likewise.
22519         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
22520
22521 2008-09-16  Jim Meyering  <meyering@redhat.com>
22522
22523         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
22524         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
22525         a umask modification leak out of a subshell.  Otherwise, the
22526         opensolaris /bin/sh would be accepted and thus cause unwarranted
22527         failures in the coreutils test suite.
22528
22529 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
22530
22531         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
22532         to succeed.
22533
22534 2008-09-16  Jim Meyering  <meyering@redhat.com>
22535
22536         avoid spurious test failure when library is built without ACL support
22537         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
22538         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
22539         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
22540         * tests/test-copy-acl.sh: Likewise.
22541
22542 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22543
22544         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
22545         based on character occurrence counts.
22546
22547 2008-09-15  Eric Blake  <ebb9@byu.net>
22548
22549         tests: avoid some compiler warnings
22550         * tests/test-memchr.c (main): Pass NULL indirectly.
22551         * tests/test-closein.c (main): Avoid unused variable.
22552
22553 2008-09-15  Bruno Haible  <bruno@clisp.org>
22554
22555         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
22556         are missing on OpenBSD 4.0 individually.
22557         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
22558
22559 2008-09-15  Bruno Haible  <bruno@clisp.org>
22560
22561         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
22562         * doc/posix-functions/strerror.texi: Mention also Cygwin.
22563         * doc/posix-functions/perror.texi: Likewise.
22564         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
22565         is missing.
22566         Reported by Eric Blake.
22567
22568         * lib/errno.in.h: Use replacement values >= 2000.
22569         Reported by Eric Blake.
22570
22571 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22572
22573         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
22574         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
22575         limit.
22576         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
22577         compareseq was aborted.
22578
22579 2008-09-14  Bruno Haible  <bruno@clisp.org>
22580
22581         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
22582         yvec_edit_count.
22583         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
22584         (fstrcmp_bounded): Simplify result computation accordingly.
22585
22586 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22587
22588         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
22589         (fstrcmp): Define in terms of fstrcmp_bounded.
22590         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
22591         lower_bound argument.
22592         Return quickly if the result is certainly < lower_bound.
22593         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
22594
22595 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22596
22597         * lib/diffseq.h (EARLY_ABORT): New macro.
22598         (compareseq): Change return type to bool. Return true when EARLY_ABORT
22599         evaluates to true.
22600
22601 2008-09-14  Bruno Haible  <bruno@clisp.org>
22602
22603         * modules/perror-tests: New file.
22604         * tests/test-perror.sh: New file.
22605         * tests/test-perror.c: New file.
22606
22607         New module 'perror'.
22608         * lib/stdio.in.h (perror): New declaration.
22609         * lib/perror.c: New file.
22610         * m4/perror.m4: New file.
22611         * modules/perror: New file.
22612         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
22613         * doc/posix-functions/perror.texi: Mention the perror module.
22614         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
22615         REPLACE_PERROR.
22616         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
22617         REPLACE_PERROR.
22618
22619 2008-09-14  Bruno Haible  <bruno@clisp.org>
22620
22621         * modules/stdio (Makefile.am): Reorder to match the order in
22622         lib/stdio.in.h.
22623         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
22624
22625 2008-09-13  Bruno Haible  <bruno@clisp.org>
22626
22627         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
22628
22629 2008-09-13  Bruno Haible  <bruno@clisp.org>
22630
22631         Extend strerror to cover the added errno values.
22632         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
22633         (rpl_strerror): Provide error messages for the added errno values and
22634         for the WSA* values.
22635         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
22636         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
22637         strerror.
22638         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
22639         * modules/strerror (Depends-on): Add errno.
22640         * doc/posix-functions/strerror.texi: Document the change.
22641         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
22642         and EOVERFLOW.
22643
22644 2008-09-13  Bruno Haible  <bruno@clisp.org>
22645
22646         * modules/EOVERFLOW: Remove file.
22647         * m4/eoverflow.m4: Remove file.
22648         * modules/EOVERFLOW-tests: Remove file.
22649         * tests/test-EOVERFLOW.c: Remove file.
22650         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
22651         * modules/ftell (Depends-on): Likewise.
22652         * modules/getdelim (Depends-on): Likewise.
22653         * modules/getugroups (Depends-on): Likewise.
22654         * modules/poll (Depends-on): Likewise.
22655         * modules/snprintf (Depends-on): Likewise.
22656         * modules/sprintf-posix (Depends-on): Likewise.
22657         * modules/vasnprintf (Depends-on): Likewise.
22658         * modules/vasprintf (Depends-on): Likewise.
22659         * modules/vfprintf-posix (Depends-on): Likewise.
22660         * modules/vsnprintf (Depends-on): Likewise.
22661         * modules/vsprintf-posix (Depends-on): Likewise.
22662         * modules/xvasprintf (Depends-on): Likewise.
22663         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
22664         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
22665         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
22666         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
22667         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
22668         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
22669         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
22670         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
22671         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
22672         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
22673         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
22674         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
22675         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
22676         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
22677         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
22678         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
22679         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
22680         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
22681         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
22682         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
22683         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
22684         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
22685         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
22686         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
22687         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
22688         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
22689         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
22690         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
22691         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
22692         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
22693         * MODULES.html.sh: Remove EOVERFLOW.
22694         * NEWS: Mention the change.
22695
22696 2008-09-13  Bruno Haible  <bruno@clisp.org>
22697
22698         * modules/errno-tests: New file.
22699         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
22700
22701         * lib/errno.in.h: New file.
22702         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
22703         * modules/errno: New file.
22704         * doc/posix-headers/errno.texi: Update documentation.
22705         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
22706
22707 2008-09-13  Bruno Haible  <bruno@clisp.org>
22708
22709         * tests/test-poll.c: Use #if for native Windows, rather than testing
22710         __MSVCRT__.
22711
22712 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22713             Bruno Haible  <bruno@clisp.org>
22714
22715         * lib/glob.c: Don't include <pwd.h> on native Windows.
22716         (WINDOWS32): New macro.
22717         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
22718
22719 2008-09-13  Bruno Haible  <bruno@clisp.org>
22720
22721         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
22722         (ETIMEDOUT): Remove macro.
22723         (glthread_cond_timedwait_multithreaded): New declaration.
22724         (glthread_cond_timedwait): Use it.
22725         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
22726         (glthread_cond_timedwait_multithreaded): New function.
22727
22728 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22729
22730         * modules/poll-tests: Do not check for io.h.
22731         * tests/test-poll.c: Check for __MSVCRT__ instead.
22732
22733 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22734
22735         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
22736         * modules/poll-tests: Add inet_pton, stdbool, sockets.
22737         * tests/test-poll.c: Use them.  Use _pipe on Windows.
22738
22739 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22740
22741         * modules/poll-tests: New.
22742         * tests/test-poll.c: New.
22743
22744 2008-09-12  Eric Blake  <ebb9@byu.net>
22745
22746         frexp: test for NetBSD failure on -0.0
22747         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
22748         not all, bugs from NetBSD 3.0 have been fixed.
22749         * doc/posix-functions/frexp.texi (frexp): Document bug.
22750         Reported by Thomas Klausner.
22751
22752         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
22753         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
22754         literal -0.0.
22755         Reported by Jonathan C. Patschke <jp@centtech.com>.
22756
22757 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22758
22759         * lib/glthread/cond.h: Use dummy implementation also if
22760         USE_WIN32_THREADS.
22761
22762 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22763
22764         * modules/fnmatch-posix (License): Change to LGPLv2+.
22765         * modules/fnmatch-gnu (License): Likewise.
22766
22767 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22768
22769         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
22770
22771 2008-09-11  Jim Meyering  <meyering@redhat.com>
22772
22773         * users.txt: Add gtk-vnc.
22774
22775 2008-09-08  Simon Josefsson  <simon@josefsson.org>
22776
22777         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
22778         rotate amounts.
22779
22780         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
22781         required for 16-bit and 8-bit rotates.
22782         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
22783         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
22784         UINT8_MAX instead of hard-coded constants.
22785         Suggested by Paul Eggert.
22786
22787 2008-09-07  Bruno Haible  <bruno@clisp.org>
22788
22789         * tests/test-striconveh.c (main): Check behaviour when converting from
22790         UTF-7.
22791
22792         Make striconveh work better with stateful encodings.
22793         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
22794         that iconv does not increment the inptr when returning -1/EINVAL.
22795
22796 2008-09-07  Bruno Haible  <bruno@clisp.org>
22797
22798         * build-aux/config.rpath: Update according to libtool-2.2.6.
22799         * build-aux/config.libpath: Likewise.
22800
22801 2008-09-06  Bruno Haible  <bruno@clisp.org>
22802
22803         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
22804         * lib/freadptr.c (freadptr): Likewise.
22805         * lib/freadseek.c (freadptrinc): Likewise.
22806         Reported by Simon Josefsson.
22807
22808 2008-09-06  Bruno Haible  <bruno@clisp.org>
22809
22810         * modules/freadptr (License): Change to LGPLv2+.
22811         * modules/freadseek (License): Likewise.
22812         Suggested by Eric Blake.
22813
22814         * modules/memchr2 (License): Change to LGPLv2+.
22815         Approved by Eric Blake.
22816
22817 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22818             Bruno Haible  <bruno@clisp.org>
22819
22820         Make gnulib-tool work with native 'sed' on AIX.
22821         * gnulib-tool (sed_noop): New variable.
22822         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
22823         func_add_or_update, func_create_testdir): Use it to initialize sed
22824         script variables.
22825         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22826
22827 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
22828             Bruno Haible  <bruno@clisp.org>
22829
22830         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
22831         also works after #include directives.
22832
22833 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
22834
22835         getdate.y: reject an out-of-range timezone value
22836         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
22837         the range [-24...+24].  When specified with only one or two digits,
22838         * tests/test-getdate.c: Tests for the fix.
22839         * doc/getdate.texi: Document this change.
22840
22841 2008-09-03  Bruno Haible  <bruno@clisp.org>
22842
22843         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
22844
22845 2008-09-02  Simon Josefsson  <simon@josefsson.org>
22846
22847         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
22848         <bruce.korb@gmail.com> with ideas from Ben Pfaff
22849         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
22850         Blake <ebb9@byu.net>.
22851
22852         * tests/test-bitrotate.c: Add more test vectors.
22853
22854 2008-09-02  Eric Blake  <ebb9@byu.net>
22855
22856         vasnprintf-posix: handle large precision via %.*d
22857         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
22858         when handling it ourselves.
22859         * tests/test-vasnprintf-posix.c (test_function): Add test.
22860         * tests/test-snprintf-posix.h (test_function): Likewise.
22861         * tests/test-sprintf-posix.h (test_function): Likewise.
22862         * tests/test-vasprintf-posix.c (test_function): Likewise.
22863         Reported by Alain Guibert.
22864
22865 2008-09-01  Eric Blake  <ebb9@byu.net>
22866
22867         c-stack: make configure-time check more robust
22868         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
22869         successful sigaction call.
22870         Reported by Tom G. Christensen.
22871
22872 2008-09-01  Bruno Haible  <bruno@clisp.org>
22873
22874         New module 'findprog-lgpl'.
22875         * modules/findprog-lgpl: New file.
22876         * lib/findprog-lgpl.c: New file.
22877         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
22878         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
22879         to decide whether to use strdup or xstrdup, concatenated_filename or
22880         xconcatenated_filename.
22881
22882 2008-09-01  Bruno Haible  <bruno@clisp.org>
22883
22884         Split module 'concat-filename' into 'concat-filename' (LGPL) and
22885         'xconcat-filename' (GPL).
22886         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
22887         (License): Change to LGPLv2+.
22888         * modules/xconcat-filename: New file.
22889         * lib/concat-filename.h (concatenated_filename): Change specification.
22890         (xconcatenated_filename): New declaration.
22891         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
22892         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
22893         memory situations.
22894         * lib/xconcat-filename.c: New file.
22895         * NEWS: Mention the change.
22896         * lib/findprog.c: Include concat-filename.h, not filename.h.
22897         (find_in_path): Use xconcatenated_filename instead of
22898         concatenated_filename.
22899         * lib/javacomp.c: Include concat-filename.h, not filename.h.
22900         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
22901         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
22902         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
22903         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
22904         instead of concatenated_filename.
22905         * lib/javaexec.c: Include concat-filename.h, not filename.h.
22906         (execute_java_class): Use xconcatenated_filename instead of
22907         concatenated_filename.
22908         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
22909         * modules/javacomp (Depends-on): Likewise.
22910         * modules/javaexec (Depends-on): Likewise.
22911
22912 2008-09-01  Bruno Haible  <bruno@clisp.org>
22913
22914         Split module 'filename' into 'filename' and 'concat-filename'.
22915         * modules/filename: Keep only lib/filename.h.
22916         (License): Change to LGPLv2+.
22917         * modules/concat-filename: New file, extracted from modules/filename.
22918         * lib/filename.h (concatenated_filename): Remove declaration.
22919         * lib/concat-filename.h: New file, extracted from lib/filename.h.
22920         * lib/concat-filename.c: Include concat-filename.h.
22921         * NEWS: Mention the change.
22922
22923 2008-09-01  Simon Josefsson  <simon@josefsson.org>
22924
22925         * lib/bitrotate.h (rotl8, rotr8): Add.
22926
22927         * modules/bitrotate (configure.ac): Need
22928         AC_REQUIRE([AC_C_INLINE]).
22929         (Description): Mention stdint.h.  Reported by Bruno Haible
22930         <bruno@clisp.org>.
22931
22932         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
22933         Paolo Bonzini <bonzini@gnu.org>.
22934
22935 2008-08-31  Bruno Haible  <bruno@clisp.org>
22936
22937         Assume Solaris specific bi-arch conventions on Solaris systems.
22938         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
22939         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
22940         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
22941         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
22942         like acl_libdirstem.
22943         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
22944         acl_libdirstem.
22945         * NEWS: Mention the change.
22946         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
22947
22948 2008-08-31  Jim Meyering  <meyering@redhat.com>
22949
22950         * lib/strftime.h: Add comments describing the two added arguments.
22951
22952         remove duplicate #include directives
22953         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
22954         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
22955
22956 2008-08-31  Bruno Haible  <bruno@clisp.org>
22957
22958         New module 'sigpipe-die'.
22959         * modules/sigpipe-die: New file.
22960         * lib/sigpipe-die.h: New file.
22961         * lib/sigpipe-die.c: New file.
22962         * MODULES.html.sh (Signal handling): Add sigpipe-die.
22963
22964 2008-08-31  Bruno Haible  <bruno@clisp.org>
22965
22966         Don't override previously installed signal handlers.
22967         * lib/fatal-signal.c (saved_sigactions): New variable.
22968         (uninstall_handlers): Reset the signal to the saved handler, not
22969         to SIG_DFL (except when ignored).
22970         (install_handlers): Save the previous handlers.
22971
22972 2008-08-30  Bruno Haible  <bruno@clisp.org>
22973
22974         * gnulib-tool (func_reset_sigpipe): New function.
22975         (func_get_automake_snippet, func_modules_transitive_closure,
22976         func_import): Invoke it before a join command that reads from stdin,
22977         to avoid "echo: write error: Broken pipe" error messages on stderr.
22978         Reported by Sam Steingold <sds@gnu.org>.
22979
22980 2008-08-30  Bruno Haible  <bruno@clisp.org>
22981
22982         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
22983         Code copied from m4/open.m4.
22984         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
22985         access and the filename ends in a slash. Code copied from lib/open.c.
22986         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
22987         * tests/test-fopen.c (main): Check against bug with trailing slash.
22988
22989 2008-08-29  Bruno Haible  <bruno@clisp.org>
22990
22991         Avoid some "gcc -pedantic" warnings.
22992         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
22993         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
22994         * lib/dirent.in.h: Likewise.
22995         * lib/fcntl.in.h: Likewise.
22996         * lib/float.in.h: Likewise.
22997         * lib/iconv.in.h: Likewise.
22998         * lib/inttypes.in.h: Likewise.
22999         * lib/locale.in.h: Likewise.
23000         * lib/math.in.h: Likewise.
23001         * lib/netinet_in.in.h: Likewise.
23002         * lib/search.in.h: Likewise.
23003         * lib/signal.in.h: Likewise.
23004         * lib/stdarg.in.h: Likewise.
23005         * lib/stdint.in.h: Likewise.
23006         * lib/stdio.in.h: Likewise.
23007         * lib/stdlib.in.h: Likewise.
23008         * lib/string.in.h: Likewise.
23009         * lib/strings.in.h: Likewise.
23010         * lib/sys_select.in.h: Likewise.
23011         * lib/sys_socket.in.h: Likewise.
23012         * lib/sys_stat.in.h: Likewise.
23013         * lib/sys_time.in.h: Likewise.
23014         * lib/sysexits.in.h: Likewise.
23015         * lib/time.in.h: Likewise.
23016         * lib/unistd.in.h: Likewise.
23017         * lib/wchar.in.h: Likewise.
23018         * lib/wctype.in.h: Likewise.
23019         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
23020         * modules/fchdir (Makefile.am): Likewise.
23021         * modules/fcntl (Makefile.am): Likewise.
23022         * modules/float (Makefile.am): Likewise.
23023         * modules/iconv_open (Makefile.am): Likewise.
23024         * modules/inttypes (Makefile.am): Likewise.
23025         * modules/locale (Makefile.am): Likewise.
23026         * modules/math (Makefile.am): Likewise.
23027         * modules/netinet_in (Makefile.am): Likewise.
23028         * modules/search (Makefile.am): Likewise.
23029         * modules/signal (Makefile.am): Likewise.
23030         * modules/stdarg (Makefile.am): Likewise.
23031         * modules/stdint (Makefile.am): Likewise.
23032         * modules/stdio (Makefile.am): Likewise.
23033         * modules/stdlib (Makefile.am): Likewise.
23034         * modules/string (Makefile.am): Likewise.
23035         * modules/strings (Makefile.am): Likewise.
23036         * modules/sys_select (Makefile.am): Likewise.
23037         * modules/sys_socket (Makefile.am): Likewise.
23038         * modules/sys_stat (Makefile.am): Likewise.
23039         * modules/sys_time (Makefile.am): Likewise.
23040         * modules/sysexits (Makefile.am): Likewise.
23041         * modules/time (Makefile.am): Likewise.
23042         * modules/unistd (Makefile.am): Likewise.
23043         * modules/wchar (Makefile.am): Likewise.
23044         * modules/wctype (Makefile.am): Likewise.
23045         Reported by Reuben Thomas <rrt@sc3d.org>.
23046
23047 2008-08-29  Bruno Haible  <bruno@clisp.org>
23048
23049         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
23050         any more.
23051
23052 2008-08-29  Simon Josefsson  <simon@josefsson.org>
23053
23054         * MODULES.html.sh (Misc): Add bitrotate.
23055
23056         * modules/bitrotate: New file.
23057
23058         * lib/bitrotate.h: New file.
23059
23060         * modules/bitrotate-tests: New file.
23061
23062         * tests/test-bitrotate.c: New file.
23063
23064         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
23065         on the bitrotate module.
23066
23067         * lib/arctwo.c: Use new bitrotate module.
23068
23069 2008-08-29  Jim Meyering  <meyering@redhat.com>
23070
23071         bootstrap: merge changes from coreutils
23072         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
23073         of copied files.  Remove a kludge, now that this is fixed.
23074         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
23075         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
23076         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
23077
23078 2008-08-29  Bruno Haible  <bruno@clisp.org>
23079
23080         * MODULES.html.sh: Remove --cvs-urls option.
23081
23082 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
23083
23084         maint.mk: adjust to file name change
23085         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
23086
23087 2008-08-28  Jim Meyering  <meyering@redhat.com>
23088
23089         * modules/getndelim2 (License): Relicense to LGPLv2+.
23090         Approved by Richard Stallman for the version of 1995, and by
23091         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
23092
23093 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
23094
23095         * lib/getdelim.c (flockfile, funlockfile): Make all of them
23096         dummy if one is not available.  Do not touch them if
23097         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
23098         (getc_maybe_unlocked): New.
23099         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
23100
23101 2008-08-26  Eric Blake  <ebb9@byu.net>
23102
23103         doc/INSTALL: resync from autoconf
23104         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
23105         (INSTALL_PRELUDE): Delete; this is done more efficiently by
23106         moving...
23107         * install.texi [!autoconf]: ...here.  Resync from autoconf.
23108         * INSTALL: Regenerate.
23109         * INSTALL.ISO: New file.
23110         * INSTALL.UTF-8: Likewise.
23111
23112 2008-08-26  Jim Meyering  <meyering@redhat.com>
23113
23114         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
23115         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
23116         these definitions conditional, so that they may be overridden, too.
23117
23118 2008-08-26  Bruno Haible  <bruno@clisp.org>
23119
23120         Generate INSTALL file variants with prettier quotes.
23121         * doc/Makefile (INSTALL_PRELUDE): New macro.
23122         (INSTALL): Use it.
23123         (INSTALL.ISO, INSTALL.UTF-8): New rules.
23124
23125 2008-08-26  Bruno Haible  <bruno@clisp.org>
23126
23127         Run makeinfo in an English locale.
23128         * doc/Makefile (MAKEINFO): New variable.
23129
23130 2008-08-26  Bruno Haible  <bruno@clisp.org>
23131
23132         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
23133         Suggested by Eric Blake.
23134
23135 2008-08-25  Bruno Haible  <bruno@clisp.org>
23136
23137         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
23138
23139 2008-08-25  Eric Blake  <ebb9@byu.net>
23140
23141         c-stack: test that stack overflow can be caught
23142         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
23143         that platform allows handling stack overflow; at least OS/2 EMX
23144         has sigaltstack, but crashes before transferring control to
23145         handler on stack overflow.
23146         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
23147         check for HAVE_STACK_OVERFLOW_HANDLING.
23148         Reported by Elbert Pol.
23149
23150 2008-08-25  Bruno Haible  <bruno@clisp.org>
23151
23152         * doc/posix-functions/strftime.texi: Fix description of strftime
23153         module.
23154
23155 2008-08-24  Bruno Haible  <bruno@clisp.org>
23156
23157         * tests/uniwidth/test-uc_width2.c: New file.
23158         * tests/uniwidth/test-uc_width2.sh: New file.
23159         * modules/uniwidth/width-tests (Files): Add the new files.
23160         (TESTS): Add uniwidth/test-uc_width2.sh.
23161         (TESTS_ENVIRONMENT): New variable.
23162         (check_PROGRAMS): Add test-uc_width2.
23163         (test_uc_width2_SOURCES): New variable.
23164
23165         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
23166         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
23167         not 0x00AB.
23168         Reported by Alexander V. Lukyanov <lav@netis.ru>.
23169
23170 2008-08-22  Eric Blake  <ebb9@byu.net>
23171
23172         test-lock, test-tls: mention why a test is skipped
23173         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
23174         skipped.
23175         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
23176
23177         count-one-bits: relax license
23178         * modules/count-one-bits (License): Relicense to LGPLv2+.
23179         Suggested by Ludovic Courtès, approved by Ben Pfaff.
23180
23181 2008-08-22  Andreas Schwab  <schwab@suse.de>
23182
23183         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
23184         Remove spurious space in assignment.
23185
23186 2008-08-21  Simon Josefsson  <simon@josefsson.org>
23187
23188         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
23189         Paul Eggert <eggert@CS.UCLA.EDU>.
23190
23191 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
23192
23193         * modules/gettext: Add m4/threadlib.m4.
23194
23195 2008-08-19  Eric Blake  <ebb9@byu.net>
23196
23197         test-c-stack: fix compilation failure on FreeBSD 5.0
23198         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
23199         headers before <sys/resource.h>.
23200         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
23201         the bug.
23202         Reported by Nelson H. F. Beebe.
23203
23204         strverscmp: migrate from "strverscmp.h" to <string.h>
23205         * modules/string (Makefile.am): Add new hooks.
23206         * modules/strverscmp (Files): Remove strverscmp.h.
23207         (Depends-on): Add string.
23208         (configure.ac): Add indicator.
23209         (Include): Mention new header.
23210         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
23211         defaults.
23212         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
23213         results.
23214         * lib/strverscmp.h: Delete.
23215         * lib/string.in.h (strverscmp): Provide declaration, when needed.
23216         * tests/test-strverscmp.c (includes): Adjust client.
23217         * lib/check-version.c (includes): Likewise.
23218         * NEWS: Document the change.
23219
23220         strverscmp: add unit test
23221         * modules/strverscmp-tests: New file.
23222         * tests/test-strverscmp.c: Likewise.
23223
23224 2008-08-19  Simon Josefsson  <simon@josefsson.org>
23225
23226         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
23227         regarding Windows crypto stuff, from Mono.
23228
23229 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
23230
23231         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
23232         if present, for intel RND.  Return error on failures.
23233
23234 2008-08-18  Ben Pfaff  <blp@gnu.org>
23235
23236         gitlog-to-changelog: give better diagnostic for failed pipe-open
23237         * build-aux/gitlog-to-changelog: Improve error message: suggest
23238         that the version of Git may be too old.
23239
23240 2008-08-18  Simon Josefsson  <simon@josefsson.org>
23241
23242         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
23243         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
23244
23245 2008-08-18  Bruno Haible  <bruno@clisp.org>
23246
23247         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
23248         pthread_in_use().
23249
23250 2008-08-18  Bruno Haible  <bruno@clisp.org>
23251
23252         * lib/glthread/threadlib.c: Include <pthread.h>.
23253
23254 2008-08-18  Bruno Haible  <bruno@clisp.org>
23255
23256         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
23257         glthread_recursive_lock_* macros.
23258         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
23259         Fix syntax error.
23260
23261 2008-08-18  Bruno Haible  <bruno@clisp.org>
23262
23263         * lib/glthread/thread.c: Avoid forcing a context switch right after
23264         thread creation.
23265
23266 2008-08-17  Bruno Haible  <bruno@clisp.org>
23267
23268         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
23269         * lib/glthread/thread.h: Provide Win32 specific implementation.
23270         * modules/thread (Files): Add lib/glthread/thread.c.
23271         (Depends-on): Add lock.
23272         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
23273
23274 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23275
23276         New module 'yield'.
23277         * modules/yield: New file.
23278         * lib/glthread/yield.h: New file.
23279         * m4/yield.m4: New file.
23280         * MODULES.html.sh (Multithreading): Add yield.
23281
23282 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23283
23284         New module 'thread'.
23285         * modules/thread: New file.
23286         * lib/glthread/thread.h: New file.
23287         * m4/thread.m4: New file.
23288         * MODULES.html.sh (Multithreading): Add thread.
23289
23290 2008-08-17  Bruno Haible  <bruno@clisp.org>
23291
23292         * lib/glthread/lock.h: Include <stdlib.h> always.
23293         * lib/glthread/tls.h: Likewise.
23294         * lib/glthread/cond.h: Likewise.
23295
23296 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23297
23298         New module 'cond'.
23299         * modules/cond: New file.
23300         * lib/glthread/cond.h: New file.
23301         * lib/glthread/cond.c: New file.
23302         * m4/cond.m4: New file.
23303         * MODULES.html.sh (Multithreading): Add cond.
23304
23305 2008-08-16  Eric Blake  <ebb9@byu.net>
23306
23307         c-stack: fix regression on Irix 5.3 from 2008-06-21
23308         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
23309         sa_sigaction...
23310         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
23311         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
23312         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
23313         * modules/signal (Makefile.am): Use the value.
23314         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
23315         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
23316         * doc/posix-headers/signal.texi (signal.h): Document this
23317         portability issue.
23318         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
23319         Reported by Tom G. Christensen.
23320
23321 2008-08-17  Bruno Haible  <bruno@clisp.org>
23322
23323         New module 'threadlib'.
23324         * modules/threadlib: New file.
23325         * lib/glthread/threadlib.c: New file, extracted from
23326         lib/glthread/lock.c.
23327         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
23328         functions.
23329         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
23330         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
23331         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
23332         macros.
23333         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
23334         (gl_DISABLE_THREADS): Remove macro.
23335         * modules/lock (Files): Remove build-aux/config.rpath.
23336         (Depends-on): Remove havelib. Add threadlib.
23337         (configure.ac-early): Remove section.
23338         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
23339         * modules/tls (Depends-on): Remove lock. Add threadlib.
23340         (Link): New section, copied from threadlib.
23341         * MODULES.html.sh (Multithreading): Add threadlib.
23342
23343 2008-08-14  Bruno Haible  <bruno@clisp.org>
23344
23345         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
23346         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
23347         glthread_rwlock_unlock, glthread_rwlock_destroy,
23348         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
23349         glthread_recursive_lock_destroy): Define as macros always.
23350         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
23351         glthread_lock_lock.
23352         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
23353         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
23354         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
23355         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
23356         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
23357         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
23358         (glthread_recursive_lock_lock_func): Renamed from
23359         glthread_recursive_lock_lock.
23360         (glthread_recursive_lock_unlock_func): Renamed from
23361         glthread_recursive_lock_unlock.
23362         (glthread_recursive_lock_destroy_func): Renamed from
23363         glthread_recursive_lock_destroy.
23364
23365 2008-08-14  Bruno Haible  <bruno@clisp.org>
23366
23367         * lib/glthread/lock.h: Renamed from lib/lock.h.
23368         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
23369         * lib/glthread/tls.h: Renamed from lib/tls.h.
23370         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
23371         * lib/fstrcmp.c: Update includes.
23372         * lib/strsignal.c: Update includes.
23373         * modules/lock (Files, Makefile.am): Update.
23374         (Include): Change to "glthread/lock.h".
23375         * modules/tls (Files, Makefile.am): Update.
23376         (Include): Change to "glthread/tls.h".
23377         * tests/test-lock.c: Update includes.
23378         * tests/test-tls.c: Update includes.
23379         * NEWS: Mention the renamed header files.
23380
23381 2008-08-11  Jim Meyering  <meyering@redhat.com>
23382
23383         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
23384
23385 2008-08-11  Eric Blake  <ebb9@byu.net>
23386
23387         test-c-stack: avoid C99-ism
23388         * tests/test-c-stack.c (main): Fix whitespace, move declaration
23389         before statement.
23390         Reported by Alain Guibert.
23391
23392 2008-08-10  Jim Meyering  <meyering@redhat.com>
23393
23394         ensure that return value of uinttostr et al are not ignored
23395         * lib/inttostr.h (__GNUC_PREREQ): Define.
23396         (__attribute_warn_unused_result__): Define.
23397         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
23398
23399 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
23400
23401         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
23402         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
23403
23404 2008-08-07  Jim Meyering  <meyering@redhat.com>
23405
23406         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
23407
23408         * modules/mkstemp (License): Relicense under LGPLv2+.
23409         * modules/tempname (License): Likewise.
23410
23411 2008-08-06  Bruno Haible  <bruno@clisp.org>
23412
23413         * lib/poll.c (poll): Further micro-optimization.
23414
23415 2008-08-06  Jim Meyering  <meyering@redhat.com>
23416
23417         inet_pton.c: use locale-independent tolower
23418         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
23419         (inet_pton6): Use c_tolower rather than tolower.
23420         * modules/inet_pton (Depends-on): Add c-ctype.
23421
23422 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
23423
23424         * lib/poll.c (poll): Avoid division when timeout is 0, cache
23425         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
23426
23427 2008-08-06  Jim Meyering  <meyering@redhat.com>
23428
23429         * modules/inet_pton (License): Relicense under LGPLv2+.
23430
23431 2008-08-03  Bruno Haible  <bruno@clisp.org>
23432
23433         Additional non-aborting API for lock and tls.
23434         * lib/lock.h: Include <errno.h>.
23435         (glthread_lock_init): New macro/function.
23436         (gl_lock_init): Define as wrapper around glthread_lock_init.
23437         (glthread_lock_lock): New macro/function.
23438         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
23439         (glthread_lock_unlock): New macro/function.
23440         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
23441         (glthread_lock_destroy): New macro/function.
23442         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
23443         (glthread_rwlock_init): New macro/function.
23444         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
23445         (glthread_rwlock_rdlock): New macro/function.
23446         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
23447         (glthread_rwlock_wrlock): New macro/function.
23448         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
23449         (glthread_rwlock_unlock): New macro/function.
23450         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
23451         (glthread_rwlock_destroy): New macro/function.
23452         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
23453         (glthread_recursive_lock_init): New macro/function.
23454         (gl_recursive_lock_init): Define as wrapper around
23455         glthread_recursive_lock_init.
23456         (glthread_recursive_lock_lock): New macro/function.
23457         (gl_recursive_lock_lock): Define as wrapper around
23458         glthread_recursive_lock_lock.
23459         (glthread_recursive_lock_unlock): New macro/function.
23460         (gl_recursive_lock_unlock): Define as wrapper around
23461         glthread_recursive_lock_unlock.
23462         (glthread_recursive_lock_destroy): New macro/function.
23463         (gl_recursive_lock_destroy): Define as wrapper around
23464         glthread_recursive_lock_destroy.
23465         (glthread_once): New macro/function.
23466         (gl_once): Define as wrapper around glthread_once.
23467         Update function declarations.
23468         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
23469         glthread_rwlock_init. Return error code.
23470         (glthread_rwlock_rdlock_multithreaded): Renamed from
23471         glthread_rwlock_rdlock. Return error code.
23472         (glthread_rwlock_wrlock_multithreaded): Renamed from
23473         glthread_rwlock_wrlock. Return error code.
23474         (glthread_rwlock_unlock_multithreaded): Renamed from
23475         glthread_rwlock_unlock. Return error code.
23476         (glthread_rwlock_destroy_multithreaded): Renamed from
23477         glthread_rwlock_destroy. Return error code.
23478         (glthread_recursive_lock_init_multithreaded): Renamed from
23479         glthread_recursive_lock_init. Return error code.
23480         (glthread_recursive_lock_lock_multithreaded): Renamed from
23481         glthread_recursive_lock_lock. Return error code.
23482         (glthread_recursive_lock_unlock_multithreaded): Renamed from
23483         glthread_recursive_lock_unlock. Return error code.
23484         (glthread_recursive_lock_destroy_multithreaded): Renamed from
23485         glthread_recursive_lock_destroy. Return error code.
23486         (glthread_once_call): Make static.
23487         (glthread_once_multithreaded): Renamed from glthread_once.
23488         * lib/tls.h: Include <errno.h>.
23489         (glthread_tls_key_init): New macro/function.
23490         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
23491         (glthread_tls_set): New macro/function.
23492         (gl_tls_set): Define as wrapper around glthread_tls_set.
23493         (glthread_tls_key_destroy): New macro/function.
23494         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
23495         Update function declarations.
23496         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
23497         glthread_tls_get.
23498         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
23499
23500 2008-08-04  Eric Blake  <ebb9@byu.net>
23501
23502         gnumakefile: use space, not TAB, outside of targets
23503         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
23504
23505 2008-08-02  Jim Meyering  <meyering@redhat.com>
23506
23507         getdate.y: avoid locale-dependent date parsing failure
23508         In Turkish locales, getdate would fail to recognize keywords
23509         containing a lowercase "i".  The solution is not to rely on
23510         locale-sensitive case-conversion.
23511         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
23512         (lookup_word): Use c_toupper in place of toupper.
23513         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
23514         Reported by Vefa Bicakci <bicave@superonline.com> in
23515         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
23516         * modules/getdate (Depends-on): Add c-ctype.
23517
23518 2008-08-02  Bruno Haible  <bruno@clisp.org>
23519
23520         * gnulib-tool (func_import): When updating or creating a .gitignore
23521         file, prepend each added line with a slash, and ignore leading slashes
23522         from the existing lines.
23523         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
23524
23525 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23526
23527         Portability fix for GNU make 3.79.1.
23528         * top/GNUmakefile: Avoid 'else COND', which older GNU make
23529         versions do not understand.
23530
23531 2008-08-01  Bruno Haible  <bruno@clisp.org>
23532
23533         Work around bug of HP-UX 10.20 cc with -0.0 literal.
23534         * tests/test-isnanf.h (zero): New variable.
23535         (main): Avoid literal -0.0f.
23536         * tests/test-isnand.h (zero): New variable.
23537         (main): Avoid literal -0.0.
23538         * tests/test-isnanl.h (zero): New variable.
23539         (main): Avoid literal -0.0L.
23540         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
23541         (test_float, test_double, test_long_double): Avoid literals -0.0f,
23542         -0.0, -0.0L.
23543         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
23544         (test_signbitd): Avoid literal -0.0.
23545         (test_signbitl): Avoid literal -0.0L.
23546         * tests/test-ceilf1.c (zero): New variable.
23547         (main): Avoid literal -0.0f.
23548         * tests/test-ceill.c (zero): New variable.
23549         (main): Avoid literal -0.0L.
23550         * tests/test-floorf1.c (zero): New variable.
23551         (main): Avoid literal -0.0f.
23552         * tests/test-floorl.c (zero): New variable.
23553         (main): Avoid literal -0.0L.
23554         * tests/test-roundf1.c (zero): New variable.
23555         (main): Avoid literal -0.0f.
23556         * tests/test-round1.c (zero): New variable.
23557         (main): Avoid literal -0.0.
23558         * tests/test-roundl.c (zero): New variable.
23559         (main): Avoid literal -0.0L.
23560         * tests/test-truncf1.c (zero): New variable.
23561         (main): Avoid literal -0.0f.
23562         * tests/test-trunc1.c (zero): New variable.
23563         (main): Avoid literal -0.0.
23564         * tests/test-truncl.c (zero): New variable.
23565         (main): Avoid literal -0.0L.
23566         * tests/test-frexp.c (zero): New variable.
23567         (main): Avoid literal -0.0.
23568         * tests/test-frexpl.c (zero): New variable.
23569         (main): Avoid literal -0.0L.
23570         * tests/test-ldexpl.c (zero): New variable.
23571         (main): Avoid literal -0.0L.
23572         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
23573         (zerod, zerol): New variables.
23574         (test_function): Avoid literals -0.0, -0.0L.
23575         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
23576         (zerod, zerol): New variables.
23577         (test_function): Avoid literals -0.0, -0.0L.
23578         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
23579         (zerod, zerol): New variables.
23580         (test_function): Avoid literals -0.0, -0.0L.
23581         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
23582         (zerod, zerol): New variables.
23583         (test_function): Avoid literals -0.0, -0.0L.
23584         * tests/test-strtod.c (zero): New variable.
23585         (main): Avoid literal -0.0.
23586         Reported by Jonathan C. Patschke <jp@centtech.com>.
23587
23588 2008-07-31  Jim Meyering  <meyering@redhat.com>
23589
23590         sha256.h: correct definition of SHA224_DIGEST_SIZE
23591         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
23592         Reported by Paulie Pena IV <paulie4@gmail.com>.
23593         Define as 224 / 8, rather than as a literal.
23594         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
23595         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
23596         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
23597
23598 2008-07-31  Bruno Haible  <bruno@clisp.org>
23599
23600         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
23601         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
23602         Reported by Jonathan Patschke <jp@centtech.com>.
23603
23604 2008-07-31  Bruno Haible  <bruno@clisp.org>
23605
23606         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
23607         Reported by Paolo Bonzini <bonzini@gnu.org>.
23608
23609 2008-07-30  Eric Blake  <ebb9@byu.net>
23610
23611         test-strtod: allow compilation without -lm
23612         * tests/test-strtod.c (main): Avoid link dependence on fabs.
23613         Reported by Dennis Clarke <blastwave@gmail.com>.
23614
23615 2008-07-28  Jim Meyering  <meyering@redhat.com>
23616
23617         bootstrap: work also when there are no .po files in po/
23618         * build-aux/bootstrap (update_po_files): Complete the change
23619         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
23620
23621 2008-07-27  Jim Meyering  <meyering@redhat.com>
23622
23623         * users.txt: Add zile.
23624
23625 2008-07-26  Ben Pfaff  <blp@gnu.org>
23626
23627         Add missing dependencies on new m4/exponent[fdl].m4 files.
23628         * modules/isnanf-nolibm: Add m4/exponentf.m4.
23629         * modules/isnand-nolibm: Add m4/exponentd.m4.
23630         * modules/isnanl-nolibm: Add m4/exponentl.m4.
23631         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
23632         m4/isnan[fdl].m4, because the macros actually used moved.
23633         Reported by Jim Meyering.
23634
23635 2008-07-14  Ben Pfaff  <blp@gnu.org>
23636
23637         Add isinf module.
23638         * lib/isinf.c: New file.
23639         * lib/math.in.h: Define isinf macro if we have decided to replace
23640         it.
23641         * m4/isinf.m4: New file.
23642         * m4/math_h.m4: Initialize and substitute variables for isinf
23643         module.
23644         * modules/isinf: New file.
23645         * modules/isinf-tests: New file.
23646         * modules/math: Add substitutions for new module.
23647         * tests/test-isinf.c: New file.
23648         * doc/posix-functions/isinf.texi: Mention new module.
23649         * MODULES.html.sh: Mention new module.
23650
23651 2008-07-14  Ben Pfaff  <blp@gnu.org>
23652
23653         Factor out some macros for use by additional modules.
23654         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
23655         exponentf.m4.
23656         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
23657         exponentd.m4.
23658         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
23659         file exponentl.m4.
23660         * m4/exponentf.m4: New file.
23661         * m4/exponentd.m4: New file.
23662         * m4/exponentl.m4: New file.
23663         * modules/isnanf: Use new file m4/exponentf.m4.
23664         * modules/isnand: Use new file m4/exponentd.m4.
23665         * modules/isnanl: Use new file m4/exponentl.m4.
23666
23667 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
23668
23669         mktime.c: normalize tp->tm_isdst value to -1/0/1.
23670         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
23671         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
23672         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
23673
23674         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
23675         readlink on platforms without PATH_MAX.
23676
23677 2008-07-21  Eric Blake  <ebb9@byu.net>
23678
23679         Warn, not fail, on stale version.
23680         * top/GNUmakefile (_curr-ver): Tone down previous patch.
23681
23682         Don't allow installation with stale devel version number.
23683         * top/GNUmakefile (_is-install-target): New macro.
23684         (_curr-ver): Forbid installation with stale version number.
23685
23686 2008-07-20  Bruno Haible  <bruno@clisp.org>
23687
23688         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
23689         TESTS_ENVIRONMENT.
23690         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
23691
23692 2008-07-20  Bruno Haible  <bruno@clisp.org>
23693
23694         * lib/c-stack.h (c_stack_action): Add documentation.
23695         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
23696
23697 2008-07-20  Bruno Haible  <bruno@clisp.org>
23698
23699         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
23700         * modules/readlink (License): Likewise.
23701
23702 2008-07-17  Eric Blake  <ebb9@byu.net>
23703
23704         * modules/c-stack (Link): Fix typo.
23705
23706         Make c-stack use libsigsegv, when available.
23707         * modules/c-stack (Depends-on): Add libsigsegv.
23708         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
23709         needed.
23710         * lib/c-stack.c (SIGSTKSZ): Define fallback.
23711         (segv_handler, overflow_handler, c_stack_action)
23712         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
23713         implementation when libsigsegv is available, but only when using
23714         the library is necessary.
23715         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
23716         comment, explaining why XSI check fails on Linux.
23717         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
23718         * tests/test-c-stack2.sh: Tweak skip message.
23719         * NEWS: Document new link-time requirements.
23720
23721 2008-07-16  Eric Blake  <ebb9@byu.net>
23722
23723         c-stack: Expose false positives when not using libsigsegv.
23724         * modules/c-stack-tests (Files): Expand test.
23725         * tests/test-c-stack.c (main): Add means to conditionally trigger
23726         non-overflow SIGSEGV.
23727         * tests/test-c-stack2.sh: New file.
23728
23729 2008-07-14  Bruno Haible  <bruno@clisp.org>
23730
23731         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
23732         Reported by Eric Blake.
23733
23734 2008-07-14  Sam Steingold  <sds@gnu.org>
23735             Bruno Haible  <bruno@clisp.org>
23736
23737         New module libsigsegv.
23738         * modules/libsigsegv: New file.
23739         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
23740         modifications.
23741         * MODULES.html.sh (Signal handling): New section.
23742
23743 2008-07-14  Bruno Haible  <bruno@clisp.org>
23744
23745         * modules/unictype/ctype-* (Description): Add the word "function".
23746         Improves the resulting doc in MODULES.html.
23747
23748 2008-07-12  Ben Pfaff  <blp@gnu.org>
23749
23750         Add longlong module.
23751         * modules/longlong: New file.
23752
23753 2008-07-12  Bruno Haible  <bruno@clisp.org>
23754
23755         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
23756         to empty.
23757
23758 2008-07-10  Ben Pfaff  <blp@gnu.org>
23759
23760         Add isnan module.
23761         * doc/posix-functions/isnan.texi: Mention new module.
23762         * lib/math.in.h: Define isnan macro if we have decided to replace
23763         it.
23764         * m4/isnan.m4: New file.
23765         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
23766         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
23767         also.
23768         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
23769         redundancy.
23770         * m4/math_h.m4: Initialize and substitute variables for isnan
23771         module.
23772         * modules/isnan: New file.
23773         * modules/isnan-tests: New file.
23774         * modules/math: Add substitutions for new module.
23775         * tests/test-isnan.c: New file.
23776         * MODULES.html.sh: Mention new module.
23777
23778 2008-07-10  Ben Pfaff  <blp@gnu.org>
23779
23780         Add isnanf module.
23781         * lib/isnanf.m4: New file.
23782         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
23783         (gl_HAVE_ISNANF_IN_LIBM): New macro.
23784         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
23785         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
23786         * modules/isnanf: New file.
23787         * modules/isnanf-tests: New file.
23788         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
23789         files.
23790         * tests/test-isnanf-nolibm.c: factored most of its contents into
23791         new file tests/test-isnanf.h.
23792         * tests/test-isnanf.h: New file.
23793         * tests/test-isnanf.c: New file.
23794         * MODULES.html.sh: Mention new module.
23795         * doc/glibc-functions/isnanf.texi: Mention new module.
23796
23797 2008-07-10  Ben Pfaff  <blp@gnu.org>
23798
23799         Add isnand module.
23800         * lib/isnand.h: New file.
23801         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
23802         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
23803         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
23804         functionality also.
23805         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
23806         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
23807         (gl_HAVE_ISNAND_IN_LIBM): New macro.
23808         * modules/isnand: New file.
23809         * modules/isnand-tests: New file.
23810         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
23811         files.
23812         * tests/test-isnand-nolibm.c: factored most of its contents into
23813         new file tests/test-isnand.h.
23814         * tests/test-isnand.h: New file.
23815         * tests/test-isnand.c: New file.
23816         * MODULES.html.sh: Mention new module.
23817
23818 2008-07-10  Ben Pfaff  <blp@gnu.org>
23819
23820         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
23821         * lib/isnand.h: Rename lib/isnand-nolibm.h.
23822         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
23823         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
23824         * modules/isnanf-nolibm: Update references to renamed files.
23825         * modules/isnand-nolibm: Likewise.
23826         * modules/isnanf-nolibm-tests: Likewise.
23827         * modules/isnand-nolibm-tests: Likewise.
23828         * lib/frexp.c: Likewise.
23829         * lib/isfinite.c: Likewise.
23830         * lib/signbitd.c: Likewise.
23831         * lib/signbitf.c: Likewise.
23832         * lib/vasnprintf.c: Likewise.
23833         * tests/test-ceilf1.c: Likewise.
23834         * tests/test-ceilf2.c: Likewise.
23835         * tests/test-floorf1.c: Likewise.
23836         * tests/test-floorf2.c: Likewise.
23837         * tests/test-frexp.c: Likewise.
23838         * tests/test-round1.c: Likewise.
23839         * tests/test-round2.c: Likewise.
23840         * tests/test-roundf1.c: Likewise.
23841         * tests/test-strtod.c: Likewise.
23842         * tests/test-trunc1.c: Likewise.
23843         * tests/test-trunc2.c: Likewise.
23844         * tests/test-truncf1.c: Likewise.
23845         * tests/test-truncf2.c: Likewise.
23846         * NEWS: Mention the renamed header files.
23847
23848 2008-07-11  Jim Meyering  <meyering@redhat.com>
23849
23850         vc-list-files: make the last-resort awk code more portable
23851         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
23852         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
23853         does not support it.
23854
23855 2008-07-10  Eric Blake  <ebb9@byu.net>
23856
23857         Work with tar's bootstrap.
23858         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
23859         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
23860         an m4 comment.
23861
23862 2008-07-09  Jim Meyering  <meyering@redhat.com>
23863
23864         posix-shell.m4: fix typo that made this test malfunction
23865         * m4/posix-shell.m4: Remove capitalization in variable name.
23866
23867 2008-07-08  Bruno Haible  <bruno@clisp.org>
23868
23869         * m4/onceonly.m4: Update comments.
23870         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23871
23872 2008-07-04  Jim Meyering  <meyering@redhat.com>
23873
23874         * users.txt: Add vc-dwim.
23875         (bison, coreutils): Use the gitweb URL.
23876
23877 2008-07-03  Jim Meyering  <meyering@redhat.com>
23878
23879         * users.txt: Add libffcall.  From Sam Steingold.
23880
23881 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
23882
23883         getdate.y: do not ignore TZ with relative day, month or year offset
23884         * lib/getdate.y (get_date): Move the tz-handling block to follow the
23885         relative-date-handling, since otherwise, the latter would clobber the
23886         sole output (an updated Start value) of the tz-handling block.
23887         * tests/test-getdate.c: Tests for the fix
23888
23889 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23890
23891         Recognize 'foo_LIBRARIES += libgnu.a'.
23892         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
23893         makefile snippet has already specified an installation location,
23894         also using '+='.
23895
23896 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
23897
23898         getdate.y: factor out common actions
23899         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
23900         Use them in place of open-coded actions.
23901
23902 2008-07-01  Simon Josefsson  <simon@josefsson.org>
23903
23904         Add self-test for getdate module.
23905         * modules/getdate-tests: New file.
23906         * tests/test-getdate.c: New file.
23907
23908 2008-06-29  Bruno Haible  <bruno@clisp.org>
23909
23910         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
23911         .gitignore.
23912         Reported by Sylvain Beucler <beuc@beuc.net>.
23913
23914 2008-06-29  Bruno Haible  <bruno@clisp.org>
23915
23916         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
23917         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
23918
23919 2008-06-29  Bruno Haible  <bruno@clisp.org>
23920
23921         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
23922         EXTRA_DIST.
23923         Reported by Sylvain Beucler <beuc@beuc.net>.
23924
23925 2008-06-26  Jim Meyering  <meyering@redhat.com>
23926
23927         make several modules depend on the "open" module
23928         This provides slightly increased consistency when opening-for-write
23929         the name of a non-directory spelled with a trailing slash.
23930         * modules/chdir-safer: Likewise.
23931         * modules/chown: Likewise.
23932         * modules/clean-temp: Likewise.
23933         * modules/copy-file: Likewise.
23934         * modules/fchdir: Likewise.
23935         * modules/fcntl-safer: Likewise.
23936         * modules/pipe: Likewise.
23937         * modules/utime: Likewise.
23938         Prompted by Eric Blake and Bruno Haible.
23939
23940 2008-06-24  Andreas Schwab  <schwab@suse.de>
23941
23942         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
23943         literals can be used as initializers for global variables.
23944
23945 2008-06-23  Eric Blake  <ebb9@byu.net>
23946
23947         Make gnulib-cache.m4 easier to diff.
23948         * gnulib-tool (func_import): Allow newlines when reading cached
23949         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
23950
23951 2008-06-23  Bruno Haible  <bruno@clisp.org>
23952
23953         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
23954         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
23955         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
23956         m4/signalblocking.m4.
23957         (gl_PREREQ_SIGACTION): Don't invoke it.
23958         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
23959         gl_PREREQ_SIG_HANDLER_H.
23960         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
23961         Don't check for sigaction here.
23962
23963 2008-06-23  Bruno Haible  <bruno@clisp.org>
23964
23965         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
23966         (install_handlers): Don't set the SA_RESETHAND flag.
23967
23968 2008-06-23  Bruno Haible  <bruno@clisp.org>
23969
23970         * m4/sigaction.m4: Comment fixes.
23971         * lib/signal.in.h: Likewise.
23972
23973 2008-06-23  Eric Blake  <ebb9@byu.net>
23974
23975         Fix typo.
23976         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
23977
23978         Avoid SA_ namespace.
23979         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
23980         Reported by Ralf Wildenhues.
23981
23982         Avoid test failure due to SA_RESTORER.
23983         * tests/test-sigaction.c (SA_MASK): New macro.
23984         (main): Avoid failing due to extension flags being set.
23985         Reported by Jim Meyering.
23986
23987         Revert use of sig-handler.h in sigprocmask.c.
23988         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
23989         it requires the existence of struct sigaction.
23990         * lib/sigprocmask.c (handler_t): Restore typedef.
23991         (rpl_signal, old_handlers): Use local type.
23992
23993 2008-06-22  Bruno Haible  <bruno@clisp.org>
23994
23995         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
23996         conditionally.
23997         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23998
23999 2008-06-22  Bruno Haible  <bruno@clisp.org>
24000
24001         * doc/posix-functions/siginterrupt.texi: Move note.
24002
24003         * lib/signal.in.h (SA_RESTART): New macro.
24004         * lib/sigaction.c: Update comment.
24005
24006         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
24007
24008         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
24009         (gl_PREREQ_SIGPROCMASK): Invoke it.
24010         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
24011
24012         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
24013
24014         * lib/sigprocmask.c: Update a comment.
24015
24016 2008-06-21  Eric Blake  <ebb9@byu.net>
24017
24018         Use sigaction module rather than signal().
24019         * modules/c-stack (Depends-on): Add sigaction.
24020         * modules/fatal-signal (Depends-on): Likewise.
24021         * modules/nanosleep (Depends-on): Likewise.
24022         * modules/sigprocmask (Files): Add sig-handler.h.
24023         * modules/sigaction (Files): Likewise.
24024         * lib/sig-handler.h (get_handler): New file, suggested by Paul
24025         Eggert.
24026         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
24027         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
24028         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
24029         (init_fatal_signals): Likewise.
24030         * lib/nanosleep.c (rpl_nanosleep): Likewise.
24031         (siginterrupt): Delete fallback.
24032         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
24033         instead.
24034         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
24035         siginterrupt.
24036
24037         New module sigaction, for mingw.
24038         * modules/sigaction: New module...
24039         * modules/sigaction-tests: ...and its test.
24040         * m4/sigaction.m4: New file.
24041         * lib/sigaction.c: Likewise.
24042         * tests/test-sigaction.c: Likewise.
24043         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
24044         * modules/signal (Makefile.am): Likewise.
24045         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
24046         needed.
24047         * doc/posix-headers/signal.texi (signal.h): Mention provided
24048         types.
24049         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
24050         that sigaction is preferable.
24051         * doc/posix-functions/sigaction.texi (sigaction): Mention new
24052         module.
24053         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
24054         sigaction.
24055
24056         Improve robustness of sigprocmask by overriding signal.
24057         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
24058         is in use.
24059         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
24060         (SIGKILL, SIGSTOP): Provide fallbacks.
24061         (rpl_signal): Implement.
24062         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
24063         signal can be called inside handlers.
24064
24065         Fix nanosleep module on mingw.
24066         * modules/nanosleep (Depends-on): Add sys_select.
24067         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
24068
24069         Fix licensing of sigprocmask.
24070         * modules/raise (License): Relicense as LGPL.
24071
24072 2008-06-21  Bruno Haible  <bruno@clisp.org>
24073
24074         * lib/propername.c (proper_name_utf8): Don't use the transliterated
24075         result if it contains question marks.
24076         Reported by Michael Geng <linux@michaelgeng.de>.
24077
24078 2008-06-19  Bruno Haible  <bruno@clisp.org>
24079
24080         Fix CVS-ism.
24081         * doc/gnulib.texi: Include updated-stamp.texi.
24082         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
24083         (updated-stamp.texi): New rule.
24084         (gnulib.info): Depend on it.
24085         * doc/.gitignore: Add updated-stamp.texi.
24086         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
24087
24088 2008-06-19  Bruno Haible  <bruno@clisp.org>
24089
24090         * doc/Makefile (gnulib.info): Update and simplify dependencies.
24091         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
24092
24093 2008-06-19  Eric Blake  <ebb9@byu.net>
24094
24095         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
24096         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
24097         Reported by Stepan Kasal.
24098
24099 2008-06-18  Bruno Haible  <bruno@clisp.org>
24100
24101         * lib/fatal-signal.c (init_fatal_signals): Add comment.
24102         Reported by Eric Blake.
24103
24104 2008-06-18  Eric Blake  <ebb9@byu.net>
24105
24106         Work around cygwin 1.5.25 strsignal bug.
24107         * tests/test-strsignal.c: Allow for const char *.
24108         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
24109
24110 2008-06-18  Simon Josefsson  <simon@josefsson.org>
24111
24112         * users.txt: Update URL to article and add author/date
24113         information.
24114
24115 2008-06-17  Bruno Haible  <bruno@clisp.org>
24116
24117         New macro gl_DISABLE_THREADS.
24118         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
24119         if the user did not pass --enable-threads or --disable-threads option.
24120         (gl_DISABLE_THREADS): New macro.
24121         Reported by Eric Blake <ebb9@byu.net>.
24122
24123 2008-06-17  Bruno Haible  <bruno@clisp.org>
24124
24125         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
24126         when the macro ignores it.
24127         Based on a patch by Eric Blake <ebb9@byu.net>.
24128
24129 2008-06-17  Bruno Haible  <bruno@clisp.org>
24130
24131         * modules/tls (License): Change to LGPLv2+.
24132         Reported by Eric Blake.
24133
24134 2008-06-17  Eric Blake  <ebb9@byu.net>
24135
24136         Simplify c-stack prerequisites.
24137         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
24138         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
24139         no longer requires <ucontext.h> to exist.  Optimize setrlimit
24140         check.
24141         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
24142         <sys/resource.h>.
24143
24144         Move c-stack test into testsuite.
24145         * modules/c-stack-tests: New file.
24146         * lib/c-stack.c [DEBUG]: Move test program...
24147         * tests/test-c-stack.c: ...into this new file.  Skip rather than
24148         fail test if sigaltstack is lacking.
24149         * tests/test-c-stack.sh: New driver file.
24150
24151 2008-06-16  Eric Blake  <ebb9@byu.net>
24152
24153         Use raise module consistently.
24154         * modules/fatal-signal (Depends-on): Add raise.
24155         * modules/sigprocmask (Depends-on): Likewise.
24156         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
24157         * lib/sigprocmask.c (sigprocmask): Likewise.
24158         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
24159         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
24160
24161         Fix compliance bug in sigpending.
24162         * lib/sigprocmask.c (sigpending): Return pending array via
24163         parameter, not return value.
24164
24165 2008-06-14  Eric Blake  <ebb9@byu.net>
24166
24167         Improve obstack-printf test code.
24168         * tests/test-obstack-printf.c (test_function): Fix comment, and
24169         simplify usage of obstack_* in macros.  Add a test for coverage.
24170         Reported by Bruno Haible.
24171
24172 2008-06-14  Bruno Haible  <bruno@clisp.org>
24173
24174         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
24175         array size as a constant, not as a const variable.
24176         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
24177         AC_USE_SYSTEM_EXTENSIONS.
24178         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
24179         Test whether the obstack_printf function actually exists.
24180         * modules/obstack-printf (Depends-on): Add extensions.
24181         (Include): Remove obstack.h.
24182         * modules/obstack-printf-posix (Depends-on): Add extensions.
24183         (Include): Remove obstack.h.
24184
24185 2008-06-13  Eric Blake  <ebb9@byu.net>
24186
24187         Add obstack-printf and obstack-printf-posix modules.
24188         * modules/obstack-printf: New file.
24189         * modules/obstack-printf-posix: Likewise.
24190         * MODULES.html.sh (Misc): Mention them.
24191         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
24192         Likewise.
24193         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
24194         Likewise.
24195         * modules/stdio (Makefile.am): Accomodate new modules.
24196         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
24197         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
24198         Declare.
24199         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
24200         functions.
24201         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
24202         (gl_REPLACE_OBSTACK_PRINTF): New macros
24203         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
24204         * tests/test-obstack-printf.c: New file.
24205         * modules/obstack-printf-tests: Likewise.
24206         * modules/obstack-printf-posix-tests: Likewise.
24207
24208 2008-06-11  Bruno Haible  <bruno@clisp.org>
24209
24210         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
24211         * lib/open.c: Include errno.h.
24212         (open): Fail when attempting to write to a file that has a trailing
24213         slash.
24214         * tests/test-open.c (main): Test against trailing slash bug.
24215         * doc/posix-functions/open.texi: Mention the trailing slash bug.
24216
24217 2008-06-10  Bruno Haible  <bruno@clisp.org>
24218
24219         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
24220         for $? to work inside the trap command, with various /bin/sh-s.
24221         * tests/test-vc-list-files-cvs.sh: Likewise.
24222
24223 2008-06-10  Bruno Haible  <bruno@clisp.org>
24224
24225         * lib/acl-internal.h: Don't include gettext.h here.
24226         * lib/set-mode-acl.c: Include gettext.h here.
24227         * lib/copy-acl.c: Likewise.
24228
24229 2008-06-10  Bruno Haible  <bruno@clisp.org>
24230
24231         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
24232         * lib/wait-process.c (wait_subprocess): Likewise.
24233         * lib/execute.h (execute): Add termsigp argument.
24234         * lib/execute.c (execute): Likewise.
24235         * lib/csharpcomp.c (compile_csharp_using_pnet,
24236         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
24237         * lib/csharpexec.c (execute_csharp_using_pnet,
24238         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
24239         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
24240         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
24241         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
24242         is_jikes_present): Update.
24243         * lib/javaexec.c (execute_java_class): Update.
24244         * lib/javaversion.c (execute_and_read_line): Update.
24245         * NEWS: Document the changes.
24246         Reported by Eric Blake.
24247
24248 2008-06-10  Eric Blake  <ebb9@byu.net>
24249
24250         Add missing include.
24251         * tests/test-strstr.c (includes): Add <signal.h>.
24252         * tests/test-strcasestr.c (includes): Likewise.
24253         * tests/test-memmem.c (includes): Likewise.
24254
24255 2008-06-10  Bruno Haible  <bruno@clisp.org>
24256
24257         * lib/wait-process.c (wait_subprocess): Add an assertion.
24258
24259 2008-06-10  Bruno Haible  <bruno@clisp.org>
24260
24261         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
24262
24263 2008-06-10  Bruno Haible  <bruno@clisp.org>
24264
24265         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
24266         using alarm().
24267         * tests/test-strcasestr.c (main): Likewise.
24268         * tests/test-strstr.c (main): Likewise.
24269
24270 2008-06-09  Bruno Haible  <bruno@clisp.org>
24271
24272         Work around the Solaris 10 ACE ACLs ABI change.
24273         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
24274         declare if ACL_NO_TRIVIAL is present.
24275         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
24276         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
24277         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
24278         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
24279         define if ACL_NO_TRIVIAL is present.
24280         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
24281         and use the current ABI.
24282         (file_has_acl): Use same #if condition as elsewhere.
24283         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
24284         in use, and use the current ABI.
24285         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
24286         Reported by Jim Meyering.
24287
24288 2008-06-09  Eric Blake  <ebb9@byu.net>
24289
24290         Work around environments that (stupidly) ignore SIGALRM.
24291         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
24292         before using alarm().
24293         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24294         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24295         Reported by Ian Beckwith <ianb@erislabs.net>.
24296
24297         Produce autobuild blurb earlier in log.
24298         * modules/autobuild (configure.ac-early): Move AB_INIT here.
24299
24300 2008-06-09  Jim Meyering  <meyering@redhat.com>
24301         and OndÅ™ej Vašík  <ovasik@redhat.com>
24302
24303         utimens.c: correct kernel bug work-around
24304         OndÅ™ej Vašík found that the invalid return value of 280 indicates
24305         failure, not success, and the kernel bug we're trying to work
24306         around affects not just the utimensat call, but also the fallback
24307         futimens call.
24308         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
24309         not success.
24310         [HAVE_FUTIMENS]: Use the same work-around, here.
24311
24312 2008-06-09  Jim Meyering  <meyering@redhat.com>
24313
24314         add more guards around definition of ACE_-related code
24315         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
24316         ALLOW and ACE_OWNER are also defined.
24317
24318 2008-06-08  Bruno Haible  <bruno@clisp.org>
24319
24320         * lib/acl-internal.h: Add me as co-author.
24321         * lib/file-has-acl.c: Likewise.
24322         * lib/set-mode-acl.c: Likewise.
24323         * lib/copy-acl.c: Likewise.
24324
24325 2008-06-08  Bruno Haible  <bruno@clisp.org>
24326
24327         Add support for AIX ACLs.
24328         * lib/acl-internal.h (acl_nontrivial): New declaration.
24329         * lib/file-has-acl.c (acl_nontrivial): New function.
24330         (file_has_acl): Add implementation using AIX 4 ACL API.
24331         * lib/set-mode-acl.c (qset_acl): Likewise.
24332         * lib/copy-acl.c (qcopy_acl): Likewise.
24333
24334 2008-06-08  Bruno Haible  <bruno@clisp.org>
24335
24336         Add support for HP-UX ACLs.
24337         * lib/acl-internal.h (acl_nontrivial): New declaration.
24338         * lib/file-has-acl.c (acl_nontrivial): New function.
24339         (file_has_acl): Add implementation using HP-UX 11 ACL API.
24340         * lib/set-mode-acl.c (qset_acl): Likewise.
24341         * lib/copy-acl.c (qcopy_acl): Likewise.
24342
24343 2008-06-08  Bruno Haible  <bruno@clisp.org>
24344
24345         Add support for Cygwin ACLs.
24346         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
24347         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
24348         the chmod_or_fchmod call.
24349         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
24350
24351 2008-06-08  Bruno Haible  <bruno@clisp.org>
24352
24353         Fix bug with setuid modes in Solaris 10+ code.
24354         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
24355         succeeded, when the mode contains some special bits.
24356
24357 2008-06-08  Bruno Haible  <bruno@clisp.org>
24358
24359         Add support for Solaris 7..10 ACLs.
24360         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
24361         declarations.
24362         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
24363         functions.
24364         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
24365         * lib/set-mode-acl.c (qset_acl): Likewise.
24366         * lib/copy-acl.c (qcopy_acl): Likewise.
24367
24368 2008-06-08  Bruno Haible  <bruno@clisp.org>
24369
24370         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
24371         declaration.
24372         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
24373         (acl_access_nontrivial): Remove MacOS X case.
24374         (file_has_acl): Use acl_extended_nontrivial.
24375         * lib/copy-acl.c (qcopy_acl): Likewise.
24376
24377 2008-06-08  Bruno Haible  <bruno@clisp.org>
24378
24379         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
24380
24381 2008-06-08  Jim Meyering  <meyering@redhat.com>
24382
24383         * modules/acl (Maintainer): Add Bruno Haible.
24384
24385 2008-06-07  Bruno Haible  <bruno@clisp.org>
24386
24387         Improve support for Tru64 ACLs.
24388         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
24389         ACL on OSF/1.
24390
24391 2008-06-07  Bruno Haible  <bruno@clisp.org>
24392
24393         Add support for MacOS X ACLs.
24394         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
24395         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
24396         * lib/set-mode-acl.c (qset_acl): Likewise.
24397         * lib/copy-acl.c (qcopy_acl): Likewise.
24398
24399 2008-06-07  Bruno Haible  <bruno@clisp.org>
24400
24401         Fix memory leak introduced on 2008-05-22.
24402         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
24403         use.
24404
24405 2008-06-07  Bruno Haible  <bruno@clisp.org>
24406
24407         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
24408         to construct an empty ACL.
24409
24410 2008-06-07  Bruno Haible  <bruno@clisp.org>
24411
24412         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
24413         precisely.
24414         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
24415
24416 2008-06-07  Bruno Haible  <bruno@clisp.org>
24417
24418         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
24419         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
24420
24421 2008-06-07  Bruno Haible  <bruno@clisp.org>
24422
24423         * doc/posix-functions/_setjmp.texi: Explain the use of this function
24424         regardless of POSIX.
24425         * doc/posix-functions/_longjmp.texi: Likewise.
24426         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
24427         SystemV platform in this case.
24428
24429 2008-06-06  Eric Blake  <ebb9@byu.net>
24430
24431         Document abort() bugs.
24432         * doc/posix-functions/abort.texi (abort): Mention anomalies.
24433
24434         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
24435         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
24436         sigsetjmp.
24437         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
24438         siglongjmp, but only as a macro.
24439         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
24440         is obsolete.
24441         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
24442
24443         Tweak documentation to cover cygwin argz bugs.
24444         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
24445         argz bug fix; no code change needed since no cygwin releases
24446         occurred between the last fix and the bug being tested.
24447         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
24448         module and recently fixed cygwin bugs.
24449         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
24450         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
24451         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
24452         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
24453         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
24454         Likewise.
24455         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
24456         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
24457         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
24458         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
24459         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
24460         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
24461         Likewise.
24462
24463         Avoid gcc warning on cygwin.
24464         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
24465         !ACL_NO_TRIVIAL]: Avoid unused variable.
24466
24467 2008-06-05  Eric Blake  <ebb9@byu.net>
24468
24469         Be tolerant of UNKNOWN version in gnulib-tool test dir.
24470         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
24471         git-version-gen fails to come up with a version.
24472         Reported by Simon Josefsson.
24473
24474 2008-06-05  Jim Meyering  <meyering@redhat.com>
24475             Paul Eggert  <eggert@cs.ucla.edu>
24476
24477         utimens.c: work around a probable Linux kernel bug
24478         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
24479         appears to be a kernel bug that causes utimensat to return 280
24480         instead of 0, indicating success.
24481
24482 2008-06-04  Bruno Haible  <bruno@clisp.org>
24483
24484         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
24485         2008-06-01 commit.
24486
24487 2008-06-04  Bruno Haible  <bruno@clisp.org>
24488
24489         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
24490         * lib/file-has-acl.c (acl_access_nontrivial): New function.
24491         (file_has_acl): Use it. Save errno afterwards.
24492         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
24493
24494 2008-06-03  Bruno Haible  <bruno@clisp.org>
24495
24496         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
24497         draft code. Simplify #ifs.
24498         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
24499         Put Solaris code after POSIX-draft code. Fix comments regarding
24500         Solaris 10, HP-UX. Mention Cygwin.
24501         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
24502
24503 2008-06-03  Eric Blake  <ebb9@byu.net>
24504
24505         Provide fallback for older kernels.
24506         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
24507         Provide runtime fallback if kernel lacks support.
24508         Reported by Mike Frysinger.
24509
24510 2008-06-02  Bruno Haible  <bruno@clisp.org>
24511
24512         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
24513         it exists.
24514
24515 2008-06-02  Bruno Haible  <bruno@clisp.org>
24516
24517         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
24518         * lib/copy-acl.c (qcopy_acl): Update comment.
24519
24520 2008-06-02  Bruno Haible  <bruno@clisp.org>
24521
24522         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
24523         like ACL APIs.
24524
24525 2008-06-02  Bruno Haible  <bruno@clisp.org>
24526
24527         * tests/test-file-has-acl.sh: Use different code for Cygwin.
24528         * tests/test-set-mode-acl.sh: Likewise.
24529         * tests/test-copy-acl.sh: Likewise.
24530         * tests/test-copy-file.sh: Likewise.
24531
24532 2008-06-02  Bruno Haible  <bruno@clisp.org>
24533
24534         * tests/test-file-has-acl.sh: Remove unused code.
24535
24536 2008-06-01  Bruno Haible  <bruno@clisp.org>
24537
24538         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
24539         (copy_acl): Just a wrapper around qcopy_acl that emits the error
24540         messages.
24541         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
24542
24543 2008-06-01  Bruno Haible  <bruno@clisp.org>
24544
24545         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
24546         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
24547         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
24548         APIs.
24549         * modules/acl-tests (configure.ac): Remove tests now contained in
24550         m4/acl.m4.
24551
24552 2008-06-02  Jim Meyering  <meyering@redhat.com>
24553
24554         announce-gen: use a better key-server host name
24555         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
24556         it may be more consistently reliable.  Suggested by Werner Koch
24557         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
24558
24559 2008-06-01  Bruno Haible  <bruno@clisp.org>
24560
24561         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
24562         Reported by Voroskoi Andras <voroskoi@gmail.com>.
24563
24564 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
24565
24566         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
24567
24568 2008-06-01  Bruno Haible  <bruno@clisp.org>
24569
24570         New ACL tests.
24571         * tests/test-file-has-acl.sh: New file.
24572         * tests/test-file-has-acl.c: New file.
24573         * tests/test-set-mode-acl.sh: New file.
24574         * tests/test-set-mode-acl.c: New file.
24575         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
24576         * tests/test-copy-acl.c: New file.
24577         * modules/acl-tests: New file, based on modules/copy-file-tests.
24578         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
24579         (Depends-on): Add acl-tests.
24580         (configure.ac): Remove checks.
24581         (Makefile.am): Don't create test-sameacls program here any more.
24582
24583 2008-06-01  Bruno Haible  <bruno@clisp.org>
24584
24585         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
24586         * tests/test-sameacls.c: Include progname.h.
24587         (main): Invoke set_program_name. Portability fixes for MacOS X,
24588         Solaris, HP-UX.
24589
24590 2008-06-01  Bruno Haible  <bruno@clisp.org>
24591
24592         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
24593         function.
24594         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
24595
24596 2008-06-01  Bruno Haible  <bruno@clisp.org>
24597
24598         * modules/rpmatch (Depends-on): Add strdup.
24599
24600 2008-06-01  Bruno Haible  <bruno@clisp.org>
24601
24602         * lib/pipe.c: Include unistd-safer.h.
24603         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
24604         * modules/pipe (Depends-on): Add unistd-safer.
24605
24606 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24607
24608         * modules/autobuild (configure.ac): Call AB_INIT.
24609
24610 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24611
24612         * tests/test-getaddrinfo.c: Don't print debug messages by default.
24613         Suggested by Bruno Haible <bruno@clisp.org>.
24614
24615 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24616
24617         * tests/test-base64.c: Cast size_t to unsigned long when invoking
24618         printf.  Use %lu instead of %d.  Reported by Bruno Haible
24619         <bruno@clisp.org>.
24620
24621 2008-05-29  Eric Blake  <ebb9@byu.net>
24622
24623         Prefer new POSIX 200x interfaces over futimesat.
24624         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
24625         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
24626         when available.
24627         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
24628
24629 2008-05-28  Bruno Haible  <bruno@clisp.org>
24630
24631         * modules/stpcpy (License): Change to LGPLv2+.
24632         Requested by David Lutterkort <dlutter@redhat.com>.
24633
24634 2008-05-27  Bruno Haible  <bruno@clisp.org>
24635
24636         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
24637         current mingw.
24638         Reported by Jose E. Marchesi <jemarch@gnu.org>.
24639
24640 2008-05-27  Bruno Haible  <bruno@clisp.org>
24641
24642         * modules/iconv_open (Link): New section, from module 'iconv'.
24643         * modules/striconv (Link): Likewise.
24644         * modules/striconveh (Link): Likewise.
24645         * modules/xstriconv (Link): Likewise.
24646         * modules/unicodeio (Link): Likewise.
24647         * modules/propername (Link): Likewise.
24648         Reported by Jim Meyering.
24649
24650 2008-05-26  Jim Meyering  <meyering@redhat.com>
24651
24652         sha256: do not artificially restrict buffer length to be < 2^32
24653         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
24654         uint32_t to size_t.
24655         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
24656         to match.
24657
24658         avoid unaligned access errors, e.g., on sparc
24659         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
24660         direct access through a possibly-unaligned uint64* pointer.
24661         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
24662         direct access through a possibly-unaligned uint32* pointer.
24663         Prompted by this patch from Tom "spot" Callaway:
24664         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
24665
24666         sha512.c: fix typo in comment
24667         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
24668
24669 2008-05-25  Bruno Haible  <bruno@clisp.org>
24670
24671         * lib/set-mode-acl.c: Renamed from lib/acl.c.
24672         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
24673         (Makefile.am): Update lib_SOURCES.
24674
24675 2008-05-25  Bruno Haible  <bruno@clisp.org>
24676
24677         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
24678
24679 2008-05-25  Jim Meyering  <meyering@redhat.com>
24680
24681         useless-if-before-free: freed expr may have white-space differences
24682         * build-aux/useless-if-before-free: Recognize cases in which the
24683         freed expression differs from the tested one in embedded white
24684         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
24685         $1 was used, so we can't make any regexp shy.  Improved tests now
24686         detect this.
24687
24688         useless-if-before-free: accept white space in the expression.
24689         * build-aux/useless-if-before-free: For now, any white space
24690         in the expression must be identical in the free argument.
24691
24692         useless-if-before-free: efficiency tweak
24693         * build-aux/useless-if-before-free: Make the expression-matching
24694         regexp "shy".
24695         Make the *outer* regexp shy, not the expr-matching one.
24696
24697         update code-in-comment to accept cast of free arg
24698         * build-aux/useless-if-before-free: Update regexp.
24699
24700 2008-05-25  Bruno Haible  <bruno@clisp.org>
24701
24702         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
24703         * modules/copy-file-tests (Files, Makefile.am): Update.
24704         * tests/test-copy-file.c (func_test_copy): Update.
24705
24706 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
24707
24708         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
24709
24710 2008-05-23  Bruno Haible  <bruno@clisp.org>
24711
24712         Improve support for ACLs on OSF/1.
24713         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
24714         Remove fallback for unknown flavors of ACLs.
24715
24716 2008-05-22  Bruno Haible  <bruno@clisp.org>
24717
24718         Add support for ACLs on OSF/1.
24719         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
24720         replacements.
24721         (acl_free_text): New macro fallback.
24722         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
24723         acl_free.
24724         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
24725         acl_free_text function. Require AC_C_INLINE.
24726
24727 2008-05-22  Bruno Haible  <bruno@clisp.org>
24728
24729         Make copy_acl work on MacOS X 10.5.
24730         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
24731         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
24732         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
24733         If MODE_INSIDE_ACL, don't assume that every system has the same text
24734         representation for ACLs as FreeBSD.
24735         * lib/copy-acl.c (copy_acl): Add support for platforms with
24736         !MODE_INSIDE_ACL.
24737         * lib/file-has-acl.c (file_has_acl): Likewise.
24738         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
24739         FreeBSD, MacOS X, or IRIX, respectively.
24740
24741 2008-05-22  Bruno Haible  <bruno@clisp.org>
24742
24743         * lib/acl.h: Don't include <sys/acl.h>.
24744         (GETACLCNT): Move fallback to lib/acl-internal.h.
24745         * lib/acl-internal.h: Include <sys/acl.h> here.
24746         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
24747
24748 2008-05-22  Bruno Haible  <bruno@clisp.org>
24749
24750         Split off copy_acl function to separate file.
24751         * lib/copy-acl.c: New file, extracted from lib/acl.c.
24752         * lib/acl.c (copy_acl): Moved function to separate file.
24753         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
24754         * modules/acl (Files): Add lib/copy-acl.c.
24755         (Makefiles.am): Augment lib_SOURCES.
24756
24757 2008-05-22  Bruno Haible  <bruno@clisp.org>
24758
24759         * modules/copy-file-tests: New file.
24760         * tests/test-copy-file.sh: New file.
24761         * tests/test-copy-file.c: New file.
24762         * tests/test-copy-file-sameacls.c: New file.
24763
24764 2008-05-22  Eric Blake  <ebb9@byu.net>
24765
24766         Avoid gcc warning.
24767         * tests/test-memcmp.c (main): Pass NULL indirectly.
24768
24769 2008-05-21  Bruno Haible  <bruno@clisp.org>
24770
24771         Add reference doc about ACLs.
24772         * doc/acl-resources.txt: New file.
24773         * doc/acl-cygwin.txt: New file.
24774
24775 2008-05-21  Bruno Haible  <bruno@clisp.org>
24776
24777         Avoid one more warning from gcc.
24778         * lib/vasnprintf.c (IF_LINT): Update comments.
24779         (VASNPRINTF): Use it also for the 'prefix' array initializer.
24780
24781 2008-05-21  Jim Meyering  <meyering@redhat.com>
24782
24783         avoid a warning from gcc
24784         * lib/vasnprintf.c (IF_LINT): Define.
24785         (scale10_round_decimal_long_double):
24786         Use it to avoid a "may be used uninitialized" warning.
24787         (scale10_round_decimal_double): Likewise.
24788
24789 2008-05-21  Simon Josefsson  <simon@josefsson.org>
24790
24791         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
24792         declared.
24793
24794 2008-05-20  Bruno Haible  <bruno@clisp.org>
24795
24796         * tests/test-memcmp.c (main): Test also the sign of the result. Test
24797         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
24798
24799 2008-05-20  Simon Josefsson  <simon@josefsson.org>
24800
24801         * modules/memcmp-tests: New file.
24802         * tests/test-memcmp.c: New file.
24803
24804 2008-05-19  Bruno Haible  <bruno@clisp.org>
24805
24806         * modules/propername (Notice, configure.ac): Put quoted "..." into
24807         --keyword option.
24808         * lib/propername.h: Update comments accordingly.
24809         Reported by Eric Blake.
24810
24811 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
24812
24813         * modules/getpass-gnu (Depends-on): Add fseeko.
24814
24815 2008-05-19  Simon Josefsson  <simon@josefsson.org>
24816
24817         * modules/base64-tests: New file.
24818
24819 2008-05-19  Bo Borgerson <gigabo@gmail.com>
24820
24821         * lib/base64.c (base64_decode_ctx): If a decode context structure
24822         was passed in use it to ignore newlines.  If a context structure
24823         was _not_ passed in, continue to treat newlines as garbage (this
24824         is the historical behavior).  Formerly base64_decode.
24825         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
24826         takes a decode context structure.
24827         * lib/base64.h (base64_decode): Macro for four-argument calls.
24828         (base64_decode_alloc): Likewise.
24829         * lib/base64.c (base64_decode_ctx): If a decode context structure
24830         was passed in use it to ignore newlines.  If a context structure
24831         was _not_ passed in, continue to treat newlines as garbage (this
24832         is the historical behavior).  Formerly base64_decode.
24833         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
24834         takes a decode context structure.
24835         * lib/base64.h (base64_decode): Macro for four-argument calls.
24836         (base64_decode_alloc): Likewise.
24837
24838 2008-05-19  Jim Meyering  <meyering@redhat.com>
24839
24840         avoid a warning from gcc
24841         * lib/trim.c (IF_LINT): Define.
24842         (trim2): Use it to avoid a "may be used uninitialized" warning.
24843
24844         Fix doc typo.
24845         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
24846
24847 2008-05-19  Bruno Haible  <bruno@clisp.org>
24848
24849         * doc/glibc-functions/getpass.texi: Document limits of other
24850         implementations.
24851
24852 2008-05-19  Simon Josefsson  <simon@josefsson.org>
24853             Bruno Haible <bruno@clisp.org>
24854
24855         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
24856
24857 2008-05-18  Bruno Haible  <bruno@clisp.org>
24858
24859         * modules/propername: New file, from GNU gettext.
24860         * lib/propername.h: New file, from GNU gettext.
24861         * lib/propername.c: New file, from GNU gettext.
24862         * MODULES.html.sh (Internationalization functions): Add propername.
24863
24864 2008-05-16  Jim Meyering  <meyering@redhat.com>
24865             Bruno Haible  <bruno@clisp.org>
24866
24867         Avoid some warnings from "gcc -Wshadow".
24868         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
24869
24870 2008-05-15  Eric Blake  <ebb9@byu.net>
24871
24872         Extend previous patch to cygwin 1.7.0.
24873         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
24874         fast implementation in cygwin >= 1.7.0.
24875         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24876         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24877
24878 2008-05-15  Bruno Haible  <bruno@clisp.org>
24879
24880         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
24881         implementation in glibc >= 2.9.
24882         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24883         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24884
24885 2008-05-15  Bruno Haible  <bruno@clisp.org>
24886
24887         * MODULES.html.sh (Internationalization functions): Remove linebreak.
24888         (Unicode string functions): Add unilbrk/*.
24889         Reported by Karl Berry.
24890
24891 2008-05-15  Eric Blake  <ebb9@byu.net>
24892
24893         Fix violation of <stdbool.h> replacement in regex.
24894         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
24895         * lib/regexec.c (re_search_internal): Likewise.
24896         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
24897
24898 2008-05-15  Jim Meyering  <meyering@redhat.com>
24899
24900         avoid distracting test output when git or cvs is not found
24901         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
24902         * tests/test-vc-list-files-git.sh: Likewise.
24903
24904 2008-05-15  Eric Blake  <ebb9@byu.net>
24905
24906         Glibc finally accepted the memmem speedup code, bugzilla #5514.
24907         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
24908         glibc version.
24909         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
24910         * doc/posix-functions/strstr.texi (strstr): Likewise.
24911         * lib/str-two-way.h (MAX): Sychronize with glibc.
24912
24913 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
24914
24915         * lib/regcomp.c (optimize_utf8): Add a note on why we test
24916         opr.ctx_type.
24917         (calc_first): Initialize constraint field.
24918         (duplicate_node_closure): Use it instead of special casing ANCHORS.
24919         Fix grammar.
24920         (duplicate_node): Merge constraint field for all node types.
24921         (calc_eclosure_iter): Look at constraint field for all node types.
24922         * lib/regex_internal.c (create_cd_newstate): Don't look at
24923         opr.ctx_type.
24924
24925 2008-05-14  Bruno Haible  <bruno@clisp.org>
24926
24927         Help GCC to do better code generation.
24928         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
24929         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24930         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
24931         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
24932         Declare with attribute 'malloc' if supported.
24933
24934 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
24935
24936         use "echo STR|wc -c" rather than unportable "expr length STR"
24937         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
24938         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
24939
24940 2008-05-14  Jim Meyering  <meyering@redhat.com>
24941
24942         use dd ibs=$n count=1 ... rather than less-portable head -c$n
24943         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
24944         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
24945         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
24946         via Collin Lasse.
24947
24948 2008-05-14  Eric Blake  <ebb9@byu.net>
24949
24950         Avoid quadratic growth in gl_LIBSOURCES.
24951         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
24952         Suggested by Bruno Haible.
24953
24954         Test xmemdup0.
24955         * modules/xmemdup0-tests: New file.
24956         * tests/test-xmemdup0.c: Likewise.
24957
24958 2008-05-13  Eric Blake  <ebb9@byu.net>
24959
24960         Split xmemdup0 into its own module.
24961         * modules/xmemdup0: New file.
24962         * lib/xmemdup0.h: Likewise.
24963         * lib/xmemdup0.c: Likewise.
24964         * MODULES.html.sh (Memory management functions): Add xmemdup0.
24965         * lib/xalloc.h (xmemdup0): Remove.
24966         * lib/xmalloc.c (xmemdup0): Likewise.
24967
24968 2008-05-13  Eric Blake  <ebb9@byu.net>
24969             Bruno Haible  <bruno@clisp.org>
24970
24971         Reduce number of forks required during autoconf.
24972         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
24973         and gl_LIBSOURCES_DIR.
24974         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
24975         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
24976         m4_syscmd per file.
24977         <m4_foreach_w>: Move...
24978         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
24979
24980 2008-05-13  Eric Blake  <ebb9@byu.net>
24981
24982         * gnulib-tool: Fix various comment typos.
24983
24984 2008-05-12  Bruno Haible  <bruno@clisp.org>
24985
24986         Tailor the linebreaking algorithm.
24987         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
24988
24989 2008-05-12  Bruno Haible  <bruno@clisp.org>
24990
24991         Update to Unicode 5.0.0.
24992         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
24993         LBP_JV, LBP_JT. Redistribute values.
24994         (unilbrk_table): Change size.
24995         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
24996         Unicode TR#14 rev. 22.
24997         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
24998         LBP_JV, LBP_JT. Redistribute values.
24999         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
25000         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
25001         Update.
25002         * lib/unilbrk/lbrkprop1.h: Regenerated.
25003         * lib/unilbrk/lbrkprop2.h: Regenerated.
25004         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
25005         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
25006         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
25007         Likewise.
25008         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
25009         Likewise.
25010         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
25011         result.
25012         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
25013         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
25014         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
25015         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
25016         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
25017         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
25018
25019 2008-05-11  Bruno Haible  <bruno@clisp.org>
25020
25021         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
25022
25023 2008-05-11  Bruno Haible  <bruno@clisp.org>
25024
25025         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
25026         * modules/unilbrk/gen-lbrk: New file.
25027
25028 2008-05-11  Bruno Haible  <bruno@clisp.org>
25029
25030         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
25031         * m4/sha512.m4 (gl_SHA512): Likewise.
25032
25033 2008-05-11  Jim Meyering  <meyering@redhat.com>
25034
25035         New modules: crypto/sha256, crypto/sha512 (from coreutils)
25036         * modules/crypto/sha256: New file.
25037         * modules/crypto/sha512: Likewise.
25038         * lib/sha256.c: Likewise.
25039         * lib/sha256.h: Likewise.
25040         * lib/sha512.c: Likewise.
25041         * lib/sha512.h: Likewise.
25042         * lib/u64.h: Likewise.
25043         * m4/sha256.m4: Likewise.
25044         * m4/sha512.m4: Likewise.
25045         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
25046
25047 2008-05-10  Bruno Haible  <bruno@clisp.org>
25048
25049         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
25050         (Input/Output <stdio.h>): Add xprintf.
25051         (Signal handling <signal.h>): Add strsignal.
25052         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
25053         (Core language properties): Add func.
25054         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
25055         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
25056         strings.
25057         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
25058         (Input/output): New section.
25059         (File system functions): Add openat-die, stat-macros.
25060         (Networking functions): Add sockets.
25061         (Unicode string functions): Add unictype/*.
25062         (Support for building libraries and executables): Add gperf.
25063         (Support for building documentation): Add agpl-3.0.
25064         (Misc): Add nocrash.
25065
25066 2008-05-10  Bruno Haible  <bruno@clisp.org>
25067
25068         * modules/unictype/gen-ctype: New file.
25069
25070 2008-05-10  Jim Meyering  <meyering@redhat.com>
25071
25072         Make chdir-safer.c more efficient on a system with no symlinks.
25073         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
25074         also if ELOOP is zero.  Suggested by Bruno Haible.
25075
25076         Make chdir-safer.c slightly safer.
25077         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
25078         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
25079
25080         Avoid compile failure on systems without ELOOP (like mingw).
25081         * lib/chdir-safer.c (ELOOP): Define if not already defined.
25082         Reported by Bruno Haible.
25083
25084 2008-05-10  Bruno Haible  <bruno@clisp.org>
25085
25086         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
25087         (is_utf8_encoding): Use a case-insensitive comparison.
25088         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
25089         streq.
25090
25091 2008-05-10  Bruno Haible  <bruno@clisp.org>
25092
25093         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
25094         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
25095         * lib/unilbrk/ulc-common.h (iconv_string_length,
25096         iconv_string_keeping_offsets): Remove declarations.
25097         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
25098         Don't include <iconv.h>, streq.h, xsize.h.
25099         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
25100         conversion.
25101         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
25102         <iconv.h>, streq.h, xsize.h.
25103         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
25104         conversion.
25105         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
25106         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
25107         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
25108         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
25109
25110 2008-05-10  Bruno Haible  <bruno@clisp.org>
25111
25112         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
25113         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
25114
25115         * modules/unilbrk/u32-width-linebreaks-tests: New file.
25116         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
25117
25118         * modules/unilbrk/u16-width-linebreaks-tests: New file.
25119         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
25120
25121         * modules/unilbrk/u8-width-linebreaks-tests: New file.
25122         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
25123
25124         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
25125         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
25126
25127         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
25128         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
25129
25130         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
25131         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
25132
25133         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
25134         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
25135
25136 2008-05-10  Bruno Haible  <bruno@clisp.org>
25137
25138         Split up 'linebreak' module.
25139         * lib/unilbrk.h: New file, based on lib/linebreak.h.
25140         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
25141         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
25142         modifications.
25143         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
25144         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
25145         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
25146         lib/linebreak.c.
25147         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
25148         lib/linebreak.c.
25149         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
25150         lib/linebreak.c.
25151         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
25152         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
25153         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
25154         lib/linebreak.c.
25155         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
25156         lib/linebreak.c.
25157         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
25158         lib/linebreak.c.
25159         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
25160         lib/linebreak.c.
25161         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
25162         lib/linebreak.c.
25163         * modules/unilbrk/base: New file.
25164         * modules/unilbrk/tables: New file.
25165         * modules/unilbrk/u8-possible-linebreaks: New file.
25166         * modules/unilbrk/u16-possible-linebreaks: New file.
25167         * modules/unilbrk/u32-possible-linebreaks: New file.
25168         * modules/unilbrk/ulc-common: New file.
25169         * modules/unilbrk/ulc-possible-linebreaks: New file.
25170         * modules/unilbrk/u8-width-linebreaks: New file.
25171         * modules/unilbrk/u16-width-linebreaks: New file.
25172         * modules/unilbrk/u32-width-linebreaks: New file.
25173         * modules/unilbrk/ulc-width-linebreaks: New file.
25174         * lib/linebreak.h: Remove file.
25175         * lib/linebreak.c: Remove file.
25176         * m4/linebreak.m4: Remove file.
25177         * modules/linebreak: Remove file.
25178         * NEWS: Mention the changes.
25179
25180 2008-05-09  Eric Blake  <ebb9@byu.net>
25181
25182         Add xmemdup0.
25183         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
25184         implementation.
25185         * lib/xmalloc.c (xmemdup0): New C implementation.
25186
25187 2008-05-08  Bruno Haible  <bruno@clisp.org>
25188
25189         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
25190
25191 2008-05-07  Eric Blake  <ebb9@byu.net>
25192
25193         Support cross-compilation of <wctype.h>.
25194         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
25195         AC_CACHE_CHECK.
25196
25197 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
25198
25199         * build-aux/vc-list-files: Add support for bzr.
25200
25201 2008-05-03  Jim Meyering  <meyering@redhat.com>
25202
25203         avoid failed assertion with tight malloc
25204         * tests/test-getndelim2.c: Correct an off-by-one assertion.
25205
25206 2008-05-03  Simon Josefsson  <simon@josefsson.org>
25207
25208         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
25209         are needed from arpa/inet.h.
25210         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
25211         Reported by Bruno Haible.
25212
25213 2008-05-02  Jim Meyering  <meyering@redhat.com>
25214
25215         avoid compilation error on FreeBSD 6
25216         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
25217
25218 2008-05-01  Jim Meyering  <meyering@redhat.com>
25219
25220         useless-if-before-free: correct --help's exit status description
25221         * build-aux/useless-if-before-free (usage): Like grep, exit 0
25222         for one or more matches, etc.  Reported by Bruno Haible.
25223
25224         vc-list-files: make the stand-alone gnulib test work
25225         * modules/vc-list-files-tests (configure.ac):
25226         Define and AC_SUBST abs_aux_dir.
25227         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
25228         $(abs_top_srcdir) to each script and having each of them
25229         duplicate the work of setting PATH, set PATH here, using
25230         the new variable, abs_aux_dir instead.
25231         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
25232         * tests/test-vc-list-files-git.sh: Likewise.
25233         Reported by Bruno Haible.
25234
25235 2008-05-01  Bruno Haible  <bruno@clisp.org>
25236
25237         * lib/getndelim2.c (getndelim2): Fix newsize computation during
25238         reallocation. Rename 'done' to 'found_delimiter'.
25239
25240 2008-05-01  Jim Meyering  <meyering@redhat.com>
25241
25242         vc-list-files: accommodate /bin/sh like the one from Solaris 10
25243         * build-aux/vc-list-files: Use `...`, not $(...).
25244
25245 2008-04-30  Jim Meyering  <meyering@redhat.com>
25246
25247         add tests for vc-list-files
25248         * modules/vc-list-files-tests: New module.
25249         * tests/test-vc-list-files-cvs.sh: New file.
25250         * tests/test-vc-list-files-git.sh: New file.
25251
25252         avoid a warning from gcc
25253         * lib/getndelim2.c (IF_LINT): Define.
25254         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
25255
25256         vc-list-files: work properly with build-aux/cvsu, too
25257         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
25258         to all cvs-based clauses.
25259
25260         vc-list-files: work properly in the CVS+awk case, too
25261         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
25262
25263         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
25264         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
25265         take more than one file argument, so .  Add quotes, just in case $dir
25266         ever contains a shell meta-character.  Prompted by Soren Hansen in
25267         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
25268
25269 2008-04-29  Eric Blake  <ebb9@byu.net>
25270
25271         Optimize getndelim2 to use block operations when possible.
25272         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
25273         freadseek, and memchr2.
25274         * lib/getndelim2.c (getndelim2): Use them for block reads.
25275
25276 2008-04-29  Bruno Haible  <bruno@clisp.org>
25277
25278         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
25279         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25280         * modules/inet_ntop (Depends-on): Add extensions.
25281         * modules/inet_pton (Depends-on): Likewise.
25282         Reported by Simon Josefsson.
25283
25284 2008-04-29  Jim Meyering  <meyering@redhat.com>
25285
25286         When the is more than one match in a block, match all of them.
25287         * build-aux/useless-if-before-free: Iterate through each block
25288         until there are no more matches.
25289
25290         Fix broken useless-if-before-free script.
25291         * build-aux/useless-if-before-free: Fix typo: missing "?" after
25292         the expression to match cast of argument to free-like function.
25293
25294 2008-04-29  Eric Blake  <ebb9@byu.net>
25295
25296         Use new header.
25297         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
25298
25299 2008-04-29  Jim Meyering  <meyering@redhat.com>
25300
25301         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
25302         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
25303         by gnulib to exist and to declare e.g., inet_ntop.
25304         Don't include "inet_ntop.h", now removed.
25305
25306         * m4/arpa_inet_h.m4: Remove trailing blanks.
25307
25308 2008-04-29  Eric Blake  <ebb9@byu.net>
25309
25310         Silence valgrind on safe reads beyond potential array bounds.
25311         * lib/rawmemchr.valgrind: New file.
25312         * lib/strchrnul.valgrind: Likewise.
25313         * modules/rawmemchr (Files): Distribute new file.
25314         * modules/strchrnul (Files): Likewise.
25315         Suggested by Bruno Haible.
25316
25317 2008-04-29  Bruno Haible  <bruno@clisp.org>
25318
25319         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
25320         (inet_ntop, inet_pton): Change portability warning's wording.
25321         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
25322         Invoke gl_CHECK_NEXT_HEADERS.
25323         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
25324         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
25325         set ARPA_INET_H.
25326         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25327         * modules/arpa_inet (Description): No longer only for systems that
25328         lack it.
25329         (Depends-on): Add include_next.
25330         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
25331         HAVE_ARPA_INET_H.
25332
25333 2008-04-29  Jim Meyering  <meyering@redhat.com>
25334
25335         * modules/mkdir (License): Re-license as LGPLv2+.
25336
25337 2008-04-29  Bruno Haible  <bruno@clisp.org>
25338
25339         * modules/rawmemchr (Maintainer): Set to Eric.
25340         * modules/strchrnul (Maintainer): Likewise.
25341
25342 2008-04-29  Simon Josefsson  <simon@josefsson.org>
25343
25344         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
25345         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
25346
25347         * modules/arpa_inet (arpa/inet.h): Use them.
25348
25349 2008-04-28  Eric Blake  <ebb9@byu.net>
25350
25351         Test getndelim2.
25352         * modules/getndelim2-tests: New file.
25353         * tests/test-getndelim2.c: Likewise.
25354         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
25355         stream.
25356         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
25357
25358         * MODULES.html.sh: Document new module.
25359
25360 2008-04-20  Bruno Haible  <bruno@clisp.org>
25361
25362         * lib/c-stack.c (die): Use raise.
25363         * modules/c-stack (Depends-on): Add raise.
25364
25365 2008-04-28  Bruno Haible  <bruno@clisp.org>
25366
25367         Expect rpmatch to be declared.
25368         * lib/yesno.c (rpmatch): Remove declaration.
25369
25370         Declare rpmatch.
25371         * lib/stdlib.in.h (rpmatch): New declaration.
25372         * lib/rpmatch.c: Include <stdlib.h> first.
25373         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
25374         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
25375         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
25376         HAVE_RPMATCH.
25377         * modules/rpmatch (Depends-on): Add stdlib, extensions.
25378         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25379         (Include): Set to <stdlib.h>.
25380         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
25381         HAVE_RPMATCH.
25382         * NEWS: Document the change.
25383
25384 2008-04-28  Bruno Haible  <bruno@clisp.org>
25385
25386         Change rpmatch to use nl_langinfo when appropriate.
25387         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
25388         (N_): New macro.
25389         (localized_pattern): New function/macro.
25390         (try): Remove match, nomatch arguments. Copy the pattern into safe
25391         memory before caching it.
25392         (rpmatch): Use localized_pattern. Add translator comments.
25393         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
25394         Suggested by Eric Blake.
25395         * modules/rpmatch (Depends-on): Add stdbool.
25396
25397 2008-04-28  Eric Blake  <ebb9@byu.net>
25398
25399         Add rawmemchr module, matching glibc.
25400         * modules/string (Makefile.am): New indicator.
25401         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
25402         * lib/string.in.h (rawmemchr): Declare when appropriate.
25403         * modules/rawmemchr: New file.
25404         * m4/rawmemchr.m4: Likewise.
25405         * lib/rawmemchr.c: Likewise.
25406         * modules/rawmemchr-tests: Likewise.
25407         * tests/test-rawmemchr.c: Likewise.
25408         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
25409         module.
25410         * modules/strchrnul (Depends-on): Add rawmemchr.
25411         * lib/strchrnul.c (strchrnul): Optimize a corner case.
25412
25413         Whitespace cleanup.
25414         * tests/test-strchrnul.c: Reindent.
25415         * lib/strchrnul.c: Likewise.
25416
25417         Optimize and test strchrnul.
25418         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
25419         * modules/strchrnul-tests: New file.
25420         * tests/test-strchrnul.c: Likewise.
25421
25422         Remove intprops dependency.
25423         * modules/memchr (Depends-on): Remove intprops.
25424         * modules/memrchr (Depends-on): Likewise.
25425         * modules/memchr2 (Depends-on): Likewise.
25426         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
25427         * lib/memrchr.c (__memrchr): Likewise.
25428         * lib/memrchr2.c (memchr2): Likewise.
25429         Reported by Simon Josefsson.
25430
25431 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25432
25433         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
25434         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25435
25436 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25437
25438         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
25439
25440         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
25441
25442         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
25443
25444         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
25445         declarations.
25446         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
25447
25448         * m4/inet_pton.m4: Don't check for header files.
25449
25450         * m4/inet_ntop.m4: Don't check for header files.
25451
25452 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25453
25454         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
25455         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
25456         trigger for cygwin).
25457         Reported by Bruno Haible  <bruno@clisp.org>.
25458
25459 2008-04-28  Bruno Haible  <bruno@clisp.org>
25460
25461         * doc/posix-functions/strdup.texi: Mention mingw problem.
25462
25463 2008-04-27  Bruno Haible  <bruno@clisp.org>
25464
25465         * modules/stat-time-tests (Depends-on): Add sleep.
25466         * tests/test-stat-time.c (force_unlink): New function.
25467         (cleanup): Use it.
25468         (test_mtime): Remove the ctime related tests.
25469         (test_ctime): New function, containing the ctime related tests.
25470         (main): Call test_ctime, except on native Windows platforms.
25471
25472 2008-04-27  Bruno Haible  <bruno@clisp.org>
25473
25474         * lib/rpmatch.c (rpmatch): Add some comments.
25475         Reported by James Youngman <jay@gnu.org>.
25476
25477 2008-04-27  Bruno Haible  <bruno@clisp.org>
25478
25479         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
25480         quiet NaNs.
25481
25482 2008-04-27  Bruno Haible  <bruno@clisp.org>
25483
25484         Make test-yesno.sh work on mingw.
25485         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
25486         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
25487         (main): Set stdin to binary mode.
25488         * modules/yesno-tests (Depends-on): Add binary-io.
25489
25490 2008-04-27  Bruno Haible  <bruno@clisp.org>
25491
25492         Fix 'isfinite' on x86, x86_64, ia64 platforms.
25493         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
25494         argument that lie outside the IEEE 854 domain.
25495         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
25496         (gl_ISFINITE): Use it.
25497         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
25498
25499 2008-04-27  Bruno Haible  <bruno@clisp.org>
25500
25501         Allow local renaming in config.h.
25502         * lib/memrchr.c (memrchr): Don't undefine outside libc.
25503
25504 2008-04-27  Bruno Haible  <bruno@clisp.org>
25505
25506         * lib/memchr.c (__memchr): Change type of 'i'.
25507         * lib/memchr2.c (memchr2): Likewise.
25508
25509 2008-04-26  Eric Blake  <ebb9@byu.net>
25510         and Bruno Haible  <bruno@clisp.org>
25511
25512         Optimize and test memrchr.
25513         * modules/memrchr (Depends-on): Add intprops.
25514         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
25515         * modules/memrchr-tests: New file.
25516         * tests/test-memrchr.c: New file.
25517
25518 2008-04-26  Bruno Haible  <bruno@clisp.org>
25519
25520         Add tentative support for DragonFly BSD.
25521         * lib/stdio-impl.h: Add macros for DragonFly BSD.
25522         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
25523         fp.
25524         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
25525         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
25526         * lib/fpurge.c (fpurge): Likewise.
25527         * lib/freadable.c (freaadable): Likewise.
25528         * lib/freadahead.c (freadahead): Likewise.
25529         * lib/freading.c (freading): Likewise.
25530         * lib/freadptr.c (freadptr): Likewise.
25531         * lib/freadseek.c (freadptrinc): Likewise.
25532         * lib/fseeko.c (fseeko): Likewise.
25533         * lib/fseterr.c (fseterr): Likewise.
25534         * lib/fwritable.c (fwritable): Likewise.
25535         * lib/fwriting.c (fwriting): Likewise.
25536
25537 2008-04-26  Bruno Haible  <bruno@clisp.org>
25538
25539         * lib/stdio-impl.h: New file.
25540         * lib/fbufmode.c: Include stdio-impl.h.
25541         (fbufmode): Use fp_, remove redundant #defines.
25542         * lib/fflush.c: Include stdio-impl.h.
25543         (clear_ungetc_buffer): Remove redundant #defines.
25544         * lib/fpurge.c: Include stdio-impl.h.
25545         (fpurge): Remove redundant #defines.
25546         * lib/freadable.c: Include stdio-impl.h.
25547         (freadable): Remove redundant #defines.
25548         * lib/freadahead.c: Include stdio-impl.h.
25549         (freadahead): Remove redundant #defines.
25550         * lib/freading.c: Include stdio-impl.h.
25551         (freading): Remove redundant #defines.
25552         * lib/freadptr.c: Include stdio-impl.h.
25553         (freadptr): Remove redundant #defines.
25554         * lib/freadseek.c: Include stdio-impl.h.
25555         (freadptrinc): Remove redundant #defines.
25556         * lib/fseeko.c: Include stdio-impl.h.
25557         (rpl_fseeko): Remove redundant #defines.
25558         * lib/fseterr.c: Include stdio-impl.h.
25559         (fseterr): Remove redundant #defines.
25560         * lib/fwritable.c: Include stdio-impl.h.
25561         (fwritable: Remove redundant #defines.
25562         * lib/fwriting.c: Include stdio-impl.h.
25563         (fwriting): Remove redundant #defines.
25564         * modules/fbufmode (Files): Add lib/stdio-impl.h.
25565         * modules/fflush (Files): Likewise.
25566         * modules/fpurge (Files): Likewise.
25567         * modules/freadable (Files): Likewise.
25568         * modules/freadahead (Files): Likewise.
25569         * modules/freading (Files): Likewise.
25570         * modules/freadptr (Files): Likewise.
25571         * modules/freadseek (Files): Likewise.
25572         * modules/fseeko (Files): Likewise.
25573         * modules/fseterr (Files): Likewise.
25574         * modules/fwritable (Files): Likewise.
25575         * modules/fwriting (Files): Likewise.
25576
25577 2008-04-26  Bruno Haible  <bruno@clisp.org>
25578
25579         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
25580         restore_seek_optimization, update_fpos_cache): New functions, extracted
25581         from rpl_fflush.
25582         (rpl_fflush): Use them.
25583         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
25584         (gl_REPLACE_FFLUSH): Use it.
25585
25586 2008-04-26  Bruno Haible  <bruno@clisp.org>
25587
25588         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
25589         on Solaris.
25590         * tests/test-xstrtoimax.sh: Likewise.
25591         * tests/test-xstrtoumax.sh: Likewise.
25592         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25593
25594 2008-04-26  Bruno Haible  <bruno@clisp.org>
25595
25596         * modules/memchr-tests: New file.
25597         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
25598
25599 2008-04-26  Eric Blake  <ebb9@byu.net>
25600             Bruno Haible  <bruno@clisp.org>
25601
25602         * lib/memchr.c: Include intprops.h.
25603         (__memchr): Optimize parallel detection of matching bytes. Rename local
25604         variables. Add explanatory comments.
25605
25606 2008-04-26  Bruno Haible  <bruno@clisp.org>
25607
25608         Fix module 'memchr', broken since 2000-10-28.
25609         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
25610
25611 2008-04-26  Bruno Haible  <bruno@clisp.org>
25612
25613         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
25614         comments.
25615
25616 2008-04-25  Eric Blake  <ebb9@byu.net>
25617
25618         Use native fstatat on cygwin 1.7.0.
25619         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
25620         first.
25621
25622 2008-04-23  Eric Blake  <ebb9@byu.net>
25623
25624         Improve memchr2 performance.
25625         * lib/memchr2.c (memchr2): Further optimize parallel detection of
25626         NUL bytes.
25627         * modules/memchr2 (Depends-on): Use intprops.h.
25628
25629 2008-04-23  Simon Josefsson  <simon@josefsson.org>
25630
25631         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
25632         an inline function instead of a CPP macro.  Patch by Ben Pfaff
25633         <blp@cs.stanford.edu>.
25634
25635 2008-04-23  Simon Josefsson  <simon@josefsson.org>
25636
25637         * lib/arpa_inet.in.h: New file.
25638
25639         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
25640         (Makefile.am): Sed in substitute header file.
25641
25642         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
25643         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
25644
25645         * modules/inet_ntop (configure.ac): Use
25646         gl_ARPA_INET_MODULE_INDICATOR.
25647
25648         * modules/inet_pton (configure.ac): Use
25649         gl_ARPA_INET_MODULE_INDICATOR.
25650
25651 2008-04-22  Jim Meyering  <meyering@redhat.com>
25652
25653         * modules/verify (License): Re-license as LGPLv2+.
25654
25655 2008-04-22  Simon Josefsson  <simon@josefsson.org>
25656
25657         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
25658         parameter to void* as per POSIX standard (MinGW uses char*).
25659
25660 2008-04-21  Bruno Haible  <bruno@clisp.org>
25661
25662         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
25663         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
25664         Define to replacements if REPLACE_ISWCNTRL is 1.
25665         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
25666         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
25667         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
25668         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
25669         what it fixes.
25670         * doc/posix-functions/iswalpha.texi: Likewise.
25671         * doc/posix-functions/iswblank.texi: Likewise.
25672         * doc/posix-functions/iswcntrl.texi: Likewise.
25673         * doc/posix-functions/iswdigit.texi: Likewise.
25674         * doc/posix-functions/iswgraph.texi: Likewise.
25675         * doc/posix-functions/iswlower.texi: Likewise.
25676         * doc/posix-functions/iswprint.texi: Likewise.
25677         * doc/posix-functions/iswpunct.texi: Likewise.
25678         * doc/posix-functions/iswspace.texi: Likewise.
25679         * doc/posix-functions/iswupper.texi: Likewise.
25680         * doc/posix-functions/iswxdigit.texi: Likewise.
25681         Reported by Alain Guibert.
25682
25683 2008-04-21  Bruno Haible  <bruno@clisp.org>
25684
25685         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
25686         Patch by Alain Guibert.
25687
25688 2008-04-21  Bruno Haible  <bruno@clisp.org>
25689
25690         Fix test failures on mingw.
25691         * tests/test-xstrtol.c (print_no_progname): New function.
25692         (main): Install it in error_print_progname hook.
25693         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
25694         * tests/test-xstrtoimax.sh: Likewise.
25695         * tests/test-xstrtoumax.sh: Likewise.
25696
25697 2008-04-21  Bruno Haible  <bruno@clisp.org>
25698
25699         Fix test failure on mingw.
25700         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
25701
25702 2008-04-21  Bruno Haible  <bruno@clisp.org>
25703
25704         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
25705         Actually assign a value.
25706
25707 2008-04-20  Bruno Haible  <bruno@clisp.org>
25708
25709         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
25710         take 2.
25711         * lib/canonicalize.c (canonicalize_file_name): Elide if the
25712         'canonicalize-lgpl' module is also used.
25713         * lib/canonicalize-lgpl.c: Undo last change.
25714         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
25715
25716 2008-04-20  Bruno Haible  <bruno@clisp.org>
25717
25718         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
25719         config.h. Provide _mkdir based fallback for mingw.
25720         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
25721         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
25722         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
25723         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
25724         rather than defining mkdir in config.h.
25725         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
25726         (gl_SYS_STAT_H_DEFAULTS): New macro.
25727         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
25728         HAVE_IO_H any more.
25729         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
25730         HAVE_DECL_MKDIR and HAVE_IO_H.
25731
25732 2008-04-20  Bruno Haible  <bruno@clisp.org>
25733
25734         * lib/isapipe.c: Port to native Windows platforms.
25735
25736 2008-04-20  Bruno Haible  <bruno@clisp.org>
25737
25738         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
25739
25740 2008-04-21  Eric Blake  <ebb9@byu.net>
25741
25742         Work around preprocessors that don't handle UINTMAX_MAX.
25743         * lib/memchr2.c (memchr2): Avoid embedded #if.
25744         Reported by Alain Guibert, fix suggested by Bruno Haible.
25745
25746 2008-04-21  Simon Josefsson  <simon@josefsson.org>
25747
25748         * doc/posix-functions/strftime.texi (strftime): Explain better
25749         Windows incompatibility.  Suggested by Micah Cowan
25750         <micah@cowan.name>.
25751
25752 2008-04-20  Bruno Haible  <bruno@clisp.org>
25753
25754         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
25755         unistr/u8-mblen.
25756
25757 2008-04-20  Bruno Haible  <bruno@clisp.org>
25758
25759         Fix test failure on platforms with non-GNU iconv.
25760         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
25761         (U_TO_U8): Use it, rather than u16_to_u8.
25762         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
25763         units at the end of the input string.
25764         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
25765
25766 2008-04-20  Bruno Haible  <bruno@clisp.org>
25767
25768         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
25769         when the resulting length is 0.
25770         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
25771
25772 2008-04-20  Bruno Haible  <bruno@clisp.org>
25773
25774         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
25775         works.
25776         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
25777
25778 2008-04-20  Bruno Haible  <bruno@clisp.org>
25779
25780         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
25781         * modules/tsearch-tests (configure.ac): Test for initstate function.
25782
25783 2008-04-20  Bruno Haible  <bruno@clisp.org>
25784
25785         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
25786         for nlink_t if missing.
25787         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
25788
25789 2008-04-19  Bruno Haible  <bruno@clisp.org>
25790
25791         Work around snprintf bug on Linux libc5.
25792         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
25793         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
25794         gl_SNPRINTF_SIZE1.
25795         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25796         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
25797         that test failed.
25798         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
25799         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
25800         * modules/snprintf (Files): Add m4/printf.m4.
25801         * modules/vsnprintf (Files): Likewise.
25802         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
25803         * doc/posix-functions/vsnprintf.texi: Likewise.
25804
25805 2008-04-19  Bruno Haible  <bruno@clisp.org>
25806
25807         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
25808         from 0.0058 to less than 10^-7.
25809
25810 2008-04-19  Bruno Haible  <bruno@clisp.org>
25811
25812         Fix rounding when a precision is given.
25813         * lib/vasnprintf.c (is_borderline): New function.
25814         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
25815         9...9x.
25816         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
25817         %e, %g.
25818         * tests/test-vasprintf-posix.c (test_function): Likewise.
25819         * tests/test-snprintf-posix.h (test_function): Likewise.
25820         * tests/test-sprintf-posix.h (test_function): Likewise.
25821         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
25822         * tests/test-printf-posix.h (test_function): Likewise.
25823         * tests/test-printf-posix.output: Update.
25824         Reported by John Darrington <john@darrington.wattle.id.au> via
25825         Ben Pfaff <blp@cs.stanford.edu>.
25826
25827 2008-04-18  Simon Josefsson  <simon@josefsson.org>
25828
25829         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
25830         Suggested by Bruno Haible <bruno@clisp.org>.
25831
25832 2008-04-17  Bruno Haible  <bruno@clisp.org>
25833
25834         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
25835         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
25836         implementation.
25837         Patch by Bruce Merry <bmerry@gmail.com>.
25838
25839 2008-04-17  Simon Josefsson  <simon@josefsson.org>
25840
25841         * doc/posix-functions/strftime.texi (strftime): Mention that %e
25842         doesn't work under Windows.
25843
25844 2008-04-16  Bruno Haible  <bruno@clisp.org>
25845
25846         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
25847         New macros.
25848         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
25849         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
25850         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
25851         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
25852         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
25853         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
25854         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
25855         macros.
25856         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
25857         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
25858         Northern Sotho, Uighur.
25859
25860 2008-04-16  Bruno Haible  <bruno@clisp.org>
25861
25862         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
25863         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
25864         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
25865         Reported by Daniel Bergström <daniel@octocode.com>.
25866
25867 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
25868             Bruno Haible  <bruno@clisp.org>
25869
25870         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
25871         function.
25872         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
25873         New functions, mostly extracted from gl_locale_name_default.
25874         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
25875
25876 2008-04-16  Eric Blake  <ebb9@byu.net>
25877
25878         Adjust strtod detection to catch glibc 2.7 bug.
25879         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
25880         Reported by John Gatewood Ham.
25881
25882 2008-04-16  Bruno Haible  <bruno@clisp.org>
25883
25884         Add tentative support for Linux libc5.
25885         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
25886         * lib/fpurge.c (fpurge): Likewise.
25887         * lib/freadable.c (freadable): Likewise.
25888         * lib/freadahead.c (freadahead): Likewise.
25889         * lib/freading.c (freading): Likewise.
25890         * lib/freadptr.c (freadptr): Likewise.
25891         * lib/freadseek.c (freadptrinc): Likewise.
25892         * lib/fseeko.c (rpl_fseeko): Likewise.
25893         * lib/fseterr.c (fseterr): Likewise.
25894         * lib/fwritable.c (fwritable): Likewise.
25895         * lib/fwriting.c (fwriting): Likewise.
25896         Reported by Alain Guibert <alguibert+bts@free.fr>.
25897
25898 2008-04-15  Bruno Haible  <bruno@clisp.org>
25899
25900         * modules/mathl (configure.ac): Define module indicator.
25901
25902 2008-04-15  Bruno Haible  <bruno@clisp.org>
25903
25904         * lib/logl.c (logl): Remove unused variables.
25905
25906 2008-04-15  Bruno Haible  <bruno@clisp.org>
25907
25908         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
25909         fails.
25910
25911 2008-04-15  Bruno Haible  <bruno@clisp.org>
25912
25913         * lib/trim.c (trim2): Fix argument of isspace() macro.
25914
25915 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
25916
25917         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
25918         to 0.
25919         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
25920
25921 2008-04-14  Bruno Haible  <bruno@clisp.org>
25922
25923         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
25924         AC_LANG_PROGRAM argument.
25925         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
25926         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
25927         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
25928         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
25929         * m4/math_h.m4 (gl_MATH_H): Likewise.
25930         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
25931         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25932         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
25933         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
25934         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
25935         * m4/regex.m4 (gl_REGEX): Likewise.
25936         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
25937         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
25938         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25939         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
25940         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
25941         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25942         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25943         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
25944
25945 2008-04-14  Jim Meyering  <meyering@redhat.com>
25946
25947         test-strtod: fix typos: s/abs/fabs/
25948         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
25949
25950 2008-04-13  Bruno Haible  <bruno@clisp.org>
25951
25952         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
25953         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
25954         module is also used and while not building the reloc-wrapper.
25955
25956 2008-04-13  Bruno Haible  <bruno@clisp.org>
25957
25958         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
25959
25960 2008-04-13  Bruno Haible  <bruno@clisp.org>
25961
25962         Fix AIX compilation failure introduced on 2008-04-02.
25963         * tests/test-frexp.c (exp): Undefine before redefining.
25964         * tests/test-frexpl.c (exp): Likewise.
25965
25966 2008-04-13  Bruno Haible  <bruno@clisp.org>
25967
25968         Work around a HP-UX stdio bug.
25969         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
25970         * tests/test-ftello.c (main): Likewise.
25971         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
25972         * doc/posix-functions/ftello.texi: Likewise.
25973
25974 2008-04-13  Bruno Haible  <bruno@clisp.org>
25975
25976         Make test-signbit pass on HP-UX/hppa.
25977         * tests/test-signbit.c (minus_zerol): New variable.
25978         (test_signbitl): Use it.
25979
25980 2008-04-13  Bruno Haible  <bruno@clisp.org>
25981
25982         Make truncl work on OSF/1 4.0.
25983         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
25984         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
25985         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
25986         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
25987         HAVE_DECL_TRUNCL.
25988         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
25989         HAVE_DECL_TRUNCL.
25990         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
25991
25992 2008-04-13  Bruno Haible  <bruno@clisp.org>
25993
25994         * lib/unictype.h: Remove trailing comma from enumeration definitions.
25995
25996 2008-04-13  Bruno Haible  <bruno@clisp.org>
25997
25998         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
25999         expression, so as to avoid HP-UX 11 cc compiler bug.
26000
26001 2008-04-13  Bruno Haible  <bruno@clisp.org>
26002
26003         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
26004
26005 2008-04-13  Bruno Haible  <bruno@clisp.org>
26006
26007         * lib/git-merge-changelog.c: Remove empty declaration outside of
26008         functions.
26009
26010 2008-04-13  Bruno Haible  <bruno@clisp.org>
26011
26012         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
26013
26014 2008-04-13  Bruno Haible  <bruno@clisp.org>
26015
26016         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
26017         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
26018         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
26019         also if it exists but lacks definitions of the SHUT_* macros.
26020         * modules/sys_socket (Description): Update.
26021         Reported by Elbert Pol <e.pol@chello.nl>.
26022
26023 2008-04-13  Bruno Haible  <bruno@clisp.org>
26024
26025         * lib/localcharset.c (OS2): Don't redefine if already defined.
26026         Reported by Elbert Pol <e.pol@chello.nl>.
26027
26028 2008-04-13  Bruno Haible  <bruno@clisp.org>
26029
26030         * lib/binary-io.h [__EMX__]: Include <io.h>.
26031         Reported by Elbert Pol <e.pol@chello.nl>.
26032
26033 2008-04-12  Bruno Haible  <bruno@clisp.org>
26034
26035         * lib/fpucw.h: Enable the definitions also for x86_64.
26036         Needed for NetBSD/x86_64.
26037         Reported by Thomas Klausner <tk@giga.or.at>.
26038
26039 2008-04-12  Bruno Haible  <bruno@clisp.org>
26040
26041         * tests/test-strtod.c: Include isnand.h.
26042         (main): Use isnand instead of isnan.
26043         Reported by Jim Meyering.
26044
26045 2008-04-12  Bruno Haible  <bruno@clisp.org>
26046
26047         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
26048         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
26049
26050 2008-04-12  Jim Meyering  <meyering@redhat.com>
26051
26052         * m4/math_h.m4 (gl_MATH_H): Fix typos.
26053
26054 2008-04-12  Bruno Haible  <bruno@clisp.org>
26055
26056         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
26057         Reported by Elbert Pol <e.pol@chello.nl>.
26058
26059 2008-04-12  Eric Blake  <ebb9@byu.net>
26060
26061         Work around Solaris 10 math.h bug.
26062         * m4/math_h.m4 (gl_MATH_H): Check for bug.
26063         (gl_MATH_H_DEFAULTS): Set up default.
26064         * modules/math (Makefile.am): Replace new indicators.
26065         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
26066         * tests/test-math.c (main): Test this.
26067         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
26068         * doc/posix-headers/math.texi (math.h): Mention bug.
26069         Reported by Nelson H. F. Beebe and Jim Meyering.
26070
26071 2008-04-11  Bruno Haible  <bruno@clisp.org>
26072
26073         Adapt to future versions of Apple GCC.
26074         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
26075         Reported by Peter O'Gorman <peter@pogma.com>.
26076
26077 2008-04-11  Bruno Haible  <bruno@clisp.org>
26078
26079         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
26080
26081 2008-04-11  Bruno Haible  <bruno@clisp.org>
26082
26083         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
26084
26085         * modules/getaddrinfo-tests (Makefile.am): Define
26086         test_getaddrinfo_LDADD.
26087
26088 2008-04-11  Bruno Haible  <bruno@clisp.org>
26089
26090         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
26091         (init): Fix syntax error.
26092         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
26093         is declared.
26094
26095 2008-04-11  Bruno Haible  <bruno@clisp.org>
26096
26097         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
26098         * modules/glob (Depends-on): Add stdbool.
26099
26100 2008-04-11  Bruno Haible  <bruno@clisp.org>
26101
26102         * lib/trim.c: Include <string.h>.
26103
26104 2008-04-11  Eric Blake  <ebb9@byu.net>
26105
26106         Avoid compile failure on OS/2.
26107         * lib/regex_internal.h (internal_function): Disable optimization
26108         on OS/2 (__EMX__), where it caused compiler error.
26109         Reported by Elbert Pol.
26110
26111 2008-04-11  Bruno Haible  <bruno@clisp.org>
26112
26113         Flush the standard error stream before aborting. Needed on mingw.
26114         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
26115         * tests/test-array_list.c (ASSERT): Likewise.
26116         * tests/test-array_oset.c (ASSERT): Likewise.
26117         * tests/test-avltree_list.c (ASSERT): Likewise.
26118         * tests/test-avltree_oset.c (ASSERT): Likewise.
26119         * tests/test-avltreehash_list.c (ASSERT): Likewise.
26120         * tests/test-binary-io.c (ASSERT): Likewise.
26121         * tests/test-byteswap.c (ASSERT): Likewise.
26122         * tests/test-c-ctype.c (ASSERT): Likewise.
26123         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
26124         * tests/test-c-strcasestr.c (ASSERT): Likewise.
26125         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
26126         * tests/test-c-strstr.c (ASSERT): Likewise.
26127         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
26128         * tests/test-canonicalize.c (ASSERT): Likewise.
26129         * tests/test-carray_list.c (ASSERT): Likewise.
26130         * tests/test-ceilf1.c (ASSERT): Likewise.
26131         * tests/test-ceilf2.c (ASSERT): Likewise.
26132         * tests/test-ceill.c (ASSERT): Likewise.
26133         * tests/test-count-one-bits.c (ASSERT): Likewise.
26134         * tests/test-fbufmode.c (ASSERT): Likewise.
26135         * tests/test-fflush2.c (ASSERT): Likewise.
26136         * tests/test-floorf1.c (ASSERT): Likewise.
26137         * tests/test-floorf2.c (ASSERT): Likewise.
26138         * tests/test-floorl.c (ASSERT): Likewise.
26139         * tests/test-fopen.c (ASSERT): Likewise.
26140         * tests/test-fpending.c (ASSERT): Likewise.
26141         * tests/test-fprintf-posix.c (ASSERT): Likewise.
26142         * tests/test-fpurge.c (ASSERT): Likewise.
26143         * tests/test-freadable.c (ASSERT): Likewise.
26144         * tests/test-freadahead.c (ASSERT): Likewise.
26145         * tests/test-freading.c (ASSERT): Likewise.
26146         * tests/test-freadptr.c (ASSERT): Likewise.
26147         * tests/test-freadptr2.c (ASSERT): Likewise.
26148         * tests/test-freadseek.c (ASSERT): Likewise.
26149         * tests/test-freopen.c (ASSERT): Likewise.
26150         * tests/test-frexp.c (ASSERT): Likewise.
26151         * tests/test-frexpl.c (ASSERT): Likewise.
26152         * tests/test-fseek.c (ASSERT): Likewise.
26153         * tests/test-fseeko.c (ASSERT): Likewise.
26154         * tests/test-fstrcmp.c (ASSERT): Likewise.
26155         * tests/test-ftell.c (ASSERT): Likewise.
26156         * tests/test-ftello.c (ASSERT): Likewise.
26157         * tests/test-func.c (ASSERT): Likewise.
26158         * tests/test-fwritable.c (ASSERT): Likewise.
26159         * tests/test-fwriting.c (ASSERT): Likewise.
26160         * tests/test-getdelim.c (ASSERT): Likewise.
26161         * tests/test-getline.c (ASSERT): Likewise.
26162         * tests/test-i-ring.c (ASSERT): Likewise.
26163         * tests/test-iconv-utf.c (ASSERT): Likewise.
26164         * tests/test-iconv.c (ASSERT): Likewise.
26165         * tests/test-isfinite.c (ASSERT): Likewise.
26166         * tests/test-isnand.c (ASSERT): Likewise.
26167         * tests/test-isnanf.c (ASSERT): Likewise.
26168         * tests/test-isnanl.h (ASSERT): Likewise.
26169         * tests/test-ldexpl.c (ASSERT): Likewise.
26170         * tests/test-linked_list.c (ASSERT): Likewise.
26171         * tests/test-linkedhash_list.c (ASSERT): Likewise.
26172         * tests/test-localename.c (ASSERT): Likewise.
26173         * tests/test-lseek.c (ASSERT): Likewise.
26174         * tests/test-mbscasecmp.c (ASSERT): Likewise.
26175         * tests/test-mbscasestr1.c (ASSERT): Likewise.
26176         * tests/test-mbscasestr2.c (ASSERT): Likewise.
26177         * tests/test-mbscasestr3.c (ASSERT): Likewise.
26178         * tests/test-mbscasestr4.c (ASSERT): Likewise.
26179         * tests/test-mbschr.c (ASSERT): Likewise.
26180         * tests/test-mbscspn.c (ASSERT): Likewise.
26181         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
26182         * tests/test-mbspbrk.c (ASSERT): Likewise.
26183         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
26184         * tests/test-mbsrchr.c (ASSERT): Likewise.
26185         * tests/test-mbsspn.c (ASSERT): Likewise.
26186         * tests/test-mbsstr1.c (ASSERT): Likewise.
26187         * tests/test-mbsstr2.c (ASSERT): Likewise.
26188         * tests/test-mbsstr3.c (ASSERT): Likewise.
26189         * tests/test-memchr2.c (ASSERT): Likewise.
26190         * tests/test-memmem.c (ASSERT): Likewise.
26191         * tests/test-open.c (ASSERT): Likewise.
26192         * tests/test-printf-frexp.c (ASSERT): Likewise.
26193         * tests/test-printf-frexpl.c (ASSERT): Likewise.
26194         * tests/test-printf-posix.c (ASSERT): Likewise.
26195         * tests/test-quotearg.c (ASSERT): Likewise.
26196         * tests/test-rbtree_list.c (ASSERT): Likewise.
26197         * tests/test-rbtree_oset.c (ASSERT): Likewise.
26198         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
26199         * tests/test-round1.c (ASSERT): Likewise.
26200         * tests/test-roundf1.c (ASSERT): Likewise.
26201         * tests/test-roundl.c (ASSERT): Likewise.
26202         * tests/test-signbit.c (ASSERT): Likewise.
26203         * tests/test-sleep.c (ASSERT): Likewise.
26204         * tests/test-snprintf-posix.c (ASSERT): Likewise.
26205         * tests/test-snprintf.c (ASSERT): Likewise.
26206         * tests/test-sprintf-posix.c (ASSERT): Likewise.
26207         * tests/test-stat-time.c (ASSERT): Likewise.
26208         * tests/test-strcasestr.c (ASSERT): Likewise.
26209         * tests/test-strerror.c (ASSERT): Likewise.
26210         * tests/test-striconv.c (ASSERT): Likewise.
26211         * tests/test-striconveh.c (ASSERT): Likewise.
26212         * tests/test-striconveha.c (ASSERT): Likewise.
26213         * tests/test-strsignal.c (ASSERT): Likewise.
26214         * tests/test-strstr.c (ASSERT): Likewise.
26215         * tests/test-strtod.c (ASSERT): Likewise.
26216         * tests/test-trunc1.c (ASSERT): Likewise.
26217         * tests/test-trunc2.c (ASSERT): Likewise.
26218         * tests/test-truncf1.c (ASSERT): Likewise.
26219         * tests/test-truncf2.c (ASSERT): Likewise.
26220         * tests/test-truncl.c (ASSERT): Likewise.
26221         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
26222         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
26223         * tests/test-vasnprintf.c (ASSERT): Likewise.
26224         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
26225         * tests/test-vasprintf.c (ASSERT): Likewise.
26226         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
26227         * tests/test-vprintf-posix.c (ASSERT): Likewise.
26228         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
26229         * tests/test-vsnprintf.c (ASSERT): Likewise.
26230         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
26231         * tests/test-wcwidth.c (ASSERT): Likewise.
26232         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
26233         * tests/test-xprintf-posix.c (ASSERT): Likewise.
26234         * tests/test-xvasprintf.c (ASSERT): Likewise.
26235         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
26236         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
26237         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
26238         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
26239         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
26240         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
26241         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
26242         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
26243         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
26244         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
26245         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
26246         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
26247         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
26248         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
26249         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
26250         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
26251         * tests/unictype/test-block_list.c (ASSERT): Likewise.
26252         * tests/unictype/test-block_of.c (ASSERT): Likewise.
26253         * tests/unictype/test-block_test.c (ASSERT): Likewise.
26254         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
26255         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
26256         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
26257         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
26258         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
26259         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
26260         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
26261         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
26262         * tests/unictype/test-combining.c (ASSERT): Likewise.
26263         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
26264         * tests/unictype/test-digit.c (ASSERT): Likewise.
26265         * tests/unictype/test-mirror.c (ASSERT): Likewise.
26266         * tests/unictype/test-numeric.c (ASSERT): Likewise.
26267         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
26268         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
26269         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
26270         * tests/unictype/test-scripts.c (ASSERT): Likewise.
26271         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
26272         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
26273         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
26274         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
26275         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
26276         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
26277         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
26278         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
26279         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
26280         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
26281         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
26282         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
26283         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
26284         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
26285         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
26286         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
26287         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
26288         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
26289         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
26290         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
26291         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
26292         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
26293         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
26294         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
26295         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
26296         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
26297         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
26298         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
26299         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
26300         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
26301         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
26302         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
26303         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
26304         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
26305         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
26306         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
26307         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
26308         Reported by Eric Blake.
26309
26310 2008-04-11  Bruno Haible  <bruno@clisp.org>
26311
26312         * lib/wchar.in.h: Tweak comment.
26313
26314 2008-04-11  Bruno Haible  <bruno@clisp.org>
26315
26316         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
26317         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
26318         gl_COMMON.
26319         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
26320
26321 2008-04-11  Bruno Haible  <bruno@clisp.org>
26322
26323         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
26324
26325 2008-04-11  Simon Josefsson  <simon@josefsson.org>
26326
26327         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
26328         of attempting to use non-existing /dev/*random.  Based on patch
26329         from Adam Strzelecki <ono@java.pl> in
26330         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
26331
26332 2008-04-08  Bruno Haible  <bruno@clisp.org>
26333
26334         Add tentative support for emx+gcc.
26335         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
26336         * lib/fpurge.c (fpurge): Likewise.
26337         * lib/freadable.c (freadable): Likewise.
26338         * lib/freadahead.c (freadahead): Likewise.
26339         * lib/freading.c (freading): Likewise.
26340         * lib/freadptr.c (freadptr): Likewise.
26341         * lib/freadseek.c (freadptrinc): Likewise.
26342         * lib/fseeko.c (rpl_fseeko): Likewise.
26343         * lib/fseterr.c (fseterr): Likewise.
26344         * lib/fwritable.c (fwritable): Likewise.
26345         * lib/fwriting.c (fwriting): Likewise.
26346         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
26347
26348 2008-04-09  Eric Blake  <ebb9@byu.net>
26349
26350         Avoid some autoconf warnings.
26351         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
26352         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
26353         * m4/afs.m4 (gl_AFS): Likewise.
26354         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
26355         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
26356         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26357         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
26358         (gl_INTEGER_TYPE_SUFFIX): Likewise.
26359         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
26360         (AC_CHECK_DECLS_ONCE): Likewise.
26361         Rename file...
26362         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
26363         gnulib-tool requires autoconf 2.59 or better.
26364         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
26365
26366 2008-04-08  Eric Blake  <ebb9@byu.net>
26367
26368         Use 'git describe --match' if present (added in git 1.5.5).
26369         * build-aux/git-version-gen: Limit result to tags that match 'v*'
26370         if possible.
26371
26372 2008-04-08  Bruno Haible  <bruno@clisp.org>
26373
26374         Add tentative support for OpenServer.
26375         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
26376         _ptr, _cnt.
26377         * lib/fpurge.c (fpurge): Likewise.
26378         * lib/freadable.c (freadable): Likewise.
26379         * lib/freadahead.c (freadahead): Likewise.
26380         * lib/freading.c (freading): Likewise.
26381         * lib/freadptr.c (freadptr): Likewise.
26382         * lib/freadseek.c (freadptrinc): Likewise.
26383         * lib/fseeko.c (rpl_fseeko): Likewise.
26384         * lib/fseterr.c (fseterr): Likewise.
26385         * lib/fwritable.c (fwritable): Likewise.
26386         * lib/fwriting.c (fwriting): Likewise.
26387         Reported by Roger Cornelius <rac@tenzing.org> and
26388         Brian K. White <brian@aljex.com>.
26389
26390 2008-04-06  Jim Meyering  <meyering@redhat.com>
26391
26392         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
26393
26394 2008-04-06  Bruno Haible  <bruno@clisp.org>
26395
26396         Avoid possible error with non-ASCII bytes in UTF-8 locales.
26397         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
26398         * tests/test-printf-posix.sh: Likewise.
26399         * tests/test-vfprintf-posix.sh: Likewise.
26400         * tests/test-vprintf-posix.sh: Likewise.
26401         * tests/test-xprintf-posix.sh: Likewise.
26402
26403 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26404
26405         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
26406         hide error from 'ls', needed on OS/2.
26407         Report by Elbert Pol <elbert.pol@gmail.com>.
26408
26409 2008-04-04  Eric Blake  <ebb9@byu.net>
26410
26411         Make test-fseeko.c failures meaningful.
26412         * tests/test-fseeko.c: Print line number on failure.
26413         * tests/test-fseek.c: Likewise.
26414         Reported by Nelson H. F. Beebe.
26415
26416         Improve strtod bug detection check.
26417         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
26418         required for Solaris 10.
26419         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
26420
26421 2008-04-04  Bruno Haible  <bruno@clisp.org>
26422
26423         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
26424         by m4/setenv.m4.
26425
26426 2008-04-03  Eric Blake  <ebb9@byu.net>
26427
26428         Ensure sane .version contents.
26429         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
26430         version string.
26431         * build-aux/git-version-gen: Improve documentation.
26432
26433         Make GNU make output nicer.
26434         * top/GNUmakefile [!_have-Makefile]: Add dependency on
26435         MAKECMDGOALS to enforce message for all command line targets.  Set
26436         srcdir for use in maint.mk.
26437
26438         Another maintainer tweak.
26439         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
26440         a target that regenerates version.
26441
26442 2008-04-03  Jim Meyering  <meyering@redhat.com>
26443
26444         vc-list-files: don't cause coreutils "make po-check" failure
26445         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
26446
26447 2008-04-03  Eric Blake  <ebb9@byu.net>
26448
26449         Allow VPATH usage of vc-list-files.
26450         * build-aux/vc-list-files (scriptversion): Add timestamp.
26451         (options): Add --help, --version, -C.
26452         (CVS): Support installed cvsu.
26453
26454 2008-04-02  Bruno Haible  <bruno@clisp.org>
26455
26456         Avoid some "statement with no effect" warnings from gcc.
26457         * tests/test-wctype.c (main): Explicitly ignore unused values.
26458         Reported by Jim Meyering.
26459
26460 2008-04-02  Jim Meyering  <meyering@redhat.com>
26461
26462         Avoid some warnings from "gcc -Wshadow".
26463         * tests/test-frexp.c (exp): Define to a different identifier.
26464         * tests/test-frexpl.c (exp): Likewise.
26465
26466 2008-04-03  Jim Meyering  <meyering@redhat.com>
26467
26468         bootstrap: remove dangling *.[ch] symlinks from lib
26469         * build-aux/bootstrap [dangling symlink removal]: Move find's
26470         -depth option to precede all others, to avoid a warning.
26471         Remove *.[ch] files too, and from "$source_base" (usually lib/).
26472
26473 2008-04-02  Bruno Haible  <bruno@clisp.org>
26474
26475         Avoid some warnings from "gcc -Wshadow".
26476         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
26477         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
26478         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
26479         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
26480         Reported by Jim Meyering.
26481
26482 2008-04-01  Bruno Haible  <bruno@clisp.org>
26483
26484         Fix test to work on IRIX 6.5 with cc.
26485         * tests/test-math.c (numeric_equal): New function.
26486         (main): Use it.
26487
26488 2008-04-01  Bruno Haible  <bruno@clisp.org>
26489
26490         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
26491
26492 2008-04-01  Bruno Haible  <bruno@clisp.org>
26493
26494         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
26495         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26496         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
26497         (Depends-on): Remove math.
26498
26499         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
26500         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26501         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
26502         (Depends-on): Remove math.
26503
26504         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
26505         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26506         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
26507         (Depends-on): Remove math.
26508         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
26509         (Depends-on): Remove math.
26510
26511         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
26512         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26513         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
26514         (Depends-on): Remove math.
26515         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
26516         (Depends-on): Remove math.
26517
26518         * tests/test-round1.c: Include nan.h.
26519         (main): Use NaNd instead of NAN.
26520         * modules/round-tests (Files): Add tests/nan.h.
26521
26522         * tests/test-trunc1.c: Include nan.h.
26523         (main): Use NaNd instead of NAN.
26524         * modules/trunc-tests (Files): Add tests/nan.h.
26525
26526         * tests/test-roundf1.c: Include nan.h.
26527         (main): Use NaNf instead of NAN.
26528         * modules/roundf-tests (Files): Add tests/nan.h.
26529
26530         * tests/test-truncf1.c: Include nan.h.
26531         (main): Use NaNf instead of NAN.
26532         * modules/truncf-tests (Files): Add tests/nan.h.
26533
26534         * tests/test-ceilf1.c: Include nan.h.
26535         (main): Use NaNf instead of NAN.
26536         * modules/ceilf-tests (Files): Add tests/nan.h.
26537
26538         * tests/test-floorf1.c: Include nan.h.
26539         (main): Use NaNf instead of NAN.
26540         * modules/floorf-tests (Files): Add tests/nan.h.
26541
26542         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
26543         (main): Use NaNf instead of NAN.
26544         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
26545
26546         * tests/test-isnand.c: Include nan.h instead of <math.h>.
26547         (main): Use NaNd instead of NAN.
26548         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
26549
26550         * tests/test-frexp.c: Include nan.h.
26551         (main): Use NaNd instead of NAN.
26552         * modules/frexp-tests (Files): Add tests/nan.h.
26553
26554         * lib/isnan.c: Don't include <math.h>.
26555         (FUNC): Don't use NAN macro.
26556         * modules/isnand-nolibm (Depends-on): Remove math.
26557         * modules/isnanf-nolibm (Depends-on): Remove math.
26558         * modules/isnanl (Depends-on): Remove math.
26559         * modules/isnanl-nolibm (Depends-on): Remove math.
26560
26561         * tests/nan.h: New file.
26562
26563 2008-04-01  Eric Blake  <ebb9@byu.net>
26564
26565         Fix typos.
26566         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
26567         values to be the right type.
26568
26569         For now, cater to gnulib strtod inaccuracies.
26570         * tests/test-strtod.c (main): Allow 1-ulp error on expected
26571         fractional results.  While not as nice from a QoI perspective, it
26572         is a quicker patch than correctly implementing decimal to binary
26573         rounding.
26574
26575 2008-03-31  Eric Blake  <ebb9@byu.net>
26576
26577         Guarantee a definition of NAN.
26578         * lib/math.in.h (NAN): Define if missing.
26579         * tests/test-math.c (main): Test it.
26580         * doc/posix-headers/math.texi (math.h): Document this.
26581         * lib/isnan.c (rpl_isnand): Use it.
26582         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
26583         * tests/test-floorf1.c (NaN): Likewise.
26584         * tests/test-frexp.c (NaN): Likewise.
26585         * tests/test-isnand.c (NaN): Likewise.
26586         * tests/test-isnanf.c (NaN): Likewise.
26587         * tests/test-round1.c (NaN): Likewise.
26588         * tests/test-roundf1.c (NaN): Likewise.
26589         * tests/test-snprintf-posix.h (NaN): Likewise.
26590         * tests/test-sprintf-posix.h (NaN): Likewise.
26591         * tests/test-trunc1.c (NaN): Likewise.
26592         * tests/test-truncf1.c (NaN): Likewise.
26593         * tests/test-vasnprintf-posix.c (NaN): Likewise.
26594         * tests/test-vasprintf-posix.c (NaN): Likewise.
26595         * modules/isnand-nolibm (Depends-on): Add math.
26596         * modules/isnanf-nolibm (Depends-on): Likewise.
26597         * modules/isnanl (Depends-on): Likewise.
26598         * modules/isnanl-nolibm (Depends-on): Likewise.
26599         * modules/snprintf-posix-tests (Depends-on): Likewise.
26600         * modules/sprintf-posix-tests (Depends-on): Likewise.
26601         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
26602         * modules/vsprintf-posix-tests (Depends-on): Likewise.
26603         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
26604         * modules/vasprintf-posix-tests (Depends-on): Likewise.
26605
26606 2008-03-31  Bruno Haible  <bruno@clisp.org>
26607
26608         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
26609         * doc/posix-functions/strtod.texi: Likewise.
26610
26611 2008-03-31  Bruno Haible  <bruno@clisp.org>
26612
26613         * tests/test-strtod.c (main): Don't use C99 syntax.
26614
26615 2008-03-31  Bruno Haible  <bruno@clisp.org>
26616
26617         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
26618         Reported by Eric Blake.
26619
26620 2008-03-31  Jim Meyering  <meyering@redhat.com>
26621
26622         Don't compare actual signbit return values.
26623         * tests/test-strtod.c (main): Rather, compare only their
26624         zero/non-zero nature.
26625
26626 2008-03-31  Eric Blake  <ebb9@byu.net>
26627
26628         More strtod documentation.
26629         * doc/posix-functions/strtod.texi (strtod): Interpret more test
26630         failures as distinct bugs.
26631
26632 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
26633
26634         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
26635         Problem reported by Erik Benada in
26636         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
26637
26638 2008-03-30  Bruno Haible  <bruno@clisp.org>
26639
26640         * tests/test-strtod.c: Add comments about which assertion fails on which
26641         platform.
26642         * doc/posix-functions/strtod.texi: Add info about many more platforms.
26643
26644 2008-03-30  Eric Blake  <ebb9@byu.net>
26645
26646         Test signbit behavior on zeros.
26647         * tests/test-signbit.c (test_signbitf): Add tests for zero.
26648         (test_signbitd, test_signbitl): Likewise.
26649
26650         More strtod touchups.
26651         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
26652         sign of negative underflow, for now.  Use .5, not .1.
26653         * doc/posix-functions/strtod.texi (strtod): Mention these
26654         limitations.
26655         Reported by Jim Meyering.
26656
26657 2008-03-30  Bruno Haible  <bruno@clisp.org>
26658
26659         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
26660         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
26661
26662 2008-03-30  Bruno Haible  <bruno@clisp.org>
26663
26664         Avoid failure when attempting to return empty iconv results on some
26665         platforms.
26666         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
26667         allocation, don't report ENOMEM when the resulting string is empty.
26668
26669 2008-03-30  Bruno Haible  <bruno@clisp.org>
26670
26671         Fix buffer overrun.
26672         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
26673         Don't consider the width for tmp_length. Check count against tmp_length
26674         before doing the padding. Ensure enough allocation during padding.
26675
26676 2008-03-30  Eric Blake  <ebb9@byu.net>
26677
26678         strtod touchups.
26679         * lib/strtod.c (strtod): Avoid compiler warnings.
26680         Reported by Jim Meyering.
26681
26682 2008-03-30  Bruno Haible  <bruno@clisp.org>
26683
26684         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
26685         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
26686         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
26687         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
26688         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
26689         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
26690         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
26691         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
26692
26693         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
26694         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
26695         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
26696         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
26697         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
26698         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
26699         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
26700         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
26701
26702         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
26703         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
26704         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
26705         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
26706         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
26707         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
26708         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
26709         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
26710
26711         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
26712         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
26713
26714         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
26715         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
26716
26717         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
26718         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
26719
26720         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
26721         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
26722         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
26723
26724         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
26725         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
26726         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
26727
26728         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
26729         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
26730         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
26731
26732         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
26733         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
26734         * modules/vasprintf (Depends-on): Add EOVERFLOW.
26735
26736         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
26737         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
26738         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
26739         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
26740         (Depends-on): Add EOVERFLOW.
26741         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
26742         (Depends-on): Add EOVERFLOW.
26743         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
26744         (Depends-on): Add EOVERFLOW.
26745         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
26746         (Depends-on): Add EOVERFLOW.
26747         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
26748         (Depends-on): Add EOVERFLOW.
26749         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
26750         (Depends-on): Add EOVERFLOW.
26751         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
26752         (Depends-on): Add EOVERFLOW.
26753         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
26754         (Depends-on): Add EOVERFLOW.
26755
26756         * lib/sprintf.c (EOVERFLOW): Remove fallback.
26757         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
26758         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
26759
26760         * lib/snprintf.c (EOVERFLOW): Remove fallback.
26761         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
26762         * modules/snprintf (Depends-on): Add EOVERFLOW.
26763
26764         * lib/poll.c (EOVERFLOW): Remove fallback.
26765         * modules/poll (Depends-on): Add EOVERFLOW.
26766
26767         * lib/getugroups.c (EOVERFLOW): Remove fallback.
26768         * modules/getugroups (Depends-on): Add EOVERFLOW.
26769
26770         * lib/getdelim.c (EOVERFLOW): Remove fallback.
26771         * modules/getdelim (Depends-on): Add EOVERFLOW.
26772
26773         * lib/ftell.c (EOVERFLOW): Remove fallback.
26774         * modules/ftell (Depends-on): Add EOVERFLOW.
26775
26776         * lib/fprintf.c (EOVERFLOW): Remove fallback.
26777         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
26778         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
26779
26780         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
26781
26782         * modules/EOVERFLOW-tests: New file.
26783         * tests/test-EOVERFLOW.c: New file.
26784
26785         * modules/EOVERFLOW: New file.
26786         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
26787
26788 2008-03-30  Bruno Haible  <bruno@clisp.org>
26789
26790         Fix bug introduced on 2007-06-10.
26791         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
26792         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
26793
26794 2008-03-30  Bruno Haible  <bruno@clisp.org>
26795
26796         Improve freadseek's efficiency after ungetc.
26797         * lib/freadseek.c: Include freadahead.h.
26798         (freadptrinc): New function, extracted from freadseek.
26799         (freadseek): Use it in a loop. Use freadahead to determine the number
26800         of loop iterations.
26801         * modules/freadseek (Depends-on): Add freadahead.
26802         (configure.ac): Require AC_C_INLINE.
26803
26804 2008-03-30  Bruno Haible  <bruno@clisp.org>
26805
26806         * lib/freadseek.c (freadseek): Don't ignore the return value of
26807         freadptr.
26808
26809 2008-03-29  Eric Blake  <ebb9@byu.net>
26810
26811         Add hex float support.
26812         * modules/strtod (Depends-on): Add c-ctype.
26813         (Link): Mention POW_LIB.
26814         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
26815         whitespace between 'e' and exponent.
26816         * tests/test-strtod.c (main): Enable hex float tests.
26817         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
26818         now provides.
26819
26820         Document various strtod bugs, with some fixes.
26821         * doc/posix-functions/strtod.texi (strtod): Document bugs with
26822         "-0x", "inf", "nan", and hex constants.
26823         * doc/posix-functions/atof.texi (atof): Likewise.
26824         * modules/stdlib (Makefile.am): Support strtod.
26825         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
26826         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
26827         detect additional strtod bugs.
26828         * lib/stdlib.in.h (rpl_strtod): Add declarations.
26829         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
26830         bool where appropriate.  Parse 'inf' and 'nan'.
26831         * tests/test-strtod.c: New file.
26832         * modules/strtod (Depends-on): Add stdbool, stdlib.
26833         (configure.ac): Turn on module indicator.
26834         * modules/strtod-tests: New module.
26835
26836 2008-03-29  Eric Blake  <ebb9@byu.net>
26837
26838         Fix ftell on mingw.
26839         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
26840         * modules/ftell-tests (Depends-on): Add binary-io.
26841         * modules/ftello-tests (Depends-on): Likewise.
26842         * tests/test-ftell.c (main): Enhance test to cover behavior after
26843         ungetc.  Enforce binary mode.
26844         * tests/test-ftello.c (main): Likewise.
26845
26846         Pass test-freadseek on cygwin.
26847         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
26848         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
26849         ungetc buffer.
26850
26851         * tests/test-fflush2.c (main): Fix typo.
26852
26853 2008-03-29  Bruno Haible  <bruno@clisp.org>
26854
26855         * tests/test-fflush2.c (main): Temporarily disable the contents of
26856         this test.
26857         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
26858         Reported by Eric Blake.
26859
26860 2008-03-28  Simon Josefsson  <simon@josefsson.org>
26861
26862         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
26863         (GC_SHA224_DIGEST_SIZE): Add.
26864
26865         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
26866         (gc_hash_digest_length): Likewise.
26867         (gc_hash_buffer): Likewise.
26868
26869 2008-03-25  Bruno Haible  <bruno@clisp.org>
26870
26871         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
26872         detail which gettext release to use.
26873         Reported by Simon Josefsson.
26874
26875 2008-03-26  Jim Meyering  <meyering@redhat.com>
26876
26877         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
26878         * modules/gnumakefile (clean-GNUmakefile): Also, use
26879         test ... && ... || : syntax rather than if-then ... fi.
26880
26881         gnumakefile: Don't double-quote-expand $(VPATH) value.
26882         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
26883
26884 2008-03-24  Eric Blake  <ebb9@byu.net>
26885
26886         Alter GNUmakefile to install into top directory.
26887         * modules/maintainer-makefile: Split, and add dependency...
26888         * modules/gnumakefile: to this new module.
26889         * build-aux/GNUmakefile: Move...
26890         * top/GNUmakefile: ...here.
26891         * build-aux/maint.mk: Move...
26892         * top/maint.mk: ...here.
26893         * MODULES.html.sh (Support for maintaining...): Document new
26894         module.
26895
26896 2008-03-23  Bruno Haible  <bruno@clisp.org>
26897
26898         * gnulib-tool: New options --vc-files, --no-vc-files.
26899         (func_usage): Document them.
26900         (vc_files): New variable.
26901         (func_import): Consider vc_files.
26902         (func_create_testdir): Set vc_files to empty.
26903         Suggested by Jim Meyering and Karl Berry.
26904
26905 2008-03-23  Bruno Haible  <bruno@clisp.org>
26906
26907         Fix regex compilation error on HP-UX 11.
26908         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
26909         * modules/regex (Files): Add m4/mbstate_t.m4.
26910         Reported by Ton Voon <ton.voon@altinity.com>.
26911
26912 2008-03-23  Bruno Haible  <bruno@clisp.org>
26913
26914         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
26915
26916 2008-03-23  Eric Blake  <ebb9@byu.net>
26917             Bruno Haible  <bruno@clisp.org>
26918
26919         Install files from top/ in the destination directory.
26920         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
26921         augmentation also for the files from top/.
26922         (func_import, func_create_testdir): Rewrite file names:
26923         top/filename -> filename.
26924
26925 2008-03-23  Bruno Haible  <bruno@clisp.org>
26926
26927         Tweak "gnulib --version" output.
26928         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
26929
26930 2008-03-23  Bruno Haible  <bruno@clisp.org>
26931
26932         Tweak "gnulib --version" output.
26933         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
26934         rather than contents of ChangeLog, when possible.
26935
26936 2008-03-21  Eric Blake  <ebb9@byu.net>
26937
26938         More --version tweaks.
26939         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
26940         date of last ChangeLog entry.
26941
26942 2008-03-21  Jim Meyering  <meyering@redhat.com>
26943
26944         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
26945
26946 2008-03-20  Eric Blake  <ebb9@byu.net>
26947
26948         VPATH fix.
26949         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
26950
26951 2008-03-20  Simon Josefsson  <simon@josefsson.org>
26952
26953         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
26954         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
26955
26956 2008-03-20  Eric Blake  <ebb9@byu.net>
26957
26958         Sync GNUmakefile with coreutils.
26959         * build-aux/GNUmakefile (have-Makefile): Rename...
26960         (_have-Makefile): ...to this, for namespace consideration.
26961         (GNUmakefile.cfg): Include, if present.
26962         (_autoreconf): Define a default.
26963         (_is-dist-target): New rule for rebuilds to pick up intra-release
26964         version.
26965         (maint-cfg.mk): Rename...
26966         (cfg.mk): ...to this.
26967
26968 2008-03-18  Jim Meyering  <meyering@redhat.com>
26969
26970         New script and module: mktempd
26971         * MODULES.html.sh (maint+release support): Add mktempd.
26972         * build-aux/mktempd: New file.
26973         * modules/mktempd: New file.
26974
26975 2008-03-15  Jim Meyering  <meyering@redhat.com>
26976
26977         Undo last change.
26978         * lib/sha1.c, lib/md5.c: 63 != ~63.
26979         Reported by Andreas Schwab.
26980
26981         sha1.c, md5.c: Hoist a redundant expression.
26982         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
26983         "ctx->buflen" only once, before calling *_process_block.
26984         * lib/md5.c (md5_process_bytes): Likewise.
26985
26986 2008-03-14  Eric Blake  <ebb9@byu.net>
26987
26988         Bump copyright year in files generated by gnulib-tool.
26989         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
26990         gnulib-tool, rather than hard-coding it.
26991
26992         Fix 'gnulib-tool --version' output to work with git.
26993         * gnulib-tool (func_gnulib_dir): New function, extracted from...
26994         (startup): ...here.
26995         (func_version): Use it to invoke git-version-gen, rather than
26996         relying on CVS keyword expansion.  Modernize wording.
26997         (cvsdatestamp, last_checkin_date, version): Kill unused
26998         variables.
26999
27000 2008-03-12  Jim Meyering  <meyering@redhat.com>
27001
27002         Recognize optional cast of the argument to free.
27003         * build-aux/useless-if-before-free: Update regexps.
27004
27005         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
27006
27007 2008-03-11  Bruno Haible  <bruno@clisp.org>
27008
27009         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
27010         by a single package.
27011         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
27012         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
27013         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
27014         Reported by Sam Steingold <sds@gnu.org>.
27015
27016 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
27017
27018         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
27019         repositories.
27020
27021 2008-03-11  Bruno Haible  <bruno@clisp.org>
27022
27023         Avoid conflicts between local macro definitions.
27024         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
27025         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
27026
27027 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
27028             Bruno Haible  <bruno@clisp.org>
27029
27030         Make va_copy work with some version of xlc on AIX 5.1.
27031         * lib/stdarg.in.h: New file.
27032         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
27033         On AIX, use a <stdarg.h> file substitute.
27034         * modules/stdarg (Files): Add lib/stdarg.in.h.
27035         (Depends-on): Add include_next.
27036         (Makefile.am): Build a stdarg.h substitute if requested.
27037         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
27038
27039 2008-03-10  Bruno Haible  <bruno@clisp.org>
27040
27041         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
27042         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
27043         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
27044
27045 2008-03-10  Bruno Haible  <bruno@clisp.org>
27046
27047         * modules/stdlib (Depends-on): Add include_next, remove
27048         absolute-header.
27049
27050 2008-03-09  Bruno Haible  <bruno@clisp.org>
27051
27052         * lib/freadahead.h (freadahead): Document more precisely.
27053         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
27054         the sum of both buffer sizes.
27055         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
27056         * NEWS: Document the change.
27057
27058 2008-03-09  Bruno Haible  <bruno@clisp.org>
27059
27060         Extend freadptr to return also the buffer size.
27061         * lib/freadptr.h (freadptr): Add sizep argument.
27062         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
27063         (freadptr): Add sizep argument. Determine buffer size like freadahead
27064         does.
27065         * tests/test-freadptr.c: Don't include freadahead.h.
27066         (main): Adapt for new calling convention of freadptr.
27067         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
27068         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
27069         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
27070         tests/test-freadptr2.sh.
27071         (Depends): Remove freadahead.
27072         (TESTS): Add test-freadptr2.sh.
27073         (check_PROGRAMS): Add test-freadptr2.
27074
27075 2008-03-09  Bruno Haible  <bruno@clisp.org>
27076
27077         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
27078         Report and solution by Simon Josefsson.
27079
27080 2008-03-06  Bruno Haible  <bruno@clisp.org>
27081
27082         Make fflush after ungetc work on BSD platforms.
27083         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
27084         * tests/test-fflush2.c: New file.
27085         * tests/test-fflush2.sh: New file.
27086         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
27087         tests/test-fflush2.c.
27088         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
27089         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
27090
27091 2008-03-06  Eric Blake  <ebb9@byu.net>
27092
27093         Likewise for ftello.
27094         * modules/ftello (Dependencies): Add extensions.
27095         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
27096
27097 2008-03-06  Bruno Haible  <bruno@clisp.org>
27098
27099         * modules/fseeko (Dependencies): Add extensions.
27100         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
27101         Needed on glibc systems.
27102
27103 2008-03-06  Bruno Haible  <bruno@clisp.org>
27104
27105         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
27106         email address.
27107         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27108
27109 2008-03-06  Bruno Haible  <bruno@clisp.org>
27110
27111         * users.txt: Add libgnupdf.
27112
27113 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27114
27115         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
27116         (Header File Substitutes, Function Substitutes,
27117         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
27118         (Build robot for gnulib): Fix typo.
27119
27120 2008-03-06  Bruno Haible  <bruno@clisp.org>
27121
27122         * doc/gnulib-tool.texi (VCS Issues): Small updates.
27123         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27124
27125 2008-03-06  Bruno Haible  <bruno@clisp.org>
27126
27127         * doc/func.texi: New file, extracted from doc/gnulib.texi.
27128         * doc/gnulib.texi: Include it.
27129
27130 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27131
27132         * modules/func (License): Change license to unlimited; there was
27133         no LGPL parts in the module anyway.
27134
27135 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27136
27137         * modules/__func__: Renamed to modules/func.
27138         * modules/__func__-tests: Renamed to modules/func-tests.
27139         * tests/test-__func__.c: Renamed to tests/test-func.c.
27140         * m4/__func__.m4: Renamed to m4/func.m4.
27141         * doc/gnulib.texi (__func__): Section renamed to func.
27142         Suggested by Eric Blake <ebb9@byu.net>.
27143
27144 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27145
27146         * doc/gnulib.texi (__func__): Use C99 terminology when talking
27147         about __func__.  Make example self-contained.  Suggested by Eric
27148         Blake <ebb9@byu.net>.
27149
27150         * tests/test-__func__.c (main): Avoid extraneous () around __func.
27151         Suggested by Eric Blake <ebb9@byu.net>.
27152
27153 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27154
27155         * modules/__func__: New file.
27156         * modules/__func__-tests: New file.
27157         * tests/test-__func__.c: New file.
27158         * m4/__func__.m4: New file.
27159         * doc/gnulib.texi (__func__): Document __func__ module.
27160
27161 2008-03-05  Simon Josefsson  <simon@josefsson.org>
27162
27163         * modules/byteswap (License): Re-license as LGPLv2+.
27164
27165 2008-03-05  Simon Josefsson  <simon@josefsson.org>
27166
27167         * doc/Makefile: Add pdf target.
27168
27169 2008-03-05  Simon Josefsson  <simon@josefsson.org>
27170
27171         * modules/inline (License): Use 'unlimited', since there are only
27172         *.m4 files in this module.
27173
27174 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
27175             Bruno Haible  <bruno@clisp.org>
27176
27177         Add support for HP C 7.1 on OpenVMS 8.3.
27178         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
27179
27180 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
27181
27182         Update VMS specifics.
27183         * lib/getopt.c [VMS]: Remove include of unixlib.h.
27184
27185 2008-03-02  Jim Meyering  <meyering@redhat.com>
27186
27187         Remove the last dependency on the "free" module.
27188         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
27189         Reported by Bob Proulx.
27190
27191         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
27192
27193         Remove useless "if" tests before free.  Deprecate "free" module.
27194         * doc/posix-functions/free.texi: Mention that this
27195         module is no longer useful.
27196         * modules/free (Notice): Say this module is obsolete.
27197         * modules/readutmp (Depends-on): Remove free.
27198         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
27199         * lib/putenv.c (putenv): Likewise.
27200         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
27201         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
27202         * tests/test-c-strcasestr.c (main): Likewise.
27203         * tests/test-c-strstr.c (main): Likewise.
27204         * tests/test-mbscasestr1.c (main): Likewise.
27205         * tests/test-mbscasestr2.c (main): Likewise.
27206         * tests/test-mbsstr1.c (main): Likewise.
27207         * tests/test-mbsstr2.c (main): Likewise.
27208         * tests/test-memmem.c (main): Likewise.
27209         * tests/test-strcasestr.c (main): Likewise.
27210         * tests/test-striconv.c (main): Likewise.
27211         * tests/test-striconveh.c (main): Likewise.
27212         * tests/test-striconveha.c (main): Likewise.
27213         * tests/test-strstr.c (main): Likewise.
27214
27215         * build-aux/git-version-gen: Adjust a comment and the Usage string.
27216
27217         bootstrap: sync from coreutils again
27218         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
27219
27220 2008-03-01  Jim Meyering  <meyering@redhat.com>
27221
27222         bootstrap: sync from coreutils
27223         * build-aux/bootstrap (update_po_files): Copy a .po file into place
27224         also when the target doesn't exist.
27225
27226 2008-03-01  Eric Blake  <ebb9@byu.net>
27227
27228         Fix bugs in last patch.
27229         * lib/memchr2.c (memchr2): Fix typo.
27230         * tests/test-memchr2.c: Test previous bug, and don't use GNU
27231         extension.
27232         Reported by Bruce Korb.
27233
27234         New module 'memchr2'.
27235         * modules/memchr2: New file.
27236         * modules/memchr2-tests: Likewise.
27237         * lib/memchr2.h: Likewise.
27238         * lib/memchr2.c: Likewise, based on memchr.c.
27239         * tests/test-memchr2.c: New test.
27240         * MODULES.html.sh (String handling): Add memchr2.
27241
27242 2008-02-29  Bruno Haible  <bruno@clisp.org>
27243
27244         * modules/freadseek-tests: New file.
27245         * tests/test-freadseek.sh: New file.
27246         * tests/test-freadseek.c: New file.
27247
27248         New module 'freadseek'.
27249         * modules/freadseek: New file.
27250         * lib/freadseek.h: New file.
27251         * lib/freadseek.c: New file.
27252         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
27253
27254 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
27255
27256         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
27257         wydawca.
27258
27259         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
27260         program_invocation_name and program_invocation_short_name are
27261         present.
27262
27263 2008-02-28  Bruno Haible  <bruno@clisp.org>
27264
27265         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
27266         * tests/test-freadptr.sh: Also test non-seekable stdin.
27267
27268 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
27269
27270         * build-aux/bootstrap (source_base, m4_base)
27271         (doc_base, tests_base): New variables.
27272         (gnulib_tool_options): Do not hardcode base directories, use
27273         the above variables instead.
27274
27275 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
27276
27277         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
27278
27279 2008-02-28  Bruno Haible  <bruno@clisp.org>
27280
27281         * modules/freadptr-tests: New file.
27282         * tests/test-freadptr.sh: New file.
27283         * tests/test-freadptr.c: New file.
27284
27285         New module 'freadptr'.
27286         * modules/freadptr: New file.
27287         * lib/freadptr.h: New file.
27288         * lib/freadptr.c: New file.
27289         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
27290
27291 2008-02-26  Karl Berry  <karl@freefriends.org>
27292
27293         Sync from Libtool:
27294         * libltdl/argz.c (argz_add, argz_count): New functions.
27295         * libltdl/argz.in.h: Declare them.
27296         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
27297
27298 2008-02-22  Bruno Haible  <bruno@clisp.org>
27299
27300         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
27301         is a pointer type.  Needed for HP-UX 10.
27302         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
27303         * doc/posix-functions/gmtime_r.texi: Likewise.
27304         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
27305
27306 2008-02-24  Bruno Haible  <bruno@clisp.org>
27307
27308         * modules/environ-tests: New file.
27309         * tests/test-environ.c: New file.
27310
27311         New module 'environ'.
27312         * modules/environ: New file.
27313         * lib/unistd.in.h (environ): New declaration.
27314         * m4/environ.m4: New file.
27315         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
27316         after use.
27317         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
27318         HAVE_DECL_ENVIRON.
27319         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
27320         HAVE_DECL_ENVIRON.
27321         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
27322         wrong claim that 'environ' is missing on some systems.
27323         * modules/execute (Depends-on): Add environ.
27324         * lib/execute.c (environ): Remove fallback declaration.
27325         * modules/pipe (Depends-on): Add environ.
27326         * lib/pipe.c (environ): Remove fallback declaration.
27327         * modules/setenv (Depends-on): Add environ.
27328         * lib/setenv.c (environ): Remove fallback declaration.
27329         * modules/unsetenv (Depends-on): Add environ.
27330         * lib/unsetenv.c (environ): Remove fallback declaration.
27331         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
27332         m4/environ.m4.
27333         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
27334         (gl_PREREQ_UNSETENV): Likewise.
27335
27336 2008-02-24  Bruno Haible  <bruno@clisp.org>
27337
27338         * doc/posix-functions/environ.texi: Document the MacOS X problem.
27339
27340 2008-02-20  Bob Proulx  <bob@proulx.com>
27341
27342         Enable use of older two part flavor 'git describe'.
27343         * build-aux/git-version-gen: If using the older two part flavor of
27344         git version then recreate the third part now present in the
27345         newer three part flavor of git describe.
27346
27347 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
27348
27349         * lib/fts.c (fts_build): Typo correction to comment.
27350
27351 2008-02-17  Bruno Haible  <bruno@clisp.org>
27352
27353         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
27354         generating no-op conflicts.
27355
27356 2008-02-17  Bruno Haible  <bruno@clisp.org>
27357
27358         Speed up by 10%.
27359         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
27360         result_entries, rather than an index-based loop.
27361
27362 2008-02-17  Bruno Haible  <bruno@clisp.org>
27363
27364         Speed up by 25%.
27365         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
27366         'hashcode_cached'.
27367         (entry_create): New function.
27368         (entry_hashcode): Use the cached hashcode if possible.
27369         (read_changelog_file, try_split_merged_entry): Use entry_create.
27370
27371 2008-02-17  Bruno Haible  <bruno@clisp.org>
27372
27373         Speed up from O(n^2) to O(n) for long ChangeLog files.
27374         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
27375         (read_changelog_file): Change implementation of entries_reversed list
27376         to rbtreehash.
27377         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
27378
27379 2008-02-17  Bruno Haible  <bruno@clisp.org>
27380
27381         New option --split-merged-entry.
27382         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
27383         (find_paragraph_end, try_split_merged_entry): New functions.
27384         (long_options): Add option --split-merged-entry.
27385         (usage): Document option --split-merged-entry.
27386         (main): Implement option --split-merged-entry.
27387         Reported by Eric Blake.
27388
27389 2008-02-17  Bruno Haible  <bruno@clisp.org>
27390
27391         * lib/git-merge-changelog.c: Include c-strstr.h.
27392         (main): Support the "git pull --rebase" situation.
27393         * modules/git-merge-changelog (Depends-on): Add c-strstr.
27394         Reported by Eric Blake.
27395
27396 2008-02-16  Eric Blake  <ebb9@byu.net>
27397
27398         Avoid doubling \ in common case of "c-maybe" quoting style.
27399         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
27400         eliding outer quotes.
27401         * lib/quotearg.h: Document this.
27402         * tests/test-quotearg.c (result_strings, inputs, results_g)
27403         (flag_results, locale_results): Test it by adding a new string to
27404         each test group.
27405         (compare_strings): Test new string.
27406
27407 2008-02-13  Eric Blake  <ebb9@byu.net>
27408
27409         Avoid trigraph quoting in default output.
27410         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
27411         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
27412         unless explicitly requested.
27413         * tests/test-quotearg.c (flag_results, main): Add additional tests.
27414
27415 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
27416
27417         Don't rely on signed integer overflowing to negative value.
27418         * lib/getugroups.c (getugroups): Include <limits.h>.
27419         Instead, compare against INT_MAX, and increment only if the test passes.
27420
27421 2008-02-13  Jim Meyering  <meyering@redhat.com>
27422         and Eric Blake  <ebb9@byu.net>
27423
27424         Avoid shadowing warning and compile errors on Linux.
27425         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
27426         forwarding macros on Linux.
27427         (dcgettext): Define a stub, for Linux.
27428         (results_g, main): Avoid warnings.
27429
27430 2008-02-12  Eric Blake  <ebb9@byu.net>
27431
27432         Silence warning in last patch.
27433         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
27434
27435         Quotearg part 4: add tests, fix c-maybe colon quoting.
27436         * lib/quotearg.h: Improve documentation.
27437         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
27438         escapes when adding outer quotes.  When quoting trigraphs, use
27439         valid C notation.  When quoting NUL, omit extra characters if next
27440         character is not digit.  Alter prototype.
27441         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
27442         callers.
27443         * modules/quotearg-tests: New module.
27444         * tests/test-quotearg.c: New test.
27445
27446 2008-02-07  Eric Blake  <ebb9@byu.net>
27447
27448         Quotearg part 3: add flag to control outer quote elision.
27449         * lib/quotearg.h (c_maybe_quoting_style): New style.
27450         (enum quoting_flags): Better documentation of flags.
27451         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
27452         c-maybe style.
27453         (quotearg_buffer_restyled): Handle new flag to elide outer
27454         quotes.
27455
27456         Quotearg part 2: add flag that can control NUL elision.
27457         * lib/quotearg.h (set_quoting_flags): New prototype.
27458         * lib/quotearg.c (struct quoting_options): Add flag field.
27459         (set_quoting_flags): New function.
27460         (quotearg_buffer_restyled): Add flags parameter.
27461         (quotearg_alloc_mem): Set the flag if length cannot be returned.
27462         (quotearg_n_options): Set the flag, since length cannot be
27463         returned.
27464         (quoting_options_from_style): Default flags correctly.
27465
27466         Quotearg part 1: more wrappers, restore quotearg_char state.
27467         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
27468         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
27469         (quotearg_colon_mem): New wrappers.
27470         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
27471         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
27472         functions.
27473         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
27474         (quotearg_colon_mem): New functions.
27475
27476 2008-02-11  Bruno Haible  <bruno@clisp.org>
27477
27478         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
27479         library in the current directory: it does not work with parallel make.
27480         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27481
27482 2008-02-11  Bruno Haible  <bruno@clisp.org>
27483
27484         * .gitattributes: New file.
27485
27486 2008-02-11  Jim Meyering  <meyering@redhat.com>
27487
27488         useless-if-before-free: Fix reversed exit values.
27489         * build-aux/useless-if-before-free: Use correct values
27490         for EXIT_MATCH and EXIT_NO_MATCH.
27491
27492         * build-aux/useless-if-before-free: Close stdout carefully.
27493
27494 2008-02-10  Bruno Haible  <bruno@clisp.org>
27495
27496         New module 'git-merge-changelog'.
27497         * modules/git-merge-changelog: New file.
27498         * lib/git-merge-changelog.c: New file.
27499
27500 2008-02-10  Jim Meyering  <meyering@redhat.com>
27501
27502         useless-if-before-free: New option: --list (-l).
27503
27504         useless-if-before-free: Don't exit immediately upon open failure.
27505         * build-aux/useless-if-before-free: Exit 2 for errors.
27506         Upon failure to open a file, don't exit immediately.
27507         Rather, just warn and continue with any remaining files.
27508
27509 2008-02-10  Bruno Haible  <bruno@clisp.org>
27510
27511         New abstract list operation 'node_set_value'.
27512         * lib/gl_list.h (gl_list_node_set_value): New function.
27513         (struct gl_list_implementation): New field node_set_value.
27514         * lib/gl_list.c (gl_list_node_set_value): New function.
27515         * lib/gl_array_list.c (gl_array_node_set_value): New function.
27516         (gl_array_list_implementation): Update.
27517         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
27518         (gl_carray_list_implementation): Update.
27519         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
27520         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
27521         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
27522         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
27523         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
27524         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
27525         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
27526         Update.
27527         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
27528         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
27529         (gl_sublist_list_implementation): Update.
27530
27531 2008-02-10  Bruno Haible  <bruno@clisp.org>
27532
27533         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
27534         Needed when ELEMENT is #defined to 'some_type *'.
27535
27536 2008-02-10  Jim Meyering  <meyering@redhat.com>
27537
27538         New script and module: useless-if-before-free
27539         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
27540         * build-aux/useless-if-before-free: New file.
27541         * modules/useless-if-before-free: New file.
27542
27543         * build-aux/gitlog-to-changelog: Use committer date, not author date.
27544
27545         xstrtol_error: Fix typo.
27546         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
27547         s/exit_failure/exit_status/.
27548
27549 2008-02-09  Jim Meyering  <meyering@redhat.com>
27550
27551         New script and module: gitlog-to-changelog
27552         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
27553         * modules/gitlog-to-changelog: New file.
27554         * build-aux/gitlog-to-changelog: New file.
27555
27556 2008-02-08  Jim Meyering  <meyering@redhat.com>
27557
27558         Avoid two "parameter unused" warnings.
27559         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
27560         Mark "st" as used.
27561
27562         Use "git COMMAND", not "git-COMMAND".
27563         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
27564         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
27565         * build-aux/git-version-gen: Use "git status", not "git-status".
27566
27567 2008-02-07  Bruno Haible  <bruno@clisp.org>
27568
27569         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
27570         Avoids a crash on Windows Vista.
27571         Reported by Adam Strzelecki <ono@java.pl> via
27572         Simon Josefsson <simon@josefsson.org>.
27573
27574 2008-02-06  Bruno Haible  <bruno@clisp.org>
27575
27576         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
27577         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
27578         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
27579         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
27580         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
27581         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
27582         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
27583         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
27584         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
27585         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27586         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27587         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27588         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27589         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27590         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27591         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
27592         left-adjust flag.
27593         * tests/test-snprintf-posix.h (test_function): Likewise.
27594         * tests/test-sprintf-posix.h (test_function): Likewise.
27595         * tests/test-vasprintf-posix.c (test_function): Likewise.
27596         * doc/posix-functions/fprintf.texi: Update.
27597         * doc/posix-functions/printf.texi: Update.
27598         * doc/posix-functions/snprintf.texi: Update.
27599         * doc/posix-functions/sprintf.texi: Update.
27600         * doc/posix-functions/vfprintf.texi: Update.
27601         * doc/posix-functions/vprintf.texi: Update.
27602         * doc/posix-functions/vsnprintf.texi: Update.
27603         * doc/posix-functions/vsprintf.texi: Update.
27604         Reported by Peter Fales <psfales@alcatel-lucent.com>.
27605
27606 2008-02-06  Bruno Haible  <bruno@clisp.org>
27607
27608         Fix bug introduced on 2008-01-26.
27609         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
27610
27611 2008-02-06  Bruno Haible  <bruno@clisp.org>
27612
27613         Fix bug introduced on 2007-06-10.
27614         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
27615         !NEED_PRINTF_FLAG_ZERO.
27616
27617 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
27618
27619         getloadavg: use libperfstat on AIX5
27620         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
27621
27622 2008-02-03  Bruno Haible  <bruno@clisp.org>
27623
27624         * lib/diffseq.h: Add comments about required #includes.
27625         Reported by Michael Biggs <gnulib@doubleplum.net>.
27626
27627 2008-02-01  Bruno Haible  <bruno@clisp.org>
27628
27629         * users.txt: Add gnuit.
27630
27631 2008-01-31  Bruno Haible  <bruno@clisp.org>
27632
27633         * lib/md4.c (set_uint32): Mark as inline.
27634         * lib/md5.c (set_uint32): Likewise.
27635         * lib/sha1.c (set_uint32): Likewise.
27636         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
27637         * m4/md5.m4 (gl_MD5): Likewise.
27638         * m4/sha1.m4 (gl_SHA1): Likewise.
27639
27640 2008-01-31  Jim Meyering  <meyering@redhat.com>
27641
27642         Use "sizeof VAR", rather than a literal "4".
27643         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
27644         * lib/md4.c (md4_read_ctx): Likewise.
27645         * lib/sha1.c (sha1_read_ctx): Likewise.
27646
27647 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27648
27649         * tests/test-sha1.c: New file, based on test-md5.c.
27650
27651         * modules/crypto/sha1-tests: New file.
27652
27653 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27654
27655         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
27656
27657 2008-01-31  Jim Meyering  <meyering@redhat.com>
27658
27659         Prefer "sizeof v" over the equivalent "4".
27660         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
27661         * lib/md5.c (set_uint32): Likewise.
27662         * lib/sha1.c (set_uint32): Likewise.
27663
27664 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27665
27666         * lib/sha1.c (set_uint32): Mark function as static.
27667
27668 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27669
27670         md2: clarify comments to say that alignment is not required.
27671         * lib/md2.h: Remove warning about alignment in comment.
27672         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
27673         never been required.
27674
27675 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27676
27677         md4: adapt alignment constraint fix from sha1.
27678         * lib/md4.c (set_uint32): New function, from sha1.c
27679         (md4_read_ctx): Use it.
27680         (md4_finish_ctx): Doc fix.
27681         * lib/md4.h: Doc fix.
27682
27683 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27684
27685         md5: adapt alignment constraint fix from sha1.
27686         * lib/md5.c (set_uint32): New function, from sha1.c
27687         (md5_read_ctx): Use it.
27688         (md5_finish_ctx): Doc fix.
27689         * lib/md5.h: Doc fix.
27690
27691 2008-01-30  Peter Palfrader  <weasel@debian.org>
27692
27693         sha1: remove the result buffer alignment constraint
27694         * lib/sha1.c (set_uint32): New function.
27695         (sha1_read_ctx): Rewrite to remove the result buffer alignment
27696         constraint.
27697         (sha1_finish_ctx): Remove comment warning about alignment constraint.
27698         * lib/sha1.h: Likewise.
27699
27700 2008-01-30  Andreas Schwab  <schwab@suse.de>
27701             Bruno Haible  <bruno@clisp.org>
27702
27703         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
27704         correct definition of LDBL_MIN_EXP.
27705
27706 2008-01-30  Karl Berry  <karl@gnu.org>
27707
27708         * config/srclist-update: try to preserve x bit on updates.
27709         * config/srclistvars.sh: update for karl.
27710
27711 2008-01-29  Jim Meyering  <meyering@redhat.com>
27712
27713         vasnprintf.c: Avoid warning about unused label
27714         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
27715         "overflow" label definition and associated code with the
27716         same cpp condition that guards the sole use of that label.
27717
27718 2008-01-26  Bruno Haible  <bruno@clisp.org>
27719
27720         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
27721         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
27722         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
27723         * lib/isnanl-nolibm.h (isnanl): Likewise.
27724         Reported by Paul Eggert <eggert@cs.ucla.edu>.
27725
27726 2008-01-26  Bruno Haible  <bruno@clisp.org>
27727
27728         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
27729         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
27730
27731 2008-01-26  Bruno Haible  <bruno@clisp.org>
27732
27733         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
27734         GCC >= 4.0 built-in.
27735         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
27736
27737 2008-01-26  Bruno Haible  <bruno@clisp.org>
27738
27739         Rename isnan, applicable to 'double' only, to isnand.
27740         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
27741         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
27742         (configure.ac): Update.
27743         (Include): Replace "isnan.h" with "isnand.h".
27744         * m4/isnand.m4: Renamed from m4/isnan.m4.
27745         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
27746         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
27747         instead of isnan.c.
27748         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
27749         instead of HAVE_ISNAN_IN_LIBC.
27750         (isnand): Renamed from isnan.
27751         * lib/isnand.c: New file.
27752         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
27753         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
27754         (Makefile.am): Update.
27755         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
27756         Include isnand.h instead of isnan.h.
27757         (main): Test isnand instead of isnan.
27758         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
27759         isnan-nolibm.
27760         * modules/frexp (Depends-on): Likewise.
27761         * modules/frexp-tests (Depends-on): Likewise.
27762         * modules/frexp-nolibm (Depends-on): Likewise.
27763         * modules/frexp-nolibm-tests (Depends-on): Likewise.
27764         * modules/isfinite (Depends-on): Likewise.
27765         * modules/round-tests (Depends-on): Likewise.
27766         * modules/signbit (Depends-on): Likewise.
27767         * modules/signbit-tests (Depends-on): Likewise.
27768         * modules/snprintf-posix (Depends-on): Likewise.
27769         * modules/sprintf-posix (Depends-on): Likewise.
27770         * modules/trunc-tests (Depends-on): Likewise.
27771         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27772         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27773         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27774         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27775         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27776         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27777         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27778         * modules/vasnprintf-posix (Depends-on): Likewise.
27779         * modules/vasprintf-posix (Depends-on): Likewise.
27780         * modules/vfprintf-posix (Depends-on): Likewise.
27781         * modules/vsnprintf-posix (Depends-on): Likewise.
27782         * modules/vsprintf-posix (Depends-on): Likewise.
27783         * lib/frexp.c: Include isnand.h instead of isnan.h.
27784         (ISNAN): Set to isnand instead of isnan.
27785         * lib/isfinite.c: Include isnand.h instead of isnan.h.
27786         (gl_isfinited): Use isnand instead of isnan.
27787         * lib/signbitd.c: Include isnand.h instead of isnan.h.
27788         (gl_signbitd): Use isnand instead of isnan.
27789         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
27790         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
27791         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
27792         (main): Use isnand instead of isnan.
27793         * tests/test-round1.c: Include isnand.h.
27794         (main): Use isnand instead of isnan.
27795         * tests/test-round2.c: Include isnand.h instead of isnan.h.
27796         (ISNAN): Set to isnand instead of isnan.
27797         * tests/test-trunc1.c: Include isnand.h.
27798         (main): Use isnand instead of isnan.
27799         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
27800         (equal): Use isnand instead of isnan.
27801         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
27802         isnand-nolibm.
27803         * NEWS: Mention the change.
27804
27805 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
27806             Bruno Haible  <bruno@clisp.org>
27807
27808         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
27809         the GCC builtins for signbits are present and set
27810         REPLACE_SIGNBIT_USING_GCC if so.
27811         * lib/math.in.h (signbit): Define using GCC builtins if
27812         REPLACE_SIGNBIT_USING_GCC is set.
27813         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
27814         REPLACE_SIGNBIT_USING_GCC.
27815         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
27816
27817 2008-01-25  Jim Meyering  <meyering@redhat.com>
27818
27819         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
27820         * lib/poll.c: Include <config.h>, not "config.h".
27821         * tests/test-getaddrinfo.c: Likewise.
27822
27823 2008-01-25  Simon Josefsson  <simon@josefsson.org>
27824
27825         * modules/sockets-tests: New file.
27826
27827 2008-01-24  Simon Josefsson  <simon@josefsson.org>
27828
27829         * modules/sockets: New module, can be used to call WSA_Startup and
27830         WSA_Cleanup when needed.
27831
27832         * lib/sockets.h, lib/sockets.c: New files.
27833
27834         * m4/sockets.m4: New file.
27835
27836         * tests/test-sockets.c: New file.
27837
27838 2008-01-19  Bruno Haible  <bruno@clisp.org>
27839
27840         * doc/posix-headers: Renamed from doc/headers.
27841         * doc/posix-functions: Renamed from doc/functions.
27842         * doc/gnulib.texi: Update.
27843
27844 2008-01-19  Bruno Haible  <bruno@clisp.org>
27845
27846         * doc/glibc-functions/strcasestr.texi: Include contents of
27847         doc/functions/strcasestr.texi, fixing the list of platforms.
27848         * doc/functions/strcasestr.texi: Remove file.
27849
27850 2008-01-19  Bruno Haible  <bruno@clisp.org>
27851
27852         * doc/glibc-functions/memmem.texi: Include contents of
27853         doc/functions/memmem.texi.
27854         * doc/functions/memmem.texi: Remove file.
27855
27856 2008-01-18  Bruno Haible  <bruno@clisp.org>
27857
27858         * doc/glibc-functions/*.texi: New files.
27859         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
27860         to use the new files.
27861
27862 2008-01-17  Bruno Haible  <bruno@clisp.org>
27863
27864         * tests/test-gethostname.c (main): Fix printf statement.
27865
27866 2008-01-17  Simon Josefsson  <simon@josefsson.org>
27867
27868         * modules/gethostname-tests: New file.
27869
27870         * tests/test-gethostname.c: New file.
27871
27872 2008-01-17  Simon Josefsson  <simon@josefsson.org>
27873
27874         * lib/gethostname.c: Include string.h unconditionally, strncpy is
27875         used by the UNAME case.  Reported by Bruno Haible
27876         <bruno@clisp.org>.
27877
27878 2008-01-17  Eric Blake  <ebb9@byu.net>
27879
27880         Convert c-strcasestr to be more efficient.
27881         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
27882         (Depends-on): Add c-strcase, remove malloca, strnlen.
27883         * tests/test-c-strcasestr.c (main): Enhance test.
27884         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
27885
27886 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
27887
27888         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
27889         Use it in creating po/Makevars.
27890
27891 2008-01-15  Simon Josefsson  <simon@josefsson.org>
27892
27893         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
27894         Applications that requires it should initialize libgcrypt
27895         manually.
27896
27897 2008-01-16  Simon Josefsson  <simon@josefsson.org>
27898
27899         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
27900
27901 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
27902
27903         Fix problem with getdate on mingw32 reported by Simon Josefsson
27904         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
27905         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
27906         tzname", when deciding whether to declare tzname.
27907         * lib/strftime.c (tzname): Likewise.
27908
27909 2008-01-15  Bruno Haible  <bruno@clisp.org>
27910
27911         Work around a MacOS X 10.5 bug in frexpl().
27912         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
27913         * doc/functions/frexpl.texi: Document the bug.
27914         Reported by Elias Pipping <pipping@gentoo.org>.
27915
27916 2008-01-14  Eric Blake  <ebb9@byu.net>
27917
27918         Touch up previous patch.
27919         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
27920         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
27921
27922         Convert strcasestr module to use Two-Way algorithm.
27923         * modules/strcasestr-simple: New module, based on the old
27924         strcasestr, but with Two-Way rather than KMP.
27925         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
27926         * lib/string.in.h (rpl_strcasestr): Declare.
27927         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
27928         performance.
27929         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
27930         * modules/string (Makefile.am): Support strcasestr.
27931         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
27932         * modules/strcasestr-tests (Depends-on): Check for alarm.
27933         * tests/test-strcasestr.c: Augment test.
27934         * lib/str-two-way.h: Clean up stray macro.
27935         * NEWS: Document new module.
27936         * MODULES.html.sh (string handling): Likewise.
27937         * doc/functions/strcasestr.texi: New file.
27938         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
27939         here, since it is not a POSIX function.
27940
27941 2008-01-14  Colin Watson  <cjwatson@debian.org>
27942             Bruno Haible  <bruno@clisp.org>
27943
27944         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
27945         works fine; if not, set REPLACE_STRSIGNAL.
27946         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
27947         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27948         REPLACE_STRSIGNAL.
27949         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
27950         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
27951         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
27952
27953 2008-01-14  Bruno Haible  <bruno@clisp.org>
27954
27955         * modules/strsignal (Include): Change to <string.h>.
27956
27957 2008-01-14  Colin Watson  <cjwatson@debian.org>
27958
27959         * modules/argp (Notice): Add a notice recommending to change
27960         XGETTEXT_OPTIONS.
27961         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
27962
27963 2008-01-13  Colin Watson  <cjwatson@debian.org>
27964
27965         * modules/strsignal-tests: New file.
27966         * tests/test-strsignal.c: New file.
27967
27968         * lib/strsignal.c: New file, from glibc with modifications.
27969         * lib/siglist.h: New file, from glibc with modifications.
27970         * lib/string.in.h (strsignal): New declaration.
27971         * m4/strsignal.m4: New file.
27972         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27973         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
27974         * modules/strsignal: New file.
27975         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
27976         HAVE_DECL_STRSIGNAL.
27977
27978 2008-01-13  Bruno Haible  <bruno@clisp.org>
27979
27980         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
27981         locale encoding is not ASCII. Needed for OpenBSD 4.0.
27982         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
27983         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
27984
27985 2008-01-13  Bruno Haible  <bruno@clisp.org>
27986
27987         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
27988         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
27989         * lib/argp.h (__attribute__): Likewise.
27990         * lib/c-stack.c (__attribute__): Likewise.
27991         * lib/error.h (__attribute__): Likewise.
27992         * lib/fts.c (__attribute__): Likewise.
27993         * lib/openat.h (__attribute__): Likewise.
27994         * lib/stdio.in.h (__attribute__): Likewise.
27995         * lib/string.in.h (__attribute__): Likewise.
27996         * lib/utimens.c (__attribute__): Likewise.
27997         * lib/vasnprintf.h (__attribute__): Likewise.
27998         * lib/xalloc.h (__attribute__): Likewise.
27999         * lib/xprintf.h (__attribute__): Likewise.
28000         * lib/xstrtol.h (__attribute__): Likewise.
28001         * lib/xvasprintf.h (__attribute__): Likewise.
28002
28003 2008-01-12  Bruno Haible  <bruno@clisp.org>
28004
28005         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
28006         * doc/glibc-headers/a.out.texi: New file.
28007         * doc/glibc-headers/aliases.texi: New file.
28008         * doc/glibc-headers/alloca.texi: New file.
28009         * doc/glibc-headers/ar.texi: New file.
28010         * doc/glibc-headers/argp.texi: New file.
28011         * doc/glibc-headers/argz.texi: New file.
28012         * doc/glibc-headers/byteswap.texi: New file.
28013         * doc/glibc-headers/crypt.texi: New file.
28014         * doc/glibc-headers/endian.texi: New file.
28015         * doc/glibc-headers/envz.texi: New file.
28016         * doc/glibc-headers/err.texi: New file.
28017         * doc/glibc-headers/error.texi: New file.
28018         * doc/glibc-headers/execinfo.texi: New file.
28019         * doc/glibc-headers/fpu_control.texi: New file.
28020         * doc/glibc-headers/fstab.texi: New file.
28021         * doc/glibc-headers/fts.texi: New file.
28022         * doc/glibc-headers/getopt.texi: New file.
28023         * doc/glibc-headers/ieee754.texi: New file.
28024         * doc/glibc-headers/ifaddrs.texi: New file.
28025         * doc/glibc-headers/libintl.texi: New file.
28026         * doc/glibc-headers/mcheck.texi: New file.
28027         * doc/glibc-headers/mntent.texi: New file.
28028         * doc/glibc-headers/obstack.texi: New file.
28029         * doc/glibc-headers/paths.texi: New file.
28030         * doc/glibc-headers/printf.texi: New file.
28031         * doc/glibc-headers/pty.texi: New file.
28032         * doc/glibc-headers/resolv.texi: New file.
28033         * doc/glibc-headers/shadow.texi: New file.
28034         * doc/glibc-headers/sysexits.texi: New file.
28035         * doc/glibc-headers/ttyent.texi: New file.
28036
28037 2008-01-12  Jim Meyering  <meyering@redhat.com>
28038
28039         announce-gen: emit Gnulib's git-based version string.
28040         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
28041         New option --gnulib-version=V, where V is expected to be
28042         the output of running git describe in the gnulib directory.
28043         (get_tool_versions): Request feedback on xdelta.  I suspect it's
28044         not useful, and plan to stop publishing an xdelta file with each
28045         coreutils release.
28046
28047         * build-aux/announce-gen: Also check for lzma-compressed files.
28048
28049 2008-01-11  Bruno Haible  <bruno@clisp.org>
28050
28051         * tests/test-memmem.c (main): Increase maximum allowed time.
28052         * tests/test-strstr.c (main): Likewise.
28053
28054 2008-01-11  Bruno Haible  <bruno@clisp.org>
28055
28056         * doc/functions/memmem.texi: Add more precisions about platforms.
28057         * doc/functions/strstr.texi: Likewise.
28058
28059 2008-01-10  Eric Blake  <ebb9@byu.net>
28060
28061         * m4/strstr.m4: Delete cruft from copy-n-paste.
28062         Reported by Bruno Haible.
28063
28064 2008-01-10  Bruno Haible  <bruno@clisp.org>
28065
28066         Make c-strstr rely on strstr.
28067         * lib/c-strstr.c: Don't include str-kmp.h.
28068         (c_strstr): Define in terms of strstr.
28069         * modules/c-strstr (Files): Remove lib/str-kmp.h.
28070         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
28071
28072 2008-01-10  Bruno Haible  <bruno@clisp.org>
28073
28074         * doc/gnulib.texi (String Functions in C Locale): New section.
28075         * doc/c-ctype.texi: New file.
28076         * doc/c-strcase.texi: New file.
28077         * doc/c-strcaseeq.texi: New file.
28078         * doc/c-strcasestr.texi: New file.
28079         * doc/c-strstr.texi: New file.
28080         * doc/c-strtod.texi: New file.
28081         * doc/c-strtold.texi: New file.
28082
28083 2008-01-10  Eric Blake  <ebb9@byu.net>
28084
28085         * lib/relocatable.h: Fix a comment.
28086
28087 2008-01-10  Eric Blake  <ebb9@byu.net>
28088
28089         Share two-way algorithm.
28090         * lib/str-two-way.h: New file, merged from...
28091         * lib/memmem.c: ...here...
28092         * lib/strstr.c: ...and here.
28093         * modules/memmem (Files): Use it.
28094         * modules/strstr (Files): Likewise.
28095
28096         Avoid quadratic strstr implementations.
28097         * lib/strstr.c: New file.
28098         * m4/strstr.m4: Likewise.
28099         * modules/strstr: Likewise.
28100         * modules/strstr-tests: Likewise.
28101         * tests/test-strstr.c: Likewise.
28102         * lib/string.in.h (rpl_strstr): Declare.
28103         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
28104         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
28105         * modules/string (Makefile.am): Likewise.
28106         * MODULES.html.sh (string handling): Mention new module.
28107         * doc/functions/strstr.texi (strstr): Document the bug.
28108
28109 2008-01-10  Bruno Haible  <bruno@clisp.org>
28110
28111         * lib/relocatable.h (relocate): State whether result is freshly
28112         allocated or not.
28113         * lib/relocatable.c (relocate): Return a freshly allocated string
28114         instead of a pointer to a privately held string.
28115         Reported by Sylvain Beucler <beuc@gnu.org>.
28116
28117 2008-01-10  Colin Watson  <cjwatson@debian.org>
28118
28119         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
28120         s/S_ISNLK/S_ISLNK/.
28121
28122 2008-01-09  Bruno Haible  <bruno@clisp.org>
28123
28124         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
28125         and other files.
28126         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
28127         if it's only a guess.
28128         * modules/memmem: Simplify by depending on memmem-simple.
28129
28130 2008-01-09  Bruno Haible  <bruno@clisp.org>
28131
28132         Work around OpenBSD 4.0 tdelete() bug.
28133         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
28134         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
28135         macros and don't redefine the enum values.
28136         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
28137         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
28138         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
28139
28140 2008-01-09  Bruno Haible  <bruno@clisp.org>
28141
28142         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
28143         (main): Don't perform the tests if setlocale did not install a UTF-8
28144         locale. Needed on OpenBSD 4.0.
28145         * modules/wcwidth-tests (Depends-on): Add localcharset.
28146
28147 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
28148
28149         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
28150         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
28151         * NEWS: announce this.
28152         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
28153
28154 2008-01-09  Simon Josefsson  <simon@josefsson.org>
28155         and Eric Blake  <ebb9@byu.net>
28156
28157         Add memmem-simple module.
28158         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
28159         (gl_FUNC_MEMMEM): Separate performance from presence checks.
28160         * modules/memmem-simple: New file.
28161         * modules/memmem (Description): Tweak.
28162         * MODULES.html.sh (string handling): Mention new module.
28163         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
28164         addressed by memmem-simple.
28165         * NEWS: Document the difference.
28166
28167 2008-01-09  Eric Blake  <ebb9@byu.net>
28168
28169         Give gcc some memmem optimization hints.
28170         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
28171         (strcasestr): Declare as pure.
28172         * modules/memmem (Maintainer): Claim my implementation.
28173
28174 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28175
28176         Support AIX 6.1 and higher.
28177         * build-aux/config.libpath: Likewise.
28178         * build-aux/config.rpath: Likewise.
28179
28180 2008-01-08  Jim Meyering  <meyering@redhat.com>
28181             Bruno Haible  <bruno@clisp.org>
28182
28183         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
28184         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
28185         Reported by Peter Fales in
28186         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
28187
28188 2008-01-08  Bruno Haible  <bruno@clisp.org>
28189
28190         * modules/unictype/category-of (Depends-on): Add
28191         unictype/category-none.
28192         * modules/unictype/category-and-tests (Depends-on): Add
28193         unictype/category-{L,N,Lu,Nd}.
28194         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
28195         * modules/unictype/category-or-tests (Depends-on): Add
28196         unictype/category-{L,N}.
28197         * modules/unictype/category-name-tests (Depends-on): Add
28198         unictype/category-{Z,Nl}.
28199         Reported by Simon Josefsson.
28200
28201 2008-01-08  Bruno Haible  <bruno@clisp.org>
28202
28203         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
28204         convention better.
28205         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
28206         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
28207         Reported by Peter Miller <millerp@canb.auug.org.au>.
28208
28209 2008-01-08  Eric Blake  <ebb9@byu.net>
28210
28211         Rewrite memmem to guarantee linear complexity without malloc.
28212         * lib/memmem.c (memmem): Use Two-Way rather than
28213         Knuth-Morris-Pratt, to allow O(1) space usage.
28214         (critical_factorization, two_way_short_needle)
28215         (two_way_long_needle): New functions.
28216         (knuth_morris_pratt): Delete.
28217         * modules/memmem (Depends-on): No longer need malloca or stdbool.
28218         Add stdint.
28219         * tests/test-memmem.c (main): Add tests for periodic needle and
28220         sublinear performance.
28221         * doc/functions/memmem.texi (memmem): Document other deficiencies
28222         in cygwin and older glibc.
28223
28224 2008-01-08  Bruno Haible  <bruno@clisp.org>
28225
28226         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
28227         augmentation.
28228
28229 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
28230
28231         Add a configure time option: --disable-acl.
28232         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
28233         AC_ARG_ENABLE(acl).
28234
28235 2008-01-06  Simon Josefsson  <simon@josefsson.org>
28236
28237         * tests/test-localename.c: Don't include obsolete "setenv.h".
28238
28239         * modules/localename-tests (Depends-on): Need unsetenv.
28240
28241 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28242
28243         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
28244
28245 2008-01-06  Colin Watson  <cjwatson@debian.org>
28246
28247         * users.txt: Add man-db.
28248
28249 2008-01-07  Bruno Haible  <bruno@clisp.org>
28250
28251         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
28252         previous section name.
28253
28254 2008-01-07  Bruno Haible  <bruno@clisp.org>
28255
28256         * lib/progname.c (set_program_name): Don't strip off a leading
28257         "lt-" prefix outside a .libs directory.
28258         Suggested by Paul Eggert.
28259
28260 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
28261             Bruno Haible  <bruno@clisp.org>
28262
28263         Improve memory cleanup in 'relocatable' module.
28264         * lib/relocatable.h (compute_curr_prefix): Change return type to
28265         'char *'.
28266         * lib/relocatable.c (compute_curr_prefix): Change return type to
28267         'char *'. Free curr_installdir after use.
28268         (relocate): Free curr_prefix_better after use.
28269         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
28270
28271 2008-01-01  Bruno Haible  <bruno@clisp.org>
28272
28273         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
28274         failure on older glibc systems.
28275         Reported by Peter Fales <psfales@alcatel-lucent.com>.
28276
28277 2008-01-05  Eric Blake  <ebb9@byu.net>
28278
28279         Avoid quadratic system memmem.
28280         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
28281         Reported by Ralf Wildenhues.
28282
28283         Fix memmem test for mingw.
28284         * modules/memmem-tests (configure.ac): Check for alarm.
28285         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
28286         it.
28287         * doc/functions/memmem.texi: New file.
28288         * doc/gnulib.texi (Function Substitutes): Add memmem.
28289         Reported by Bruno Haible.
28290
28291 2008-01-04  Bruno Haible  <bruno@clisp.org>
28292
28293         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
28294         Require gl_HEADER_STRINGS_H_DEFAULTS, not
28295         gl_HEADER_STRING_H_DEFAULTS.
28296
28297 2008-01-04  Eric Blake  <ebb9@byu.net>
28298
28299         Shorten duration of memmem test.
28300         * tests/test-memmem.c (main): Use alarm to declare failure if test
28301         is taking too long.
28302         Reported by Ralf Wildenhues.
28303
28304 2007-12-21  Simon Josefsson  <simon@josefsson.org>
28305
28306         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
28307         string, needed by strerror.
28308
28309 2008-01-03  Colin Watson  <cjwatson@debian.org>
28310             Bruno Haible  <bruno@clisp.org>
28311
28312         * doc/gnulib-tool.texi (Localization): New section.
28313
28314 2008-01-02  Bruno Haible  <bruno@clisp.org>
28315
28316         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
28317         variables to 'unsigned char *' type.
28318         Reported by Paul Eggert.
28319
28320 2008-01-02  Jim Meyering  <jim@meyering.net>
28321
28322         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
28323
28324 2007-12-31  Jim Meyering  <jim@meyering.net>
28325
28326         Avoid use of private FTS type name.
28327         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
28328
28329 2007-12-30  Karl Berry  <karl@gnu.org>
28330
28331         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
28332         work around defect in Texinfo and/or the standalone Info browser.
28333
28334 2007-12-30  Bruno Haible  <bruno@clisp.org>
28335
28336         Unify 5 copies of the KMP code.
28337         * lib/str-kmp.h: New file.
28338         * lib/c-strcasestr.c: Include str-kmp.h.
28339         (knuth_morris_pratt): Remove function.
28340         (c_strcasestr): Update.
28341         * lib/c-strstr.c: Include str-kmp.h.
28342         (knuth_morris_pratt): Remove function.
28343         (c_strcasestr): Update.
28344         * lib/mbscasestr.c: Include str-kmp.h.
28345         (knuth_morris_pratt_unibyte): Remove function.
28346         * lib/mbsstr.c: Include str-kmp.h.
28347         (knuth_morris_pratt_unibyte): Remove function.
28348         * lib/strcasestr.c: Include str-kmp.h.
28349         (knuth_morris_pratt): Remove function.
28350         (strcasestr): Update.
28351         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
28352         * modules/c-strstr (Files): Likewise.
28353         * modules/mbscasestr (Files): Likewise.
28354         * modules/mbsstr (Files): Likewise.
28355         * modules/strcasestr (Files): Likewise.
28356         Suggested by Paul Eggert.
28357
28358 2007-12-30  Bruno Haible  <bruno@clisp.org>
28359
28360         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
28361         defined.
28362
28363 2007-12-30  Bruno Haible  <bruno@clisp.org>
28364
28365         * lib/xmalloca.h: Include xalloc.h.
28366         (xnmalloca): New macro.
28367
28368 2007-12-30  Bruno Haible  <bruno@clisp.org>
28369
28370         * lib/malloca.h (nmalloca): New macro.
28371         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
28372         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
28373         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
28374         knuth_morris_pratt_multibyte): Likewise.
28375         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
28376         knuth_morris_pratt_multibyte): Likewise.
28377         * lib/memmem.c (knuth_morris_pratt): Likewise.
28378         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
28379
28380 2007-12-25  Bruno Haible  <bruno@clisp.org>
28381
28382         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
28383         * lib/glob.c: Don't include openat.h.
28384         (link_exists2_p): Add back the code that deals with the
28385         !GLOB_ALTDIRFUNC case.
28386         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
28387         let it do the filename concatenation.
28388         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
28389         * modules/glob (Depends-on): Remove openat.
28390
28391 2007-12-31  Bruno Haible  <bruno@clisp.org>
28392
28393         * modules/dirfd (License): Change to LGPLv2+.
28394         Approved by Jim Meyering.
28395
28396 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
28397
28398         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
28399         when multiplying M by sizeof (size_t).
28400
28401 2007-12-10  Martin Lambers  <marlam@marlam.de>
28402
28403         Override getpagesize on mingw.
28404         * lib/getpagesize.c: New file.
28405         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
28406         * modules/getpagesize (Files): Add lib/getpagesize.c.
28407         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
28408         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28409         REPLACE_GETPAGESIZE.
28410         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
28411
28412 2007-12-25  Bruno Haible  <bruno@clisp.org>
28413
28414         * modules/localcharset (Notice): New field.
28415         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
28416         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
28417
28418 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
28419             Bruno Haible  <bruno@clisp.org>
28420
28421         Avoid using the syntax symbol() in formatted documentation.
28422         * MODULES.html.sh (func_module): When replacing symbol() with a
28423         hyperlink, remove the parentheses. Show an error if some remain.
28424         Recognize and render the '...' syntax.
28425         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
28426         Rework. Add paragraph about GCC's inlining.
28427         * doc/alloca.texi: Likewise.
28428         * doc/error.texi: Remove parentheses from symbol reference.
28429         * doc/gnulib-intro.texi: Likewise.
28430         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
28431         * modules/fnmatch (Description): Reword to say "the ... function".
28432         * modules/full-read (Description): Likewise.
28433         * modules/full-write (Description): Likewise.
28434         * modules/safe-read (Description): Likewise.
28435         * modules/safe-write (Description): Likewise.
28436         * modules/strchrnul (Description): Likewise.
28437         * modules/trim (Description): Likewise.
28438         * modules/error (Description): Remove parentheses from symbol
28439         references.
28440         * modules/verror (Description): Likewise.
28441         Reported by Karl Berry.
28442
28443 2007-12-25  Bruno Haible  <bruno@clisp.org>
28444
28445         Fixup after 2007-10-16 commit.
28446         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
28447
28448 2007-12-24  Bruno Haible  <bruno@clisp.org>
28449
28450         Make --enable-relocatable work with DESTDIR.
28451         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
28452         to compute installdir from destprog.
28453         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
28454         also set the RELOC_DESTDIR variable.
28455         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
28456
28457 2007-12-24  Bruno Haible  <bruno@clisp.org>
28458
28459         Fix link error due to xalloc_die().
28460         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
28461         of xreadlink.
28462         * lib/relocwrapper.c: Update comments.
28463         * build-aux/install-reloc: Remove xreadlink.c from file list.
28464         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
28465         xreadlink.c.
28466         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
28467
28468 2007-12-24  Bruno Haible  <bruno@clisp.org>
28469
28470         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
28471         * lib/setenv.h: Remove file.
28472         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
28473         lib/setenv.h.
28474         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
28475         (Depends-on): Add stdlib.
28476         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
28477         gl_FUNC_UNSETENV.
28478         (Include): Replace setenv.h with <stdlib.h>.
28479         * modules/unsetenv: New file.
28480         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
28481         * lib/unsetenv.c: Include <stdlib.h> first.
28482         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
28483         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
28484         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
28485         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
28486         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
28487         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
28488         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
28489         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
28490         * doc/functions/unsetenv.texi: Update.
28491         * modules/xsetenv (Depends-on): Add unsetenv.
28492         * modules/getdate (Depends-on): Likewise.
28493         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
28494         * lib/xsetenv.c: Don't include setenv.h.
28495         * lib/getdate.y: Likewise.
28496         * lib/relocwrapper.c: Likewise.
28497         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
28498         (Depends-on): Add stdlib.
28499         * NEWS: Mention the changes.
28500         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
28501
28502 2007-12-23  Bruno Haible  <bruno@clisp.org>
28503
28504         * lib/memmem.c (memmem): Use lowercase variable names. Tab
28505         indentation.
28506
28507 2007-12-23  Bruno Haible  <bruno@clisp.org>
28508
28509         * lib/c-strcasestr.c: Add more comments.
28510         * lib/c-strstr.c: Likewise.
28511         * lib/mbscasestr.c: Likewise.
28512         * lib/mbsstr.c: Likewise.
28513         * lib/strcasestr.c: Likewise.
28514         * lib/memmem.c: Likewise.
28515
28516 2007-12-23  Bruno Haible  <bruno@clisp.org>
28517
28518         * tests/test-memmem.c: Include <string.h> first.
28519
28520 2007-12-22  Bruno Haible  <bruno@clisp.org>
28521
28522         * gnulib-tool (func_create_testdir): Change $auxdir while generating
28523         the contents of $testsbase.
28524         Reported by Ralf Wildenhues.
28525
28526 2007-12-22  Bruno Haible  <bruno@clisp.org>
28527
28528         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
28529         two variables local_ldadd_before, local_ldadd_last.
28530
28531 2007-12-20  Eric Blake  <ebb9@byu.net>
28532
28533         Work around circular library issue when cross-compiling.
28534         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
28535         that progname.o does not need to pull in rpl_memcmp.
28536
28537 2007-12-19  Eric Blake  <ebb9@byu.net>
28538
28539         Fix memmem to avoid O(n^2) worst-case complexity.
28540         * lib/memmem.c (knuth_morris_pratt): New function.
28541         (memmem): Use it if first few naive iterations fail.
28542         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
28543         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
28544         * modules/memchr (License): Likewise.
28545         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
28546         malloca.
28547         * tests/test-memmem.c: Rewrite, borrowing ideas from
28548         test-mbsstr1.c; the old version wouldn't even compile!
28549         * modules/memmem-tests: New file.
28550         * lib/string.in.h (rpl_memmem): Add declaration.
28551         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
28552         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
28553         REPLACE_MEMMEM.
28554
28555 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28556
28557         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
28558         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
28559         before any system include files, and undef after them all.  This
28560         should fix a problem on VMS reported by John E. Malmberg in
28561         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
28562
28563 2007-12-17  Eric Blake  <ebb9@byu.net>
28564
28565         Revert addition of verify, for BSD/OS.
28566         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
28567         can't handle large files, for the sake of obsolete platforms.
28568         * modules/fseeko (Depends-on): Remove verify.
28569         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
28570         * doc/functions/ftello.texi (ftello): Likewise.
28571         * doc/functions/fgetpos.texi (fgetpos): Likewise.
28572         Reported by Larry Jones.
28573
28574 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
28575
28576         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
28577         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
28578
28579 2007-12-17  Jim Meyering  <meyering@redhat.com>
28580
28581         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
28582         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
28583         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
28584         * modules/getcwd (Depends-on): Add openat.
28585         Reported by Petr Salinger.
28586
28587 2007-12-17  Bruno Haible  <bruno@clisp.org>
28588
28589         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
28590         avoid a segmentation fault of the configure test on x86_64 systems.
28591
28592 2007-12-15  Jim Meyering  <meyering@redhat.com>
28593
28594         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
28595
28596 2007-12-13  Eric Blake  <ebb9@byu.net>
28597
28598         Another fseek test.
28599         * tests/test-fseek.c (main): Also test ungetc handling.
28600         * tests/test-fseeko.c (main): Likewise.
28601         * modules/fseeko (Depends-on): Add verify.
28602         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
28603         large.
28604         Reported by Larry Jones.
28605
28606         Fix fseeko on mingw.
28607         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
28608         seek.
28609
28610         Beef up fseek tests.
28611         * tests/test-fseek.c (main): Also test eof handling.
28612         * tests/test-fseeko.c (main): Likewise.
28613         Reported by Larry Jones.
28614
28615 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
28616
28617         Fix fseeko on BSD-based platforms.
28618         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
28619         successful seek.
28620
28621 2007-12-12  Eric Blake  <ebb9@byu.net>
28622
28623         Allow circular dependency of separate libtests.a
28624         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
28625         when use_libtests.
28626
28627 2007-12-11  Eric Blake  <ebb9@byu.net>
28628
28629         Fix bug with -0.0L in previous patch.
28630         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
28631         * tests/test-isnan.c (main): Also test on zeroes.
28632         * tests/test-isnanf.c (main): Likewise.
28633         * tests/test-isnanl.h (main): Likewise.
28634
28635         Detect pseudo-denormals on x86 even when cross-compiling.
28636         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
28637         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
28638         invalid bit patterns that happen to satisfy ==.
28639
28640         Avoid link failures with separate libtests.a.
28641         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
28642         last, to satisfy circular dependencies.
28643
28644 2007-12-11  Eric Blake  <ebb9@byu.net>
28645         and Bruno Haible  <bruno@clisp.org>
28646
28647         Fix OpenBSD 4.0 <float.h> handling of long double.
28648         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
28649         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
28650         * doc/headers/float.texi (float.h): Document OpenBSD bug.
28651
28652 2007-12-11  Jim Meyering  <meyering@redhat.com>
28653
28654         * users.txt: Add libvirt.
28655
28656         Support versions of autoconf prior to 2.59c.
28657         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
28658         if it is not already defined.
28659
28660 2007-12-09  Bruno Haible  <bruno@clisp.org>
28661
28662         Let 'gnulib-tool --import' collect sources needed for the tests in
28663         tests/ rather than in lib/.
28664         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
28665         argument. If true, add rules to generate libtests.a, and put libtests.a
28666         into $(LDADD). Consider source files in subdirectories and set
28667         uses_subdirs.
28668         (func_emit_initmacro_start, func_emit_initmacro_end,
28669         func_emit_initmacro_done): Pass all arguments explicitly.
28670         (func_import): Determine two module lists main_modules,
28671         testsrelated_modules. Determine use_libtests. Determine two variables
28672         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
28673         instead of just sed_transform_lib_file. Determine two variables
28674         main_files and testsrelated_files. Compute 'files' as the union of
28675         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
28676         func_add_or_update. In the generated gnulib-comp.m4, collect the
28677         object files for tests/ in different variables than those for lib/.
28678         Substitute LIBTESTS_LIBDEPS.
28679         (func_create_testdir): Combine the uses_subdirs results from
28680         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
28681
28682 2007-12-09  Bruno Haible  <bruno@clisp.org>
28683
28684         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
28685         the build-aux directory.
28686
28687 2007-12-09  Bruno Haible  <bruno@clisp.org>
28688
28689         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
28690         introduced on 2006-09-09.
28691
28692 2007-12-07  Jim Meyering  <meyering@redhat.com>
28693
28694         Let these macros work also with autoconf-2.59.
28695         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
28696         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
28697         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28698
28699 2007-12-06  Jim Meyering  <meyering@redhat.com>
28700
28701         Avoid a configure-time syntax error in gl_FUNC_ACL.
28702         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
28703         function in each branch, before testing the cache variable.
28704
28705 2007-12-04  Eric Blake  <ebb9@byu.net>
28706
28707         Make scripts executable.
28708         * build-aux/config.guess: Add execute permissions.
28709         * build-aux/config.sub: Likewise.
28710         * build-aux/gendocs.sh: Likewise.
28711
28712         Fix frexp on mingw.
28713         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
28714         cross-compiling.
28715         * doc/functions/frexp.texi (frexp): Document the bug.
28716
28717         Make cygwin fseeko check more reliable.
28718         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
28719         version numbers, rather than unrelated feature check.
28720         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
28721         * doc/functions/ftello.texi (ftello): Likewise.
28722         Reported by Bruno Haible.
28723
28724         * m4/strerror.m4: Bump version number.
28725
28726 2007-12-03  Bruno Haible  <bruno@clisp.org>
28727
28728         * doc/functions/mprotect.texi: Mention the mingw problem.
28729
28730 2007-12-03  Eric Blake  <ebb9@byu.net>
28731
28732         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
28733         REPLACE_STRERROR is initialized before this macro.
28734
28735 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
28736
28737         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
28738         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
28739         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
28740         put -lsec in even for programs other than 'ls'.  This fixes a problem
28741         for gettext reported by Bruno Haible in
28742         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
28743         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
28744         Add support for Solaris 10.  This isn't efficient, but should get the
28745         job done for now.
28746
28747 2007-12-03  James Youngman  <jay@gnu.org>
28748
28749         * doc/regexprops-generic.texi: change "an close-group" to "a
28750         close-group" and "illegal" to "not allowed".
28751
28752 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28753
28754         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
28755         pr_byname.h. Needed for the rare case when the maintainer has done
28756         "make maintainer-clean" in the source directory and then attempts a
28757         build outside the source directory.
28758         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
28759         scripts_byname.h.
28760
28761 2007-12-02  Martin Lambers <marlam@marlam.de>
28762             Bruno Haible  <bruno@clisp.org>
28763
28764         * lib/getpagesize.h: Remove file.
28765         * lib/unistd.in.h: Include declaration of getpagesize here.
28766         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
28767         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
28768         HAVE_SYS_PARAM_H.
28769         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
28770         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
28771         * modules/getpagesize (Files): Remove lib/getpagesize.h.
28772         (Depends-on): Add unistd.
28773         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28774         (Include): Use <unistd.h> instead of getpagesize.h.
28775         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
28776         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
28777         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
28778         gl_GETPAGESIZE invocation, already handled by module dependency.
28779         * lib/pagealign_alloc.c: Don't include getpagesize.h.
28780
28781 2007-12-02  Bruno Haible  <bruno@clisp.org>
28782
28783         * modules/strings-tests: New file.
28784         * tests/test-strings.c: New file.
28785
28786         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
28787         * lib/strings.in.h: New file.
28788         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
28789         * m4/strings_h.m4: New file.
28790         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
28791         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
28792         * modules/strings: New file.
28793         * modules/string (Makefile.am): Update.
28794         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
28795         Reported by Karl Berry.
28796
28797 2007-12-01  Eric Blake  <ebb9@byu.net>
28798
28799         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
28800         accomodate fix in cygwin 1.5.25.
28801
28802 2007-12-01  Jim Meyering  <meyering@redhat.com>
28803
28804         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
28805         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
28806         that would inhibit utf8-optimization of a regexp containing line-
28807         or buffer-anchors, e.g., `^', `$'.
28808
28809 2007-11-30  Bruno Haible  <bruno@clisp.org>
28810
28811         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
28812         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
28813         glthread_recursive_lock_init.
28814         * lib/lock.c (glthread_recursive_lock_init)
28815         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
28816         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28817
28818 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
28819
28820         New function qset_acl, like set_acl but with syscall semantics.
28821         * lib/acl.h (qset_acl): New decl.
28822         * lib/acl.c (qset_acl): New function.
28823         (set_acl): Use new function.  Use more-consistent diagnostics.
28824
28825 2007-11-28  Jim Meyering  <meyering@redhat.com>
28826
28827         * modules/physmem (License): Change from GPL to LGPLv2+.
28828
28829 2007-11-26  Bruno Haible  <bruno@clisp.org>
28830
28831         * lib/vasnprintf.c (decode_long_double): Don't abort if the
28832         'long double' type has excess precision.
28833         Reported by Jim Meyering in
28834         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
28835
28836 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28837
28838         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
28839         Sync from <http://gnu.org/licenses>.
28840         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
28841         with license text from same location.
28842         * doc/maintain.texi, doc/standards.texi:  Sync from
28843         <http://savannah.gnu.org/projects/gnustandards>.
28844
28845 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
28846         and Jim Meyering  <meyering@redhat.com>
28847
28848         Adjust getdate' grammar to accept a slightly more regular language.
28849         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
28850         Before, the former was rejected.
28851         * lib/getdate.y (digits_to_date_time): New function, factored
28852         out of ...
28853         (number): ...here.  Just call digits_to_date_time.
28854         (hybrid): New non-terminal to handle an <unsigned number,
28855         signed relative offset> sequence consistently.
28856
28857 2007-11-18  Jim Meyering  <meyering@redhat.com>
28858
28859         Pull my changes from coreutils:
28860         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
28861         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
28862         use of $gnulib_tool_option_extras, so that it's separated from the
28863         preceding argument.
28864
28865         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
28866         * build-aux/bootstrap (cp_mark_as_generated): Create any required
28867         parent destination directories before copying a file into place.
28868
28869 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
28870
28871         bootstrap: work also with 4-argument variant of AC_INIT
28872         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
28873
28874 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
28875
28876         Port test-getaddrinfo to Solaris.
28877         Problem reported by Bruno Haible in
28878         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
28879         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
28880         explanation of setting 'hints'.
28881         Don't reject an implementation merely because it returns EAI_SERVICE.
28882         (EAI_SERVICE): Define to 0 if not defined.
28883
28884 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
28885
28886         The license of gnu-make and posix-shell is now "GPLed build tool".
28887         * modules/gnu-make (License): Likewise.
28888         * modules/posix-shell (License): Likewise.
28889
28890         New module posix-shell, for determining a POSIX shell
28891         or perhaps something that is close enough to a POSIX shell.
28892         * m4/posix-shell.m4: New file.
28893         * modules/posix-shell: New file.
28894
28895         * MODULES.html.sh: Mention new module.
28896
28897         New module gnu-make, for determining whether we're using GNU Make.
28898         * m4/gnu-make.m4: New file.
28899         * modules/gnu-make: New file.
28900         * MODULES.html.sh: Mention new module.
28901
28902 2007-11-14  Jim Meyering  <meyering@redhat.com>
28903
28904         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
28905         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
28906         use this macro to create a function _definition_.
28907         Remove useless "#undef ARGMATCH_DIE".
28908
28909 2007-11-14  Bruno Haible  <bruno@clisp.org>
28910
28911         * lib/config.charset: Update for OpenBSD 4.1.
28912         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
28913
28914 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
28915
28916         Document 64-bit #if problems in stdint.texi.
28917         * doc/headers/stdint.texi (stdint.h): Mention problems with
28918         64-bit-#if, and how to work around them.
28919
28920         Don't insist on 'long long int' support in the preprocessor.  It
28921         breaks too many things.  For example, PRIdMAX still uses a 'long
28922         long int' format with the latest Sun compiler, even though
28923         HAVE_LONG_LONG_INT isn't defined due to that compiler's
28924         preprocessor problem.  This causes the latest coreutils to dump
28925         core on Solaris 10 sparc with the Sun C compiler.
28926         Instead, fix the 2007-10-16 problem in a different way, by evaluating
28927         the troublesome expressions at configure-time, not at #if-time.
28928         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
28929         preprocessor.
28930         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
28931         compile-time C checks, done at 'configure'-time.
28932         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
28933         * modules/inttypes (Makefile): Substitute the new symbols that
28934         gl_INTTYPES_H now generates.
28935         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
28936
28937 2007-11-12  Bruno Haible  <bruno@clisp.org>
28938
28939         Tests for Unicode character classification functions.
28940
28941         * modules/unictype/bidicategory-byname-tests: New file.
28942         * modules/unictype/bidicategory-name-tests: New file.
28943         * modules/unictype/bidicategory-of-tests: New file.
28944         * modules/unictype/bidicategory-test-tests: New file.
28945         * modules/unictype/block-list-tests: New file.
28946         * modules/unictype/block-of-tests: New file.
28947         * modules/unictype/block-test-tests: New file.
28948         * modules/unictype/category-C-tests: New file.
28949         * modules/unictype/category-Cc-tests: New file.
28950         * modules/unictype/category-Cf-tests: New file.
28951         * modules/unictype/category-Cn-tests: New file.
28952         * modules/unictype/category-Co-tests: New file.
28953         * modules/unictype/category-Cs-tests: New file.
28954         * modules/unictype/category-L-tests: New file.
28955         * modules/unictype/category-Ll-tests: New file.
28956         * modules/unictype/category-Lm-tests: New file.
28957         * modules/unictype/category-Lo-tests: New file.
28958         * modules/unictype/category-Lt-tests: New file.
28959         * modules/unictype/category-Lu-tests: New file.
28960         * modules/unictype/category-M-tests: New file.
28961         * modules/unictype/category-Mc-tests: New file.
28962         * modules/unictype/category-Me-tests: New file.
28963         * modules/unictype/category-Mn-tests: New file.
28964         * modules/unictype/category-N-tests: New file.
28965         * modules/unictype/category-Nd-tests: New file.
28966         * modules/unictype/category-Nl-tests: New file.
28967         * modules/unictype/category-No-tests: New file.
28968         * modules/unictype/category-P-tests: New file.
28969         * modules/unictype/category-Pc-tests: New file.
28970         * modules/unictype/category-Pd-tests: New file.
28971         * modules/unictype/category-Pe-tests: New file.
28972         * modules/unictype/category-Pf-tests: New file.
28973         * modules/unictype/category-Pi-tests: New file.
28974         * modules/unictype/category-Po-tests: New file.
28975         * modules/unictype/category-Ps-tests: New file.
28976         * modules/unictype/category-S-tests: New file.
28977         * modules/unictype/category-Sc-tests: New file.
28978         * modules/unictype/category-Sk-tests: New file.
28979         * modules/unictype/category-Sm-tests: New file.
28980         * modules/unictype/category-So-tests: New file.
28981         * modules/unictype/category-Z-tests: New file.
28982         * modules/unictype/category-Zl-tests: New file.
28983         * modules/unictype/category-Zp-tests: New file.
28984         * modules/unictype/category-Zs-tests: New file.
28985         * modules/unictype/category-and-not-tests: New file.
28986         * modules/unictype/category-and-tests: New file.
28987         * modules/unictype/category-byname-tests: New file.
28988         * modules/unictype/category-name-tests: New file.
28989         * modules/unictype/category-none-tests: New file.
28990         * modules/unictype/category-of-tests: New file.
28991         * modules/unictype/category-or-tests: New file.
28992         * modules/unictype/category-test-withtable-tests: New file.
28993         * modules/unictype/combining-class-tests: New file.
28994         * modules/unictype/ctype-alnum-tests: New file.
28995         * modules/unictype/ctype-alpha-tests: New file.
28996         * modules/unictype/ctype-blank-tests: New file.
28997         * modules/unictype/ctype-cntrl-tests: New file.
28998         * modules/unictype/ctype-digit-tests: New file.
28999         * modules/unictype/ctype-graph-tests: New file.
29000         * modules/unictype/ctype-lower-tests: New file.
29001         * modules/unictype/ctype-print-tests: New file.
29002         * modules/unictype/ctype-punct-tests: New file.
29003         * modules/unictype/ctype-space-tests: New file.
29004         * modules/unictype/ctype-upper-tests: New file.
29005         * modules/unictype/ctype-xdigit-tests: New file.
29006         * modules/unictype/decimal-digit-tests: New file.
29007         * modules/unictype/digit-tests: New file.
29008         * modules/unictype/mirror-tests: New file.
29009         * modules/unictype/numeric-tests: New file.
29010         * modules/unictype/property-alphabetic-tests: New file.
29011         * modules/unictype/property-ascii-hex-digit-tests: New file.
29012         * modules/unictype/property-bidi-arabic-digit-tests: New file.
29013         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
29014         * modules/unictype/property-bidi-block-separator-tests: New file.
29015         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
29016         * modules/unictype/property-bidi-common-separator-tests: New file.
29017         * modules/unictype/property-bidi-control-tests: New file.
29018         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
29019         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
29020         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
29021         * modules/unictype/property-bidi-european-digit-tests: New file.
29022         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
29023         * modules/unictype/property-bidi-left-to-right-tests: New file.
29024         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
29025         * modules/unictype/property-bidi-other-neutral-tests: New file.
29026         * modules/unictype/property-bidi-pdf-tests: New file.
29027         * modules/unictype/property-bidi-segment-separator-tests: New file.
29028         * modules/unictype/property-bidi-whitespace-tests: New file.
29029         * modules/unictype/property-byname-tests: New file.
29030         * modules/unictype/property-combining-tests: New file.
29031         * modules/unictype/property-composite-tests: New file.
29032         * modules/unictype/property-currency-symbol-tests: New file.
29033         * modules/unictype/property-dash-tests: New file.
29034         * modules/unictype/property-decimal-digit-tests: New file.
29035         * modules/unictype/property-default-ignorable-code-point-tests: New file.
29036         * modules/unictype/property-deprecated-tests: New file.
29037         * modules/unictype/property-diacritic-tests: New file.
29038         * modules/unictype/property-extender-tests: New file.
29039         * modules/unictype/property-format-control-tests: New file.
29040         * modules/unictype/property-grapheme-base-tests: New file.
29041         * modules/unictype/property-grapheme-extend-tests: New file.
29042         * modules/unictype/property-grapheme-link-tests: New file.
29043         * modules/unictype/property-hex-digit-tests: New file.
29044         * modules/unictype/property-hyphen-tests: New file.
29045         * modules/unictype/property-id-continue-tests: New file.
29046         * modules/unictype/property-id-start-tests: New file.
29047         * modules/unictype/property-ideographic-tests: New file.
29048         * modules/unictype/property-ids-binary-operator-tests: New file.
29049         * modules/unictype/property-ids-trinary-operator-tests: New file.
29050         * modules/unictype/property-ignorable-control-tests: New file.
29051         * modules/unictype/property-iso-control-tests: New file.
29052         * modules/unictype/property-join-control-tests: New file.
29053         * modules/unictype/property-left-of-pair-tests: New file.
29054         * modules/unictype/property-line-separator-tests: New file.
29055         * modules/unictype/property-logical-order-exception-tests: New file.
29056         * modules/unictype/property-lowercase-tests: New file.
29057         * modules/unictype/property-math-tests: New file.
29058         * modules/unictype/property-non-break-tests: New file.
29059         * modules/unictype/property-not-a-character-tests: New file.
29060         * modules/unictype/property-numeric-tests: New file.
29061         * modules/unictype/property-other-alphabetic-tests: New file.
29062         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
29063         * modules/unictype/property-other-grapheme-extend-tests: New file.
29064         * modules/unictype/property-other-id-continue-tests: New file.
29065         * modules/unictype/property-other-id-start-tests: New file.
29066         * modules/unictype/property-other-lowercase-tests: New file.
29067         * modules/unictype/property-other-math-tests: New file.
29068         * modules/unictype/property-other-uppercase-tests: New file.
29069         * modules/unictype/property-paired-punctuation-tests: New file.
29070         * modules/unictype/property-paragraph-separator-tests: New file.
29071         * modules/unictype/property-pattern-syntax-tests: New file.
29072         * modules/unictype/property-pattern-white-space-tests: New file.
29073         * modules/unictype/property-private-use-tests: New file.
29074         * modules/unictype/property-punctuation-tests: New file.
29075         * modules/unictype/property-quotation-mark-tests: New file.
29076         * modules/unictype/property-radical-tests: New file.
29077         * modules/unictype/property-sentence-terminal-tests: New file.
29078         * modules/unictype/property-soft-dotted-tests: New file.
29079         * modules/unictype/property-space-tests: New file.
29080         * modules/unictype/property-terminal-punctuation-tests: New file.
29081         * modules/unictype/property-test-tests: New file.
29082         * modules/unictype/property-titlecase-tests: New file.
29083         * modules/unictype/property-unassigned-code-value-tests: New file.
29084         * modules/unictype/property-unified-ideograph-tests: New file.
29085         * modules/unictype/property-uppercase-tests: New file.
29086         * modules/unictype/property-variation-selector-tests: New file.
29087         * modules/unictype/property-white-space-tests: New file.
29088         * modules/unictype/property-xid-continue-tests: New file.
29089         * modules/unictype/property-xid-start-tests: New file.
29090         * modules/unictype/property-zero-width-tests: New file.
29091         * modules/unictype/scripts-tests: New file.
29092         * modules/unictype/syntax-c-ident-tests: New file.
29093         * modules/unictype/syntax-c-whitespace-tests: New file.
29094         * modules/unictype/syntax-java-ident-tests: New file.
29095         * modules/unictype/syntax-java-whitespace-tests: New file.
29096         * tests/unictype/test-bidi_byname.c: New file.
29097         * tests/unictype/test-bidi_name.c: New file.
29098         * tests/unictype/test-bidi_of.c: New file.
29099         * tests/unictype/test-bidi_test.c: New file.
29100         * tests/unictype/test-block_list.c: New file.
29101         * tests/unictype/test-block_of.c: New file.
29102         * tests/unictype/test-block_test.c: New file.
29103         * tests/unictype/test-categ_and.c: New file.
29104         * tests/unictype/test-categ_and_not.c: New file.
29105         * tests/unictype/test-categ_byname.c: New file.
29106         * tests/unictype/test-categ_name.c: New file.
29107         * tests/unictype/test-categ_none.c: New file.
29108         * tests/unictype/test-categ_of.c: New file.
29109         * tests/unictype/test-categ_or.c: New file.
29110         * tests/unictype/test-categ_test_withtable.c: New file.
29111         * tests/unictype/test-combining.c: New file.
29112         * tests/unictype/test-decdigit.c: New file.
29113         * tests/unictype/test-digit.c: New file.
29114         * tests/unictype/test-mirror.c: New file.
29115         * tests/unictype/test-numeric.c: New file.
29116         * tests/unictype/test-pr_byname.c: New file.
29117         * tests/unictype/test-pr_test.c: New file.
29118         * tests/unictype/test-predicate-part1.h: New file.
29119         * tests/unictype/test-predicate-part2.h: New file.
29120         * tests/unictype/test-scripts.c: New file.
29121         * tests/unictype/test-sy_c_ident.c: New file.
29122         * tests/unictype/test-sy_java_ident.c: New file.
29123
29124         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
29125         for Unicode 5.0.0.
29126         * tests/unictype/test-categ_Cc.c: Likewise.
29127         * tests/unictype/test-categ_Cf.c: Likewise.
29128         * tests/unictype/test-categ_Cn.c: Likewise.
29129         * tests/unictype/test-categ_Co.c: Likewise.
29130         * tests/unictype/test-categ_Cs.c: Likewise.
29131         * tests/unictype/test-categ_L.c: Likewise.
29132         * tests/unictype/test-categ_Ll.c: Likewise.
29133         * tests/unictype/test-categ_Lm.c: Likewise.
29134         * tests/unictype/test-categ_Lo.c: Likewise.
29135         * tests/unictype/test-categ_Lt.c: Likewise.
29136         * tests/unictype/test-categ_Lu.c: Likewise.
29137         * tests/unictype/test-categ_M.c: Likewise.
29138         * tests/unictype/test-categ_Mc.c: Likewise.
29139         * tests/unictype/test-categ_Me.c: Likewise.
29140         * tests/unictype/test-categ_Mn.c: Likewise.
29141         * tests/unictype/test-categ_N.c: Likewise.
29142         * tests/unictype/test-categ_Nd.c: Likewise.
29143         * tests/unictype/test-categ_Nl.c: Likewise.
29144         * tests/unictype/test-categ_No.c: Likewise.
29145         * tests/unictype/test-categ_P.c: Likewise.
29146         * tests/unictype/test-categ_Pc.c: Likewise.
29147         * tests/unictype/test-categ_Pd.c: Likewise.
29148         * tests/unictype/test-categ_Pe.c: Likewise.
29149         * tests/unictype/test-categ_Pf.c: Likewise.
29150         * tests/unictype/test-categ_Pi.c: Likewise.
29151         * tests/unictype/test-categ_Po.c: Likewise.
29152         * tests/unictype/test-categ_Ps.c: Likewise.
29153         * tests/unictype/test-categ_S.c: Likewise.
29154         * tests/unictype/test-categ_Sc.c: Likewise.
29155         * tests/unictype/test-categ_Sk.c: Likewise.
29156         * tests/unictype/test-categ_Sm.c: Likewise.
29157         * tests/unictype/test-categ_So.c: Likewise.
29158         * tests/unictype/test-categ_Z.c: Likewise.
29159         * tests/unictype/test-categ_Zl.c: Likewise.
29160         * tests/unictype/test-categ_Zp.c: Likewise.
29161         * tests/unictype/test-categ_Zs.c: Likewise.
29162         * tests/unictype/test-ctype_alnum.c: Likewise.
29163         * tests/unictype/test-ctype_alpha.c: Likewise.
29164         * tests/unictype/test-ctype_blank.c: Likewise.
29165         * tests/unictype/test-ctype_cntrl.c: Likewise.
29166         * tests/unictype/test-ctype_digit.c: Likewise.
29167         * tests/unictype/test-ctype_graph.c: Likewise.
29168         * tests/unictype/test-ctype_lower.c: Likewise.
29169         * tests/unictype/test-ctype_print.c: Likewise.
29170         * tests/unictype/test-ctype_punct.c: Likewise.
29171         * tests/unictype/test-ctype_space.c: Likewise.
29172         * tests/unictype/test-ctype_upper.c: Likewise.
29173         * tests/unictype/test-ctype_xdigit.c: Likewise.
29174         * tests/unictype/test-decdigit.h: Likewise.
29175         * tests/unictype/test-digit.h: Likewise.
29176         * tests/unictype/test-numeric.h: Likewise.
29177         * tests/unictype/test-pr_alphabetic.c: Likewise.
29178         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
29179         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
29180         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
29181         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
29182         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
29183         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
29184         * tests/unictype/test-pr_bidi_control.c: Likewise.
29185         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
29186         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
29187         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
29188         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
29189         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
29190         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
29191         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
29192         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
29193         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
29194         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
29195         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
29196         * tests/unictype/test-pr_combining.c: Likewise.
29197         * tests/unictype/test-pr_composite.c: Likewise.
29198         * tests/unictype/test-pr_currency_symbol.c: Likewise.
29199         * tests/unictype/test-pr_dash.c: Likewise.
29200         * tests/unictype/test-pr_decimal_digit.c: Likewise.
29201         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
29202         * tests/unictype/test-pr_deprecated.c: Likewise.
29203         * tests/unictype/test-pr_diacritic.c: Likewise.
29204         * tests/unictype/test-pr_extender.c: Likewise.
29205         * tests/unictype/test-pr_format_control.c: Likewise.
29206         * tests/unictype/test-pr_grapheme_base.c: Likewise.
29207         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
29208         * tests/unictype/test-pr_grapheme_link.c: Likewise.
29209         * tests/unictype/test-pr_hex_digit.c: Likewise.
29210         * tests/unictype/test-pr_hyphen.c: Likewise.
29211         * tests/unictype/test-pr_id_continue.c: Likewise.
29212         * tests/unictype/test-pr_id_start.c: Likewise.
29213         * tests/unictype/test-pr_ideographic.c: Likewise.
29214         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
29215         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
29216         * tests/unictype/test-pr_ignorable_control.c: Likewise.
29217         * tests/unictype/test-pr_iso_control.c: Likewise.
29218         * tests/unictype/test-pr_join_control.c: Likewise.
29219         * tests/unictype/test-pr_left_of_pair.c: Likewise.
29220         * tests/unictype/test-pr_line_separator.c: Likewise.
29221         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
29222         * tests/unictype/test-pr_lowercase.c: Likewise.
29223         * tests/unictype/test-pr_math.c: Likewise.
29224         * tests/unictype/test-pr_non_break.c: Likewise.
29225         * tests/unictype/test-pr_not_a_character.c: Likewise.
29226         * tests/unictype/test-pr_numeric.c: Likewise.
29227         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
29228         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
29229         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
29230         * tests/unictype/test-pr_other_id_continue.c: Likewise.
29231         * tests/unictype/test-pr_other_id_start.c: Likewise.
29232         * tests/unictype/test-pr_other_lowercase.c: Likewise.
29233         * tests/unictype/test-pr_other_math.c: Likewise.
29234         * tests/unictype/test-pr_other_uppercase.c: Likewise.
29235         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
29236         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
29237         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
29238         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
29239         * tests/unictype/test-pr_private_use.c: Likewise.
29240         * tests/unictype/test-pr_punctuation.c: Likewise.
29241         * tests/unictype/test-pr_quotation_mark.c: Likewise.
29242         * tests/unictype/test-pr_radical.c: Likewise.
29243         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
29244         * tests/unictype/test-pr_soft_dotted.c: Likewise.
29245         * tests/unictype/test-pr_space.c: Likewise.
29246         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
29247         * tests/unictype/test-pr_titlecase.c: Likewise.
29248         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
29249         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
29250         * tests/unictype/test-pr_uppercase.c: Likewise.
29251         * tests/unictype/test-pr_variation_selector.c: Likewise.
29252         * tests/unictype/test-pr_white_space.c: Likewise.
29253         * tests/unictype/test-pr_xid_continue.c: Likewise.
29254         * tests/unictype/test-pr_xid_start.c: Likewise.
29255         * tests/unictype/test-pr_zero_width.c: Likewise.
29256         * tests/unictype/test-sy_c_whitespace.c: Likewise.
29257         * tests/unictype/test-sy_java_whitespace.c: Likewise.
29258
29259 2007-11-12  Bruno Haible  <bruno@clisp.org>
29260
29261         Unicode character classification functions.
29262         * lib/unictype.h: New file.
29263         * modules/unictype/base: New file.
29264         * modules/unictype/category-L: New file.
29265         * modules/unictype/category-Lu: New file.
29266         * modules/unictype/category-Ll: New file.
29267         * modules/unictype/category-Lt: New file.
29268         * modules/unictype/category-Lm: New file.
29269         * modules/unictype/category-Lo: New file.
29270         * modules/unictype/category-M: New file.
29271         * modules/unictype/category-Mn: New file.
29272         * modules/unictype/category-Mc: New file.
29273         * modules/unictype/category-Me: New file.
29274         * modules/unictype/category-N: New file.
29275         * modules/unictype/category-Nd: New file.
29276         * modules/unictype/category-Nl: New file.
29277         * modules/unictype/category-No: New file.
29278         * modules/unictype/category-P: New file.
29279         * modules/unictype/category-Pc: New file.
29280         * modules/unictype/category-Pd: New file.
29281         * modules/unictype/category-Ps: New file.
29282         * modules/unictype/category-Pe: New file.
29283         * modules/unictype/category-Pi: New file.
29284         * modules/unictype/category-Pf: New file.
29285         * modules/unictype/category-Po: New file.
29286         * modules/unictype/category-S: New file.
29287         * modules/unictype/category-Sm: New file.
29288         * modules/unictype/category-Sc: New file.
29289         * modules/unictype/category-Sk: New file.
29290         * modules/unictype/category-So: New file.
29291         * modules/unictype/category-Z: New file.
29292         * modules/unictype/category-Zs: New file.
29293         * modules/unictype/category-Zl: New file.
29294         * modules/unictype/category-Zp: New file.
29295         * modules/unictype/category-C: New file.
29296         * modules/unictype/category-Cc: New file.
29297         * modules/unictype/category-Cf: New file.
29298         * modules/unictype/category-Cs: New file.
29299         * modules/unictype/category-Co: New file.
29300         * modules/unictype/category-Cn: New file.
29301         * modules/unictype/category-or: New file.
29302         * modules/unictype/category-of: New file.
29303         * modules/unictype/category-test: New file.
29304         * modules/unictype/category-test-withtable: New file.
29305         * modules/unictype/category-byname: New file.
29306         * modules/unictype/category-none: New file.
29307         * modules/unictype/category-and: New file.
29308         * modules/unictype/category-and-not: New file.
29309         * modules/unictype/category-name: New file.
29310         * modules/unictype/combining-class: New file.
29311         * modules/unictype/category-all: New file.
29312         * modules/unictype/bidicategory-all: New file.
29313         * modules/unictype/bidicategory-byname: New file.
29314         * modules/unictype/bidicategory-name: New file.
29315         * modules/unictype/bidicategory-of: New file.
29316         * modules/unictype/bidicategory-test: New file.
29317         * modules/unictype/decimal-digit: New file.
29318         * modules/unictype/digit: New file.
29319         * modules/unictype/numeric: New file.
29320         * modules/unictype/mirror: New file.
29321         * modules/unictype/property-white-space: New file.
29322         * modules/unictype/property-alphabetic: New file.
29323         * modules/unictype/property-other-alphabetic: New file.
29324         * modules/unictype/property-not-a-character: New file.
29325         * modules/unictype/property-default-ignorable-code-point: New file.
29326         * modules/unictype/property-other-default-ignorable-code-point: New
29327         file.
29328         * modules/unictype/property-deprecated: New file.
29329         * modules/unictype/property-logical-order-exception: New file.
29330         * modules/unictype/property-variation-selector: New file.
29331         * modules/unictype/property-private-use: New file.
29332         * modules/unictype/property-unassigned-code-value: New file.
29333         * modules/unictype/property-uppercase: New file.
29334         * modules/unictype/property-other-uppercase: New file.
29335         * modules/unictype/property-lowercase: New file.
29336         * modules/unictype/property-other-lowercase: New file.
29337         * modules/unictype/property-titlecase: New file.
29338         * modules/unictype/property-soft-dotted: New file.
29339         * modules/unictype/property-id-start: New file.
29340         * modules/unictype/property-other-id-start: New file.
29341         * modules/unictype/property-id-continue: New file.
29342         * modules/unictype/property-other-id-continue: New file.
29343         * modules/unictype/property-xid-start: New file.
29344         * modules/unictype/property-xid-continue: New file.
29345         * modules/unictype/property-pattern-white-space: New file.
29346         * modules/unictype/property-pattern-syntax: New file.
29347         * modules/unictype/property-join-control: New file.
29348         * modules/unictype/property-grapheme-base: New file.
29349         * modules/unictype/property-grapheme-extend: New file.
29350         * modules/unictype/property-other-grapheme-extend: New file.
29351         * modules/unictype/property-grapheme-link: New file.
29352         * modules/unictype/property-bidi-control: New file.
29353         * modules/unictype/property-bidi-left-to-right: New file.
29354         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
29355         * modules/unictype/property-bidi-arabic-right-to-left: New file.
29356         * modules/unictype/property-bidi-european-digit: New file.
29357         * modules/unictype/property-bidi-eur-num-separator: New file.
29358         * modules/unictype/property-bidi-eur-num-terminator: New file.
29359         * modules/unictype/property-bidi-arabic-digit: New file.
29360         * modules/unictype/property-bidi-common-separator: New file.
29361         * modules/unictype/property-bidi-block-separator: New file.
29362         * modules/unictype/property-bidi-segment-separator: New file.
29363         * modules/unictype/property-bidi-whitespace: New file.
29364         * modules/unictype/property-bidi-non-spacing-mark: New file.
29365         * modules/unictype/property-bidi-boundary-neutral: New file.
29366         * modules/unictype/property-bidi-pdf: New file.
29367         * modules/unictype/property-bidi-embedding-or-override: New file.
29368         * modules/unictype/property-bidi-other-neutral: New file.
29369         * modules/unictype/property-hex-digit: New file.
29370         * modules/unictype/property-ascii-hex-digit: New file.
29371         * modules/unictype/property-ideographic: New file.
29372         * modules/unictype/property-unified-ideograph: New file.
29373         * modules/unictype/property-radical: New file.
29374         * modules/unictype/property-ids-binary-operator: New file.
29375         * modules/unictype/property-ids-trinary-operator: New file.
29376         * modules/unictype/property-zero-width: New file.
29377         * modules/unictype/property-space: New file.
29378         * modules/unictype/property-non-break: New file.
29379         * modules/unictype/property-iso-control: New file.
29380         * modules/unictype/property-format-control: New file.
29381         * modules/unictype/property-dash: New file.
29382         * modules/unictype/property-hyphen: New file.
29383         * modules/unictype/property-punctuation: New file.
29384         * modules/unictype/property-line-separator: New file.
29385         * modules/unictype/property-paragraph-separator: New file.
29386         * modules/unictype/property-quotation-mark: New file.
29387         * modules/unictype/property-sentence-terminal: New file.
29388         * modules/unictype/property-terminal-punctuation: New file.
29389         * modules/unictype/property-currency-symbol: New file.
29390         * modules/unictype/property-math: New file.
29391         * modules/unictype/property-other-math: New file.
29392         * modules/unictype/property-paired-punctuation: New file.
29393         * modules/unictype/property-left-of-pair: New file.
29394         * modules/unictype/property-combining: New file.
29395         * modules/unictype/property-composite: New file.
29396         * modules/unictype/property-decimal-digit: New file.
29397         * modules/unictype/property-numeric: New file.
29398         * modules/unictype/property-diacritic: New file.
29399         * modules/unictype/property-extender: New file.
29400         * modules/unictype/property-ignorable-control: New file.
29401         * modules/unictype/property-test: New file.
29402         * modules/unictype/property-byname: New file.
29403         * modules/unictype/property-all: New file.
29404         * modules/unictype/scripts: New file.
29405         * modules/unictype/scripts-all: New file.
29406         * modules/unictype/block-of: New file.
29407         * modules/unictype/block-test: New file.
29408         * modules/unictype/block-list: New file.
29409         * modules/unictype/block-all: New file.
29410         * modules/unictype/syntax-c-whitespace: New file.
29411         * modules/unictype/syntax-java-whitespace: New file.
29412         * modules/unictype/syntax-c-ident: New file.
29413         * modules/unictype/syntax-java-ident: New file.
29414         * modules/unictype/ctype-alnum: New file.
29415         * modules/unictype/ctype-alpha: New file.
29416         * modules/unictype/ctype-cntrl: New file.
29417         * modules/unictype/ctype-digit: New file.
29418         * modules/unictype/ctype-graph: New file.
29419         * modules/unictype/ctype-lower: New file.
29420         * modules/unictype/ctype-print: New file.
29421         * modules/unictype/ctype-punct: New file.
29422         * modules/unictype/ctype-space: New file.
29423         * modules/unictype/ctype-upper: New file.
29424         * modules/unictype/ctype-xdigit: New file.
29425         * modules/unictype/ctype-blank: New file.
29426         * lib/unictype/bidi_byname.c: New file.
29427         * lib/unictype/bidi_name.c: New file.
29428         * lib/unictype/bidi_of.c: New file.
29429         * lib/unictype/bidi_test.c: New file.
29430         * lib/unictype/bitmap.h: New file.
29431         * lib/unictype/block_test.c: New file.
29432         * lib/unictype/blocks.c: New file.
29433         * lib/unictype/categ_C.c: New file.
29434         * lib/unictype/categ_Cc.c: New file.
29435         * lib/unictype/categ_Cf.c: New file.
29436         * lib/unictype/categ_Cn.c: New file.
29437         * lib/unictype/categ_Co.c: New file.
29438         * lib/unictype/categ_Cs.c: New file.
29439         * lib/unictype/categ_L.c: New file.
29440         * lib/unictype/categ_Ll.c: New file.
29441         * lib/unictype/categ_Lm.c: New file.
29442         * lib/unictype/categ_Lo.c: New file.
29443         * lib/unictype/categ_Lt.c: New file.
29444         * lib/unictype/categ_Lu.c: New file.
29445         * lib/unictype/categ_M.c: New file.
29446         * lib/unictype/categ_Mc.c: New file.
29447         * lib/unictype/categ_Me.c: New file.
29448         * lib/unictype/categ_Mn.c: New file.
29449         * lib/unictype/categ_N.c: New file.
29450         * lib/unictype/categ_Nd.c: New file.
29451         * lib/unictype/categ_Nl.c: New file.
29452         * lib/unictype/categ_No.c: New file.
29453         * lib/unictype/categ_P.c: New file.
29454         * lib/unictype/categ_Pc.c: New file.
29455         * lib/unictype/categ_Pd.c: New file.
29456         * lib/unictype/categ_Pe.c: New file.
29457         * lib/unictype/categ_Pf.c: New file.
29458         * lib/unictype/categ_Pi.c: New file.
29459         * lib/unictype/categ_Po.c: New file.
29460         * lib/unictype/categ_Ps.c: New file.
29461         * lib/unictype/categ_S.c: New file.
29462         * lib/unictype/categ_Sc.c: New file.
29463         * lib/unictype/categ_Sk.c: New file.
29464         * lib/unictype/categ_Sm.c: New file.
29465         * lib/unictype/categ_So.c: New file.
29466         * lib/unictype/categ_Z.c: New file.
29467         * lib/unictype/categ_Zl.c: New file.
29468         * lib/unictype/categ_Zp.c: New file.
29469         * lib/unictype/categ_Zs.c: New file.
29470         * lib/unictype/categ_and.c: New file.
29471         * lib/unictype/categ_and_not.c: New file.
29472         * lib/unictype/categ_byname.c: New file.
29473         * lib/unictype/categ_name.c: New file.
29474         * lib/unictype/categ_none.c: New file.
29475         * lib/unictype/categ_of.c: New file.
29476         * lib/unictype/categ_or.c: New file.
29477         * lib/unictype/categ_test.c: New file.
29478         * lib/unictype/combining.c: New file.
29479         * lib/unictype/ctype_alnum.c: New file.
29480         * lib/unictype/ctype_alpha.c: New file.
29481         * lib/unictype/ctype_blank.c: New file.
29482         * lib/unictype/ctype_cntrl.c: New file.
29483         * lib/unictype/ctype_digit.c: New file.
29484         * lib/unictype/ctype_graph.c: New file.
29485         * lib/unictype/ctype_lower.c: New file.
29486         * lib/unictype/ctype_print.c: New file.
29487         * lib/unictype/ctype_punct.c: New file.
29488         * lib/unictype/ctype_space.c: New file.
29489         * lib/unictype/ctype_upper.c: New file.
29490         * lib/unictype/ctype_xdigit.c: New file.
29491         * lib/unictype/decdigit.c: New file.
29492         * lib/unictype/digit.c: New file.
29493         * lib/unictype/identsyntaxmap.h: New file.
29494         * lib/unictype/mirror.c: New file.
29495         * lib/unictype/numeric.c: New file.
29496         * lib/unictype/pr_alphabetic.c: New file.
29497         * lib/unictype/pr_ascii_hex_digit.c: New file.
29498         * lib/unictype/pr_bidi_arabic_digit.c: New file.
29499         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
29500         * lib/unictype/pr_bidi_block_separator.c: New file.
29501         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
29502         * lib/unictype/pr_bidi_common_separator.c: New file.
29503         * lib/unictype/pr_bidi_control.c: New file.
29504         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
29505         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
29506         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
29507         * lib/unictype/pr_bidi_european_digit.c: New file.
29508         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
29509         * lib/unictype/pr_bidi_left_to_right.c: New file.
29510         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
29511         * lib/unictype/pr_bidi_other_neutral.c: New file.
29512         * lib/unictype/pr_bidi_pdf.c: New file.
29513         * lib/unictype/pr_bidi_segment_separator.c: New file.
29514         * lib/unictype/pr_bidi_whitespace.c: New file.
29515         * lib/unictype/pr_byname.c: New file.
29516         * lib/unictype/pr_byname.gperf: New file.
29517         * lib/unictype/pr_combining.c: New file.
29518         * lib/unictype/pr_composite.c: New file.
29519         * lib/unictype/pr_currency_symbol.c: New file.
29520         * lib/unictype/pr_dash.c: New file.
29521         * lib/unictype/pr_decimal_digit.c: New file.
29522         * lib/unictype/pr_default_ignorable_code_point.c: New file.
29523         * lib/unictype/pr_deprecated.c: New file.
29524         * lib/unictype/pr_diacritic.c: New file.
29525         * lib/unictype/pr_extender.c: New file.
29526         * lib/unictype/pr_format_control.c: New file.
29527         * lib/unictype/pr_grapheme_base.c: New file.
29528         * lib/unictype/pr_grapheme_extend.c: New file.
29529         * lib/unictype/pr_grapheme_link.c: New file.
29530         * lib/unictype/pr_hex_digit.c: New file.
29531         * lib/unictype/pr_hyphen.c: New file.
29532         * lib/unictype/pr_id_continue.c: New file.
29533         * lib/unictype/pr_id_start.c: New file.
29534         * lib/unictype/pr_ideographic.c: New file.
29535         * lib/unictype/pr_ids_binary_operator.c: New file.
29536         * lib/unictype/pr_ids_trinary_operator.c: New file.
29537         * lib/unictype/pr_ignorable_control.c: New file.
29538         * lib/unictype/pr_iso_control.c: New file.
29539         * lib/unictype/pr_join_control.c: New file.
29540         * lib/unictype/pr_left_of_pair.c: New file.
29541         * lib/unictype/pr_line_separator.c: New file.
29542         * lib/unictype/pr_logical_order_exception.c: New file.
29543         * lib/unictype/pr_lowercase.c: New file.
29544         * lib/unictype/pr_math.c: New file.
29545         * lib/unictype/pr_non_break.c: New file.
29546         * lib/unictype/pr_not_a_character.c: New file.
29547         * lib/unictype/pr_numeric.c: New file.
29548         * lib/unictype/pr_other_alphabetic.c: New file.
29549         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
29550         * lib/unictype/pr_other_grapheme_extend.c: New file.
29551         * lib/unictype/pr_other_id_continue.c: New file.
29552         * lib/unictype/pr_other_id_start.c: New file.
29553         * lib/unictype/pr_other_lowercase.c: New file.
29554         * lib/unictype/pr_other_math.c: New file.
29555         * lib/unictype/pr_other_uppercase.c: New file.
29556         * lib/unictype/pr_paired_punctuation.c: New file.
29557         * lib/unictype/pr_paragraph_separator.c: New file.
29558         * lib/unictype/pr_pattern_syntax.c: New file.
29559         * lib/unictype/pr_pattern_white_space.c: New file.
29560         * lib/unictype/pr_private_use.c: New file.
29561         * lib/unictype/pr_punctuation.c: New file.
29562         * lib/unictype/pr_quotation_mark.c: New file.
29563         * lib/unictype/pr_radical.c: New file.
29564         * lib/unictype/pr_sentence_terminal.c: New file.
29565         * lib/unictype/pr_soft_dotted.c: New file.
29566         * lib/unictype/pr_space.c: New file.
29567         * lib/unictype/pr_terminal_punctuation.c: New file.
29568         * lib/unictype/pr_test.c: New file.
29569         * lib/unictype/pr_titlecase.c: New file.
29570         * lib/unictype/pr_unassigned_code_value.c: New file.
29571         * lib/unictype/pr_unified_ideograph.c: New file.
29572         * lib/unictype/pr_uppercase.c: New file.
29573         * lib/unictype/pr_variation_selector.c: New file.
29574         * lib/unictype/pr_white_space.c: New file.
29575         * lib/unictype/pr_xid_continue.c: New file.
29576         * lib/unictype/pr_xid_start.c: New file.
29577         * lib/unictype/pr_zero_width.c: New file.
29578         * lib/unictype/scripts.c: New file.
29579         * lib/unictype/sy_c_ident.c: New file.
29580         * lib/unictype/sy_c_whitespace.c: New file.
29581         * lib/unictype/sy_java_ident.c: New file.
29582         * lib/unictype/sy_java_whitespace.c: New file.
29583
29584         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
29585         Unicode 5.0.0.
29586         * lib/unictype/blocks.h: Likewise.
29587         * lib/unictype/categ_C.h: Likewise.
29588         * lib/unictype/categ_Cc.h: Likewise.
29589         * lib/unictype/categ_Cf.h: Likewise.
29590         * lib/unictype/categ_Cn.h: Likewise.
29591         * lib/unictype/categ_Co.h: Likewise.
29592         * lib/unictype/categ_Cs.h: Likewise.
29593         * lib/unictype/categ_L.h: Likewise.
29594         * lib/unictype/categ_Ll.h: Likewise.
29595         * lib/unictype/categ_Lm.h: Likewise.
29596         * lib/unictype/categ_Lo.h: Likewise.
29597         * lib/unictype/categ_Lt.h: Likewise.
29598         * lib/unictype/categ_Lu.h: Likewise.
29599         * lib/unictype/categ_M.h: Likewise.
29600         * lib/unictype/categ_Mc.h: Likewise.
29601         * lib/unictype/categ_Me.h: Likewise.
29602         * lib/unictype/categ_Mn.h: Likewise.
29603         * lib/unictype/categ_N.h: Likewise.
29604         * lib/unictype/categ_Nd.h: Likewise.
29605         * lib/unictype/categ_Nl.h: Likewise.
29606         * lib/unictype/categ_No.h: Likewise.
29607         * lib/unictype/categ_P.h: Likewise.
29608         * lib/unictype/categ_Pc.h: Likewise.
29609         * lib/unictype/categ_Pd.h: Likewise.
29610         * lib/unictype/categ_Pe.h: Likewise.
29611         * lib/unictype/categ_Pf.h: Likewise.
29612         * lib/unictype/categ_Pi.h: Likewise.
29613         * lib/unictype/categ_Po.h: Likewise.
29614         * lib/unictype/categ_Ps.h: Likewise.
29615         * lib/unictype/categ_S.h: Likewise.
29616         * lib/unictype/categ_Sc.h: Likewise.
29617         * lib/unictype/categ_Sk.h: Likewise.
29618         * lib/unictype/categ_Sm.h: Likewise.
29619         * lib/unictype/categ_So.h: Likewise.
29620         * lib/unictype/categ_Z.h: Likewise.
29621         * lib/unictype/categ_Zl.h: Likewise.
29622         * lib/unictype/categ_Zp.h: Likewise.
29623         * lib/unictype/categ_Zs.h: Likewise.
29624         * lib/unictype/categ_of.h: Likewise.
29625         * lib/unictype/combining.h: Likewise.
29626         * lib/unictype/ctype_alnum.h: Likewise.
29627         * lib/unictype/ctype_alpha.h: Likewise.
29628         * lib/unictype/ctype_blank.h: Likewise.
29629         * lib/unictype/ctype_cntrl.h: Likewise.
29630         * lib/unictype/ctype_digit.h: Likewise.
29631         * lib/unictype/ctype_graph.h: Likewise.
29632         * lib/unictype/ctype_lower.h: Likewise.
29633         * lib/unictype/ctype_print.h: Likewise.
29634         * lib/unictype/ctype_punct.h: Likewise.
29635         * lib/unictype/ctype_space.h: Likewise.
29636         * lib/unictype/ctype_upper.h: Likewise.
29637         * lib/unictype/ctype_xdigit.h: Likewise.
29638         * lib/unictype/decdigit.h: Likewise.
29639         * lib/unictype/digit.h: Likewise.
29640         * lib/unictype/mirror.h: Likewise.
29641         * lib/unictype/numeric.h: Likewise.
29642         * lib/unictype/pr_alphabetic.h: Likewise.
29643         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
29644         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
29645         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
29646         * lib/unictype/pr_bidi_block_separator.h: Likewise.
29647         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
29648         * lib/unictype/pr_bidi_common_separator.h: Likewise.
29649         * lib/unictype/pr_bidi_control.h: Likewise.
29650         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
29651         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
29652         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
29653         * lib/unictype/pr_bidi_european_digit.h: Likewise.
29654         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
29655         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
29656         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
29657         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
29658         * lib/unictype/pr_bidi_pdf.h: Likewise.
29659         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
29660         * lib/unictype/pr_bidi_whitespace.h: Likewise.
29661         * lib/unictype/pr_combining.h: Likewise.
29662         * lib/unictype/pr_composite.h: Likewise.
29663         * lib/unictype/pr_currency_symbol.h: Likewise.
29664         * lib/unictype/pr_dash.h: Likewise.
29665         * lib/unictype/pr_decimal_digit.h: Likewise.
29666         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
29667         * lib/unictype/pr_deprecated.h: Likewise.
29668         * lib/unictype/pr_diacritic.h: Likewise.
29669         * lib/unictype/pr_extender.h: Likewise.
29670         * lib/unictype/pr_format_control.h: Likewise.
29671         * lib/unictype/pr_grapheme_base.h: Likewise.
29672         * lib/unictype/pr_grapheme_extend.h: Likewise.
29673         * lib/unictype/pr_grapheme_link.h: Likewise.
29674         * lib/unictype/pr_hex_digit.h: Likewise.
29675         * lib/unictype/pr_hyphen.h: Likewise.
29676         * lib/unictype/pr_id_continue.h: Likewise.
29677         * lib/unictype/pr_id_start.h: Likewise.
29678         * lib/unictype/pr_ideographic.h: Likewise.
29679         * lib/unictype/pr_ids_binary_operator.h: Likewise.
29680         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
29681         * lib/unictype/pr_ignorable_control.h: Likewise.
29682         * lib/unictype/pr_iso_control.h: Likewise.
29683         * lib/unictype/pr_join_control.h: Likewise.
29684         * lib/unictype/pr_left_of_pair.h: Likewise.
29685         * lib/unictype/pr_line_separator.h: Likewise.
29686         * lib/unictype/pr_logical_order_exception.h: Likewise.
29687         * lib/unictype/pr_lowercase.h: Likewise.
29688         * lib/unictype/pr_math.h: Likewise.
29689         * lib/unictype/pr_non_break.h: Likewise.
29690         * lib/unictype/pr_not_a_character.h: Likewise.
29691         * lib/unictype/pr_numeric.h: Likewise.
29692         * lib/unictype/pr_other_alphabetic.h: Likewise.
29693         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
29694         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
29695         * lib/unictype/pr_other_id_continue.h: Likewise.
29696         * lib/unictype/pr_other_id_start.h: Likewise.
29697         * lib/unictype/pr_other_lowercase.h: Likewise.
29698         * lib/unictype/pr_other_math.h: Likewise.
29699         * lib/unictype/pr_other_uppercase.h: Likewise.
29700         * lib/unictype/pr_paired_punctuation.h: Likewise.
29701         * lib/unictype/pr_paragraph_separator.h: Likewise.
29702         * lib/unictype/pr_pattern_syntax.h: Likewise.
29703         * lib/unictype/pr_pattern_white_space.h: Likewise.
29704         * lib/unictype/pr_private_use.h: Likewise.
29705         * lib/unictype/pr_punctuation.h: Likewise.
29706         * lib/unictype/pr_quotation_mark.h: Likewise.
29707         * lib/unictype/pr_radical.h: Likewise.
29708         * lib/unictype/pr_sentence_terminal.h: Likewise.
29709         * lib/unictype/pr_soft_dotted.h: Likewise.
29710         * lib/unictype/pr_space.h: Likewise.
29711         * lib/unictype/pr_terminal_punctuation.h: Likewise.
29712         * lib/unictype/pr_titlecase.h: Likewise.
29713         * lib/unictype/pr_unassigned_code_value.h: Likewise.
29714         * lib/unictype/pr_unified_ideograph.h: Likewise.
29715         * lib/unictype/pr_uppercase.h: Likewise.
29716         * lib/unictype/pr_variation_selector.h: Likewise.
29717         * lib/unictype/pr_white_space.h: Likewise.
29718         * lib/unictype/pr_xid_continue.h: Likewise.
29719         * lib/unictype/pr_xid_start.h: Likewise.
29720         * lib/unictype/pr_zero_width.h: Likewise.
29721         * lib/unictype/scripts.h: Likewise.
29722         * lib/unictype/scripts_byname.gperf: Likewise.
29723         * lib/unictype/sy_c_ident.h: Likewise.
29724         * lib/unictype/sy_c_whitespace.h: Likewise.
29725         * lib/unictype/sy_java_ident.h: Likewise.
29726         * lib/unictype/sy_java_whitespace.h: Likewise.
29727
29728         * lib/unictype/Makefile: New file.
29729         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
29730         glibc.
29731         * lib/unictype/3level.h: New file, copied from glibc.
29732         * lib/unictype/3levelbit.h: New file.
29733
29734 2007-11-11  Bruno Haible  <bruno@clisp.org>
29735
29736         * modules/gperf: New file.
29737         * modules/iconv_open (Depends-on): Add it.
29738         (Makefile.am): Remove the GPERF definition.
29739
29740 2007-11-11  Bruno Haible  <bruno@clisp.org>
29741
29742         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
29743         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
29744
29745 2007-11-11  Bruno Haible  <bruno@clisp.org>
29746
29747         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
29748         (usage): Remove function.
29749
29750 2007-11-11  Bruno Haible  <bruno@clisp.org>
29751
29752         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
29753         gl_FUNC_CEILF_LIBS.
29754         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
29755         gl_FUNC_CEIL_LIBS.
29756         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
29757         gl_FUNC_CEILL_LIBS.
29758         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
29759         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
29760         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
29761
29762 2007-11-11  Bruno Haible  <bruno@clisp.org>
29763
29764         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
29765         roundf were declared but do not exist on functions.
29766         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
29767         roundl were declared but do not exist on functions.
29768         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
29769         HAVE_FLOORL_AND_CEILL, respectively.
29770         Needed for Sun C on Solaris 10.
29771
29772 2007-11-11  Bruno Haible  <bruno@clisp.org>
29773
29774         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
29775         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
29776         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
29777         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
29778         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
29779         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
29780         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
29781         HAVE_DECL_ROUNDF.
29782         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
29783         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
29784         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
29785         of HAVE_DECL_ROUND*.
29786         * modules/math (Makefile.am): Update.
29787
29788 2007-11-10  Bruno Haible  <bruno@clisp.org>
29789
29790         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
29791         ptrdiff_t as m4/intl.m4.
29792
29793 2007-11-10  Jim Meyering  <meyering@redhat.com>
29794
29795         Avoid link failure for the argmatch test.
29796         * tests/test-argmatch.c (usage): Define function to avoid a link
29797         failure: argmatch_die requires a usage function.
29798
29799 2007-11-09  Bruno Haible  <bruno@clisp.org>
29800
29801         * doc/functions/snprintf.texi: Mention BeOS deficiency.
29802         * doc/functions/vsnprintf.texi: Likewise.
29803         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
29804         with a size argument < 2.
29805
29806 2007-11-09  Bruno Haible  <bruno@clisp.org>
29807
29808         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
29809         buffer. Fixes an inefficiency introduced on 2007-11-03.
29810
29811 2007-11-09  Bruno Haible  <bruno@clisp.org>
29812
29813         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
29814         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
29815
29816 2007-11-08  Jim Meyering  <meyering@redhat.com>
29817
29818         Change cache variable name prefix "jm_" to "gl_" everywhere.
29819         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
29820         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
29821         * m4/uptime.m4: s/gl_/jm_/
29822
29823 2007-11-07  Bruno Haible  <bruno@clisp.org>
29824
29825         Update to GNU gettext 0.17.
29826         * m4/intl.m4: Update to GNU gettext 0.17.
29827         * m4/po.m4: Likewise.
29828         * modules/gettext (Files): Remove m4/ulonglong.m4.
29829         (configure.ac): Require gettext infrastructure from version 0.17.
29830
29831 2007-11-06  Bruno Haible  <bruno@clisp.org>
29832
29833         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
29834         symbolic values are not defined in a public header.
29835         * lib/freadable.c (freadable) [QNX]: Likewise.
29836         * lib/freadahead.c (freadahead) [QNX]: Likewise.
29837         * lib/freading.c (freading) [QNX]: Likewise.
29838         * lib/fseterr.c (fseterr) [QNX]: Likewise.
29839         * lib/fwritable.c (fwritable) [QNX]: Likewise.
29840         * lib/fwriting.c (fwriting) [QNX]: Likewise.
29841         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
29842         Reported by Alain Magloire.
29843
29844         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
29845
29846 2007-11-05  Bruno Haible  <bruno@clisp.org>
29847
29848         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
29849         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
29850         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
29851         Reported by Eric Blake.
29852
29853 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29854             Bruno Haible  <bruno@clisp.org>
29855
29856         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
29857         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
29858         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
29859         (malloc): Undefine also before including <stdlib.h>.
29860         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
29861         Needed on OSF/1 4.0.
29862
29863 2007-11-05  Jim Meyering  <meyering@redhat.com>
29864
29865         git-version-gen: sync from coreutils.
29866         * build-aux/git-version-gen: Add comments.
29867         Change the first '-' to '.' in the snapshot version string,
29868         e.g., 6.9-377-08144 -> 6.9.377-08144
29869         Remove first parameter.
29870         Don't declare a version "-dirty" merely because a time
29871         stamp has changed.
29872
29873 2007-11-04  Bruno Haible  <bruno@clisp.org>
29874
29875         * lib/lock.h: Protect all macro definitions containing an 'if'
29876         statement through a "do { ... } while (0)".
29877         * lib/tls.h: Likewise.
29878
29879 2007-11-04  Bruno Haible  <bruno@clisp.org>
29880
29881         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
29882
29883 2007-11-04  Bruno Haible  <bruno@clisp.org>
29884
29885         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
29886         * modules/fprintf-posix (Depends-on): Add nocrash.
29887         * modules/snprintf-posix (Depends-on): Likewise.
29888         * modules/sprintf-posix (Depends-on): Likewise.
29889         * modules/vasnprintf-posix (Depends-on): Likewise.
29890         * modules/vasprintf-posix (Depends-on): Likewise.
29891         * modules/vfprintf-posix (Depends-on): Likewise.
29892         * modules/vsnprintf-posix (Depends-on): Likewise.
29893         * modules/vsprintf-posix (Depends-on): Likewise.
29894         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
29895         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29896         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29897         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29898         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29899         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29900         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29901
29902 2007-11-04  Bruno Haible  <bruno@clisp.org>
29903
29904         * modules/nocrash: New file.
29905         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
29906         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
29907
29908 2007-11-04  Bruno Haible  <bruno@clisp.org>
29909
29910         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
29911         precision handling.
29912         * tests/test-vasprintf-posix.c (test_function): Likewise.
29913         * tests/test-snprintf-posix.h (test_function): Likewise.
29914         * tests/test-sprintf-posix.h (test_function): Likewise.
29915
29916         Fix *printf behaviour for large precisions on mingw and BeOS.
29917         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
29918         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
29919         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
29920         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29921         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29922         gl_PRINTF_PRECISION and test its result. Invoke
29923         gl_PREREQ_VASNPRINTF_PRECISION.
29924         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29925         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29926         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29927         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29928         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29929         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29930         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29931         * doc/functions/fprintf.texi: Update.
29932         * doc/functions/printf.texi: Update.
29933         * doc/functions/snprintf.texi: Update.
29934         * doc/functions/sprintf.texi: Update.
29935         * doc/functions/vfprintf.texi: Update.
29936         * doc/functions/vprintf.texi: Update.
29937         * doc/functions/vsnprintf.texi: Update.
29938         * doc/functions/vsprintf.texi: Update.
29939
29940 2007-11-04  Bruno Haible  <bruno@clisp.org>
29941
29942         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
29943
29944 2007-11-04  Bruno Haible  <bruno@clisp.org>
29945
29946         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
29947         Reported by Sylvain Beucler <beuc@gnu.org>.
29948
29949 2007-11-03  Bruno Haible  <bruno@clisp.org>
29950
29951         * tests/test-fprintf-posix2.sh: New file.
29952         * tests/test-fprintf-posix2.c: New file.
29953         * modules/fprintf-posix-tests (Files): Add them.
29954         (TESTS): Add test-fprintf-posix2.sh.
29955         (configure.ac): Check for getrlimit and setrlimit.
29956         (check_PROGRAMS): Add test-fprintf-posix2.
29957
29958         * tests/test-printf-posix2.sh: New file.
29959         * tests/test-printf-posix2.c: New file.
29960         * modules/printf-posix-tests (Files): Add them.
29961         (TESTS): Add test-printf-posix2.sh.
29962         (configure.ac): Check for getrlimit and setrlimit.
29963         (check_PROGRAMS): Add test-printf-posix2.
29964
29965         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
29966         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
29967         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
29968         (decode_double): New function, copied from decode_long_double.
29969         (scale10_round_decimal_decoded): New function, extracted from
29970         scale10_round_decimal_long_double.
29971         (scale10_round_decimal_long_double): Use it.
29972         (scale10_round_decimal_double): New function.
29973         (floorlog10): New function.
29974         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
29975         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
29976         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
29977         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29978         gl_PRINTF_ENOMEM and test its result. Invoke
29979         gl_PREREQ_VASNPRINTF_ENOMEM.
29980         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29981         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29982         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29983         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29984         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29985         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29986         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29987         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
29988         * modules/snprintf-posix (Depends-on): Likewise.
29989         * modules/sprintf-posix (Depends-on): Likewise.
29990         * modules/vasnprintf-posix (Depends-on): Likewise.
29991         * modules/vasprintf-posix (Depends-on): Likewise.
29992         * modules/vfprintf-posix (Depends-on): Likewise.
29993         * modules/vsnprintf-posix (Depends-on): Likewise.
29994         * modules/vsprintf-posix (Depends-on): Likewise.
29995         * doc/functions/fprintf.texi: Update.
29996         * doc/functions/printf.texi: Update.
29997         * doc/functions/snprintf.texi: Update.
29998         * doc/functions/sprintf.texi: Update.
29999         * doc/functions/vfprintf.texi: Update.
30000         * doc/functions/vprintf.texi: Update.
30001         * doc/functions/vsnprintf.texi: Update.
30002         * doc/functions/vsprintf.texi: Update.
30003
30004 2007-11-03  Bruno Haible  <bruno@clisp.org>
30005
30006         * modules/frexp-nolibm-tests: New file.
30007
30008         * modules/frexp-nolibm: New file.
30009         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
30010
30011 2007-11-03  Bruno Haible  <bruno@clisp.org>
30012
30013         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
30014         value is C99 compliant.
30015         Needed for OSF/1 5.1.
30016
30017 2007-11-03  Bruno Haible  <bruno@clisp.org>
30018
30019         Fix out-of-memory handling of vasnprintf.
30020         * lib/printf-parse.c: Include <errno.h>.
30021         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
30022         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
30023         is already set.
30024
30025 2007-11-02  Eric Blake  <ebb9@byu.net>
30026
30027         Fix tests on cygwin.
30028         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
30029
30030 2007-11-01  Bruno Haible  <bruno@clisp.org>
30031
30032         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
30033         warning.
30034         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
30035         needed for POSIX compatibility.
30036
30037 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
30038
30039         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
30040         for compatibility with GNU.
30041
30042 2007-11-01  Bruno Haible  <bruno@clisp.org>
30043
30044         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
30045         (putenv): Renamed from rpl_putenv. Change argument type from
30046         'const char *' to 'char *'.
30047         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
30048         of defining putenv in config.h, just set REPLACE_PUTENV.
30049         * modules/putenv (Depends-on): Add stdlib.
30050         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
30051         (Include): Use <stdlib.h>.
30052         * lib/stdlib.in.h (putenv): New declaration.
30053         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
30054         REPLACE_PUTENV.
30055         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
30056         REPLACE_PUTENV.
30057         Needed for MacOS X 10.5.0.
30058         Reported by Peter O'Gorman <peter@pogma.com>.
30059
30060 2007-11-01  Jim Meyering  <meyering@redhat.com>
30061
30062         Treat an empty date string exactly like "0".
30063         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
30064         if the remaining date string (to be parsed) is empty, use "0".
30065         Reported by Mischa Molhoek and discussed in this thread:
30066         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
30067
30068 2007-10-31  Bruno Haible  <bruno@clisp.org>
30069
30070         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
30071         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
30072         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
30073         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
30074         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
30075         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
30076
30077 2007-10-31  Bruno Haible  <bruno@clisp.org>
30078
30079         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
30080         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
30081         (AC_TYPE_LONG_LONG_INT): Use it.
30082         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
30083         it as well.
30084         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
30085         to m4/longlong.m4.
30086         * modules/stdint (Files): Remove m4/ulonglong.m4.
30087         * modules/strtoull (Files): Use m4/longlong.m4 instead of
30088         m4/ulonglong.m4.
30089         * modules/strtoumax (Files): Likewise.
30090
30091 2007-10-30  Bruno Haible  <bruno@clisp.org>
30092
30093         * modules/xvasprintf-posix: New file.
30094         Suggested by Eric Blake.
30095
30096 2007-10-30  Bruno Haible  <bruno@clisp.org>
30097
30098         * modules/xprintf-posix-tests: New file.
30099         * tests/test-xprintf-posix.sh: New file.
30100         * tests/test-xprintf-posix.c: New file.
30101         * tests/test-xfprintf-posix.c: New file.
30102
30103         * modules/xprintf-posix: New file.
30104
30105 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30106
30107         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
30108         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
30109         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
30110
30111 2007-10-29  Bruno Haible  <bruno@clisp.org>
30112
30113         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
30114         contain the special marker '_cv_'.
30115         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
30116         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
30117         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
30118         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
30119         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
30120         Reported by Ralf Wildenhues.
30121
30122 2007-10-29  Bruno Haible  <bruno@clisp.org>
30123
30124         * gnulib-tool (func_import): When --lgpl is not specified, set
30125         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
30126         GPLv3.
30127         Reported by Simon Josefsson.
30128
30129 2007-10-28  Bruno Haible  <bruno@clisp.org>
30130
30131         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
30132         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
30133         HAVE_DECL_ISFINITE.
30134         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
30135         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
30136         HAVE_DECL_ISFINITE.
30137
30138 2007-10-28  Bruno Haible  <bruno@clisp.org>
30139
30140         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
30141         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
30142
30143 2007-10-28  Bruno Haible  <bruno@clisp.org>
30144
30145         Fix link errors with Sun C 5.0 on Solaris 10.
30146         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
30147         function is declared but not present in the compiler's libm.
30148         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
30149         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
30150         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
30151         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
30152         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
30153         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
30154         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
30155         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
30156         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
30157         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
30158         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
30159         HAVE_DECL_FLOORL.
30160
30161 2007-10-28  Bruno Haible  <bruno@clisp.org>
30162
30163         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
30164         gl_FUNC_FLOORL. Cache the result.
30165         (gl_FUNC_FLOORL): Use it.
30166         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
30167         gl_FUNC_CEILL. Cache the result.
30168         (gl_FUNC_CEILL): Use it.
30169
30170         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
30171         gl_FUNC_FLOOR. Cache the result.
30172         (gl_FUNC_FLOOR): Use it.
30173         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
30174         gl_FUNC_CEIL. Cache the result.
30175         (gl_FUNC_CEIL): Use it.
30176
30177         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
30178         gl_FUNC_FLOORF. Cache the result.
30179         (gl_FUNC_FLOORF): Use it.
30180         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
30181         gl_FUNC_CEILF. Cache the result.
30182         (gl_FUNC_CEILF): Use it.
30183
30184 2007-10-28  Bruno Haible  <bruno@clisp.org>
30185
30186         * gnulib-tool: Allow specifying the LGPL version number through
30187         --lgpl=2 or --lgpl=3.
30188         (func_usage): Document --lgpl with argument.
30189         Handle --lgpl=... arguments.
30190         (func_import): Recognize also gl_LGPL calls with an argument. When
30191         --lgpl=2 is used and the module's license is just LGPL, report an
30192         error. Set sed_transform_lib_file according to the lgpl variable. In
30193         the generated files, use --lgpl or gl_LGPL invocations with argument,
30194         if necessary.
30195         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
30196         an LGPv2+ license.
30197         * doc/gnulib-tool.texi (Modified imports): Update explanation of
30198         gl_LGPL macro.
30199
30200 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30201             Bruno Haible  <bruno@clisp.org>
30202
30203         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
30204         (u16_uctomb_aux): Likewise.
30205         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
30206         !HAVE_INLINE.
30207         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
30208
30209 2007-10-28  Bruno Haible  <bruno@clisp.org>
30210
30211         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
30212         Invoke AM_GETTEXT_OPTION if it exists.
30213         * modules/vasprintf: Likewise.
30214         * modules/verror: Likewise.
30215         * modules/xprintf: Likewise.
30216         * modules/xvasprintf: Likewise.
30217
30218 2007-10-27  Ben Pfaff  <blp@gnu.org>
30219
30220         * lib/math.in.h: Define isfinite macro and prototypes for
30221         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
30222         implementations.
30223         * m4/math_h.m4: New substitutions for isfinite module.
30224         * lib/isfinite.c: New file.
30225         * m4/isfinite.m4: New file.
30226         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
30227         * modules/isfinite: New file.
30228         * modules/isfinite-tests: New file.
30229         * tests/tests-isfinite.c: New file.
30230         * doc/functions/isfinite.texi: Mention isfinite module.
30231         * MODULES.html.sh: Mention new module.
30232
30233 2007-10-27  Ben Pfaff  <blp@gnu.org>
30234
30235         Ralf Wildenhues reported that Tru64 4.0D declares the round
30236         functions but does not have definitions.
30237         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
30238         cannot be found in any library, set the output variable to
30239         "missing" instead of "".
30240         * m4/round.m4: Also use our substitute if we cannot find round in
30241         any library, even if it is declared.
30242         * m4/roundf.m4: Likewise for roundf.
30243         * m4/roundl.m4: Likewise for roundl.
30244         * lib/math.in.h: Undefine roundf, round, roundl before defining
30245         their replacements, to allow for hypothetical systems where these
30246         may be defined as macros but not available in libraries.
30247
30248 2007-10-27  Bruno Haible  <bruno@clisp.org>
30249
30250         * doc/gnulib.texi: Invoke @firstparagraphindent.
30251         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
30252         changes in gnulib.
30253         (Source changes): New section.
30254
30255 2007-10-26  Bruno Haible  <bruno@clisp.org>
30256
30257         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
30258         borrowed from autoconf.
30259
30260 2007-10-26  Bruno Haible  <bruno@clisp.org>
30261
30262         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
30263         strerror returned the empty string. Needed on HP-UX 11.00.
30264
30265 2007-10-24  Micah Cowan  <micah@cowan.name>
30266
30267         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
30268         * build-aux/bootstrap: Remove support for now-unnecessary option,
30269         --cvs-user, and envvars CVS_USER, CVS_RSH.
30270
30271 2007-10-24  Jim Meyering  <meyering@redhat.com>
30272
30273         Avoid diagnostics from sha1sum when there is no cached checksum.
30274         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
30275         if the po.s1 file hasn't been created yet.
30276
30277         * build-aux/bootstrap: Sync from coreutils:
30278         2007-10-24  Jim Meyering  <meyering@redhat.com>
30279         Get gnulib from the git repository, not from an obsolete cvs one.
30280         * build-aux/bootstrap: Suggestion from Micah Cowan.
30281         2007-10-04  Jim Meyering  <jim@meyering.net>
30282         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
30283         (update_po_files): Work also when there are no .po files in po/.
30284
30285 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
30286
30287         * README: Append ".git" to git and cg examples.
30288         Problem reported by Benoit Sigoure.
30289
30290 2007-10-23  Micah Cowan  <micah@cowan.name>
30291
30292         * users.txt: Add wget.
30293
30294 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30295
30296         Fix linking of some unistdio tests on FreeBSD.
30297         * modules/unistdio/u16-vsnprintf-tests
30298         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
30299         * modules/unistdio/u16-vsprintf-tests
30300         (test_u16_vsnprintf1_LDADD): Likewise.
30301         * modules/unistdio/u32-vsnprintf-tests
30302         (test_u32_vsnprintf1_LDADD): Likewise.
30303         * modules/unistdio/u32-vsprintf-tests
30304         (test_u32_vsprintf1_LDADD): Likewise.
30305         * modules/unistdio/u8-vsnprintf-tests
30306         (test_u8_vsnprintf1_LDADD): Likewise.
30307         * modules/unistdio/u8-vsprintf-tests
30308         (test_u8_vsprintf1_LDADD): Likewise.
30309         * modules/unistdio/ulc-vsnprintf-tests
30310         (test_ulc_vsnprintf1_LDADD): Likewise.
30311         * modules/unistdio/ulc-vsprintf-tests
30312         (test_ulc_vsprintf1_LDADD): Likewise.
30313
30314         Fix linking of some uniconv tests on FreeBSD.
30315         * modules/uniconv/u16-conv-from-enc-tests
30316         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
30317         * modules/uniconv/u16-conv-to-enc-tests
30318         (test_u16_conv_to_enc_LDADD): Likewise.
30319         * modules/uniconv/u16-strconv-from-enc-tests
30320         (test_u16_strconv_from_enc_LDADD): Likewise.
30321         * modules/uniconv/u16-strconv-to-enc-tests
30322         (test_u16_strconv_to_enc_LDADD): Likewise.
30323         * modules/uniconv/u32-conv-from-enc-tests
30324         (test_u32_conv_from_enc_LDADD): Likewise.
30325         * modules/uniconv/u32-conv-to-enc-tests
30326         (test_u32_conv_to_enc_LDADD): Likewise.
30327         * modules/uniconv/u32-strconv-from-enc-tests
30328         (test_u32_strconv_from_enc_LDADD): Likewise.
30329         * modules/uniconv/u32-strconv-to-enc-tests
30330         (test_u32_strconv_to_enc_LDADD): Likewise.
30331         * modules/uniconv/u8-conv-from-enc-tests
30332         (test_u8_conv_from_enc_LDADD): Likewise.
30333         * modules/uniconv/u8-conv-to-enc-tests
30334         (test_u8_conv_to_enc_LDADD): Likewise.
30335         * modules/uniconv/u8-strconv-from-enc-tests
30336         (test_u8_strconv_from_enc_LDADD): Likewise.
30337         * modules/uniconv/u8-strconv-to-enc-tests
30338         (test_u8_strconv_to_enc_LDADD): Likewise.
30339
30340 2007-10-22  Bruno Haible  <bruno@clisp.org>
30341
30342         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
30343         size.
30344
30345 2007-10-22  Eric Blake  <ebb9@byu.net>
30346
30347         Tweak x*printf documentation.
30348         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
30349         variable name and comments.
30350         Suggested by Bruno Haible.
30351
30352 2007-10-22  Bruno Haible  <bruno@clisp.org>
30353
30354         * lib/acl.c (copy_acl): Fix file name in comment.
30355
30356 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
30357
30358         Fix Tru64 problem with stdbool.h.
30359         * lib/stdbool.in.h (false, true):
30360         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
30361         Don't declare as an enum in this situation; it runs afoul of Tru64.
30362         Problem reported by Steven M. Schweda in
30363         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
30364
30365 2007-10-22  Eric Blake  <ebb9@byu.net>
30366
30367         Also wrap vf?printf.
30368         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
30369         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
30370         (xvprintf, xvfprintf): New functions.
30371
30372 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30373
30374         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
30375         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
30376
30377         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
30378         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
30379
30380 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
30381
30382         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
30383         by Bruno Haible.
30384
30385 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30386
30387         * lib/getloadavg.c
30388         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
30389         Undef `sys' after including sys/table.h, for Tru64 4.0D.
30390
30391         * tests/test-i-ring.c: Work for C89.
30392
30393 2007-10-22  Bruno Haible  <bruno@clisp.org>
30394
30395         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
30396         -1u, in preprocessor expression, so that we don't test for the bug
30397         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
30398         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
30399
30400 2007-10-22  Eric Blake  <ebb9@byu.net>
30401
30402         * tests/test-yesno.sh: Silence stderr during test.
30403
30404 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30405
30406         * modules/crypto/gc-camellia: New file.
30407
30408         * m4/gc-camellia.m4: New file.
30409
30410         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
30411
30412         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
30413
30414 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30415
30416         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
30417         --help to stdout.  Reported by sms@antinode.org (Steven
30418         M. Schweda).
30419
30420 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30421
30422         * users.txt: Fix link to libksba.
30423
30424 2007-10-21  Ben Pfaff  <blp@gnu.org>
30425
30426         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
30427         round.c roundf implementation that depends on floorf and ceilf to
30428         be tested unconditionally.
30429
30430 2007-10-21  Ben Pfaff  <blp@gnu.org>
30431
30432         * m4/check-libm-func.m4: Removed.
30433         * m4/check-math-lib.m4: New file.
30434         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
30435         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
30436         definition and lack of AC_LIBOBJ([roundf]).
30437         * m4/roundl.m4: Ditto, and similarly for roundl.
30438         * modules/round: Reference new m4 file.
30439         * modules/roundf: Ditto.
30440         * modules/roundl: Ditto.
30441         * tests/test-round2.c (main): Use ROUND instead of round.
30442         Bug report from Bruno Haible.
30443
30444 2007-10-21  Bruno Haible  <bruno@clisp.org>
30445
30446         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
30447         context.
30448
30449 2007-10-21  Bruno Haible  <bruno@clisp.org>
30450
30451         * tests/test-wcwidth.c (main): Allow negative result for some control
30452         characters.
30453
30454         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
30455         Needed on OSF/1 5.1.
30456
30457 2007-10-21  Bruno Haible  <bruno@clisp.org>
30458
30459         * tests/test-floorf1.c: Include isnanf.h.
30460         (main): Use isnanf() instead of isnan().
30461         * tests/test-ceilf1.c: Include isnanf.h.
30462         (main): Use isnanf() instead of isnan().
30463         * tests/test-truncf1.c: Include isnanf.h.
30464         (main): Use isnanf() instead of isnan().
30465         * tests/test-roundf1.c: Include isnanf.h.
30466         (main): Use isnanf() instead of isnan().
30467
30468 2007-10-21  Eric Blake  <ebb9@byu.net>
30469
30470         * users.txt: Update URL for m4.
30471
30472 2007-10-21  Bruno Haible  <bruno@clisp.org>
30473
30474         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
30475
30476 2007-10-21  Bruno Haible  <bruno@clisp.org>
30477
30478         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
30479         Git's management files if the CVS files are not present.
30480
30481 2007-10-20  Bruno Haible  <bruno@clisp.org>
30482
30483         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
30484         gcc-3.4.x.
30485
30486 2007-10-20  Ben Pfaff  <blp@gnu.org>
30487
30488         * lib/math.in.h: Declare round, roundf, roundl if we are providing
30489         implementations.
30490         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
30491         * lib/round.c: New file.
30492         * lib/roundf.c: New file.
30493         * lib/roundl.c: New file.
30494         * m4/round.m4: New file.
30495         * m4/roundf.m4: New file.
30496         * m4/roundl.m4: New file.
30497         * m4/check-libm-func-m4: New file.
30498         * modules/math: Replace round, roundf, roundl related @VARS@ in
30499         math.in.h.
30500         * modules/round: New file.
30501         * modules/round-tests: New file.
30502         * modules/roundf: New file.
30503         * modules/roundf-tests: New file.
30504         * modules/roundl: New file.
30505         * modules/roundl-tests: New file.
30506         * tests/test-round1.c: New file.
30507         * tests/test-round2.c: New file.
30508         * tests/test-roundf1.c: New file.
30509         * tests/test-roundf2.c: New file.
30510         * tests/test-roundl.c: New file.
30511         * doc/functions/round.texi: Mention round module.
30512         * doc/functions/roundf.texi: Mention roundf module.
30513         * doc/functions/roundl.texi: Mention roundl module.
30514         * MODULES.html.sh: Mention new modules.
30515         Thanks to Bruno Haible for suggestions.
30516
30517 2007-10-20  Jim Meyering  <meyering@redhat.com>
30518
30519         * lib/xprintf.c: Include <config.h> unconditionally.
30520
30521         Change xprintf's license to GPL.
30522         * modules/xprintf (License): s/LGPL/GPL/, since this module
30523         depends on modules (exit and exitfail) which are GPL.
30524         Suggestion from Bruno Haible.
30525
30526         xprintf fixes.
30527         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
30528         Use a clearer diagnostic.
30529         Patch from Bruno Haible.
30530
30531 2007-10-20  Bruno Haible  <bruno@clisp.org>
30532
30533         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
30534         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
30535         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30536
30537 2007-10-20  Bruno Haible  <bruno@clisp.org>
30538
30539         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
30540         precision in the comparison result > x - 1 or similar.
30541         * tests/test-ceilf2.c (correct_result_p): Likewise.
30542         * tests/test-truncf2.c (correct_result_p): Likewise.
30543         * tests/test-trunc2.c (correct_result_p): Likewise.
30544         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30545
30546 2007-10-20  Bruno Haible  <bruno@clisp.org>
30547
30548         * modules/ceil: New file.
30549         * m4/ceil.m4: New file.
30550         * doc/functions/ceil.texi: Mention the 'ceil' module.
30551
30552 2007-10-20  Bruno Haible  <bruno@clisp.org>
30553
30554         * modules/floor: New file.
30555         * m4/floor.m4: New file.
30556         * doc/functions/floor.texi: Mention the 'floor' module.
30557
30558 2007-10-20  Bruno Haible  <bruno@clisp.org>
30559
30560         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
30561         of %a.
30562         * modules/floorf-tests (Depends-on): Likewise.
30563         * modules/truncf-tests (Depends-on): Likewise.
30564         * modules/trunc-tests (Depends-on): Likewise.
30565         Reported by Ben Pfaff.
30566
30567 2007-10-19  Jim Meyering  <meyering@redhat.com>
30568
30569         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
30570         Don't bother testing specific errno values.  Just test ferror.
30571
30572         New module: xprintf
30573         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
30574
30575 2007-10-19  Bruno Haible  <bruno@clisp.org>
30576
30577         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
30578         syntax.
30579         * modules/javaexec (Makefile.am): Likewise.
30580         * modules/relocatable-prog (Makefile.am): Likewise.
30581         Suggested by Jim Meyering.
30582
30583 2007-10-18  Bruno Haible  <bruno@clisp.org>
30584
30585         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
30586         Reported by Jim Meyering.
30587
30588 2007-10-18  Eric Blake  <ebb9@byu.net>
30589
30590         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
30591
30592 2007-10-18  Bruno Haible  <bruno@clisp.org>
30593
30594         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
30595         the format string into writable memory. Needed in Fortify conditions.
30596
30597 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
30598             Bruno Haible  <bruno@clisp.org>
30599
30600         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
30601         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
30602         * modules/trim (Depends-on): Add mbchar.
30603         (configure.ac): Add gl_FUNC_MBRTOWC.
30604         (Makefile.am): Augment lib_SOURCES.
30605
30606 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
30607
30608         Modify glob.c to use fstatat and dirfd, to simplify it.
30609         Suggested by Eric Blake.
30610         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
30611         Don't include <stdbool.h>; not used.
30612         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
30613         (link_exists_p): Simplify implementation, since we can now assume
30614         dirfd and fstatat.
30615         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
30616
30617 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30618
30619         * gnulib-tool (func_get_dependencies): Fix sed script to
30620         match only tests.
30621
30622 2007-10-17  Bruno Haible  <bruno@clisp.org>
30623
30624         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
30625         allow locale names without encoding suffix.
30626         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
30627         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
30628
30629 2007-10-16  Bruno Haible  <bruno@clisp.org>
30630
30631         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
30632         * lib/getgroups.c (getgroups): Likewise.
30633         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
30634
30635 2007-10-16  Bruno Haible  <bruno@clisp.org>
30636
30637         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
30638         * modules/malloc-posix (License): Likewise.
30639         * modules/realloc-posix (License): Likewise.
30640         * modules/calloc-posix (License): Likewise.
30641         * modules/intprops (License): Change from GPL to LGPL, with
30642         Paul Eggert's approval.
30643
30644 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30645
30646         Merge glibc changes into lib/glob.c.
30647
30648         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
30649         2007-10-15 04:59:03 UTC.  Here are the changes:
30650
30651         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
30652
30653         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
30654
30655         * lib/glob.c: Add some branch prediction throughout.
30656
30657         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
30658
30659         [BZ #5103]
30660         * lib/glob.c (glob): Recognize patterns starting \/.
30661
30662         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
30663
30664         [BZ #3996]
30665         * lib/glob.c (attribute_hidden): Define if not defined.
30666         (glob): Unescape dirname, filename or username when needed and not
30667         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
30668         is NULL.  Handle unescaped [ in pattern without closing ].
30669         Don't pass GLOB_CHECK down to recursive glob for directories.
30670         (__glob_pattern_type): New function.
30671         (__glob_pattern_p): Implement using __glob_pattern_type.
30672         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
30673         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
30674         Remove unreachable code.
30675
30676         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
30677
30678         * lib/glob.c (glob_in_dir): Add some comments and asserts to
30679         explain why there are no leaks.
30680
30681         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
30682
30683         [BZ #3253]
30684         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
30685         time, rather allocate increasingly bigger arrays of pointers, if
30686         possible with alloca, if too large with malloc.
30687
30688 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30689
30690         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
30691         Problem reported by H.Merijn Brand in
30692         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
30693         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
30694         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
30695
30696 2007-10-15  Bruno Haible  <bruno@clisp.org>
30697
30698         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
30699         with explicit rpl_ prefix.
30700         * lib/fopen.c (fopen): Likewise.
30701         * lib/freopen.c (freopen): Likewise.
30702         * lib/iconv.c (iconv): Likewise.
30703         * lib/iconv_close.c (iconv_close): Likewise.
30704
30705 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30706
30707         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
30708
30709 2007-10-15  Bruno Haible  <bruno@clisp.org>
30710
30711         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
30712         <stddef.h> instead of <stdlib.h> since we only need NULL.
30713         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30714
30715 2007-10-15  Bruno Haible  <bruno@clisp.org>
30716
30717         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
30718         Replace paragraph talking about LIBOBJS.
30719         Reported by Colin Watson <cjwatson@debian.org>.
30720
30721 2007-10-15  Bruno Haible  <bruno@clisp.org>
30722
30723         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
30724         <stdlib.h> before using NULL.
30725
30726 2007-10-15  Simon Josefsson  <simon@josefsson.org>
30727
30728         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
30729         Reported by Albert Chin <china@thewrittenword.com>.
30730
30731 2007-10-14  Bruno Haible  <bruno@clisp.org>
30732
30733         * modules/iconv_open-utf-tests: New file.
30734         * tests/test-iconv-utf.c: New file.
30735
30736         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
30737         * modules/iconv_open-utf: New file.
30738         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
30739         (iconv, iconv_close): New declarations.
30740         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
30741         be defined.
30742         (iconv_open): Add special handling of conversion between UTF-8 and
30743         UTF-{16,32}{BE,LE}.
30744         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
30745         * lib/iconv_close.c: New file.
30746         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
30747         gl_FUNC_ICONV_OPEN.
30748         (gl_FUNC_ICONV_OPEN): Use it.
30749         (gl_FUNC_ICONV_OPEN_UTF): New macro.
30750         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
30751         and REPLACE_ICONV_UTF.
30752         * modules/iconv_open (Depends-on): Add c-strcase.
30753         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
30754         ICONV_CONST.
30755         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
30756
30757 2007-10-13  Albert Chin  <china@thewrittenword.com>
30758             Bruno Haible  <bruno@clisp.org>
30759
30760         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
30761         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
30762
30763 2007-10-13  Bruno Haible  <bruno@clisp.org>
30764
30765         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
30766         defined, use the ISO C99 inline semantics.
30767         * lib/argp.h (ARGP_EI): Likewise.
30768
30769 2007-10-13  Bruno Haible  <bruno@clisp.org>
30770
30771         Handle 'inline' change in gcc 4.3.0.
30772         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
30773         argp_fmtstream_write, argp_fmtstream_set_lmargin,
30774         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
30775         argp_fmtstream_point): Disable 'extern' declaration if the function
30776         definition is going to be provided inline.
30777         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
30778         semantics, not the ISO C99 inline semantics.
30779         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
30780         'extern' declaration if the function definition is going to be provided
30781         inline.
30782         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
30783         the GNU C inline semantics, not the ISO C99 inline semantics. With
30784         GCC 4.2, avoid a warning.
30785
30786 2007-10-13  Bruno Haible  <bruno@clisp.org>
30787
30788         * lib/freading.h (freading): Enable the use of __freading for
30789         glibc >= 2.7.
30790         * lib/freading.c (freading): Likewise.
30791
30792 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
30793
30794         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
30795         "warning: C99 inline functions are not supported; using GNU89".
30796
30797 2007-10-12  Bruno Haible  <bruno@clisp.org>
30798
30799         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
30800         of 2.
30801         * tests/test-ceilf2.c: New file.
30802         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
30803
30804         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
30805         * modules/ceilf-tests: Update.
30806
30807 2007-10-12  Bruno Haible  <bruno@clisp.org>
30808
30809         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
30810         of 2.
30811         * tests/test-floorf2.c: New file.
30812         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
30813
30814         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
30815         * modules/floorf-tests: Update.
30816
30817 2007-10-12  Bruno Haible  <bruno@clisp.org>
30818
30819         * tests/test-trunc2.c: New file.
30820         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
30821
30822         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
30823         * modules/trunc-tests: Update.
30824
30825 2007-10-12  Bruno Haible  <bruno@clisp.org>
30826
30827         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
30828         of 2.
30829         * tests/test-truncf2.c: New file.
30830         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
30831
30832         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
30833         * modules/truncf-tests: Update.
30834
30835 2007-10-11  Eric Blake  <ebb9@byu.net>
30836
30837         Don't claim strerror is broken on Interix.
30838         * doc/functions/strerror.texi (strerror): Known broken systems are
30839         now Solaris 8, and not Interix.
30840         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
30841         Interix on cross-compile.
30842         Reported by Martin Koeppe in
30843         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
30844
30845 2007-10-11  Bruno Haible  <bruno@clisp.org>
30846
30847         * modules/i-ring-tests: New file.
30848         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
30849         instead of assert.
30850
30851 2007-10-11  Bruno Haible  <bruno@clisp.org>
30852
30853         * modules/filenamecat-tests: New file.
30854         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
30855         * lib/filenamecat.c: Remove test code.
30856
30857 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
30858
30859         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
30860
30861         * lib/strerror.c: Include <string.h> always, to test interface,
30862         and to remove the need for the dummy.
30863         Include intprops.h to compute width instead of doing it ourselves
30864         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
30865         (strerror): Define it to return NULL if there's no system strerror.
30866         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
30867         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
30868         ancient pre-strerror Unix systems well any more.  Saying "unknown
30869         system error" is enough.
30870         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
30871         simpler strerror.c implementation.
30872         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
30873         Simplify the tests to reflect the simpler strerror implementation.
30874         * modules/strerror (Depends-on): Add intprops.
30875
30876 2007-10-09  Eric Blake  <ebb9@byu.net>
30877
30878         Silence test-fpending.
30879         * modules/fpending-tests (Files): Add wrapper script.
30880         * tests/test-fpending.sh: New file.
30881
30882 2007-10-09  Bruno Haible  <bruno@clisp.org>
30883
30884         * MODULES.html.sh (func_module): Don't create a hyperlink for
30885         function names like 'printf_frexp'.
30886         (Misc): Add crc, memxor.
30887         (Characteristics of floating types): New section.
30888         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
30889         isnanf-nolibm, signbit, trunc, truncf, truncl.
30890         (Enhancements for ISO C 99 functions): New subsection Input/output.
30891         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
30892         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
30893         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
30894         (Compatibility checks for POSIX:2001 functions): Add clock-time.
30895         (Enhancements for POSIX:2001 functions): Add chdir-long.
30896         (File system functions): Add areadlink, chdir-safer, read-file.
30897         Remove cycle-check.
30898         (File system as inode set): New section.
30899         (Date and time): Add gethrxtime.
30900         (Multithreading): Add openmp.
30901         (Internationalization functions): Add localename.
30902         (Unicode string functions): Add unistr/u*-mbsnlen.
30903         (Support for maintaining and releasing projects): Add git-version-gen.
30904         (Lone files): Remove directories.
30905
30906 2007-10-08  Ben Pfaff  <blp@gnu.org>
30907
30908         * lib/xmalloca.h: Fix typo in comment.
30909
30910 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
30911
30912         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
30913         when avoiding problems with integer overflow.  Use a portable test
30914         instead.
30915
30916 2007-10-08  Simon Josefsson  <simon@josefsson.org>
30917
30918         * modules/dummy (License): Change to LGPLv2+.
30919         * modules/float (License): Likewise
30920         * modules/realloc (License): Likewise
30921         * modules/stdlib (License): Likewise
30922
30923 2007-10-07  Bruno Haible  <bruno@clisp.org>
30924
30925         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
30926         * floor.c (TWO_MANT_DIG): Likewise.
30927         * ceil.c (TWO_MANT_DIG): Likewise.
30928         Reported by Ben Pfaff.
30929
30930 2007-10-07  Bruno Haible  <bruno@clisp.org>
30931
30932         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
30933         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
30934         * lib/frexp.c (FUNC): Likewise.
30935         * lib/printf-frexp.h (printf_frexp): Likewise.
30936         * lib/printf-frexpl.h (printf_frexpl): Likewise.
30937         * lib/printf-frexp.c (FUNC): Likewise.
30938         Suggested by Jim Meyering.
30939
30940 2007-10-07  Jim Meyering  <meyering@redhat.com>
30941
30942         Make xnanosleep's integer overflow test more robust.
30943         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
30944         so that gcc-4.3.0 doesn't optimize away this test for overflow.
30945
30946 2007-10-07  Bruno Haible  <bruno@clisp.org>
30947
30948         * NEWS: Mention the license change.
30949
30950         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
30951         abbreviations in the modules files.
30952
30953         Change copyright notice from GPLv2+ to GPLv3+.
30954         * README: Change copyright notice.
30955         * MODULES.html.sh: Likewise.
30956         * build-aux/bootstrap.conf: Likewise.
30957         * build-aux/config.libpath: Likewise.
30958         * build-aux/csharpcomp.sh.in: Likewise.
30959         * build-aux/csharpexec.sh.in: Likewise.
30960         * build-aux/install-reloc: Likewise.
30961         * build-aux/javacomp.sh.in: Likewise.
30962         * build-aux/javaexec.sh.in: Likewise.
30963         * build-aux/ldd.sh.in: Likewise.
30964         * build-aux/reloc-ldflags: Likewise.
30965         * build-aux/relocatable.sh.in: Likewise.
30966         * build-aux/x-to-1.in: Likewise.
30967         * check-module: Likewise.
30968         * config/srclistvars.sh: Likewise.
30969         * gnulib-tool: Likewise.
30970         * lib/acl-internal.h: Likewise.
30971         * lib/acl.c: Likewise.
30972         * lib/acl.h: Likewise.
30973         * lib/acl_entries.c: Likewise.
30974         * lib/areadlink-with-size.c: Likewise.
30975         * lib/areadlink.c: Likewise.
30976         * lib/areadlink.h: Likewise.
30977         * lib/argmatch.c: Likewise.
30978         * lib/argmatch.h: Likewise.
30979         * lib/argp-ba.c: Likewise.
30980         * lib/argp-eexst.c: Likewise.
30981         * lib/argp-fmtstream.c: Likewise.
30982         * lib/argp-fmtstream.h: Likewise.
30983         * lib/argp-fs-xinl.c: Likewise.
30984         * lib/argp-help.c: Likewise.
30985         * lib/argp-namefrob.h: Likewise.
30986         * lib/argp-parse.c: Likewise.
30987         * lib/argp-pin.c: Likewise.
30988         * lib/argp-pv.c: Likewise.
30989         * lib/argp-pvh.c: Likewise.
30990         * lib/argp-xinl.c: Likewise.
30991         * lib/argp.h: Likewise.
30992         * lib/at-func.c: Likewise.
30993         * lib/atanl.c: Likewise.
30994         * lib/backupfile.c: Likewise.
30995         * lib/backupfile.h: Likewise.
30996         * lib/basename.c: Likewise.
30997         * lib/binary-io.h: Likewise.
30998         * lib/byteswap.in.h: Likewise.
30999         * lib/c-stack.c: Likewise.
31000         * lib/c-stack.h: Likewise.
31001         * lib/c-strcasestr.c: Likewise.
31002         * lib/c-strcasestr.h: Likewise.
31003         * lib/c-strstr.c: Likewise.
31004         * lib/c-strstr.h: Likewise.
31005         * lib/c-strtod.c: Likewise.
31006         * lib/calloc.c: Likewise.
31007         * lib/canon-host.c: Likewise.
31008         * lib/canon-host.h: Likewise.
31009         * lib/canonicalize-lgpl.c: Likewise.
31010         * lib/canonicalize.c: Likewise.
31011         * lib/canonicalize.h: Likewise.
31012         * lib/ceil.c: Likewise.
31013         * lib/ceilf.c: Likewise.
31014         * lib/ceill.c: Likewise.
31015         * lib/chdir-long.c: Likewise.
31016         * lib/chdir-long.h: Likewise.
31017         * lib/chdir-safer.c: Likewise.
31018         * lib/chdir-safer.h: Likewise.
31019         * lib/chown.c: Likewise.
31020         * lib/classpath.c: Likewise.
31021         * lib/classpath.h: Likewise.
31022         * lib/clean-temp.c: Likewise.
31023         * lib/clean-temp.h: Likewise.
31024         * lib/cloexec.c: Likewise.
31025         * lib/close-stream.c: Likewise.
31026         * lib/closein.c: Likewise.
31027         * lib/closein.h: Likewise.
31028         * lib/closeout.c: Likewise.
31029         * lib/closeout.h: Likewise.
31030         * lib/concat-filename.c: Likewise.
31031         * lib/copy-file.c: Likewise.
31032         * lib/copy-file.h: Likewise.
31033         * lib/count-one-bits.h: Likewise.
31034         * lib/crc.c: Likewise.
31035         * lib/crc.h: Likewise.
31036         * lib/creat-safer.c: Likewise.
31037         * lib/csharpcomp.c: Likewise.
31038         * lib/csharpcomp.h: Likewise.
31039         * lib/csharpexec.c: Likewise.
31040         * lib/csharpexec.h: Likewise.
31041         * lib/cycle-check.c: Likewise.
31042         * lib/cycle-check.h: Likewise.
31043         * lib/diacrit.c: Likewise.
31044         * lib/diacrit.h: Likewise.
31045         * lib/diffseq.h: Likewise.
31046         * lib/dirchownmod.c: Likewise.
31047         * lib/dirent.in.h: Likewise.
31048         * lib/dirfd.c: Likewise.
31049         * lib/dirfd.h: Likewise.
31050         * lib/dirname.c: Likewise.
31051         * lib/dirname.h: Likewise.
31052         * lib/dummy.c: Likewise.
31053         * lib/dup-safer.c: Likewise.
31054         * lib/dup2.c: Likewise.
31055         * lib/eealloc.h: Likewise.
31056         * lib/error.c: Likewise.
31057         * lib/error.h: Likewise.
31058         * lib/euidaccess.c: Likewise.
31059         * lib/exclude.c: Likewise.
31060         * lib/exclude.h: Likewise.
31061         * lib/execute.c: Likewise.
31062         * lib/execute.h: Likewise.
31063         * lib/exitfail.c: Likewise.
31064         * lib/exitfail.h: Likewise.
31065         * lib/expl.c: Likewise.
31066         * lib/fatal-signal.c: Likewise.
31067         * lib/fatal-signal.h: Likewise.
31068         * lib/fbufmode.c: Likewise.
31069         * lib/fbufmode.h: Likewise.
31070         * lib/fchdir.c: Likewise.
31071         * lib/fchmodat.c: Likewise.
31072         * lib/fchownat.c: Likewise.
31073         * lib/fcntl--.h: Likewise.
31074         * lib/fcntl-safer.h: Likewise.
31075         * lib/fcntl.in.h: Likewise.
31076         * lib/fd-safer.c: Likewise.
31077         * lib/fflush.c: Likewise.
31078         * lib/file-has-acl.c: Likewise.
31079         * lib/file-set.c: Likewise.
31080         * lib/file-type.c: Likewise.
31081         * lib/file-type.h: Likewise.
31082         * lib/fileblocks.c: Likewise.
31083         * lib/filemode.c: Likewise.
31084         * lib/filemode.h: Likewise.
31085         * lib/filename.h: Likewise.
31086         * lib/filenamecat.c: Likewise.
31087         * lib/filenamecat.h: Likewise.
31088         * lib/findprog.c: Likewise.
31089         * lib/findprog.h: Likewise.
31090         * lib/float.in.h: Likewise.
31091         * lib/floor.c: Likewise.
31092         * lib/floorf.c: Likewise.
31093         * lib/floorl.c: Likewise.
31094         * lib/fopen-safer.c: Likewise.
31095         * lib/fopen.c: Likewise.
31096         * lib/fpending.c: Likewise.
31097         * lib/fpending.h: Likewise.
31098         * lib/fprintf.c: Likewise.
31099         * lib/fprintftime.h: Likewise.
31100         * lib/fpucw.h: Likewise.
31101         * lib/fpurge.c: Likewise.
31102         * lib/fpurge.h: Likewise.
31103         * lib/freadable.c: Likewise.
31104         * lib/freadable.h: Likewise.
31105         * lib/freadahead.c: Likewise.
31106         * lib/freadahead.h: Likewise.
31107         * lib/freading.c: Likewise.
31108         * lib/freading.h: Likewise.
31109         * lib/free.c: Likewise.
31110         * lib/freopen.c: Likewise.
31111         * lib/frexp.c: Likewise.
31112         * lib/frexpl.c: Likewise.
31113         * lib/fseek.c: Likewise.
31114         * lib/fseterr.c: Likewise.
31115         * lib/fseterr.h: Likewise.
31116         * lib/fstatat.c: Likewise.
31117         * lib/fstrcmp.c: Likewise.
31118         * lib/fstrcmp.h: Likewise.
31119         * lib/fsusage.c: Likewise.
31120         * lib/fsusage.h: Likewise.
31121         * lib/ftell.c: Likewise.
31122         * lib/ftello.c: Likewise.
31123         * lib/fts-cycle.c: Likewise.
31124         * lib/fts.c: Likewise.
31125         * lib/fts_.h: Likewise.
31126         * lib/full-read.c: Likewise.
31127         * lib/full-read.h: Likewise.
31128         * lib/full-write.c: Likewise.
31129         * lib/full-write.h: Likewise.
31130         * lib/fwritable.c: Likewise.
31131         * lib/fwritable.h: Likewise.
31132         * lib/fwriteerror.c: Likewise.
31133         * lib/fwriteerror.h: Likewise.
31134         * lib/fwriting.c: Likewise.
31135         * lib/fwriting.h: Likewise.
31136         * lib/gcd.c: Likewise.
31137         * lib/gcd.h: Likewise.
31138         * lib/getcwd.c: Likewise.
31139         * lib/getdate.h: Likewise.
31140         * lib/getdate.y: Likewise.
31141         * lib/getdomainname.c: Likewise.
31142         * lib/getdomainname.h: Likewise.
31143         * lib/getgroups.c: Likewise.
31144         * lib/gethostname.c: Likewise.
31145         * lib/gethrxtime.c: Likewise.
31146         * lib/gethrxtime.h: Likewise.
31147         * lib/getloadavg.c: Likewise.
31148         * lib/getndelim2.c: Likewise.
31149         * lib/getndelim2.h: Likewise.
31150         * lib/getnline.c: Likewise.
31151         * lib/getnline.h: Likewise.
31152         * lib/getopt.c: Likewise.
31153         * lib/getopt.in.h: Likewise.
31154         * lib/getopt1.c: Likewise.
31155         * lib/getopt_int.h: Likewise.
31156         * lib/getpagesize.h: Likewise.
31157         * lib/getsubopt.c: Likewise.
31158         * lib/gettime.c: Likewise.
31159         * lib/getugroups.c: Likewise.
31160         * lib/getugroups.h: Likewise.
31161         * lib/getusershell.c: Likewise.
31162         * lib/gl_anyavltree_list1.h: Likewise.
31163         * lib/gl_anyavltree_list2.h: Likewise.
31164         * lib/gl_anyhash_list1.h: Likewise.
31165         * lib/gl_anyhash_list2.h: Likewise.
31166         * lib/gl_anylinked_list1.h: Likewise.
31167         * lib/gl_anylinked_list2.h: Likewise.
31168         * lib/gl_anyrbtree_list1.h: Likewise.
31169         * lib/gl_anyrbtree_list2.h: Likewise.
31170         * lib/gl_anytree_list1.h: Likewise.
31171         * lib/gl_anytree_list2.h: Likewise.
31172         * lib/gl_anytree_oset.h: Likewise.
31173         * lib/gl_anytreehash_list1.h: Likewise.
31174         * lib/gl_anytreehash_list2.h: Likewise.
31175         * lib/gl_array_list.c: Likewise.
31176         * lib/gl_array_list.h: Likewise.
31177         * lib/gl_array_oset.c: Likewise.
31178         * lib/gl_array_oset.h: Likewise.
31179         * lib/gl_avltree_list.c: Likewise.
31180         * lib/gl_avltree_list.h: Likewise.
31181         * lib/gl_avltree_oset.c: Likewise.
31182         * lib/gl_avltree_oset.h: Likewise.
31183         * lib/gl_avltreehash_list.c: Likewise.
31184         * lib/gl_avltreehash_list.h: Likewise.
31185         * lib/gl_carray_list.c: Likewise.
31186         * lib/gl_carray_list.h: Likewise.
31187         * lib/gl_linked_list.c: Likewise.
31188         * lib/gl_linked_list.h: Likewise.
31189         * lib/gl_linkedhash_list.c: Likewise.
31190         * lib/gl_linkedhash_list.h: Likewise.
31191         * lib/gl_list.c: Likewise.
31192         * lib/gl_list.h: Likewise.
31193         * lib/gl_oset.c: Likewise.
31194         * lib/gl_oset.h: Likewise.
31195         * lib/gl_rbtree_list.c: Likewise.
31196         * lib/gl_rbtree_list.h: Likewise.
31197         * lib/gl_rbtree_oset.c: Likewise.
31198         * lib/gl_rbtree_oset.h: Likewise.
31199         * lib/gl_rbtreehash_list.c: Likewise.
31200         * lib/gl_rbtreehash_list.h: Likewise.
31201         * lib/gl_sublist.c: Likewise.
31202         * lib/gl_sublist.h: Likewise.
31203         * lib/group-member.c: Likewise.
31204         * lib/group-member.h: Likewise.
31205         * lib/hard-locale.c: Likewise.
31206         * lib/hard-locale.h: Likewise.
31207         * lib/hash-pjw.c: Likewise.
31208         * lib/hash-pjw.h: Likewise.
31209         * lib/hash-triple.c: Likewise.
31210         * lib/hash.c: Likewise.
31211         * lib/hash.h: Likewise.
31212         * lib/human.c: Likewise.
31213         * lib/human.h: Likewise.
31214         * lib/i-ring.c: Likewise.
31215         * lib/i-ring.h: Likewise.
31216         * lib/idcache.c: Likewise.
31217         * lib/imaxabs.c: Likewise.
31218         * lib/imaxdiv.c: Likewise.
31219         * lib/inet_pton.c: Likewise.
31220         * lib/inet_pton.h: Likewise.
31221         * lib/intprops.h: Likewise.
31222         * lib/inttostr.c: Likewise.
31223         * lib/inttostr.h: Likewise.
31224         * lib/inttypes.in.h: Likewise.
31225         * lib/isapipe.c: Likewise.
31226         * lib/isdir.c: Likewise.
31227         * lib/isnan.c: Likewise.
31228         * lib/isnan.h: Likewise.
31229         * lib/isnanf.c: Likewise.
31230         * lib/isnanf.h: Likewise.
31231         * lib/isnanl-nolibm.h: Likewise.
31232         * lib/isnanl.c: Likewise.
31233         * lib/isnanl.h: Likewise.
31234         * lib/javacomp.c: Likewise.
31235         * lib/javacomp.h: Likewise.
31236         * lib/javaexec.c: Likewise.
31237         * lib/javaexec.h: Likewise.
31238         * lib/javaversion.c: Likewise.
31239         * lib/javaversion.h: Likewise.
31240         * lib/javaversion.java: Likewise.
31241         * lib/lbrkprop.h: Likewise.
31242         * lib/lchmod.h: Likewise.
31243         * lib/lchown.c: Likewise.
31244         * lib/ldexpl.c: Likewise.
31245         * lib/linebreak.c: Likewise.
31246         * lib/linebreak.h: Likewise.
31247         * lib/linebuffer.c: Likewise.
31248         * lib/linebuffer.h: Likewise.
31249         * lib/locale.in.h: Likewise.
31250         * lib/logl.c: Likewise.
31251         * lib/long-options.c: Likewise.
31252         * lib/long-options.h: Likewise.
31253         * lib/lstat.c: Likewise.
31254         * lib/lstat.h: Likewise.
31255         * lib/math.in.h: Likewise.
31256         * lib/mbchar.c: Likewise.
31257         * lib/mbchar.h: Likewise.
31258         * lib/mbfile.h: Likewise.
31259         * lib/mbiter.h: Likewise.
31260         * lib/mbscasecmp.c: Likewise.
31261         * lib/mbscasestr.c: Likewise.
31262         * lib/mbschr.c: Likewise.
31263         * lib/mbscspn.c: Likewise.
31264         * lib/mbslen.c: Likewise.
31265         * lib/mbsncasecmp.c: Likewise.
31266         * lib/mbsnlen.c: Likewise.
31267         * lib/mbspbrk.c: Likewise.
31268         * lib/mbspcasecmp.c: Likewise.
31269         * lib/mbsrchr.c: Likewise.
31270         * lib/mbssep.c: Likewise.
31271         * lib/mbsspn.c: Likewise.
31272         * lib/mbsstr.c: Likewise.
31273         * lib/mbstok_r.c: Likewise.
31274         * lib/mbswidth.c: Likewise.
31275         * lib/mbswidth.h: Likewise.
31276         * lib/mbuiter.h: Likewise.
31277         * lib/memcasecmp.c: Likewise.
31278         * lib/memcasecmp.h: Likewise.
31279         * lib/memchr.c: Likewise.
31280         * lib/memcmp.c: Likewise.
31281         * lib/memcoll.c: Likewise.
31282         * lib/memcoll.h: Likewise.
31283         * lib/memcpy.c: Likewise.
31284         * lib/memrchr.c: Likewise.
31285         * lib/mkancesdirs.c: Likewise.
31286         * lib/mkdir-p.c: Likewise.
31287         * lib/mkdir-p.h: Likewise.
31288         * lib/mkdir.c: Likewise.
31289         * lib/mkdirat.c: Likewise.
31290         * lib/mkdtemp.c: Likewise.
31291         * lib/mkstemp-safer.c: Likewise.
31292         * lib/mkstemp.c: Likewise.
31293         * lib/modechange.c: Likewise.
31294         * lib/modechange.h: Likewise.
31295         * lib/mountlist.c: Likewise.
31296         * lib/mountlist.h: Likewise.
31297         * lib/mpsort.c: Likewise.
31298         * lib/nanosleep.c: Likewise.
31299         * lib/obstack.c: Likewise.
31300         * lib/obstack.h: Likewise.
31301         * lib/open-safer.c: Likewise.
31302         * lib/open.c: Likewise.
31303         * lib/openat-die.c: Likewise.
31304         * lib/openat-priv.h: Likewise.
31305         * lib/openat-proc.c: Likewise.
31306         * lib/openat.c: Likewise.
31307         * lib/openat.h: Likewise.
31308         * lib/pagealign_alloc.c: Likewise.
31309         * lib/pagealign_alloc.h: Likewise.
31310         * lib/physmem.c: Likewise.
31311         * lib/physmem.h: Likewise.
31312         * lib/pipe-safer.c: Likewise.
31313         * lib/pipe.c: Likewise.
31314         * lib/pipe.h: Likewise.
31315         * lib/posixtm.c: Likewise.
31316         * lib/posixtm.h: Likewise.
31317         * lib/posixver.c: Likewise.
31318         * lib/printf-frexp.c: Likewise.
31319         * lib/printf-frexp.h: Likewise.
31320         * lib/printf-frexpl.c: Likewise.
31321         * lib/printf-frexpl.h: Likewise.
31322         * lib/printf.c: Likewise.
31323         * lib/progname.c: Likewise.
31324         * lib/progname.h: Likewise.
31325         * lib/progreloc.c: Likewise.
31326         * lib/putenv.c: Likewise.
31327         * lib/quote.c: Likewise.
31328         * lib/quote.h: Likewise.
31329         * lib/quotearg.c: Likewise.
31330         * lib/quotearg.h: Likewise.
31331         * lib/raise.c: Likewise.
31332         * lib/readline.c: Likewise.
31333         * lib/readline.h: Likewise.
31334         * lib/readlink.c: Likewise.
31335         * lib/readtokens.c: Likewise.
31336         * lib/readtokens.h: Likewise.
31337         * lib/readtokens0.c: Likewise.
31338         * lib/readtokens0.h: Likewise.
31339         * lib/readutmp.c: Likewise.
31340         * lib/readutmp.h: Likewise.
31341         * lib/realloc.c: Likewise.
31342         * lib/relocwrapper.c: Likewise.
31343         * lib/rename-dest-slash.c: Likewise.
31344         * lib/rename.c: Likewise.
31345         * lib/rmdir.c: Likewise.
31346         * lib/rpmatch.c: Likewise.
31347         * lib/safe-read.c: Likewise.
31348         * lib/safe-read.h: Likewise.
31349         * lib/safe-write.c: Likewise.
31350         * lib/safe-write.h: Likewise.
31351         * lib/same-inode.h: Likewise.
31352         * lib/same.c: Likewise.
31353         * lib/same.h: Likewise.
31354         * lib/save-cwd.c: Likewise.
31355         * lib/save-cwd.h: Likewise.
31356         * lib/savedir.c: Likewise.
31357         * lib/savedir.h: Likewise.
31358         * lib/savewd.c: Likewise.
31359         * lib/savewd.h: Likewise.
31360         * lib/search.in.h: Likewise.
31361         * lib/setenv.c: Likewise.
31362         * lib/setenv.h: Likewise.
31363         * lib/settime.c: Likewise.
31364         * lib/sh-quote.c: Likewise.
31365         * lib/sh-quote.h: Likewise.
31366         * lib/sig2str.c: Likewise.
31367         * lib/sig2str.h: Likewise.
31368         * lib/signal.in.h: Likewise.
31369         * lib/signbitd.c: Likewise.
31370         * lib/signbitf.c: Likewise.
31371         * lib/signbitl.c: Likewise.
31372         * lib/sigprocmask.c: Likewise.
31373         * lib/sincosl.c: Likewise.
31374         * lib/sleep.c: Likewise.
31375         * lib/sprintf.c: Likewise.
31376         * lib/sqrtl.c: Likewise.
31377         * lib/stat-time.h: Likewise.
31378         * lib/stdio--.h: Likewise.
31379         * lib/stdio-safer.h: Likewise.
31380         * lib/stdlib--.h: Likewise.
31381         * lib/stdlib-safer.h: Likewise.
31382         * lib/stdlib.in.h: Likewise.
31383         * lib/stpcpy.c: Likewise.
31384         * lib/stpncpy.c: Likewise.
31385         * lib/strchrnul.c: Likewise.
31386         * lib/strcspn.c: Likewise.
31387         * lib/strerror.c: Likewise.
31388         * lib/strftime.c: Likewise.
31389         * lib/strftime.h: Likewise.
31390         * lib/striconveh.c: Likewise.
31391         * lib/striconveh.h: Likewise.
31392         * lib/striconveha.c: Likewise.
31393         * lib/striconveha.h: Likewise.
31394         * lib/stripslash.c: Likewise.
31395         * lib/strnlen1.c: Likewise.
31396         * lib/strnlen1.h: Likewise.
31397         * lib/strtod.c: Likewise.
31398         * lib/strtoimax.c: Likewise.
31399         * lib/strtok_r.c: Likewise.
31400         * lib/strtol.c: Likewise.
31401         * lib/strtoll.c: Likewise.
31402         * lib/strtoul.c: Likewise.
31403         * lib/strtoull.c: Likewise.
31404         * lib/sysexits.in.h: Likewise.
31405         * lib/tempname.c: Likewise.
31406         * lib/tempname.h: Likewise.
31407         * lib/timespec.h: Likewise.
31408         * lib/tls.c: Likewise.
31409         * lib/tls.h: Likewise.
31410         * lib/tmpdir.c: Likewise.
31411         * lib/tmpdir.h: Likewise.
31412         * lib/tmpfile-safer.c: Likewise.
31413         * lib/tmpfile.c: Likewise.
31414         * lib/trigl.c: Likewise.
31415         * lib/trigl.h: Likewise.
31416         * lib/trim.c: Likewise.
31417         * lib/trim.h: Likewise.
31418         * lib/trunc.c: Likewise.
31419         * lib/truncf.c: Likewise.
31420         * lib/truncl.c: Likewise.
31421         * lib/tsearch.c: Likewise.
31422         * lib/unicodeio.c: Likewise.
31423         * lib/unicodeio.h: Likewise.
31424         * lib/unistd--.h: Likewise.
31425         * lib/unistd-safer.h: Likewise.
31426         * lib/unistdio/ulc-fprintf.c: Likewise.
31427         * lib/unistdio/ulc-vfprintf.c: Likewise.
31428         * lib/unlinkdir.c: Likewise.
31429         * lib/unlinkdir.h: Likewise.
31430         * lib/unlocked-io.h: Likewise.
31431         * lib/unsetenv.c: Likewise.
31432         * lib/userspec.c: Likewise.
31433         * lib/utime.c: Likewise.
31434         * lib/utimecmp.c: Likewise.
31435         * lib/utimecmp.h: Likewise.
31436         * lib/utimens.c: Likewise.
31437         * lib/verify.h: Likewise.
31438         * lib/verror.c: Likewise.
31439         * lib/verror.h: Likewise.
31440         * lib/version-etc-fsf.c: Likewise.
31441         * lib/version-etc.c: Likewise.
31442         * lib/version-etc.h: Likewise.
31443         * lib/vfprintf.c: Likewise.
31444         * lib/vprintf.c: Likewise.
31445         * lib/vsprintf.c: Likewise.
31446         * lib/w32spawn.h: Likewise.
31447         * lib/wait-process.c: Likewise.
31448         * lib/wait-process.h: Likewise.
31449         * lib/wcwidth.c: Likewise.
31450         * lib/write-any-file.c: Likewise.
31451         * lib/xalloc-die.c: Likewise.
31452         * lib/xalloc.h: Likewise.
31453         * lib/xasprintf.c: Likewise.
31454         * lib/xgetcwd.c: Likewise.
31455         * lib/xgetcwd.h: Likewise.
31456         * lib/xgetdomainname.c: Likewise.
31457         * lib/xgetdomainname.h: Likewise.
31458         * lib/xgethostname.c: Likewise.
31459         * lib/xmalloc.c: Likewise.
31460         * lib/xmalloca.c: Likewise.
31461         * lib/xmalloca.h: Likewise.
31462         * lib/xmemcoll.c: Likewise.
31463         * lib/xnanosleep.c: Likewise.
31464         * lib/xreadlink.c: Likewise.
31465         * lib/xreadlink.h: Likewise.
31466         * lib/xsetenv.c: Likewise.
31467         * lib/xsetenv.h: Likewise.
31468         * lib/xstriconv.c: Likewise.
31469         * lib/xstriconv.h: Likewise.
31470         * lib/xstrndup.c: Likewise.
31471         * lib/xstrndup.h: Likewise.
31472         * lib/xstrtod.c: Likewise.
31473         * lib/xstrtod.h: Likewise.
31474         * lib/xstrtol-error.c: Likewise.
31475         * lib/xstrtol.c: Likewise.
31476         * lib/xstrtol.h: Likewise.
31477         * lib/xtime.h: Likewise.
31478         * lib/xvasprintf.c: Likewise.
31479         * lib/xvasprintf.h: Likewise.
31480         * lib/yesno.c: Likewise.
31481         * lib/yesno.h: Likewise.
31482         * posix-modules: Likewise.
31483         * tests/test-alloca-opt.c: Likewise.
31484         * tests/test-arcfour.c: Likewise.
31485         * tests/test-arctwo.c: Likewise.
31486         * tests/test-argmatch.c: Likewise.
31487         * tests/test-argp-2.sh: Likewise.
31488         * tests/test-argp.c: Likewise.
31489         * tests/test-arpa_inet.c: Likewise.
31490         * tests/test-array_list.c: Likewise.
31491         * tests/test-array_oset.c: Likewise.
31492         * tests/test-atexit.c: Likewise.
31493         * tests/test-avltree_list.c: Likewise.
31494         * tests/test-avltree_oset.c: Likewise.
31495         * tests/test-avltreehash_list.c: Likewise.
31496         * tests/test-base64.c: Likewise.
31497         * tests/test-binary-io.c: Likewise.
31498         * tests/test-byteswap.c: Likewise.
31499         * tests/test-c-ctype.c: Likewise.
31500         * tests/test-c-strcasecmp.c: Likewise.
31501         * tests/test-c-strcasestr.c: Likewise.
31502         * tests/test-c-strncasecmp.c: Likewise.
31503         * tests/test-c-strstr.c: Likewise.
31504         * tests/test-canonicalize-lgpl.c: Likewise.
31505         * tests/test-canonicalize.c: Likewise.
31506         * tests/test-carray_list.c: Likewise.
31507         * tests/test-ceilf.c: Likewise.
31508         * tests/test-ceill.c: Likewise.
31509         * tests/test-count-one-bits.c: Likewise.
31510         * tests/test-crc.c: Likewise.
31511         * tests/test-dirname.c: Likewise.
31512         * tests/test-fbufmode.c: Likewise.
31513         * tests/test-fcntl.c: Likewise.
31514         * tests/test-fflush.c: Likewise.
31515         * tests/test-floorf.c: Likewise.
31516         * tests/test-floorl.c: Likewise.
31517         * tests/test-fopen.c: Likewise.
31518         * tests/test-fprintf-posix.c: Likewise.
31519         * tests/test-fprintf-posix.h: Likewise.
31520         * tests/test-fpurge.c: Likewise.
31521         * tests/test-freadable.c: Likewise.
31522         * tests/test-freadahead.c: Likewise.
31523         * tests/test-freading.c: Likewise.
31524         * tests/test-freopen.c: Likewise.
31525         * tests/test-frexp.c: Likewise.
31526         * tests/test-frexpl.c: Likewise.
31527         * tests/test-fseek.c: Likewise.
31528         * tests/test-fseeko.c: Likewise.
31529         * tests/test-fseterr.c: Likewise.
31530         * tests/test-fstrcmp.c: Likewise.
31531         * tests/test-ftell.c: Likewise.
31532         * tests/test-ftello.c: Likewise.
31533         * tests/test-fwritable.c: Likewise.
31534         * tests/test-fwriting.c: Likewise.
31535         * tests/test-getaddrinfo.c: Likewise.
31536         * tests/test-getpass.c: Likewise.
31537         * tests/test-gettimeofday.c: Likewise.
31538         * tests/test-hmac-md5.c: Likewise.
31539         * tests/test-hmac-sha1.c: Likewise.
31540         * tests/test-iconv.c: Likewise.
31541         * tests/test-iconvme.c: Likewise.
31542         * tests/test-inttypes.c: Likewise.
31543         * tests/test-isnan.c: Likewise.
31544         * tests/test-isnanf.c: Likewise.
31545         * tests/test-isnanl-nolibm.c: Likewise.
31546         * tests/test-isnanl.c: Likewise.
31547         * tests/test-isnanl.h: Likewise.
31548         * tests/test-ldexpl.c: Likewise.
31549         * tests/test-linked_list.c: Likewise.
31550         * tests/test-linkedhash_list.c: Likewise.
31551         * tests/test-locale.c: Likewise.
31552         * tests/test-localename.c: Likewise.
31553         * tests/test-lock.c: Likewise.
31554         * tests/test-lseek.c: Likewise.
31555         * tests/test-malloca.c: Likewise.
31556         * tests/test-math.c: Likewise.
31557         * tests/test-mbscasecmp.c: Likewise.
31558         * tests/test-mbscasestr1.c: Likewise.
31559         * tests/test-mbscasestr2.c: Likewise.
31560         * tests/test-mbscasestr3.c: Likewise.
31561         * tests/test-mbscasestr4.c: Likewise.
31562         * tests/test-mbschr.c: Likewise.
31563         * tests/test-mbscspn.c: Likewise.
31564         * tests/test-mbsncasecmp.c: Likewise.
31565         * tests/test-mbspbrk.c: Likewise.
31566         * tests/test-mbspcasecmp.c: Likewise.
31567         * tests/test-mbsrchr.c: Likewise.
31568         * tests/test-mbsspn.c: Likewise.
31569         * tests/test-mbsstr1.c: Likewise.
31570         * tests/test-mbsstr2.c: Likewise.
31571         * tests/test-mbsstr3.c: Likewise.
31572         * tests/test-md5.c: Likewise.
31573         * tests/test-memmem.c: Likewise.
31574         * tests/test-netinet_in.c: Likewise.
31575         * tests/test-open.c: Likewise.
31576         * tests/test-printf-frexp.c: Likewise.
31577         * tests/test-printf-frexpl.c: Likewise.
31578         * tests/test-printf-posix.c: Likewise.
31579         * tests/test-printf-posix.h: Likewise.
31580         * tests/test-rbtree_list.c: Likewise.
31581         * tests/test-rbtree_oset.c: Likewise.
31582         * tests/test-rbtreehash_list.c: Likewise.
31583         * tests/test-read-file.c: Likewise.
31584         * tests/test-rijndael.c: Likewise.
31585         * tests/test-search.c: Likewise.
31586         * tests/test-signbit.c: Likewise.
31587         * tests/test-sleep.c: Likewise.
31588         * tests/test-snprintf-posix.c: Likewise.
31589         * tests/test-snprintf-posix.h: Likewise.
31590         * tests/test-snprintf.c: Likewise.
31591         * tests/test-sprintf-posix.c: Likewise.
31592         * tests/test-sprintf-posix.h: Likewise.
31593         * tests/test-stat-time.c: Likewise.
31594         * tests/test-stdbool.c: Likewise.
31595         * tests/test-stdint.c: Likewise.
31596         * tests/test-stdio.c: Likewise.
31597         * tests/test-stdlib.c: Likewise.
31598         * tests/test-stpncpy.c: Likewise.
31599         * tests/test-strcasestr.c: Likewise.
31600         * tests/test-striconv.c: Likewise.
31601         * tests/test-striconveh.c: Likewise.
31602         * tests/test-striconveha.c: Likewise.
31603         * tests/test-string.c: Likewise.
31604         * tests/test-sys_select.c: Likewise.
31605         * tests/test-sys_socket.c: Likewise.
31606         * tests/test-sys_stat.c: Likewise.
31607         * tests/test-sys_time.c: Likewise.
31608         * tests/test-sysexits.c: Likewise.
31609         * tests/test-time.c: Likewise.
31610         * tests/test-tls.c: Likewise.
31611         * tests/test-trunc.c: Likewise.
31612         * tests/test-truncf.c: Likewise.
31613         * tests/test-truncl.c: Likewise.
31614         * tests/test-unistd.c: Likewise.
31615         * tests/test-vasnprintf-posix.c: Likewise.
31616         * tests/test-vasnprintf-posix2.c: Likewise.
31617         * tests/test-vasnprintf.c: Likewise.
31618         * tests/test-vasprintf-posix.c: Likewise.
31619         * tests/test-vasprintf.c: Likewise.
31620         * tests/test-verify.c: Likewise.
31621         * tests/test-vfprintf-posix.c: Likewise.
31622         * tests/test-vprintf-posix.c: Likewise.
31623         * tests/test-vsnprintf-posix.c: Likewise.
31624         * tests/test-vsnprintf.c: Likewise.
31625         * tests/test-vsprintf-posix.c: Likewise.
31626         * tests/test-wchar.c: Likewise.
31627         * tests/test-wctype.c: Likewise.
31628         * tests/test-wcwidth.c: Likewise.
31629         * tests/test-xstrtol.c: Likewise.
31630         * tests/test-xvasprintf.c: Likewise.
31631         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
31632         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
31633         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
31634         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
31635         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
31636         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
31637         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
31638         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
31639         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
31640         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
31641         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
31642         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
31643         * tests/uniname/test-uninames.c: Likewise.
31644         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
31645         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
31646         * tests/unistdio/test-u16-printf1.h: Likewise.
31647         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
31648         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
31649         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
31650         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
31651         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
31652         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
31653         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
31654         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
31655         * tests/unistdio/test-u32-printf1.h: Likewise.
31656         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
31657         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
31658         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
31659         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
31660         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
31661         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
31662         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
31663         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
31664         * tests/unistdio/test-u8-printf1.h: Likewise.
31665         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
31666         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
31667         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
31668         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
31669         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
31670         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
31671         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
31672         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
31673         * tests/unistdio/test-ulc-printf1.h: Likewise.
31674         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
31675         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
31676         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
31677         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
31678         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
31679         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
31680         * tests/uniwidth/test-u16-strwidth.c: Likewise.
31681         * tests/uniwidth/test-u16-width.c: Likewise.
31682         * tests/uniwidth/test-u32-strwidth.c: Likewise.
31683         * tests/uniwidth/test-u32-width.c: Likewise.
31684         * tests/uniwidth/test-u8-strwidth.c: Likewise.
31685         * tests/uniwidth/test-u8-width.c: Likewise.
31686         * tests/uniwidth/test-uc_width.c: Likewise.
31687         * config/srclist-update: Likewise.
31688         (fixlicense): Update to GPLv3+.
31689
31690         Change copyright notice from LGPLv2.1+ to LGPLv3+.
31691         * tests/test-tsearch.c: Change copyright notice.
31692
31693         Change copyright notice from LGPLv2.0+ to LGPLv3+.
31694         * lib/c-strcaseeq.h: Change copyright notice.
31695         * lib/streq.h: Likewise.
31696         * lib/uniconv.h: Likewise.
31697         * lib/uniconv/u-conv-from-enc.h: Likewise.
31698         * lib/uniconv/u-conv-to-enc.h: Likewise.
31699         * lib/uniconv/u-strconv-from-enc.h: Likewise.
31700         * lib/uniconv/u-strconv-to-enc.h: Likewise.
31701         * lib/uniconv/u16-conv-from-enc.c: Likewise.
31702         * lib/uniconv/u16-conv-to-enc.c: Likewise.
31703         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
31704         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
31705         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
31706         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
31707         * lib/uniconv/u32-conv-from-enc.c: Likewise.
31708         * lib/uniconv/u32-conv-to-enc.c: Likewise.
31709         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
31710         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
31711         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
31712         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
31713         * lib/uniconv/u8-conv-from-enc.c: Likewise.
31714         * lib/uniconv/u8-conv-to-enc.c: Likewise.
31715         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
31716         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
31717         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
31718         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
31719         * lib/uniname.h: Likewise.
31720         * lib/uniname/uniname.c: Likewise.
31721         * lib/unistdio.h: Likewise.
31722         * lib/unistdio/u-asnprintf.h: Likewise.
31723         * lib/unistdio/u-asprintf.h: Likewise.
31724         * lib/unistdio/u-printf-args.c: Likewise.
31725         * lib/unistdio/u-printf-args.h: Likewise.
31726         * lib/unistdio/u-printf-parse.h: Likewise.
31727         * lib/unistdio/u-snprintf.h: Likewise.
31728         * lib/unistdio/u-sprintf.h: Likewise.
31729         * lib/unistdio/u-vasprintf.h: Likewise.
31730         * lib/unistdio/u-vsnprintf.h: Likewise.
31731         * lib/unistdio/u-vsprintf.h: Likewise.
31732         * lib/unistdio/u16-asnprintf.c: Likewise.
31733         * lib/unistdio/u16-asprintf.c: Likewise.
31734         * lib/unistdio/u16-printf-parse.c: Likewise.
31735         * lib/unistdio/u16-snprintf.c: Likewise.
31736         * lib/unistdio/u16-sprintf.c: Likewise.
31737         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
31738         * lib/unistdio/u16-u16-asprintf.c: Likewise.
31739         * lib/unistdio/u16-u16-snprintf.c: Likewise.
31740         * lib/unistdio/u16-u16-sprintf.c: Likewise.
31741         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
31742         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
31743         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
31744         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
31745         * lib/unistdio/u16-vasnprintf.c: Likewise.
31746         * lib/unistdio/u16-vasprintf.c: Likewise.
31747         * lib/unistdio/u16-vsnprintf.c: Likewise.
31748         * lib/unistdio/u16-vsprintf.c: Likewise.
31749         * lib/unistdio/u32-asnprintf.c: Likewise.
31750         * lib/unistdio/u32-asprintf.c: Likewise.
31751         * lib/unistdio/u32-printf-parse.c: Likewise.
31752         * lib/unistdio/u32-snprintf.c: Likewise.
31753         * lib/unistdio/u32-sprintf.c: Likewise.
31754         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
31755         * lib/unistdio/u32-u32-asprintf.c: Likewise.
31756         * lib/unistdio/u32-u32-snprintf.c: Likewise.
31757         * lib/unistdio/u32-u32-sprintf.c: Likewise.
31758         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
31759         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
31760         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
31761         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
31762         * lib/unistdio/u32-vasnprintf.c: Likewise.
31763         * lib/unistdio/u32-vasprintf.c: Likewise.
31764         * lib/unistdio/u32-vsnprintf.c: Likewise.
31765         * lib/unistdio/u32-vsprintf.c: Likewise.
31766         * lib/unistdio/u8-asnprintf.c: Likewise.
31767         * lib/unistdio/u8-asprintf.c: Likewise.
31768         * lib/unistdio/u8-printf-parse.c: Likewise.
31769         * lib/unistdio/u8-snprintf.c: Likewise.
31770         * lib/unistdio/u8-sprintf.c: Likewise.
31771         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
31772         * lib/unistdio/u8-u8-asprintf.c: Likewise.
31773         * lib/unistdio/u8-u8-snprintf.c: Likewise.
31774         * lib/unistdio/u8-u8-sprintf.c: Likewise.
31775         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
31776         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
31777         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
31778         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
31779         * lib/unistdio/u8-vasnprintf.c: Likewise.
31780         * lib/unistdio/u8-vasprintf.c: Likewise.
31781         * lib/unistdio/u8-vsnprintf.c: Likewise.
31782         * lib/unistdio/u8-vsprintf.c: Likewise.
31783         * lib/unistdio/ulc-asnprintf.c: Likewise.
31784         * lib/unistdio/ulc-asprintf.c: Likewise.
31785         * lib/unistdio/ulc-printf-parse.c: Likewise.
31786         * lib/unistdio/ulc-snprintf.c: Likewise.
31787         * lib/unistdio/ulc-sprintf.c: Likewise.
31788         * lib/unistdio/ulc-vasnprintf.c: Likewise.
31789         * lib/unistdio/ulc-vasprintf.c: Likewise.
31790         * lib/unistdio/ulc-vsnprintf.c: Likewise.
31791         * lib/unistdio/ulc-vsprintf.c: Likewise.
31792         * lib/unistr.h: Likewise.
31793         * lib/unistr/u-cpy-alloc.h: Likewise.
31794         * lib/unistr/u-cpy.h: Likewise.
31795         * lib/unistr/u-endswith.h: Likewise.
31796         * lib/unistr/u-move.h: Likewise.
31797         * lib/unistr/u-set.h: Likewise.
31798         * lib/unistr/u-startswith.h: Likewise.
31799         * lib/unistr/u-stpcpy.h: Likewise.
31800         * lib/unistr/u-stpncpy.h: Likewise.
31801         * lib/unistr/u-strcat.h: Likewise.
31802         * lib/unistr/u-strcpy.h: Likewise.
31803         * lib/unistr/u-strcspn.h: Likewise.
31804         * lib/unistr/u-strdup.h: Likewise.
31805         * lib/unistr/u-strlen.h: Likewise.
31806         * lib/unistr/u-strncat.h: Likewise.
31807         * lib/unistr/u-strncpy.h: Likewise.
31808         * lib/unistr/u-strnlen.h: Likewise.
31809         * lib/unistr/u-strpbrk.h: Likewise.
31810         * lib/unistr/u-strspn.h: Likewise.
31811         * lib/unistr/u-strstr.h: Likewise.
31812         * lib/unistr/u-strtok.h: Likewise.
31813         * lib/unistr/u16-check.c: Likewise.
31814         * lib/unistr/u16-chr.c: Likewise.
31815         * lib/unistr/u16-cmp.c: Likewise.
31816         * lib/unistr/u16-cpy-alloc.c: Likewise.
31817         * lib/unistr/u16-cpy.c: Likewise.
31818         * lib/unistr/u16-endswith.c: Likewise.
31819         * lib/unistr/u16-mblen.c: Likewise.
31820         * lib/unistr/u16-mbsnlen.c: Likewise.
31821         * lib/unistr/u16-mbtouc-aux.c: Likewise.
31822         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
31823         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
31824         * lib/unistr/u16-mbtouc.c: Likewise.
31825         * lib/unistr/u16-mbtoucr.c: Likewise.
31826         * lib/unistr/u16-move.c: Likewise.
31827         * lib/unistr/u16-next.c: Likewise.
31828         * lib/unistr/u16-prev.c: Likewise.
31829         * lib/unistr/u16-set.c: Likewise.
31830         * lib/unistr/u16-startswith.c: Likewise.
31831         * lib/unistr/u16-stpcpy.c: Likewise.
31832         * lib/unistr/u16-stpncpy.c: Likewise.
31833         * lib/unistr/u16-strcat.c: Likewise.
31834         * lib/unistr/u16-strchr.c: Likewise.
31835         * lib/unistr/u16-strcmp.c: Likewise.
31836         * lib/unistr/u16-strcpy.c: Likewise.
31837         * lib/unistr/u16-strcspn.c: Likewise.
31838         * lib/unistr/u16-strdup.c: Likewise.
31839         * lib/unistr/u16-strlen.c: Likewise.
31840         * lib/unistr/u16-strmblen.c: Likewise.
31841         * lib/unistr/u16-strmbtouc.c: Likewise.
31842         * lib/unistr/u16-strncat.c: Likewise.
31843         * lib/unistr/u16-strncmp.c: Likewise.
31844         * lib/unistr/u16-strncpy.c: Likewise.
31845         * lib/unistr/u16-strnlen.c: Likewise.
31846         * lib/unistr/u16-strpbrk.c: Likewise.
31847         * lib/unistr/u16-strrchr.c: Likewise.
31848         * lib/unistr/u16-strspn.c: Likewise.
31849         * lib/unistr/u16-strstr.c: Likewise.
31850         * lib/unistr/u16-strtok.c: Likewise.
31851         * lib/unistr/u16-to-u32.c: Likewise.
31852         * lib/unistr/u16-to-u8.c: Likewise.
31853         * lib/unistr/u16-uctomb-aux.c: Likewise.
31854         * lib/unistr/u16-uctomb.c: Likewise.
31855         * lib/unistr/u32-check.c: Likewise.
31856         * lib/unistr/u32-chr.c: Likewise.
31857         * lib/unistr/u32-cmp.c: Likewise.
31858         * lib/unistr/u32-cpy-alloc.c: Likewise.
31859         * lib/unistr/u32-cpy.c: Likewise.
31860         * lib/unistr/u32-endswith.c: Likewise.
31861         * lib/unistr/u32-mblen.c: Likewise.
31862         * lib/unistr/u32-mbsnlen.c: Likewise.
31863         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
31864         * lib/unistr/u32-mbtouc.c: Likewise.
31865         * lib/unistr/u32-mbtoucr.c: Likewise.
31866         * lib/unistr/u32-move.c: Likewise.
31867         * lib/unistr/u32-next.c: Likewise.
31868         * lib/unistr/u32-prev.c: Likewise.
31869         * lib/unistr/u32-set.c: Likewise.
31870         * lib/unistr/u32-startswith.c: Likewise.
31871         * lib/unistr/u32-stpcpy.c: Likewise.
31872         * lib/unistr/u32-stpncpy.c: Likewise.
31873         * lib/unistr/u32-strcat.c: Likewise.
31874         * lib/unistr/u32-strchr.c: Likewise.
31875         * lib/unistr/u32-strcmp.c: Likewise.
31876         * lib/unistr/u32-strcpy.c: Likewise.
31877         * lib/unistr/u32-strcspn.c: Likewise.
31878         * lib/unistr/u32-strdup.c: Likewise.
31879         * lib/unistr/u32-strlen.c: Likewise.
31880         * lib/unistr/u32-strmblen.c: Likewise.
31881         * lib/unistr/u32-strmbtouc.c: Likewise.
31882         * lib/unistr/u32-strncat.c: Likewise.
31883         * lib/unistr/u32-strncmp.c: Likewise.
31884         * lib/unistr/u32-strncpy.c: Likewise.
31885         * lib/unistr/u32-strnlen.c: Likewise.
31886         * lib/unistr/u32-strpbrk.c: Likewise.
31887         * lib/unistr/u32-strrchr.c: Likewise.
31888         * lib/unistr/u32-strspn.c: Likewise.
31889         * lib/unistr/u32-strstr.c: Likewise.
31890         * lib/unistr/u32-strtok.c: Likewise.
31891         * lib/unistr/u32-to-u16.c: Likewise.
31892         * lib/unistr/u32-to-u8.c: Likewise.
31893         * lib/unistr/u32-uctomb.c: Likewise.
31894         * lib/unistr/u8-check.c: Likewise.
31895         * lib/unistr/u8-chr.c: Likewise.
31896         * lib/unistr/u8-cmp.c: Likewise.
31897         * lib/unistr/u8-cpy-alloc.c: Likewise.
31898         * lib/unistr/u8-cpy.c: Likewise.
31899         * lib/unistr/u8-endswith.c: Likewise.
31900         * lib/unistr/u8-mblen.c: Likewise.
31901         * lib/unistr/u8-mbsnlen.c: Likewise.
31902         * lib/unistr/u8-mbtouc-aux.c: Likewise.
31903         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
31904         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
31905         * lib/unistr/u8-mbtouc.c: Likewise.
31906         * lib/unistr/u8-mbtoucr.c: Likewise.
31907         * lib/unistr/u8-move.c: Likewise.
31908         * lib/unistr/u8-next.c: Likewise.
31909         * lib/unistr/u8-prev.c: Likewise.
31910         * lib/unistr/u8-set.c: Likewise.
31911         * lib/unistr/u8-startswith.c: Likewise.
31912         * lib/unistr/u8-stpcpy.c: Likewise.
31913         * lib/unistr/u8-stpncpy.c: Likewise.
31914         * lib/unistr/u8-strcat.c: Likewise.
31915         * lib/unistr/u8-strchr.c: Likewise.
31916         * lib/unistr/u8-strcmp.c: Likewise.
31917         * lib/unistr/u8-strcpy.c: Likewise.
31918         * lib/unistr/u8-strcspn.c: Likewise.
31919         * lib/unistr/u8-strdup.c: Likewise.
31920         * lib/unistr/u8-strlen.c: Likewise.
31921         * lib/unistr/u8-strmblen.c: Likewise.
31922         * lib/unistr/u8-strmbtouc.c: Likewise.
31923         * lib/unistr/u8-strncat.c: Likewise.
31924         * lib/unistr/u8-strncmp.c: Likewise.
31925         * lib/unistr/u8-strncpy.c: Likewise.
31926         * lib/unistr/u8-strnlen.c: Likewise.
31927         * lib/unistr/u8-strpbrk.c: Likewise.
31928         * lib/unistr/u8-strrchr.c: Likewise.
31929         * lib/unistr/u8-strspn.c: Likewise.
31930         * lib/unistr/u8-strstr.c: Likewise.
31931         * lib/unistr/u8-strtok.c: Likewise.
31932         * lib/unistr/u8-to-u16.c: Likewise.
31933         * lib/unistr/u8-to-u32.c: Likewise.
31934         * lib/unistr/u8-uctomb-aux.c: Likewise.
31935         * lib/unistr/u8-uctomb.c: Likewise.
31936         * lib/unitypes.h: Likewise.
31937         * lib/uniwidth.h: Likewise.
31938         * lib/uniwidth/cjk.h: Likewise.
31939         * lib/uniwidth/u16-strwidth.c: Likewise.
31940         * lib/uniwidth/u16-width.c: Likewise.
31941         * lib/uniwidth/u32-strwidth.c: Likewise.
31942         * lib/uniwidth/u32-width.c: Likewise.
31943         * lib/uniwidth/u8-strwidth.c: Likewise.
31944         * lib/uniwidth/u8-width.c: Likewise.
31945         * lib/uniwidth/width.c: Likewise.
31946
31947 2007-10-07  Bruno Haible  <bruno@clisp.org>
31948
31949         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
31950         The file is still under LGPL (see modules/inttypes).
31951
31952 2007-10-06  Bruno Haible  <bruno@clisp.org>
31953
31954         * modules/trunc (Dependencies): Add 'extensions'.
31955         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
31956         Reported by Ben Pfaff <blp@gnu.org>.
31957
31958 2007-10-06  Bruno Haible  <bruno@clisp.org>
31959
31960         * modules/freopen-tests: New file.
31961         * tests/test-freopen.c: New file.
31962
31963         * modules/fopen-tests: New file.
31964         * tests/test-fopen.c: New file.
31965
31966         * modules/fopen: New file.
31967         * lib/fopen.c: New file.
31968         * m4/fopen.m4: New file.
31969         * modules/freopen: New file.
31970         * lib/freopen.c: New file.
31971         * m4/freopen.m4: New file.
31972         * lib/stdio.in.h (fopen, freopen): New declarations.
31973         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
31974         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
31975         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
31976         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
31977         * doc/functions/fopen.texi: Mention the 'fopen' module.
31978         * doc/functions/freopen.texi: Mention the 'freopen' module.
31979
31980 2007-10-06  Bruno Haible  <bruno@clisp.org>
31981
31982         * modules/open-tests: New file.
31983         * tests/test-open.c: New file.
31984
31985         * modules/open: New file.
31986         * lib/open.c: New file.
31987         * m4/open.m4: New file.
31988         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
31989         lib/open.c does.
31990         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
31991         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
31992         macros.
31993         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
31994         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
31995         REPLACE_OPEN.
31996         * doc/functions/open.texi: Mention the 'open' module.
31997
31998 2007-10-04  Bruno Haible  <bruno@clisp.org>
31999
32000         * modules/ceill-tests: New file.
32001         * tests/test-ceill.c: New file.
32002
32003         * modules/ceill: New file.
32004         * lib/ceill.c: Replace entire file.
32005         * m4/ceill.m4: New file.
32006         * lib/math.in.h (ceill): Replace declaration.
32007         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
32008         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
32009         * doc/functions/ceill.texi: Mention the 'ceill' module.
32010         * modules/mathl (Files): Remove lib/ceill.c.
32011         (Depends-on): Add ceill.
32012
32013 2007-10-04  Bruno Haible  <bruno@clisp.org>
32014
32015         * modules/ceilf-tests: New file.
32016         * tests/test-ceilf.c: New file.
32017
32018         * modules/ceilf: New file.
32019         * lib/ceil.c: New file.
32020         * lib/ceilf.c: New file.
32021         * m4/ceilf.m4: New file.
32022         * lib/math.in.h (ceilf): New declaration.
32023         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
32024         HAVE_DECL_CEILF.
32025         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
32026         HAVE_DECL_CEILF.
32027         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
32028
32029 2007-10-04  Bruno Haible  <bruno@clisp.org>
32030
32031         * modules/floorl-tests: New file.
32032         * tests/test-floorl.c: New file.
32033
32034         * modules/floorl: New file.
32035         * lib/floorl.c: Replace entire file.
32036         * m4/floorl.m4: New file.
32037         * lib/math.in.h (floorl): Replace declaration.
32038         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
32039         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
32040         * doc/functions/floorl.texi: Mention the 'floorl' module.
32041         * modules/mathl (Files): Remove lib/floorl.c.
32042         (Depends-on): Add floorl.
32043
32044 2007-10-04  Bruno Haible  <bruno@clisp.org>
32045
32046         * modules/floorf-tests: New file.
32047         * tests/test-floorf.c: New file.
32048
32049         * modules/floorf: New file.
32050         * lib/floor.c: New file.
32051         * lib/floorf.c: New file.
32052         * m4/floorf.m4: New file.
32053         * lib/math.in.h (floorf): New declaration.
32054         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
32055         HAVE_DECL_FLOORF.
32056         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
32057         HAVE_DECL_FLOORF.
32058         * doc/functions/floorf.texi: Mention the 'floorf' module.
32059
32060 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
32061             Bruno Haible  <bruno@clisp.org>
32062
32063         Advertise for the Git server instead of the CVS server.
32064         * doc/gnulib-intro.texi (Steady Development): Mention the Git
32065         repository instead of the CVS one.
32066         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
32067         about all VCS systems generically.
32068         * doc/gnulib.texi (Introduction): Capitalize `Git'.
32069
32070 2007-10-04  Bruno Haible  <bruno@clisp.org>
32071
32072         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
32073         means.
32074         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
32075
32076 2007-10-04  Bruno Haible  <bruno@clisp.org>
32077
32078         * modules/truncl-tests: New file.
32079         * tests/test-truncl.c: New file.
32080
32081         * modules/truncl: New file.
32082         * lib/truncl.c: New file.
32083         * m4/truncl.m4: New file.
32084         * lib/math.in.h (truncl): New declaration.
32085         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
32086         HAVE_DECL_TRUNCL.
32087         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
32088         HAVE_DECL_TRUNCL.
32089         * doc/functions/truncl.texi: Mention the 'truncl' module.
32090
32091 2007-10-04  Bruno Haible  <bruno@clisp.org>
32092
32093         * modules/truncf-tests: New file.
32094         * tests/test-truncf.c: New file.
32095
32096         * modules/truncf: New file.
32097         * lib/trunc.c: Make paramerizable through USE_* macros.
32098         * lib/truncf.c: New file.
32099         * m4/truncf.m4: New file.
32100         * lib/math.in.h (truncf): New declaration.
32101         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
32102         HAVE_DECL_TRUNCF.
32103         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
32104         HAVE_DECL_TRUNCF.
32105         * doc/functions/truncf.texi: Mention the 'truncf' module.
32106
32107 2007-10-03  Bruno Haible  <bruno@clisp.org>
32108
32109         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
32110         augmentation also for tests modules.
32111         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
32112         * modules/atexit-tests (Makefile.am): Likewise.
32113         * modules/binary-io-tests (Makefile.am): Likewise.
32114         * modules/c-strcase-tests (Makefile.am): Likewise.
32115         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
32116         * modules/canonicalize-tests (Makefile.am): Likewise.
32117         * modules/closein-tests (Makefile.am): Likewise.
32118         * modules/fprintf-posix-tests (Makefile.am): Likewise.
32119         * modules/freadahead-tests (Makefile.am): Likewise.
32120         * modules/fseek-tests (Makefile.am): Likewise.
32121         * modules/fseeko-tests (Makefile.am): Likewise.
32122         * modules/ftell-tests (Makefile.am): Likewise.
32123         * modules/ftello-tests (Makefile.am): Likewise.
32124         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
32125         * modules/isnanl-tests (Makefile.am): Likewise.
32126         * modules/lseek-tests (Makefile.am): Likewise.
32127         * modules/mbscasecmp-tests (Makefile.am): Likewise.
32128         * modules/mbscasestr-tests (Makefile.am): Likewise.
32129         * modules/mbschr-tests (Makefile.am): Likewise.
32130         * modules/mbscspn-tests (Makefile.am): Likewise.
32131         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
32132         * modules/mbspbrk-tests (Makefile.am): Likewise.
32133         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
32134         * modules/mbsrchr-tests (Makefile.am): Likewise.
32135         * modules/mbsspn-tests (Makefile.am): Likewise.
32136         * modules/mbsstr-tests (Makefile.am): Likewise.
32137         * modules/printf-posix-tests (Makefile.am): Likewise.
32138         * modules/snprintf-posix-tests (Makefile.am): Likewise.
32139         * modules/sprintf-posix-tests (Makefile.am): Likewise.
32140         * modules/tsearch-tests (Makefile.am): Likewise.
32141         * modules/uniname/uniname-tests (Makefile.am): Likewise.
32142         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
32143         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
32144         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
32145         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
32146         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
32147         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
32148         * modules/vprintf-posix-tests (Makefile.am): Likewise.
32149         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
32150         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
32151         * modules/xstrtoimax-tests (Makefile.am): Likewise.
32152         * modules/xstrtol-tests (Makefile.am): Likewise.
32153         * modules/xstrtoumax-tests (Makefile.am): Likewise.
32154         * modules/yesno-tests (Makefile.am): Likewise.
32155
32156 2007-10-03  Bruno Haible  <bruno@clisp.org>
32157
32158         * modules/trunc-tests: New file.
32159         * tests/test-trunc.c: New file.
32160
32161         * modules/trunc: New file.
32162         * lib/trunc.c: New file.
32163         * m4/trunc.m4: New file.
32164         * lib/math.in.h (trunc): New declaration.
32165         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
32166         HAVE_DECL_TRUNC.
32167         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
32168         HAVE_DECL_TRUNC.
32169         * doc/functions/trunc.texi: Mention the 'trunc' module.
32170
32171 2007-10-03  Bruno Haible  <bruno@clisp.org>
32172
32173         * tests/test-fpending.c: New file, mostly copied
32174         from coreutils/lib/t-fpending.c.
32175         * modules/fpending-tests: New file.
32176
32177 2007-10-03  Bruno Haible  <bruno@clisp.org>
32178
32179         Port the stdio extensions to QNX (untested).
32180         * lib/fseterr.c (fseterr): Add support for QNX.
32181         * lib/fbufmode.c (fbufmode): Likewise.
32182         * lib/freadable.c (freadable): Likewise.
32183         * lib/fwritable.c (fwritable): Likewise.
32184         * lib/freading.c (freading): Likewise.
32185         * lib/fwriting.c (fwriting): Likewise.
32186         * lib/freadahead.c (freadahed): Likewise.
32187         * lib/fpurge.c (fpurge): Likewise.
32188         * lib/fseeko.c (rpl_fseeko): Likewise.
32189
32190 2007-10-03  Bruno Haible  <bruno@clisp.org>
32191             Jim Meyering  <jim@meyering.net>
32192             Eric Blake  <ebb9@byu.net>
32193
32194         * doc/relocatable.texi: Use @command instead of @program.
32195
32196 2007-10-02  Jim Meyering  <jim@meyering.net>
32197
32198         Perform one more "_.h" -> ".in.h" substitution.
32199         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
32200         instead of unistd_.h here, too.
32201
32202 2007-10-01  Bruno Haible  <bruno@clisp.org>
32203
32204         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
32205         Needed for the alloca-opt module.
32206
32207 2007-09-30  Bruno Haible  <bruno@clisp.org>
32208
32209         * lib/alloca.in.h: Renamed from lib/alloca_.h.
32210         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
32211         alloca_.h.
32212         * lib/argz.in.h: Renamed from lib/argz_.h.
32213         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
32214         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
32215         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
32216         byteswap_.h.
32217         * lib/dirent.in.h: Renamed from lib/dirent_.h.
32218         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
32219         dirent_.h.
32220         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
32221         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
32222         fcntl_.h.
32223         * lib/float.in.h: Renamed from lib/float_.h.
32224         * modules/float (Files, Makefile.am): Use float.in.h instead of
32225         float_.h.
32226         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
32227         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
32228         fnmatch_.h.
32229         * lib/getopt.in.h: Renamed from lib/getopt_.h.
32230         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
32231         getopt_.h.
32232         * lib/glob.in.h: Renamed from lib/glob_.h.
32233         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
32234         * lib/iconv.in.h: Renamed from lib/iconv_.h.
32235         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
32236         iconv_.h.
32237         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
32238         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
32239         inttypes_.h.
32240         * lib/locale.in.h: Renamed from lib/locale_.h.
32241         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
32242         locale_.h.
32243         * lib/math.in.h: Renamed from lib/math_.h.
32244         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
32245         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
32246         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
32247         of netinet_in_.h. Add dependency.
32248         * lib/poll.in.h: Renamed from lib/poll_.h.
32249         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
32250         * lib/search.in.h: Renamed from lib/search_.h.
32251         * modules/search (Files, Makefile.am): Use search.in.h instead of
32252         search_.h.
32253         * lib/signal.in.h: Renamed from lib/signal_.h.
32254         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
32255         _signal.h.
32256         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
32257         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
32258         stdbool_.h.
32259         * lib/stdint.in.h: Renamed from lib/stdint_.h.
32260         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
32261         stdint_.h.
32262         * lib/stdio.in.h: Renamed from lib/stdio_.h.
32263         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
32264         stdio_.h.
32265         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
32266         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
32267         stdlib_.h.
32268         * lib/string.in.h: Renamed from lib/string_.h.
32269         * modules/string (Files, Makefile.am): Use string.in.h instead of
32270         string_.h.
32271         * doc/gnulib-tool.texi (Initial import): Update.
32272         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
32273         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
32274         of sys_select_.h. Add dependency.
32275         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
32276         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
32277         of sys_socket_.h.
32278         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
32279         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
32280         sys_stat_.h.
32281         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
32282         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
32283         sys_time_.h.
32284         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
32285         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
32286         sysexits_.h.
32287         * lib/time.in.h: Renamed from lib/time_.h.
32288         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
32289         * lib/unistd.in.h: Renamed from lib/unistd_.h.
32290         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
32291         unistd_.h.
32292         * lib/wchar.in.h: Renamed from lib/wchar_.h.
32293         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
32294         wchar_.h.
32295         * lib/wctype.in.h: Renamed from lib/wctype_.h.
32296         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
32297         wctype_.h.
32298         * build-aux/bootstrap (slurp): Update.
32299         * lib/.cppi-disable: Update.
32300
32301 2007-09-30  Bruno Haible  <bruno@clisp.org>
32302
32303         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
32304         Needed on BeOS.
32305
32306 2007-09-30  Bruno Haible  <bruno@clisp.org>
32307
32308         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
32309
32310 2007-09-29  Bruno Haible  <bruno@clisp.org>
32311
32312         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
32313
32314 2007-09-29  Bruno Haible  <bruno@clisp.org>
32315
32316         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
32317         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
32318         * build-aux/install-reloc: Compile also areadlink.c.
32319         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
32320
32321 2007-09-29  Bruno Haible  <bruno@clisp.org>
32322
32323         * gnulib-tool (func_emit_initmacro_done): Indentation.
32324
32325 2007-09-29  Bruno Haible  <bruno@clisp.org>
32326
32327         * README: Add CVS checkout update instructions.
32328         Info from Bob Proulx <bob@proulx.com>.
32329
32330 2007-09-28  Eric Blake  <ebb9@byu.net>
32331
32332         Provide move-if-change.
32333         * build-aux/move-if-change: New file, based on best practice
32334         rather than any canonical upstream location.
32335
32336 2007-09-28  Jim Meyering  <jim@meyering.net>
32337
32338         Fix canonicalize loop-detection corner case.
32339         Do not attempt to stat the symlink values stored via seen_triple.
32340         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
32341         on linux-2.6.18, (but not 2.6.22).
32342         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
32343         triple_compare.  The former compares dev,ino,filename, while the latter
32344         would actually stat dirname(filename) when dev and ino were equal.
32345         * lib/hash-triple.c: Install <string.h>.
32346         (STREQ): Define.
32347         (triple_compare_ino_str): New function.
32348         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
32349
32350 2007-09-28  Eric Blake  <ebb9@byu.net>
32351
32352         Enforce that AC_REPLACE_FUNCS files exist.
32353         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
32354         override check for typos.
32355
32356         Fix test-closein on Solaris 10.
32357         * tests/test-closein.c (main): Don't assume stdin can be inherited
32358         closed on all systems.
32359         * tests/test-closein.sh: Likewise.
32360         Reported by Piotr Tarnowski.
32361
32362 2007-09-28  Jim Meyering  <jim@meyering.net>
32363
32364         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
32365
32366 2007-09-27  Jim Meyering  <jim@meyering.net>
32367
32368         canonicalize: Avoid a false-positive cycle failure.
32369         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
32370         Sort.  Remove cycle-check.
32371         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
32372         not cycle-check.h.
32373         (seen_triple): New function.
32374         (canonicalize_filename_mode): Use it instead of cycle-check.
32375         * tests/test-canonicalize.c: Add a test for this bug.
32376         * tests/test-canonicalize.sh: Set up and run the test.
32377
32378         New module, file-set, from coreutils.
32379         * modules/file-set: Define it.
32380         * lib/file-set.c, lib/file-set.h: Implement.
32381
32382         New module, hash-triple, from coreutils.
32383         * modules/hash-triple: Define it.
32384         * lib/hash-triple.c, lib/hash-triple.h: Implement.
32385
32386 2007-09-25  Eric Blake  <ebb9@byu.net>
32387
32388         Fix strerror on Interix.
32389         * lib/string_.h (strerror): Declare replacement.
32390         * doc/functions/strerror.texi (strerror): Document the Interix
32391         shortcoming.
32392         * modules/string (Makefile.am): Support new hooks.
32393         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
32394         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
32395         gl_FUNC_STRERROR_SEPARATE.
32396         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
32397         * lib/strerror.c (rpl_strerror): Provide replacement.
32398         * modules/strerror (Depends-on): Add string.
32399         (configure.ac): Detect use of module.
32400         * tests/test-strerror.c: New file.
32401         * modules/strerror-tests: New test module.
32402         * modules/argp (Depends-on): Add strerror.
32403         * modules/error (Depends-on): Likewise.
32404         Reported by Martin Koeppe.
32405
32406 2007-09-24  Bruno Haible  <bruno@clisp.org>
32407
32408         * README: Update git instructions.
32409
32410 2007-09-24  Eric Blake  <ebb9@byu.net>
32411
32412         Revert fpending breakage from 2007-09-08.
32413         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
32414         __fpending.c.
32415
32416 2007-09-24  Jim Meyering  <jim@meyering.net>
32417
32418         filenamecat.c: Add a test.
32419         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
32420         showing how the function works when DIR is the empty string.
32421
32422 2007-09-21  Simon Josefsson  <simon@josefsson.org>
32423
32424         * tests/test-canonicalize.sh: Turn on executable bit.
32425
32426 2007-09-19  Eric Blake  <ebb9@byu.net>
32427
32428         * README: Update CVS instructions.
32429
32430 2007-09-18  Bruno Haible  <bruno@clisp.org>
32431
32432         * modules/areadlink: New file.
32433         * lib/areadlink.h (areadlink): New declaration.
32434         * lib/areadlink.c: New file, based on lib/xreadlink.c.
32435
32436 2007-09-17  Jim Meyering  <jim@meyering.net>
32437
32438         * lib/savewd.c (ESTALE) [!defined]: Define.
32439         Reported to be required on Interix by Martin Koeppe.
32440
32441 2007-09-17  Bruno Haible  <bruno@clisp.org>
32442
32443         * gnulib-tool (func_version): Use $version.
32444
32445 2007-09-16  Bruno Haible  <bruno@clisp.org>
32446
32447         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
32448         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
32449         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
32450         Reported by Greg Schafer <gschafer@zip.com.au>.
32451
32452 2007-09-15  Bruno Haible  <bruno@clisp.org>
32453
32454         * gnulib-tool (sed): Try a little harder to make bash understand the
32455         alias.
32456         Reported by Bruce Korb <bruce.korb@gmail.com>.
32457
32458 2007-09-13  Eric Blake  <ebb9@byu.net>
32459
32460         * ChangeLog: Remove conflict markers.
32461
32462 2007-09-13  Simon Josefsson  <simon@josefsson.org>
32463
32464         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
32465         Reported by Bruno Haible <bruno@clisp.org>.
32466
32467 2007-09-12  Bruno Haible  <bruno@clisp.org>
32468
32469         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
32470         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
32471         is not defined.
32472
32473 2007-09-12  Eric Blake  <ebb9@byu.net>
32474
32475         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
32476         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
32477         Autoconf definition.
32478         * modules/euidaccess (Depends-on): Add extensions, for
32479         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
32480         * modules/fnmatch (Depends-on): Likewise.
32481         * modules/getaddrinfo (Depends-on): Likewise.
32482         * modules/getdelim (Depends-on): Likewise.
32483         * modules/getline (Depends-on): Likewise.
32484         * modules/getsubopt (Depends-on): Likewise.
32485         * modules/gettext (Depends-on): Likewise.
32486         * modules/group-member (Depends-on): Likewise.
32487         * modules/mbchar (Depends-on): Likewise.
32488         * modules/memmem (Depends-on): Likewise.
32489         * modules/mempcpy (Depends-on): Likewise.
32490         * modules/memrchr (Depends-on): Likewise.
32491         * modules/pagealign_alloc (Depends-on): Likewise.
32492         * modules/readutmp (Depends-on): Likewise.
32493         * modules/stpcpy (Depends-on): Likewise.
32494         * modules/stpncpy (Depends-on): Likewise.
32495         * modules/strchrnul (Depends-on): Likewise.
32496         * modules/strndup (Depends-on): Likewise.
32497         * modules/strsep (Depends-on): Likewise.
32498         * modules/strverscmp (Depends-on): Likewise.
32499         * modules/vasprintf (Depends-on): Likewise.
32500         * modules/wcwidth (Depends-on): Likewise.
32501         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
32502         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
32503         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
32504         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
32505         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
32506         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32507         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
32508         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
32509         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
32510         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
32511         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
32512         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
32513         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
32514         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
32515         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
32516         * m4/readutmp.m4 (gl_READUTMP): Likewise.
32517         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32518         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
32519         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
32520         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
32521         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
32522         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
32523         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
32524         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
32525         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
32526         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
32527         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
32528         so that lock.m4 can be used in gettext without extensions module.
32529
32530 2007-09-11  Bruno Haible  <bruno@clisp.org>
32531
32532         * m4/isc-posix.m4: Remove file.
32533         Suggested by Eric Blake.
32534
32535 2007-09-11  Eric Blake  <ebb9@byu.net>
32536
32537         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
32538
32539 2007-09-10  Bruno Haible  <bruno@clisp.org>
32540
32541         * posix-modules: Fix typo in error message.
32542         Reported by Matt <mkraai@beckman.com>.
32543
32544 2007-09-09  Bruno Haible  <bruno@clisp.org>
32545
32546         * doc/functions/getdelim.texi: Update list of platforms lacking the
32547         function.
32548         * doc/functions/getline.texi: Likewise.
32549
32550 2007-09-09  Jim Meyering  <jim@meyering.net>
32551
32552         * lib/hash.c (hash_initialize): Detect calloc failure.
32553         Reported by Bruno Haible.
32554
32555 2007-09-09  Bruno Haible  <bruno@clisp.org>
32556
32557         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
32558         malloc or realloc fails.
32559
32560 2007-09-09  Bruno Haible  <bruno@clisp.org>
32561
32562         * modules/getcwd (Depends-on): Add malloc-posix.
32563         * modules/glob (Depends-on): Likewise.
32564         * modules/putenv (Depends-on): Likewise.
32565         * modules/strdup (Depends-on): Likewise.
32566         * modules/getdelim (Depends-on): Add realloc-posix.
32567         * modules/read-file (Depends-on): Likewise.
32568
32569 2007-09-09  Bruno Haible  <bruno@clisp.org>
32570
32571         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
32572         (gl_FUNC_MALLOC_POSIX): Require it.
32573         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
32574         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
32575         * modules/realloc (Files): Add m4/malloc.m4.
32576         * modules/calloc (Files): Likewise.
32577
32578 2007-09-09  Bruno Haible  <bruno@clisp.org>
32579
32580         * modules/malloc-posix: New file.
32581         * modules/malloc (Depends-on): Add malloc-posix.
32582         * lib/malloc.c: Include errno.h.
32583         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
32584         and a POSIX-compatible malloc into a single function. Set ENOMEM
32585         when returning NULL.
32586         * m4/malloc.m4: New file.
32587         * doc/functions/malloc.texi: Mention the malloc-posix module.
32588         * lib/stdlib_.h (malloc): New declaration.
32589         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32590         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
32591         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
32592         and HAVE_MALLOC_POSIX.
32593
32594 2007-09-09  Bruno Haible  <bruno@clisp.org>
32595
32596         * modules/realloc-posix: New file.
32597         * modules/realloc (Depends-on): Add realloc-posix.
32598         * lib/realloc.c: Include errno.h.
32599         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
32600         and a POSIX-compatible realloc into a single function. Set ENOMEM
32601         when returning NULL.
32602         * m4/realloc.m4: New file.
32603         * doc/functions/realloc.texi: Mention the realloc-posix module.
32604         * lib/stdlib_.h (realloc): New declaration.
32605         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32606         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
32607         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
32608         and HAVE_REALLOC_POSIX.
32609
32610 2007-09-09  Bruno Haible  <bruno@clisp.org>
32611
32612         * modules/calloc-posix: New file.
32613         * modules/calloc (Depends-on): Add calloc-posix.
32614         * lib/calloc.c: Include errno.h.
32615         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
32616         and a POSIX-compatible calloc into a single function. Set ENOMEM
32617         when returning NULL.
32618         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
32619         * doc/functions/calloc.texi: Mention the calloc-posix module.
32620         * lib/stdlib_.h (calloc): New declaration.
32621         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32622         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
32623         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
32624         and HAVE_CALLOC_POSIX.
32625
32626 2007-09-09  Bruno Haible  <bruno@clisp.org>
32627
32628         Allow for modules to show an arbitrary notice.
32629         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
32630         * gnulib-tool: New option --extract-notice.
32631         (func_usage): Document it.
32632         (sed_extract_prog): Update.
32633         (func_get_notice): New function.
32634         (func_modules_notice): New function.
32635         (func_import, func_create_testdir): Invoke it.
32636         Suggested by Jim Meyering.
32637
32638 2007-09-09  Bruno Haible  <bruno@clisp.org>
32639
32640         * gnulib-tool: New options --verbose, --quiet.
32641         (func_usage): Document them.
32642         (verbose): New variable.
32643         (func_execute_command): New function.
32644         (func_import): Don't show the module list and the file list if
32645         $verbose < 0.
32646         (func_create_testdir): Likewise. Use func_execute_command.
32647         (func_create_megatestdir): Use func_execute_command.
32648
32649 2007-09-08  Bruno Haible  <bruno@clisp.org>
32650
32651         * gnulib-tool (func_import): Prefer rsync over wget when available,
32652         for fetching the PO files.
32653
32654 2007-09-08  Bruno Haible  <bruno@clisp.org>
32655
32656         * posix-modules: New file. Portions copied from gnulib-tool.
32657         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
32658
32659 2007-09-08  Jim Meyering  <jim@meyering.net>
32660
32661         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
32662         * lib/fpending.h: Rename from __fpending.h.
32663         * lib/fpending.c: Rename from __fpending.c.
32664         Include "fpending.h", not "__fpending.h".
32665         * lib/__fpending.h, lib/__fpending.c: Remove files.
32666         * modules/fpending (Files): Reflect new file names.
32667         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
32668
32669 2007-09-08  Bruno Haible  <bruno@clisp.org>
32670
32671         * m4/inttypes-h.m4: Remove stub file.
32672
32673 2007-09-07  Simon Josefsson  <simon@josefsson.org>
32674
32675         * doc/headers/stdint.texi: Discuss #include_next issue.
32676
32677 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
32678
32679         * build-aux/bootstrap: Remove obsolete comment about wget --help.
32680
32681 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32682
32683         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
32684         in variable name.
32685
32686 2007-09-03  Jim Meyering  <jim@meyering.net>
32687
32688         New module: git-version-gen.
32689         * modules/git-version-gen: New file.
32690
32691         Import changes from coreutils for bootstrap script.
32692
32693         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
32694
32695         bootstrap: uses rsync to download the .po files
32696         * build-aux/bootstrap (po_download_command_format): New global.
32697         (download_po_files): Use rsync.
32698         (update_po_files): Don't remove .po files after download,
32699         so future rsync runs can take advantage of the copies.
32700
32701         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
32702
32703         Solve the unnecessary-.po-file-regeneration problem once and for all.
32704         * build-aux/bootstrap (download_po_files): New function, renamed from
32705         get_translations.  Now, downloads, but doesn't update LINGUAS.
32706         (update_po_files): New function.
32707
32708         bootstrap: Ignore more.
32709         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
32710         uniwidth to e.g., lib/.gitignore.
32711         (slurp): Handle the sys_stat_.h -> sys mapping, too.
32712
32713         * build-aux/bootstrap: New setting: vc_ignore.
32714         (insert_sorted_if_absent): Create $file if absent.
32715         Adapt to new, possibly empty, list: $vc_ignore.
32716
32717         bootstrap: generate more ignorable names
32718         * build-aux/bootstrap (slurp): When generating ignorable names,
32719         also map .sin to .sed, .gperf to .c, and .y to .c.
32720
32721 2007-09-03  Jim Meyering  <jim@meyering.net>
32722
32723         * build-aux/git-version-gen: New file, from coreutils.  For details, see
32724         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
32725
32726 2007-09-02  Bruno Haible  <bruno@clisp.org>
32727
32728         Fix mis-recognition of 'mcs' on QNX 6.
32729         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
32730         output contains the string "Mono".
32731         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
32732         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
32733
32734 2007-09-01  Bruno Haible  <bruno@clisp.org>
32735
32736         Fix collision between uniwidth/* and linebreak modules.
32737         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
32738         u32_width): Remove declarations.
32739         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
32740         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
32741         streq3, streq2, streq1, streq0): Remove functions.
32742         (STREQ): Remove macro.
32743         (is_cjk_encoding): Remove function.
32744         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
32745         (uc_width, u8_width, u16_width, u32_width): Remove functions.
32746         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
32747         * NEWS: Document the change.
32748
32749 2007-09-01  Bruno Haible  <bruno@clisp.org>
32750
32751         * lib/streq.h: Add double-inclusion guard.
32752
32753 2007-09-01  Karl Berry  <karl@gnu.org>
32754
32755         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
32756
32757 2007-08-28  Jim Meyering  <jim@meyering.net>
32758
32759         Rename mreadlink_with_size to areadlink_with_size.
32760         * NEWS: Document the change.
32761         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
32762         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
32763         * lib/mreadlink.h: Rename this to...
32764         * lib/areadlink.h: ...this.
32765         * modules/mreadlink-with-size: Rename this to...
32766         * modules/areadlink-with-size: ...this.
32767         * lib/canonicalize.c: Reflect the renaming.
32768         * modules/canonicalize: Likewise.
32769
32770 2007-08-26  Bruno Haible  <bruno@clisp.org>
32771
32772         * gnulib-tool (func_import): When deciding which files to remove,
32773         consider also dangling symbolic links.
32774         Reported by Eric Blake.
32775
32776 2007-08-26  Bruno Haible  <bruno@clisp.org>
32777
32778         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
32779
32780 2007-08-23  Simon Josefsson  <simon@josefsson.org>
32781
32782         * lib/readline.c: Don't include getline.h, the prototype is now
32783         found in stdio.h.
32784
32785 2007-08-23  Jim Meyering  <jim@meyering.net>
32786
32787         Getdelim touchup.
32788         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
32789         around the funlockfile call, since funlockfile never sets errno.
32790         Don't set errno upon failed realloc.
32791
32792 2007-08-22  Eric Blake  <ebb9@byu.net>
32793
32794         Getline touchups.
32795         * lib/getdelim.c (getdelim): Revert regression that required *n to
32796         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
32797         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
32798         getdelim, rather than whether implementation is missing.
32799         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
32800         * lib/stdio_.h (getline): Also declare if replacement is
32801         required.
32802         * doc/functions/getdelim.texi: New file.
32803         * doc/functions/getline.texi: Likewise.
32804         * doc/gnulib.texi (Function Substitutes): Add new files.
32805         Reported by Bruno Haible.
32806
32807 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
32808
32809         * users.txt: Add Guile.
32810
32811 2007-08-22  Eric Blake  <ebb9@byu.net>
32812
32813         * tests/test-getdelim.c (main): Use remove, not unlink.
32814         * tests/test-getline.c (main): Likewise.
32815
32816         Move getline and getdelim into stdio.h, per POSIX 200x.
32817         * modules/getline (Files): Remove getline.h.
32818         (Depends-on): Add stdio.
32819         (configure.ac): Add module indicator.
32820         * modules/getdelim (Files): Remove getdelim.h.
32821         (Depends-on): Add stdio.
32822         (configure.ac): Add module indicator.
32823         * modules/stdio (Makefile.am): Work with new indicators.
32824         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
32825         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
32826         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32827         * lib/getdelim.h: Delete.
32828         * lib/getline.h: Delete.
32829         * lib/stdio_.h (getdelim, getline): Declare.
32830         * modules/getdelim-tests: New module.
32831         * modules/getline-tests: Likewise.
32832         * tests/test-getdelim.c: New file.
32833         * tests/test-getline.c: Likewise.
32834         * NEWS: Document the change.
32835         * lib/getline.c: Update choice of header.
32836         * lib/csharpcomp.c: Likewise.
32837         * lib/getpass.c: Likewise.
32838         * lib/javacomp.c: Likewise.
32839         * lib/javaversion.c: Likewise.
32840         * lib/yesno.c: Likewise.
32841         * lib/getdelim.c: Likewise.
32842         (getdelim): Set errno on failure, and avoid memory leak.
32843
32844 2007-08-19  Bruno Haible  <bruno@clisp.org>
32845
32846         * modules/closein (Depends-on): Add freadahead.
32847         * lib/closein.c: Include freadahead.h.
32848         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
32849         is zero.
32850
32851 2007-08-19  Bruno Haible  <bruno@clisp.org>
32852
32853         * modules/freadahead-tests: New file.
32854         * tests/test-freadahead.sh: New file.
32855         * tests/test-freadahead.c: New file.
32856
32857         * modules/freadahead: New file.
32858         * lib/freadahead.h: New file.
32859         * lib/freadahead.c: New file.
32860         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
32861         fbufmode, fpurge, freadable, fwritable.
32862
32863 2007-08-19  Eric Blake  <ebb9@byu.net>
32864
32865         Test yesno in combination with closein.
32866         * lib/yesno.c (yesno): Document use of stdin.
32867         * modules/yesno-tests (Files): New module.
32868         * tests/test-yesno.c (main): New file.
32869         * tests/test-yesno.sh: Likewise.
32870
32871 2007-08-19  Bruno Haible  <bruno@clisp.org>
32872
32873         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
32874         * lib/fseeko.c (rpl_fseeko): Likewise.
32875         * lib/fseterr.c (fseterr): Likewise.
32876
32877 2007-08-19  Bruno Haible  <bruno@clisp.org>
32878
32879         * tests/test-lseek.c (main): Disable a test for BeOS.
32880         * doc/functions/lseek.texi: Document the BeOS bug.
32881
32882 2007-08-19  Bruno Haible  <bruno@clisp.org>
32883             Eric Blake  <ebb9@byu.net>
32884
32885         * lib/lseek.c: Include <sys/stat.h>.
32886         (rpl_lseek): Add workaround code also for Unix platforms.
32887         Needed for BeOS.
32888         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
32889         * doc/functions/lseek.texi: Document BeOS definiency.
32890
32891 2007-08-18  Bruno Haible  <bruno@clisp.org>
32892
32893         * modules/fstrcmp-tests: New file.
32894         * tests/test-fstrcmp.c: New file.
32895
32896 2007-08-18  Bruno Haible  <bruno@clisp.org>
32897
32898         * modules/fstrcmp: New file, from GNU gettext with modifications.
32899         * lib/fstrcmp.h: New file, from GNU gettext.
32900         * lib/fstrcmp.c: New file, from GNU gettext.
32901         * MODULES.html.sh (String handling): Add fstrcmp.
32902
32903 2007-08-18  Bruno Haible  <bruno@clisp.org>
32904
32905         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
32906         'bool'.
32907         (diag, compareseq): Remove const from the ctxt argument.
32908         (USE_HEURISTIC): Undefine at the end.
32909
32910 2007-08-18  Jim Meyering  <jim@meyering.net>
32911
32912         New file: lib/idcache.h
32913         * NEWS: Mention the addition.
32914         * modules/idcache (Files): Add lib/idcache.h
32915         * lib/idcache.c: Include "idcache.h".
32916         Don't include <sys/types.h>.
32917         Add a FIXME comment.
32918         Move file-scoped "static" declarations to the top.
32919         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
32920
32921 2007-08-17  Bruno Haible  <bruno@clisp.org>
32922         and Paul Eggert  <eggert@cs.ucla.edu>
32923
32924         * MODULES.html.sh: Add diffseq.
32925         * modules/diffseq: New file.
32926         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
32927         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
32928
32929 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
32930
32931         Import changes from coreutils for bootstrap script.
32932
32933         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
32934
32935         * build-aux/bootstrap (slurp): Work even in environments where
32936         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
32937         current code does not slurp files whose names start with ".", and
32938         this looks like it might be a troublesome area.
32939
32940         2007-07-11  Jim Meyering  <jim@meyering.net>
32941
32942         If there's a GPL vN copyright comment, require that N == 3.
32943
32944         2007-07-08  Jim Meyering  <jim@meyering.net>
32945
32946         Run the coreutils-specific code only if tests/Makefile.am.in exists.
32947         * build-aux/bootstrap (mam_template): Move definition out of loop.
32948
32949         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
32950
32951         * build-aux/bootstrap (symlink_to_dir): Rename function from
32952         symlink_to_gnulib.  Add a directory parameter.  Update all
32953         callers.
32954         (cp_mark_as_generated): Also check for -- and link to -- files in
32955         gl/.
32956
32957         2007-07-08  Jim Meyering  <jim@meyering.net>
32958
32959         Adapt to deeper hierarchy in gnulib.
32960         * build-aux/bootstrap (symlink_to_dir): If the destination
32961         directory doesn't exist, create it. This is required at least for
32962         "lib/uniwidth/cjk.h".
32963
32964         2007-05-15  Jim Meyering  <jim@meyering.net>
32965
32966         * build-aux/bootstrap: Now that generated Makefile.am files
32967         are no longer under version control, they must be created at
32968         bootstrap time.
32969
32970 2007-08-14  Ben Pfaff  <blp@gnu.org>
32971
32972         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
32973
32974 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
32975
32976         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
32977         given the changes below.
32978         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
32979         even on hosts that have padding bits beyond the supported 64.
32980
32981 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
32982
32983         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
32984         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
32985         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
32986         depends on it.
32987         (xstrtol_error): Remove.
32988         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
32989         but with a different signature.
32990         (ATTRIBUTE_NORETURN, __attribute__): New macros.
32991         * lib/xstrtol-error.c: Include exitfail.h.
32992         (xstrtol_fatal): New function, with a different signature from the
32993         old xstrtol_error, so that the caller need not worry about passing
32994         in an exit status, or about storage management of the option argument.
32995         (xstrtol_error): Now a static function.  Redo signature to
32996         implement xstrtol_fatal.  Output the correct number of hyphens in
32997         front of the option so that the caller need not worry about
32998         storage management.
32999         (N_): New macro.
33000         (_): Remove; not used now.
33001         * modules/xstrtol: Depend on getopt.
33002         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
33003         of old STRTOL_FATAL_ERROR macro.
33004         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
33005         of test program.
33006         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
33007         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
33008
33009 2007-08-08  Eric Blake  <ebb9@byu.net>
33010
33011         * lib/xstrtol-error.c: Add missing include.
33012
33013         Move xstrtol messages into gnulib domain, when --pobase is used.
33014         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
33015         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
33016         * modules/xstrtol (Files): Distribute new file.
33017         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
33018         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
33019         * tests/test-xstrtol.c: ...into new file.
33020         * tests/test-xstrtoul.c: Also test xstrtoul.
33021         * tests/test-xstrtoimax.c: Also test xstrtoimax.
33022         * tests/test-xstrtoumax.c: Also test xstrtoumax.
33023         * tests/test-xstrtol.sh: Drive the tests.
33024         * tests/test-xstrtoimax.sh: Likewise.
33025         * tests/test-xstrtoumax.sh: Likewise.
33026         * modules/xstrtol-tests: New module.
33027         * modules/xstrtoimax-tests: Likewise.
33028         * modules/xstrtoumax-tests: Likewise.
33029
33030 2007-08-08  Jim Meyering  <jim@meyering.net>
33031
33032         New function: mfile_name_concat.
33033         * lib/filenamecat.c (mfile_name_concat): New function, just like
33034         file_name_concat, but return NULL upon failure rather than exiting
33035         with a diagnostic.
33036         * lib/filenamecat.h: Declare it.
33037
33038 2007-08-07  Bruno Haible  <bruno@clisp.org>
33039
33040         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
33041         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
33042         warning from gcc.
33043         Reported by Eric Blake.
33044
33045 2007-08-07  Simon Josefsson  <simon@josefsson.org>
33046
33047         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
33048         * modules/crypto/arcfour (License): Likewise.
33049         * modules/crypto/des-tests (License): Likewise.
33050         * modules/crypto/gc-arctwo-tests (License): Likewise.
33051         * modules/crypto/gc-des-tests (License): Likewise.
33052         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
33053         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
33054         * modules/crypto/gc-md2-tests (License): Likewise.
33055         * modules/crypto/gc-md4-tests (License): Likewise.
33056         * modules/crypto/gc-md5-tests (License): Likewise.
33057         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
33058         * modules/crypto/gc-rijndael-tests (License): Likewise.
33059         * modules/crypto/gc-sha1-tests (License): Likewise.
33060         * modules/crypto/gc-tests (License): Likewise.
33061         * modules/crypto/hmac-md5 (License): Likewise.
33062         * modules/crypto/hmac-sha1 (License): Likewise.
33063         * modules/crypto/md2-tests (License): Likewise.
33064         * modules/crypto/md4-tests (License): Likewise.
33065         * modules/crypto/md5 (License): Likewise.
33066         * modules/crypto/rijndael (License): Likewise.
33067         * modules/crypto/sha1 (License): Likewise.
33068         * modules/memxor (License): Likewise.
33069
33070 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
33071         and Bruno Haible  <bruno@clisp.org>
33072
33073         * NEWS: Describe interface changes to human, xstrtol.
33074         * lib/human.h: Include <xstrtol.h>.
33075         (human_options): Return enum strtol_error, not int.  Remove
33076         bool arg; take int * instead.
33077         * lib/human.c: Don't include "gettext.h".
33078         (_): Remove; no longer used.
33079         Don't include <xstrtol.h>, since human.h does it.
33080         (human_options): Adjust to abovementioned interface changes.
33081         Do not report error to stderr; that's now the caller's
33082         responsibility.
33083         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
33084         interface change.
33085         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
33086         Str, Argument_type_string.  All uses changed.  Put " argument"
33087         in diagnostics to make them clearer.  Change wording of suffix
33088         message for clarity.
33089         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
33090         Argument_type_string.
33091         (STRTOL_FATAL_WARN): Remove; no longer used.
33092         * modules/human (Depends-on): Remove gettext-h.
33093
33094 2007-08-06  Simon Josefsson  <simon@josefsson.org>
33095
33096         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
33097
33098 2007-07-31  Bruno Haible  <bruno@clisp.org>
33099
33100         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
33101         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
33102         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
33103
33104 2007-07-31  Bruno Haible  <bruno@clisp.org>
33105
33106         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
33107         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
33108
33109 2007-07-30  Bruno Haible  <bruno@clisp.org>
33110
33111         * modules/base64 (License): Use the synonymous term "LGPLv2+".
33112         * modules/c-ctype (License): Likewise.
33113         * modules/c-strcase (License): Likewise.
33114         * modules/check-version (License): Likewise.
33115         * modules/iconv (License): Likewise.
33116         * modules/iconv_open (License): Likewise.
33117         * modules/read-file (License): Likewise.
33118         * modules/striconv (License): Likewise.
33119         * modules/strverscmp (License): Likewise.
33120         * modules/vasprintf (License): Likewise.
33121         * modules/crypto/des (License): Likewise.
33122         * modules/crypto/gc (License): Likewise.
33123         * modules/crypto/gc-arcfour (License): Likewise.
33124         * modules/crypto/gc-arctwo (License): Likewise.
33125         * modules/crypto/gc-des (License): Likewise.
33126         * modules/crypto/gc-hmac-md5 (License): Likewise.
33127         * modules/crypto/gc-hmac-sha1 (License): Likewise.
33128         * modules/crypto/gc-md2 (License): Likewise.
33129         * modules/crypto/gc-md4 (License): Likewise.
33130         * modules/crypto/gc-md5 (License): Likewise.
33131         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
33132         * modules/crypto/gc-random (License): Likewise.
33133         * modules/crypto/gc-rijndael (License): Likewise.
33134         * modules/crypto/gc-sha1 (License): Likewise.
33135         * modules/crypto/md2 (License): Likewise.
33136         * modules/crypto/md4 (License): Likewise.
33137
33138 2007-07-30  Jim Meyering  <jim@meyering.net>
33139
33140         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
33141         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
33142         it has valid stat data.  This bug would cause du not to count the
33143         sizes of inaccessible directories.
33144         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
33145         in <http://bugzilla.redhat.com/250077>.
33146
33147 2007-07-25  Peter O'Gorman  <peter@pogma.com>
33148             Bruno Haible  <bruno@clisp.org>
33149
33150         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
33151         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
33152         #include_next, gives a diagnostic about it, but reports no error in
33153         the exit code.
33154         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
33155
33156 2007-07-24  Ben Pfaff  <blp@gnu.org>
33157
33158         Improve name: "count-one-bits" is better than "popcount".
33159         * MODULES.html.sh: Update name.
33160         * lib/popcount.h: Renamed lib/count-one-bits.h.
33161         (popcount): Renamed count_one_bits.
33162         (popcountl): Renamed count_one_bits_l.
33163         (popcountll): Renamed count_one_bits_ll.
33164         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
33165         * modules/popcount: Renamed module/count-one-bits.
33166         * modules/popcount-tests: Renamed module/count-one-bits-tests.
33167         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
33168
33169 2007-07-23  Ben Pfaff  <blp@gnu.org>
33170
33171         * lib/popcount.h (popcount32): Reduce size of constants, to allow
33172         better code generation, and add U to large constants to avoid
33173         warnings, in non-GCC case.
33174         Suggested by Bruno Haible.
33175
33176 2007-07-23  Ben Pfaff  <blp@gnu.org>
33177
33178         * lib/popcount.h: Use verify_true instead of if...abort.
33179         * modules/popcount: Depend on verify module.
33180         Suggested by Jim Meyering.
33181
33182 2007-07-23  Bruno Haible  <bruno@clisp.org>
33183
33184         * gnulib-tool (func_import): Create a .cvsignore file also when the
33185         directory is not yet in CVS but the toplevel directory is. When
33186         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
33187         Reported by Karl Berry.
33188
33189 2007-07-22  Ben Pfaff  <blp@gnu.org>
33190
33191         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
33192         case.
33193         Suggested by Eric Blake.
33194
33195 2007-07-22  Ben Pfaff  <blp@gnu.org>
33196
33197         New module: popcount.
33198         * MODULES.html.sh: Add popcount.
33199         * modules/popcount: New file.
33200         * modules/popcount-tests: New file.
33201         * tests/test-popcount.c: New file.
33202         * lib/popcount.h: New file.
33203         * m4/popcount.m4: New file.
33204
33205 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
33206
33207         * build-aux/announce-gen: Update to GPLv3.
33208
33209         * build-aux/config.guess: Update from config.
33210
33211 2007-07-21  Bruno Haible  <bruno@clisp.org>
33212
33213         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
33214         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
33215
33216 2007-07-20  Jim Meyering  <jim@meyering.net>
33217
33218         * check-module: Diagnose a self-dependency.
33219
33220 2007-07-19  Bruno Haible  <bruno@clisp.org>
33221
33222         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
33223         empty.
33224         Reported by Eric Blake.
33225
33226 2007-07-18  Bruno Haible  <bruno@clisp.org>
33227
33228         * gnulib-tool: New options --po-base, --po-domain.
33229         (func_usage): Document them.
33230         (pobase, po_domain): New variables.
33231         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
33232         DEFAULT_TEXT_DOMAIN.
33233         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
33234         (func_import): Consider pobase and po_domain. Create a po/ directory.
33235         (func_create_testdir): Set pobase and po_domain to empty.
33236         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
33237         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
33238
33239 2007-07-18  Bruno Haible  <bruno@clisp.org>
33240
33241         * gnulib-tool (func_get_automake_snippet): Synthesize also an
33242         EXTRA_DIST augmentation for files in build-aux/.
33243
33244 2007-07-16  Bruno Haible  <bruno@clisp.org>
33245
33246         * modules/lseek (License): Use the synonymous term "LGPLv2+".
33247         * modules/getdelim (License): Likewise.
33248
33249 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33250
33251         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
33252         * modules/d-type (License): Likewise.
33253         * modules/extensions (License): Likewise.
33254         * modules/fnmatch (License): Likewise.
33255         * modules/fseeko (License): Likewise.
33256         * modules/getaddrinfo (License): Likewise.
33257         * modules/getline (License): Likewise.
33258         * modules/getlogin_r (License): Likewise.
33259         * modules/getpass (License): Likewise.
33260         * modules/gettimeofday (License): Likewise.
33261         * modules/glob (License): Likewise.
33262         * modules/inet_ntop (License): Likewise.
33263         * modules/malloc (License): Likewise.
33264         * modules/malloca (License): Likewise.
33265         * modules/memmem (License): Likewise.
33266         * modules/mempcpy (License): Likewise.
33267         * modules/memset (License): Likewise.
33268         * modules/minmax (License): Likewise.
33269         * modules/mktime (License): Likewise.
33270         * modules/netinet_in (License): Likewise.
33271         * modules/pathmax (License): Likewise.
33272         * modules/poll (License): Likewise.
33273         * modules/regex (License): Likewise.
33274         * modules/snprintf (License): Likewise.
33275         * modules/stdbool (License): Likewise.
33276         * modules/stdint (License): Likewise.
33277         * modules/stdio (License): Likewise.
33278         * modules/strcase (License): Likewise.
33279         * modules/strcasestr (License): Likewise.
33280         * modules/strdup (License): Likewise.
33281         * modules/string (License): Likewise.
33282         * modules/strndup (License): Likewise.
33283         * modules/strnlen (License): Likewise.
33284         * modules/strpbrk (License): Likewise.
33285         * modules/strptime (License): Likewise.
33286         * modules/strsep (License): Likewise.
33287         * modules/sys_select (License): Likewise.
33288         * modules/sys_socket (License): Likewise.
33289         * modules/sys_stat (License): Likewise.
33290         * modules/sys_time (License): Likewise.
33291         * modules/time (License): Likewise.
33292         * modules/time_r (License): Likewise.
33293         * modules/timegm (License): Likewise.
33294         * modules/unistd (License): Likewise.
33295         * modules/vsnprintf (License): Likewise.
33296         * modules/wctype (License): Likewise.
33297
33298 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33299
33300         * modules/argz (License): LGPLv2+.
33301
33302 2007-07-15  Karl Berry  <karl@gnu.org>
33303
33304         * doc/gnulib.texi: revise node structure per new fdl.texi.
33305
33306 2007-07-14  Bruno Haible  <bruno@clisp.org>
33307
33308         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
33309         the output file.
33310         * lib/uniname/uninames.h: Regenerated.
33311
33312 2007-07-14  Karl Berry  <karl@gnu.org>
33313
33314         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
33315         omitting sectioning and index commands.
33316
33317 2007-07-13  Bruno Haible  <bruno@clisp.org>
33318
33319         New gnulib-tool option --more-symlinks.
33320         * gnulib-tool (func_usage): Document --more-symlinks.
33321         (do_copyrights): New variable.
33322         Recognize option --more-symlinks.
33323         (func_import): Don't add a copyright notice transform to
33324         sed_transform_lib_file if do_copyrights is empty.
33325
33326 2007-07-13  Bruno Haible  <bruno@clisp.org>
33327
33328         * lib/vasnprintf.c (decimal_point_char): Define also if
33329         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
33330         && !NEED_PRINTF_DIRECTIVE_A.
33331         Reported by Clemens Koller <clemens.koller@anagramm.de> via
33332         Gary V. Vaughan <gary@gnu.org>.
33333
33334 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
33335
33336         * lib/inttypes_.h: Undo previous change, since it was fixed
33337         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
33338
33339 2007-07-13  Bruno Haible  <bruno@clisp.org>
33340
33341         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
33342         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
33343
33344 2007-07-13  Jim Meyering  <jim@meyering.net>
33345
33346         df: Don't fail for Tru64's "file-on-file mount".
33347         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
33348         so we fall through and use statfs instead.  Details here:
33349         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
33350         Reported by Albert Chin.
33351
33352 2007-07-13  Bruno Haible  <bruno@clisp.org>
33353
33354         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
33355         * modules/configmake (License): Likewise.
33356         * modules/gettext (License): Likewise.
33357         * modules/gettext-h (License): Likewise.
33358         * modules/include_next (License): Likewise.
33359         * modules/link-warning (License): Likewise.
33360         * modules/localcharset (License): Likewise.
33361         * modules/localename (License): Likewise.
33362         * modules/lock (License): Likewise.
33363         * modules/relocatable-lib-lgpl (License): Likewise.
33364         * modules/size_max (License): Likewise.
33365         * modules/vasnprintf (License): Likewise.
33366         * modules/wchar (License): Likewise.
33367         * modules/xsize (License): Likewise.
33368
33369 2007-07-13  Bruno Haible  <bruno@clisp.org>
33370
33371         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
33372         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
33373
33374 2007-07-12  Bruno Haible  <bruno@clisp.org>
33375
33376         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
33377         in the modules files.
33378
33379 2007-07-11  Karl Berry  <karl@gnu.org>
33380
33381         * MODULES.html.sh (func_module): use
33382          sed -e '\|^'"${includefile}"'$|d'
33383          instead of /.../d, to avoid errors on $includefile's containing /.
33384
33385 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
33386
33387         * gnulib-tool (func_import): Avoid duplication of --avoid
33388         statements
33389         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
33390         names to `_' in variable names.
33391
33392 2007-07-10  Eric Blake  <ebb9@byu.net>
33393
33394         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
33395         * NEWS: Document this change.
33396
33397 2007-07-08  Bruno Haible  <bruno@clisp.org>
33398
33399         Update to Unicode 5.0.
33400         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
33401         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
33402         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
33403         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
33404         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
33405         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
33406         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
33407         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
33408         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
33409         U+10A3F, U+1D242..U+1D244.
33410         (nonspacing_table_ind): Update.
33411         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
33412         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
33413
33414 2007-07-08  Bruno Haible  <bruno@clisp.org>
33415
33416         Update to Unicode 5.0.
33417         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
33418         code transform. Extend the name index field of unicode_name_to_code and
33419         unicode_code_to_name from 16 to 24 bits.
33420         * lib/uniname/uniname.c (unicode_character_name,
33421         unicode_name_character): Add the range 0x12xxx to the code transform.
33422         * lib/uniname/uninames.h: Regenerated.
33423         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
33424
33425 2007-07-07  Bruno Haible  <bruno@clisp.org>
33426
33427         * modules/wcwidth-tests: New file.
33428         * tests/test-wcwidth.c: New file.
33429
33430         Work around MacOS X wcwidth() bug.
33431         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
33432         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
33433         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
33434         original wcwidth in non-UTF-8 locales.
33435         * modules/wcwidth (Depends-on): Add localcharset, streq,
33436         uniwidth/width.
33437         * doc/functions/wcwidth.texi: Update.
33438
33439 2007-07-07  Bruno Haible  <bruno@clisp.org>
33440
33441         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
33442         (wcwidth): New declaration.
33443         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
33444         macros.
33445         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
33446         here. Prepare for creating <wchar.h> unconditionally.
33447         * modules/wchar (Depends-on): Add link-warning.
33448         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
33449         REPLACE_WCWIDTH, and GL_LINK_WARNING.
33450         * lib/wcwidth.h: Remove file.
33451         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
33452         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
33453         * modules/wcwidth (Files): Remove lib/wcwidth.h.
33454         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
33455         (Include): Replace wcwidth.h with <wchar.h>.
33456         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
33457         * lib/mbchar.h: Don't include wcwidth.h.
33458         * lib/mbswidth.c: Likewise.
33459         * NEWS: Mention the change.
33460
33461 2007-07-07  Bruno Haible  <bruno@clisp.org>
33462
33463         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
33464         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
33465         definition with an external declaration.
33466         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
33467         defined as a function. Remove AC_C_INLINE requirement.
33468         * modules/wcwidth (Files): Add lib/wcwidth.c.
33469         (Makefile.am): Remove redundant statement.
33470
33471 2007-07-07  Bruno Haible  <bruno@clisp.org>
33472
33473         * MODULES.html.sh (Unicode string functions): Add the new modules.
33474
33475         * tests/uniwidth/test-u32-strwidth.c: New file.
33476         * modules/uniwidth/u32-strwidth-tests: New file.
33477
33478         * lib/uniwidth/u32-strwidth.c: New file.
33479         * modules/uniwidth/u32-strwidth: New file.
33480
33481         * tests/uniwidth/test-u16-strwidth.c: New file.
33482         * modules/uniwidth/u16-strwidth-tests: New file.
33483
33484         * lib/uniwidth/u16-strwidth.c: New file.
33485         * modules/uniwidth/u16-strwidth: New file.
33486
33487         * tests/uniwidth/test-u8-strwidth.c: New file.
33488         * modules/uniwidth/u8-strwidth-tests: New file.
33489
33490         * lib/uniwidth/u8-strwidth.c: New file.
33491         * modules/uniwidth/u8-strwidth: New file.
33492
33493         * tests/uniwidth/test-u32-width.c: New file.
33494         * modules/uniwidth/u32-width-tests: New file.
33495
33496         * lib/uniwidth/u32-width.c: New file.
33497         * modules/uniwidth/u32-width: New file.
33498
33499         * tests/uniwidth/test-u16-width.c: New file.
33500         * modules/uniwidth/u16-width-tests: New file.
33501
33502         * lib/uniwidth/u16-width.c: New file.
33503         * modules/uniwidth/u16-width: New file.
33504
33505         * tests/uniwidth/test-u8-width.c: New file.
33506         * modules/uniwidth/u8-width-tests: New file.
33507
33508         * lib/uniwidth/u8-width.c: New file.
33509         * modules/uniwidth/u8-width: New file.
33510
33511         * tests/uniwidth/test-uc_width.c: New file.
33512         * modules/uniwidth/width-tests: New file.
33513
33514         * lib/uniwidth/width.c: New file, from GNU libiconv.
33515         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
33516         * modules/uniwidth/width: New file.
33517
33518         * lib/uniwidth.h: New file, from GNU libiconv.
33519         * modules/uniwidth/base: New file.
33520
33521 2007-07-07  Bruno Haible  <bruno@clisp.org>
33522
33523         * lib/uniname.h: New file, from GNU gettext.
33524         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
33525         * lib/uniname/uninames.h: New file, from GNU gettext.
33526         * lib/uniname/uniname.c: New file, from GNU gettext.
33527         * tests/uniname/test-uninames.sh: New file.
33528         * tests/uniname/test-uninames.c: New file, from GNU gettext.
33529         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
33530         * modules/uniname/base: New file.
33531         * modules/uniname/uniname: New file.
33532         * modules/uniname/uniname-tests: New file.
33533         * MODULES.html.sh (Unicode string functions): Add the new modules.
33534
33535 2007-07-06  Bruno Haible  <bruno@clisp.org>
33536
33537         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
33538
33539 2007-07-06  Bruno Haible  <bruno@clisp.org>
33540
33541         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
33542         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
33543         includes <cygwin/sys_time.h> which includes <sys/select.h> which
33544         include <sys/time.h>.
33545         Reported by Eric Blake.
33546
33547 2007-07-06  Eric Blake  <ebb9@byu.net>
33548
33549         Fix testing canonicalize on cygwin.
33550         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
33551         Revert patch from 2007-06-19.
33552         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
33553         canonicalize module is also in use.
33554         * tests/test-canonicalize.c: New file.
33555         * tests/test-canonicalize.sh: Likewise.
33556         * modules/canonicalize-tests: Likewise.
33557
33558 2007-07-06  Jim Meyering  <jim@meyering.net>
33559
33560         * lib/getugroups.c (getugroups): Detect getgrent failure.
33561         Adjust comment to reflect reality: this function may return -1.
33562
33563 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33564
33565         * build-aux/bootstrap (TP_URL,get_translations): Update to use
33566         the new TP address.
33567         (usage): Fix typo
33568         (gnulib_mk): New variable.
33569
33570 2007-07-05  Jim Meyering  <jim@meyering.net>
33571
33572         Don't let endgrent clobber errno, no matter how improbable.
33573         * lib/getugroups.c (getugroups): Save and restore errno around
33574         endgrent call.
33575
33576         Close the group DB even when failing with 2^31 or more members.
33577         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
33578
33579 2007-07-04  Jim Meyering  <jim@meyering.net>
33580
33581         * lib/getugroups.h: New file.
33582         * lib/getugroups.c: Include "getugroups.h".
33583         Remove uses of "register" keyword.
33584         Move local variable, "cp", down into scope where used.
33585         Give "username" parameter the "const" attribute.
33586         * modules/getugroups (Files): Add lib/getugroups.h
33587
33588 2007-07-04  Karl Berry  <karl@gnu.org>
33589
33590         * MODULES.html.sh (func_all_modules): Complete rename of
33591         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
33592
33593 2007-07-02  Bruno Haible  <bruno@clisp.org>
33594
33595         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
33596         mode, when inttypes.h comes from gnulib.
33597         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
33598
33599 2007-07-02  Simon Josefsson  <simon@josefsson.org>
33600
33601         * NEWS: Mention lgpl module name change.
33602
33603         * modules/lgpl-2.1: Renamed from lgpl.
33604
33605         * NEWS: Mention gpl module name change.
33606
33607         * modules/gpl-3.0: New file, based on gpl-2.0.
33608
33609         * modules/gpl-2.0: Renamed from gpl.
33610
33611         * modules/gpl: Fix filename, doc/gpl.texi is now found at
33612         doc/gpl-2.0.texi.
33613
33614 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
33615
33616         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
33617         #define __STDC_LIMIT_MACROS temporarily while including
33618         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
33619         Problem reported by Joel E. Denny in
33620         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
33621
33622 2007-07-01  Bruno Haible  <bruno@clisp.org>
33623
33624         * lib/unistdio.h: New file.
33625         * lib/unistdio/u-asnprintf.h: New file.
33626         * lib/unistdio/u-asprintf.h: New file.
33627         * lib/unistdio/u-printf-args.c: New file.
33628         * lib/unistdio/u-printf-args.h: New file.
33629         * lib/unistdio/u-printf-parse.h: New file.
33630         * lib/unistdio/u-snprintf.h: New file.
33631         * lib/unistdio/u-sprintf.h: New file.
33632         * lib/unistdio/u-vasprintf.h: New file.
33633         * lib/unistdio/u-vsnprintf.h: New file.
33634         * lib/unistdio/u-vsprintf.h: New file.
33635         * lib/unistdio/ulc-asnprintf.c: New file.
33636         * lib/unistdio/ulc-asprintf.c: New file.
33637         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
33638         * lib/unistdio/ulc-printf-parse.c: New file.
33639         * lib/unistdio/ulc-snprintf.c: New file.
33640         * lib/unistdio/ulc-sprintf.c: New file.
33641         * lib/unistdio/ulc-vasnprintf.c: New file.
33642         * lib/unistdio/ulc-vasprintf.c: New file.
33643         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
33644         * lib/unistdio/ulc-vsnprintf.c: New file.
33645         * lib/unistdio/ulc-vsprintf.c: New file.
33646         * lib/unistdio/u8-asnprintf.c: New file.
33647         * lib/unistdio/u8-asprintf.c: New file.
33648         * lib/unistdio/u8-printf-parse.c: New file.
33649         * lib/unistdio/u8-snprintf.c: New file.
33650         * lib/unistdio/u8-sprintf.c: New file.
33651         * lib/unistdio/u8-vasnprintf.c: New file.
33652         * lib/unistdio/u8-vasprintf.c: New file.
33653         * lib/unistdio/u8-vsnprintf.c: New file.
33654         * lib/unistdio/u8-vsprintf.c: New file.
33655         * lib/unistdio/u8-u8-asnprintf.c: New file.
33656         * lib/unistdio/u8-u8-asprintf.c: New file.
33657         * lib/unistdio/u8-u8-snprintf.c: New file.
33658         * lib/unistdio/u8-u8-sprintf.c: New file.
33659         * lib/unistdio/u8-u8-vasnprintf.c: New file.
33660         * lib/unistdio/u8-u8-vasprintf.c: New file.
33661         * lib/unistdio/u8-u8-vsnprintf.c: New file.
33662         * lib/unistdio/u8-u8-vsprintf.c: New file.
33663         * lib/unistdio/u16-asnprintf.c: New file.
33664         * lib/unistdio/u16-asprintf.c: New file.
33665         * lib/unistdio/u16-printf-parse.c: New file.
33666         * lib/unistdio/u16-snprintf.c: New file.
33667         * lib/unistdio/u16-sprintf.c: New file.
33668         * lib/unistdio/u16-vasnprintf.c: New file.
33669         * lib/unistdio/u16-vasprintf.c: New file.
33670         * lib/unistdio/u16-vsnprintf.c: New file.
33671         * lib/unistdio/u16-vsprintf.c: New file.
33672         * lib/unistdio/u16-u16-asnprintf.c: New file.
33673         * lib/unistdio/u16-u16-asprintf.c: New file.
33674         * lib/unistdio/u16-u16-snprintf.c: New file.
33675         * lib/unistdio/u16-u16-sprintf.c: New file.
33676         * lib/unistdio/u16-u16-vasnprintf.c: New file.
33677         * lib/unistdio/u16-u16-vasprintf.c: New file.
33678         * lib/unistdio/u16-u16-vsnprintf.c: New file.
33679         * lib/unistdio/u16-u16-vsprintf.c: New file.
33680         * lib/unistdio/u32-asnprintf.c: New file.
33681         * lib/unistdio/u32-asprintf.c: New file.
33682         * lib/unistdio/u32-printf-parse.c: New file.
33683         * lib/unistdio/u32-snprintf.c: New file.
33684         * lib/unistdio/u32-sprintf.c: New file.
33685         * lib/unistdio/u32-vasnprintf.c: New file.
33686         * lib/unistdio/u32-vasprintf.c: New file.
33687         * lib/unistdio/u32-vsnprintf.c: New file.
33688         * lib/unistdio/u32-vsprintf.c: New file.
33689         * lib/unistdio/u32-u32-asnprintf.c: New file.
33690         * lib/unistdio/u32-u32-asprintf.c: New file.
33691         * lib/unistdio/u32-u32-snprintf.c: New file.
33692         * lib/unistdio/u32-u32-sprintf.c: New file.
33693         * lib/unistdio/u32-u32-vasnprintf.c: New file.
33694         * lib/unistdio/u32-u32-vasprintf.c: New file.
33695         * lib/unistdio/u32-u32-vsnprintf.c: New file.
33696         * lib/unistdio/u32-u32-vsprintf.c: New file.
33697         * tests/unistdio/test-ulc-asnprintf1.c: New file.
33698         * tests/unistdio/test-ulc-asnprintf1.h: New file.
33699         * tests/unistdio/test-ulc-printf1.h: New file.
33700         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
33701         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
33702         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
33703         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
33704         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
33705         * tests/unistdio/test-ulc-vasprintf1.c: New file.
33706         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
33707         * tests/unistdio/test-ulc-vsprintf1.c: New file.
33708         * tests/unistdio/test-u8-asnprintf1.c: New file.
33709         * tests/unistdio/test-u8-asnprintf1.h: New file.
33710         * tests/unistdio/test-u8-printf1.h: New file.
33711         * tests/unistdio/test-u8-vasnprintf1.c: New file.
33712         * tests/unistdio/test-u8-vasnprintf2.c: New file.
33713         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
33714         * tests/unistdio/test-u8-vasnprintf3.c: New file.
33715         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
33716         * tests/unistdio/test-u8-vasprintf1.c: New file.
33717         * tests/unistdio/test-u8-vsnprintf1.c: New file.
33718         * tests/unistdio/test-u8-vsprintf1.c: New file.
33719         * tests/unistdio/test-u16-asnprintf1.c: New file.
33720         * tests/unistdio/test-u16-asnprintf1.h: New file.
33721         * tests/unistdio/test-u16-printf1.h: New file.
33722         * tests/unistdio/test-u16-vasnprintf1.c: New file.
33723         * tests/unistdio/test-u16-vasnprintf2.c: New file.
33724         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
33725         * tests/unistdio/test-u16-vasnprintf3.c: New file.
33726         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
33727         * tests/unistdio/test-u16-vasprintf1.c: New file.
33728         * tests/unistdio/test-u16-vsnprintf1.c: New file.
33729         * tests/unistdio/test-u16-vsprintf1.c: New file.
33730         * tests/unistdio/test-u32-asnprintf1.c: New file.
33731         * tests/unistdio/test-u32-asnprintf1.h: New file.
33732         * tests/unistdio/test-u32-printf1.h: New file.
33733         * tests/unistdio/test-u32-vasnprintf1.c: New file.
33734         * tests/unistdio/test-u32-vasnprintf2.c: New file.
33735         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
33736         * tests/unistdio/test-u32-vasnprintf3.c: New file.
33737         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
33738         * tests/unistdio/test-u32-vasprintf1.c: New file.
33739         * tests/unistdio/test-u32-vsnprintf1.c: New file.
33740         * tests/unistdio/test-u32-vsprintf1.c: New file.
33741         * modules/unistdio/base: New file.
33742         * modules/unistdio/u-printf-args: New file.
33743         * modules/unistdio/ulc-asnprintf: New file.
33744         * modules/unistdio/ulc-asprintf: New file.
33745         * modules/unistdio/ulc-fprintf: New file.
33746         * modules/unistdio/ulc-printf-parse: New file.
33747         * modules/unistdio/ulc-snprintf: New file.
33748         * modules/unistdio/ulc-sprintf: New file.
33749         * modules/unistdio/ulc-vasnprintf: New file.
33750         * modules/unistdio/ulc-vasprintf: New file.
33751         * modules/unistdio/ulc-vfprintf: New file.
33752         * modules/unistdio/ulc-vsnprintf: New file.
33753         * modules/unistdio/ulc-vsprintf: New file.
33754         * modules/unistdio/u8-asnprintf: New file.
33755         * modules/unistdio/u8-asprintf: New file.
33756         * modules/unistdio/u8-printf-parse: New file.
33757         * modules/unistdio/u8-snprintf: New file.
33758         * modules/unistdio/u8-sprintf: New file.
33759         * modules/unistdio/u8-vasnprintf: New file.
33760         * modules/unistdio/u8-vasprintf: New file.
33761         * modules/unistdio/u8-vsnprintf: New file.
33762         * modules/unistdio/u8-vsprintf: New file.
33763         * modules/unistdio/u8-u8-asnprintf: New file.
33764         * modules/unistdio/u8-u8-asprintf: New file.
33765         * modules/unistdio/u8-u8-snprintf: New file.
33766         * modules/unistdio/u8-u8-sprintf: New file.
33767         * modules/unistdio/u8-u8-vasnprintf: New file.
33768         * modules/unistdio/u8-u8-vasprintf: New file.
33769         * modules/unistdio/u8-u8-vsnprintf: New file.
33770         * modules/unistdio/u8-u8-vsprintf: New file.
33771         * modules/unistdio/u16-asnprintf: New file.
33772         * modules/unistdio/u16-asprintf: New file.
33773         * modules/unistdio/u16-printf-parse: New file.
33774         * modules/unistdio/u16-snprintf: New file.
33775         * modules/unistdio/u16-sprintf: New file.
33776         * modules/unistdio/u16-vasnprintf: New file.
33777         * modules/unistdio/u16-vasprintf: New file.
33778         * modules/unistdio/u16-vsnprintf: New file.
33779         * modules/unistdio/u16-vsprintf: New file.
33780         * modules/unistdio/u16-u16-asnprintf: New file.
33781         * modules/unistdio/u16-u16-asprintf: New file.
33782         * modules/unistdio/u16-u16-snprintf: New file.
33783         * modules/unistdio/u16-u16-sprintf: New file.
33784         * modules/unistdio/u16-u16-vasnprintf: New file.
33785         * modules/unistdio/u16-u16-vasprintf: New file.
33786         * modules/unistdio/u16-u16-vsnprintf: New file.
33787         * modules/unistdio/u16-u16-vsprintf: New file.
33788         * modules/unistdio/u32-asnprintf: New file.
33789         * modules/unistdio/u32-asprintf: New file.
33790         * modules/unistdio/u32-printf-parse: New file.
33791         * modules/unistdio/u32-snprintf: New file.
33792         * modules/unistdio/u32-sprintf: New file.
33793         * modules/unistdio/u32-vasnprintf: New file.
33794         * modules/unistdio/u32-vasprintf: New file.
33795         * modules/unistdio/u32-vsnprintf: New file.
33796         * modules/unistdio/u32-vsprintf: New file.
33797         * modules/unistdio/u32-u32-asnprintf: New file.
33798         * modules/unistdio/u32-u32-asprintf: New file.
33799         * modules/unistdio/u32-u32-snprintf: New file.
33800         * modules/unistdio/u32-u32-sprintf: New file.
33801         * modules/unistdio/u32-u32-vasnprintf: New file.
33802         * modules/unistdio/u32-u32-vasprintf: New file.
33803         * modules/unistdio/u32-u32-vsnprintf: New file.
33804         * modules/unistdio/u32-u32-vsprintf: New file.
33805         * modules/unistdio/ulc-asnprintf-tests: New file.
33806         * modules/unistdio/ulc-vasnprintf-tests: New file.
33807         * modules/unistdio/ulc-vasprintf-tests: New file.
33808         * modules/unistdio/ulc-vsnprintf-tests: New file.
33809         * modules/unistdio/ulc-vsprintf-tests: New file.
33810         * modules/unistdio/u8-asnprintf-tests: New file.
33811         * modules/unistdio/u8-vasnprintf-tests: New file.
33812         * modules/unistdio/u8-vasprintf-tests: New file.
33813         * modules/unistdio/u8-vsnprintf-tests: New file.
33814         * modules/unistdio/u8-vsprintf-tests: New file.
33815         * modules/unistdio/u16-asnprintf-tests: New file.
33816         * modules/unistdio/u16-vasnprintf-tests: New file.
33817         * modules/unistdio/u16-vasprintf-tests: New file.
33818         * modules/unistdio/u16-vsnprintf-tests: New file.
33819         * modules/unistdio/u16-vsprintf-tests: New file.
33820         * modules/unistdio/u32-asnprintf-tests: New file.
33821         * modules/unistdio/u32-vasnprintf-tests: New file.
33822         * modules/unistdio/u32-vasprintf-tests: New file.
33823         * modules/unistdio/u32-vsnprintf-tests: New file.
33824         * modules/unistdio/u32-vsprintf-tests: New file.
33825         * MODULES.html.sh (Unicode string functions): Add the new modules.
33826
33827 2007-07-01  Bruno Haible  <bruno@clisp.org>
33828
33829         * lib/sprintf.c (sprintf): Limit the available length estimation,
33830         to avoid address wraparound.
33831         * lib/vsprintf.c (vsprintf): Likewise.
33832         * modules/sprintf-posix (Dependencies): Add stdint.
33833         * modules/vsprintf-posix (Dependencies): Likewise.
33834
33835 2007-07-01  Bruno Haible  <bruno@clisp.org>
33836
33837         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
33838         Windows PATH as well. Conservative double-quoting. Comments.
33839
33840 2007-07-01  Bruno Haible  <bruno@clisp.org>
33841             Eric Blake  <ebb9@byu.net>
33842             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33843
33844         * gnulib-tool (self_abspathname): Fix algorithm to cope with
33845         empty components in $PATH, denoting '.'.
33846
33847 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33848
33849         * gnulib-tool: Fix indentation.
33850         (func_create_megatestdir): Likewise.
33851         Report by Bruno Haible.
33852
33853 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33854
33855         Sync from Automake.
33856         * build-aux/gnupload: Fix shell portability issues with for loops.
33857         Report by Karl Berry.
33858
33859 2007-06-29  Simon Josefsson  <simon@josefsson.org>
33860
33861         * build-aux/maint.mk (POURL): Use translationproject.org.
33862
33863 2007-06-27  Simon Josefsson  <simon@josefsson.org>
33864             Bruno Haible  <bruno@clisp.org>
33865
33866         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
33867         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
33868         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
33869         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
33870         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
33871
33872 2007-06-27  Bruno Haible  <bruno@clisp.org>
33873
33874         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
33875         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
33876
33877 2007-06-26  Karl Berry  <karl@gnu.org>
33878
33879         * MODULES.html.sh: remove xreadlink-with-size.
33880
33881 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
33882
33883         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
33884         method that I hope also handles the double-include problem noted
33885         by Bruno Haible in
33886         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
33887
33888 2007-06-23  Bruno Haible  <bruno@clisp.org>
33889
33890         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33891         Don't let the 'mostlyclean' target fail if the last subdirectory could
33892         not be removed.
33893         Reported by Karl Berry.
33894
33895 2007-06-23  Bruno Haible  <bruno@clisp.org>
33896
33897         * gnulib-tool (echo): Add a speedier workaround for ksh.
33898         * tests/test-echo.sh: Likewise.
33899
33900 2007-06-23  Bruno Haible  <bruno@clisp.org>
33901
33902         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
33903         * tests/test-echo.sh: Likewise.
33904
33905 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33906
33907         * gnulib-tool (IFS): Initialize early, so we don't set it to
33908         empty later.
33909         (self_abspathname): Rewrite algorithm to set it, reindent.
33910         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
33911         (func_create_megatestdir): Merge some sed scripts.
33912
33913 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
33914
33915         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
33916         exposed by Sun Studio 11 cc on Solaris 8.
33917
33918 2007-06-22  Bruno Haible  <bruno@clisp.org>
33919
33920         * gnulib-tool (echo): Ensure the echo primitive does not interpret
33921         backslashes.
33922         * tests/test-echo.sh: New file.
33923
33924 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33925
33926         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
33927         simplify `sed_replace_build_aux' scripts, they are portable but
33928         echoing them with `echo' is not.
33929         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
33930
33931 2007-06-21  Karl Berry  <karl@gnu.org>
33932
33933         * config/srclist.txt: guess we can't handle the licenses via
33934         srclist at the moment.
33935
33936 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
33937
33938         * MODULES.html.sh: Add include_next.
33939         * modules/include_next: New file.
33940
33941 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
33942
33943         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
33944         INCLUDE_NEXT.
33945         (gl_CHECK_NEXT_HEADERS): New macro.
33946         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
33947         the obsolescent gl_ABSOLUTE_HEADER.
33948         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
33949         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
33950         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
33951         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33952         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33953         * m4/math_h.m4 (gl_MATH_H): Likewise.
33954         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
33955         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33956         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33957         * m4/stdint.m4 (gl_STDINT_H): Likewise.
33958         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33959         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33960         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33961         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33962         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33963         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33964         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
33965         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
33966         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
33967         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33968         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33969         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
33970         * m4/inttypes.m4 (gl_INTTYPES_H): Define
33971         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
33972         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
33973         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
33974         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
33975         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
33976         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
33977         * lib/float_.h: Likewise.
33978         * lib/inttypes_.h: Likewise.
33979         * lib/math_.h: Likewise.
33980         * lib/search_.h: Likewise.
33981         * lib/signal_.h: Likewise.
33982         * lib/stdint_.h: Likewise.
33983         * lib/stdio_.h: Likewise.
33984         * lib/stdlib_.h: Likewise.
33985         * lib/string_.h: Likewise.
33986         * lib/sys_stat_.h: Likewise.
33987         * lib/sys_time_.h: Likewise.
33988         * lib/time_.h: Likewise.
33989         * lib/unistd_.h: Likewise.
33990         * lib/wchar_.h: Likewise.
33991         * lib/wctype_.h: Likewise.
33992         * lib/dirent_.h: Likewise.
33993         * lib/iconv_.h: Likewise.
33994         * lib/locale_.h: Likewise.
33995         * lib/netinet_in_.h: Likewise.
33996         * lib/sys_select_.h: Likewise.
33997         * lib/sys_socket_.h: Likewise.
33998         * lib/sysexits_.h: Likewise.
33999         * modules/fcntl (Depends-on): Depend on include_next, not
34000         absolute_header.
34001         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
34002         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
34003         * modules/fchdir: Likewise.
34004         * modules/float: Likewise.
34005         * modules/iconv_open: Likewise.
34006         * modules/inttypes: Likewise.
34007         * modules/locale: Likewise.
34008         * modules/math: Likewise.
34009         * modules/netinet_in: Likewise.
34010         * modules/search: Likewise.
34011         * modules/signal: Likewise.
34012         * modules/stdint: Likewise.
34013         * modules/stdio: Likewise.
34014         * modules/stdlib: Likewise.
34015         * modules/string: Likewise.
34016         * modules/sys_select: Likewise.
34017         * modules/sys_socket: Likewise.
34018         * modules/sys_stat: Likewise.
34019         * modules/sys_time: Likewise.
34020         * modules/sysexits: Likewise.
34021         * modules/time: Likewise.
34022         * modules/unistd: Likewise.
34023         * modules/wchar: Likewise.
34024         * modules/wctype: Likewise.
34025         * modules/sys_stat: Change maintainer to "all".
34026         * modules/unistd: Likewise.
34027
34028 2007-06-20  Karl Berry  <karl@gnu.org>
34029
34030         * config/srclist.txt: track www changes in license files.
34031
34032 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
34033
34034         * build-aux/bootstrap: Remove stray dot.
34035         Make sure build_aux settings are honored when linking
34036         gnulib_extra_files.
34037
34038 2007-06-19  Eric Blake  <ebb9@byu.net>
34039
34040         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
34041         Allow compilation on cygwin.
34042
34043 2007-06-19  Jim Meyering  <jim@meyering.net>
34044
34045         xreadlink-with-size: Remove module.  No longer used.
34046         Ex-callers now use xreadlink or mreadlink-with-size.
34047         * modules/xreadlink-with-size: Remove module.
34048         * lib/xreadlink-with-size.c: Remove file.
34049         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
34050         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
34051         just before the function definition *is* accurate.
34052
34053         Eliminate one way canonicalize_filename_mode could exit.
34054         * lib/canonicalize.c (canonicalize_filename_mode):
34055         Use mreadlink_with_size, not xreadlink_with_size.
34056
34057 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
34058
34059         Detect porting problems to FreeBSD/arm, which has time_t wider than
34060         long int.  Original problem reported for GNU diff by Xin Li in
34061         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
34062         * modules/getdate (Depends-on): Add intprops, verify.
34063         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
34064         is an integer type no wider than long int.
34065
34066 2007-06-18  Jim Meyering  <jim@meyering.net>
34067
34068         New module: mreadlink-with-size.
34069         * MODULES.html.sh: Add mreadlink-with-size.
34070         * modules/mreadlink-with-size: New module
34071         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
34072         not xreadlink-with-size.
34073         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
34074
34075 2007-06-16  Bruno Haible  <bruno@clisp.org>
34076
34077         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
34078         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
34079         Reported by Gary V. Vaughan <gary@gnu.org>.
34080
34081 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
34082
34083         Revamp lchown so that it lives in unistd.h where it belongs.
34084         * lib/lchown.h: Remove.
34085         * lib/dirchownmod.c: Don't include lib/lchown.h.
34086         * lib/fchownat.c: Likewise.
34087         * lib/openat.c: Likewise.
34088         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
34089         does not follow symlinks.
34090         (EOPNOTSUPP): Define if not defined.
34091         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
34092         is defined to 0.
34093         (lchown): New decl.
34094         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
34095         Do not check for lchown decl.
34096         Set REPLACE_LCHOWN.
34097         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
34098         REPLACE_LCHOWN.
34099         * modules/chown: Make it clear it follows symlinks.
34100         * modules/lchown: Make it clear it doesn't follow symlinks.
34101         (Files): Remove lib/lchown.h
34102         (Depends-on): Add unistd.
34103         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
34104         (Include): Include <unistd.h>, not "lchown.h".
34105         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
34106         REPLACE_LCHOWN.
34107
34108 2007-06-15  Jim Meyering  <jim@meyering.net>
34109
34110         Change license (GPL to LGPL) of fsusage and dependents.
34111         * modules/fsusage (License): Change to LGPL.
34112         * modules/full-read (License): Likewise.
34113         * modules/full-write (License): Likewise.
34114         * modules/safe-read (License): Likewise.
34115         * modules/safe-write (License): Likewise.
34116
34117 2007-06-14  Ben Pfaff  <blp@gnu.org>
34118
34119         Missing part of allocsa -> malloca transition.
34120         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
34121         gl_MALLOCA.
34122
34123 2007-06-12  Bruno Haible  <bruno@clisp.org>
34124
34125         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
34126         to ia64, x86_64, i386.
34127         Reported by Eric Blake.
34128
34129 2007-06-12  Bruno Haible  <bruno@clisp.org>
34130
34131         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
34132         cross-compiling to x86_64.
34133
34134 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
34135
34136         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
34137         glitch reported by Ralf Wildenhues in
34138         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
34139
34140         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
34141         Vin Shelton.
34142
34143 2007-06-11  Bruno Haible  <bruno@clisp.org>
34144
34145         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
34146         replacement string.
34147         Reported by Eric Blake.
34148
34149 2007-06-10  Bruno Haible  <bruno@clisp.org>
34150
34151         Prepare vasnprintf code for use with Unicode strings.
34152         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
34153         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
34154         TYPE_U32_STRING.
34155         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
34156         a_u32_string variants.
34157         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
34158         * lib/printf-args.c: Don't include config.h and the specification
34159         header if PRINTF_FETCHARGS is already defined.
34160         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
34161         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
34162         TYPE_U16_STRING, TYPE_U32_STRING.
34163         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
34164         u16_directive, u16_directives, u32_directive, u32_directives): New
34165         types.
34166         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
34167         New declarations.
34168         * lib/printf-parse.c: Don't include config.h and the specification
34169         header if PRINTF_PARSE is already defined. Eliminate the set of
34170         parameters for WIDE_CHAR_VERSION; the user of this file must provide
34171         them now. Include c-ctype.h.
34172         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
34173         directive and CHAR_T_ONLY_ASCII.
34174         * lib/vasnprintf.c: Don't include config.h and the specification header
34175         if VASNPRINTF is already defined.
34176         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
34177         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
34178         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
34179         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
34180         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
34181         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
34182         code accordingly.
34183         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
34184         pad_ourselves also in this case, with the 'c' and 's' directives, and
34185         with a different notion of "width".
34186         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
34187
34188 2007-06-10  Bruno Haible  <bruno@clisp.org>
34189
34190         * modules/unistr/u32-mbsnlen: New file.
34191         * lib/unistr/u32-mbsnlen.c: New file.
34192
34193         * modules/unistr/u16-mbsnlen: New file.
34194         * lib/unistr/u16-mbsnlen.c: New file.
34195
34196         * modules/unistr/u8-mbsnlen: New file.
34197         * lib/unistr/u8-mbsnlen.c: New file.
34198
34199         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
34200         declarations.
34201
34202 2007-06-10  Bruno Haible  <bruno@clisp.org>
34203
34204         * lib/string_.h (mbsnlen): New declaration.
34205         * lib/mbsnlen.c: New file.
34206         * m4/mbsnlen.m4: New file.
34207         * modules/mbsnlen: New file.
34208         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
34209         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
34210         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
34211
34212 2007-06-10  Bruno Haible  <bruno@clisp.org>
34213
34214         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
34215
34216 2007-06-10  Bruno Haible  <bruno@clisp.org>
34217
34218         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
34219         * lib/mbuiter.h: Likewise.
34220
34221 2007-06-10  Bruno Haible  <bruno@clisp.org>
34222
34223         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
34224         declaration.
34225
34226 2007-06-10  Karl Berry  <karl@gnu.org>
34227
34228         * config/srclist.txt: remove gettext entries, Bruno prefers
34229         to update individually.
34230
34231 2007-06-10  Bruno Haible  <bruno@clisp.org>
34232
34233         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
34234         'maxlen'. Ensure only length + width bytes are allocated, not
34235         length + 1 + width.
34236
34237 2007-06-09  Bruno Haible  <bruno@clisp.org>
34238
34239         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
34240         (CHAR_T): Remove macro.
34241         (VASNPRINTF): Update.
34242
34243 2007-06-09  Bruno Haible  <bruno@clisp.org>
34244
34245         * MODULES.html.sh (Unicode string functions): Add the new modules.
34246
34247         * modules/uniconv/u32-conv-to-enc: New file.
34248         * lib/uniconv/u32-conv-to-enc.c: New file.
34249         * modules/uniconv/u32-conv-to-enc-tests: New file.
34250         * tests/uniconv/test-u32-conv-to-enc.c: New file.
34251
34252         * modules/uniconv/u16-conv-to-enc: New file.
34253         * lib/uniconv/u16-conv-to-enc.c: New file.
34254         * lib/uniconv/u-conv-to-enc.h: New file.
34255         * modules/uniconv/u16-conv-to-enc-tests: New file.
34256         * tests/uniconv/test-u16-conv-to-enc.c: New file.
34257
34258         * modules/uniconv/u8-conv-to-enc: New file.
34259         * lib/uniconv/u8-conv-to-enc.c: New file.
34260         * modules/uniconv/u8-conv-to-enc-tests: New file.
34261         * tests/uniconv/test-u8-conv-to-enc.c: New file.
34262
34263         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
34264         u32_conv_to_encoding): New declarations.
34265
34266 2007-06-09  Bruno Haible  <bruno@clisp.org>
34267
34268         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
34269
34270 2007-06-09  Bruno Haible  <bruno@clisp.org>
34271
34272         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
34273         * modules/malloca: Renamed from modules/allocsa, updated.
34274         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
34275         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
34276         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
34277         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
34278         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
34279         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
34280         * modules/xmalloca: Renamed from modules/xallocsa, updated.
34281         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
34282         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
34283         * modules/c-strcasestr (Depends-on): Update.
34284         * lib/c-strcasestr.c: Update.
34285         * modules/c-strstr (Depends-on): Update.
34286         * lib/c-strstr.c: Update.
34287         * modules/canonicalize-lgpl (Depends-on): Update.
34288         * lib/canonicalize-lgpl.c: Update.
34289         * modules/clean-temp (Depends-on): Update.
34290         * lib/clean-temp.c: Update.
34291         * modules/csharpcomp (Depends-on): Update.
34292         * lib/csharpcomp.c: Update.
34293         * modules/csharpexec (Depends-on): Update.
34294         * lib/csharpexec.c: Update.
34295         * modules/javacomp (Depends-on): Update.
34296         * lib/javacomp.c: Update.
34297         * modules/javaexec (Depends-on): Update.
34298         * lib/javaexec.c: Update.
34299         * modules/mbscasestr (Depends-on): Update.
34300         * lib/mbscasestr.c: Update.
34301         * modules/mbsstr (Depends-on): Update.
34302         * lib/mbsstr.c: Update.
34303         * modules/setenv (Depends-on): Update.
34304         * lib/setenv.c: Update.
34305         * modules/strcasestr (Depends-on): Update.
34306         * lib/strcasestr.c: Update.
34307         * modules/striconveha (Depends-on): Update.
34308         * lib/striconveha.c: Update.
34309         * modules/relocatable-prog-wrapper (Files): Update.
34310         * lib/relocwrapper.c: Update.
34311         * build-aux/install-reloc: Update.
34312         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
34313
34314 2007-06-08  Bruno Haible  <bruno@clisp.org>
34315
34316         Port to uClibc.
34317         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
34318         * lib/fpurge.c (fpurge): Likewise.
34319         * lib/freading.c (freading): Likewise.
34320         * lib/fseeko.c (rpl_fseeko): Likewise.
34321         * lib/fseterr.c (fseterr): Likewise.
34322         * lib/fwriting.c (fwriting): Likewise.
34323         * tests/test-fflush.c (main): Avoid a failure on uClibc.
34324
34325 2007-06-08  Bruno Haible  <bruno@clisp.org>
34326
34327         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
34328         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
34329         * modules/gettext (Files): Add m4/intlmacosx.m4.
34330
34331 2007-06-07  Bruno Haible  <bruno@clisp.org>
34332
34333         * modules/localename-tests: New file.
34334         * tests/test-localename.c: New file.
34335
34336         New module 'localename'.
34337         * lib/localename.h: New file.
34338         * lib/localename.c: New file, from GNU gettext.
34339         * m4/localename.m4: New file.
34340         * modules/localename: New file.
34341
34342 2007-06-07  Bruno Haible  <bruno@clisp.org>
34343
34344         Work around the lack of <wchar.h> on some builds of uClibc.
34345         * doc/headers/wchar.texi: Update.
34346         * lib/wchar_.h: Include <wchar.h> only if it exists.
34347         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
34348         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
34349         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
34350         doesn't exist.
34351         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
34352         * modules/mbfile (Depends-on): Add wchar.
34353         * modules/mbiter (Depends-on): Likewise.
34354         * modules/mbuiter (Depends-on): Likewise.
34355         Reported by Simon Josefsson.
34356
34357 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
34358
34359         Work around problem reported by Steven M. Schweda in
34360         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
34361         Tru64 5.1B with the Compaq compiler environment installed declares
34362         an 'isblank' function but does not define it in the C library.
34363         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
34364         * lib/regex_internal.h (isblank): Likewise.
34365         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
34366         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
34367
34368 2007-06-05  Bruno Haible  <bruno@clisp.org>
34369
34370         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
34371         ia64.
34372         * modules/printf-safe: New file.
34373         * modules/fprintf-posix (Depends-on): Add printf-safe.
34374         * modules/printf-posix (Depends-on): Likewise.
34375         * modules/snprintf-posix (Depends-on): Likewise.
34376         * modules/sprintf-posix (Depends-on): Likewise.
34377         * modules/vasnprintf-posix (Depends-on): Likewise.
34378         * modules/vasprintf-posix (Depends-on): Likewise.
34379         * modules/vfprintf-posix (Depends-on): Likewise.
34380         * modules/vprintf-posix (Depends-on): Likewise.
34381         * modules/vsnprintf-posix (Depends-on): Likewise.
34382         * modules/vsprintf-posix (Depends-on): Likewise.
34383         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
34384         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
34385         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
34386         "no" on i386, x86_64, ia64.
34387         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
34388         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34389         on i386, x86_64, ia64.
34390         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
34391         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34392         on i386, x86_64, ia64.
34393         * tests/test-vasnprintf-posix.c: Include float.h.
34394         (LDBL80_WORDS): New macro.
34395         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34396         on i386, x86_64, ia64.
34397         * tests/test-vasprintf-posix.c: Include float.h.
34398         (LDBL80_WORDS): New macro.
34399         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34400         on i386, x86_64, ia64.
34401         * tests/test-snprintf-posix.c: Include float.h.
34402         * tests/test-sprintf-posix.c: Likewise.
34403         * tests/test-vsnprintf-posix.c: Likewise.
34404         * tests/test-vsprintf-posix.c: Likewise.
34405
34406 2007-06-05  Bruno Haible  <bruno@clisp.org>
34407
34408         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
34409         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
34410         non-IEEE numbers on i386, x86_64, ia64.
34411         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
34412         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
34413         * tests/test-isnanl.h: Include float.h.
34414         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
34415
34416 2007-06-05  Bruno Haible  <bruno@clisp.org>
34417
34418         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
34419         also the %a / %A. Handle the %a / %A code before this extra handling.
34420
34421 2007-06-05  Bruno Haible  <bruno@clisp.org>
34422
34423         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
34424         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
34425
34426 2007-06-05  Bruno Haible  <bruno@clisp.org>
34427
34428         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
34429         typo in variable name.
34430
34431 2007-06-05  Eric Blake  <ebb9@byu.net>
34432
34433         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
34434         Reported by Simon Josefsson.
34435
34436 2007-06-04  Bruno Haible  <bruno@clisp.org>
34437
34438         Avoid test failures on some PowerPC platforms.
34439         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
34440         Define differently for PowerPC.
34441         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
34442         Reported by Gary V. Vaughan <gary@gnu.org>.
34443
34444 2007-06-02  Bruno Haible  <bruno@clisp.org>
34445
34446         Fix test-stdint failure on FreeBSD/ia64.
34447         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
34448         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
34449         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
34450         * doc/headers/stdint.texi: Update.
34451
34452 2007-06-01  Bruno Haible  <bruno@clisp.org>
34453
34454         * tests/test-binary-io.c (main): Pass a third argument to open().
34455         Reported by Gary V. Vaughan <gary@gnu.org>.
34456
34457 2007-06-01  Bruno Haible  <bruno@clisp.org>
34458
34459         * doc/functions/frexpl.texi: Update for mingw.
34460
34461 2007-06-01  Bruno Haible  <bruno@clisp.org>
34462
34463         * tests/test-lseek.c (main): Disable test of errno for invalid third
34464         argument.
34465         * doc/functions/lseek.texi: Update.
34466         Reported by Gary V. Vaughan <gary@gnu.org>.
34467
34468 2007-05-28  Bruno Haible  <bruno@clisp.org>
34469
34470         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
34471
34472 2007-05-31  Eric Blake  <ebb9@byu.net>
34473
34474         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
34475         cross compiling.
34476
34477 2007-05-30  Eric Blake  <ebb9@byu.net>
34478         and Bruno Haible  <bruno@clisp.org>
34479
34480         Work around mingw test failures exposed by m4-1.4.9b.
34481         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
34482         * tests/test-unistd.c: Disable uid_t and git_t tests for the
34483         moment.
34484
34485 2007-05-30  Bruno Haible  <bruno@clisp.org>
34486
34487         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
34488         assuming that they are closed. Needed on HP-UX 11.
34489
34490 2007-05-29  Bruno Haible  <bruno@clisp.org>
34491
34492         Fix a problem with #include_next.
34493         * lib/dirent_.h: Split the double-inclusion guard.
34494         * lib/fcntl_.h: Likewise.
34495         * lib/float_.h: Likewise.
34496         * lib/iconv_.h: Likewise.
34497         * lib/inttypes_.h: Likewise.
34498         * lib/locale_.h: Likewise.
34499         * lib/math_.h: Likewise.
34500         * lib/netinet_in_.h: Likewise.
34501         * lib/search_.h: Likewise.
34502         * lib/signal_.h: Likewise.
34503         * lib/stdint_.h: Likewise.
34504         * lib/stdio_.h: Likewise.
34505         * lib/stdlib_.h: Likewise.
34506         * lib/string_.h: Likewise.
34507         * lib/sys_select_.h: Likewise.
34508         * lib/sys_socket_.h: Likewise.
34509         * lib/sys_stat_.h: Likewise.
34510         * lib/sys_time_.h: Likewise.
34511         * lib/sysexits_.h: Likewise.
34512         * lib/time_.h: Likewise.
34513         * lib/unistd_.h: Likewise.
34514         * lib/wchar_.h: Likewise.
34515         * lib/wctype_.h: Likewise.
34516
34517 2007-05-29  Bruno Haible  <bruno@clisp.org>
34518
34519         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
34520         for the moment.
34521
34522 2007-05-29  Bruno Haible  <bruno@clisp.org>
34523
34524         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
34525         invocation.
34526         Reported by Eric Blake.
34527
34528 2007-05-29  Bruno Haible  <bruno@clisp.org>
34529
34530         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
34531         compiling case.
34532
34533 2007-05-29  Eric Blake  <ebb9@byu.net>
34534             Bruno Haible  <bruno@clisp.org>
34535
34536         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
34537         cross compiles.
34538
34539 2007-05-28  Eric Blake  <ebb9@byu.net>
34540
34541         * modules/closein-tests (test_closein_LDADD): Support test on
34542         cygwin with libtool.
34543
34544 2007-05-28  Bruno Haible  <bruno@clisp.org>
34545
34546         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
34547         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
34548         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
34549         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
34550         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
34551         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
34552         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
34553         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
34554         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
34555
34556 2007-05-28  Eric Blake  <ebb9@byu.net>
34557
34558         Unconditionally include <config.h> in unit tests.
34559         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
34560         * tests/test-allocsa.c, tests/test-arcfour.c,
34561         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
34562         tests/test-array_list.c, tests/test-array_oset.c,
34563         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
34564         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
34565         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
34566         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
34567         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
34568         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
34569         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
34570         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
34571         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
34572         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
34573         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
34574         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
34575         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
34576         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
34577         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
34578         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
34579         test-md5.c, test-memmem.c, test-printf-posix.c,
34580         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
34581         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
34582         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
34583         test-strcasestr.c, test-striconv.c, test-striconveh.c,
34584         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
34585         test-vasnprintf-posix2.c, test-vasnprintf.c,
34586         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
34587         test-vfprintf-posix.c, test-vprintf-posix.c,
34588         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
34589         test-xvasprintf.c: Likewise.
34590
34591 2007-05-28  Bruno Haible  <bruno@clisp.org>
34592
34593         * gnulib-tool (func_import): Remember the --with-tests command-line
34594         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
34595         Reported by Eric Blake.
34596
34597 2007-05-28  Bruno Haible  <bruno@clisp.org>
34598
34599         * modules/ftell-tests: New file.
34600         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
34601         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
34602
34603         * lib/ftell.c: New file.
34604         * modules/ftell: New file.
34605         * m4/ftell.m4: New file.
34606         * doc/functions/ftell.texi: Update.
34607         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
34608         REPLACE_FTELL.
34609         * lib/stdio_.h (rpl_ftell): New declaration.
34610         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
34611         REPLACE_FTELL.
34612
34613 2007-05-28  Eric Blake  <ebb9@byu.net>
34614
34615         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
34616
34617 2007-05-28  Bruno Haible  <bruno@clisp.org>
34618
34619         * modules/fseek-tests: New file.
34620         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
34621         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
34622
34623         * lib/fseek.c: New file.
34624         * modules/fseek: New file.
34625         * m4/fseek.m4: New file.
34626         * doc/functions/fseek.texi: Update.
34627         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
34628         REPLACE_FSEEK.
34629         * lib/stdio_.h (rpl_fseek): New declaration.
34630         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
34631         REPLACE_FSEEK.
34632
34633 2007-05-28  Bruno Haible  <bruno@clisp.org>
34634
34635         * lib/stdio_.h (fflush): More comments.
34636
34637 2007-05-28  Bruno Haible  <bruno@clisp.org>
34638
34639         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
34640         runtime test.
34641
34642 2007-05-28  Eric Blake  <ebb9@byu.net>
34643
34644         Improve lseek module.
34645         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
34646         * lib/unistd_.h (lseek): Scale back link warning message.
34647         * tests/test-lseek.c: Beef up test.
34648         * tests/test-lseek.sh: Exercise more facets of lseek.
34649         Reported by Bruno Haible.
34650
34651 2007-05-28  Bruno Haible  <bruno@clisp.org>
34652
34653         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
34654         to define.
34655
34656 2007-05-27  Bruno Haible  <bruno@clisp.org>
34657
34658         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
34659
34660 2007-05-27  Bruno Haible  <bruno@clisp.org>
34661
34662         * modules/openmp: New file.
34663         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
34664         Noah Misch.
34665
34666 2007-05-26  Bruno Haible  <bruno@clisp.org>
34667
34668         * modules/chdir-long (Depends-on): Add fchdir.
34669         * modules/chdir-safer (Depends-on): Likewise.
34670         * modules/fts (Depends-on): Likewise.
34671         * modules/fts-lgpl (Depends-on): Likewise.
34672         * modules/openat (Depends-on): Likewise.
34673         * modules/savewd (Depends-on): Likewise.
34674
34675 2007-05-24  Eric Blake  <ebb9@byu.net>
34676
34677         Fix lseek on mingw.
34678         * modules/lseek: New module.
34679         * m4/lseek.m4: New file.
34680         * lib/lseek.c: New file.
34681         * modules/lseek-tests: New file.
34682         * tests/test-lseek.c: New file.
34683         * tests/test-lseek.sh: New file.
34684         * MODULES.html.sh: Document lseek module.
34685         * modules/fflush (Depends-on): Add lseek, fseeko.
34686         * modules/fseeko (Depends-on): Likewise.
34687         * modules/ftello (Depends-on): Likewise.
34688         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
34689         broken.
34690         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
34691         broken.
34692         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
34693         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
34694         * lib/ftello.c (rpl_ftello): Likewise.
34695         * tests/test-fseeko.c (main): Test this.
34696         * tests/test-fseeko.sh: Likewise.
34697         * tests/test-ftello.c (main): Likewise.
34698         * tests/test-ftello.sh: Likewise.
34699         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
34700         implies replacing fseek.
34701         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
34702         HAVE_FTELLO.
34703         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
34704         * modules/unistd (Makefile.am): Likewise.
34705         * lib/unistd_.h (lseek): Declare a replacement.
34706         * doc/functions/lseek.texi (lseek): Document this fix.
34707         * doc/functions/fseek.texi (fseek): Likewise.
34708         * doc/functions/ftell.texi (ftell): Likewise.
34709
34710 2007-05-24  Bruno Haible  <bruno@clisp.org>
34711
34712         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
34713         in the printed representation of a NaN.
34714         * tests/test-vasprintf-posix.c (test_function): Likewise.
34715         * tests/test-snprintf-posix.h (test_function): Likewise.
34716         * tests/test-sprintf-posix.h (test_function): Likewise.
34717         Reported by Eric Blake.
34718
34719 2007-05-23  Eric Blake  <ebb9@byu.net>
34720
34721         Fix fseeko/ftello on cygwin 1.5.24.
34722         * doc/functions/fseeko.texi (fseeko): Document the fix.
34723         * doc/functions/ftello.texi (ftello): Document the fix.
34724         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
34725         * doc/functions/stdout.text (stdout): New file.
34726         * doc/functions/stderr.text (stderr): New file.
34727         * doc/gnulib.texi (Function Substitutes): Use new files.
34728         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
34729         prior to 1.7.0.
34730         * tests/test-ftello.c (main): Likewise for ftello.
34731         * tests/test-fseeko.sh: New file.
34732         * tests/test-ftello.sh: New file.
34733         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
34734         with seekable stdin.
34735         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
34736         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
34737         (gl_REPLACE_FSEEKO): New macro.
34738         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
34739         * modules/fseeko (Files): Distribute fseeko.c.
34740         * modules/ftello (Files): Distribute ftello.c.
34741         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
34742         mode.
34743         * lib/ftello.c (rpl_ftello): New file.
34744         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
34745         fseeko, ftello.
34746         (gl_STDIN_LARGE_OFFSET): New macro.
34747         * modules/stdio (Makefile.am): Perform the replacement.
34748         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
34749
34750 2007-05-23  Bruno Haible  <bruno@clisp.org>
34751
34752         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
34753         GNULIB_POSIXCHECK is defined.
34754
34755 2007-05-21  Bruno Haible  <bruno@clisp.org>
34756
34757         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
34758         Check also the output for NaN arguments. When cross-compiling, guess
34759         no on IRIX.
34760         * lib/vasnprintf.c: Update comments.
34761         * tests/test-vasnprintf-posix.c (strisnan): New function.
34762         (test_function): Use it.
34763         * tests/test-vasprintf-posix.c (strisnan): New function.
34764         (test_function): Use it.
34765         * tests/test-snprintf-posix.h (strisnan): New function.
34766         (test_function): Use it.
34767         * tests/test-sprintf-posix.h (strisnan): New function.
34768         (test_function): Use it.
34769         Reported by Eric Blake.
34770
34771 2007-05-20  Bruno Haible  <bruno@clisp.org>
34772
34773         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
34774         numbers that fails on BeOS.
34775         * doc/functions/frexpl.texi: Update.
34776
34777 2007-05-20  Jim Meyering  <jim@meyering.net>
34778
34779         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
34780         forced upon us by glibc-2.6.
34781
34782 2007-05-20  Bruno Haible  <bruno@clisp.org>
34783
34784         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
34785         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
34786         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
34787         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
34788         NEED_PRINTF_INFINITE.
34789         (is_infinitel): New function.
34790         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
34791         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
34792         gl_PREREQ_VASNPRINTF_INFINITE.
34793         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
34794         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34795         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
34796         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
34797         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
34798         gl_PREREQ_VASNPRINTF_INFINITE.
34799         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34800         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34801         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34802         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34803         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34804         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34805         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34806         * doc/functions/fprintf.texi: Update.
34807         * doc/functions/printf.texi: Update.
34808         * doc/functions/snprintf.texi: Update.
34809         * doc/functions/sprintf.texi: Update.
34810         * doc/functions/vfprintf.texi: Update.
34811         * doc/functions/vprintf.texi: Update.
34812         * doc/functions/vsnprintf.texi: Update.
34813         * doc/functions/vsprintf.texi: Update.
34814
34815 2007-05-20  Bruno Haible  <bruno@clisp.org>
34816
34817         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
34818         was not found in libc.
34819         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
34820
34821 2007-05-20  Bruno Haible  <bruno@clisp.org>
34822
34823         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
34824         printed as "-nan" instead of "nan".
34825         * tests/test-vasprintf-posix.c (test_function): Likewise.
34826         * tests/test-snprintf-posix.h (test_function): Likewise.
34827         * tests/test-sprintf-posix.h (test_function): Likewise.
34828         Needed for HP-UX 11.
34829
34830 2007-05-20  Jim Meyering  <jim@meyering.net>
34831
34832         Fix buggy test for the fchownat-deref bug.
34833         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
34834         symlink required for the run-test.  Without it, this test would
34835         always declare that fchownat doesn't work, and client code would
34836         unnecessarily use the replacement function with fixed libc.
34837         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
34838         Reported by Greg Schafer.
34839
34840 2007-05-19  Bruno Haible  <bruno@clisp.org>
34841
34842         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
34843         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
34844         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
34845         Needed for IRIX 6.5 and Solaris 2.5.1.
34846
34847 2007-05-19  Bruno Haible  <bruno@clisp.org>
34848
34849         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
34850         (test_function): Skip tests involving -0.0 on platforms where
34851         -0.0 = 0.0.
34852         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
34853         (test_function): Skip tests involving -0.0 on platforms where
34854         -0.0 = 0.0.
34855         * tests/test-snprintf-posix.h (have_minus_zero): New function.
34856         (test_function): Skip tests involving -0.0 on platforms where
34857         -0.0 = 0.0.
34858         * tests/test-sprintf-posix.h (have_minus_zero): New function.
34859         (test_function): Skip tests involving -0.0 on platforms where
34860         -0.0 = 0.0.
34861         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
34862         tests.
34863         * tests/test-printf-posix.h (test_function): Likewise.
34864         * tests/test-printf-posix.output: Remove all -0.0 related results.
34865         Needed for IRIX 6.5.
34866
34867 2007-05-19  Bruno Haible  <bruno@clisp.org>
34868
34869         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
34870         printed as "nan0x7fffffff" instead of "nan".
34871         * tests/test-vasprintf-posix.c (test_function): Likewise.
34872         * tests/test-snprintf-posix.h (test_function): Likewise.
34873         * tests/test-sprintf-posix.h (test_function): Likewise.
34874         * tests/test-fprintf-posix.h (NaN): Remove macro.
34875         (test_function): Remove all NaN related tests.
34876         * tests/test-printf-posix.h (NaN): Remove macro.
34877         (test_function): Remove all NaN related tests.
34878         * tests/test-printf-posix.output: Remove all NaN related results.
34879         Needed for IRIX 6.5.
34880
34881 2007-05-19  Bruno Haible  <bruno@clisp.org>
34882
34883         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
34884         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
34885
34886 2007-05-19  Bruno Haible  <bruno@clisp.org>
34887
34888         * lib/float_.h: New file.
34889         * m4/float_h.m4: New file.
34890         * modules/float: New file.
34891         * modules/isnanl (Dependencies): Add float.
34892         * modules/isnanl-nolibm (Dependencies): Likewise.
34893         * modules/mathl (Dependencies): Likewise.
34894         * modules/printf-frexpl (Dependencies): Likewise.
34895         * modules/signbit (Dependencies): Likewise.
34896         * modules/vasnprintf (Dependencies): Likewise.
34897         * doc/headers/float.texi: Update.
34898
34899 2007-05-19  Jim Meyering  <jim@meyering.net>
34900
34901         * lib/utimens.c (gl_futimens): Rename from futimens,
34902         now that glibc-2.6 declares futimens.
34903         * lib/utimens.h: Likewise.
34904
34905 2007-05-19  Bruno Haible  <bruno@clisp.org>
34906
34907         Avoid test failures on mingw.
34908         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
34909         * tests/test-printf-posix.sh: Likewise.
34910         * tests/test-vfprintf-posix.sh: Likewise.
34911         * tests/test-vprintf-posix.sh: Likewise.
34912
34913 2007-05-19  Bruno Haible  <bruno@clisp.org>
34914
34915         Fix *printf result for NaN, Inf, -0.0 on mingw.
34916         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
34917         * lib/vasnprintf.c: Include math.h and isnan.h.
34918         (is_infinite_or_zero): New function.
34919         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
34920         values in the %f, %F, %e, %E, %g, %G directives.
34921         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
34922         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34923         gl_PRINTF_INFINITE and test its result. Invoke
34924         gl_PREREQ_VASNPRINTF_INFINITE.
34925         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34926         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34927         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34928         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34929         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34930         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34931         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34932         * doc/functions/fprintf.texi: Update.
34933         * doc/functions/printf.texi: Update.
34934         * doc/functions/snprintf.texi: Update.
34935         * doc/functions/sprintf.texi: Update.
34936         * doc/functions/vfprintf.texi: Update.
34937         * doc/functions/vprintf.texi: Update.
34938         * doc/functions/vsnprintf.texi: Update.
34939         * doc/functions/vsprintf.texi: Update.
34940
34941 2007-05-19  Bruno Haible  <bruno@clisp.org>
34942
34943         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
34944         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
34945         Instead of multiplying with 10^k, set extra_zeroes to k.
34946         (scale10_round_long_double): Remove function.
34947
34948 2007-05-18  Bruno Haible  <bruno@clisp.org>
34949
34950         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
34951         introduced on 2007-05-06.
34952
34953 2007-05-18  Bruno Haible  <bruno@clisp.org>
34954
34955         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
34956         %g directives.
34957         * tests/test-vasprintf-posix.c (test_function): Likewise.
34958         * tests/test-snprintf-posix.h (test_function): Likewise.
34959         * tests/test-sprintf-posix.h (test_function): Likewise.
34960
34961 2007-05-18  Bruno Haible  <bruno@clisp.org>
34962
34963         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
34964         (strmatch): New function.
34965         (test_function): Test the %f directive on numbers of various exponents.
34966         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
34967         (strmatch): New function.
34968         (test_function): Test the %f directive on numbers of various exponents.
34969         * tests/test-snprintf-posix.h (strmatch): New function.
34970         (test_function): Test the %f directive on numbers of various exponents.
34971         * tests/test-sprintf-posix.h (strmatch): New function.
34972         (test_function): Test the %f directive on numbers of various exponents.
34973         * tests/test-snprintf-posix.c (SIZEOF): New macro.
34974         * tests/test-sprintf-posix.c (SIZEOF): New macro.
34975         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
34976         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
34977
34978 2007-05-18  Bruno Haible  <bruno@clisp.org>
34979
34980         Add support for 'long double' number output.
34981         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
34982         * lib/vasnprintf.c: Include math.h and float+.h.
34983         (mp_limb_t): New type.
34984         (GMP_LIMB_BITS): New macro.
34985         (mp_twolimb_t): New type.
34986         (GMP_TWOLIMB_BITS): New macro.
34987         (mpn_t): New type.
34988         (multiply, divide, convert_to_decimal, decode_long_double,
34989         scale10_round_long_double, scale10_round_decimal_long_double,
34990         floorlog10l): New functions.
34991         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
34992         for the %f, %F, %e, %E, %g, %G directives.
34993         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
34994         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34995         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
34996         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
34997         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34998         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34999         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35000         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35001         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35002         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35003         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35004         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
35005         * modules/snprintf-posix (Depends-on): Likewise.
35006         * modules/sprintf-posix (Depends-on): Likewise.
35007         * modules/vasnprintf-posix (Depends-on): Likewise.
35008         * modules/vasprintf-posix (Depends-on): Likewise.
35009         * modules/vfprintf-posix (Depends-on): Likewise.
35010         * modules/vsnprintf-posix (Depends-on): Likewise.
35011         * modules/vsprintf-posix (Depends-on): Likewise.
35012         * modules/vasnprintf (Files): Add lib/float+.h.
35013         * doc/functions/fprintf.texi: Update.
35014         * doc/functions/printf.texi: Update.
35015         * doc/functions/snprintf.texi: Update.
35016         * doc/functions/sprintf.texi: Update.
35017         * doc/functions/vfprintf.texi: Update.
35018         * doc/functions/vprintf.texi: Update.
35019         * doc/functions/vsnprintf.texi: Update.
35020         * doc/functions/vsprintf.texi: Update.
35021
35022 2007-05-18  Bruno Haible  <bruno@clisp.org>
35023
35024         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
35025
35026 2007-05-18  Bruno Haible  <bruno@clisp.org>
35027
35028         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
35029         for printing 64-bit integers. Needed for mingw.
35030
35031 2007-05-18  Bruno Haible  <bruno@clisp.org>
35032
35033         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
35034         gl_FUNC_FREXPL_WORKS.
35035         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
35036
35037 2007-05-18  Bruno Haible  <bruno@clisp.org>
35038
35039         * modules/frexpl-nolibm-tests: New file.
35040
35041         * modules/frexpl-nolibm: New file.
35042         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
35043
35044 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
35045
35046         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
35047         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
35048         GCC 4.2, which otherwise issues a lot of warnings.
35049         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
35050         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
35051         Likewise.
35052         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
35053         * modules/iconv_open (iconv.h): Likewise.
35054         * modules/locale (locale.h): Likewise.
35055         * modules/netinet_in (netinet/in.h): Likewise.
35056         * modules/sys_select (sys_select.h): Likewise.
35057         * modules/sys_socket (sys/socket.h): Likewise.
35058         * modules/sys_stat (sys/stat.h): Likewise.
35059         * modules/sysexits (sysexits.h): Likewise.
35060         * modules/unistd (unistd.h): Likewise.
35061
35062 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35063
35064         * modules/closein-tests (Makefile.am): Distribute
35065         `test-closein.sh'.
35066
35067 2007-05-17  Bruno Haible  <bruno@clisp.org>
35068
35069         * tests/test-printf-posix.output: Renamed from
35070         tests/test-fprintf-posix.out.
35071         * modules/fprintf-posix-tests: Update.
35072         * modules/printf-posix-tests: Update.
35073         * modules/vfprintf-posix-tests: Update.
35074         * modules/vprintf-posix-tests: Update.
35075         * tests/test-fprintf-posix.sh: Update.
35076         * tests/test-printf-posix.sh: Update.
35077         * tests/test-vfprintf-posix.sh: Update.
35078         * tests/test-vprintf-posix.sh: Update.
35079         Reported by Ralf Wildenhues.
35080
35081 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
35082
35083         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
35084         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
35085         GCC 4.2, which otherwise issues a lot of warnings.
35086         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
35087         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
35088         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
35089         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
35090         it should no longer be needed.
35091         * lib/string_.h: Likewise.
35092         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
35093         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
35094         * modules/inttypes (inttypes.h): Likewise.
35095         * modules/math (math.h): Likewise.
35096         * modules/search (search.h): Likewise.
35097         * modules/signal (signal.h): Likewise.
35098         * modules/stdint (stdint.h): Likewise.
35099         * modules/stdio (stdio.h): Likewise.
35100         * modules/stdlib (stdlib.h): Likewise.
35101         * modules/string (string.h): Likewise.
35102         * modules/sys_time (sys/time.h): Likewise.
35103         * modules/time (time.h): Likewise.
35104         * modules/wchar (wchar.h): Likewise.
35105         * modules/wctype (wtype.h): Likewise.
35106
35107 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
35108
35109         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
35110
35111 2007-05-13  Bruno Haible  <bruno@clisp.org>
35112
35113         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
35114         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
35115         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
35116         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
35117         (gl_PREREQ_STRTOK_R): Don't require it here.
35118
35119 2007-05-13  Bruno Haible  <bruno@clisp.org>
35120
35121         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
35122         when used in C++ mode.
35123
35124 2007-05-12  Bruno Haible  <bruno@clisp.org>
35125
35126         * lib/linebuffer.h: Tweak doc.
35127         * lib/linebuffer.c: Likewise.
35128
35129 2007-05-12  James Youngman  <jay@gnu.org>
35130
35131         * lib/linebuffer.c (readlinebuffer_delim): New function,
35132         like readlinebuffer, but use a caller-specified delimiter.
35133         (readlinebuffer): Just call readlinebuffer_delim with '\n'
35134         as the delimiter.
35135         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
35136
35137 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
35138
35139         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
35140         * modules/openat (Files): Remove openat-die.c.
35141         (Depends-on): Add openat-die.
35142         * modules/openat-die: New module.
35143
35144 2007-05-06  Bruno Haible  <bruno@clisp.org>
35145
35146         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
35147         Update with info about Cygwin.
35148         * doc/functions/fprintf.texi: Update.
35149         * doc/functions/printf.texi: Update.
35150         * doc/functions/snprintf.texi: Update.
35151         * doc/functions/sprintf.texi: Update.
35152         * doc/functions/vfprintf.texi: Update.
35153         * doc/functions/vprintf.texi: Update.
35154         * doc/functions/vsnprintf.texi: Update.
35155         * doc/functions/vsprintf.texi: Update.
35156         Reported by Eric Blake.
35157
35158 2007-05-06  Bruno Haible  <bruno@clisp.org>
35159
35160         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
35161         padding ourselves for the floating-point directives.
35162         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
35163         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
35164         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35165         gl_PRINTF_FLAG_ZERO and test its result. Invoke
35166         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
35167         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35168         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
35169         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35170         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35171         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35172         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35173         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35174         * tests/test-snprintf-posix.h (test_function): Also check the width
35175         and some flags in the %f directive.
35176         * tests/test-sprintf-posix.h (test_function): Likewise.
35177         * tests/test-vasnprintf-posix.c (test_function): Likewise.
35178         * tests/test-vasprintf-posix.c (test_function): Likewise.
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
35188 2007-05-06  Bruno Haible  <bruno@clisp.org>
35189
35190         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
35191         pass the ' flag character to sprintf or snprintf.
35192         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
35193         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
35194         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35195         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
35196         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
35197         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35198         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
35199         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35200         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35201         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35202         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35203         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35204         * tests/test-snprintf-posix.h (test_function): Also check the grouping
35205         flag.
35206         * tests/test-sprintf-posix.h (test_function): Likewise.
35207         * tests/test-vasnprintf-posix.c (test_function): Likewise.
35208         * tests/test-vasprintf-posix.c (test_function): Likewise.
35209         * doc/functions/fprintf.texi: Update.
35210         * doc/functions/printf.texi: Update.
35211         * doc/functions/snprintf.texi: Update.
35212         * doc/functions/sprintf.texi: Update.
35213         * doc/functions/vfprintf.texi: Update.
35214         * doc/functions/vprintf.texi: Update.
35215         * doc/functions/vsnprintf.texi: Update.
35216         * doc/functions/vsprintf.texi: Update.
35217
35218 2007-05-01  Bruno Haible  <bruno@clisp.org>
35219
35220         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
35221
35222 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
35223
35224         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
35225         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
35226
35227 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
35228
35229         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
35230         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
35231         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
35232
35233 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
35234
35235         * lib/argp-help.c (struct hol_entry): New member `ord'.
35236         (HOL_ENTRY_PTRCMP): Use ord for comparison
35237         (hol_sort): Initialize ord.
35238
35239 2007-05-01  Bruno Haible  <bruno@clisp.org>
35240
35241         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
35242         Reported by Eric Blake.
35243         * doc/gnulib.texi (Function Substitutes): Update.
35244
35245 2007-05-01  Bruno Haible  <bruno@clisp.org>
35246
35247         * doc/functions.texi: Remove file, now redundant through
35248         doc/functions/*.texi.
35249
35250 2007-05-01  Bruno Haible  <bruno@clisp.org>
35251
35252         * modules/argp (Depends-on): Add sleep.
35253
35254 2007-05-01  Bruno Haible  <bruno@clisp.org>
35255
35256         * modules/sleep-tests: New file.
35257         * tests/test-sleep.c: New file.
35258
35259         * modules/sleep: New file.
35260         * lib/sleep.c: New file.
35261         * m4/sleep.m4: New file.
35262         * lib/unistd_.h (sleep): New declaration.
35263         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
35264         HAVE_SLEEP.
35265         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
35266         * doc/functions/sleep.texi: Document the sleep module.
35267
35268 2007-05-01  Bruno Haible  <bruno@clisp.org>
35269
35270         * lib/sigprocmask.h: Remove file.
35271         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
35272         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
35273         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
35274         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
35275         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
35276         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
35277         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
35278         HAVE_SIGSET_T as a shell variable.
35279         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
35280         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
35281         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
35282         (Depends-on): Add signal. Remove verify.
35283         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
35284         (Include): Mention <signal.h> instead of sigprocmask.h.
35285         * NEWS: Mention the change.
35286         * lib/fatal-signal.c: Don't include sigprocmask.h.
35287
35288 2007-05-01  Bruno Haible  <bruno@clisp.org>
35289
35290         * modules/signal: New file.
35291         * lib/signal_.h: New file.
35292         * m4/signal_h.m4: New file.
35293
35294 2007-05-01  Bruno Haible  <bruno@clisp.org>
35295
35296         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
35297         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
35298         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
35299         HAVE_WCTYPE_CTMP_BUG into wctype.h.
35300
35301 2007-05-01  Bruno Haible  <bruno@clisp.org>
35302
35303         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
35304         configure time.
35305         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
35306         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
35307         * modules/sys_stat (Makefile.am): Substitute their values into
35308         sys/stat.h.
35309
35310 2007-05-01  Bruno Haible  <bruno@clisp.org>
35311
35312         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
35313         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
35314         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
35315
35316 2007-05-01  Bruno Haible  <bruno@clisp.org>
35317
35318         * doc/header/assert.texi: Undo last change: don't mention the gnulib
35319         'assert' module here.
35320
35321 2007-05-01  Bruno Haible  <bruno@clisp.org>
35322
35323         * doc/functions/*.texi: New files.
35324         * doc/functions/google-ranking.txt: New file.
35325         * doc/gnulib.texi (Function Substitutes): New chapter.
35326         (ctime, inet_ntoa): Remove sections.
35327         * doc/ctime.texi: Remove file.
35328         * doc/inet_ntoa.texi: Remove file.
35329         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
35330         dependencies.
35331         (%.info): New rule, specifying a --reference-limit.
35332
35333 2007-05-01  Bruno Haible  <bruno@clisp.org>
35334
35335         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
35336
35337 2007-05-01  Bruno Haible  <bruno@clisp.org>
35338
35339         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
35340         the portability of 'mkdir' to mingw systems.
35341
35342 2007-05-01  Bruno Haible  <bruno@clisp.org>
35343
35344         * doc/headers/google-ranking.txt: New file.
35345
35346 2007-04-30  Eric Blake  <ebb9@byu.net>
35347
35348         Prefer fseeko to fseek.
35349         * modules/getpass (Depends-on): Add fseeko.
35350         * lib/getpass.c (getpass): Use fseeko, not fseek.
35351
35352 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
35353
35354         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
35355         assumes the sorting is stable, while most qsort implementations
35356         are not.  Use argument addresses to ensure they never compare as
35357         equal.
35358
35359         * tests/test-argp-2.sh (usage-indent test): Fix output
35360         (func_compare): Restore diff options
35361         * tests/test-argp.c: Restore #include "progname.h"
35362
35363 2007-04-29  Bruno Haible  <bruno@clisp.org>
35364
35365         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
35366         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35367         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
35368         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35369         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
35370         (configure.ac): Define CHECK_SNPRINTF_POSIX.
35371         (TESTS, check_PROGRAMS): Add test-snprintf.
35372         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
35373         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
35374         (TESTS, check_PROGRAMS): Add test-vsnprintf.
35375         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
35376         assertions that fail on HP-UX, OSF/1, or IRIX.
35377         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
35378
35379 2007-04-29  Bruno Haible  <bruno@clisp.org>
35380
35381         * MODULES.html.sh (posix_functions): Remove 'contents'.
35382
35383 2007-04-29  Karl Berry  <karl@gnu.org>
35384
35385         * config/srclist.txt (gendocs_template_min): new entry.
35386
35387 2007-04-29  Bruno Haible  <bruno@clisp.org>
35388
35389         Work around fpurge bug on BSD systems.
35390         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
35391         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
35392         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
35393         fpurge to rpl_fpurge if the system already has this function.
35394         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
35395         the case where the system already has this function. Correct invariants
35396         on BSD systems.
35397         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
35398         BSD systems.
35399
35400 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
35401
35402         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
35403         proposed by Sven Verdoolaege.
35404
35405         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
35406         options.
35407         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
35408         (usage and help tests): Update
35409
35410 2007-04-29  Bruno Haible  <bruno@clisp.org>
35411
35412         * tests/test-fflush.c (main): Use a file of size 17, not 10.
35413         Print more information in case of failure. Disable a test on BeOS.
35414
35415 2007-04-29  Bruno Haible  <bruno@clisp.org>
35416
35417         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
35418         This helps debugging on systems on which no gdb is available.
35419
35420 2007-04-29  Bruno Haible  <bruno@clisp.org>
35421
35422         * lib/freading.h: Improve comments.
35423         * lib/fwriting.h: Likewise.
35424         * tests/test-freading.c (main): Don't check freading immediately after
35425         repositioning. Needed for glibc.
35426
35427 2007-04-29  Bruno Haible  <bruno@clisp.org>
35428
35429         * lib/freading.c (freading): Trivial simplification.
35430
35431 2007-04-28  Bruno Haible  <bruno@clisp.org>
35432
35433         * tests/test-fwriting.c (main): Also test the interaction between
35434         fflush and fwriting.
35435         * modules/fwriting-tests (Depends-on): Add fflush.
35436
35437         * tests/test-freading.c (main): Also test the interaction between
35438         fflush and freading.
35439         * modules/freading-tests (Depends-on): Add fflush.
35440
35441 2007-04-28  Bruno Haible  <bruno@clisp.org>
35442
35443         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
35444         fseeko and ftello.
35445         Suggested by Eric Blake.
35446
35447 2007-04-28  Jim Meyering  <jim@meyering.net>
35448
35449         Avoid false-negative in gl_STDINT_H's C99 conformance test.
35450         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
35451         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
35452
35453 2007-04-27  Eric Blake  <ebb9@byu.net>
35454
35455         * doc/headers/assert.texi (assert.h): Document assert module use.
35456
35457 2007-04-27  Bruno Haible  <bruno@clisp.org>
35458
35459         * doc/headers/*.texi: New files.
35460         * doc/gnulib.texi (Header File Substitutes): New chapter.
35461         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
35462         dependencies.
35463         (standards.info ,standards.html, standards.dvi): Update dependencies.
35464         (mostlyclean, clean): New targets.
35465
35466 2007-04-27  Bruno Haible  <bruno@clisp.org>
35467
35468         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
35469         * modules/sysexits (Files, Makefile.am): Update.
35470
35471         * lib/sys_socket_.h: Renamed from lib/socket_.h.
35472         * modules/sys_socket (Files, Makefile.am): Update.
35473
35474         * lib/sys_stat_.h: Renamed from lib/stat_.h.
35475         * modules/sys_stat (Files, Makefile.am): Update.
35476
35477 2007-04-27  Eric Blake  <ebb9@byu.net>
35478
35479         * lib/freading.h: Improve comments.
35480         * lib/fwriting.h: Likewise.
35481         * lib/fflush.c: Likewise.
35482
35483         Fix closein for mingw.
35484         * modules/closein-tests: Add tests for closein.
35485         * tests/test-closein.c: New file.
35486         * tests/test-closein.sh: Likewise.
35487         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
35488         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
35489
35490 2007-04-27  Bruno Haible  <bruno@clisp.org>
35491
35492         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
35493         version is < 6.
35494         * lib/math_.h [__DECC]: Likewise.
35495         * lib/stdio_.h [__DECC]: Likewise.
35496         * lib/stdlib_.h [__DECC]: Likewise.
35497         * lib/string_.h [__DECC]: Likewise.
35498         * lib/time_.h [__DECC]: Likewise.
35499         * lib/wchar_.h [__DECC]: Likewise.
35500         * lib/wctype_.h [__DECC]: Likewise.
35501
35502 2007-04-27  Bruno Haible  <bruno@clisp.org>
35503
35504         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
35505
35506 2007-04-27  Bruno Haible  <bruno@clisp.org>
35507
35508         * lib/fflush.c: Add comments.
35509         * modules/fpurge-tests (Depends-on): Add fflush.
35510         * modules/freadable-tests (Depends-on): Likewise.
35511         * modules/fwritable-tests (Depends-on): Likewise.
35512
35513 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
35514
35515         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
35516         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
35517         Report by Bruno Haible <bruno@clisp.org>.
35518
35519 2007-04-26  Eric Blake  <ebb9@byu.net>
35520
35521         Fix fflush on mingw.
35522         * modules/fflush (Depends-on): Add freading.
35523         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
35524         but unread data.
35525
35526 2007-04-26  Eric Blake  <ebb9@byu.net>
35527         and Bruno Haible  <bruno@clisp.org>
35528
35529         Implement freading and fwriting.
35530         * lib/freading.c: New file.
35531         * lib/freading.h: Likewise.
35532         * m4/freading.m4: Likewise.
35533         * modules/freading: Likewise.
35534         * modules/freading-tests: Likewise.
35535         * tests/test-freading.c: Likewise.
35536         * lib/fwriting.c: New file.
35537         * lib/fwriting.h: Likewise.
35538         * m4/fwriting.m4: Likewise.
35539         * modules/fwriting: Likewise.
35540         * modules/fwriting-tests: Likewise.
35541         * tests/test-fwriting.c: Likewise.
35542         * MODULES.html.sh (File stream based Input/Output): Mention them.
35543
35544 2007-04-26  Bruno Haible  <bruno@clisp.org>
35545
35546         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
35547         'long' when we assume it.
35548         Suggested by Eric Blake.
35549
35550 2007-04-26  Bruno Haible  <bruno@clisp.org>
35551
35552         Ensure fseeko, ftello are declared on glibc systems.
35553         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
35554         * modules/fseeko (configure.ac-early): Likewise.
35555         * modules/ftello (configure.ac-early): Likewise.
35556         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
35557         AC_FUNC_FSEEKO for this.
35558         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
35559         (gl_CHECK_FSEEKO): Remove macro.
35560
35561 2007-04-26  Bruno Haible  <bruno@clisp.org>
35562
35563         * tests/test-fflush.c (main): Also check the ftell result after
35564         fflush and fseek/fseeko.
35565         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
35566         file descriptor position cache in the stream.
35567         * lib/fseeko.c (rpl_fseeko): Likewise.
35568
35569 2007-04-26  Bruno Haible  <bruno@clisp.org>
35570
35571         * modules/fflush-tests (Depends-on): Add fseeko.
35572
35573 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
35574             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35575
35576         * lib/argz_.h: ensure error_t definition is obtained in same
35577         mechanism system argz.h would have.
35578         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
35579         argz facilities are known bad.  Err on the side of caution if
35580         cross-compiling.
35581
35582 2007-04-25  Eric Blake  <ebb9@byu.net>
35583
35584         * lib/fpurge.c (includes): Use stdlib.h for free.
35585         * tests/test-fflush.c (main): Also test fflush-fseeko.
35586
35587 2007-04-25  Bruno Haible  <bruno@clisp.org>
35588
35589         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
35590         * lib/fseeko.c: New file.
35591         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
35592         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
35593         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
35594         gl_FUNC_FSEEKO.
35595         (gl_FUNC_FSEEKO): Invoke it.
35596         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
35597         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
35598         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
35599
35600 2007-04-25  Bruno Haible  <bruno@clisp.org>
35601
35602         * modules/fflush (Depends-on): Add ftello.
35603
35604 2007-04-25  Bruno Haible  <bruno@clisp.org>
35605
35606         * modules/ftello-tests: New file.
35607         * tests/test-ftello.c: New file.
35608
35609         * modules/ftello: New file.
35610         * m4/ftello.m4: New file.
35611         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
35612         HAVE_FTELLO.
35613         * lib/stdio_.h (ftello): New declaration.
35614         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
35615         HAVE_FTELLO.
35616
35617 2007-04-25  Bruno Haible  <bruno@clisp.org>
35618
35619         * modules/fseeko-tests: New file.
35620         * tests/test-fseeko.c: New file.
35621
35622         * modules/fseeko: New file.
35623         * m4/fseeko.m4: New file.
35624         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
35625         HAVE_FSEEKO.
35626         * lib/stdio_.h (fseeko): New declaration.
35627         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
35628         HAVE_FSEEKO.
35629
35630 2007-04-25  Bruno Haible  <bruno@clisp.org>
35631
35632         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
35633
35634 2007-04-25  Bruno Haible  <bruno@clisp.org>
35635
35636         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
35637         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
35638         * tests/test-unistd.c: Likewise.
35639         * tests/test-fcntl.c: Likewise.
35640
35641 2007-04-23  Eric Blake  <ebb9@byu.net>
35642
35643         * lib/fflush.c: Fix missing include.
35644         Reported by Bruno Haible.
35645
35646 2007-04-23  Bruno Haible  <bruno@clisp.org>
35647
35648         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
35649         Reported by Eric Blake.
35650
35651 2007-04-23  Bruno Haible  <bruno@clisp.org>
35652
35653         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
35654
35655 2007-04-23  Bruno Haible  <bruno@clisp.org>
35656
35657         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
35658
35659 2007-04-23  Bruno Haible  <bruno@clisp.org>
35660
35661         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
35662         Needed on HP-UX 11.
35663
35664 2007-04-16  Eric Blake  <ebb9@byu.net>
35665
35666         Make fflush rely on fpurge.
35667         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
35668         open coding all variants.
35669         * modules/fflush (Depends-on): Add fpurge and unistd.
35670         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
35671         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
35672
35673         Fix --with-tests compilation on cygwin.
35674         * modules/argmatch-tests (Makefile.am): List gnulib library first
35675         in LDADD.
35676         * modules/argp-tests (Makefile.am): Likewise.
35677         * modules/array-list-tests (Makefile.am): Likewise.
35678         * modules/array-oset-tests (Makefile.am): Likewise.
35679         * modules/avltree-list-tests (Makefile.am): Likewise.
35680         * modules/avltree-oset-tests (Makefile.am): Likewise.
35681         * modules/avltreehash-list-tests (Makefile.am): Likewise.
35682         * modules/carray-list-tests (Makefile.am): Likewise.
35683         * modules/dirname-tests (Makefile.am): Likewise.
35684         * modules/frexp-tests (Makefile.am): Likewise.
35685         * modules/isnanl-tests (Makefile.am): Likewise.
35686         * modules/linked-list-tests (Makefile.am): Likewise.
35687         * modules/linkedhash-list-tests (Makefile.am): Likewise.
35688         * modules/lock-tests (Makefile.am): Likewise.
35689         * modules/rbtree-list-tests (Makefile.am): Likewise.
35690         * modules/rbtree-oset-tests (Makefile.am): Likewise.
35691         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
35692         * modules/tls-tests (Makefile.am): Likewise.
35693         * modules/tsearch-tests (Makefile.am): Likewise.
35694         * modules/xvasprintf-tests (Makefile.am): Likewise.
35695
35696         Fix fpurge for cygwin.
35697         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
35698         value.
35699         * modules/fpurge-tests (Depends-on): Clean up trash.
35700
35701 2007-04-16  Simon Josefsson  <simon@josefsson.org>
35702
35703         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
35704
35705         * m4/autobuild.m4: Re-indent.
35706
35707 2007-04-13  Bruno Haible  <bruno@clisp.org>
35708
35709         * modules/fpurge-tests: New file.
35710         * tests/test-fpurge.c: New file.
35711
35712         * modules/fpurge: New file.
35713         * lib/fpurge.h: New file.
35714         * lib/fpurge.c: New file.
35715         * m4/fpurge.m4: New file.
35716
35717 2007-04-13  Bruno Haible  <bruno@clisp.org>
35718
35719         * modules/fbufmode-tests: New file.
35720         * tests/test-fbufmode.c: New file.
35721
35722         * modules/fbufmode: New file.
35723         * lib/fbufmode.h: New file.
35724         * lib/fbufmode.c: New file.
35725         * m4/fbufmode.m4: New file.
35726
35727 2007-04-13  Bruno Haible  <bruno@clisp.org>
35728
35729         * modules/fwritable-tests: New file.
35730         * tests/test-fwritable.c: New file.
35731
35732         * modules/fwritable: New file.
35733         * lib/fwritable.h: New file.
35734         * lib/fwritable.c: New file.
35735         * m4/fwritable.m4: New file.
35736
35737 2007-04-13  Bruno Haible  <bruno@clisp.org>
35738
35739         * modules/freadable-tests: New file.
35740         * tests/test-freadable.c: New file.
35741
35742         * modules/freadable: New file.
35743         * lib/freadable.h: New file.
35744         * lib/freadable.c: New file.
35745         * m4/freadable.m4: New file.
35746
35747 2007-04-13  Bruno Haible  <bruno@clisp.org>
35748
35749         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
35750         MOSTLYCLEANFILES.
35751
35752 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
35753
35754         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
35755         gzip bootstrap.conf to avoid dragging in i18n machinery.
35756         (gnulib_tool_option): Use it.
35757
35758 2007-04-13  Bruno Haible  <bruno@clisp.org>
35759
35760         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
35761         %F directives.
35762         * tests/test-vasprintf-posix.c (test_function): Likewise.
35763         * tests/test-snprintf-posix.h (test_function): Likewise.
35764         * tests/test-sprintf-posix.h (test_function): Likewise.
35765         * tests/test-fprintf-posix.h (test_function): Likewise.
35766         * tests/test-printf-posix.h (test_function): Likewise.
35767         * tests/test-fprintf-posix.out: Likewise.
35768
35769 2007-04-13  Bruno Haible  <bruno@clisp.org>
35770
35771         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
35772         * modules/tls-tests (configure.ac): Likewise.
35773         Reported by Arto C. Nirkko <anirkko@insel.ch>.
35774
35775 2007-04-13  Bruno Haible  <bruno@clisp.org>
35776
35777         * lib/tls.c (glthread_tls_get): Fix return type.
35778         Patch by Arto C. Nirkko <anirkko@insel.ch>.
35779
35780 2007-04-12  Eric Blake  <ebb9@byu.net>
35781
35782         * modules/gettime (Depends-on): Remove gettime.
35783         Reported by Dmitry V. Levin.
35784
35785 2007-04-12  Bruno Haible  <bruno@clisp.org>
35786
35787         * modules/fflush (Include): Mention <stdio.h>.
35788         * modules/strtoimax (Include): Mention <inttypes.h>.
35789         * modules/strtoumax (Include): Likewise.
35790
35791 2007-04-12  Eric Blake  <ebb9@byu.net>
35792
35793         * .cvsignore: New file.
35794         * .gitignore: Likewise.
35795
35796 2007-04-12  Bruno Haible  <bruno@clisp.org>
35797
35798         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
35799         not before, since $(LDADD) often contains libgnu.a.
35800         * modules/striconv-tests (test_striconv_LDADD): Likewise.
35801         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
35802         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
35803         Needed on Cygwin.
35804
35805 2007-04-12  Eric Blake  <ebb9@byu.net>
35806
35807         Work around glibc's failure to flush stdin on fclose.
35808         * lib/closein.c (close_stdin): Flush stdin before closing.
35809
35810         Work around glibc's failure to reset seekable stdin on exit.
35811         * modules/closein: New module.
35812         * lib/closein.c: New file.
35813         * lib/closein.h: Likewise.
35814         * m4/closein.m4: Likewise.
35815         * MODULES.html.sh (File stream based Input/Output): Document it.
35816
35817 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35818
35819         * gnulib-tool: Rename generated 'autobuild' script to
35820         'do-autobuild' in --create-megatestdir output.
35821
35822         * doc/gnulib.texi (Build robot for gnulib): Fix.
35823
35824 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35825
35826         * modules/sysexits (Depends-on): Add absolute-header.
35827
35828 2007-04-12  Eric Blake  <ebb9@byu.net>
35829
35830         No need to preserve errno on success.
35831         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
35832         Reported by Bruno Haible.
35833
35834 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35835
35836         * MODULES.html.sh (Support for maintaining and releasing
35837         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
35838
35839 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35840
35841         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
35842
35843 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35844
35845         * modules/autobuild: New module.
35846
35847         * m4/autobuild.m4: New file.
35848
35849 2007-04-11  Bruno Haible  <bruno@clisp.org>
35850
35851         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
35852         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
35853         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
35854         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
35855         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35856         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35857         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35858         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35859         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35860         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35861         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
35862         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35863         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35864         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
35865         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35866         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35867         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
35868         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35869         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35870         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
35871         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35872         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35873         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
35874         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35875         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35876         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
35877         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35878         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35879         Reported by Eric Blake.
35880
35881 2007-04-11  Bruno Haible  <bruno@clisp.org>
35882
35883         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
35884
35885 2007-04-10  Bruno Haible  <bruno@clisp.org>
35886
35887         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
35888         for NaN and Infinity. Needed on FreeBSD 6.1.
35889         * tests/test-vasnprintf-posix.c (test_function): Undo last change
35890         regarding results for "%010a" of Infinity and NaN.
35891         * tests/test-vasprintf-posix.c (test_function): Likewise.
35892         * tests/test-snprintf-posix.h (test_function): Likewise.
35893         * tests/test-sprintf-posix.h (test_function): Likewise.
35894         * tests/test-fprintf-posix.h (test_function): Likewise.
35895         * tests/test-printf-posix.h (test_function): Likewise.
35896         * tests/test-fprintf-posix.out: Likewise.
35897
35898 2007-04-10  Bruno Haible  <bruno@clisp.org>
35899
35900         * modules/locale-tests: New file.
35901         * tests/test-locale.c: New file.
35902
35903         * modules/locale: New file.
35904         * lib/locale_.h: New file.
35905         * m4/locale_h.m4: New file.
35906
35907 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
35908             Bruno Haible  <bruno@clisp.org>
35909
35910         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
35911         be determined, test for availability of the copysignf, copysign,
35912         copysignl functions.
35913         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
35914         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
35915         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
35916
35917 2007-04-09  Eric Blake  <ebb9@byu.net>
35918
35919         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
35920         * modules/stdio (Makefile.am): Support fflush.
35921         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35922         * modules/fflush: New file.
35923         * lib/fflush.c: Likewise.
35924         * m4/fflush.m4: Likewise.
35925         * modules/fflush-tests: New test.
35926         * tests/test-fflush.c: Likewise.
35927         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
35928
35929 2007-04-06  Bruno Haible  <bruno@clisp.org>
35930
35931         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
35932         (VASNPRINTF): Use signbit for faster determination whether to print a
35933         minus sign.
35934         * modules/vasnprintf (Files): Remove lib/float+.h.
35935         * modules/fprintf-posix (Depends-on): Add signbit.
35936         * modules/snprintf-posix (Depends-on): Likewise.
35937         * modules/sprintf-posix (Depends-on): Likewise.
35938         * modules/vasnprintf-posix (Depends-on): Likewise.
35939         * modules/vasprintf-posix (Depends-on): Likewise.
35940         * modules/vfprintf-posix (Depends-on): Likewise.
35941         * modules/vsnprintf-posix (Depends-on): Likewise.
35942         * modules/vsprintf-posix (Depends-on): Likewise.
35943
35944 2007-04-06  Bruno Haible  <bruno@clisp.org>
35945
35946         * tests/test-frexp.c (main): Test also the sign bit of zero results.
35947         * tests/test-frexpl.c (main): Likewise.
35948         * tests/test-ldexpl.c (main): Likewise.
35949         * modules/frexp-tests (Depends-on): Add signbit.
35950         * modules/frexpl-tests (Depdends-on): Likewise.
35951         * modules/ldexpl-tests (Depdends-on): Likewise.
35952
35953 2007-04-06  Bruno Haible  <bruno@clisp.org>
35954
35955         * modules/signbit-tests: New file.
35956         * tests/test-signbit.c: New file.
35957
35958         * modules/signbit: New file.
35959         * lib/signbitf.c: New file.
35960         * lib/signbitd.c: New file.
35961         * lib/signbitl.c: New file.
35962         * m4/signbit.m4: New file.
35963         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
35964         (signbit): New macro.
35965         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
35966         REPLACE_SIGNBIT.
35967         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
35968         REPLACE_FREXPL into math.h.
35969
35970 2007-04-06  Bruno Haible  <bruno@clisp.org>
35971
35972         * modules/isnanf-nolibm-tests: New file.
35973         * tests/test-isnanf.c: New file.
35974
35975         * modules/isnanf-nolibm: New file.
35976         * lib/isnanf.h: New file.
35977         * lib/isnanf.c: New file.
35978         * lib/isnan.c: Consider the USE_FLOAT macro.
35979         * m4/isnanf.m4: New file.
35980
35981 2007-04-06  Bruno Haible  <bruno@clisp.org>
35982
35983         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
35984         (Link): New section.
35985
35986         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
35987
35988 2007-04-06  Bruno Haible  <bruno@clisp.org>
35989
35990         Assume the 'long double' type.
35991         * m4/longdouble.m4: Remove file.
35992         * config/srclist.txt: Don't mention longdouble.m4.
35993         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
35994         * lib/float+.h: Likewise.
35995         * lib/frexp.c: Likewise.
35996         * lib/printf-args.h: Likewise.
35997         * lib/printf-args.c: Likewise.
35998         * lib/printf-frexp.c: Likewise.
35999         * lib/printf-parse.c: Likewise.
36000         * lib/vasnprintf.c: Likewise.
36001         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
36002         * m4/intl.m4: Likewise.
36003         * m4/isnanl.m4: Likewise.
36004         * m4/printf.m4: Likewise.
36005         * m4/printf-frexpl.m4: Likewise.
36006         * m4/vasnprintf.m4: Likewise.
36007         * modules/allocsa (Files): Remove m4/longdouble.m4.
36008         * modules/gettext (Files): Likewise.
36009         * modules/relocatable-prog-wrapper (Files): Likewise.
36010         * modules/vasnprintf (Files): Likewise.
36011         * modules/isnanl (Files): Likewise.
36012         (Include): Simplify.
36013         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
36014         (Include): Simplify.
36015         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
36016         (Include): Simplify.
36017         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
36018         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36019         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
36020         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36021         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
36022         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36023         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
36024         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36025         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
36026         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36027         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
36028         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36029         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
36030         * tests/test-isnanl.c: Likewise.
36031         * tests/test-snprintf-posix.h: Likewise.
36032         * tests/test-sprintf-posix.h: Likewise.
36033         * tests/test-vasnprintf-posix.c: Likewise.
36034         * tests/test-vasnprintf-posix2.c: Likewise.
36035         * tests/test-vasprintf-posix.c: Likewise.
36036
36037 2007-04-06  Bruno Haible  <bruno@clisp.org>
36038
36039         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
36040         * lib/math_.h [__DECC]: Include the overridden include file through
36041         #include_next, outside the double-inclusion guard.
36042         * lib/stdio_.h [__DECC]: Likewise.
36043         * lib/stdlib_.h [__DECC]: Likewise.
36044         * lib/string_.h [__DECC]: Likewise.
36045         * lib/time_.h [__DECC]: Likewise.
36046         * lib/wchar_.h [__DECC]: Likewise.
36047         * lib/wctype_.h [__DECC]: Likewise.
36048         * lib/inttypes_.h [__DECC]: Likewise.
36049         Reported by Albert Chin <china@thewrittenword.com> in
36050         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
36051
36052 2007-04-04  Eric Blake  <ebb9@byu.net>
36053
36054         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
36055         1.5.x.
36056
36057 2007-04-04  Bruno Haible  <bruno@clisp.org>
36058
36059         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
36060         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
36061
36062 2007-04-04  Bruno Haible  <bruno@clisp.org>
36063
36064         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
36065         results for "%010a" of Infinity and NaN.
36066         * tests/test-vasprintf-posix.c (test_function): Likewise.
36067         * tests/test-snprintf-posix.h (test_function): Likewise.
36068         * tests/test-sprintf-posix.h (test_function): Likewise.
36069         * tests/test-fprintf-posix.h (test_function): Remove these tests.
36070         * tests/test-printf-posix.h (test_function): Likewise.
36071         * tests/test-fprintf-posix.out: Update.
36072         Needed for FreeBSD 6.1.
36073
36074 2007-04-04  Bruno Haible  <bruno@clisp.org>
36075
36076         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
36077         directly used by the gnulib modules nor by gnulib-tool.
36078
36079 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
36080
36081         * DEPENDENCIES: Give overall description of version dependency
36082         desirability.  Use more-typical names for apps.
36083         Add shell, coreutils, diffutils, grep, tar, gzip.
36084
36085 2007-04-04  Simon Josefsson  <simon@josefsson.org>
36086
36087         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
36088
36089 2007-04-04  Karl Berry  <karl@gnu.org>
36090
36091         * MODULES.html.sh (func_module): missing '.
36092
36093 2007-04-03  Bruno Haible  <bruno@clisp.org>
36094
36095         * modules/argmatch-tests (Makefile.am): New variable
36096         test_argmatch_LDADD.
36097         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
36098         * modules/array-list-tests (Makefile.am): New variable
36099         test_array_list_LDADD.
36100         * modules/array-oset-tests (Makefile.am): New variable
36101         test_array_oset_LDADD.
36102         * modules/avltree-list-tests (Makefile.am): New variable
36103         test_avltree_list_LDADD.
36104         * modules/avltree-oset-tests (Makefile.am): New variable
36105         test_avltree_oset_LDADD.
36106         * modules/avltreehash-list-tests (Makefile.am): New variable
36107         test_avltreehash_list_LDADD.
36108         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
36109         test_canonicalize_lgpl_LDADD.
36110         * modules/carray-list-tests (Makefile.am): New variable
36111         test_carray_list_LDADD.
36112         * modules/dirname-tests (Makefile.am): New variable
36113         test_dirname_LDADD.
36114         * modules/linked-list-tests (Makefile.am): New variable
36115         test_linked_list_LDADD.
36116         * modules/linkedhash-list-tests (Makefile.am): New variable
36117         test_linkedhash_list_LDADD.
36118         * modules/rbtree-list-tests (Makefile.am): New variable
36119         test_rbtree_list_LDADD.
36120         * modules/rbtree-oset-tests (Makefile.am): New variable
36121         test_rbtree_oset_LDADD.
36122         * modules/rbtreehash-list-tests (Makefile.am): New variable
36123         test_rbtreehash_list_LDADD.
36124         * modules/xvasprintf-tests (Makefile.am): New variable
36125         test_xvasprintf_LDADD.
36126         Reported by Eric Blake.
36127
36128 2007-04-03  Eric Blake  <ebb9@byu.net>
36129
36130         * DEPENDENCIES: Weaken m4 requirements.
36131
36132 2007-04-03  Bruno Haible  <bruno@clisp.org>
36133
36134         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
36135         * modules/isnanl-tests (configure.ac): Likewise.
36136
36137 2007-04-03  Ben Pfaff  <blp@gnu.org>
36138
36139         * modules/iconv_open: Add $(srcdir)/ to source directory
36140         references in Makefile fragments that call gperf, to fix VPATH
36141         builds.
36142
36143 2007-04-03  Bruno Haible  <bruno@clisp.org>
36144
36145         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
36146         * lib/ldexpl.c: Undo last change.
36147
36148 2007-04-03  Bruno Haible  <bruno@clisp.org>
36149
36150         * modules/printf-frexpl (Depends-on): Undo last change.
36151         (Files): Add m4/ldexpl.m4.
36152
36153 2007-04-03  Bruno Haible  <bruno@clisp.org>
36154
36155         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
36156         * modules/isnanl (Link): New section.
36157
36158         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
36159         * modules/frexp (Link): New section.
36160
36161         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
36162         * modules/frexpl (Link): New section.
36163
36164         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
36165         * modules/ldexpl (Link): New section.
36166
36167 2007-04-03  Bruno Haible  <bruno@clisp.org>
36168
36169         * modules/TEMPLATE-EXTENDED: New file.
36170         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
36171
36172 2007-04-03  Bruno Haible  <bruno@clisp.org>
36173
36174         * DEPENDENCIES: New file.
36175         Suggested by Simon Josefsson.
36176
36177 2007-04-03  Bruno Haible  <bruno@clisp.org>
36178
36179         * doc/gnulib.texi: Escape @.
36180
36181 2007-04-03  James Youngman  <jay@gnu.org>
36182         and Paul Eggert  <eggert@cs.ucla.edu>
36183
36184         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
36185         birthtime on all systems that have birthtime, not just those which
36186         use st_birthtimensec rather than st_birthtim.  Putting zero in
36187         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
36188         that the birth time is not available for files on an NFS mount.
36189
36190 2007-04-03  Simon Josefsson  <simon@josefsson.org>
36191
36192         * modules/memxor: Move back from crypto/, suggested by Bruno.
36193         * modules/crypto/hmac-sha1: Fix memxor dependency.
36194
36195         * modules/crypto/gc: Moved from ../.
36196
36197 2007-04-02  Eric Blake  <ebb9@byu.net>
36198
36199         * lib/ldexpl.c (includes): Avoid libm.
36200
36201         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
36202
36203 2007-04-02  Bruno Haible  <bruno@clisp.org>
36204
36205         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
36206         on IRIX.
36207
36208 2007-04-02  Bruno Haible  <bruno@clisp.org>
36209
36210         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
36211         x86 or x86_64 platforms running MacOS X.
36212         Reported by Ryan Schmidt <@ryandesign.com>.
36213
36214 2007-04-02  Bruno Haible  <bruno@clisp.org>
36215
36216         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
36217         i386.
36218
36219 2007-04-01  Simon Josefsson  <simon@josefsson.org>
36220
36221         * modules/crypto/arcfour: Moved from ../.
36222         * modules/crypto/arcfour-tests: Moved from ../.
36223         * modules/crypto/arctwo: Moved from ../.
36224         * modules/crypto/arctwo-tests: Moved from ../.
36225         * modules/crypto/des: Moved from ../.
36226         * modules/crypto/des-tests: Moved from ../.
36227         * modules/crypto/gc-arcfour: Moved from ../.
36228         * modules/crypto/gc-arcfour-tests: Moved from ../.
36229         * modules/crypto/gc-arctwo: Moved from ../.
36230         * modules/crypto/gc-arctwo-tests: Moved from ../.
36231         * modules/crypto/gc-des: Moved from ../.
36232         * modules/crypto/gc-des-tests: Moved from ../.
36233         * modules/crypto/gc-hmac-md5: Moved from ../.
36234         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
36235         * modules/crypto/gc-hmac-sha1: Moved from ../.
36236         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
36237         * modules/crypto/gc-md2: Moved from ../.
36238         * modules/crypto/gc-md2-tests: Moved from ../.
36239         * modules/crypto/gc-md4: Moved from ../.
36240         * modules/crypto/gc-md4-tests: Moved from ../.
36241         * modules/crypto/gc-md5: Moved from ../.
36242         * modules/crypto/gc-md5-tests: Moved from ../.
36243         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
36244         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
36245         * modules/crypto/gc-random: Moved from ../.
36246         * modules/crypto/gc-rijndael: Moved from ../.
36247         * modules/crypto/gc-rijndael-tests: Moved from ../.
36248         * modules/crypto/gc-sha1: Moved from ../.
36249         * modules/crypto/gc-sha1-tests: Moved from ../.
36250         * modules/crypto/gc-tests: Moved from ../.
36251         * modules/crypto/hmac-md5: Moved from ../.
36252         * modules/crypto/hmac-md5-tests: Moved from ../.
36253         * modules/crypto/hmac-sha1: Moved from ../.
36254         * modules/crypto/hmac-sha1-tests: Moved from ../.
36255         * modules/crypto/md2: Moved from ../.
36256         * modules/crypto/md2-tests: Moved from ../.
36257         * modules/crypto/md4: Moved from ../.
36258         * modules/crypto/md4-tests: Moved from ../.
36259         * modules/crypto/md5: Moved from ../.
36260         * modules/crypto/md5-tests: Moved from ../.
36261         * modules/crypto/memxor: Moved from ../.
36262         * modules/crypto/rijndael: Moved from ../.
36263         * modules/crypto/rijndael-tests: Moved from ../.
36264         * modules/crypto/sha1: Moved from ../.
36265
36266 2007-03-30  James Youngman  <jay@gnu.org>
36267
36268         * tests/test-stat-time.c (prepare_test): use chmod() rather than
36269         rename() to change the ctime of a file (because ctime is unaffected
36270         by rename on jfs2 on AIX 5.1).
36271         (main): Start by doing cleanup, in case a previous run failed leaving
36272         test files behind.
36273
36274 2007-03-31  Bruno Haible  <bruno@clisp.org>
36275
36276         Support old proprietary implementations of iconv.
36277         * modules/iconv_open: New file.
36278         * lib/iconv_.h: New file.
36279         * m4/iconv_h.m4: New file.
36280         * lib/iconv_open.c: New file.
36281         * lib/iconv_open-aix.gperf: New file.
36282         * lib/iconv_open-hpux.gperf: New file.
36283         * lib/iconv_open-irix.gperf: New file.
36284         * lib/iconv_open-osf.gperf: New file.
36285         * m4/iconv_open.m4: New file.
36286         * modules/linebreak (Depends-on): Add iconv_open.
36287         * modules/striconv (Depends-on): Likewise.
36288         * modules/striconveh (Depends-on): Likewise.
36289         * modules/unicodeio (Depends-on): Likewise.
36290         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
36291         (iconv_t)(-1).
36292         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
36293         conversion if cd is (iconv_t)(-1).
36294         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
36295         is not possible.
36296
36297 2007-03-31  Bruno Haible  <bruno@clisp.org>
36298
36299         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
36300         work on Solaris either. Protect also second use of "autodetect_jp".
36301
36302 2007-03-31  Bruno Haible  <bruno@clisp.org>
36303
36304         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
36305         the function is not present.
36306
36307 2007-03-31  Bruno Haible  <bruno@clisp.org>
36308
36309         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
36310         the function is not present.
36311
36312 2007-03-31  Bruno Haible  <bruno@clisp.org>
36313
36314         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
36315         a bug in HP-UX iconv_open().
36316
36317 2007-03-31  Bruno Haible  <bruno@clisp.org>
36318
36319         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
36320         (Mathematics <math.h>): New section, add fpieee.
36321         (Input/output <stdio.h>): Add fseterr.
36322         (Mathematics <math.h>): New section, add printf-frexp.
36323         (Container data structures): Add sublist.
36324         (Core language properties): Add fpucw, inline.
36325         (Functions for greatest-width integer types <inttypes.h>): Add
36326         imaxabs, imaxdiv, inttypes.
36327         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
36328         isnanl-nolibm, ldexp.
36329         (Mathematics <math.h>): New section, add printf-frexpl.
36330         (Support for systems lacking POSIX:2001): Add fprintf-posix,
36331         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
36332         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
36333         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
36334         (Unicode string functions): Add unistr/u*-mbtoucr.
36335         (Java): Add javacomp-script, javaexec-script.
36336         (C#): Add csharpcomp-script, csharpexec-script.
36337         (Support for building libraries and executables): Add havelib,
36338         relocatable-*.
36339         (Support for maintaining and releasing projects): Renamed from
36340         'Support for maintaining and release projects'. Add announce-gen.
36341
36342 2007-03-31  Bruno Haible  <bruno@clisp.org>
36343
36344         * README: Talk primarily about git.
36345         (git and CVS): Renamed from CVS.
36346         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
36347         gnulib is available through git.
36348         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
36349
36350 2007-03-30  Bruno Haible  <bruno@clisp.org>
36351
36352         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
36353         * lib/poll_.h: Likewise.
36354         * lib/stat_.h: Likewise.
36355         * lib/sys_time_.h: Likewise.
36356         * lib/sysexit_.h: Likewise.
36357         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
36358         * lib/stdbool_.h: Likewise.
36359         * lib/byteswap_.h: Add double-inclusion guard.
36360
36361 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
36362
36363         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
36364
36365 2007-03-30  Karl Berry  <karl@gnu.org>
36366
36367         * config/srclist-update: double space after USA in the license
36368         substitution, since that's how it's usually (?) written.
36369
36370 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
36371
36372         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
36373         reported by Bruno Haible.
36374
36375 2007-03-29  Bruno Haible  <bruno@clisp.org>
36376
36377         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
36378         a bug in AIX iconv().
36379
36380 2007-03-29  Bruno Haible  <bruno@clisp.org>
36381
36382         * modules/ldexpl-tests: New file.
36383         * tests/test-ldexpl.c: New file.
36384
36385 2007-03-29  Bruno Haible  <bruno@clisp.org>
36386
36387         * lib/ldexpl.c: Include fpucw.h.
36388         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
36389         multiplication.
36390         * modules/ldexpl (Depends-on): Add fpucw.
36391
36392 2007-03-29  Bruno Haible  <bruno@clisp.org>
36393
36394         * modules/ldexpl: New file.
36395         * m4/ldexpl.m4: New file.
36396         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
36397         set.
36398         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
36399         REPLACE_LDEXPL.
36400         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
36401         REPLACE_LDEXPL.
36402         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
36403         gl_FUNC_LDEXPL_WORKS.
36404         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
36405         * modules/mathl (Files): Remove lib/ldexpl.c.
36406         (Depends-on): Add ldexpl.
36407
36408 2007-03-29  Bruno Haible  <bruno@clisp.org>
36409
36410         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
36411
36412 2007-03-29  Bruno Haible  <bruno@clisp.org>
36413
36414         * tests/test-striconveh.c (main): Don't assume that a direct conversion
36415         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
36416         and possibly also HP-UX.
36417         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
36418         work on AIX, IRIX, HP-UX, OSF/1.
36419         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
36420         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
36421         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
36422         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
36423         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
36424         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
36425
36426 2007-03-29  Bruno Haible  <bruno@clisp.org>
36427
36428         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
36429
36430 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
36431
36432         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
36433         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
36434
36435 2007-03-29  Eric Blake  <ebb9@byu.net>
36436
36437         * lib/acl-internal.h: Remove redundant include.
36438         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
36439         Cygwin when a file is locked.
36440
36441 2007-03-29  Bruno Haible  <bruno@clisp.org>
36442
36443         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
36444         file.
36445         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
36446
36447 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
36448
36449         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
36450         try to remove a parent directory if the child couldn't be removed
36451         (except for the first rmdir, which could fail because the child
36452         doesn't exist).  Problem reported by Jeff Blaine in
36453         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
36454
36455 2007-03-28  Bruno Haible  <bruno@clisp.org>
36456
36457         * lib/striconveh.c (utf8conv_carefully): New function.
36458         (mem_cd_iconveh_internal): Invoke it.
36459
36460 2007-03-28  Bruno Haible  <bruno@clisp.org>
36461
36462         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
36463         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
36464         input.
36465         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
36466         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
36467         unistr/u8-uctomb.
36468
36469 2007-03-28  Bruno Haible  <bruno@clisp.org>
36470
36471         * modules/unistr/u8-mbtoucr: New file.
36472         * lib/unistr/u8-mbtoucr.c: New file.
36473         * modules/unistr/u16-mbtoucr: New file.
36474         * lib/unistr/u16-mbtoucr.c: New file.
36475         * modules/unistr/u16-mbtoucr: New file.
36476         * lib/unistr/u16-mbtoucr.c: New file.
36477         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
36478
36479 2007-03-27  Simon Josefsson  <simon@josefsson.org>
36480             Bruno Haible  <bruno@clisp.org>
36481
36482         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
36483         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
36484         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
36485
36486         * m4/stdio_h.m4: Add stubs for vasprintf too.
36487
36488         * modules/stdio: Support vasprintf in sed command.
36489
36490         * modules/vasprintf: Depend on stdio for prototypes.  Remove
36491         vasprintf.h.  Add stdio module indicator.
36492
36493         * lib/stdio_.h: Declare asprintf and vasprintf, based on
36494         vasprintf.h.
36495
36496         * lib/vasprintf.h: File removed.
36497
36498         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
36499         * lib/vasprintf.c: Ditto.
36500         * lib/xvasprintf.c: Ditto.
36501         * tests/test-vasprintf-posix.c: Ditto.
36502         * tests/test-vasprintf.c: Ditto.
36503
36504 2007-03-27  Bruno Haible  <bruno@clisp.org>
36505
36506         Make vasnprintf multithread-safe.
36507         * lib/vasnprintf.c (decimal_point_char): New function.
36508         (VASNPRINTF): Use it.
36509         Suggested by Simon Josefsson.
36510
36511 2007-03-27  Eric Blake  <ebb9@byu.net>
36512
36513         Support sub-second birthtime on cygwin.
36514         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
36515         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
36516         (get_stat_birthtime): Also work with st_birthtim.
36517
36518 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
36519
36520         * lib/stat-time.h (USE_BIRTHTIME): Remove.
36521         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
36522         (get_stat_birthtime_ns): Do not try to use "spare" fields.
36523         (get_stat_birthtime_ns): Simplify compile-time tests.
36524         (get_stat_birthtime): Change the API to look like
36525         get_stat_mtime etc., except return a negative tv_nsec on error.
36526         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
36527         Don't check for "spare" fields.
36528         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
36529         or for struct stat.st_birthtime, as these tests aren't used.
36530         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
36531
36532 2007-03-27  Bruno Haible  <bruno@clisp.org>
36533
36534         * lib/stat-time.h: Include <sys/stat.h>.
36535
36536 2007-03-27  James Youngman  <jay@gnu.org>
36537
36538         * lib/stat-time.h (get_stat_birthtime): New function for
36539           retrieving st_birthtime as provided by UFS2 (hence *BSD).
36540         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
36541           and its variants.
36542         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
36543         * modules/stat-time-test: New file.
36544         * tests/test-stat-time.c: New test, devised by Bruno Haible.
36545
36546 2007-03-26  Bruno Haible  <bruno@clisp.org>
36547
36548         Better support of signalling NaNs.
36549         * lib/atanl.c: Include isnanl.h.
36550         (atanl): Perform test for NaN at the beginning of the function and
36551         through a call to isnanl.
36552         * lib/cosl.c: Include isnanl.h.
36553         (cosl): Perform test for NaN at the beginning of the function and
36554         through a call to isnanl.
36555         * lib/ldexpl.c: Include isnanl.h.
36556         (ldexpl): Perform test for NaN through a call to isnanl.
36557         * lib/logl.c: Include isnanl.h.
36558         (logl): Perform test for NaN at the beginning of the function and
36559         through a call to isnanl.
36560         * lib/sinl.c: Include isnanl.h.
36561         (sinl): Perform test for NaN at the beginning of the function and
36562         through a call to isnanl.
36563         * lib/sqrtl.c: Include isnanl.h.
36564         (sqrtl): Perform test for NaN at the beginning of the function and
36565         through a call to isnanl.
36566         * lib/tanl.c: Include isnanl.h.
36567         (tanl): Perform test for NaN at the beginning of the function and
36568         through a call to isnanl.
36569         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
36570         * modules/mathl (Depends-on): Add isnanl.
36571
36572 2007-03-26  Eric Blake  <ebb9@byu.net>
36573
36574         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
36575         regression in logic sense of previous patch.
36576
36577 2007-03-26  Bruno Haible  <bruno@clisp.org>
36578
36579         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
36580         unportable shell command "if ! ...".
36581         Reported by Ralf Wildenhues.
36582
36583 2007-03-25  Bruno Haible  <bruno@clisp.org>
36584
36585         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
36586         <sysexits.h> file, and only add EX_CONFIG.
36587         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
36588         absolute file name and whether it is sufficient. Substitute also
36589         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
36590         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
36591         ABSOLUTE_SYSEXITS_H into sysexits.h.
36592
36593 2007-03-25  Bruno Haible  <bruno@clisp.org>
36594
36595         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
36596         hints is NULL.
36597
36598 2007-03-25  Bruno Haible  <bruno@clisp.org>
36599
36600         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
36601         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
36602
36603 2007-03-25  Bruno Haible  <bruno@clisp.org>
36604
36605         * lib/vasnprintf.c: Include langinfo.h.
36606         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
36607         multithread-safe.
36608         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
36609         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
36610         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36611         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36612         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36613         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36614         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36615         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
36616         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36617         Reported by Simon Josefsson.
36618
36619 2007-03-25  Bruno Haible  <bruno@clisp.org>
36620
36621         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
36622         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
36623         * modules/vasnprintf (Depends-on): Add stdint.
36624
36625 2007-03-25  Bruno Haible  <bruno@clisp.org>
36626
36627         * modules/fpieee: New file.
36628         * m4/fpieee.m4: New file.
36629         * modules/isnan-nolibm (Depends-on): Add fpieee.
36630         * modules/isnanl-nolibm (Depends-on): Add fpieee.
36631         * modules/isnanl (Depends-on): Add fpieee.
36632
36633 2007-03-25  Bruno Haible  <bruno@clisp.org>
36634
36635         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
36636
36637 2007-03-25  Bruno Haible  <bruno@clisp.org>
36638
36639         Avoid test failures on IRIX 6.5.
36640         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
36641         (main): Use it.
36642         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
36643         macros.
36644         (main): Use them.
36645
36646 2007-03-25  Bruno Haible  <bruno@clisp.org>
36647
36648         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
36649         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
36650         exists but doesn't work.
36651         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
36652         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
36653         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
36654         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
36655
36656 2007-03-25  Bruno Haible  <bruno@clisp.org>
36657
36658         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
36659         returns inf. Needed on IRIX 6.5.
36660
36661 2007-03-25  Bruno Haible  <bruno@clisp.org>
36662
36663         * tests/test-frexpl.c: Include isnanl-nolibm.h.
36664         (main): Use isnanl instead of x != x idiom.
36665         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
36666
36667         * tests/test-frexp.c: Include isnan.h.
36668         (main): Use isnan instead of x != x idiom.
36669         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
36670
36671 2007-03-25  Bruno Haible  <bruno@clisp.org>
36672
36673         * tests/test-frexp.c (NaN): New function/macro.
36674         (main): Use it instead of 0.0 / 0.0.
36675         * tests/test-isnan.c (NaN): New function/macro.
36676         (main): Use it instead of 0.0 / 0.0.
36677         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
36678         (test_function): Use it instead of 0.0 / 0.0.
36679         * tests/test-vasprintf-posix.c (NaN): New function/macro.
36680         (test_function): Use it instead of 0.0 / 0.0.
36681         * tests/test-snprintf-posix.h (NaN): New function/macro.
36682         (test_function): Use it instead of 0.0 / 0.0.
36683         * tests/test-sprintf-posix.h (NaN): New function/macro.
36684         (test_function): Use it instead of 0.0 / 0.0.
36685         * tests/test-fprintf-posix.h (NaN): New function/macro.
36686         (test_function): Use it instead of 0.0 / 0.0.
36687         * tests/test-printf-posix.h (NaN): New function/macro.
36688         (test_function): Use it instead of 0.0 / 0.0.
36689
36690         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
36691
36692 2007-03-25  Bruno Haible  <bruno@clisp.org>
36693
36694         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
36695
36696 2007-03-25  Bruno Haible  <bruno@clisp.org>
36697
36698         * lib/regexec.c (merge_state_with_log): Make static.
36699
36700 2007-03-25  Bruno Haible  <bruno@clisp.org>
36701
36702         * lib/trigl.c (kernel_rem_pio2): Make static.
36703
36704 2007-03-25  Bruno Haible  <bruno@clisp.org>
36705
36706         * lib/sincosl.c (sincosl_table): Make static.
36707
36708 2007-03-25  Bruno Haible  <bruno@clisp.org>
36709
36710         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
36711         if the compiler does not support C99.
36712
36713 2007-03-25  Bruno Haible  <bruno@clisp.org>
36714
36715         * modules/time (Makefile.am): Ensure all rule action lines start with a
36716         tab.
36717
36718 2007-03-24  Bruno Haible  <bruno@clisp.org>
36719
36720         * modules/tsearch-tests: New file.
36721         * tests/test-tsearch.sh: New file.
36722         * tests/test-tsearch.c: New file, mostly copied from glibc.
36723
36724         * modules/search-tests: New file.
36725         * tests/test-search.c: New file.
36726
36727         * modules/search: New file.
36728         * lib/search_.h: New file, incorporating lib/tsearch.h.
36729         * m4/search_h.m4: New file.
36730         * lib/tsearch.h: Remove file.
36731         * lib/tsearch.c: Include search.h instead of tsearch.h.
36732         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
36733         HAVE_TSEARCH.
36734         * modules/tsearch (Files): Remove lib/tsearch.h.
36735         (Depends-on): Add search.
36736         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
36737         (Include): Change tsearch.h into search.h.
36738
36739 2007-03-24  Bruno Haible  <bruno@clisp.org>
36740
36741         * modules/fpucw: New file.
36742         * lib/fpucw.h: New file.
36743         * lib/frexp.c: Include fpucw.h.
36744         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
36745         (FUNC): Use them.
36746         * lib/printf-frexp.c: Include fpucw.h.
36747         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
36748         (FUNC): Use them.
36749         * lib/vasnprintf.c: Include fpucw.h.
36750         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
36751         'long double' calculations.
36752         * tests/test-frexpl.c: Include fpucw.h.
36753         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
36754         * tests/test-printf-frexpl.c: Include fpucw.h.
36755         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
36756         * modules/frexpl (Depends-on): Add fpucw.
36757         * modules/printf-frexpl (Depends-on): Likewise.
36758         * modules/fprintf-posix (Depends-on): Likewise.
36759         * modules/snprintf-posix (Depends-on): Likewise.
36760         * modules/sprintf-posix (Depends-on): Likewise.
36761         * modules/vasnprintf-posix (Depends-on): Likewise.
36762         * modules/vasprintf-posix (Depends-on): Likewise.
36763         * modules/vfprintf-posix (Depends-on): Likewise.
36764         * modules/vsnprintf-posix (Depends-on): Likewise.
36765         * modules/vsprintf-posix (Depends-on): Likewise.
36766         * modules/frexpl-tests (Depends-on): Likewise.
36767         * modules/printf-frexpl-tests (Depends-on): Likewise.
36768
36769 2007-03-24  Bruno Haible  <bruno@clisp.org>
36770
36771         * lib/float+.h: New file.
36772         * lib/isnan.c: Include float+.h.
36773         (SIZE): New macro.
36774         (FUNC): Compare only SIZE bytes of the value.
36775         * lib/vasnprintf.c: Include float+.h.
36776         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
36777         SIZEOF_LDBL or SIZEOF_DBL bytes.
36778         * modules/isnan-nolibm (Files): Add lib/float+.h.
36779         * modules/isnanl-nolibm (Files): Add lib/float+.h.
36780         * modules/isnanl (Files): Add lib/float+.h.
36781         * modules/vasnprintf (Files): Add lib/float+.h.
36782
36783 2007-03-24  Bruno Haible  <bruno@clisp.org>
36784
36785         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
36786         include isnanl-nolibm.h.
36787
36788 2007-03-24  Bruno Haible  <bruno@clisp.org>
36789
36790         * tests/test-read-file.c (main): Don't produce spurious output for
36791         expected situations. Make the test fail if it encountered unexpected
36792         results.
36793
36794 2007-03-24  Bruno Haible  <bruno@clisp.org>
36795
36796         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
36797         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
36798
36799 2007-03-24  Bruno Haible  <bruno@clisp.org>
36800
36801         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
36802
36803 2007-03-24  Bruno Haible  <bruno@clisp.org>
36804
36805         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
36806         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
36807
36808         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
36809         * modules/utf8-ucs4: Turn into a symbolic link to module
36810         unistr/u8-mbtouc.
36811
36812         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
36813         utf8-ucs4-unsafe.
36814         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
36815         unistr/u8-mbtouc-unsafe.
36816
36817         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
36818         * modules/utf16-ucs4: Turn into a symbolic link to module
36819         unistr/u16-mbtouc.
36820
36821         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
36822         utf16-ucs4-unsafe.
36823         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
36824         unistr/u16-mbtouc-unsafe.
36825
36826         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
36827         * modules/ucs4-utf8: Turn into a symbolic link to module
36828         unistr/u8-ubtomb.
36829
36830         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
36831         * modules/ucs4-utf16: Turn into a symbolic link to module
36832         unistr/u16-ubtomb.
36833
36834 2007-03-24  Bruno Haible  <bruno@clisp.org>
36835
36836         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
36837         Enable the function only if HAVE_INLINE.
36838         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
36839         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
36840         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
36841         Enable the function only if HAVE_INLINE.
36842         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
36843         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
36844         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
36845         Enable the function only if HAVE_INLINE.
36846         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
36847         Enable the function only if HAVE_INLINE.
36848         * modules/utf8-ucs4: Update.
36849         * modules/utf8-ucs4-unsafe: Update.
36850         * modules/utf16-ucs4: Update.
36851         * modules/utf16-ucs4-unsafe: Update.
36852         * modules/ucs4-utf8: Update.
36853         * modules/ucs4-utf16: Update.
36854
36855 2007-03-24  Bruno Haible  <bruno@clisp.org>
36856
36857         * lib/utf8-ucs4.h: Remove file.
36858         * lib/utf8-ucs4-unsafe.h: Remove file.
36859         * lib/utf16-ucs4.h: Remove file.
36860         * lib/utf16-ucs4-unsafe.h: Remove file.
36861         * lib/ucs4-utf8.h: Remove file.
36862         * lib/ucs4-utf16.h: Remove file.
36863         * lib/unistr.h: Include their previous contents.
36864         * m4/utf-ucs4.m4: Remove file.
36865         * m4/ucs4-utf.m4: Remove file.
36866         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
36867         (Depends-on): Add unistr/base.
36868         (configure.ac): Remove gl_UTF_UCS4.
36869         (Makefile.am): Update.
36870         (Include): Change to unistr.h.
36871         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
36872         (Depends-on): Add unistr/base.
36873         (configure.ac): Remove gl_UTF_UCS4.
36874         (Makefile.am): Update.
36875         (Include): Change to unistr.h.
36876         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
36877         (Depends-on): Add unistr/base.
36878         (configure.ac): Remove gl_UTF_UCS4.
36879         (Makefile.am): Update.
36880         (Include): Change to unistr.h.
36881         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
36882         (Depends-on): Add unistr/base.
36883         (configure.ac): Remove gl_UTF_UCS4.
36884         (Makefile.am): Update.
36885         (Include): Change to unistr.h.
36886         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
36887         (Depends-on): Add unistr/base.
36888         (configure.ac): Remove gl_UCS4_UTF.
36889         (Makefile.am): Update.
36890         (Include): Change to unistr.h.
36891         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
36892         (Depends-on): Add unistr/base.
36893         (configure.ac): Remove gl_UCS4_UTF.
36894         (Makefile.am): Update.
36895         (Include): Change to unistr.h.
36896         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
36897         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
36898         utf8-ucs4-unsafe.h.
36899         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
36900         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
36901         utf16-ucs4-unsafe.h.
36902         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
36903         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
36904         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
36905         * lib/unistr/u8-strchr.c: Likewise.
36906         * lib/unistr/u8-strrchr.c: Likewise.
36907         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
36908         * lib/unistr/u16-strchr.c: Likewise.
36909         * lib/unistr/u16-strrchr.c: Likewise.
36910         * lib/striconveh.c: Update.
36911         * lib/linebreak.c: Update.
36912
36913 2007-03-24  Bruno Haible  <bruno@clisp.org>
36914
36915         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
36916         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
36917
36918 2007-03-22  Bruno Haible  <bruno@clisp.org>
36919
36920         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
36921
36922 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
36923
36924         * MODULES.html.sh (File system functions): New module write-any-file.
36925         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
36926         * m4/write-any-file.m4: New files.
36927
36928 2007-03-23  Eric Blake  <ebb9@byu.net>
36929
36930         * gnulib-tool: Rearrange space-tab sequences, since some editors
36931         like to eat them.
36932
36933 2007-03-23  Eric Blake  <ebb9@byu.net>
36934
36935         * lib/version-etc.c (version_etc_va): Update license wording to
36936         be more concise.  Recommended by Richard Stallman.
36937
36938 2007-03-22  Bruno Haible  <bruno@clisp.org>
36939
36940         * lib/poll.c (MSG_PEEK): New fallback definition.
36941
36942 2007-03-22  Bruno Haible  <bruno@clisp.org>
36943
36944         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
36945         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
36946         (main): Update.
36947         Fixes a compilation error on BeOS.
36948
36949 2007-03-22  Bruno Haible  <bruno@clisp.org>
36950
36951         * modules/frexpl-tests: New file.
36952         * tests/test-frexpl.c: New file.
36953
36954         * modules/frexpl: New file.
36955         * m4/frexpl.m4: New file.
36956         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
36957         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
36958         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
36959         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
36960         (Depends-on): Add frexpl. Remove isnanl-nolibm.
36961         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
36962
36963 2007-03-22  Bruno Haible  <bruno@clisp.org>
36964
36965         * lib/frexpl.c: Share code with lib/frexp.c.
36966         * modules/mathl (Files): Add lib/frexp.c.
36967         (Depends-on): Add isnanl-nolibm.
36968
36969 2007-03-22  Bruno Haible  <bruno@clisp.org>
36970
36971         * modules/printf-frexp (Files): Add m4/frexp.m4.
36972         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
36973         only if the found frexp function actually works.
36974
36975 2007-03-22  Bruno Haible  <bruno@clisp.org>
36976
36977         * lib/frexp.c: Remove older implementation that uses divisions.
36978
36979 2007-03-21  Bruno Haible  <bruno@clisp.org>
36980
36981         * modules/frexp-tests: New file.
36982         * tests/test-frexp.c: New file.
36983
36984         * modules/frexp: New file.
36985         * lib/frexp.c: New file.
36986         * m4/frexp.m4: New file.
36987         * lib/math_.h (frexp): New declaration.
36988         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
36989         REPLACE_FREXP.
36990         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
36991
36992 2007-03-21  Bruno Haible  <bruno@clisp.org>
36993
36994         * modules/isnanl-tests: New file.
36995         * tests/test-isnanl.c: New file.
36996
36997         * modules/isnanl: New file.
36998         * lib/isnanl.h: New file.
36999         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
37000         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
37001         gl_FUNC_ISNANL_WORKS.
37002         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
37003         New macros.
37004
37005 2007-03-21  Bruno Haible  <bruno@clisp.org>
37006
37007         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
37008         lib/isnanl.h.
37009         (Include): Update.
37010         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
37011         * lib/vasnprintf.c: Update.
37012         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
37013         tests/test-isnanl.h, remove tests/test-isnanl.c.
37014         (Makefile.am): Update.
37015         * tests/test-isnanl-nolibm.c: New file.
37016         * tests/test-isnanl.h: New file.
37017         * tests/test-isnanl.c: Remove file.
37018
37019 2007-03-21  Jim Meyering  <jim@meyering.net>
37020
37021         When trying to open ".", treat ESTALE like EACCES.
37022         * lib/savewd.c (savewd_save): Resort to forking not just upon
37023         failure with EACCES, but also when errno is ESTALE.
37024
37025 2007-03-20  Bruno Haible  <bruno@clisp.org>
37026
37027         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
37028         Needed on AIX 5.1. Reported by Matthew Woehlke.
37029
37030 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
37031
37032         Suggestions by Bruno Haible:
37033         * lib/acl-internal.h: Include "gettext.h" rather than rolling
37034         our own.
37035         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
37036         * modules/acl (Depends-on): Add gettext.
37037
37038 2007-03-19  Bruno Haible  <bruno@clisp.org>
37039
37040         * modules/iconvme: Remove file.
37041         * lib/iconvme.h: Remove file.
37042         * lib/iconvme.c: Remove file.
37043         * m4/iconvme.m4: Remove file.
37044
37045 2007-03-19  Bruno Haible  <bruno@clisp.org>
37046
37047         * doc/relocatable-maint.texi: Break long shell script line.
37048         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
37049
37050 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
37051
37052         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
37053         handle file_has_acl.
37054         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
37055         * lib/acl.c: Move header inclusions and related macro defns into
37056         lib/acl-internal.h.
37057         (S_ISLNK): Remove defn, since that's now done for us.
37058         (file_has_acl): Move to lib/file-has-acl.c.
37059         Call acl_trivial if available.  This is the crucial part of the fix.
37060         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
37061         shared within the library.  Rewrite a bit, partly to make it compatible
37062         with the GNU coding style.
37063         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
37064         Remove unnecessary double-quotes.
37065         Don't test for acl_to_text; the build will catch that.
37066         Replace acl_entries if it doesn't exist and it is needed.
37067         Check for -lsec and acl_trivial (as used on Solaris 10).
37068         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
37069         lib/file-has-acl.c.
37070         (Depends-on): Add sys_stat, for S_ISLNK.
37071
37072 2007-03-19  Ben Pfaff  <blp@gnu.org>
37073
37074         * doc/gnulib.texi: Fix typos.
37075         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
37076
37077 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
37078
37079         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
37080         If size is zero here, buf must be zero.
37081
37082 2007-03-19  Simon Josefsson  <simon@josefsson.org>
37083
37084         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
37085         <bruno@clisp.org>.
37086
37087 2007-03-18  Bruno Haible  <bruno@clisp.org>
37088
37089         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
37090         Suggested by Eric Blake.
37091
37092 2007-03-18  Ben Pfaff  <blp@gnu.org>
37093
37094         * doc/relocatable.texi: Recommend using as prefix a directory
37095         that does not exist and will never be created.  Based on
37096         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
37097         and others.
37098
37099 2007-03-17  Bruno Haible  <bruno@clisp.org>
37100
37101         * lib/fchownat.c: Include lchown.h.
37102
37103 2007-03-17  Bruno Haible  <bruno@clisp.org>
37104
37105         Fix endless loop when the given allocated size was > INT_MAX.
37106         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
37107         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
37108         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
37109         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
37110         * lib/sprintf.c (sprintf): Likewise.
37111
37112 2007-03-17  Bruno Haible  <bruno@clisp.org>
37113
37114         * tests/test-argp-2.sh (func_compare): Output a context diff.
37115
37116 2007-03-17  Bruno Haible  <bruno@clisp.org>
37117
37118         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
37119         locale's decimal-point character.
37120
37121 2007-03-17  Bruno Haible  <bruno@clisp.org>
37122
37123         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
37124         before comparing it. Needed because on some platforms (e.g. x86) a
37125         'long double' occupies less bytes than sizeof (long double).
37126
37127 2007-03-17  Bruno Haible  <bruno@clisp.org>
37128
37129         * tests/test-crc.c (main): Make printf statements 64-bit clean.
37130         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
37131         * tests/test-getaddrinfo.c (simple): Likewise.
37132         * tests/test-read-file.c (main): Likewise.
37133
37134 2007-03-17  Bruno Haible  <bruno@clisp.org>
37135
37136         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
37137
37138 2007-03-17  Bruno Haible  <bruno@clisp.org>
37139
37140         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
37141         unused variable.
37142
37143 2007-03-17  Bruno Haible  <bruno@clisp.org>
37144
37145         * tests/test-c-strcasecmp.c: Include c-strcase.h.
37146         * tests/test-c-strncasecmp.c: Likewise.
37147
37148 2007-03-17  Bruno Haible  <bruno@clisp.org>
37149
37150         * modules/stdlib (Depends-on): Add unistd.
37151         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
37152         Needed for MacOS X 10.3.
37153
37154 2007-03-17  Bruno Haible  <bruno@clisp.org>
37155
37156         * lib/unistr/u-strdup.h: Include <stdlib.h>.
37157
37158 2007-03-17  Bruno Haible  <bruno@clisp.org>
37159
37160         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
37161
37162 2007-03-17  Bruno Haible  <bruno@clisp.org>
37163
37164         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
37165         to reflect files copied from gnulib (with or without modifications).
37166         Suggested by Jim Meyering.
37167
37168 2007-03-17  Eric Blake  <ebb9@byu.net>
37169
37170         * NEWS: Document stdlib change from 2007-02-18.
37171
37172 2007-03-17  Jim Meyering  <jim@meyering.net>
37173
37174         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
37175         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
37176         someone uses a name containing shell meta-characters.
37177         Reported by Alfred M. Szmidt.
37178
37179         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
37180
37181 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
37182
37183         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
37184         and copy gettext configuration files only if configure.ac contains
37185         a use of AM_GNU_GETTEXT_VERSION.
37186
37187 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
37188
37189         * build-aux/bootstrap (gnulib_name): New variable.
37190         (gnulib_tool_options): Use it.
37191
37192 2007-03-13  Simon Josefsson  <simon@josefsson.org>
37193
37194         * tests/test-des.c: Use new namespace.
37195
37196 2007-03-15  Bruno Haible  <bruno@clisp.org>
37197
37198         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
37199         Reported by James Youngman <jay@gnu.org>.
37200
37201 2007-03-15  Bruno Haible  <bruno@clisp.org>
37202
37203         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
37204         declared prototype. Needed with cc on OSF/1 5.1.
37205
37206 2007-03-15  Bruno Haible  <bruno@clisp.org>
37207
37208         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
37209         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
37210         (struct gl_list_implementation): Add dispose_fn argument to the
37211         'create_empty', 'create' methods.
37212         (struct gl_list_impl_base): Add field 'dispose_fn'.
37213         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
37214         argument.
37215         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
37216         dispose_fn argument.
37217         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
37218         dispose_fn on the dropped values.
37219         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
37220         dispose_fn argument.
37221         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
37222         dropped values.
37223         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
37224         (gl_tree_remove_node): Call dispose_fn on the dropped value.
37225         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
37226         (gl_tree_remove_node): Call dispose_fn on the dropped value.
37227         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
37228         argument.
37229         (gl_tree_list_free): Call dispose_fn on the dropped values.
37230         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
37231         the dropped values.
37232         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
37233         Add dispose_fn argument.
37234         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
37235         Call dispose_fn on the dropped values.
37236         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
37237         Add dispose_fn argument.
37238         (gl_sublist_create): Initialize the 'dispose_fn' field.
37239         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
37240         * tests/test-array_list.c (main): Update.
37241         * tests/test-carray_list.c (main): Update.
37242         * tests/test-avltree_list.c (main): Update.
37243         * tests/test-rbtree_list.c (main): Update.
37244         * tests/test-avltreehash_list.c (main): Update.
37245         * tests/test-rbtreehash_list.c (main): Update.
37246         * tests/test-linked_list.c (main): Update.
37247         * tests/test-linkedhash_list.c (main): Update.
37248         * tests/test-array_oset.c (main): Update.
37249
37250 2007-03-15  Bruno Haible  <bruno@clisp.org>
37251
37252         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
37253         (gl_oset_create_empty): Add dispose_fn argument.
37254         (struct gl_oset_implementation): Add dispose_fn argument to
37255         'create_empty' method.
37256         (struct gl_oset_impl_base): Add dispose_fn field.
37257         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
37258         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
37259         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
37260         values.
37261         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
37262         (gl_tree_oset_free): Call dispose_fn on the dropped values.
37263         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
37264         dropped value.
37265         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
37266         dropped value.
37267         * tests/test-array_oset.c (main): Update.
37268         * tests/test-avltree_oset.c (main): Update.
37269         * tests/test-rbtree_oset.c (main): Update.
37270         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
37271
37272 2007-03-13  Bruno Haible  <bruno@clisp.org>
37273
37274         * tests/test-stdbool.c (i): Update after last patch.
37275
37276 2007-03-12  Bruno Haible  <bruno@clisp.org>
37277
37278         * lib/quotearg.c: Include <wctype.h> early, before the definition of
37279         the iswprint macro. Needed on Solaris 2.5.1.
37280
37281 2007-03-12  Bruno Haible  <bruno@clisp.org>
37282
37283         * tests/test-printf-frexp.c (main): Declare x as volatile.
37284
37285 2007-03-12  Simon Josefsson  <simon@josefsson.org>
37286
37287         * doc/gnulib.texi (Build robot for gnulib): New section.
37288
37289 2007-03-12  Jim Meyering  <jim@meyering.net>
37290
37291         * build-aux/bootstrap: New file.
37292         * build-aux/bootstrap.conf: New file, from coreutils.
37293
37294 2007-03-11  Bruno Haible  <bruno@clisp.org>
37295
37296         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
37297
37298 2007-03-12  Simon Josefsson  <simon@josefsson.org>
37299
37300         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
37301         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
37302         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
37303
37304 2007-03-11  Bruno Haible  <bruno@clisp.org>
37305
37306         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
37307         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
37308
37309 2007-03-11  Bruno Haible  <bruno@clisp.org>
37310
37311         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
37312         formula. Needed for SunPRO C 5.0.
37313
37314 2007-03-11  Bruno Haible  <bruno@clisp.org>
37315
37316         * modules/long-options (Depends-on): Add getopt.
37317
37318 2007-03-11  Bruno Haible  <bruno@clisp.org>
37319
37320         * modules/modechange (Depends-on): Add stdbool.
37321
37322 2007-03-11  Bruno Haible  <bruno@clisp.org>
37323
37324         * modules/i-ring (Depends-on): Add stdbool.
37325
37326 2007-03-11  Bruno Haible  <bruno@clisp.org>
37327
37328         * modules/gc-des (Depends-on): Add stdbool.
37329
37330 2007-03-11  Bruno Haible  <bruno@clisp.org>
37331
37332         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
37333
37334 2007-03-11  Bruno Haible  <bruno@clisp.org>
37335
37336         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
37337
37338 2007-03-11  Bruno Haible  <bruno@clisp.org>
37339
37340         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
37341
37342 2007-03-11  Bruno Haible  <bruno@clisp.org>
37343
37344         * lib/vasnprintf.c (sprintf): Undefine.
37345
37346 2007-03-11  Bruno Haible  <bruno@clisp.org>
37347
37348         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
37349         initializers in SunPRO C and Compaq C compilers.
37350
37351 2007-03-11  Bruno Haible  <bruno@clisp.org>
37352
37353         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
37354         decrementing code ANSI C compliant.
37355
37356 2007-03-11  Bruno Haible  <bruno@clisp.org>
37357
37358         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
37359         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
37360
37361 2007-03-11  Bruno Haible  <bruno@clisp.org>
37362
37363         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
37364         <stdbool.h> substitute doesn't pass.
37365
37366 2007-03-11  Bruno Haible  <bruno@clisp.org>
37367
37368         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
37369
37370 2007-03-11  Bruno Haible  <bruno@clisp.org>
37371
37372         * gnulib-tool (func_create_megatestdir): Create also an autobuild
37373         script, for submission to autobuild.josefsson.org.
37374
37375 2007-03-10  Bruno Haible  <bruno@clisp.org>
37376
37377         * modules/canonicalize-lgpl-tests: New file.
37378         * tests/test-canonicalize-lgpl.sh: New file.
37379         * tests/test-canonicalize-lgpl.c: New file.
37380
37381         * modules/c-strcase-tests: New file.
37382         * tests/test-c-strcase.sh: New file.
37383         * tests/test-c-strcasecmp.c: New file.
37384         * tests/test-c-strncasecmp.c: New file.
37385
37386         * modules/atexit-tests: New file.
37387         * tests/test-atexit.sh: New file.
37388         * tests/test-atexit.c: New file.
37389
37390 2007-03-10  Bruno Haible  <bruno@clisp.org>
37391
37392         * tests/test-binary-io.sh: Use temporary filenames that are not so
37393         likely to clash with those of other tests (in a parallel make).
37394         * tests/test-binary-io.c: Likewise.
37395
37396 2007-03-10  Bruno Haible  <bruno@clisp.org>
37397
37398         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
37399         fallback; use #error instead.
37400         Suggested by Simon Josefsson.
37401
37402 2007-03-10  Bruno Haible  <bruno@clisp.org>
37403
37404         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
37405         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
37406         first and the last.
37407
37408 2007-03-10  Bruno Haible  <bruno@clisp.org>
37409
37410         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
37411
37412 2007-03-10  Bruno Haible  <bruno@clisp.org>
37413
37414         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
37415         "make distcheck".
37416         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
37417         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
37418         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
37419
37420 2007-03-10  Bruno Haible  <bruno@clisp.org>
37421
37422         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
37423         variable.
37424         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
37425         variable.
37426
37427 2007-03-09  Eric Blake  <ebb9@byu.net>
37428         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
37429
37430         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
37431         types are not being provided by gnulib.
37432         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
37433         types are supported.
37434
37435 2007-03-10  Bruno Haible  <bruno@clisp.org>
37436
37437         * lib/stdio_.h (__attribute__): New macro.
37438         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
37439         vsprintf): Specify __attribute__ __format__ for GCC.
37440         Suggested by Eric Blake.
37441
37442 2007-03-09  Bruno Haible  <bruno@clisp.org>
37443
37444         * modules/printf-posix-tests: New file.
37445         * tests/test-printf-posix.sh: New file.
37446         * tests/test-printf-posix.c: New file.
37447
37448         * modules/printf-posix: New file.
37449         * lib/printf.c: New file.
37450         * m4/printf-posix-rpl.m4: New file.
37451         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
37452         REPLACE_PRINTF.
37453         * lib/stdio_.h (printf): New declaration.
37454         (format, __format__, ____printf____, ____scanf____, ____strftime____,
37455         ____strfmon____): New macros.
37456         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
37457         REPLACE_PRINTF.
37458
37459 2007-03-09  Bruno Haible  <bruno@clisp.org>
37460
37461         * tests/test-vasnprintf-posix2.sh: New file.
37462         * tests/test-vasnprintf-posix2.c: New file.
37463         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
37464         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
37465         (Makefile.am): Activate test-vasnprintf-posix2.sh.
37466
37467         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
37468         a locale dependent decimal point, rather than always '.'.
37469
37470 2007-03-09  Eric Blake  <ebb9@byu.net>
37471
37472         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
37473         spite of platforms like Tandem/NSK that define it to -1.
37474
37475 2007-03-08  Bruno Haible  <bruno@clisp.org>
37476
37477         * modules/vprintf-posix-tests: New file.
37478         * tests/test-vprintf-posix.sh: New file.
37479         * tests/test-vprintf-posix.c: New file.
37480         * tests/test-printf-posix.h: New file.
37481
37482         * modules/vprintf-posix: New file.
37483         * lib/vprintf.c: New file.
37484         * m4/vprintf-posix.m4: New file.
37485         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
37486         REPLACE_VPRINTF.
37487         * lib/stdio_.h (vprintf): New declaration.
37488         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
37489         REPLACE_VPRINTF.
37490
37491 2007-03-08  Bruno Haible  <bruno@clisp.org>
37492
37493         * modules/fprintf-posix-tests: New file.
37494         * tests/test-fprintf-posix.sh: New file.
37495         * tests/test-fprintf-posix.c: New file.
37496
37497         * modules/fprintf-posix: New file.
37498         * lib/fprintf.c: New file.
37499         * m4/fprintf-posix.m4: New file.
37500         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
37501         REPLACE_FPRINTF.
37502         * lib/stdio_.h (fprintf): New declaration.
37503         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
37504         REPLACE_FPRINTF.
37505
37506 2007-03-08  Bruno Haible  <bruno@clisp.org>
37507
37508         * modules/vfprintf-posix-tests: New file.
37509         * tests/test-vfprintf-posix.sh: New file.
37510         * tests/test-vfprintf-posix.c: New file.
37511         * tests/test-fprintf-posix.h: New file.
37512         * tests/test-fprintf-posix.out: New file.
37513
37514         * modules/vfprintf-posix: New file.
37515         * lib/vfprintf.c: New file.
37516         * m4/vfprintf-posix.m4: New file.
37517         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
37518         REPLACE_VFPRINTF.
37519         * lib/stdio_.h (vfprintf): New declaration.
37520         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
37521         REPLACE_VFPRINTF.
37522
37523 2007-03-08  Bruno Haible  <bruno@clisp.org>
37524
37525         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
37526
37527 2007-03-08  Bruno Haible  <bruno@clisp.org>
37528
37529         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
37530         instead of 'expr' invocations.
37531         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37532         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37533         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37534         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37535         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37536         Suggested by Paul Eggert.
37537
37538 2007-03-08  Bruno Haible  <bruno@clisp.org>
37539
37540         * modules/fseterr-tests: New file.
37541         * tests/test-fseterr.c: New file.
37542
37543         * modules/fseterr: New file.
37544         * lib/fseterr.h: New file.
37545         * lib/fseterr.c: New file.
37546
37547 2007-03-08  Bruno Haible  <bruno@clisp.org>
37548
37549         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
37550         * lib/getopt_.h: Likewise.
37551         * lib/mbswidth.h: Likewise.
37552         * lib/setenv.h: Likewise.
37553         * lib/vasnprintf.h: Likewise.
37554         * lib/vasprintf.h: Likewise.
37555         * lib/verror.h: Likewise.
37556         * lib/xsetenv.h: Likewise.
37557         * lib/xvasprintf.h: Likewise.
37558
37559 2007-03-08  Jim Meyering  <jim@meyering.net>
37560
37561         * users.txt: Add parted.
37562
37563         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
37564
37565 2007-03-07  Bruno Haible  <bruno@clisp.org>
37566
37567         * m4/printf.m4: Make the shell script snippets copy&pastable.
37568
37569 2007-03-02  Bruno Haible  <bruno@clisp.org>
37570
37571         * lib/netinet_in_.h: New file.
37572         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
37573         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
37574         * modules/netinet_in (Files): Add lib/netinet_in_.h.
37575         (Depends-on): Add absolute-header.
37576         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
37577         into netinet/in.h.
37578
37579 2007-03-03  Bruno Haible  <bruno@clisp.org>
37580
37581         * lib/sys_select_.h: New file.
37582         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
37583         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
37584         * modules/sys_select (Files): Add lib/sys_select_.h.
37585         (Depends-on): Add absolute-header.
37586         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
37587         into sys/select.h.
37588
37589 2007-03-02  Bruno Haible  <bruno@clisp.org>
37590
37591         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
37592         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
37593         values.
37594         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
37595         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
37596         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
37597         * modules/sys_socket (Depends-on): Add absolute-header.
37598         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
37599         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
37600         (Include): Remove requirement of inclusion of <sys/types.h>.
37601
37602 2007-03-02  Bruno Haible  <bruno@clisp.org>
37603
37604         * lib/byteswap_.h (bswap_32): Fix formula.
37605
37606 2007-03-06  Bruno Haible  <bruno@clisp.org>
37607
37608         * modules/sprintf-posix-tests: New file.
37609         * tests/test-sprintf-posix.c: New file.
37610
37611         * modules/sprintf-posix: New file.
37612         * lib/sprintf.c: New file.
37613         * m4/sprintf-posix.m4: New file.
37614         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
37615         REPLACE_SPRINTF.
37616         * lib/stdio_.h (sprintf): New declaration.
37617         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
37618         REPLACE_SPRINTF.
37619
37620 2007-03-06  Bruno Haible  <bruno@clisp.org>
37621
37622         * modules/vsprintf-posix-tests: New file.
37623         * tests/test-vsprintf-posix.c: New file.
37624         * tests/test-sprintf-posix.h: New file.
37625
37626         * modules/vsprintf-posix: New file.
37627         * lib/vsprintf.c: New file.
37628         * m4/vsprintf-posix.m4: New file.
37629         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
37630         REPLACE_VSPRINTF.
37631         * lib/stdio_.h (vsprintf): New declaration.
37632         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
37633         REPLACE_VSPRINTF.
37634
37635 2007-03-06  Bruno Haible  <bruno@clisp.org>
37636
37637         * modules/vsnprintf (Depend-on): Remove minmax.
37638
37639 2007-03-06  Bruno Haible  <bruno@clisp.org>
37640
37641         * modules/snprintf-posix-tests: New file.
37642         * tests/test-snprintf-posix.c: New file.
37643
37644         * modules/snprintf-posix: New file.
37645         * m4/snprintf-posix.m4: New file.
37646         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
37647         gl_FUNC_SNPRINTF.
37648         (gl_FUNC_SNPRINTF): Invoke it.
37649         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
37650         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
37651         is set.
37652         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
37653
37654 2007-03-06  Bruno Haible  <bruno@clisp.org>
37655
37656         * modules/vsnprintf-posix-tests: New file.
37657         * tests/test-vsnprintf-posix.c: New file.
37658         * tests/test-snprintf-posix.h: New file.
37659
37660         * modules/vsnprintf-posix: New file.
37661         * m4/vsnprintf-posix.m4: New file.
37662         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
37663         gl_FUNC_VSNPRINTF.
37664         (gl_FUNC_VSNPRINTF): Invoke it.
37665         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
37666         * lib/stdio_.h (vsnprintf): Define as a replacement if
37667         REPLACE_VSNPRINTF is set.
37668         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
37669
37670 2007-03-06  Bruno Haible  <bruno@clisp.org>
37671
37672         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
37673         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
37674
37675 2007-03-06  Bruno Haible  <bruno@clisp.org>
37676
37677         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
37678         (asinl): Declare also if HAVE_DECL_ASINL is set.
37679         (atanl): Declare also if HAVE_DECL_ATANL is set.
37680         (ceill): Declare also if HAVE_DECL_CEILL is set.
37681         (cosl): Declare also if HAVE_DECL_COSL is set.
37682         (expl): Declare also if HAVE_DECL_EXPL is set.
37683         (floorl): Declare also if HAVE_DECL_FLOORL is set.
37684         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
37685         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
37686         (logl): Declare also if HAVE_DECL_LOGL is set.
37687         (sinl): Declare also if HAVE_DECL_SINL is set.
37688         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
37689         (tanl): Declare also if HAVE_DECL_TANL is set.
37690         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
37691         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
37692         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
37693         declaration of frexpl, ldexpl.
37694         * modules/printf-frexpl (Depends-on): Add math.
37695         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
37696
37697 2007-03-05  Bruno Haible  <bruno@clisp.org>
37698
37699         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
37700         frexpl and ldexpl are declared.
37701         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
37702
37703 2007-03-05  Bruno Haible  <bruno@clisp.org>
37704
37705         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
37706         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
37707
37708 2007-03-05  Bruno Haible  <bruno@clisp.org>
37709
37710         * lib/stdio_.h: Include <stddef.h>.
37711
37712 2007-03-05  Bruno Haible  <bruno@clisp.org>
37713
37714         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
37715
37716 2007-03-05  Bruno Haible  <bruno@clisp.org>
37717
37718         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
37719         NetBSD 4, from Ralf Wildenhues.
37720
37721 2007-03-04  Bruno Haible  <bruno@clisp.org>
37722
37723         * lib/vasprintf.h: Update #if logic for the case when the functions
37724         exist but are overridden.
37725
37726 2007-03-04  Bruno Haible  <bruno@clisp.org>
37727
37728         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
37729         implementations: glibc-2.4 and MacOS X 10.3.
37730         * tests/test-vasnprintf-posix.c (test_function): Test also the case
37731         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
37732         * tests/test-vasprintf-posix.c (test_function): Likewise.
37733
37734 2007-03-04  Bruno Haible  <bruno@clisp.org>
37735
37736         * modules/vasprintf-posix-tests: New file.
37737         * tests/test-vasprintf-posix.c: New file.
37738
37739         * modules/vasprintf-posix: New file.
37740         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
37741         defined.
37742         * m4/vasprintf-posix.m4: New file.
37743         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
37744         gl_FUNC_VASPRINTF.
37745         (gl_FUNC_VASPRINTF): Invoke it.
37746         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
37747         here.
37748         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
37749
37750 2007-03-04  Bruno Haible  <bruno@clisp.org>
37751
37752         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
37753         REPLACE_GETTIMEOFDAY.
37754         * modules/sys_time (Makefile.am): Likewise.
37755         * m4/sys_time_h.m4: Likewise.
37756         * m4/gettimeofday.m4: Likewise.
37757
37758 2007-03-04  Bruno Haible  <bruno@clisp.org>
37759
37760         * modules/vasnprintf-posix-tests: New file.
37761         * tests/test-vasnprintf-posix.c: New file.
37762
37763         * modules/vasnprintf-posix: New file.
37764         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
37765         printf-frexpl.h.
37766         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
37767         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
37768         REPLACE_VASNPRINTF is defined.
37769         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
37770         gl_FUNC_VASNPRINTF.
37771         (gl_FUNC_VASNPRINTF): Invoke it.
37772         * m4/vasnprintf-posix.m4: New file.
37773         * m4/printf.m4: New file.
37774
37775 2007-03-04  Bruno Haible  <bruno@clisp.org>
37776
37777         Compile progreloc.c only if --enable-relocatable is specified.
37778         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
37779         if --enable-relocatable was specified.
37780         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
37781         lib_SOURCES.
37782
37783 2007-03-04  Jim Meyering  <jim@meyering.net>
37784
37785         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
37786         Use it consistently, rather than enumerating errno constants.
37787
37788 2007-03-04  Bruno Haible  <bruno@clisp.org>
37789
37790         * modules/xvasprintf-tests: New file.
37791         * tests/test-xvasprintf.c: New file.
37792
37793         * modules/vasprintf-tests: New file.
37794         * tests/test-vasprintf.c: New file.
37795
37796         * modules/vasnprintf-tests: New file.
37797         * tests/test-vasnprintf.c: New file.
37798
37799         * modules/vsnprintf-tests: New file.
37800         * tests/test-vsnprintf.c: New file.
37801
37802         * modules/snprintf-tests: New file.
37803         * tests/test-snprintf.c: New file.
37804
37805 2007-03-04  Bruno Haible  <bruno@clisp.org>
37806
37807         Compile relocatable.c only if --enable-relocatable is specified.
37808         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
37809         gl_RELOCATABLE_LIBRARY.
37810         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
37811         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
37812         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
37813         gl_RELOCATABLE_LIBRARY.
37814         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
37815         (Makefile.am): Remove lib_SOURCES.
37816         * modules/relocatable-lib-lgpl (configure.ac): Invoke
37817         gl_RELOCATABLE_LIBRARY.
37818         (Makefile.am): Remove lib_SOURCES.
37819         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
37820         always.
37821         * modules/relocatable-prog-wrapper (configure.ac): Invoke
37822         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
37823
37824 2007-03-04  Bruno Haible  <bruno@clisp.org>
37825
37826         * modules/argmatch-tests: New file.
37827         * tests/test-argmatch.c: New file.
37828
37829         * tests/test-allocsa.c (main): Halve the number of loop runs.
37830
37831         * modules/alloca-opt-tests: New file.
37832         * tests/test-alloca-opt.c: New file.
37833
37834 2007-03-04  Jim Meyering  <jim@meyering.net>
37835
37836         Work around difference between Linux ACLs and Solaris 10 ZFS.
37837         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
37838         for EINVAL.
37839
37840 2007-03-03  Bruno Haible  <bruno@clisp.org>
37841
37842         * modules/relocatable-prog (Depends-on): Add back progreloc's
37843         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
37844
37845 2007-03-03  Bruno Haible  <bruno@clisp.org>
37846
37847         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
37848         * modules/relocatable-lib: New file.
37849
37850 2007-03-03  Bruno Haible  <bruno@clisp.org>
37851
37852         * modules/relocatable-prog: Renamed from modules/relocatable.
37853         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
37854
37855 2007-03-03  Bruno Haible  <bruno@clisp.org>
37856
37857         * modules/relocatable-script (Files): Add doc/relocatable.texi,
37858         m4/relocatable-lib.m4.
37859         (Depends-on): Remove 'relocatable'.
37860         (configure.ac): Add gl_RELOCATABLE_NOP.
37861
37862 2007-03-03  Bruno Haible  <bruno@clisp.org>
37863
37864         * modules/relocatable-prog-wrapper: New file.
37865         * modules/relocatable (Depends-on): Add it. Remove all other
37866         dependencies except progname.
37867         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
37868
37869         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
37870         (gl_FUNC_STRERROR): Nop.
37871         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
37872
37873         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
37874         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
37875
37876         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
37877         (gl_FUNC_READLINK): Update.
37878
37879         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
37880
37881 2007-03-03  Bruno Haible  <bruno@clisp.org>
37882
37883         * lib/xreadlink.c: Include <unistd.h> unconditionally.
37884         * modules/xreadlink (Depends-on): Add unistd.
37885         * modules/xreadlink-with-size (Depends-on): Likewise.
37886
37887 2007-03-03  Bruno Haible  <bruno@clisp.org>
37888
37889         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
37890         extracted from gt_FUNC_SETENV.
37891         (gt_FUNC_SETENV): Remove macro.
37892         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
37893         remove gt_FUNC_SETENV.
37894
37895 2007-03-03  Bruno Haible  <bruno@clisp.org>
37896
37897         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
37898         ENABLE_RELOCATABLE here.
37899         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
37900
37901 2007-03-03  Bruno Haible  <bruno@clisp.org>
37902
37903         * modules/rbtreehash-list-tests (Depends-on): Add progname.
37904         * tests/test-rbtreehash_list.c: Include progname.h.
37905         (main): Call set_program_name.
37906
37907         * modules/rbtree-oset-tests (Depends-on): Add progname.
37908         * tests/test-rbtree_oset.c: Include progname.h.
37909         (main): Call set_program_name.
37910
37911         * modules/rbtree-list-tests (Depends-on): Add progname.
37912         * tests/test-rbtree_list.c: Include progname.h.
37913         (main): Call set_program_name.
37914
37915         * modules/linked-list-tests (Depends-on): Add progname.
37916         * tests/test-linked_list.c: Include progname.h.
37917         (main): Call set_program_name.
37918
37919 2007-03-03  Bruno Haible  <bruno@clisp.org>
37920
37921         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
37922         All uses of __restrict changed to _Restrict_.
37923         * lib/glob_.h (__restrict): Remove macro.
37924
37925 2007-03-02  Bruno Haible  <bruno@clisp.org>
37926
37927         * modules/gettext (configure.ac): Require gettext infrastructure
37928         from version 0.16.1.
37929
37930 2007-03-02  Bruno Haible  <bruno@clisp.org>
37931
37932         * modules/linkedhash-list-tests (Depends-on): Add progname.
37933         * tests/test-linkedhash_list.c: Include progname.h.
37934         (main): Call set_program_name.
37935
37936         * modules/carray-list-tests (Depends-on): Add progname.
37937         * tests/test-carray_list.c: Include progname.h.
37938         (main): Call set_program_name.
37939
37940         * modules/avltreehash-list-tests (Depends-on): Add progname.
37941         * tests/test-avltreehash_list.c: Include progname.h.
37942         (main): Call set_program_name.
37943
37944         * modules/avltree-oset-tests (Depends-on): Add progname.
37945         * tests/test-avltree_oset.c: Include progname.h.
37946         (main): Call set_program_name.
37947
37948         * modules/avltree-list-tests (Depends-on): Add progname.
37949         * tests/test-avltree_list.c: Include progname.h.
37950         (main): Call set_program_name.
37951
37952         * modules/array-oset-tests (Depends-on): Add progname.
37953         * tests/test-array_oset.c: Include progname.h.
37954         (main): Call set_program_name.
37955
37956         * modules/array-list-tests (Depends-on): Add progname.
37957         * tests/test-array_list.c: Include progname.h.
37958         (main): Call set_program_name.
37959
37960         * modules/argp-tests (Depends-on): Add progname.
37961         * tests/test-argp.c: Include argp.h first. Include progname.h.
37962         (main): Call set_program_name.
37963
37964 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
37965
37966         * doc/gnulib-tool.texi (Initial import): Reword description of
37967         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
37968         limited effect even if defined after the first system include.
37969
37970 2007-03-01  Bruno Haible  <bruno@clisp.org>
37971
37972         * build-aux/config.libpath: Update to libtool-1.5.22.
37973         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37974
37975 2007-03-01  Bruno Haible  <bruno@clisp.org>
37976
37977         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
37978         foo_CFLAGS.
37979         Reported by Ralf Wildenhues.
37980
37981 2007-03-01  Bruno Haible  <bruno@clisp.org>
37982
37983         * build-aux/install-reloc: Remove object files left over by some
37984         compilers.
37985         Reported by Ralf Wildenhues.
37986
37987 2007-03-01  Bruno Haible  <bruno@clisp.org>
37988
37989         * build-aux/install-reloc: Break long lines.
37990
37991 2007-03-01  Bruno Haible  <bruno@clisp.org>
37992
37993         * doc/relocatable.texi: Document that it may not work on OpenBSD.
37994         Reported by Ralf Wildenhues.
37995
37996 2007-03-01  Bruno Haible  <bruno@clisp.org>
37997
37998         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
37999         include ordering constraints.
38000
38001 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
38002
38003         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
38004         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
38005         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
38006         as another example.
38007         * lib/time_.h: Fix misspelling.
38008         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
38009         Require gl_HEADER_TIME_H_DEFAULTS.
38010         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
38011         * m4/time_r.m4 (gl_TIME_R): Likewise.
38012         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
38013
38014 2007-03-01  Bruno Haible  <bruno@clisp.org>
38015
38016         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
38017         * m4/utimens.m4 (gl_UTIMENS): Likewise.
38018
38019 2007-03-01  Jim Meyering  <jim@meyering.net>
38020
38021         * modules/xreadlink (Maintainer): Add my name.
38022         * modules/xreadlink-with-size (Depends-on): Alphabetize.
38023
38024 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
38025             Bruno Haible  <bruno@clisp.org>
38026
38027         * build-aux/install-reloc: Compile also c-ctype.c.
38028         * build-aux/relocatable.sh.in: New file.
38029         * doc/relocatable.texi: New file.
38030         * doc/relocatable-maint.texi: New file.
38031         * doc/gnulib.texi: Include relocatable-maint.texi.
38032         * lib/progreloc.c: Include unistd.h unconditionally.
38033         * lib/relocwrapper.c: Include unistd.h unconditionally.
38034         Include c-ctype.h.
38035         (add_dotbin): Use c_tolower.
38036         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
38037         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
38038         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
38039         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
38040         to m4/relocatable-lib.m4.
38041         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
38042         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
38043         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
38044         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
38045         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
38046         * modules/relocatable: New file.
38047         * modules/relocatable-lib: New file.
38048         * modules/relocatable-script: New file.
38049
38050 2007-02-28  Bruno Haible  <bruno@clisp.org>
38051
38052         Import --enable-relocatable infrastructure.
38053         * build-aux/config.libpath: New file, from GNU gettext.
38054         * build-aux/install-reloc: New file, from GNU gettext.
38055         * build-aux/reloc-ldflags: New file, from GNU gettext.
38056         * lib/relocatable.h: New file, from GNU gettext.
38057         * lib/relocatable.c: New file, from GNU gettext.
38058         * lib/relocwrapper.c: New file, from GNU gettext.
38059         * m4/relocatable.m4: New file, from GNU gettext.
38060
38061 2007-02-28  Bruno Haible  <bruno@clisp.org>
38062
38063         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
38064
38065         * modules/xreadlink: New file, from GNU gettext with modifications.
38066         * lib/xreadlink.c: New file, from GNU gettext.
38067         * lib/xreadlink.h: Add comments.
38068         (xreadlink): New declaration.
38069
38070         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
38071         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
38072         lib/xreadlink-with-size.c.
38073         (configure.ac): Remove gl_XREADLINK invocation.
38074         (Makefile.am): Augment lib_SOURCES.
38075         * m4/xreadlink.m4: Remove file.
38076         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
38077         (xreadlink_with_size): Renamed from xreadink.
38078         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
38079         * modules/canonicalize (Depends-on): Replace xreadlink with
38080         xreadlink-with-size.
38081         * lib/canonicalize.c (canonicalize_filename_mode): Update.
38082
38083 2007-02-25  Jim Meyering  <jim@meyering.net>
38084
38085         * build-aux/announce-gen: When complaining about excess arguments,
38086         list them.
38087
38088 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
38089
38090         * README: Document signed integer overflow situation more
38091         accurately.
38092
38093 2007-02-25  Bruno Haible  <bruno@clisp.org>
38094
38095         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
38096         'a' or 'A' conversion.
38097
38098 2007-02-25  Bruno Haible  <bruno@clisp.org>
38099
38100         * modules/filename: Renamed from modules/pathname.
38101         (Files): Replace lib/pathname.h with lib/filename.h. Replace
38102         lib/concatpath.c with lib/concat-filename.c.
38103         (Makefile.am): Update.
38104         (Include): Replace pathname.h with filename.h.
38105         * lib/filename.h: Renamed from lib/pathname.h.
38106         (concatenated_filename): Renamed from concatenated_pathname.
38107         * lib/concat-filename.c: Renamed from lib/concatpath.c.
38108         (concatenated_filename): Renamed from concatenated_pathname.
38109         * lib/findprog.c: Include filename.h instead of pathname.h.
38110         (find_in_path): Update.
38111         * lib/javacomp.c: Include filename.h instead of pathname.h.
38112         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
38113         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
38114         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
38115         is_oldgcj_14_13_usable, is_javac_usable): Update.
38116         * lib/javaexec.c: Include filename.h instead of pathname.h.
38117         (execute_java_class): Update.
38118         * modules/findprog: Update.
38119         * modules/javacomp: Update.
38120         * modules/javaexec: Update.
38121         * MODULES.html.sh (File system functions): Add 'filename', remove
38122         'pathname'.
38123
38124 2007-02-25  Bruno Haible  <bruno@clisp.org>
38125
38126         * modules/printf-frexpl-tests: New file.
38127         * tests/test-printf-frexpl.c: New file.
38128
38129         * modules/printf-frexpl: New file.
38130         * lib/printf-frexpl.h: New file.
38131         * lib/printf-frexpl.c: New file.
38132         * m4/printf-frexpl.m4: New file.
38133
38134 2007-02-25  Bruno Haible  <bruno@clisp.org>
38135
38136         * modules/printf-frexp-tests: New file.
38137         * tests/test-printf-frexp.c: New file.
38138
38139         * modules/printf-frexp: New file.
38140         * lib/printf-frexp.h: New file.
38141         * lib/printf-frexp.c: New file.
38142         * m4/printf-frexp.m4: New file.
38143
38144 2007-02-25  Bruno Haible  <bruno@clisp.org>
38145
38146         Assume automake >= 1.10 for the tests.
38147         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
38148         * modules/arctwo-tests: Likewise.
38149         * modules/argp-tests: Likewise.
38150         * modules/avltree-list-tests: Likewise.
38151         * modules/avltree-oset-tests: Likewise.
38152         * modules/avltreehash-list-tests: Likewise.
38153         * modules/carray-list-tests: Likewise.
38154         * modules/crc-tests: Likewise.
38155         * modules/des-tests: Likewise.
38156         * modules/gc-arcfour-tests: Likewise.
38157         * modules/gc-arctwo-tests: Likewise.
38158         * modules/gc-des-tests: Likewise.
38159         * modules/gc-hmac-md5-tests: Likewise.
38160         * modules/gc-hmac-sha1-tests: Likewise.
38161         * modules/gc-md2-tests: Likewise.
38162         * modules/gc-md4-tests: Likewise.
38163         * modules/gc-md5-tests: Likewise.
38164         * modules/gc-pbkdf2-sha1-tests: Likewise.
38165         * modules/gc-rijndael-tests: Likewise.
38166         * modules/gc-sha1-tests: Likewise.
38167         * modules/gc-tests: Likewise.
38168         * modules/getaddrinfo-tests: Likewise.
38169         * modules/hmac-md5-tests: Likewise.
38170         * modules/hmac-sha1-tests: Likewise.
38171         * modules/linked-list-tests: Likewise.
38172         * modules/linkedhash-list-tests: Likewise.
38173         * modules/lock-tests: Likewise.
38174         * modules/md2-tests: Likewise.
38175         * modules/md4-tests: Likewise.
38176         * modules/md5-tests: Likewise.
38177         * modules/rbtree-list-tests: Likewise.
38178         * modules/rbtree-oset-tests: Likewise.
38179         * modules/rbtreehash-list-tests: Likewise.
38180         * modules/read-file-tests: Likewise.
38181         * modules/rijndael-tests: Likewise.
38182         * modules/stdint-tests: Likewise.
38183         * modules/tls-tests: Likewise.
38184
38185 2007-02-24  Bruno Haible  <bruno@clisp.org>
38186
38187         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
38188         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
38189         function; instead check whether isnan with a double argument links.
38190         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
38191         function; instead check whether isnan with a 'long double' argument
38192         links.
38193         Reported by Eric Blake <ebb9@byu.net>.
38194
38195 2007-02-24  Bruno Haible  <bruno@clisp.org>
38196
38197         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
38198         defined.
38199         * lib/isnanl.c: Remove all code. Just include isnan.c.
38200         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
38201
38202 2007-02-25  Jim Meyering  <jim@meyering.net>
38203
38204         Avoid conflicting types for 'unsetenv' on FreeBSD.
38205         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
38206         conflicting with FreeBSD's (5.0 and 6.1) function declaration
38207         in stdlib.h.
38208
38209 2007-02-24  Bruno Haible  <bruno@clisp.org>
38210
38211         * modules/isnanl-nolibm-tests: New file.
38212         * tests/test-isnanl.c: New file.
38213
38214         * modules/isnanl-nolibm: New file.
38215         * lib/isnanl.h: New file.
38216         * lib/isnanl.c: New file.
38217         * m4/isnanl.m4: New file.
38218
38219 2007-02-24  Bruno Haible  <bruno@clisp.org>
38220
38221         * modules/isnan-nolibm-tests: New file.
38222         * tests/test-isnan.c: New file.
38223
38224         * modules/isnan-nolibm: New file.
38225         * lib/isnan.h: New file.
38226         * lib/isnan.c: New file.
38227         * m4/isnan.m4: New file.
38228
38229 2007-02-24  Bruno Haible  <bruno@clisp.org>
38230
38231         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
38232         assume that an exponent fits in 20 bits.
38233
38234 2007-02-24  Jim Meyering  <jim@meyering.net>
38235
38236         * m4/regex.m4: Update the description of the configure-time option,
38237         --without-included-regex, to state accurately what the defaults are,
38238         and perhaps to give people an idea why using this option is risky.
38239
38240 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
38241
38242         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
38243         loops on small arguments.  This attempts to avoid the problem
38244         Bruno Haible reported for AIX 4.3.2 in
38245         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
38246
38247 2007-02-23  Bruno Haible  <bruno@clisp.org>
38248
38249         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
38250         Needed for help2man.
38251
38252 2007-02-23  Karl Berry  <karl@gnu.org>
38253
38254         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
38255         exists, foo.h should be cvs-ignored, not committed.
38256
38257 2007-02-23  Eric Blake  <ebb9@byu.net>
38258
38259         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
38260         * lib/stat-time.h (includes): Likewise.
38261         * lib/utimecmp.c (includes): Likewise.
38262         * lib/utimens.h (includes): Likewise.
38263         * lib/getdate.y (includes): Also include "timespec.h" for use
38264         internal to the module.
38265         * modules/utimens (Depends-on): Revert yesterday's patch.
38266         * modules/nanosleep (Depends-on): Add missing dependency.
38267
38268 2007-02-22  Bruno Haible  <bruno@clisp.org>
38269
38270         * lib/glob.c: Don't include getlogin_r.h.
38271
38272 2007-02-22  Jim Meyering  <jim@meyering.net>
38273
38274         * modules/utimens (Depends-on): Add timespec, required for
38275         utimens.h's inclusion of timespec.h.
38276
38277 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
38278
38279         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
38280         long unreadable paths in GNU/Linux.  Problem reported by Andreas
38281         Schwab in
38282         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
38283         I'll try to think of a better way to fix the Solaris problem.
38284
38285         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
38286         like glibc; on Solaris 10, it fails with errno == EINVAL.
38287         POSIX says the behavior is unspecified if the first argument is NULL,
38288         so play it safe and never pass NULL to the system getcwd.
38289
38290 2007-02-21  Jim Meyering  <jim@meyering.net>
38291
38292         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
38293         of gettimeofday.  It would conflict with the one now always
38294         provided via sys_time_.h.  Reported by Matthew Woehlke, as
38295         an IRIX 6.5 build failure.
38296
38297 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
38298
38299         Minor fixups to port to Solaris 10 with Sun C 5.8.
38300         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
38301         * modules/getcwd (Depends-on): Add dirfd.
38302         * lib/putenv.c (putenv): #undef it.
38303         (rpl_putenv): New decl.
38304         (malloc, free): Include <stdlib.h> rather than prototyping separately.
38305
38306 2007-02-20  Bruno Haible  <bruno@clisp.org>
38307
38308         * modules/stdio-tests: New file.
38309         * tests/test-stdio.c: New file.
38310
38311         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
38312         (Depends-on): Add stdio.
38313         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
38314         (Include): Use <stdio.h> instead of vsnprintf.h.
38315         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
38316         HAVE_DECL_VSNPRINTF.
38317         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
38318
38319         * modules/snprintf (Files): Remove lib/snprintf.h.
38320         (Depends-on): Add stdio.
38321         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
38322         (Include): Use <stdio.h> instead of snprintf.h.
38323         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
38324         HAVE_DECL_SNPRINTF.
38325         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
38326         * lib/getaddrinfo.c: Likewise.
38327
38328         * modules/stdio: New file.
38329         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
38330         * lib/snprintf.h: Remove file.
38331         * lib/vsnprintf.h: Remove file.
38332         * lib/.cppi-disable: Remove snprintf.h.
38333         * m4/stdio_h.m4: New file.
38334         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
38335
38336 2007-02-20  Jim Meyering  <jim@meyering.net>
38337
38338         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
38339         used by e.g., mingw.  From Bruno Haible.
38340
38341 2007-02-19  Bruno Haible  <bruno@clisp.org>
38342
38343         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
38344         warnings.
38345         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38346
38347 2007-02-19  Bruno Haible  <bruno@clisp.org>
38348
38349         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
38350         from mingw users.
38351
38352 2007-02-19  Bruno Haible  <bruno@clisp.org>
38353
38354         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
38355         warnings.
38356         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
38357
38358 2007-02-19  Jim Meyering  <jim@meyering.net>
38359
38360         Don't use FD after a successful "fdopendir (fd)".
38361         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
38362         Reset it by calling dirfd on the just-obtained DIR*.
38363
38364         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
38365         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
38366
38367 2007-02-18  Bruno Haible  <bruno@clisp.org>
38368
38369         * lib/readlink.c: Include <unistd.h>.
38370         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
38371         HAVE_READLINK.
38372         * modules/readlink (Depends-on): Add unistd.
38373         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38374         (Include): Add <unistd.h>.
38375
38376         * lib/getlogin_r.h: Remove file.
38377         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
38378         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
38379         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
38380         HAVE_DECL_GETLOGIN_R.
38381         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
38382         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38383         (Include): Use <unistd.h> instead of getlogin_r.h.
38384
38385         * lib/getcwd.h: Remove file.
38386         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
38387         * lib/xgetcwd.c: Likewise.
38388         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
38389         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
38390         * modules/getcwd (Files): Remove lib/getcwd.h.
38391         (Depends-on): Add unistd.
38392         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38393         (Include): Use <unistd.h> instad of getcwd.h.
38394
38395         * lib/ftruncate.c: Include <unistd.h> first.
38396         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
38397         Set HAVE_FTRUNCATE.
38398         * modules/ftruncate (Depends-on): Add unistd.
38399         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38400
38401         * lib/fchdir.c: Include <unistd.h> first.
38402         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
38403         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
38404         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
38405         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38406         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
38407
38408         * lib/dup2.c: Include <unistd.h> first.
38409         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
38410         HAVE_DUP2.
38411         * modules/dup2 (Depends-on): Add unistd.
38412         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38413
38414         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
38415         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
38416         REPLACE_CHOWN. Don't define chown as a macro here.
38417         * modules/chown (Depends-on): Add unistd.
38418         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38419
38420         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
38421         Add definition for GL_LINK_WARNING.
38422         (chown, dup2): New declarations.
38423         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
38424         link warning.
38425         (ftruncate): New declaration.
38426         (getcwd): New declaration, taken from old getcwd.h.
38427         (getlogin_r): New declaration, taken from old getlogin_r.h.
38428         (readlink): New declaration.
38429         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
38430         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
38431         (gl_PREREQ_UNISTD): Remove macro.
38432         (gl_UNISTD_MODULE_INDICATOR): New macro.
38433         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
38434         many new variables. Don't set UNISTD_H.
38435         * modules/unistd (Description): Change.
38436         (Depends-on): Add link-warning.
38437         (configure.ac): Update.
38438         (Makefile.am): Create unistd.h always. Substitute many new variables
38439         into it.
38440
38441 2007-02-18  Bruno Haible  <bruno@clisp.org>
38442
38443         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
38444         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
38445         HAVE_GETSUBOPT.
38446         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
38447         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
38448         * lib/getsubopt.h: Remove file.
38449         * modules/getsubopt (Files): Remove lib/getsubopt.h.
38450         (Depends-on): Add stdlib.
38451         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38452         (Includes): Use <stdlib.h> instead of getsubopt.h.
38453         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
38454         Set HAVE_GETSUBOPT.
38455         * lib/getsubopt.c: Don't include getsubopt.h.
38456
38457 2007-02-18  Bruno Haible  <bruno@clisp.org>
38458
38459         * modules/fchdir (Depends-on): Add dup2.
38460
38461 2007-02-18  Bruno Haible  <bruno@clisp.org>
38462
38463         * lib/stdlib_.h: Handle glibc's special invocation convention
38464         specially.
38465
38466 2007-02-18  Bruno Haible  <bruno@clisp.org>
38467
38468         * modules/stdlib-tests: New file.
38469         * tests/test-stdlib.c: New file.
38470
38471         * modules/mkstemp (Files): Remove lib/mkstemp.h.
38472         (Depends-on): Add stdlib.
38473         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38474         (Includes): Use <stdlib.h> instead of mkstemp.h.
38475         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
38476         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
38477         * lib/mkstemp.c: Don't include mkstemp.h.
38478         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
38479         * lib/stdlib--.h: Don't include mkstemp.h.
38480
38481         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
38482         (Depends-on): Add stdlib.
38483         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38484         (Includes): Use <stdlib.h> instead of mkdtemp.h.
38485         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
38486         HAVE_MKDTEMP.
38487         * lib/mkdtemp.c: Don't include mkdtemp.h.
38488         * lib/clean-temp.c: Don't include mkdtemp.h.
38489
38490         * modules/exit (Files): Remove lib/exit.h.
38491         (Depends-on): Add stdlib.
38492         (Makefile.am): Remove lib_SOURCES.
38493         (Include): Use <stdlib.h> instead of exit.h.
38494         * lib/argmatch.c: Don't include exit.h.
38495         * lib/execute.c: Likewise.
38496         * lib/pagealign_alloc.c: Likewise.
38497         * lib/pipe.c: Likewise.
38498         * lib/wait-process.c: Likewise.
38499         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
38500         * lib/exitfail.c: Likewise.
38501         * lib/savewd.c: Likewise.
38502         * lib/xsetenv.c: Likewise.
38503
38504         * modules/stdlib: New file.
38505         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
38506         and extra comments about mkstemp().
38507         * lib/exit.h: Remove file.
38508         * lib/mkdtemp.h: Remove file.
38509         * lib/mkstemp.h: Remove file.
38510         * m4/stdlib_h.m4: New file.
38511         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
38512
38513 2007-02-18  Bruno Haible  <bruno@clisp.org>
38514
38515         * modules/math-tests: New file.
38516         * tests/test-math.c: New file.
38517
38518         * modules/math: New file.
38519         * modules/mathl (Files): Remove lib/mathl.h.
38520         (Depends-on): Add math.
38521         (Makefile.am): Don't mention mathl.h.
38522         (Include): Use <math.h> instead of mathl.h.
38523         * lib/math_.h: New file.
38524         * lib/mathl.h: Remove file.
38525         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
38526         mathl.h.
38527         * lib/asinl.c: Likewise.
38528         * lib/atanl.c: Likewise.
38529         * lib/ceill.c: Likewise.
38530         * lib/cosl.c: Likewise.
38531         * lib/expl.c: Likewise.
38532         * lib/floorl.c: Likewise.
38533         * lib/frexpl.c: Likewise.
38534         * lib/ldexpl.c: Likewise.
38535         * lib/logl.c: Likewise.
38536         * lib/sincosl.c: Likewise.
38537         * lib/sinl.c: Likewise.
38538         * lib/sqrtl.c: Likewise.
38539         * lib/tanl.c: Likewise.
38540         * lib/trigl.c: Likewise.
38541         * m4/math_h.m4: New file.
38542         * MODULES.html.sh (Mathematics): Add math.
38543
38544 2007-02-17  Bruno Haible  <bruno@clisp.org>
38545
38546         * modules/wctype-tests: New file.
38547         * tests/test-wctype.c: New file.
38548
38549         * modules/wchar-tests: New file.
38550         * tests/test-wchar.c: New file.
38551
38552         * modules/unistd-tests: New file.
38553         * tests/test-unistd.c: New file.
38554
38555         * modules/time-tests: New file.
38556         * tests/test-time.c: New file.
38557
38558         * modules/sysexits-tests: New file.
38559         * tests/test-sysexits.c: New file.
38560
38561         * modules/sys_time-tests: New file.
38562         * tests/test-sys_time.c: New file.
38563
38564         * modules/sys_stat-tests: New file.
38565         * tests/test-sys_stat.c: New file.
38566
38567         * modules/sys_socket-tests: New file.
38568         * tests/test-sys_socket.c: New file.
38569
38570         * modules/sys_select-tests: New file.
38571         * tests/test-sys_select.c: New file.
38572
38573         * modules/string-tests: New file.
38574         * tests/test-string.c: New file.
38575
38576         * modules/stdbool-tests: New file.
38577         * tests/test-stdbool.c: New file.
38578
38579         * modules/netinet_in-tests: New file.
38580         * tests/test-netinet_in.c: New file.
38581
38582         * modules/inttypes-tests: New file.
38583         * tests/test-inttypes.c: New file.
38584
38585         * modules/fcntl-tests: New file.
38586         * tests/test-fcntl.c: New file.
38587
38588         * modules/byteswap-tests: New file.
38589         * tests/test-byteswap.c: New file.
38590
38591         * modules/arpa_inet-tests: New file.
38592         * tests/test-arpa_inet.c: New file.
38593
38594 2007-02-17  Bruno Haible  <bruno@clisp.org>
38595
38596         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
38597         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
38598         if the corresponding module is not enabled. Emit link warnings if
38599         the function is used nevertheless.
38600         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
38601         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
38602         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
38603         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
38604         * modules/inttypes (Depends-on): Add link-warning.
38605         (Makefile.am): Copy the contents of build-aux/link-warning.h into
38606         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
38607         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
38608         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
38609         * modules/imaxdiv (configure.ac): Likewise.
38610         * modules/strtoimax (configure.ac): Likewise.
38611         * modules/strtoumax (configure.ac): Likewise.
38612
38613 2007-02-17  Bruno Haible  <bruno@clisp.org>
38614
38615         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
38616         gl_STRING_MODULE_INDICATOR_DEFAULTS.
38617         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
38618         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
38619
38620 2007-02-17  Bruno Haible  <bruno@clisp.org>
38621
38622         * modules/link-warning: New file.
38623         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
38624         * lib/string_.h (GL_LINK_WARNING): Remove definition.
38625         * modules/string (Depends-on): Add link-warning.
38626         (Makefile.am): Copy the contents of build-aux/link-warning.h into
38627         string.h.
38628         * MODULES.html.sh (Support for building libraries and executables): Add
38629         link-warning.
38630
38631 2007-02-17  Bruno Haible  <bruno@clisp.org>
38632
38633         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
38634         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
38635         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
38636         long lines.
38637
38638 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
38639             Bruno Haible  <bruno@clisp.org>
38640
38641         * modules/tmpfile: New file.
38642         * lib/tmpfile.c: New file.
38643         * m4/tmpfile.m4: New file.
38644         * MODULES.html.sh (func_all_modules): New section "Input/output".
38645
38646 2007-02-15  Bruno Haible  <bruno@clisp.org>
38647
38648         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
38649         (supports_delete_on_close): New function.
38650         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
38651
38652 2007-02-14  Bruno Haible  <bruno@clisp.org>
38653
38654         * modules/mbspcasecmp-tests: New file.
38655         * tests/test-mbspcasecmp.sh: New file.
38656         * tests/test-mbspcasecmp.c: New file.
38657
38658         New module mbspcasecmp.
38659         * modules/mbspcasecmp: New file.
38660         * lib/mbspcasecmp.c: New file.
38661         * lib/string_.h (strncasecmp): Change warning message.
38662         (mbspcasecmp): New declaration.
38663         * m4/mbspcasecmp.m4: New file.
38664         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38665         GNULIB_MBSPCASECMP.
38666         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
38667         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
38668
38669 2007-02-14  Bruno Haible  <bruno@clisp.org>
38670
38671         * modules/mbsncasecmp-tests: New file.
38672         * tests/test-mbsncasecmp.sh: New file.
38673         * tests/test-mbsncasecmp.c: New file.
38674
38675         New module mbsncasecmp.
38676         * modules/mbsncasecmp: New file.
38677         * lib/mbsncasecmp.c: New file.
38678         * lib/string_.h (mbsncasecmp): New declaration.
38679         * m4/mbsncasecmp.m4: New file.
38680         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38681         GNULIB_MBSNCASECMP.
38682         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
38683         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
38684
38685 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
38686
38687         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
38688         Verify that it doesn't overlap with our flags.
38689         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
38690         do not have the desired effect in multibyte locales; instead, use
38691         mbscasecmp.
38692         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
38693         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
38694         we don't require GNU fnmatch ourselves (if our users require it, they
38695         should do so explicitly).
38696
38697         Fix regex code so it doesn't rely on strcasecmp.
38698         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
38699         Otherwise, include gnulib's langinfo.h.
38700         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
38701         undesirable behavior in non-C locales.  Instead, rely on localecharset.
38702         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
38703         * modules/regex (FILES): Remove m4/codeset.m4.
38704         (Depends-on): Add localcharset.  Remove strcase.
38705
38706 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38707
38708         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
38709         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
38710
38711 2007-02-13  Bruno Haible  <bruno@clisp.org>
38712
38713         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
38714         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38715
38716 2007-02-12  Bruno Haible  <bruno@clisp.org>
38717
38718         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
38719         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
38720         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
38721         time warning rather than a link error.
38722
38723 2007-02-12  Bruno Haible  <bruno@clisp.org>
38724
38725         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
38726         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
38727         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38728
38729 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
38730
38731         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
38732         args, not 2.
38733
38734 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
38735
38736         New module 'time', so that apps can include <time.h> as per
38737         POSIX and GNU instead of separate include files like time_r.h
38738         and timegm.h.  This implementation tries out a simpler approach
38739         for replacing decls in standard include files (as compared to
38740         the string module), somewhat as an experiment.
38741
38742         * config/srclist.txt: Comment out mktime.c for now.
38743         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
38744         since it doesn't apply any more.  Use generic wording instead.
38745         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
38746         'time'.
38747         * lib/time_.h, m4/time_h.m4, modules/time: New files.
38748         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
38749         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
38750         Don't include <sys/types.h>; no longer needed since we assume C89.
38751         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
38752         * lib/strftime.c: Likewise.
38753         * lib/time_r.c: Likewise.
38754         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
38755         * lib/nanosleep.c: Include <time.h> first, to check interface.
38756         * lib/strptime.c: Likewise.
38757         * lib/time_r.c: Likewise.
38758         * lib/timegm.c: Likewise.
38759         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
38760         needed.
38761         * lib/timegm.c: Don't include timegm.h; no longer needed.
38762         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
38763         time.h now handles any problems in that area.
38764         (struct timespec, nanosleep): Remove; time.h now arranges for these.
38765         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
38766         that time.h defines struct timespec.
38767         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
38768         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
38769         handles that.
38770         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
38771         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
38772         needed.  Set REPLACE_LOCALTIME.
38773         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
38774         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
38775         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
38776         nanosleep; time_h.m4 now does that.  Don't require
38777         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
38778         module handles this now.
38779         * modules/getdate (Depends-on): Remove timespec.  Add time.
38780         * modules/nanosleep (Depends-on): Likewise.
38781         * modules/stat-time (Depends-on): Likewise.
38782         * modules/nanosleep (Include): Include time.h, not timespec.h.
38783         * modules/strptime (Files): Remove lib/strptime.h.
38784         (Depends-on): Add extensions, time.
38785         (Include): Include time.h, not strptime.h.
38786         * modules/time_r (Files): Remove lib/time_r.h.
38787         (Depends-on): Add time.
38788         (Include): Include time.h, not time_r.h.
38789         * modules/timegm: Likewise.
38790         * modules/timespec (Description): Now does timespec-related decls
38791         of our own, instead of struct timespec itself.
38792         (Depends-on): Add time; remove extensions.
38793         (Maintainer): Add self.
38794         * modules/utimecmp (Depends-on): Add time; remove timespec.
38795         * modules/utimens (Depends-on): Likewise.
38796         * modules/xnanosleep (Depends-on): Likewise.
38797
38798 2007-02-11  Bruno Haible  <bruno@clisp.org>
38799
38800         * lib/c-strstr.c: Include allocsa.h.
38801         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38802         * lib/c-strcasestr.c: Include allocsa.h.
38803         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38804         * lib/strcasestr.c: Include allocsa.h.
38805         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38806         * lib/mbsstr.c: Include allocsa.h.
38807         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
38808         allocsa/freesa instead of malloc/free.
38809         * lib/mbscasestr.c: Include allocsa.h.
38810         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
38811         allocsa/freesa instead of malloc/free.
38812         * modules/c-strstr (Depends-on): Add allocsa.
38813         * modules/c-strcasestr (Depends-on): Likewise.
38814         * modules/strcasestr (Depends-on): Likewise.
38815         * modules/mbsstr (Depends-on): Likewise.
38816         * modules/mbscasestr (Depends-on): Likewise.
38817
38818 2007-02-11  Bruno Haible  <bruno@clisp.org>
38819
38820         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
38821
38822         * modules/mbsspn-tests: New file.
38823         * tests/test-mbsspn.sh: New file.
38824         * tests/test-mbsspn.c: New file.
38825
38826 2007-02-11  Bruno Haible  <bruno@clisp.org>
38827
38828         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
38829
38830         * modules/mbspbrk-tests: New file.
38831         * tests/test-mbspbrk.sh: New file.
38832         * tests/test-mbspbrk.c: New file.
38833
38834 2007-02-11  Bruno Haible  <bruno@clisp.org>
38835
38836         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
38837         unneeded cast.
38838
38839         * modules/mbscspn-tests: New file.
38840         * tests/test-mbscspn.sh: New file.
38841         * tests/test-mbscspn.c: New file.
38842
38843 2007-02-11  Bruno Haible  <bruno@clisp.org>
38844
38845         * modules/mbscasecmp-tests: New file.
38846         * tests/test-mbscasecmp.sh: New file.
38847         * tests/test-mbscasecmp.c: New file.
38848
38849 2007-02-11  Bruno Haible  <bruno@clisp.org>
38850
38851         Ensure O(n) worst-case complexity of mbscasestr.
38852         * lib/mbscasestr.c: Include stdbool.h.
38853         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
38854         functions.
38855         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
38856         the bookkeeping indicates that it's worth it.
38857         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
38858
38859         * modules/mbscasestr-tests: New file.
38860         * tests/test-mbscasestr1.c: New file.
38861         * tests/test-mbscasestr2.sh: New file.
38862         * tests/test-mbscasestr2.c: New file.
38863         * tests/test-mbscasestr3.sh: New file.
38864         * tests/test-mbscasestr3.c: New file.
38865         * tests/test-mbscasestr4.sh: New file.
38866         * tests/test-mbscasestr4.c: New file.
38867         * m4/locale-tr.m4: New file.
38868
38869 2007-02-11  Bruno Haible  <bruno@clisp.org>
38870
38871         Ensure O(n) worst-case complexity of mbsstr.
38872         * lib/mbsstr.c: Include stdbool.h.
38873         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
38874         functions.
38875         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
38876         bookkeeping indicates that it's worth it.
38877         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
38878
38879         * modules/mbsstr-tests: New file.
38880         * tests/test-mbsstr1.c: New file.
38881         * tests/test-mbsstr2.sh: New file.
38882         * tests/test-mbsstr2.c: New file.
38883         * tests/test-mbsstr3.sh: New file.
38884         * tests/test-mbsstr3.c: New file.
38885         * m4/locale-fr.m4: New file.
38886
38887 2007-02-11  Bruno Haible  <bruno@clisp.org>
38888
38889         * lib/mbsrchr.c (mbsrchr): Fix bug.
38890
38891         * modules/mbsrchr-tests: New file.
38892         * tests/test-mbsrchr.sh: New file.
38893         * tests/test-mbsrchr.c: New file.
38894
38895 2007-02-11  Bruno Haible  <bruno@clisp.org>
38896
38897         * lib/mbschr.c (mbschr): Fix bug.
38898
38899         * modules/mbschr-tests: New file.
38900         * tests/test-mbschr.sh: New file.
38901         * tests/test-mbschr.c: New file.
38902         * m4/locale-zh.m4: New file.
38903
38904 2007-02-11  Bruno Haible  <bruno@clisp.org>
38905
38906         Support for copying multibyte string iterators.
38907         * lib/mbiter.h: Include <string.h>.
38908         (mbiter_multi_copy): New function.
38909         (mbi_copy): New macro.
38910         * lib/mbuiter.h: Include <string.h>.
38911         (mbuiter_multi_copy): New function.
38912         (mbui_copy): New macro.
38913
38914 2007-02-11  Bruno Haible  <bruno@clisp.org>
38915
38916         New module mbslen.
38917         * modules/mbslen: New file.
38918         * lib/mbslen.c: New file.
38919         * lib/string_.h (mbslen): New declaration.
38920         * m4/mbslen.m4: New file.
38921         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38922         GNULIB_MBSLEN.
38923         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
38924         * MODULES.html.sh (Internationalization functions): Add mbslen.
38925
38926 2007-02-11  Bruno Haible  <bruno@clisp.org>
38927
38928         Ensure O(n) worst-case complexity of strcasestr substitute.
38929         * lib/strcasestr.c: Include stdbool.h.
38930         (knuth_morris_pratt): New function.
38931         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
38932         bookkeeping indicates that it's worth it.
38933         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
38934
38935         * modules/strcasestr-tests: New file.
38936         * tests/test-strcasestr.c: New file.
38937
38938 2007-02-11  Bruno Haible  <bruno@clisp.org>
38939
38940         Ensure O(n) worst-case complexity of c_strcasestr.
38941         * lib/c-strcasestr.c: Include stdbool.h, string.h.
38942         (knuth_morris_pratt): New function.
38943         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
38944         the bookkeeping indicates that it's worth it.
38945         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
38946
38947         * modules/c-strcasestr-tests: New file.
38948         * tests/test-c-strcasestr.c: New file.
38949
38950 2007-02-11  Bruno Haible  <bruno@clisp.org>
38951
38952         Ensure O(n) worst-case complexity of c_strstr.
38953         * lib/c-strstr.c: Include stdbool.h, string.h.
38954         (knuth_morris_pratt): New function.
38955         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
38956         bookkeeping indicates that it's worth it.
38957         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
38958
38959         * lib/c-strstr.c: Complete rewrite for maintainability.
38960
38961         * modules/c-strstr-tests: New file.
38962         * tests/test-c-strstr.c: New file.
38963
38964 2007-02-11  Bruno Haible  <bruno@clisp.org>
38965
38966         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
38967         5.2.1 and earlier, whereby \055 was treated just like the range
38968         delimiter '-'.
38969         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
38970
38971 2007-02-08  Bruno Haible  <bruno@clisp.org>
38972
38973         * modules/regex (Depends-on): Add stdbool.
38974         Reported by Dalibor Topic <robilad@kaffe.org>.
38975
38976 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
38977
38978         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
38979         Prefer returning from main to exiting from it.
38980         Remove unnecessary parens after sizeof.
38981
38982 2007-02-05  Bruno Haible  <bruno@clisp.org>
38983
38984         New module mbssep.
38985         * modules/mbssep: New file.
38986         * lib/mbssep.c: New file.
38987         * lib/string_.h (strsep): Add a conditional link warning.
38988         (mbssep): New declaration.
38989         * m4/mbssep.m4: New file.
38990         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38991         GNULIB_MBSSEP.
38992         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
38993         * MODULES.html.sh (Internationalization functions): Add mbssep.
38994
38995 2007-02-05  Bruno Haible  <bruno@clisp.org>
38996
38997         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
38998         Optimize search in case of 1 delimiter.
38999
39000 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
39001
39002         * lib/acl.h: Include sys/types.h before sys/acl.h.
39003
39004 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
39005
39006         Merge upstream fix for glibc bugzilla #3957:
39007
39008         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
39009
39010         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
39011         bit for RE_HAT_LISTS_NOT_NEWLINE.
39012         (build_charclass_op): Remove bogus comment.
39013
39014 2007-02-05  Simon Josefsson  <simon@josefsson.org>
39015
39016         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
39017
39018 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
39019
39020         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
39021         * lib/memmem.c [!defined _LIBC]: Include config.h.
39022
39023 2007-02-04  Bruno Haible  <bruno@clisp.org>
39024
39025         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
39026         warning message.
39027
39028 2007-02-04  Bruno Haible  <bruno@clisp.org>
39029
39030         New module mbstok_r.
39031         * modules/mbstok_r: New file.
39032         * lib/mbstok_r.c: New file.
39033         * lib/string_.h (strtok_r): Change argument names to match the
39034         comments. Add a conditional link warning.
39035         (mbstok_r): New declaration.
39036         * m4/mbstok_r.m4: New file.
39037         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39038         GNULIB_MBSTOK_R.
39039         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
39040         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
39041
39042 2007-02-04  Bruno Haible  <bruno@clisp.org>
39043
39044         New module mbsspn.
39045         * modules/mbsspn: New file.
39046         * lib/mbsspn.c: New file.
39047         * lib/string_.h (strspn): Add a conditional link warning.
39048         (mbsspn): New declaration.
39049         * m4/mbsspn.m4: New file.
39050         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39051         GNULIB_MBSSPN.
39052         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
39053         * MODULES.html.sh (Internationalization functions): Add mbsspn.
39054
39055 2007-02-04  Bruno Haible  <bruno@clisp.org>
39056
39057         New module mbspbrk.
39058         * modules/mbspbrk: New file.
39059         * lib/mbspbrk.c: New file.
39060         * lib/string_.h (strpbrk): Add a conditional link warning.
39061         (mbspbrk): New declaration.
39062         * m4/mbspbrk.m4: New file.
39063         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39064         GNULIB_MBSPBRK.
39065         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
39066         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
39067
39068 2007-02-04  Bruno Haible  <bruno@clisp.org>
39069
39070         New module mbscspn.
39071         * modules/mbscspn: New file.
39072         * lib/mbscspn.c: New file.
39073         * lib/string_.h (strcspn): Add a conditional link warning.
39074         (mbscspn): New declaration.
39075         * m4/mbscspn.m4: New file.
39076         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39077         GNULIB_MBSCSPN.
39078         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
39079         * MODULES.html.sh (Internationalization functions): Add mbscspn.
39080
39081 2007-02-04  Bruno Haible  <bruno@clisp.org>
39082
39083         New module mbscasestr, reduced goal of strcasestr.
39084         * modules/mbscasestr: New file.
39085         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
39086         (mbscasestr): Renamed from strcasestr.
39087         * lib/strcasestr.c: Don't include mbuiter.h.
39088         (strcasestr): Remove support for multibyte locales.
39089         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
39090         Change the conditional link warning.
39091         (mbscasestr): New declaration.
39092         * m4/mbscasestr.m4: New file.
39093         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
39094         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
39095         REPLACE_STRCASESTR.
39096         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
39097         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39098         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
39099         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
39100         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
39101         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
39102         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
39103         (Depends-on): Remove mbuiter.
39104         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
39105
39106 2007-02-04  Bruno Haible  <bruno@clisp.org>
39107
39108         Simplify handling of strncasecmp.
39109         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
39110         the conditional link warning.
39111         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39112         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
39113         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
39114         * modules/strcase (configure.ac): Don't invoke
39115         gl_STRING_MODULE_INDICATOR.
39116         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
39117
39118 2007-02-04  Bruno Haible  <bruno@clisp.org>
39119
39120         New module mbscasecmp, reduced goal of strcasecmp.
39121         * modules/mbscasecmp: New file.
39122         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
39123         (mbscasecmp): Renamed from strcasecmp.
39124         * lib/strcasecmp.c: Don't include mbuiter.h.
39125         (strcasecmp): Remove support for multibyte locales.
39126         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
39127         Change the conditional link warning.
39128         (mbscasecmp): New declaration.
39129         * m4/mbscasecmp.m4: New file.
39130         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
39131         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
39132         REPLACE_STRCASECMP.
39133         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
39134         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39135         GNULIB_MBSCASECMP.
39136         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
39137         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
39138         * modules/strcase (Files): Remove m4/mbrtowc.m4.
39139         (Depends-on): Remove mbuiter.
39140         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
39141
39142 2007-02-04  Bruno Haible  <bruno@clisp.org>
39143
39144         New module mbsstr. Remove module strstr.
39145         * modules/mbsstr: New file.
39146         * modules/strstr: Remove file.
39147         * lib/mbsstr.c: Renamed from lib/strstr.c.
39148         (mbsstr): Renamed from strstr.
39149         * lib/string_.h (strstr): Remove declaration. Change the conditional
39150         link warning.
39151         (mbsstr): New declaration.
39152         * m4/mbsstr.m4: New file.
39153         * m4/strstr.m4: Remove file.
39154         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
39155         REPLACE_STRSTR.
39156         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
39157         Don't initialize GNULIB_STRSTR.
39158         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
39159         substitute GNULIB_STRSTR and REPLACE_STRSTR.
39160         * MODULES.html.sh (Internationalization functions): Add mbsstr.
39161         (Support for systems lacking ANSI C 89): Remove strstr.
39162
39163 2007-02-04  Bruno Haible  <bruno@clisp.org>
39164
39165         New module mbsrchr.
39166         * modules/mbsrchr: New file.
39167         * lib/mbsrchr.c: New file.
39168         * lib/string_.h (strrchr): Add a conditional link warning.
39169         (mbsrchr): New declaration.
39170         * m4/mbsrchr.m4: New file.
39171         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39172         GNULIB_MBSRCHR.
39173         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
39174         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
39175
39176 2007-02-04  Bruno Haible  <bruno@clisp.org>
39177
39178         New module mbschr.
39179         * modules/mbschr: New file.
39180         * lib/mbschr.c: New file.
39181         * lib/string_.h (strchr): Add a conditional link warning.
39182         (mbschr): New declaration.
39183         * m4/mbschr.m4: New file.
39184         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39185         GNULIB_MBSCHR.
39186         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
39187         * MODULES.html.sh (Internationalization functions): Add mbschr.
39188
39189 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
39190
39191         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
39192
39193         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
39194
39195 2007-02-04  Bruno Haible  <bruno@clisp.org>
39196
39197         New module description section 'configure.ac-early'.
39198         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
39199         (func_get_autoconf_early_snippet): New function.
39200         (func_import, func_create_testdir): Use it. Remove special cases for
39201         modules 'extensions' and 'lock'.
39202         * modules/extensions (configure.ac-early): Require
39203         gl_USE_SYSTEM_EXTENSIONS.
39204         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
39205
39206 2007-02-04  Bruno Haible  <bruno@clisp.org>
39207
39208         Make use of gcj-4.3's -fsource and -ftarget option.
39209         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
39210         and if so try the options -fsource and -ftarget.
39211         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
39212         source_version, ftarget_option, target_version arguments.
39213         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
39214         (is_envjavac_oldgcj_14_14_usable): Renamed from
39215         is_envjavac_gcj_14_14_usable.
39216         (is_envjavac_oldgcj_14_13_usable): Renamed from
39217         is_envjavac_gcj_14_13_usable.
39218         (is_gcj_present): Update.
39219         (is_gcj_43, is_gcj43_usable): New functions.
39220         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
39221         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
39222         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
39223         try the options -fsource and -ftarget.
39224
39225 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
39226
39227         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
39228         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
39229         larger value.
39230
39231 2007-02-03  Jim Meyering  <jim@meyering.net>
39232
39233         Give tools a better chance to allocate space for very large buffers.
39234         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
39235
39236         Make pwd and readlink work also when run with an unreadable parent dir
39237         on systems with openat support.
39238         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
39239         provided getcwd function, even when we have openat support.
39240         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
39241
39242 2007-02-02  Bruno Haible  <bruno@clisp.org>
39243
39244         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
39245         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
39246         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
39247         portability problems if one of these functions is only used on specific
39248         platforms.
39249         Reported by Paul Eggert.
39250
39251 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
39252
39253         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
39254         is causing more trouble than it's curing.
39255         * lib/regex_internal.h (__mempcpy): Remove.
39256         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
39257         (and make the code a tad smaller to boot).
39258         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
39259
39260 2007-02-02  Jim Meyering  <jim@meyering.net>
39261
39262         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
39263         section, not in the Makefile.am: one.
39264
39265 2007-02-02  Eric Blake  <ebb9@byu.net>
39266
39267         * lib/strchrnul.c: Always include config.h first.
39268
39269         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
39270         gnulib strstr is not necessary here.
39271
39272 2007-02-02  Simon Josefsson  <simon@josefsson.org>
39273
39274         * m4/socklen.m4: Fix typo.
39275
39276 2007-02-02  Eric Blake  <ebb9@byu.net>
39277
39278         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
39279         * modules/netinet_in (Makefile.am): Likewise.
39280
39281 2007-02-01  Bruno Haible  <bruno@clisp.org>
39282
39283         * lib/string_.h (GL_LINK_WARNING): New macro.
39284         (strcasecmp, strstr, strcasestr): If provided by the system,
39285         conditionally define as a macro that leads to a warning instead of to
39286         an error.
39287         (strncasecmp): Conditionally define as a macro that leads to a warning.
39288
39289 2007-02-01  Karl Berry  <karl@gnu.org>
39290
39291         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
39292
39293 2007-02-01  Bruno Haible  <bruno@clisp.org>
39294
39295         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
39296         renamings.
39297
39298 2007-02-01  Eric Blake  <ebb9@byu.net>
39299
39300         * modules/regex (Depends-on): Revert dependence on mempcpy.
39301         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
39302         module's definition of mempcpy.
39303         Reported by Paul Eggert.
39304
39305 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
39306
39307         * lib/string_.h: If the gnulib module XYZ is not present, undefine
39308         the symbol XYZ before redefining it.  This fixes a problem with
39309         programs that don't use XYZ, when compiled on systems that define
39310         XYZ to something else.
39311
39312 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
39313
39314         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
39315         occurs when "mkdir -m foo" creates a setgid directory that is (1)
39316         writeable to group or other and (2) is intended to have a special
39317         mode bit that is set or cleared.  In such a case, the directory
39318         should be neither group- nor other-writeable until the special
39319         mode bits are right.
39320
39321 2007-01-31  Eric Blake  <ebb9@byu.net>
39322
39323         * modules/mountlist (Depends-on): Add strstr.
39324
39325         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
39326         bug.
39327         * modules/string (Makefile.am): Remove redundant replacement.
39328         * modules/regex (Depends-on): Add mempcpy.
39329
39330 2007-01-31  Bruno Haible  <bruno@clisp.org>
39331
39332         New module description field 'Link'.
39333         * gnulib-tool (func_usage): Document --extract-link-directive.
39334         (sed_extract_prog): Recognize 'Link' directive.
39335         (func_get_link_directive): New function.
39336         (func_import): Show summary of link directives.
39337         Handle --extract-link-directive option.
39338         * modules/acl (Link): New section.
39339         * modules/clock-time (Link): New section.
39340         * modules/euidaccess (Link): New section.
39341         * modules/gettext (Link): New section.
39342         * modules/iconv (Link): New section.
39343         * modules/lock (Link): New section.
39344         * modules/nanosleep (Link): New section.
39345         * modules/readline (Link): New section.
39346
39347 2007-01-27  Bruno Haible  <bruno@clisp.org>
39348
39349         Enforce the use of gnulib modules for unportable <string.h> functions.
39350         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
39351         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
39352         (gl_HEADER_STRING_H_BODY): Require it.
39353         * lib/string_.h: If the gnulib module XYZ is not present, redefine
39354         the symbol XYZ to one that gives a link error.
39355         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
39356         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
39357         * modules/mempcpy (configure.ac): Likewise.
39358         * modules/memrchr (configure.ac): Likewise.
39359         * modules/stpcpy (configure.ac): Likewise.
39360         * modules/stpncpy (configure.ac): Likewise.
39361         * modules/strcase (configure.ac): Likewise.
39362         * modules/strcasestr (configure.ac): Likewise.
39363         * modules/strchrnul (configure.ac): Likewise.
39364         * modules/strdup (configure.ac): Likewise.
39365         * modules/strndup (configure.ac): Likewise.
39366         * modules/strnlen (configure.ac): Likewise.
39367         * modules/strpbrk (configure.ac): Likewise.
39368         * modules/strsep (configure.ac): Likewise.
39369         * modules/strstr (configure.ac): Likewise.
39370         * modules/strtok_r (configure.ac): Likewise.
39371
39372 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
39373
39374         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
39375
39376 2007-01-30  Jim Meyering  <jim@meyering.net>
39377
39378         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
39379
39380 2007-01-29  Bruno Haible  <bruno@clisp.org>
39381
39382         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
39383         * lib/execute.c: Likewise.
39384         * lib/pipe.c: Likewise.
39385         * lib/printf-args.h: Likewise.
39386         * lib/printf-args.c: Likewise.
39387         * lib/printf-parse.c: Likewise.
39388         * lib/vasnprintf.c: Likewise.
39389
39390 2007-01-29  Eric Blake  <ebb9@byu.net>
39391
39392         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
39393         declaration.
39394
39395 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
39396
39397         * lib/strptime.h (strptime): Use 'restrict' for args where
39398         POSIX requires this.
39399         * lib/strptime.c (strptime): Likewise.
39400         Change license notice from LGPL to GPL, since gnulib-tool will
39401         change this as needed.
39402         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
39403         defined.
39404         Include "strptime.h" first, to check interface.
39405         Do not #undef _LIBC and _NL_CURRENT.
39406         Do not include <stdlib.h>; no longer needed.
39407         Include "time_r.h" and declare ptime_locale_status
39408         only if _LIBC is not defined.
39409         (__P): Remove unused macro.
39410         (match_string): Bring back glibc version, but use it only if _LIBC
39411         is defined.
39412         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
39413         Remove unnecessary assertion and abort() call.
39414         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
39415         * m4/strptime.m4: Fix serial number comment.
39416         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
39417         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
39418         (Depends-on): Add time_r.
39419
39420 2007-01-29  Bruno Haible  <bruno@clisp.org>
39421
39422         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39423         strptime.
39424         * modules/strptime (Depends-on): Add stdbool.
39425         * lib/strptime.h: Include <time.h> always. Add comments.
39426
39427 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39428
39429         * modules/strptime: New file.
39430         * lib/strptime.h: New file.
39431         * lib/strptime.c: New file.
39432         * m4/strptime.m4: New file.
39433
39434 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
39435
39436         * MODULES.html.sh: New module mpsort.
39437         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
39438
39439         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
39440         a circularity problem with HP-UX ia64 reported by Bob Proulx in
39441         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
39442         All uses changed.
39443         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
39444         All uses changed.
39445         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
39446         to _Restrict_.
39447         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
39448         the parameter matches the prototype.
39449
39450 2007-01-28  Jim Meyering  <jim@meyering.net>
39451
39452         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
39453         sys/time.h here, reverting that part of the previous patch:
39454         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
39455
39456 2007-01-28  Bruno Haible  <bruno@clisp.org>
39457
39458         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
39459         value of $(SYS_TIME_H).
39460         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
39461         remove it conditionally, too. [added by Jim Meyering]
39462         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
39463         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
39464         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
39465         GETTIMEOFDAY_REPLACEMENT to 1.
39466
39467 2007-01-28  Bruno Haible  <bruno@clisp.org>
39468
39469         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
39470         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
39471         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
39472         Set UNISTD_H instead of UNISTD_H2.
39473         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
39474
39475 2007-01-28  Bruno Haible  <bruno@clisp.org>
39476
39477         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
39478         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
39479
39480 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39481
39482         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
39483         (func_create_testdir): Ensure C locale for `grep' and `tr'
39484         character ranges.
39485         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
39486         ACLOCAL_AMFLAGS parsing state machine.
39487
39488 2007-01-27  Bruno Haible  <bruno@clisp.org>
39489
39490         * modules/unistr/base: Update.
39491
39492 2007-01-27  Bruno Haible  <bruno@clisp.org>
39493
39494         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
39495         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
39496         * modules/unistr/u32-mbtouc-unsafe: Renamed from
39497         modules/unistr/u32-mbtouc.
39498         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
39499         * lib/unistr.h: Update.
39500         * lib/linebreak.c: Update.
39501         * modules/unistr/u32-mbtouc: Renamed from
39502         modules/unistr/u32-mbtouc-safe.
39503         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
39504         * lib/unistr.h: Update.
39505         * lib/unistr/u32-to-u8.c: Update.
39506         * lib/unistr/u32-to-u16.c: Update.
39507
39508 2007-01-27  Bruno Haible  <bruno@clisp.org>
39509
39510         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
39511         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
39512         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
39513         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
39514         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
39515         * modules/unistr/u16-mbtouc-unsafe: Renamed from
39516         modules/unistr/u16-mbtouc.
39517         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
39518         * lib/unistr.h: Update.
39519         * lib/linebreak.c: Update.
39520         * modules/linebreak: Update.
39521         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
39522         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
39523         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
39524         * modules/unistr/u16-mbtouc: Renamed from
39525         modules/unistr/u16-mbtouc-safe.
39526         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
39527         * lib/unistr.h: Update.
39528         * lib/unistr/u16-to-u8.c: Update.
39529         * modules/unistr/u16-to-u8: Update.
39530         * lib/unistr/u16-to-u32.c: Update.
39531         * modules/unistr/u16-to-u32: Update.
39532
39533 2007-01-27  Bruno Haible  <bruno@clisp.org>
39534
39535         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
39536         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
39537         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
39538         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
39539         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
39540         * modules/unistr/u8-mbtouc-unsafe: Renamed from
39541         modules/unistr/u8-mbtouc.
39542         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
39543         * lib/unistr.h: Update.
39544         * lib/striconveh.c: Update.
39545         * modules/striconveh: Update.
39546         * lib/linebreak.c: Update.
39547         * modules/linebreak: Update.
39548         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
39549         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
39550         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
39551         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
39552         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
39553         * lib/unistr.h: Update.
39554         * lib/striconveh.c: Update.
39555         * modules/striconveh: Update.
39556         * lib/unistr/u8-to-u16.c: Update.
39557         * modules/unistr/u8-to-u16: Update.
39558         * lib/unistr/u8-to-u32.c: Update.
39559         * modules/unistr/u8-to-u32: Update.
39560
39561 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39562
39563         Sync from Libtool.
39564         * lib/argz.c: Do not include strings.h nor memory.h, include
39565         string.h unconditionally.  Patch by Simon Josefsson.
39566
39567 2007-01-27  Bruno Haible  <bruno@clisp.org>
39568
39569         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
39570         from gl_HEADER_STRING_H_BODY.
39571         (gl_HEADER_STRING_H_BODY): Require it.
39572         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
39573         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
39574         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
39575         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
39576         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
39577         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
39578         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39579         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
39580         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
39581         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
39582         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
39583         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
39584         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
39585         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39586         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
39587
39588 2007-01-27  Bruno Haible  <bruno@clisp.org>
39589
39590         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
39591         check_PROGRAMS into noinst_PROGRAMS.
39592         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
39593         check_PROGRAMS in this case.
39594         (func_import): Set for_test to false.
39595         (func_create_testdir): Set for_test to true.
39596
39597 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39598             Bruno Haible  <bruno@clisp.org>
39599
39600         * modules/strcasestr (Files): Remove lib/strcasestr.h.
39601         (Depends-on): Add string.
39602         (Includes): Use <string.h> instead of strcasestr.h.
39603         * modules/string (Makefile.am): Also substitute the value of
39604         REPLACE_STRCASESTR.
39605         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
39606         assume strcasestr is declared in <string.h> not <strings.h>. Also
39607         set REPLACE_STRCASESTR.
39608         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
39609         REPLACE_STRCASESTR.
39610         * lib/strcasestr.h: Remove file.
39611         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
39612         * lib/string_.h (strcasestr): New declaration.
39613
39614 2007-01-27  Bruno Haible  <bruno@clisp.org>
39615
39616         * lib/string_.h: Use 'extern'.
39617
39618 2007-01-27  Jim Meyering  <jim@meyering.net>
39619
39620         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
39621         of set-but-not-used local, "q".
39622
39623         * lib/mempcpy.c: Include <config.h> before <string.h>.
39624         This fixes a compilation error on HP-UX, due to the system's
39625         "restrict"-using mempcpy prototype.
39626
39627 2007-01-26  Bruno Haible  <bruno@clisp.org>
39628
39629         Small optimization.
39630         * lib/javacomp.c: Include c-strstr.h.
39631          (is_envjavac_gcj): Use c_strstr instead of strstr.
39632         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
39633
39634 2007-01-26  Bruno Haible  <bruno@clisp.org>
39635
39636         * MODULES.html.sh (Unicode string functions): Add the new modules.
39637
39638         * modules/uniconv/u32-strconv-to-locale: New file.
39639         * lib/uniconv/u32-strconv-to-locale.c: New file.
39640
39641         * modules/uniconv/u16-strconv-to-locale: New file.
39642         * lib/uniconv/u16-strconv-to-locale.c: New file.
39643
39644         * modules/uniconv/u8-strconv-to-locale: New file.
39645         * lib/uniconv/u8-strconv-to-locale.c: New file.
39646
39647         * modules/uniconv/u32-strconv-from-locale: New file.
39648         * lib/uniconv/u32-strconv-from-locale.c: New file.
39649
39650         * modules/uniconv/u16-strconv-from-locale: New file.
39651         * lib/uniconv/u16-strconv-from-locale.c: New file.
39652
39653         * modules/uniconv/u8-strconv-from-locale: New file.
39654         * lib/uniconv/u8-strconv-from-locale.c: New file.
39655
39656         * modules/uniconv/u32-strconv-to-enc: New file.
39657         * lib/uniconv/u32-strconv-to-enc.c: New file.
39658         * modules/uniconv/u32-strconv-to-enc-tests: New file.
39659         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
39660
39661         * modules/uniconv/u16-strconv-to-enc: New file.
39662         * lib/uniconv/u16-strconv-to-enc.c: New file.
39663         * lib/uniconv/u-strconv-to-enc.h: New file.
39664         * modules/uniconv/u16-strconv-to-enc-tests: New file.
39665         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
39666
39667         * modules/uniconv/u8-strconv-to-enc: New file.
39668         * lib/uniconv/u8-strconv-to-enc.c: New file.
39669         * modules/uniconv/u8-strconv-to-enc-tests: New file.
39670         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
39671
39672         * modules/uniconv/u32-strconv-from-enc: New file.
39673         * lib/uniconv/u32-strconv-from-enc.c: New file.
39674         * modules/uniconv/u32-strconv-from-enc-tests: New file.
39675         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
39676
39677         * modules/uniconv/u16-strconv-from-enc: New file.
39678         * lib/uniconv/u16-strconv-from-enc.c: New file.
39679         * modules/uniconv/u16-strconv-from-enc-tests: New file.
39680         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
39681
39682         * modules/uniconv/u8-strconv-from-enc: New file.
39683         * lib/uniconv/u8-strconv-from-enc.c: New file.
39684         * lib/uniconv/u-strconv-from-enc.h: New file.
39685         * modules/uniconv/u8-strconv-from-enc-tests: New file.
39686         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
39687
39688         * modules/uniconv/u32-conv-from-enc: New file.
39689         * lib/uniconv/u32-conv-from-enc.c: New file.
39690         * modules/uniconv/u32-conv-from-enc-tests: New file.
39691         * tests/uniconv/test-u32-conv-from-enc.c: New file.
39692
39693         * modules/uniconv/u16-conv-from-enc: New file.
39694         * lib/uniconv/u16-conv-from-enc.c: New file.
39695         * lib/uniconv/u-conv-from-enc.h: New file.
39696         * modules/uniconv/u16-conv-from-enc-tests: New file.
39697         * tests/uniconv/test-u16-conv-from-enc.c: New file.
39698
39699         * modules/uniconv/u8-conv-from-enc: New file.
39700         * lib/uniconv/u8-conv-from-enc.c: New file.
39701         * modules/uniconv/u8-conv-from-enc-tests: New file.
39702         * tests/uniconv/test-u8-conv-from-enc.c: New file.
39703
39704         * modules/uniconv/base: New file.
39705         * lib/uniconv.h: New file.
39706
39707 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
39708
39709         * doc/gnulib-tool.texi (Initial import): Update to match current
39710         behavior with strdup module.
39711         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
39712         * lib/memmem.h: Remove; all uses removed.  This is now done
39713         by <string.h>.
39714         * lib/mempcpy.h: Likewise.
39715         * lib/memrchr.h: Likewise.
39716         * lib/stpcpy.h: Likewise.
39717         * lib/stpncpy.h: Likewise.
39718         * lib/strcase.h: Likewise.
39719         * lib/strchrnul.h: Likewise.
39720         * lib/strdup.h: Likewise.
39721         * lib/strndup.h: Likewise.
39722         * lib/strnlen.h: Likewise.
39723         * lib/strpbrk.h: Likewise.
39724         * lib/strsep.h: Likewise.
39725         * lib/strstr.h: Likewise.
39726         * lib/strtok_r.h: Likewise.
39727         * lib/string_.h: New file.
39728         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
39729         Rely on <string.h> instead.
39730         * lib/canon-host.c: Likewise.
39731         * lib/chdir-long.c: Likewise.
39732         * lib/concatpath.c: Likewise.
39733         * lib/exclude.c: Likewise.
39734         * lib/fchdir.c: Likewise.
39735         * lib/getaddrinfo.c: Likewise.
39736         * lib/getcwd.c: Likewise.
39737         * lib/getsubopt.c: Likewise.
39738         * lib/glob.c: Likewise.
39739         * lib/hard-locale.c: Likewise.
39740         * lib/iconvme.c: Likewise.
39741         * lib/javacomp.c: Likewise.
39742         * lib/mempcpy.c: Likewise.
39743         * lib/memrchr.c: Likewise.
39744         * lib/regex_internal.h: Likewise.
39745         * lib/stpncpy.c: Likewise.
39746         * lib/strcasecmp.c: Likewise.
39747         * lib/strchrnul.c: Likewise.
39748         * lib/strdup.c: Likewise.
39749         * lib/striconv.c: Likewise.
39750         * lib/striconveh.c: Likewise.
39751         * lib/striconveha.c: Likewise.
39752         * lib/strncasecmp.c: Likewise.
39753         * lib/strndup.c: Likewise.
39754         * lib/strnlen.c: Likewise.
39755         * lib/strsep.c: Likewise.
39756         * lib/strstr.c: Likewise.
39757         * lib/strtok_r.c: Likewise.
39758         * lib/userspec.c: Likewise.
39759         * lib/w32spawn.h: Likewise.
39760         * lib/xstrndup.c: Likewise.
39761         * lib/mountlist.c (strstr): Remove decl.
39762         * m4/string_h.m4: New file.
39763         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
39764         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
39765         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
39766         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
39767         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
39768         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
39769         Set REPLACE_STRCASECMP if necessary.
39770         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
39771         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
39772         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
39773         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
39774         HAVE_DECL_STRDUP if necessary.
39775         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
39776         since gl_FUNC_STRNDUP does that now.
39777         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
39778         Check for decl here...
39779         (gl_PREREQ_STRNLEN): ... not here.
39780         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
39781         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
39782         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
39783         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
39784         necessary.
39785         * modules/string: New file.
39786         * modules/memmem (Files): Remove special-purpose include file.
39787         (Depends-on): Add string.
39788         (Include): Include <string.h>, not the removed file.
39789         * modules/mempcpy: Likewise.
39790         * modules/memrchr: Likewise.
39791         * modules/stpcpy: Likewise.
39792         * modules/stpncpy: Likewise.
39793         * modules/strcase: Likewise.
39794         * modules/strchrnul: Likewise.
39795         * modules/strdup: Likewise.
39796         * modules/strndup: Likewise.
39797         * modules/strnlen: Likewise.
39798         * modules/strpbrk: Likewise.
39799         * modules/strsep: Likewise.
39800         * modules/strstr: Likewise.
39801         * modules/strtok_r: Likewise.
39802         * tests/test-dirname.c: Don't include "strdup.h", since
39803         <string.h> now suffices.
39804         * tests/test-memmem.c: Don't include "memmem.h", since
39805         <string.h> now suffices.
39806
39807 2007-01-25  Bruno Haible  <bruno@clisp.org>
39808
39809         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
39810         *resultp is 0.
39811
39812         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
39813         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
39814         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
39815         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
39816
39817         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
39818         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
39819         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
39820         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
39821         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
39822         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
39823
39824 2007-01-24  Bruno Haible  <bruno@clisp.org>
39825
39826         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
39827         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
39828         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
39829         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
39830         gl_FUNC_FTS_CORE.
39831         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
39832         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
39833         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
39834         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
39835         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
39836         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
39837         gl_FUNC_FCHOWNAT.
39838         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
39839         gl_FUNC_STRFTIME.
39840         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
39841         Reported by Ralf Wildenhues.
39842
39843 2007-01-24  Bruno Haible  <bruno@clisp.org>
39844
39845         Drop AC_REQUIRE calls that are redundant with the module dependencies.
39846         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
39847         gl_GETADDRINFO.
39848         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
39849         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
39850         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
39851
39852 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
39853
39854         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
39855         Don't use 'exit'; just return from 'main'.
39856         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
39857
39858         * lib/fnmatch_.h: Readjust white space and comments to match
39859         glibc, to avoid spurious diffs.
39860
39861 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39862
39863         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
39864         2004-12-01 change by Jakub Jelinek, since this code won't compile
39865         if !LIBC.  Problem reported by Bob Proulx.
39866
39867 2007-01-23  Bruno Haible  <bruno@clisp.org>
39868
39869         * lib/striconveh.c: Include c-strcaseeq.h.
39870         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
39871         * modules/striconveh (Depends-on): Add c-strcaseeq.
39872
39873 2007-01-23  Bruno Haible  <bruno@clisp.org>
39874
39875         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
39876
39877         * modules/c-strcaseeq: New file.
39878         * lib/c-strcaseeq.h: New file.
39879
39880         * modules/streq: New file.
39881         * lib/streq.h: New file.
39882
39883 2007-01-23  Bruno Haible  <bruno@clisp.org>
39884
39885         * modules/striconveha-tests: New file.
39886         * tests/test-striconveha.c: New file.
39887
39888         * lib/striconveha.h: Include <stdbool.h>.
39889         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
39890         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
39891         (mem_iconveha_notranslit): Renamed from mem_iconveha.
39892         (mem_iconveha): New function.
39893         (str_iconveha_notranslit): Renamed from str_iconveha.
39894         (str_iconveha): New function.
39895         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
39896         c-strcase.
39897
39898 2007-01-23  Bruno Haible  <bruno@clisp.org>
39899
39900         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
39901         encodings without forgiving before trying any encoding with handler.
39902         (str_iconveha): Try all encodings without forgiving before trying any
39903         encoding with handler.
39904
39905 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39906
39907         Import the following changes from libc.
39908
39909         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
39910
39911         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
39912
39913         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
39914
39915         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
39916         normal_bracket label.
39917
39918         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
39919
39920         [BZ #361]
39921         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
39922         to normal_bracket after fetching the next character.
39923
39924 2007-01-22  Bruno Haible  <bruno@clisp.org>
39925
39926         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
39927         argument.
39928         * lib/striconveh.c (iconv_carefully_1): New function.
39929         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
39930         argument.
39931         (str_cd_iconveh): Update.
39932         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
39933         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
39934         * tests/test-striconveh.c (MAGIC): New macro.
39935         (new_offsets): New function.
39936         (main): Test call with and without offsets.
39937
39938 2007-01-22  Bruno Haible  <bruno@clisp.org>
39939
39940         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
39941         * modules/sys_select (Makefile.am): Likewise.
39942         * modules/sys_socket (Makefile.am): Likewise.
39943         * modules/sys_time (Makefile.am): Likewise.
39944
39945 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
39946
39947         * modules/gettimeofday (License): Change from GPL to LGPL, since
39948         gettimeofday is a library function.
39949
39950 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39951
39952         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
39953
39954 2007-01-21  Bruno Haible  <bruno@clisp.org>
39955
39956         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
39957
39958 2007-01-21  Bruno Haible  <bruno@clisp.org>
39959
39960         * modules/striconveha: New file.
39961         * lib/striconveha.h: New file.
39962         * lib/striconveha.c: New file.
39963         * MODULES.html.sh (Internationalization functions): Add striconveha.
39964         * lib/striconv.c (str_iconv): Optimize the case of an empty input
39965         string.
39966         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
39967
39968 2007-01-21  Bruno Haible  <bruno@clisp.org>
39969
39970         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
39971         * lib/striconveh.c (str_iconveh): Likewise.
39972
39973 2007-01-21  Bruno Haible  <bruno@clisp.org>
39974
39975         * lib/striconveh.h (mem_iconveh): New declaration.
39976         * lib/striconveh.c (mem_iconveh): New function.
39977         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
39978
39979 2007-01-21  Bruno Haible  <bruno@clisp.org>
39980
39981         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
39982
39983         * lib/striconveh.h (mem_cd_iconveh): Change specification.
39984         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
39985         original result buffer.
39986         (str_cd_iconveh): Update.
39987         * tests/test-striconveh.c (main): Update.
39988
39989         * lib/striconv.h (mem_cd_iconv): Change specification.
39990         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
39991         result buffer.
39992         (str_cd_iconv): Update.
39993         * tests/test-striconv.c (main): Update.
39994
39995 2007-01-21  Bruno Haible  <bruno@clisp.org>
39996
39997         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
39998
39999 2007-01-20  Jim Meyering  <jim@meyering.net>
40000
40001         * lib/userspec.c (parse_with_separator): If a user or group string
40002         starts with "+", skip the corresponding name-to-ID look-up, since
40003         such a look-up must fail: user and group names may not include "+".
40004
40005 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
40006
40007         * lib/poll.c: Include sys/time.h and time.h unconditionally,
40008         since we now assume the sys_time module.
40009         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
40010         check for sys/time.h; no longer needed.
40011         * modules/poll (Depends-on): Depend on sys_time.
40012
40013 2007-01-18  Bruno Haible  <bruno@clisp.org>
40014
40015         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
40016         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
40017
40018         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
40019         gettimeofday.
40020
40021         * tests/test-gettimeofday.c: Include <time.h>.
40022         (dummy): Remove variable.
40023
40024         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
40025         gl_HEADER_SYS_TIME_H.
40026         (gl_HEADER_SYS_TIME_H): New macro.
40027
40028         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
40029         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40030         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
40031         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
40032         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40033         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
40034         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
40035         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40036         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
40037         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
40038         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40039
40040         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
40041         last change; it caused a compilation error when cross-compiling to
40042         Cygwin.
40043
40044 2007-01-18  Jim Meyering  <jim@meyering.net>
40045
40046         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
40047         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
40048         than the race-prone "test -d sys || mkdir sys".
40049         (configure.ac): Use AC_PROG_MKDIR_P.
40050         * modules/sys_select: Likewise.
40051         * modules/sys_socket: Likewise.
40052         * modules/sys_time: Likewise.
40053
40054 2007-01-18  Eric Blake  <ebb9@byu.net>
40055
40056         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
40057         replace gettimeofday.
40058         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
40059         name, to avoid infinite recursion.
40060
40061 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
40062
40063         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
40064         module sys_time.
40065         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
40066         assume timespec.h defines struct timeval.
40067         * lib/settime.c: Likewise.
40068         * lib/utimens.c: Likewise.
40069         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
40070         since we now assume the gettimeofday module.
40071         * lib/tempname.c (__gen_tempname): Likewise.
40072         * lib/gettimeofday.h: Remove.
40073         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
40074         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
40075         Include <time.h>, for 'time()'.
40076         (localtime_buffer_addr): Also use this workaround if
40077         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
40078         to simplify the uses.  All uses changed.
40079         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
40080         that #undef is inside {}, and 'const' follows type name consistently.
40081         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
40082         (gettimeofday): Do not use the maximum possible value for
40083         tv->tv_usec, since that might break usages other than ls.c.
40084         Instead, we'll leave ls.c alone.  This undoes today's patch
40085         by Bruno.  Add a compile-time warning for 1s-clock resolution;
40086         we've never observed the problem but might as well keep the
40087         canary.
40088         * lib/nanosleep.c: Include timespec.h first, for interface check.
40089         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
40090         now assume the sys_time module.
40091         * lib/tempname.c: Likewise.
40092         * lib/timespec.h: Likewise.
40093         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
40094         needed.
40095         * lib/strftime.c: Likewise.
40096         * lib/timespec.h: Likewise.
40097         * lib/posixtm.c: Include posixtm.h first, for interface check.
40098         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
40099         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
40100         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
40101         * lib/sys_time_.h: New file.
40102         * lib/timespec.h (struct timespec): Use long int, not long.
40103         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
40104         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
40105         Remove obsolescent call to AC_HEADER_TIME.
40106         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
40107         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40108         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
40109         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
40110         Likewise.
40111         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
40112         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
40113         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
40114         into the sys_time module.  Check for gettimeofday just once.
40115         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
40116         for gettimeofday signature to just check the signature.  Merely
40117         compile it, since linking doesn't test signature.  Improve test for
40118         whether gettimeofday.o is actually needed.
40119         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
40120         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
40121         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
40122         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40123         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
40124         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
40125         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
40126         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
40127         than worrying about sys/time.h.
40128         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
40129         Don't bother worrying about TIME_WITH_SYS_TIME.
40130         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
40131         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
40132         * m4/sys_time_h.m4: New file.
40133         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
40134         Don't include sys/time.h.  Return from main rather than exiting.
40135         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
40136         all uses changed.
40137         * modules/gethrxtime (Depends-on): Add sys_time.
40138         * modules/gettime (Depends-on): Likewise.
40139         * modules/gettimeofday (Depends-on): Likewise.
40140         * modules/nanosleep (Depends-on): Likewise.
40141         * modules/settime (Depends-on): Likewise.
40142         * modules/tempname (Depends-on): Likewise.
40143         * modules/utimens (Depends-on): Likewise.
40144         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
40145         (Include:) Change back to <sys/time.h>.
40146         (Maintainer:) Add self.
40147         * modules/sys_time: New file.
40148         * modules/tempname (Depends-on): Add gettimeofday.
40149         * tests/test-gettimeofday.c: Include <sys/time.h>
40150         rather than gettimeofday.h.
40151
40152 2007-01-17  Bruno Haible  <bruno@clisp.org>
40153
40154         * gnulib-tool (func_get_license): Revert last patch. Instead, let
40155         the license default to GPL.
40156         (func_create_testdir): Don't complain if a module is LGPL and its
40157         tests module depends on GPLed modules.
40158
40159 2007-01-17  Bruno Haible  <bruno@clisp.org>
40160
40161         * lib/gettimeofday.c (gettimeofday): Add code for the case
40162         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
40163         maximum possible value for tv->tv_usec, rather than the minimum one.
40164
40165 2005-10-08  Martin Lambers  <marlam@marlam.de>
40166 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
40167 2007-01-16  Bruno Haible  <bruno@clisp.org>
40168
40169         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
40170         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
40171         gl_FUNC_GETTIMEOFDAY.
40172         (Include): Add gettimeofday.h.
40173         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
40174         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
40175         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
40176         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
40177         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
40178         * lib/gettimeofday.h: New file.
40179         * lib/gettimeofday.c: Include <sys/timeb.h>.
40180         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
40181         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40182         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
40183         fall back on time().
40184
40185         * tests/test-gettimeofday.c: New file.
40186         * modules/gettimeofday-tests: New file.
40187
40188 2007-01-16  Eric Blake  <ebb9@byu.net>
40189
40190         * modules/fnmatch (Depends-on): Depend on wchar.
40191         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
40192         * m4/fnmatch.m4: Likewise.
40193         * modules/mbchar (Makefile.am): Assume <wchar.h>.
40194         * m4/mbchar.m4: Likewise.
40195         * modules/mbswidth (Depends-on): Depend on wchar.
40196         * lib/mbswidth.c: Assume <wchar.h>.
40197         * m4/mbswidth.m4: Likewise.
40198         * modules/quotearg (Depends-on): Depend on wchar.
40199         * lib/quotearg.c: Assume <wchar.h>.
40200         * m4/quotearg.m4: Likewise.
40201         * modules/regex (Depends-on): Depend on wchar.
40202         * lib/regex_internal.h: Assume <wchar.h>.
40203         * m4/regex.m4: Likewise.
40204         * modules/stdint (Depends-on): Depend on wchar.
40205         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
40206         * m4/stdint.m4: Likewise.
40207         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
40208         * modules/strftime (Depends-on): Depend on wchar.
40209         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
40210         * modules/strtol (Depends-on): Depend on wchar.
40211         * lib/strtol.c: Assume <wchar.h>.
40212         * modules/wcwidth (Depends-on): Depend on wchar.
40213         * lib/wcwidth.h: Assume <wchar.h>.
40214         * m4/wcwidth.m4: Likewise.
40215
40216 2007-01-16  Bruno Haible  <bruno@clisp.org>
40217
40218         * modules/csharpexec-script: New, created from...
40219         * modules/csharpexec: ... this.
40220
40221 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
40222
40223         * modules/javaexec-script: New, created from...
40224         * modules/javaexec: ... this.
40225
40226 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40227
40228         * modules/poll (Dependencies): Add sys_select.
40229
40230 2007-01-15  Jim Meyering  <jim@meyering.net>
40231
40232         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
40233         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
40234         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
40235         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
40236
40237 2007-01-15  Bruno Haible  <bruno@clisp.org>
40238
40239         * modules/striconveh: New file.
40240         * lib/striconveh.h: New file.
40241         * lib/striconveh.c: New file.
40242         * MODULES.html.sh (Internationalization functions): Add striconveh.
40243
40244         * modules/striconveh-tests: New file.
40245         * tests/test-striconveh.c: New file.
40246
40247 2007-01-15  Bruno Haible  <bruno@clisp.org>
40248
40249         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
40250         not from GNU libiconv or GNU libc.
40251
40252 2007-01-15  Bruno Haible  <bruno@clisp.org>
40253
40254         * doc/gnulib-intro.texi (Copyright): Explain the different license
40255         terms for module descriptions, autoconf macros, tests, documentation.
40256
40257 2007-01-14  Bruno Haible  <bruno@clisp.org>
40258
40259         * modules/striconv-tests: New file.
40260         * tests/test-striconv.c: New file.
40261
40262 2007-01-14  Bruno Haible  <bruno@clisp.org>
40263
40264         * modules/iconv-tests: New file.
40265         * tests/test-iconv.c: New file.
40266
40267 2007-01-14  Bruno Haible  <bruno@clisp.org>
40268
40269         * gnulib-tool (func_get_license): For test modules, use the license of
40270         the main module.
40271
40272 2007-01-14  Bruno Haible  <bruno@clisp.org>
40273
40274         * modules/iconv (Include): Clarify that <iconv.h> can only be included
40275         if iconv is found to exist.
40276
40277 2007-01-14  Bruno Haible  <bruno@clisp.org>
40278
40279         * modules/c-ctype-tests: New file.
40280         * tests/test-c-ctype.c: New file.
40281
40282 2007-01-14  Bruno Haible  <bruno@clisp.org>
40283
40284         * modules/binary-io-tests: New file.
40285         * tests/test-binary-io.sh: New file.
40286         * tests/test-binary-io.c: New file.
40287
40288 2007-01-14  Bruno Haible  <bruno@clisp.org>
40289
40290         * modules/array-oset-tests: New file.
40291         * tests/test-array_oset.c: New file.
40292
40293 2007-01-14  Bruno Haible  <bruno@clisp.org>
40294
40295         * modules/array-list-tests: New file.
40296         * tests/test-array_list.c: New file.
40297
40298 2007-01-14  Bruno Haible  <bruno@clisp.org>
40299
40300         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
40301         and make.
40302         Reported by Simon Josefsson in
40303         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
40304
40305 2007-01-14  Bruno Haible  <bruno@clisp.org>
40306
40307         * modules/allocsa-tests: New file.
40308         * tests/test-allocsa.c: New file.
40309
40310 2007-01-14  Bruno Haible  <bruno@clisp.org>
40311
40312         * modules/fchdir (Depends-on): Add absolute-header.
40313         * modules/unistd (Depends-on): Likewise.
40314
40315 2006-12-30  Bruno Haible  <bruno@clisp.org>
40316
40317         * modules/fchdir: New file.
40318         * modules/unistd (Files): Add lib/unistd_.h.
40319         (Makefile.am): Generate unistd.h from unistd_.h.
40320         * lib/fchdir.c: New file.
40321         * lib/dirent_.h: New file.
40322         * lib/unistd_.h: New file.
40323         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
40324         * m4/fchdir.m4: New file.
40325         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
40326         (gl_HEADER_UNISTD): Invoke it.
40327         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
40328         function.
40329         * lib/backupfile.c (opendir, closedir): Undefine.
40330         * lib/chown.c (open, close): Undefine.
40331         * lib/clean-temp.c (open, close): Undefine.
40332         * lib/copy-file.c (open, close): Undefine.
40333         * lib/execute.c (open, close): Undefine.
40334         * lib/fsusage.c (open, close): Undefine.
40335         * lib/gc-gnulib.c (open, close): Undefine.
40336         * lib/getcwd.c (opendir, closedir): Undefine.
40337         * lib/glob.c (opendir, closedir): Undefine.
40338         * lib/javacomp.c (open, close): Undefine.
40339         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
40340         * lib/openat-proc.c (open, close): Undefine.
40341         * lib/pagealign_alloc.c (open, close): Undefine.
40342         * lib/pipe.c (open, close): Undefine.
40343         * lib/progreloc.c (open, close): Undefine.
40344         * lib/savedir.c (opendir, closedir): Undefine.
40345         * lib/utime.c (open, close): Undefine.
40346         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
40347
40348 2007-01-10  Bruno Haible  <bruno@clisp.org>
40349
40350         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
40351
40352 2007-01-12  Eric Blake  <ebb9@byu.net>
40353
40354         Provide a robust <wchar.h>.  Further simplifications are now
40355         possible in other modules, but not included here.
40356         * modules/wchar: New module.
40357         * m4/wchar.m4: New file.
40358         * lib/wchar_.h: Likewise.
40359         * modules/mbchar (Depends-on): Depend on wchar, as the first use
40360         of the new module.
40361         * MODULES.html.sh (Extended multibyte and wide character utilities):
40362         New section.
40363
40364 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
40365
40366         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
40367         to a reasonable default for memory allocation.
40368         (xreadlink): Don't allocate a huge buffer, to work around a buggy
40369         file system that reports garbage st_size values for symlinks.
40370         Problem reported by Liyang Hu.
40371
40372 2007-01-11  Simon Josefsson  <simon@josefsson.org>
40373
40374         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
40375         Emacs .#* auto-save files).
40376
40377 2007-01-11  Bruno Haible  <bruno@clisp.org>
40378
40379         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
40380         directory.
40381
40382 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
40383
40384         Use @...@ consistently in lib/wctype_.h.
40385         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
40386         on it being set to 1 or 0.
40387         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
40388         go back to AC_SUBSTing it.
40389         * modules/wctype (Makefile.am): Undo previous change.
40390
40391 2007-01-10  Eric Blake  <ebb9@byu.net>
40392
40393         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
40394         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
40395         * modules/wctype (Makefile.am): Likewise.
40396         Reported by Chris McGuire.
40397
40398 2007-01-10  Jim Meyering  <jim@meyering.net>
40399
40400         fts.c: a small readability/maintainability improvement
40401         * lib/fts.c (fts_read): Make this code slightly more readable and
40402         maintainable by hoisting the "sp->fts_cur = p" assignments to
40403         immediately follow the statements that set P.  Derived from
40404         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
40405
40406 2007-01-10  Eric Blake  <ebb9@byu.net>
40407
40408         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
40409         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
40410         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
40411         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
40412         Reported by Chris McGuire.
40413
40414 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40415
40416         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
40417         in sed script.
40418
40419 2007-01-09  Bruno Haible  <bruno@clisp.org>
40420
40421         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
40422         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
40423         variables.
40424         (func_module): Use them.
40425
40426 2007-01-09  Bruno Haible  <bruno@clisp.org>
40427
40428         * modules/unistr/base: New file.
40429         * lib/unistr.h: New file.
40430
40431         * modules/unistr/u8-to-u16: New file.
40432         * lib/unistr/u8-to-u16.c: New file.
40433
40434         * modules/unistr/u8-to-u32: New file.
40435         * lib/unistr/u8-to-u32.c: New file.
40436
40437         * modules/unistr/u16-to-u8: New file.
40438         * lib/unistr/u16-to-u8.c: New file.
40439
40440         * modules/unistr/u16-to-u32: New file.
40441         * lib/unistr/u16-to-u32.c: New file.
40442
40443         * modules/unistr/u32-to-u8: New file.
40444         * lib/unistr/u32-to-u8.c: New file.
40445
40446         * modules/unistr/u32-to-u16: New file.
40447         * lib/unistr/u32-to-u16.c: New file.
40448
40449         * modules/unistr/u8-check: New file.
40450         * modules/unistr/u16-check: New file.
40451         * modules/unistr/u32-check: New file.
40452         * lib/unistr/u8-check.c: New file.
40453         * lib/unistr/u16-check.c: New file.
40454         * lib/unistr/u32-check.c: New file.
40455
40456         * modules/unistr/u8-chr: New file.
40457         * modules/unistr/u16-chr: New file.
40458         * modules/unistr/u32-chr: New file.
40459         * lib/unistr/u8-chr.c: New file.
40460         * lib/unistr/u16-chr.c: New file.
40461         * lib/unistr/u32-chr.c: New file.
40462
40463         * modules/unistr/u8-cmp: New file.
40464         * modules/unistr/u16-cmp: New file.
40465         * modules/unistr/u32-cmp: New file.
40466         * lib/unistr/u8-cmp.c: New file.
40467         * lib/unistr/u16-cmp.c: New file.
40468         * lib/unistr/u32-cmp.c: New file.
40469
40470         * modules/unistr/u8-cpy: New file.
40471         * modules/unistr/u16-cpy: New file.
40472         * modules/unistr/u32-cpy: New file.
40473         * lib/unistr/u8-cpy.c: New file.
40474         * lib/unistr/u16-cpy.c: New file.
40475         * lib/unistr/u32-cpy.c: New file.
40476         * lib/unistr/u-cpy.h: New file.
40477
40478         * modules/unistr/u8-cpy-alloc: New file.
40479         * modules/unistr/u16-cpy-alloc: New file.
40480         * modules/unistr/u32-cpy-alloc: New file.
40481         * lib/unistr/u8-cpy-alloc.c: New file.
40482         * lib/unistr/u16-cpy-alloc.c: New file.
40483         * lib/unistr/u32-cpy-alloc.c: New file.
40484         * lib/unistr/u-cpy-alloc.h: New file.
40485
40486         * modules/unistr/u8-endswith: New file.
40487         * modules/unistr/u16-endswith: New file.
40488         * modules/unistr/u32-endswith: New file.
40489         * lib/unistr/u8-endswith.c: New file.
40490         * lib/unistr/u16-endswith.c: New file.
40491         * lib/unistr/u32-endswith.c: New file.
40492         * lib/unistr/u-endswith.h: New file.
40493
40494         * modules/unistr/u8-mblen: New file.
40495         * modules/unistr/u16-mblen: New file.
40496         * modules/unistr/u32-mblen: New file.
40497         * lib/unistr/u8-mblen.c: New file.
40498         * lib/unistr/u16-mblen.c: New file.
40499         * lib/unistr/u32-mblen.c: New file.
40500
40501         * modules/unistr/u8-mbtouc: New file.
40502         * modules/unistr/u16-mbtouc: New file.
40503         * modules/unistr/u32-mbtouc: New file.
40504         * lib/unistr/u8-mbtouc.c: New file.
40505         * lib/unistr/u16-mbtouc.c: New file.
40506         * lib/unistr/u32-mbtouc.c: New file.
40507
40508         * modules/unistr/u8-mbtouc-safe: New file.
40509         * modules/unistr/u16-mbtouc-safe: New file.
40510         * modules/unistr/u32-mbtouc-safe: New file.
40511         * lib/unistr/u8-mbtouc-safe.c: New file.
40512         * lib/unistr/u16-mbtouc-safe.c: New file.
40513         * lib/unistr/u32-mbtouc-safe.c: New file.
40514
40515         * modules/unistr/u8-move: New file.
40516         * modules/unistr/u16-move: New file.
40517         * modules/unistr/u32-move: New file.
40518         * lib/unistr/u8-move.c: New file.
40519         * lib/unistr/u16-move.c: New file.
40520         * lib/unistr/u32-move.c: New file.
40521         * lib/unistr/u-move.h: New file.
40522
40523         * modules/unistr/u8-next: New file.
40524         * modules/unistr/u16-next: New file.
40525         * modules/unistr/u32-next: New file.
40526         * lib/unistr/u8-next.c: New file.
40527         * lib/unistr/u16-next.c: New file.
40528         * lib/unistr/u32-next.c: New file.
40529
40530         * modules/unistr/u8-prev: New file.
40531         * modules/unistr/u16-prev: New file.
40532         * modules/unistr/u32-prev: New file.
40533         * lib/unistr/u8-prev.c: New file.
40534         * lib/unistr/u16-prev.c: New file.
40535         * lib/unistr/u32-prev.c: New file.
40536
40537         * modules/unistr/u8-set: New file.
40538         * modules/unistr/u16-set: New file.
40539         * modules/unistr/u32-set: New file.
40540         * lib/unistr/u8-set.c: New file.
40541         * lib/unistr/u16-set.c: New file.
40542         * lib/unistr/u32-set.c: New file.
40543         * lib/unistr/u-set.h: New file.
40544
40545         * modules/unistr/u8-startswith: New file.
40546         * modules/unistr/u16-startswith: New file.
40547         * modules/unistr/u32-startswith: New file.
40548         * lib/unistr/u8-startswith.c: New file.
40549         * lib/unistr/u16-startswith.c: New file.
40550         * lib/unistr/u32-startswith.c: New file.
40551         * lib/unistr/u-startswith.h: New file.
40552
40553         * modules/unistr/u8-stpcpy: New file.
40554         * modules/unistr/u16-stpcpy: New file.
40555         * modules/unistr/u32-stpcpy: New file.
40556         * lib/unistr/u8-stpcpy.c: New file.
40557         * lib/unistr/u16-stpcpy.c: New file.
40558         * lib/unistr/u32-stpcpy.c: New file.
40559         * lib/unistr/u-stpcpy.h: New file.
40560
40561         * modules/unistr/u8-stpncpy: New file.
40562         * modules/unistr/u16-stpncpy: New file.
40563         * modules/unistr/u32-stpncpy: New file.
40564         * lib/unistr/u8-stpncpy.c: New file.
40565         * lib/unistr/u16-stpncpy.c: New file.
40566         * lib/unistr/u32-stpncpy.c: New file.
40567         * lib/unistr/u-stpncpy.h: New file.
40568
40569         * modules/unistr/u8-strcat: New file.
40570         * modules/unistr/u16-strcat: New file.
40571         * modules/unistr/u32-strcat: New file.
40572         * lib/unistr/u8-strcat.c: New file.
40573         * lib/unistr/u16-strcat.c: New file.
40574         * lib/unistr/u32-strcat.c: New file.
40575         * lib/unistr/u-strcat.h: New file.
40576
40577         * modules/unistr/u8-strchr: New file.
40578         * modules/unistr/u16-strchr: New file.
40579         * modules/unistr/u32-strchr: New file.
40580         * lib/unistr/u8-strchr.c: New file.
40581         * lib/unistr/u16-strchr.c: New file.
40582         * lib/unistr/u32-strchr.c: New file.
40583
40584         * modules/unistr/u8-strcmp: New file.
40585         * modules/unistr/u16-strcmp: New file.
40586         * modules/unistr/u32-strcmp: New file.
40587         * lib/unistr/u8-strcmp.c: New file.
40588         * lib/unistr/u16-strcmp.c: New file.
40589         * lib/unistr/u32-strcmp.c: New file.
40590
40591         * modules/unistr/u8-strcpy: New file.
40592         * modules/unistr/u16-strcpy: New file.
40593         * modules/unistr/u32-strcpy: New file.
40594         * lib/unistr/u8-strcpy.c: New file.
40595         * lib/unistr/u16-strcpy.c: New file.
40596         * lib/unistr/u32-strcpy.c: New file.
40597         * lib/unistr/u-strcpy.h: New file.
40598
40599         * modules/unistr/u8-strcspn: New file.
40600         * modules/unistr/u16-strcspn: New file.
40601         * modules/unistr/u32-strcspn: New file.
40602         * lib/unistr/u8-strcspn.c: New file.
40603         * lib/unistr/u16-strcspn.c: New file.
40604         * lib/unistr/u32-strcspn.c: New file.
40605         * lib/unistr/u-strcspn.h: New file.
40606
40607         * modules/unistr/u8-strdup: New file.
40608         * modules/unistr/u16-strdup: New file.
40609         * modules/unistr/u32-strdup: New file.
40610         * lib/unistr/u8-strdup.c: New file.
40611         * lib/unistr/u16-strdup.c: New file.
40612         * lib/unistr/u32-strdup.c: New file.
40613         * lib/unistr/u-strdup.h: New file.
40614
40615         * modules/unistr/u8-strlen: New file.
40616         * modules/unistr/u16-strlen: New file.
40617         * modules/unistr/u32-strlen: New file.
40618         * lib/unistr/u8-strlen.c: New file.
40619         * lib/unistr/u16-strlen.c: New file.
40620         * lib/unistr/u32-strlen.c: New file.
40621         * lib/unistr/u-strlen.h: New file.
40622
40623         * modules/unistr/u8-strmblen: New file.
40624         * modules/unistr/u16-strmblen: New file.
40625         * modules/unistr/u32-strmblen: New file.
40626         * lib/unistr/u8-strmblen.c: New file.
40627         * lib/unistr/u16-strmblen.c: New file.
40628         * lib/unistr/u32-strmblen.c: New file.
40629
40630         * modules/unistr/u8-strmbtouc: New file.
40631         * modules/unistr/u16-strmbtouc: New file.
40632         * modules/unistr/u32-strmbtouc: New file.
40633         * lib/unistr/u8-strmbtouc.c: New file.
40634         * lib/unistr/u16-strmbtouc.c: New file.
40635         * lib/unistr/u32-strmbtouc.c: New file.
40636
40637         * modules/unistr/u8-strncat: New file.
40638         * modules/unistr/u16-strncat: New file.
40639         * modules/unistr/u32-strncat: New file.
40640         * lib/unistr/u8-strncat.c: New file.
40641         * lib/unistr/u16-strncat.c: New file.
40642         * lib/unistr/u32-strncat.c: New file.
40643         * lib/unistr/u-strncat.h: New file.
40644
40645         * modules/unistr/u8-strncmp: New file.
40646         * modules/unistr/u16-strncmp: New file.
40647         * modules/unistr/u32-strncmp: New file.
40648         * lib/unistr/u8-strncmp.c: New file.
40649         * lib/unistr/u16-strncmp.c: New file.
40650         * lib/unistr/u32-strncmp.c: New file.
40651
40652         * modules/unistr/u8-strncpy: New file.
40653         * modules/unistr/u16-strncpy: New file.
40654         * modules/unistr/u32-strncpy: New file.
40655         * lib/unistr/u8-strncpy.c: New file.
40656         * lib/unistr/u16-strncpy.c: New file.
40657         * lib/unistr/u32-strncpy.c: New file.
40658         * lib/unistr/u-strncpy.h: New file.
40659
40660         * modules/unistr/u8-strnlen: New file.
40661         * modules/unistr/u16-strnlen: New file.
40662         * modules/unistr/u32-strnlen: New file.
40663         * lib/unistr/u8-strnlen.c: New file.
40664         * lib/unistr/u16-strnlen.c: New file.
40665         * lib/unistr/u32-strnlen.c: New file.
40666         * lib/unistr/u-strnlen.h: New file.
40667
40668         * modules/unistr/u8-strpbrk: New file.
40669         * modules/unistr/u16-strpbrk: New file.
40670         * modules/unistr/u32-strpbrk: New file.
40671         * lib/unistr/u8-strpbrk.c: New file.
40672         * lib/unistr/u16-strpbrk.c: New file.
40673         * lib/unistr/u32-strpbrk.c: New file.
40674         * lib/unistr/u-strpbrk.h: New file.
40675
40676         * modules/unistr/u8-strrchr: New file.
40677         * modules/unistr/u16-strrchr: New file.
40678         * modules/unistr/u32-strrchr: New file.
40679         * lib/unistr/u8-strrchr.c: New file.
40680         * lib/unistr/u16-strrchr.c: New file.
40681         * lib/unistr/u32-strrchr.c: New file.
40682
40683         * modules/unistr/u8-strspn: New file.
40684         * modules/unistr/u16-strspn: New file.
40685         * modules/unistr/u32-strspn: New file.
40686         * lib/unistr/u8-strspn.c: New file.
40687         * lib/unistr/u16-strspn.c: New file.
40688         * lib/unistr/u32-strspn.c: New file.
40689         * lib/unistr/u-strspn.h: New file.
40690
40691         * modules/unistr/u8-strstr: New file.
40692         * modules/unistr/u16-strstr: New file.
40693         * modules/unistr/u32-strstr: New file.
40694         * lib/unistr/u8-strstr.c: New file.
40695         * lib/unistr/u16-strstr.c: New file.
40696         * lib/unistr/u32-strstr.c: New file.
40697         * lib/unistr/u-strstr.h: New file.
40698
40699         * modules/unistr/u8-strtok: New file.
40700         * modules/unistr/u16-strtok: New file.
40701         * modules/unistr/u32-strtok: New file.
40702         * lib/unistr/u8-strtok.c: New file.
40703         * lib/unistr/u16-strtok.c: New file.
40704         * lib/unistr/u32-strtok.c: New file.
40705         * lib/unistr/u-strtok.h: New file.
40706
40707         * modules/unistr/u8-uctomb: New file.
40708         * modules/unistr/u16-uctomb: New file.
40709         * modules/unistr/u32-uctomb: New file.
40710         * lib/unistr/u8-uctomb.c: New file.
40711         * lib/unistr/u16-uctomb.c: New file.
40712         * lib/unistr/u32-uctomb.c: New file.
40713
40714         * MODULES.html.sh (Unicode string functions): Add the new modules.
40715
40716 2007-01-08  Bruno Haible  <bruno@clisp.org>
40717
40718         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
40719         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
40720         subdirectories.
40721
40722 2007-01-08  Karl Berry  <karl@gnu.org>
40723
40724         * doc/error.texi: mention that main() fns must set program_name
40725         when progname is used.
40726
40727 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
40728
40729         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
40730         WCTYPE_H is empty, for the benefit of builds from non-distclean
40731         directories.  Problem reported by Eric Blake in
40732         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
40733
40734 2007-01-08  Bruno Haible  <bruno@clisp.org>
40735
40736         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
40737         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
40738         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
40739         PROVIDE_CANONICALIZE_FILENAME_MODE.
40740         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
40741
40742 2007-01-08  Bruno Haible  <bruno@clisp.org>
40743
40744         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
40745         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
40746         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
40747         * lib/fts.c: Likewise.
40748         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
40749
40750 2006-12-25  Bruno Haible  <bruno@clisp.org>
40751
40752         * modules/utf8-ucs4-safe: New file.
40753         * lib/utf8-ucs4-safe.h: New file.
40754         * lib/unistr/utf8-ucs4-safe.c: New file.
40755
40756         * modules/utf16-ucs4-safe: New file.
40757         * lib/utf16-ucs4-safe.h: New file.
40758         * lib/unistr/utf16-ucs4-safe.c: New file.
40759
40760         * MODULES.html.sh (Unicode string functions): Add the new modules.
40761
40762 2007-01-08  Bruno Haible  <bruno@clisp.org>
40763
40764         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
40765         (Depends-on): Add unitypes.
40766         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
40767         (u8_mbtouc_aux): Move out to separate file.
40768         (u8_mbtouc): Use ucs4_t, uint8_t types.
40769         * lib/unistr/utf8-ucs4.c: New file.
40770
40771         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
40772         (Depends-on): Add unitypes.
40773         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
40774         (u16_mbtouc_aux): Move out to separate file.
40775         (u16_mbtouc): Use ucs4_t, uint16_t types.
40776         * lib/unistr/utf16-ucs4.c: New file.
40777
40778         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
40779         (Depends-on): Add unitypes.
40780         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
40781         (u8_uctomb_aux): Move out to separate file.
40782         (u8_uctomb): Use ucs4_t, uint8_t types.
40783         * lib/unistr/ucs4-utf8.c: New file.
40784
40785         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
40786         (Depends-on): Add unitypes.
40787         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
40788         (u16_uctomb_aux): Move out to separate file.
40789         (u16_uctomb): Use ucs4_t, uint16_t types.
40790         * lib/unistr/ucs4-utf16.c: New file.
40791
40792 2006-12-25  Bruno Haible  <bruno@clisp.org>
40793
40794         * modules/unitypes: New file.
40795         * lib/unitypes.h: New file.
40796         * MODULES.html.sh (func_all_modules): New section "Unicode string
40797         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
40798         this section. Add unitypes.
40799
40800 2007-01-08  Bruno Haible  <bruno@clisp.org>
40801
40802         Avoid variable names that conflict with those from libtool.
40803         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
40804         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
40805         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
40806         library_names_spec to acl_library_names_spec, hardcode_* to
40807         acl_hardcode_*.
40808         Reported by Ralf Wildenhues.
40809
40810 2007-01-08  Bruno Haible  <bruno@clisp.org>
40811
40812         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
40813         definition.
40814         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
40815         definition.
40816         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
40817         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
40818         definition.
40819         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
40820         definition.
40821         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
40822         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
40823         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
40824         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
40825         definition.
40826         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
40827         definition.
40828         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
40829         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
40830         GC_USE_<algorithm>.
40831         * lib/gc-libgcrypt.c: Likewise.
40832         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
40833         * modules/gc-arctwo (configure.ac): Likewise.
40834         * modules/gc-des (configure.ac): Likewise.
40835         * modules/gc-hmac-md5 (configure.ac): Likewise.
40836         * modules/gc-hmac-sha1 (configure.ac): Likewise.
40837         * modules/gc-md2 (configure.ac): Likewise.
40838         * modules/gc-md4 (configure.ac): Likewise.
40839         * modules/gc-md5 (configure.ac): Likewise.
40840         * modules/gc-random (configure.ac): Likewise.
40841         * modules/gc-rijndael (configure.ac): Likewise.
40842         * modules/gc-sha1 (configure.ac): Likewise.
40843
40844 2007-01-08  Bruno Haible  <bruno@clisp.org>
40845
40846         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
40847         macro definition.
40848         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
40849         definition.
40850         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
40851         definition.
40852         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
40853         * modules/fcntl-safer (configure.ac): Likewise.
40854         * modules/fopen-safer (configure.ac): Likewise.
40855         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
40856         GNULIB_FWRITEERROR macro definition.
40857
40858 2007-01-08  Bruno Haible  <bruno@clisp.org>
40859
40860         * m4/gnulib-common.m4: New file.
40861         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
40862         (func_get_filelist): Add m4/gnulib-common.m4.
40863
40864 2007-01-08  Bruno Haible  <bruno@clisp.org>
40865
40866         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
40867         command.
40868
40869 2007-01-08  Jim Meyering  <jim@meyering.net>
40870
40871         Use a more robust test for a "can't happen" condition.
40872         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
40873         narrowed the st_size value.  Presuming the "can't happen" condition
40874         is true, that narrowing could conceivably convert an invalid st_size
40875         value into a valid one.  Instead, use a change based on Matthew
40876         Woehlke's original patch.
40877
40878         Slight readability improvement: use an assert-like macro
40879         in place of literal "abort ()" uses.
40880         * lib/fts.c (fts_assert): Define.
40881         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
40882         Use this macro instead of a bare 'abort'.
40883
40884 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
40885
40886         Don't worry about using IRIX 5.3's wctype.h broken definitions;
40887         simply work around them.
40888         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
40889         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
40890         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
40891         declaring.
40892         Don't bother to define as macros, since the standard doesn't require it.
40893         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
40894         longer worry about IRIX 5.3.
40895         (HAVE_WCTYPE_CTMP_BUG): Remove.
40896
40897 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
40898
40899         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
40900         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
40901         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40902         Problems reported by Georg Schwarz for IRIX 5.3.
40903
40904         * gnulib-tool (autoconf_minversion): Take the maximum version number
40905         found, not the minimum.  Problem reported by James Youngman.
40906
40907 2007-01-03  Karl Berry  <karl@gnu.org>
40908
40909         * doc/error.texi: new file, explaining interaction with progname.
40910         * doc/gnulib.texi: include it.  Update copyright.
40911
40912 2007-01-03  Simon Josefsson  <simon@josefsson.org>
40913
40914         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
40915         AC_CANONICAL_HOST, to improve autobuild outputs.
40916
40917 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
40918             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
40919
40920         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
40921         sockets, server sockets, and other file descriptors.  Count errors
40922         to compute the return value.  Reorder the code a bit to be easier
40923         to follow.  Don't set event bits that were not requested (except
40924         POLLERR and POLLHUP).
40925
40926 2007-01-01  Bruno Haible  <bruno@clisp.org>
40927
40928         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
40929
40930 2007-01-03  Jim Meyering  <jim@meyering.net>
40931
40932         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
40933
40934 2007-01-02  Bruno Haible  <bruno@clisp.org>
40935
40936         * modules/settime (Include): Require timespec.h.
40937         * modules/nanosleep (Include): Likewise.
40938
40939 2007-01-01  Bruno Haible  <bruno@clisp.org>
40940
40941         * gnulib-tool (func_emit_copyright_notice): Bump year.
40942         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
40943
40944 2007-01-01  Bruno Haible  <bruno@clisp.org>
40945
40946         Improve support for OpenBSD.
40947         * build-aux/config.rpath (libname_spec): Export.
40948         (library_names_spec): New variable. Export.
40949         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
40950         library_names_spec from the config.rpath output. Locate shared library
40951         through the name pattern in library_names_spec.
40952
40953 2007-01-01  Eric Blake  <ebb9@byu.net>
40954
40955         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
40956
40957 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
40958
40959         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
40960         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
40961         assume the C locale, and avoid an "eval" that could cause trouble.
40962         Problem with SORT reported by Bob Proulx.
40963
40964         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
40965         Define.  Trivial patch from Henning Nielsen Lund, originally
40966         sent to bug-grep@gnu.org today.
40967
40968 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
40969
40970         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
40971         struct stat.  Problem reported by Henning Nielsen Lund.
40972         * lib/acl.c: Include acl.h first, to check interface.  Don't
40973         bother to include sys/types.h and sys/stat.h again.
40974
40975 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
40976
40977         Import the following change from libc; problem reported by
40978         Sven Verdoolaege.
40979
40980         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
40981
40982         [BZ #1373]
40983         * lib/argp.h: Remove __NTH for __argp_usage inline function.
40984
40985 2006-12-28  Jim Meyering  <jim@meyering.net>
40986
40987         * build-aux/announce-gen: Do not assume that the package
40988         builds any of tar.gz, tar.bz2, and .xdelta files.
40989         Suggestion from Simon Josefsson.
40990
40991 2006-12-28  Simon Josefsson  <simon@josefsson.org>
40992
40993         * modules/announce-gen: New file.
40994
40995 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
40996
40997         * lib/mbchar.h: Just include <wctype.h>; the wctype module
40998         handles its gotchas now.
40999         * lib/mbswidth.c: Likewise.
41000         * lib/wcwidth.h: Likewise.
41001         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
41002         and iswcntrl; the wctype module does this stuff now.
41003         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
41004         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
41005         * modules/mbchar (Depends-on): Add wctype.
41006         * modules/mbswidth (Depends-on): Likewise.
41007         * modules/wcwidth (Depends-on): Likewise.
41008
41009 2006-12-27  Eric Blake  <ebb9@byu.net>
41010
41011         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
41012         module uses more than what <wctype.h> is required to provide.
41013
41014 2006-12-26  Eric Blake  <ebb9@byu.net>
41015
41016         * gnulib-tool (sed_extract_prog): Avoid space-tab.
41017
41018 2006-12-26  Eric Blake  <ebb9@byu.net>
41019
41020         * modules/absolute-header: New module.
41021         * modules/fcntl (Depends-on): Depend on it.
41022         * modules/inttypes (Depends-on): Likewise.
41023         * modules/stdint (Depends-on): Likewise.
41024         * modules/sys_stat (Depends-on): Likewise.
41025         * modules/wctype (Depends-on): Likewise.
41026         * MODULES.html.sh (Support for building libraries and
41027         executables): Document it.
41028
41029 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
41030
41031         * gnulib-tool (SED): Remove, undoing previous change.
41032         The problem was that it broke coreutils on Solaris, because
41033         "sed --posix" leaked into a makefile.
41034         (sed): New alias, if 'alias' and GNU sed.
41035
41036 2006-12-24  Jim Meyering  <jim@meyering.net>
41037
41038         Work around an fchownat bug in glibc-2.4:
41039         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
41040         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
41041         in spite of the -P option.
41042         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
41043         New macros.
41044         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
41045         * modules/openat (Files): Add lib/fchownat.c.
41046         * lib/openat.c (fchownat): Don't define here.  Move to...
41047         * lib/fchownat.c: ...this new file.
41048
41049 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
41050
41051         Fix bug reported by Bruno Haible in
41052         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
41053         where quotearg.c didn't compile on Mac OS X 10.2 because it
41054         lacks <wchar.h> and wint_t.
41055         * lib/wctype_.h (__wctype_wint_t): New type.
41056         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
41057         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
41058         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
41059         Arg is now of type __wctype_wint_t, not wint_t.
41060         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
41061         substitute HAVE_WINT_T.
41062         * modules/wctype (Files): Add m4/wint_t.m4.
41063         (wctype.h): Substitute HAVE_WINT_T.
41064
41065 2006-12-23  Bruno Haible  <bruno@clisp.org>
41066
41067         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
41068
41069 2006-12-23  Bruno Haible  <bruno@clisp.org>
41070
41071         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
41072         S_ISLNK.
41073         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
41074         mingw.
41075
41076 2006-12-22  Bruno Haible  <bruno@clisp.org>
41077
41078         * lib/copy-file.c: Include acl.h.
41079         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
41080         Close the file descriptors only after being done with copy_acl.
41081         * modules/copy-file (Depends-on): Add acl.
41082
41083 2006-12-22  Bruno Haible  <bruno@clisp.org>
41084
41085         * gnulib-tool (SED): New variable.
41086         Use $SED instead of sed everywhere.
41087
41088 2006-12-22  Bruno Haible  <bruno@clisp.org>
41089
41090         * modules/no-c++: New file.
41091         * m4/no-c++.m4: New file.
41092         * MODULES.html.sh (Support for building libraries and executables):
41093         Add no-c++.
41094
41095 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
41096
41097         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
41098         Include <limits.h>, and use its INT_MAX to rewrite the
41099         j loop so that it does not overflow 'int'.  Problem reported by
41100         Ralf Wildenhues in
41101         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
41102         Play it safe by shifting left by 1 rather than multiplying by 2,
41103         as GCC is less likely to optimize this away when the value
41104         is signed (when it assumes overflow leads to undefined behavior).
41105         Also, don't assume time_t uses two's complement.
41106
41107 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
41108
41109         * MODULES.html.sh: New module wctype.
41110         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
41111         * lib/fnmatch.c: Don't bother to include <wchar.h> before
41112         <wctype.h>, since the new wctype module should fix this.
41113         * lib/quotearg.c: Include <wctype.h> unconditionally, since
41114         the wctype module should arrange for it.
41115         * lib/regex_internal.h: Likewise.
41116         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
41117         since the wctype module should handle this now.
41118         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
41119         * modules/fnmatch (Depends-on): Add wctype.
41120         * modules/quotearg (Depends-on): Likewise.
41121         * modules/regex (Depends-on): Likewise.
41122
41123 2006-12-19  Bruno Haible  <bruno@clisp.org>
41124
41125         * lib/strdup.h [C++]: Wrap definitions in extern "C".
41126         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
41127
41128 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41129
41130         * modules/savewd (Depends-on): Fix dependency on fcntl.
41131
41132 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
41133
41134         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
41135         conforms to C99, rather than relying on the user's environment
41136         setting of STDINT_H.
41137
41138 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
41139         and Eric Blake  <ebb9@byu.net>
41140
41141         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
41142         This is more consistent with the other defines here.
41143         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
41144         Port to z/OS.  Problem reported by Paul Gilmartin.
41145         Change local vars to use gl_ prefix rather than ac_.
41146         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
41147         with other defines.
41148         * modules/double-slash-root: New module.
41149         * modules/dirname (Files): Remove m4/double-slash-root.m4.
41150         (Depends-on): Add double-slash-root.
41151         * MODULES.html.sh (File system functions): Mention new module.
41152
41153 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
41154
41155         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
41156         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
41157         This is for the benefit of gzip, which doesn't do i18n.
41158
41159 2006-12-12  Jim Meyering  <jim@meyering.net>
41160
41161         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
41162         Reported by Andreas Schwab <schwab@suse.de>.
41163
41164 2006-12-12  Bruno Haible  <bruno@clisp.org>
41165
41166         Merge these changes.
41167         2006-09-05  Bruno Haible  <bruno@clisp.org>
41168         * lib/iconvme.c (iconv_string): No need to save and restore errno when
41169         iconv_alloc succeeded.
41170         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
41171         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
41172         test for " && dest " at the end - dest is always != NULL there. Call
41173         iconv with 4xNULL arguments initially, to reset the state. Call iconv
41174         with 2xNULL arguments, also to flush the state storage. Handle the
41175         IRIX iconv behaviour. Realloc the final result, to throw away unused
41176         memory.
41177
41178 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
41179
41180         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
41181         and fchmodat unconditionally, since glibc 2.4 has them.
41182         Problem reported by Arkadiusz Miskiewicz.
41183
41184 2006-12-10  Bruno Haible  <bruno@clisp.org>
41185
41186         * gnulib-tool (func_import): Show the include files only for those
41187         modules that are copied and specified.
41188         Reported by Karl Berry.
41189
41190 2006-12-08  Jim Meyering  <jim@meyering.net>
41191
41192         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
41193         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
41194
41195         * build-aux/announce-gen: Add two new options, both optional:
41196         --bootstrap-tools=TOOL_LIST
41197               a comma-separated list of tools, e.g.,
41198               autoconf,automake,bison,gnulib
41199         --gnulib-snapshot-date=DATE
41200               if gnulib is in the bootstrap tool list,
41201               then report this as the snapshot date.
41202               If not specified, use the current date/time.
41203               If you specify a date here, be sure it's UTC.
41204
41205 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41206
41207         * tests/test-argp-2.sh: Fix test to match actual output.
41208         (func_compare): Fix sed script to be portable.
41209
41210 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
41211
41212         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
41213         workaround for this case.  It is not autoconfigured now; offhand
41214         it's hard to see how to autoconfigure it.
41215
41216 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
41217
41218         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
41219         a directory that is about to be chowned.  Such a directory's
41220         initial file permissions should permit the owner only and this
41221         should not be changed until after the chown, since the group and
41222         other bits would be incorrect if they granted permission before
41223         the chown.
41224
41225         Fix porting problem for iswctype reported by Georg Schwarz in:
41226         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
41227         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
41228         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
41229         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
41230         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
41231
41232 2006-12-03  Jim Meyering  <jim@meyering.net>
41233
41234         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
41235         p->fts_statp may not yet be defined.
41236         (fts_read): Instead, set it in the caller, once p->fts_statp is
41237         sure to be defined, and corresponds to a top-level directory.
41238         This bug made du -x fail.  Here's the coreutils test case:
41239         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
41240         Reported by Mike Frysinger.
41241
41242 2006-12-01  Jim Meyering  <jim@meyering.net>
41243
41244         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
41245         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
41246         Reported by Simon Josefsson.
41247
41248 2006-11-30  Jim Meyering  <jim@meyering.net>
41249
41250         * m4/warning.m4: Use the all-permissive copyright notice
41251         recommended by RMS (rather than LGPL).
41252         * m4/vararrays.m4: Likewise.
41253         * m4/flexmember.m4: Likewise.
41254
41255 2006-11-29  Bruno Haible  <bruno@clisp.org>
41256
41257         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
41258         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
41259         using +=.
41260         Reported by Simon Josefsson <simon@josefsson.org>.
41261
41262 2006-11-28  James Youngman <jay@gnu.org>
41263
41264         * README: Advise users that they might find the bug-gnulib@gnu.org
41265         and autotools-announce@gnu.org mailing lists useful.
41266
41267 2006-11-28  Bruno Haible  <bruno@clisp.org>
41268
41269         * m4/ptrdiff_max.m4: Remove file.
41270
41271 2006-11-21  Bruno Haible  <bruno@clisp.org>
41272
41273         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
41274         _AC_COMPUTE_INT.
41275         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41276         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
41277         _AC_COMPUTE_INT.
41278         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41279         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
41280         _AC_COMPUTE_INT.
41281         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41282
41283 2006-11-28  Jim Meyering  <jim@meyering.net>
41284
41285         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
41286         warning from "gcc -Wshadow" about shadowing the builtin.
41287
41288 2006-11-27  Bruno Haible  <bruno@clisp.org>
41289
41290         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
41291         _AC_COMPUTE_INT.
41292         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41293
41294 2006-11-27  Bruno Haible  <bruno@clisp.org>
41295             Paul Eggert  <eggert@cs.ucla.edu>
41296
41297         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
41298
41299 2006-11-26  Bruno Haible  <bruno@clisp.org>
41300
41301         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
41302         noinst_LTLIBRARIES.
41303
41304 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
41305             Bruno Haible  <bruno@clisp.org>
41306
41307         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
41308         if compiling with "gcc -ansi".
41309
41310 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
41311
41312         Fix some incompatibilities with gcc -ansi -pedantic.
41313         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
41314         if compiling pedantically with GCC, unless it's C99 or later.
41315         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
41316         it mishandles gcc -ansi -pedantic as well.
41317         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
41318         if gcc -pedantic.
41319         * lib/regexec.c (check_node_accept_bytes): Don't use auto
41320         initializers for struct if -pedantic, unless it's C99 or later.
41321
41322 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
41323
41324         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
41325         Don't close an fd more than once. Identical atimes indicate
41326         success, not failure.
41327
41328 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
41329
41330         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
41331
41332 2006-11-23  Jim Meyering  <jim@meyering.net>
41333
41334         * build-aux/announce-gen: New file.  From coreutils.
41335
41336 2006-11-22  Jim Meyering  <jim@meyering.net>
41337
41338         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
41339         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
41340         (fts_read): Use a temporary to narrow the overused st_size member
41341         before using it in a switch statement.  Reported by Matthew Woehlke.
41342
41343         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
41344         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
41345
41346 2006-11-20  Bruno Haible  <bruno@clisp.org>
41347
41348         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
41349         changequote instead of pairs of brackets.
41350         Reported by Andreas Schwab <schwab@suse.de>.
41351
41352 2006-11-21  Jim Meyering  <jim@meyering.net>
41353
41354         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
41355         so as to remain compatible with older compilers.
41356         Patch from Michael Deutschmann.
41357
41358 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
41359
41360         * MODULES.html.sh (File system functions): Add openat.
41361
41362         * lib/openat.h (rpl_fstatat): New macro, if
41363         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
41364         (fstatat): Define to rpl_fstatat under the same conditions,
41365         unless COMPILING_FSTATAT.
41366         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
41367         seems to have the bug.
41368         * lib/fstatat.c: New file.
41369         * modules/openat (Files): Add it.
41370
41371 2006-11-20  Bruno Haible  <bruno@clisp.org>
41372
41373         * Makefile: New file.
41374
41375 2006-11-20  Jim Meyering  <jim@meyering.net>
41376
41377         The beginnings of syntax-related checks for gnulib.
41378         * lib/Makefile: New file.
41379         * lib/t-idcache: New script.  Ensure that the two halves of
41380         idcache.c stay in sync.
41381
41382         * lib/idcache.c: Adjust comments in user- and group- portions to
41383         be more accurate, and to be consistent with one another.
41384
41385 2006-11-20  Jim Meyering  <jim@meyering.net>
41386
41387         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
41388         continue using the flexible array member (thus, this module performs
41389         half as many malloc calls), with the addition that...
41390         (getgroup, getuser): Consistently record a non-match via an empty
41391         "name" string, and map an empty string match to a NULL return value.
41392         * modules/idcache (Depends-on): Re-add flexmember.
41393
41394         * lib/idcache.c (getuser): Remove all uses of the register keyword.
41395         (getuidbyname, getgroup, getgidbyname): Likewise.
41396
41397         Use cleaner syntax: NULL rather than 0.
41398         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
41399
41400 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
41401
41402         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
41403         It mishandled the case where the group was missing.
41404         Problem reported by Greg Schafer.
41405         * modules/idcache: Likewise.
41406
41407 2006-11-18  Jim Meyering  <jim@meyering.net>
41408
41409         * check-module (%exempt_header): Add exception for some
41410         conditionally-included headers.
41411
41412         * modules/i-ring (Depends-on): Add verify.
41413         (License): Change to LGPL.
41414
41415 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
41416
41417         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
41418         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
41419         and inttostr.h.  Use snprintf rather than uinttostr, so that
41420         LGPLed code doesn't depend on GPLed.
41421
41422 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
41423
41424         * modules/inline (License): Change from GPL to LGPL.
41425
41426 2006-11-17  Jim Meyering  <jim@meyering.net>
41427
41428         * modules/d-type (License): Switch to LGPL.
41429
41430 2006-11-15  Bruno Haible  <bruno@clisp.org>
41431
41432         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
41433
41434 2006-11-15  Eric Blake  <ebb9@byu.net>
41435
41436         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
41437         the module dependency.
41438
41439 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41440             Bruno Haible  <bruno@clisp.org>
41441
41442         * gnulib-tool (func_create_testdir): Add license consistency check.
41443
41444 2006-11-15  Eric Blake  <ebb9@byu.net>
41445
41446         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
41447         random "(cached)" in configure output.
41448
41449 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41450
41451         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
41452         test for conforming inttypes.h is both announced and cached.
41453
41454         * MODULES.html.sh (seen_modules, seen_files): New variables.
41455         (func_module): Rewrite to use a few less gnulib-tool and sed
41456         invocations.  Avoid a couple of quadratic algorithms for ...
41457         (missed_modules, missed_files): ... these, with ...
41458         (func_append, func_tmpdir): ... these new functions, from
41459         gnulib-tool.  Analogously, install traps for cleanup.
41460
41461         * tests/test-gc.c (main): Remove unused variables.
41462         * tests/test-read-file.c: Include stdlib.h, for 'free'.
41463
41464 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
41465
41466         * modules/inttostr (License): Change to LGPL.
41467
41468 2006-11-14  Eric Blake  <ebb9@byu.net>
41469
41470         * modules/tempname (License): Change to LGPL.
41471
41472 2006-11-14  Eric Blake  <ebb9@byu.net>
41473
41474         * doc/functions.texi (Function Portability): *printf functions on
41475         Cygwin now understand all POSIX size specifiers.
41476
41477 2006-11-14  Bruno Haible  <bruno@clisp.org>
41478
41479         * modules/c-ctype (License): Change to LGPL.
41480
41481 2006-11-12  Bruno Haible  <bruno@clisp.org>
41482
41483         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
41484         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
41485         for GNOME libraries, for which the include files are installed in
41486         subdirectories of $prefix/include.
41487
41488 2006-11-12  Bruno Haible  <bruno@clisp.org>
41489
41490         * m4/lib-link.m4: Require at least autoconf-2.54.
41491         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
41492         name to underscores for the --with option.
41493
41494 2006-11-13  Bruno Haible  <bruno@clisp.org>
41495
41496         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
41497         the tests directory.
41498         Reported by Ralf Wildenhues.
41499
41500 2006-11-13  Bruno Haible  <bruno@clisp.org>
41501
41502         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
41503         (func_emit_initmacro_end): Undo the override here.
41504         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
41505         Works around the famous automake error in coreutils.
41506
41507 2006-11-13  Eric Blake  <ebb9@byu.net>
41508
41509         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
41510         element, not its node.
41511
41512 2006-11-12  Bruno Haible  <bruno@clisp.org>
41513
41514         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
41515         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
41516
41517 2006-11-12  Bruno Haible  <bruno@clisp.org>
41518
41519         * gnulib-tool: New option --local-symlink.
41520         (func_usage): Document it.
41521         (lsymbolic): New variable.
41522         (func_import, func_create_testdir): If --symlink was not specified,
41523         test whether --local-symlink was specified and the file comes from
41524         the local_gnulib_dir.
41525
41526 2006-11-12  Bruno Haible  <bruno@clisp.org>
41527
41528         * gnulib-tool (func_ln): New function.
41529         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
41530
41531 2006-11-12  Bruno Haible  <bruno@clisp.org>
41532
41533         Finish support for source files in subdirectories.
41534         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
41535         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
41536         AUTOMAKE_OPTIONS.
41537         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
41538
41539 2006-11-12  Bruno Haible  <bruno@clisp.org>
41540
41541         * gnulib-tool (func_get_automake_snippet): Synthesize also an
41542         EXTRA_lib_SOURCES augmentation.
41543         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
41544
41545 2006-11-12  Jim Meyering  <jim@meyering.net>
41546
41547         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
41548         file descriptors.  This also averts a failure on systems with
41549         native openat support when a traversed directory lacks "x" access.
41550         * lib/fts_.h: Include "i-ring.h"
41551         (struct FTS) [fts_fd_ring]: New member.
41552         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
41553         (FCHDIR): Add parentheses.
41554         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
41555         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
41556         When descending, rather than simply closing the previous
41557         fts_cwd_fd value, push that file descriptor onto the ring.
41558         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
41559         (fts_open): Initialize the new fd_ring member.
41560         (fts_close): Clear the ring.
41561         (fts_safe_changedir): When possible, use our new fd_ring to skip
41562         the diropen and fstat and dev/ino comparison that would normally
41563         accompany a virtual `chdir ("..")'.
41564
41565         * modules/fts (Depends-on): Add i-ring.
41566         * modules/i-ring: New module.
41567         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
41568         * m4/i-ring.m4: New file.
41569
41570 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41571
41572         * gnulib-tool (func_create_testdir): Fix replacement of
41573         `build-aux' in configure.ac.  Run autotools in gltests
41574         subdirectory.
41575         (func_create_testdir, func_create_megatestdir, test): There is
41576         no need for '--force' in most autotool invocations in a new
41577         tree.  Actually fail the whole test if any of the tools, or the
41578         configure or make stages fail.
41579
41580         Sync from Automake.
41581         * build-aux/gnupload: Revert last change.  Add pointer to upload
41582         instructions of the GNU Maintenance Instructions.
41583         Suggestion by Karl Berry.
41584
41585 2006-11-10  Jim Meyering  <jim@meyering.net>
41586
41587         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
41588
41589 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
41590
41591         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
41592         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
41593         (bind_textdomain_codeset) [! ENABLE_NLS]:
41594         Evaluate all the arguments.  That way, callers get compatible behavior
41595         if the arguments have side effects.  Also, it avoids some GCC
41596         diagnostics in some cases; Joel E. Denny reported problems when Bison
41597         was configured with --enable-gcc-warnigs.
41598
41599 2006-11-10  Jim Meyering  <jim@meyering.net>
41600
41601         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
41602         relevant options in CFLAGS (like -O, -fno-inline) are taken into
41603         account.
41604
41605 2006-11-10  Jim Meyering  <jim@meyering.net>
41606
41607         * modules/inline: New file/module.
41608         * modules/xalloc (Files): Remove m4/inline.m4.
41609         (Depends-on): Add inline, instead.
41610         * modules/oset: Likewise.
41611         * modules/list: Likewise.
41612
41613 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
41614
41615         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
41616         Problem reported by Matthew Woehlke.
41617
41618 2006-11-09  Bruno Haible  <bruno@clisp.org>
41619
41620         * lib/tempname.c (gen_tempname): Remove variant that invokes
41621         __gen_tempname.
41622         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
41623         __gen_tempname.
41624
41625 2006-11-08  Bruno Haible  <bruno@clisp.org>
41626
41627         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
41628         to 'yes' instead of 'cross-compiling'.
41629
41630 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
41631
41632         * lib/quotearg.h (quotearg_free): New decl.
41633         * lib/quotearg.c (quotearg_free): New function.
41634         (slot0, nslots, slotvec0, slotvec):
41635         Now file-scope so that quotearg_free can get at them.
41636
41637 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41638
41639         Sync from Automake.
41640         * build-aux/gnupload: Add missing 'gnu' to example URL.
41641         Report by Karl Berry.
41642
41643 2006-11-08  Bruno Haible  <bruno@clisp.org>
41644
41645         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
41646         Suggested by Paul Eggert.
41647
41648 2006-11-08  Jim Meyering  <jim@meyering.net>
41649
41650         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
41651         It's already included if !_LIBC.
41652         (fts_safe_changedir): Add a comment.
41653
41654 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
41655
41656         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
41657         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
41658         Matthew Woehlke.
41659
41660         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
41661         definitions up, to avoid colliding with change below.
41662         (static_inline) [HAVE_INLINE]: New macro.
41663         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
41664         Provide extern decls when !HAVE_INLINE.  Do not define unless
41665         static_inline is defined, either by us or by xmalloc.c.  Use
41666         static_inline rather than static inline.
41667         (XCALLOC): Optimize sizeof(T) = 1 case.
41668         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
41669
41670 2006-11-07  Bruno Haible  <bruno@clisp.org>
41671
41672         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
41673         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
41674         AC_C_INLINE.
41675         * modules/xalloc (Files): Add m4/inline.m4.
41676
41677 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41678
41679         * README: Fix typo.
41680         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
41681         (Miscellanous Notes): ...from this.
41682
41683 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
41684
41685         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
41686         Mention that offsetof should be used instead of sizeof.
41687         From Bruno Haible.
41688
41689 2006-11-07  Bruno Haible  <bruno@clisp.org>
41690
41691         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
41692
41693 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
41694
41695         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
41696         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
41697         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
41698         (gl_tree_add_before, gl_tree_add_after):
41699         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
41700         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
41701         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
41702         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
41703         (gl_linked_add_after, gl_linked_add_at): Likewise.
41704         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
41705         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
41706         (gl_tree_add_before, gl_tree_add_after): Likewise.
41707         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
41708         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
41709         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
41710
41711 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41712
41713         * lib/gl_oset.h: Use C comment style, not C++ comment style.
41714
41715 2006-11-06  Bruno Haible  <bruno@clisp.org>
41716
41717         * m4/inline.m4: New file.
41718         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
41719         * modules/list (Files): Add m4/inline.m4.
41720         * modules/oset (Files): Likewise.
41721
41722 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
41723
41724         * lib/idcache.c: Include <stddef.h>, for offsetof.
41725         (struct userid.name): Change from char * to a flexible array member.
41726         All uses changed.
41727         * modules/idcache (Depends-on): Add flexmember.
41728
41729         * MODULES.html.sh (Core language properties): New module flexmember.
41730         * modules/flexmember, m4/flexmember.m4: New files.
41731
41732         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
41733         inline functions that are identical with the old xnmalloc_inline,
41734         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
41735         that we can avoid some unnecessary integer multiplications and
41736         divisions in the common case where the element size is known at
41737         compile time.
41738         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
41739         needed.
41740         (xnboundedmalloc): Remove.
41741         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
41742         arguments, for consistency with rest of this header.
41743         (xcharalloc): Rewrite using XNMALLOC.
41744         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
41745         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
41746         versions have been moved to lib/xalloc.h and renamed to be the
41747         non-*_inline versions.
41748         (xmalloc, xrealloc): Implement without reference to the xnmalloc
41749         and xnrealloc functions, since those functions are now inline and
41750         now call us.
41751         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
41752         renaming described above.
41753         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
41754         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
41755         captures the dependency in AC_C_INLINE.
41756
41757         New module canonicalize-lgpl, proposed by Charles Wilson in
41758         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
41759         with a few small changes afterwards.
41760         * MODULES.html.sh (File system functions): New module
41761         canonicalize-lgpl.
41762         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
41763         and canonicalize_file_name.
41764         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
41765         * modules/canonicalize-lgpl: New files.
41766
41767 2006-11-05  Bruno Haible  <bruno@clisp.org>
41768
41769         * gnulib-tool (func_import, func_create_testdir): Create directories
41770         also for files in subdirectories of lib/.
41771
41772 2006-11-05  Bruno Haible  <bruno@clisp.org>
41773
41774         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
41775         ANSI C compliant.
41776
41777 2006-11-03  Bruno Haible  <bruno@clisp.org>
41778
41779         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
41780         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
41781         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
41782         (xnboundedmalloc): New inline function.
41783         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
41784         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
41785         xmalloc.
41786         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
41787         xmalloc.
41788         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
41789         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
41790         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
41791         xmalloc.
41792         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
41793         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
41794         xmalloc.
41795         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
41796         gl_tree_add_after): Use XMALLOC instead of xmalloc.
41797         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
41798         xmalloc.
41799         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
41800         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
41801         gl_tree_add_after): Use XMALLOC instead of xmalloc.
41802         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
41803         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
41804         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
41805         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
41806
41807 2006-11-03  Bruno Haible  <bruno@clisp.org>
41808
41809         * lib/c-ctype.h [C++]: Define functions without name mangling.
41810         * lib/fwriteerror.h [C++]: Likewise.
41811         * lib/gcd.h [C++]: Likewise.
41812         * lib/linebreak.h [C++]: Likewise.
41813
41814 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
41815
41816         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
41817         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
41818         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
41819         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
41820         Check for functions and headers just once.
41821         Check for declaration of canonicalize_file_name.
41822         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
41823
41824 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
41825
41826         * gnulib-tool (func_import): Fix typo in actioncmd.
41827
41828 2006-11-02  Bruno Haible  <bruno@clisp.org>
41829
41830         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
41831         newline sequence in the Makefile.am snippet as a space, like "make"
41832         does.
41833         Reported by Roger Persson <perrog@gmail.com>.
41834
41835 2006-11-01  Bruno Haible  <bruno@clisp.org>
41836
41837         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
41838         already declared in <string.h>.
41839         * lib/strcase.h (strncasecmp): Don't declare it if yes.
41840
41841 2006-11-01  Bruno Haible  <bruno@clisp.org>
41842
41843         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
41844         * lib/strcase.h: Include <string.h>.
41845         (strcasecmp): Define to rpl_strcasecmp here.
41846
41847 2006-11-01  Bruno Haible  <bruno@clisp.org>
41848
41849         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
41850
41851 2006-11-01  Eric Blake  <ebb9@byu.net>
41852
41853         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
41854
41855         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
41856
41857 2006-10-29  Bruno Haible  <bruno@clisp.org>
41858
41859         Make it compile in C++ mode.
41860         * lib/full-write.c (full_rw): Add a cast.
41861
41862 2006-11-01  Bruno Haible  <bruno@clisp.org>
41863
41864         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
41865         be POSIX compliant.
41866         Reported by Roger Persson <perrog@gmail.com>.
41867
41868 2006-11-01  Eric Blake  <ebb9@byu.net>
41869
41870         * lib/getopt_.h: Fix comments.
41871
41872 2006-10-31  Eric Blake  <ebb9@byu.net>
41873
41874         * modules/tmpdir (Depends-on): Add sys_stat.
41875         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
41876         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
41877         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
41878         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
41879         tempname.
41880
41881 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
41882
41883         Avoid some C++ diagnostics reported by Bruno Haible.
41884         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
41885         xmalloc.
41886         (quotearg_alloc): Use xcharalloc rather than xmalloc.
41887         (struct slotvec): Move to top level.
41888         (quotearg_n_options): Rewrite to avoid xmalloc.
41889         * lib/xalloc.h (xcharalloc): New function.
41890         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
41891         [defined __cplusplus]: Add function template that provides result
41892         type propagation.  This part of the change is from Bruno Haible.
41893
41894 2006-10-29  Bruno Haible  <bruno@clisp.org>
41895
41896         Make it compile in C++ mode.
41897         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
41898         * lib/strnlen1.c (strnlen1): Cast memchr result.
41899         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
41900         * lib/clean-temp.c (string_equals, string_hash): Add casts.
41901         (create_temp_dir): Rename local variable 'template'.
41902         (compile_csharp_using_sscli): Add cast.
41903         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
41904         * lib/findprog.c (find_in_path): Likewise.
41905         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
41906         * lib/wait-process.c (register_slave_subprocess): Likewise.
41907
41908 2006-10-22  Bruno Haible  <bruno@clisp.org>
41909
41910         * modules/tsearch: New file.
41911         * lib/tsearch.h: New file.
41912         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
41913         * m4/tsearch.m4: New file.
41914         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
41915
41916 2006-10-29  Eric Blake  <ebb9@byu.net>
41917
41918         * lib/arcfour.c: Assume config.h.
41919         * lib/arctwo.c: Likewise.
41920         * lib/base64.c: Likewise.
41921         * lib/check-version.c: Likewise.
41922         * lib/crc.c: Likewise.
41923         * lib/des.c: Likewise.
41924         * lib/gc-gnulib.c: Likewise.
41925         * lib/gc-libgcrypt.c: Likewise.
41926         * lib/gc-pbkdf2-sha1.c: Likewise.
41927         * lib/getaddrinfo.c: Likewise.
41928         * lib/getdelim.c: Likewise.
41929         * lib/getline.c: Likewise.
41930         * lib/hmac-md5.c: Likewise.
41931         * lib/hmac-sha1.c: Likewise.
41932         * lib/iconvme.c: Likewise.
41933         * lib/md2.c: Likewise.
41934         * lib/md4.c: Likewise.
41935         * lib/memxor.c: Likewise.
41936         * lib/read-file.c: Likewise.
41937         * lib/readline.c: Likewise.
41938         * lib/rijndael-alg-fst.c: Likewise.
41939         * lib/rijndael-api-fst.c: Likewise.
41940         * lib/xgetdomainname.c: Likewise.
41941
41942 2006-10-28  Eric Blake  <ebb9@byu.net>
41943
41944         * lib/xstrndup.c: Assume config.h.
41945
41946 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
41947
41948         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
41949         stat-macros.h is now for our own macros, whereas stat_h is for
41950         macros in the <sys/stat.h> name space.
41951         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
41952         (STAT_MACROS_H): Remove.
41953         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
41954         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
41955         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
41956         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
41957         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
41958         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
41959         Move these macros to ...
41960         * lib/stat_.h: here.  Don't include stat-macros.h.
41961         * lib/canonicalize.c: Don't include stat-macros.h.
41962         * lib/chown.c: Likewise.
41963         * lib/euidaccess.c: Likewise.
41964         * lib/file-type.c: Likewise.
41965         * lib/filemode.c: Likewise.
41966         * lib/glob.c: Likewise.
41967         * lib/isapipe.c: Likewise.
41968         * lib/lchown.c: Likewise.
41969         * lib/lstat.c: Likewise.
41970         * lib/mkdir-p.c: Likewise.
41971         * lib/rmdir.c: Likewise.
41972         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
41973         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
41974         unless mkdir isn't declared, to speed up 'configure'.
41975         Always create sys/stat.h, since it's unlikely any real sys/stat.h
41976         would define all the S_* symbols.
41977         * modules/canonicalize (Depends-on):
41978         Depend on sys_stat, not stat-macros.
41979         * modules/chown: Likewise.
41980         * modules/euidaccess: Likewise.
41981         * modules/filemode: Likewise.
41982         * modules/file-type: Likewise.
41983         * modules/glob: Likewise.
41984         * modules/isapipe: Likewise.
41985         * modules/lchown: Likewise.
41986         * modules/lstat: Likewise.
41987         * modules/mkancesdirs: Likewise.
41988         * modules/rmdir: Likewise.
41989         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
41990         * modules/modechange: Likewise.
41991         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
41992         (configure.ac): Remove gl_STAT_MACROS.
41993         * modules/sys_stat (Depends-on): Remove stat-macros.
41994
41995 2006-10-27  Bruno Haible  <bruno@clisp.org>
41996
41997         * m4/signed.m4: Remove file.
41998         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
41999         invocation.
42000         * modules/vasnprintf (Files): Remove m4/signed.m4.
42001
42002 2006-10-27  Bruno Haible  <bruno@clisp.org>
42003
42004         Update to GNU gettext 0.16.
42005         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
42006         m4/inttypes-h.m4, m4/signed.m4.
42007         * m4/gettext.m4: Update to GNU gettext 0.16.
42008         * m4/intl.m4: New file, from GNU gettext.
42009         * m4/intldir.m4: New file, from GNU gettext.
42010         * config/srclist.txt: Update
42011
42012 2006-10-27  Eric Blake  <ebb9@byu.net>
42013
42014         * MODULES.html.sh: Document tempname.
42015         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
42016         dependencies.
42017         (Files): Move lib/tempname.c...
42018         * modules/tempname: ...to this new module.
42019         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
42020         (gl_PREREQ_TEMPNAME): Move...
42021         * m4/tempname.m4: ...to this new file.
42022         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
42023         * modules/sys_stat (Depends-on): Add stat-macros.
42024         * lib/stat_.h (includes): Pick up stat macros.
42025         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
42026         if stat macros are broken.
42027         * lib/tempname.c (includes): No need to include "stat-macros.h".
42028         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
42029         (direxists, __path_search) [!_LIBC]: Don't compile these in
42030         gnulib; the tmpdir module covers that.
42031         * lib/tempname.h: New file.
42032
42033 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
42034
42035         * COPYING: Explain how gnulib-tool converts licence headers.
42036         Almost all wording by Eric Blake.
42037
42038 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
42039
42040         * lib/mbchar.h (is_basic_table): Make read-only.
42041         * lib/mbchar.c (is_basic_table): Likewise.
42042         Reported by John Darrington.
42043
42044 2006-10-25  Bruno Haible  <bruno@clisp.org>
42045
42046         * lib/progname.h (set_program_name): Undefine before defining.
42047
42048 2006-10-25  Bruno Haible  <bruno@clisp.org>
42049
42050         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
42051         false for non-gcc C++ compilers.
42052         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
42053
42054 2006-10-24  Bruno Haible  <bruno@clisp.org>
42055
42056         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
42057         iconv implementations like Irix iconv.
42058
42059 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
42060
42061         * modules/vararrays: New file.
42062         * m4/vararrays.m4: New file, taken from diffutils.
42063         * MODULES.html.sh: New module vararrays.
42064
42065 2006-10-24  Karl Berry  <karl@gnu.org>
42066
42067         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
42068         Don't call GNU Unix.
42069
42070 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42071
42072         * users.txt: Add Libtool.
42073
42074         Sync from Libtool:
42075
42076         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
42077
42078         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
42079         to gnulib's policy of including config.h unconditionally.
42080
42081 2006-10-24  Bruno Haible  <bruno@clisp.org>
42082
42083         * modules/wcwidth (Files): Add m4/wint_t.m4.
42084         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
42085         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
42086
42087 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
42088
42089         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
42090         to pacify GCC with some -W flags enabled.  Problem reported by
42091         Bruno Haible.
42092
42093 2006-10-24  Jim Meyering  <jim@meyering.net>
42094
42095         * MODULES.html.sh: Remove uinttostr.  It's not a module.
42096         Reported by Karl Berry.
42097
42098 2006-10-23  Bruno Haible  <bruno@clisp.org>
42099
42100         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
42101
42102 2006-10-24  Bruno Haible  <bruno@clisp.org>
42103
42104         * lib/gl_list.h: Use C comment style, not C++ comment style.
42105
42106 2006-10-23  Eric Blake  <ebb9@byu.net>
42107
42108         * lib/getaddrinfo.c (includes): Add missing include.
42109
42110 2006-10-23  Bruno Haible  <bruno@clisp.org>
42111             Paul Eggert  <eggert@cs.ucla.edu>
42112
42113         Ability to rename obstack_free.
42114         * lib/obstack.h (__obstack_free): New macro. Declare instead of
42115         obstack_free.
42116         (obstack_free): Invoke the __obstack_free macro.
42117         * lib/obstack.c (obstack_free): Use __obstack_free macro.
42118
42119 2006-10-23  Bruno Haible  <bruno@clisp.org>
42120             Paul Eggert  <eggert@cs.ucla.edu>
42121
42122         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
42123         __argc, __argv from the declaration. (They are defined as macros on
42124         mingw.)
42125
42126 2006-10-22  Bruno Haible  <bruno@clisp.org>
42127
42128         * doc/gnulib-intro.texi: New file.
42129         * doc/gnulib.texi: Include it.
42130
42131 2006-10-21  Bruno Haible  <bruno@clisp.org>
42132
42133         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
42134         "Introduction", "Miscellanous Notes", "Particular Modules".
42135
42136 2006-10-21  Bruno Haible  <bruno@clisp.org>
42137
42138         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42139         Change mostlyclean-local rule to avoid sh syntax error from bash
42140         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
42141
42142 2006-10-23  Jim Meyering  <jim@meyering.net>
42143
42144         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
42145         in place of snprintf.
42146
42147         * modules/inttostr (Files): Add lib/uinttostr.c.
42148         * lib/uinttostr.c (inttostr): New file/function.
42149         * lib/inttostr.h (uinttostr): Declare.
42150         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
42151         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
42152         Add uinttostr.
42153         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
42154
42155 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
42156
42157         * lib/canonicalize.c (ELOOP): Define if not already defined.
42158         Problem reported by Bruno Haible in
42159         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
42160
42161 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
42162
42163         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
42164         Problem reported by Perry Smith and Ville Laurikari.
42165
42166         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
42167         uses.
42168
42169 2006-10-19  Bruno Haible  <bruno@clisp.org>
42170
42171         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
42172         for mingw.
42173
42174 2006-10-19  Bruno Haible  <bruno@clisp.org>
42175
42176         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
42177         Needed for mingw.
42178
42179 2006-10-19  Bruno Haible  <bruno@clisp.org>
42180
42181         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
42182
42183 2006-10-19  Bruno Haible  <bruno@clisp.org>
42184
42185         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
42186         it.
42187
42188 2006-10-19  Bruno Haible  <bruno@clisp.org>
42189
42190         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
42191         invocation.
42192
42193 2006-10-19  Bruno Haible  <bruno@clisp.org>
42194
42195         * gnulib-tool (func_create_testdir): Don't include ftruncate and
42196         mountlist by default.
42197
42198 2006-10-16  Bruno Haible  <bruno@clisp.org>
42199
42200         * lib/c-strstr.c: Include c-strstr.h.
42201
42202 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
42203
42204         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
42205         in a slash.
42206
42207 2006-10-18  Bruno Haible  <bruno@clisp.org>
42208
42209         * lib/lock.h [C++]: Wrap definitions in extern "C".
42210
42211 2006-10-18  Bruno Haible  <bruno@clisp.org>
42212
42213         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
42214         gl_LIBOBJS list.
42215
42216 2006-10-18  Bruno Haible  <bruno@clisp.org>
42217
42218         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
42219
42220 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
42221
42222         * lib/xstrtol.h: Include gettext.h.
42223         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
42224         Problem reported by Eric Blake.
42225         * modules/xstrtol (Depends-on): Add gettext-h.
42226
42227 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
42228
42229         * lib/strftime.c (advance): New macro.
42230         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
42231         incomplete type, so you can't add 0 to it.  Problem and patch
42232         reported by Eelco Dolstra for dietlibc.
42233
42234 2006-10-18  Jim Meyering  <jim@meyering.net>
42235
42236         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
42237         type for a local, and rename it: s/up/user_proc/.
42238
42239 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
42240
42241         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
42242         READ_UTMP_USER_PROCESS.
42243         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
42244
42245 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
42246
42247         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
42248         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
42249
42250 2006-10-17  Eric Blake  <ebb9@byu.net>
42251
42252         * lib/sigprocmask.c (sigprocmask): Fix typo.
42253
42254         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
42255
42256         * modules/clean-temp (Makefile.am): Don't add to make output...
42257         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
42258         config.h.
42259
42260 2006-10-17  Bruno Haible  <bruno@clisp.org>
42261
42262         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
42263         differently if DEFAULT_TEXT_DOMAIN is set.
42264
42265 2006-10-16  Bruno Haible  <bruno@clisp.org>
42266
42267         * lib/clean-temp.c: Include fwriteerror.h.
42268
42269 2006-10-16  Bruno Haible  <bruno@clisp.org>
42270
42271         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
42272
42273 2006-10-16  Bruno Haible  <bruno@clisp.org>
42274
42275         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
42276         * lib/sigprocmask.h: Include <sys/types.h>.
42277         (sigset_t): Use the system's definition if present.
42278
42279 2006-10-17  Eric Blake  <ebb9@byu.net>
42280
42281         * lib/xvasprintf.c (includes): Assume config.h.
42282         * lib/xasprintf.c (includes): Likewise.
42283
42284 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
42285
42286         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
42287         at least as wide as intmax_t.
42288
42289 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
42290
42291         (Imported from Automake.)
42292         * build-aux/gnupload: Update to version 1.1 of directive file.
42293
42294 2006-10-16  Eric Blake  <ebb9@byu.net>
42295
42296         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
42297         match Automake 1.10a.
42298
42299 2006-10-14  Bruno Haible  <bruno@clisp.org>
42300
42301         * modules/sigprocmask: New file.
42302         * lib/sigprocmask.h: New file.
42303         * lib/sigprocmask.c: New file.
42304         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
42305         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
42306         request sigprocmask.o.
42307         (gl_PREREQ_SIGPROCMASK): New macro.
42308         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
42309         (Depends-on): Add sigprocmask.
42310         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
42311         gt_SIGNALBLOCKING. Test for 'raise' only once.
42312         * lib/fatal-signal.c: Include sigprocmask.h.
42313         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
42314         unblock_fatal_signals): Define always.
42315         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42316         sigprocmask.
42317
42318 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
42319
42320         Sync from Automake.
42321         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
42322         which incorrectly sets the mode of an existing destination
42323         directory.  In some cases the unpatched install-sh could do the
42324         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
42325         system.  We hope this is rare in practice, but it's clearly worth
42326         fixing.  Problem reported by Alex Unleashed in
42327         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
42328         Also, don't bother to check for -m bugs unless we're using -m;
42329         suggested by Stepan Kasal.
42330
42331 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42332
42333         Sync from Automake.
42334         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
42335         `-c' flag, so they appear at the same position as in %FASTDEP%
42336         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
42337         which ignores unknown options only after the first non-option.
42338         Bug report against M4 by Nelson H. F. Beebe.
42339
42340 2006-10-13  Jim Meyering  <jim@meyering.net>
42341
42342         Fix a bug in yesterday's change.
42343         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
42344         p->fts_statp->st_dev would be used uninitialized.
42345         Ensures that we always call fts_stat on the very first entry.
42346         Miklos Szeredi reported that find -xdev stopped working.
42347
42348 2006-10-12  Bruno Haible  <bruno@clisp.org>
42349
42350         * gnulib-tool (func_get_automake_snippet): Append an automatically
42351         computed EXTRA_DIST augmentation.
42352         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
42353         * modules/alloca-opt (Makefile.am): Likewise.
42354         * modules/allocsa (Makefile.am): Likewise.
42355         * modules/arcfour (Makefile.am): Likewise.
42356         * modules/arctwo (Makefile.am): Likewise.
42357         * modules/argmatch (Makefile.am): Likewise.
42358         * modules/argz (Makefile.am): Likewise.
42359         * modules/atexit (Makefile.am): Likewise.
42360         * modules/backupfile (Makefile.am): Likewise.
42361         * modules/byteswap (Makefile.am): Likewise.
42362         * modules/c-strtod (Makefile.am): Likewise.
42363         * modules/c-strtold (Makefile.am): Likewise.
42364         * modules/calloc (Makefile.am): Likewise.
42365         * modules/canon-host (Makefile.am): Likewise.
42366         * modules/canonicalize (Makefile.am): Likewise.
42367         * modules/chdir-long (Makefile.am): Likewise.
42368         * modules/chdir-safer (Makefile.am): Likewise.
42369         * modules/check-version (Makefile.am): Likewise.
42370         * modules/chown (Makefile.am): Likewise.
42371         * modules/cloexec (Makefile.am): Likewise.
42372         * modules/close-stream (Makefile.am): Likewise.
42373         * modules/closeout (Makefile.am): Likewise.
42374         * modules/crc (Makefile.am): Likewise.
42375         * modules/csharpexec (Makefile.am): Likewise.
42376         * modules/cycle-check (Makefile.am): Likewise.
42377         * modules/des (Makefile.am): Likewise.
42378         * modules/dev-ino (Makefile.am): Likewise.
42379         * modules/dirfd (Makefile.am): Likewise.
42380         * modules/dirname (Makefile.am): Likewise.
42381         * modules/dup2 (Makefile.am): Likewise.
42382         * modules/eealloc (Makefile.am): Likewise.
42383         * modules/error (Makefile.am): Likewise.
42384         * modules/euidaccess (Makefile.am): Likewise.
42385         * modules/exclude (Makefile.am): Likewise.
42386         * modules/exitfail (Makefile.am): Likewise.
42387         * modules/fcntl-safer (Makefile.am): Likewise.
42388         * modules/fcntl (Makefile.am): Likewise.
42389         * modules/file-type (Makefile.am): Likewise.
42390         * modules/fileblocks (Makefile.am): Likewise.
42391         * modules/filemode (Makefile.am): Likewise.
42392         * modules/filenamecat (Makefile.am): Likewise.
42393         * modules/fnmatch (Makefile.am): Likewise.
42394         * modules/fopen-safer (Makefile.am): Likewise.
42395         * modules/fpending (Makefile.am): Likewise.
42396         * modules/fprintftime (Makefile.am): Likewise.
42397         * modules/free (Makefile.am): Likewise.
42398         * modules/fsusage (Makefile.am): Likewise.
42399         * modules/ftruncate (Makefile.am): Likewise.
42400         * modules/fts (Makefile.am): Likewise.
42401         * modules/gc-arcfour (Makefile.am): Likewise.
42402         * modules/gc-des (Makefile.am): Likewise.
42403         * modules/gc-hmac-md5 (Makefile.am): Likewise.
42404         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
42405         * modules/gc-md4 (Makefile.am): Likewise.
42406         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
42407         * modules/gc-sha1 (Makefile.am): Likewise.
42408         * modules/gc (Makefile.am): Likewise.
42409         * modules/getaddrinfo (Makefile.am): Likewise.
42410         * modules/getcwd (Makefile.am): Likewise.
42411         * modules/getdelim (Makefile.am): Likewise.
42412         * modules/getdomainname (Makefile.am): Likewise.
42413         * modules/getgroups (Makefile.am): Likewise.
42414         * modules/gethostname (Makefile.am): Likewise.
42415         * modules/gethrxtime (Makefile.am): Likewise.
42416         * modules/getline (Makefile.am): Likewise.
42417         * modules/getloadavg (Makefile.am): Likewise.
42418         * modules/getlogin_r (Makefile.am): Likewise.
42419         * modules/getndelim2 (Makefile.am): Likewise.
42420         * modules/getopt (Makefile.am): Likewise.
42421         * modules/getpagesize (Makefile.am): Likewise.
42422         * modules/getpass-gnu (Makefile.am): Likewise.
42423         * modules/getpass (Makefile.am): Likewise.
42424         * modules/getsubopt (Makefile.am): Likewise.
42425         * modules/gettime (Makefile.am): Likewise.
42426         * modules/gettimeofday (Makefile.am): Likewise.
42427         * modules/getugroups (Makefile.am): Likewise.
42428         * modules/getusershell (Makefile.am): Likewise.
42429         * modules/glob (Makefile.am): Likewise.
42430         * modules/group-member (Makefile.am): Likewise.
42431         * modules/hard-locale (Makefile.am): Likewise.
42432         * modules/hash (Makefile.am): Likewise.
42433         * modules/hmac-md5 (Makefile.am): Likewise.
42434         * modules/hmac-sha1 (Makefile.am): Likewise.
42435         * modules/human (Makefile.am): Likewise.
42436         * modules/idcache (Makefile.am): Likewise.
42437         * modules/imaxabs (Makefile.am): Likewise.
42438         * modules/imaxdiv (Makefile.am): Likewise.
42439         * modules/inet_ntop (Makefile.am): Likewise.
42440         * modules/inet_pton (Makefile.am): Likewise.
42441         * modules/intprops (Makefile.am): Likewise.
42442         * modules/inttostr (Makefile.am): Likewise.
42443         * modules/inttypes (Makefile.am): Likewise.
42444         * modules/isapipe (Makefile.am): Likewise.
42445         * modules/javaversion (Makefile.am): Likewise.
42446         * modules/lchmod (Makefile.am): Likewise.
42447         * modules/lchown (Makefile.am): Likewise.
42448         * modules/localcharset (Makefile.am): Likewise.
42449         * modules/long-options (Makefile.am): Likewise.
42450         * modules/lstat (Makefile.am): Likewise.
42451         * modules/malloc (Makefile.am): Likewise.
42452         * modules/mathl (Makefile.am): Likewise.
42453         * modules/mbchar (Makefile.am): Likewise.
42454         * modules/md2 (Makefile.am): Likewise.
42455         * modules/md4 (Makefile.am): Likewise.
42456         * modules/md5 (Makefile.am): Likewise.
42457         * modules/memcasecmp (Makefile.am): Likewise.
42458         * modules/memchr (Makefile.am): Likewise.
42459         * modules/memcmp (Makefile.am): Likewise.
42460         * modules/memcoll (Makefile.am): Likewise.
42461         * modules/memcpy (Makefile.am): Likewise.
42462         * modules/memmem (Makefile.am): Likewise.
42463         * modules/memmove (Makefile.am): Likewise.
42464         * modules/mempcpy (Makefile.am): Likewise.
42465         * modules/memrchr (Makefile.am): Likewise.
42466         * modules/memset (Makefile.am): Likewise.
42467         * modules/memxor (Makefile.am): Likewise.
42468         * modules/mkancesdirs (Makefile.am): Likewise.
42469         * modules/mkdir-p (Makefile.am): Likewise.
42470         * modules/mkdir (Makefile.am): Likewise.
42471         * modules/mkdtemp (Makefile.am): Likewise.
42472         * modules/mkstemp (Makefile.am): Likewise.
42473         * modules/mktime (Makefile.am): Likewise.
42474         * modules/modechange (Makefile.am): Likewise.
42475         * modules/mountlist (Makefile.am): Likewise.
42476         * modules/nanosleep (Makefile.am): Likewise.
42477         * modules/obstack (Makefile.am): Likewise.
42478         * modules/openat (Makefile.am): Likewise.
42479         * modules/pagealign_alloc (Makefile.am): Likewise.
42480         * modules/pathmax (Makefile.am): Likewise.
42481         * modules/physmem (Makefile.am): Likewise.
42482         * modules/poll (Makefile.am): Likewise.
42483         * modules/posixtm (Makefile.am): Likewise.
42484         * modules/posixver (Makefile.am): Likewise.
42485         * modules/putenv (Makefile.am): Likewise.
42486         * modules/quote (Makefile.am): Likewise.
42487         * modules/quotearg (Makefile.am): Likewise.
42488         * modules/raise (Makefile.am): Likewise.
42489         * modules/read-file (Makefile.am): Likewise.
42490         * modules/readline (Makefile.am): Likewise.
42491         * modules/readlink (Makefile.am): Likewise.
42492         * modules/readtokens (Makefile.am): Likewise.
42493         * modules/readutmp (Makefile.am): Likewise.
42494         * modules/realloc (Makefile.am): Likewise.
42495         * modules/regex (Makefile.am): Likewise.
42496         * modules/rename-dest-slash (Makefile.am): Likewise.
42497         * modules/rename (Makefile.am): Likewise.
42498         * modules/rijndael (Makefile.am): Likewise.
42499         * modules/rmdir (Makefile.am): Likewise.
42500         * modules/rpmatch (Makefile.am): Likewise.
42501         * modules/safe-read (Makefile.am): Likewise.
42502         * modules/safe-write (Makefile.am): Likewise.
42503         * modules/same-inode (Makefile.am): Likewise.
42504         * modules/same (Makefile.am): Likewise.
42505         * modules/save-cwd (Makefile.am): Likewise.
42506         * modules/savedir (Makefile.am): Likewise.
42507         * modules/setenv (Makefile.am): Likewise.
42508         * modules/settime (Makefile.am): Likewise.
42509         * modules/sha1 (Makefile.am): Likewise.
42510         * modules/sig2str (Makefile.am): Likewise.
42511         * modules/snprintf (Makefile.am): Likewise.
42512         * modules/stat-macros (Makefile.am): Likewise.
42513         * modules/stat-time (Makefile.am): Likewise.
42514         * modules/stdbool (Makefile.am): Likewise.
42515         * modules/stdint (Makefile.am): Likewise.
42516         * modules/stdlib-safer (Makefile.am): Likewise.
42517         * modules/stpcpy (Makefile.am): Likewise.
42518         * modules/stpncpy (Makefile.am): Likewise.
42519         * modules/strcase (Makefile.am): Likewise.
42520         * modules/strcasestr (Makefile.am): Likewise.
42521         * modules/strchrnul (Makefile.am): Likewise.
42522         * modules/strcspn (Makefile.am): Likewise.
42523         * modules/strdup (Makefile.am): Likewise.
42524         * modules/strerror (Makefile.am): Likewise.
42525         * modules/strftime (Makefile.am): Likewise.
42526         * modules/strndup (Makefile.am): Likewise.
42527         * modules/strnlen (Makefile.am): Likewise.
42528         * modules/strpbrk (Makefile.am): Likewise.
42529         * modules/strsep (Makefile.am): Likewise.
42530         * modules/strstr (Makefile.am): Likewise.
42531         * modules/strtod (Makefile.am): Likewise.
42532         * modules/strtoimax (Makefile.am): Likewise.
42533         * modules/strtok_r (Makefile.am): Likewise.
42534         * modules/strtol (Makefile.am): Likewise.
42535         * modules/strtoll (Makefile.am): Likewise.
42536         * modules/strtoul (Makefile.am): Likewise.
42537         * modules/strtoull (Makefile.am): Likewise.
42538         * modules/strtoumax (Makefile.am): Likewise.
42539         * modules/strverscmp (Makefile.am): Likewise.
42540         * modules/sys_socket (Makefile.am): Likewise.
42541         * modules/sys_stat (Makefile.am): Likewise.
42542         * modules/sysexits (Makefile.am): Likewise.
42543         * modules/time_r (Makefile.am): Likewise.
42544         * modules/timegm (Makefile.am): Likewise.
42545         * modules/timespec (Makefile.am): Likewise.
42546         * modules/tmpfile-safer (Makefile.am): Likewise.
42547         * modules/trim (Makefile.am): Likewise.
42548         * modules/unistd-safer (Makefile.am): Likewise.
42549         * modules/unlinkdir (Makefile.am): Likewise.
42550         * modules/unlocked-io (Makefile.am): Likewise.
42551         * modules/userspec (Makefile.am): Likewise.
42552         * modules/utime (Makefile.am): Likewise.
42553         * modules/utimecmp (Makefile.am): Likewise.
42554         * modules/utimens (Makefile.am): Likewise.
42555         * modules/vasnprintf (Makefile.am): Likewise.
42556         * modules/vasprintf (Makefile.am): Likewise.
42557         * modules/vsnprintf (Makefile.am): Likewise.
42558         * modules/xalloc (Makefile.am): Likewise.
42559         * modules/xgetcwd (Makefile.am): Likewise.
42560         * modules/xnanosleep (Makefile.am): Likewise.
42561         * modules/xreadlink (Makefile.am): Likewise.
42562         * modules/xstrtod (Makefile.am): Likewise.
42563         * modules/xstrtol (Makefile.am): Likewise.
42564         * modules/xstrtold (Makefile.am): Likewise.
42565         * modules/yesno (Makefile.am): Likewise.
42566         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
42567
42568 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
42569
42570         * modules/error (Makefile.am): Distribute files through
42571         EXTRA_DIST, not lib_SOURCES.
42572
42573 2006-10-12  Eric Blake  <ebb9@byu.net>
42574
42575         * modules/error (Makefile.am): Distribute files in /lib.
42576         * modules/obstack (Makefile.am): Likewise.
42577
42578 2006-10-12  Bruno Haible  <bruno@clisp.org>
42579
42580         * modules/acl (Makefile.am): Distribute all files in lib/ through
42581         EXTRA_DIST.
42582         * modules/arcfour (Makefile.am): Likewise.
42583         * modules/arctwo (Makefile.am): Likewise.
42584         * modules/argmatch (Makefile.am): Likewise.
42585         * modules/argz (Makefile.am): Likewise.
42586         * modules/atexit (Makefile.am): Likewise.
42587         * modules/backupfile (Makefile.am): Likewise.
42588         * modules/c-strtod (Makefile.am): Likewise.
42589         * modules/c-strtold (Makefile.am): Likewise.
42590         * modules/calloc (Makefile.am): Likewise.
42591         * modules/canon-host (Makefile.am): Likewise.
42592         * modules/canonicalize (Makefile.am): Likewise.
42593         * modules/chdir-long (Makefile.am): Likewise.
42594         * modules/chdir-safer (Makefile.am): Likewise.
42595         * modules/check-version (Makefile.am): Likewise.
42596         * modules/chown (Makefile.am): Likewise.
42597         * modules/cloexec (Makefile.am): Likewise.
42598         * modules/close-stream (Makefile.am): Likewise.
42599         * modules/closeout (Makefile.am): Likewise.
42600         * modules/crc (Makefile.am): Likewise.
42601         * modules/cycle-check (Makefile.am): Likewise.
42602         * modules/des (Makefile.am): Likewise.
42603         * modules/dirfd (Makefile.am): Likewise.
42604         * modules/dirname (Makefile.am): Likewise.
42605         * modules/dup2 (Makefile.am): Likewise.
42606         * modules/euidaccess (Makefile.am): Likewise.
42607         * modules/exclude (Makefile.am): Likewise.
42608         * modules/exitfail (Makefile.am): Likewise.
42609         * modules/fcntl-safer (Makefile.am): Likewise.
42610         * modules/file-type (Makefile.am): Likewise.
42611         * modules/fileblocks (Makefile.am): Likewise.
42612         * modules/filemode (Makefile.am): Likewise.
42613         * modules/filenamecat (Makefile.am): Likewise.
42614         * modules/fnmatch (Makefile.am): Likewise.
42615         * modules/fopen-safer (Makefile.am): Likewise.
42616         * modules/fpending (Makefile.am): Likewise.
42617         * modules/fprintftime (Makefile.am): Likewise.
42618         * modules/free (Makefile.am): Likewise.
42619         * modules/fsusage (Makefile.am): Likewise.
42620         * modules/ftruncate (Makefile.am): Likewise.
42621         * modules/fts (Makefile.am): Likewise.
42622         * modules/gc (Makefile.am): Likewise.
42623         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
42624         * modules/getaddrinfo (Makefile.am): Likewise.
42625         * modules/getcwd (Makefile.am): Likewise.
42626         * modules/getdelim (Makefile.am): Likewise.
42627         * modules/getdomainname (Makefile.am): Likewise.
42628         * modules/getgroups (Makefile.am): Likewise.
42629         * modules/gethostname (Makefile.am): Likewise.
42630         * modules/gethrxtime (Makefile.am): Likewise.
42631         * modules/getline (Makefile.am): Likewise.
42632         * modules/getloadavg (Makefile.am): Likewise.
42633         * modules/getlogin_r (Makefile.am): Likewise.
42634         * modules/getopt (Makefile.am): Likewise.
42635         * modules/getpass (Makefile.am): Likewise.
42636         * modules/getpass-gnu (Makefile.am): Likewise.
42637         * modules/getsubopt (Makefile.am): Likewise.
42638         * modules/gettime (Makefile.am): Likewise.
42639         * modules/gettimeofday (Makefile.am): Likewise.
42640         * modules/getugroups (Makefile.am): Likewise.
42641         * modules/getusershell (Makefile.am): Likewise.
42642         * modules/glob (Makefile.am): Likewise.
42643         * modules/group-member (Makefile.am): Likewise.
42644         * modules/hard-locale (Makefile.am): Likewise.
42645         * modules/hash (Makefile.am): Likewise.
42646         * modules/hmac-md5 (Makefile.am): Likewise.
42647         * modules/hmac-sha1 (Makefile.am): Likewise.
42648         * modules/human (Makefile.am): Likewise.
42649         * modules/idcache (Makefile.am): Likewise.
42650         * modules/imaxabs (Makefile.am): Likewise.
42651         * modules/imaxdiv (Makefile.am): Likewise.
42652         * modules/inet_ntop (Makefile.am): Likewise.
42653         * modules/inet_pton (Makefile.am): Likewise.
42654         * modules/inttostr (Makefile.am): Likewise.
42655         * modules/isapipe (Makefile.am): Likewise.
42656         * modules/lchown (Makefile.am): Likewise.
42657         * modules/long-options (Makefile.am): Likewise.
42658         * modules/lstat (Makefile.am): Likewise.
42659         * modules/malloc (Makefile.am): Likewise.
42660         * modules/mathl (Makefile.am): Likewise.
42661         * modules/mbchar (Makefile.am): Likewise.
42662         * modules/md2 (Makefile.am): Likewise.
42663         * modules/md4 (Makefile.am): Likewise.
42664         * modules/md5 (Makefile.am): Likewise.
42665         * modules/memcasecmp (Makefile.am): Likewise.
42666         * modules/memchr (Makefile.am): Likewise.
42667         * modules/memcmp (Makefile.am): Likewise.
42668         * modules/memcoll (Makefile.am): Likewise.
42669         * modules/memcpy (Makefile.am): Likewise.
42670         * modules/memmem (Makefile.am): Likewise.
42671         * modules/memmove (Makefile.am): Likewise.
42672         * modules/mempcpy (Makefile.am): Likewise.
42673         * modules/memrchr (Makefile.am): Likewise.
42674         * modules/memset (Makefile.am): Likewise.
42675         * modules/memxor (Makefile.am): Likewise.
42676         * modules/mkancesdirs (Makefile.am): Likewise.
42677         * modules/mkdir (Makefile.am): Likewise.
42678         * modules/mkdir-p (Makefile.am): Likewise.
42679         * modules/mkdtemp (Makefile.am): Likewise.
42680         * modules/mkstemp (Makefile.am): Likewise.
42681         * modules/mktime (Makefile.am): Likewise.
42682         * modules/modechange (Makefile.am): Likewise.
42683         * modules/mountlist (Makefile.am): Likewise.
42684         * modules/nanosleep (Makefile.am): Likewise.
42685         * modules/openat (Makefile.am): Likewise.
42686         * modules/pagealign_alloc (Makefile.am): Likewise.
42687         * modules/physmem (Makefile.am): Likewise.
42688         * modules/poll (Makefile.am): Likewise.
42689         * modules/posixtm (Makefile.am): Likewise.
42690         * modules/posixver (Makefile.am): Likewise.
42691         * modules/putenv (Makefile.am): Likewise.
42692         * modules/quote (Makefile.am): Likewise.
42693         * modules/quotearg (Makefile.am): Likewise.
42694         * modules/raise (Makefile.am): Likewise.
42695         * modules/read-file (Makefile.am): Likewise.
42696         * modules/readline (Makefile.am): Likewise.
42697         * modules/readlink (Makefile.am): Likewise.
42698         * modules/readtokens (Makefile.am): Likewise.
42699         * modules/readutmp (Makefile.am): Likewise.
42700         * modules/realloc (Makefile.am): Likewise.
42701         * modules/regex (Makefile.am): Likewise.
42702         * modules/rename (Makefile.am): Likewise.
42703         * modules/rename-dest-slash (Makefile.am): Likewise.
42704         * modules/rijndael (Makefile.am): Likewise.
42705         * modules/rmdir (Makefile.am): Likewise.
42706         * modules/rpmatch (Makefile.am): Likewise.
42707         * modules/safe-read (Makefile.am): Likewise.
42708         * modules/safe-write (Makefile.am): Likewise.
42709         * modules/same (Makefile.am): Likewise.
42710         * modules/save-cwd (Makefile.am): Likewise.
42711         * modules/savedir (Makefile.am): Likewise.
42712         * modules/setenv (Makefile.am): Likewise.
42713         * modules/settime (Makefile.am): Likewise.
42714         * modules/sha1 (Makefile.am): Likewise.
42715         * modules/sig2str (Makefile.am): Likewise.
42716         * modules/snprintf (Makefile.am): Likewise.
42717         * modules/stdlib-safer (Makefile.am): Likewise.
42718         * modules/stpcpy (Makefile.am): Likewise.
42719         * modules/stpncpy (Makefile.am): Likewise.
42720         * modules/strcase (Makefile.am): Likewise.
42721         * modules/strcasestr (Makefile.am): Likewise.
42722         * modules/strchrnul (Makefile.am): Likewise.
42723         * modules/strcspn (Makefile.am): Likewise.
42724         * modules/strdup (Makefile.am): Likewise.
42725         * modules/strerror (Makefile.am): Likewise.
42726         * modules/strftime (Makefile.am): Likewise.
42727         * modules/strndup (Makefile.am): Likewise.
42728         * modules/strnlen (Makefile.am): Likewise.
42729         * modules/strpbrk (Makefile.am): Likewise.
42730         * modules/strsep (Makefile.am): Likewise.
42731         * modules/strstr (Makefile.am): Likewise.
42732         * modules/strtod (Makefile.am): Likewise.
42733         * modules/strtoimax (Makefile.am): Likewise.
42734         * modules/strtok_r (Makefile.am): Likewise.
42735         * modules/strtol (Makefile.am): Likewise.
42736         * modules/strtoll (Makefile.am): Likewise.
42737         * modules/strtoul (Makefile.am): Likewise.
42738         * modules/strtoull (Makefile.am): Likewise.
42739         * modules/strtoumax (Makefile.am): Likewise.
42740         * modules/strverscmp (Makefile.am): Likewise.
42741         * modules/time_r (Makefile.am): Likewise.
42742         * modules/timegm (Makefile.am): Likewise.
42743         * modules/tmpfile-safer (Makefile.am): Likewise.
42744         * modules/unistd-safer (Makefile.am): Likewise.
42745         * modules/unlinkdir (Makefile.am): Likewise.
42746         * modules/userspec (Makefile.am): Likewise.
42747         * modules/utime (Makefile.am): Likewise.
42748         * modules/utimecmp (Makefile.am): Likewise.
42749         * modules/utimens (Makefile.am): Likewise.
42750         * modules/vasnprintf (Makefile.am): Likewise.
42751         * modules/vasprintf (Makefile.am): Likewise.
42752         * modules/vsnprintf (Makefile.am): Likewise.
42753         * modules/xalloc (Makefile.am): Likewise.
42754         * modules/xgetcwd (Makefile.am): Likewise.
42755         * modules/xnanosleep (Makefile.am): Likewise.
42756         * modules/xreadlink (Makefile.am): Likewise.
42757         * modules/xstrtod (Makefile.am): Likewise.
42758         * modules/xstrtol (Makefile.am): Likewise.
42759         * modules/xstrtold (Makefile.am): Likewise.
42760         * modules/yesno (Makefile.am): Likewise.
42761
42762 2006-10-12  Jim Meyering  <jim@meyering.net>
42763
42764         * m4/getloadavg.m4: Revert the change below.
42765
42766         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
42767         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
42768         fail with a symlink, which is what coreutils' ./bootstrap now
42769         creates by default.
42770
42771 2006-10-12  Bruno Haible  <bruno@clisp.org>
42772
42773         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
42774         mingw.
42775         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
42776         MSVC and mingw explicitly.
42777
42778 2006-10-11  Simon Josefsson  <jas@extundo.com>
42779             Bruno Haible  <bruno@clisp.org>
42780
42781         Add support for multiple gnulib-tool invocations in the scope of a
42782         single configure.ac file.
42783         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
42784         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
42785         with the same contents as the _LIBADD variable.
42786         (func_emit_initmacro_start, func_emit_initmacro_end,
42787         func_emit_initmacro_done): New functions.
42788         (func_import, func_create_testdir): Invoke them. Allow the identifiers
42789         gl_LIBOBJS and gl_LTLIBOBJS.
42790
42791 2006-10-11  Bruno Haible  <bruno@clisp.org>
42792
42793         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
42794         (func_create_testdir): Don't create po/Makefile.am, don't invoke
42795         autoreconf. Instead, invoke autopoint explicitly but move back the
42796         *.m4 files from gnulib.
42797
42798 2006-10-11  Bruno Haible  <bruno@clisp.org>
42799
42800         * gnulib-tool (func_usage): Make module names after --create-testdir
42801         optional.
42802         (func_create_testdir): If no module was specified, use nearly all
42803         modules.
42804
42805 2006-10-12  Jim Meyering  <jim@meyering.net>
42806
42807         Big performance improvement for fts-based tools that use FTS_NOSTAT.
42808         Avoid spurious inode-mismatch problems on non-POSIX file systems.
42809         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
42810         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
42811         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
42812         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
42813         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
42814         (fts_set_stat_required): New function.
42815         (fts_open): Defer the calls to fts_stat, if possible or requested.
42816         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
42817         into fts_stat itself.
42818         (fts_read): Perform any required (deferred) fts_stat call.
42819         (fts_build): Likewise, for the directory we're about to open and read.
42820         In the readdir loop, carefully decide whether each entry will require
42821         an eventual call to fts_stat, using dirent.d_type info if available.
42822         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
42823         a command line argument into this function.  Update all callers.
42824         Map a return value of FTS_DOT to FTS_D for a command line argument.
42825         * modules/fts (Depends-on): Add d-type.  Alphabetize.
42826         Thanks to Miklos Szeredi for his tenacity and for the initial
42827         bug report about "find" failing on a FUSE-based file system.
42828
42829         * lib/fts.c (fts_open): Use consistent indentation.
42830
42831 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
42832
42833         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
42834         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
42835         reported by Jim Meyering.  All uses of cache variables renamed
42836         to match Autoconf's.
42837         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
42838         the other one.
42839
42840         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
42841         Fix misspelling in diagnostic.
42842
42843 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
42844
42845         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
42846         defined.  Problem reported by Matthew Woehlke.
42847
42848         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
42849         Add support for Tandem NonStop R series.
42850         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
42851         Use new macro.
42852
42853         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
42854         (has_trailing_slash): Omit size arg; all callers changed.
42855         Omit 'inline', since it doesn't help performance and we'd
42856         need to configure it.
42857         Don't count //, ///, etc. as having a trailing slash.
42858         As a side effect, this removes a C99ism reported by Matthew Woehlke.
42859         (rpl_rename_dest_slash): On failure, use rename's errno rather
42860         than (in some cases) an incorrect or junk errno.
42861         Simplify code by removing need to compute length; this does
42862         cause it to make two passes instead of one over the file name,
42863         but it's worth it.
42864
42865         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
42866         change, since Autoconf's version may no longer be appropriate now
42867         that we are using CVS Autoconf's version.  Add support for Tandem.
42868
42869 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
42870             Bruno Haible  <bruno@clisp.org>
42871
42872         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
42873         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
42874         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
42875         gl_AC_TYPE_LONG_LONG.
42876
42877         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
42878         instead of HAVE_LONG_LONG.
42879         * lib/printf-args.c (printf_fetchargs): Likewise.
42880         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
42881         * lib/vasnprintf.c (VASNPRINTF): Likewise.
42882         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
42883         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
42884         gl_AC_TYPE_LONG_LONG.
42885
42886 2006-10-11  Bruno Haible  <bruno@clisp.org>
42887
42888         * m4/longlong.m4: Add comments.
42889         * m4/ulonglong.m4: Likewise.
42890
42891 2006-10-10  Bruno Haible  <bruno@clisp.org>
42892
42893         Make it possible to #define stpcpy, strdup to aliases.
42894         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
42895         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
42896
42897 2006-10-10  Bruno Haible  <bruno@clisp.org>
42898
42899         Make it possible to #define gcd to an alias.
42900         * lib/gcd.c: Include config.h.
42901
42902 2006-10-10  Bruno Haible  <bruno@clisp.org>
42903
42904         Make it possible to #define c_isascii to an alias.
42905         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
42906         defined. Undefine the macros before defining them, to avoid gcc
42907         warnings.
42908         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
42909         define NO_C_CTYPE_MACROS early.
42910
42911 2006-10-10  Bruno Haible  <bruno@clisp.org>
42912
42913         Make it possible to #define set_program_name to an alias.
42914         * lib/progname.c: Don't undefine set_program_name; instead, undefine
42915         ENABLE_RELOCATABLE early.
42916
42917 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
42918
42919         Port to Tandem NSK OSS, which has 64-bit signed int but at most
42920         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
42921         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
42922         More generally, don't assume that 64-bit signed int is available
42923         if unsigned int is, and vice versa.
42924         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
42925         unsigned symbols, not on their signed counterparts.
42926         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
42927         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
42928         (UINT64_C, UINTMAX_C):
42929         Likewise.
42930         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
42931         unsigned counterparts.
42932         (Have_long_long, Unsigned): New macros.
42933         (Int): Renamed from INT.
42934         (strtoimax): Use the new macros.
42935         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
42936         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
42937         * modules/inttypes (inttypes.h): Substitute
42938         HAVE_UNSIGNED_LONG_LONG_INT.
42939         * modules/stdint (stdint.h): Likewise.
42940         (Files): Add m4/ulonglong.m4.
42941
42942 2006-10-10  Bruno Haible  <bruno@clisp.org>
42943
42944         Fix a gcc -Wshadow warning.
42945         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
42946         to 'bucket'.
42947         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
42948         gl_linked_indexof_from_to): Likewise.
42949         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
42950         Likewise.
42951         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
42952         Likewise.
42953         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
42954         Reported by Eric Blake.
42955
42956 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
42957
42958         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
42959         for NetBSD.  Problem reported by Bruno Haible.
42960
42961 2006-10-09  Jim Meyering  <jim@meyering.net>
42962
42963         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
42964         Patch from Bruno Haible.
42965
42966 2006-10-09  Jim Meyering  <jim@meyering.net>
42967
42968         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
42969         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
42970         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
42971
42972 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
42973
42974         Don't include <config.h> twice; this doesn't work in some cases,
42975         e.g., when config.h has "#define intmax_t long long int" and
42976         we include <config.h>, <inttypes.h>, <config.h> in that order.
42977         Problem reported by Matthew Woehlke in:
42978         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
42979         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
42980         * lib/fts-cycle.c: Don't include config.h.
42981         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
42982         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
42983         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
42984         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
42985         inttypes.h.
42986         * lib/xstrtoumax.c: Likewise.
42987         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
42988         __strtol and the like, so that this module is more like its siblings.
42989         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
42990         Remove; no longer needed now that we assume gnulib inttypes.h.
42991
42992 2006-10-08  Bruno Haible  <bruno@clisp.org>
42993
42994         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
42995         option.
42996
42997 2006-10-07  Jim Meyering  <jim@meyering.net>
42998
42999         * modules/inttypes (inttypes.h): Revert what seems to have been
43000         an inadvertent part of today's change: use "|", not "/" in the
43001         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
43002
43003 2006-10-07  Bruno Haible  <bruno@clisp.org>
43004
43005         * modules/sublist: New file.
43006
43007 2006-10-07  Bruno Haible  <bruno@clisp.org>
43008
43009         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
43010         * modules/argz (argz.h): Likewise.
43011         * modules/arpa_inet (arpa/inet.h): Likewise.
43012         * modules/byteswap (byteswap.h): Likewise.
43013         * modules/configmake (configmake.h): Likewise.
43014         * modules/fcntl (fcntl.h): Likewise.
43015         * modules/fnmatch (fnmatch.h): Likewise.
43016         * modules/getopt (getopt.h): Likewise.
43017         * modules/glob (glob.h): Likewise.
43018         * modules/inttypes (inttypes.h): Likewise.
43019         * modules/netinet_in (netinet/in.h): Likewise.
43020         * modules/poll (poll.h): Likewise.
43021         * modules/stdbool (stdbool.h): Likewise.
43022         * modules/stdint (stdint.h): Likewise.
43023         * modules/sys_select (sys/select.h): Likewise.
43024         * modules/sys_socket (sys/socket.h): Likewise.
43025         * modules/sys_stat (sys/stat.h): Likewise.
43026         * modules/sysexits (sysexits.h): Likewise.
43027         * modules/unistd (unistd.h): Likewise.
43028         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43029         Add a "DO NOT EDIT" comment to the generated file.
43030         (func_import): Likewise for gnulib-comp.m4.
43031
43032 2006-10-07  Bruno Haible  <bruno@clisp.org>
43033
43034         * lib/gl_sublist.h: New file.
43035         * lib/gl_sublist.c: New file.
43036
43037 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
43038
43039         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
43040         name (relative to the original working directory) and the file
43041         name component (relative to the temporary working directory).  All
43042         callers changed.
43043         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
43044         * lib/mkdir-p.c (make_dir_parents): Likewise.
43045         * lib/mkdir-p.h (make_dir_parents): Likewise.
43046
43047 2006-10-06  Eric Blake  <ebb9@byu.net>
43048
43049         Define several macros for use by the clean-temp module.
43050         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
43051         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
43052         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
43053
43054         * lib/clean-temp.h (close_stream_temp): New declaration.
43055         * lib/clean-temp.c (includes): Pull in headers according to what
43056         other modules are in use.
43057         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
43058
43059 2006-10-06  Bruno Haible  <bruno@clisp.org>
43060
43061         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
43062         instead of fopen, fwriteerror.
43063
43064 2006-10-06  Bruno Haible  <bruno@clisp.org>
43065
43066         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
43067         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
43068         int.
43069         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
43070         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
43071         Return an error indicator.
43072         Suggested by Eric Blake.
43073
43074 2006-10-06  Bruno Haible  <bruno@clisp.org>
43075
43076         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
43077         Reported by Eric Blake.
43078
43079 2006-10-06  Bruno Haible  <bruno@clisp.org>
43080
43081         * modules/closeout (Description): Mention stderr too.
43082
43083 2006-10-06  Bruno Haible  <bruno@clisp.org>
43084         and Paul Eggert  <eggert@cs.ucla.edu>
43085
43086         * lib/closeout.c (close_stdout): Also close stderr.
43087         * lib/closeout.h: Update comment.
43088
43089 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
43090
43091         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
43092         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
43093         * lib/dirchownmod.c: Include lchown.h.
43094         * lib/lchown.c: Don't include files that lchown.h now includes.
43095         Don't declare chown, since lchown.h now does that.
43096         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
43097         (lchown): Define to rpl_chown if lchown is declared but
43098         does not exist.  Declare using a prototype if lchown is not
43099         declared.  Add a copyright notice.
43100         * lib/mkstemp.h: Include <unistd.h>.
43101         * lib/openat.c: Include lchown.h.
43102
43103         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
43104         we now test for that separately.
43105         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
43106         rather than O_NOFOLLOW, when testing whether it's possible to
43107         avoid a race condition reliably.
43108         * lib/savewd.c (savewd_chdir): Likewise.
43109
43110         Remove macros that are no longer needed now that stdint.h is
43111         reliable.
43112         * lib/fsusage.c (UINTMAX_MAX): Remove.
43113         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
43114         * lib/utimecmp.c (SIZE_MAX): Remove.
43115
43116         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
43117
43118         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
43119         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
43120         O_NOATIME works.
43121
43122 2006-10-05  Bruno Haible  <bruno@clisp.org>
43123
43124         * lib/gl_list.h (gl_sortedlist_search_from_to,
43125         gl_sortedlist_indexof_from_to): New declarations.
43126         (gl_list_implementation): New fields sortedlist_search_from_to,
43127         sortedlist_indexof_from_to.
43128         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
43129         inline functions.
43130         * lib/gl_list.c (gl_sortedlist_search_from_to,
43131         gl_sortedlist_indexof_from_to): New functions.
43132         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
43133         function.
43134         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
43135         (gl_array_sortedlist_search_from_to): New function.
43136         (gl_array_list_implementation): Update.
43137         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
43138         function.
43139         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
43140         (gl_carray_sortedlist_search_from_to): New function.
43141         (gl_carray_list_implementation): Update.
43142         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
43143         gl_linked_sortedlist_indexof_from_to): New functions.
43144         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
43145         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
43146         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
43147         gl_tree_sortedlist_indexof_from_to): New functions.
43148         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
43149         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
43150         Update.
43151         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
43152         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
43153         Update.
43154
43155 2006-10-05  Bruno Haible  <bruno@clisp.org>
43156
43157         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
43158         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
43159         (struct gl_list_implementation): Add fields search_from_to,
43160         indexof_from_to. Remove fields search, indexof.
43161         (gl_list_search): Use the search_from_to method.
43162         (gl_list_search_from, gl_list_search_from_to): New functions.
43163         (gl_list_indexof): Use the indexof_from_to method.
43164         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
43165         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
43166         (gl_list_search_from, gl_list_search_from_to): New functions.
43167         (gl_list_indexof): Use the indexof_from_to method.
43168         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
43169         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
43170         gl_array_indexof. Add start_index, end_index arguments.
43171         (gl_array_search_from_to): Renamed from gl_array_search. Add
43172         start_index, end_index arguments.
43173         (gl_array_remove, gl_array_list_implementation): Update.
43174         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
43175         gl_carray_indexof. Add start_index, end_index arguments.
43176         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
43177         start_index, end_index arguments.
43178         (gl_carray_remove, gl_carray_list_implementation): Update.
43179         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
43180         gl_linked_search. Add start_index, end_index arguments.
43181         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
43182         start_index, end_index arguments.
43183         (gl_linked_remove): Update.
43184         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
43185         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
43186         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
43187         field to 'size_t'.
43188         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
43189         gl_tree_search. Add start_index, end_index arguments.
43190         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
43191         start_index, end_index arguments.
43192         (gl_tree_remove): Update.
43193         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
43194         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
43195         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
43196         function.
43197         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
43198         gl_tree_search. Add start_index, end_index arguments.
43199         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
43200         start_index, end_index arguments.
43201         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
43202         Update.
43203         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
43204
43205 2006-10-05  Bruno Haible  <bruno@clisp.org>
43206
43207         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
43208
43209         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
43210         fwriteerror_temp): New declarations.
43211         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
43212         (descriptors): New variable.
43213         (cleanup): First, close the descriptors.
43214         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
43215         fclose_temp, fwriteerror_temp): New functions.
43216
43217 2006-10-04  Jim Meyering  <jim@meyering.net>
43218
43219         * lib/fts.c (fts_open): Tiny comment change.
43220
43221 2006-10-04  Bruno Haible  <bruno@clisp.org>
43222
43223         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
43224         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
43225         gl_LOCK_BODY.
43226         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
43227         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
43228         gl_LOCK_EARLY_BODY.
43229         (gl_LOCK): Require gl_LOCK_BODY.
43230
43231 2006-10-04  Bruno Haible  <bruno@clisp.org>
43232
43233         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
43234         (gl_oset_search_atleast): New declaration.
43235         (struct gl_oset_implementation): Add field 'search_atleast'.
43236         (gl_oset_search_atleast): New inline function.
43237         * lib/gl_oset.c (gl_oset_search_atleast): New function.
43238         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
43239         (gl_array_oset_implementation): Update.
43240         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
43241         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
43242         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
43243
43244 2006-10-04  Bruno Haible  <bruno@clisp.org>
43245
43246         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
43247
43248 2006-10-03  Bruno Haible  <bruno@clisp.org>
43249
43250         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
43251         from gl_avltreehash_list_implementation.
43252
43253 2006-10-03  Bruno Haible  <bruno@clisp.org>
43254
43255         * lib/gl_oset.c (gl_oset_add): Fix return type.
43256
43257 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
43258
43259         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
43260
43261 2006-10-02  Eric Blake  <ebb9@byu.net>
43262
43263         * modules/strnlen (Depends-on): Add extensions.
43264
43265 2006-10-02  Eric Blake  <ebb9@byu.net>
43266
43267         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
43268         definition in 2.60+.
43269
43270 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
43271
43272         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
43273         checks.
43274
43275 2006-10-02  Bruno Haible  <bruno@clisp.org>
43276
43277         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
43278         to the AUTOMAKE_OPTIONS.
43279         Reported by Jim Meyering.
43280
43281 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
43282
43283         Work around bug in Solaris 10 /proc file system:
43284         /proc/self/fd/NNN/.. isn't the parent directory of
43285         the directory whose file descriptor is NNN.  This needs to
43286         be worked around at run time, not compile time, since a
43287         program might be built on Solaris 8, where things work, and
43288         run on Solaris 10.
43289         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
43290         to use the following interface instead:
43291         (OPENAT_BUFFER_SIZE): New macro.
43292         (openat_proc_name): New function.
43293         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
43294         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
43295         Likewise.
43296         * lib/openat-proc.c: New file.
43297         * modules/openat (Files): Add lib/openat-proc.c.
43298         (Depends-on): Add same-inode, stdbool.
43299         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
43300
43301 2006-09-29  Bruno Haible  <bruno@clisp.org>
43302
43303         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
43304         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
43305         argument. Set stdout_closed before testing for ferror, not after.
43306         (fwriteerror, fwriteerror_no_ebadf): New functions.
43307
43308 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43309
43310         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
43311
43312 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
43313
43314         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
43315         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
43316
43317 2006-09-28  Jim Meyering  <jim@meyering.net>
43318
43319         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
43320         Include <unistd.h>.
43321
43322 2006-09-28  Bruno Haible  <bruno@clisp.org>
43323
43324         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
43325         * modules/linkedhash-list (Depends-on): Likewise.
43326         * modules/rbtreehash-list (Depends-on): Likewise.
43327
43328 2006-09-28  Bruno Haible  <bruno@clisp.org>
43329
43330         * lib/strndup.h: Simplify the redefinition of strndup.
43331         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
43332         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
43333
43334 2006-09-28  Bruno Haible  <bruno@clisp.org>
43335
43336         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
43337         * lib/gl_linkedhash_list.c: Likewise.
43338         * lib/gl_rbtreehash_list.c: Likewise.
43339
43340 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
43341
43342         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
43343         getaddrinfo.
43344
43345         * lib/__fpending.h: Don't include <stdio_ext.h> unless
43346         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
43347         it causes <stdio_ext.h> to cause a compile-time error.
43348         Problem reported by Nelson H. F. Beebe.
43349         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
43350         of HAVE_DECL___PENDING.
43351
43352         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
43353         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
43354         declaration.
43355
43356 2006-09-27  Jim Meyering  <jim@meyering.net>
43357
43358         This file could end up with a definition for a function
43359         named __strndup, rather than rpl_strndup on a system with
43360         incomplete weak_alias support.
43361         * lib/strndup.c (strndup): Rename from __strndup.
43362         Remove #defines that used to map __strndup to strndup.
43363         Don't use K&R prototypes.
43364         Remove LIBC-related code, since this file is not sync'd with glibc.
43365         * lib/strndup.h: Revamp, accordingly.
43366         * m4/strndup.m4: Modernize.
43367
43368 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
43369
43370         * modules/savewd (Depends-on): Add 'raise'.
43371         * lib/savewd.c: Include <signal.h>, for 'raise'.
43372
43373 2006-09-26  Jim Meyering  <jim@meyering.net>
43374
43375         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
43376         when we detect Darwin 8.7.0's acl_get_file bug.
43377         Rearrange to perform the new (below) run-test while $LIBS
43378         contains any acl-related library.  Set USE_ACL at the end.
43379         (gl_ACL_GET_FILE): New function.
43380
43381 2006-09-26  Eric Blake  <ebb9@byu.net>
43382
43383         * lib/verror.c: Include <config.h> unconditionally.
43384
43385 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
43386
43387         * modules/clock-time (Maintainer): Add self.
43388         * modules/getlogin_r (Depends-on): Add extensions.
43389
43390 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43391
43392         * modules/clock-time: New module.
43393         * modules/nanosleep (Depends-on): Add clock-time.
43394         * modules/gethrxtime (Depends-on): Likewise.
43395         * modules/gettime (Depends-on): Likewise.
43396         * modules/settime (Depends-on): Likewise.
43397
43398         * modules/fts-lgpl: Depend on openat.
43399         * modules/mkancesdirs: Depend on savewd.
43400         * modules/mkdir-p: Likewise.
43401
43402 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43403
43404         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
43405
43406         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
43407         `gl_have_arbitrary_file_name_length_limit' to
43408         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
43409         actually works between configure runs.
43410
43411 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43412             Bruno Haible  <bruno@clisp.org>
43413
43414         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
43415
43416 2006-09-25  Jim Meyering  <jim@meyering.net>
43417
43418         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
43419         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
43420
43421 2006-09-25  Eric Blake  <ebb9@byu.net>
43422
43423         * gnulib-tool (func_import, func_create_testdir): Fix typos in
43424         exec's in 2006-09-18 patch when shuffling fds.
43425
43426 2006-09-25  Bruno Haible  <bruno@clisp.org>
43427
43428         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
43429         Reported by Jim Meyering.
43430
43431 2006-09-24  Jim Meyering  <jim@meyering.net>
43432
43433         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
43434         compare a pointer against a literal "0".  That caused failures with
43435         at least HP-UX's hpcc.
43436
43437 2006-09-22  Simon Josefsson  <jas@extundo.com>
43438
43439         * modules/gc-sha1:
43440         * modules/gc-md4:
43441         * modules/gc-hmac-sha1:
43442         * modules/gc-hmac-md5:
43443         * modules/gc-des:
43444         * modules/gc-arcfour: Distribute more files.
43445
43446 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43447
43448         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
43449         (gl_linked_iterator_from_to): Initialize struct completely.
43450         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
43451         (gl_tree_iterator_from_to): Likewise
43452         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
43453         * lib/gl_array_list.c [lint] (gl_array_iterator)
43454         (gl_array_iterator_from_to): Likewise.
43455         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
43456         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
43457         (gl_carray_iterator_from_to): Likewise.
43458
43459         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
43460         * lib/md4.c (md4_process_block): Remove unused variable.
43461         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
43462         parentheses for clarity.
43463
43464 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43465
43466         * modules/bison-i18n (Depends-on): Add gettext.
43467
43468 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43469
43470         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
43471         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
43472         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
43473         also add missing comma that caused broken test.
43474         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
43475         stdlib.h, for `abort'.
43476         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
43477         variables.
43478         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
43479         include unistd.h if present, for `rmdir'.
43480         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
43481         variables.
43482         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
43483         in the process include standard headers for prototypes.
43484         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
43485         gets declared on GNU/Linux.
43486         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
43487         unistd.h, for `rmdir'.
43488         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
43489
43490         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
43491         always true.
43492         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
43493
43494         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
43495
43496 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43497
43498         * gnulib-tool (func_version): Create output all at once.  This
43499         may help avoid triggering unnecessary SIGPIPEs, and at any
43500         rate it doesn't hurt.
43501
43502 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43503             Bruno Haible  <bruno@clisp.org>
43504
43505         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
43506         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43507         * m4/signed.m4 (bh_C_SIGNED): Likewise.
43508
43509         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
43510         (gl_FUNC_VASPRINTF): Invoke it.
43511
43512 2006-09-22  Bruno Haible  <bruno@clisp.org>
43513
43514         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
43515         getloadavg.c as first argument.
43516
43517 2006-09-22  Bruno Haible  <bruno@clisp.org>
43518
43519         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
43520         at the beginning of the gl_INIT macro.
43521         * modules/getloadavg (configure.ac): Pass $gl_source_base to
43522         gl_GETLOADAVG.
43523
43524 2006-09-22  Bruno Haible  <bruno@clisp.org>
43525
43526         * gnulib-tool (func_create_megatestdir): Don't include the config-h
43527         module.
43528         Suggested by Ralf Wildenhues.
43529
43530 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
43531
43532         Import this patch from libc:
43533
43534         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
43535
43536         * lib/regex_internal.c (re_string_reconstruct): Handle
43537         offset < pstr->valid_raw_len && pstr->offsets_needed case.
43538         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
43539         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
43540         re_string_context_at.
43541
43542         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
43543         now requires it.
43544         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
43545         gl_REGEX now does it for us.
43546         (gl_REGEX): Add test taken from
43547         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
43548
43549         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
43550         Check that large offsets work.  Modernize Autoconf usages.
43551         Prefer "yes" to mean a good thing rather than a bad.
43552         Don't put "#define mkstemp" in config.h, as this might interfere
43553         with standard system headers that "#define mkstemp mkstemp64".
43554
43555         * modules/mkstemp (Depends-on): Add extensions, so that
43556         mkstemp is visible on some platforms.
43557         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
43558         (Include): Change to "mkstemp.h" from <stdlib.h>.
43559         (Files): Add mkstemp.h.
43560
43561         * lib/mkstemp.h: New file, since some standard headers
43562         #define mkstemp.
43563         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
43564         Include "mkstemp.h".
43565         Make the _LIBC code resemble glibc original more,
43566         e.g., use K&R style.
43567         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
43568         (mkstemp): Remove, since mkstemp.h does this for us.
43569         * lib/stdlib--.h: Include mkstemp.h.
43570
43571         Import this patch from libc:
43572
43573         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
43574
43575         * lib/tempname.c (__gen_tempname): Change attempts_min
43576         into a macro.  Use preprocessor to decide how to initialize
43577         attempts [Coverity CID 67].
43578
43579 2006-09-20  Bruno Haible  <bruno@clisp.org>
43580
43581         * lib/mkdtemp.c: Import from libc.
43582         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
43583                 * sysdeps/posix/tempname.c (__gen_tempname): Change
43584                 attempts_min into a macro.  Use preprocessor to decide how to
43585                 initialize attempts [Coverity CID 67].
43586         2001-11-27  Paul Eggert  <eggert@twinsun.com>
43587                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
43588                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
43589
43590 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43591
43592         * gnulib-tool (func_exit): New function, to allow to pass the
43593         exit status portably through the trap.  Use everywhere.
43594         (--help, --version): Signal a write error.
43595         (trap): catch SIGPIPE, for write errors.
43596         Exit at the end of the trap, with the correct exit status.
43597
43598 2006-09-19  Karl Berry  <karl@gnu.org>
43599
43600         * doc/gnulib.texi: note about the license texinfo files.
43601
43602 2006-09-19  Eric Blake  <ebb9@byu.net>
43603
43604         * gnulib-tool: Avoid space-tab.
43605
43606 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
43607
43608         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
43609         that prevented coreutils 6.1 from building.  Problem reported
43610         by Petter Reinholdtsen.
43611
43612 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
43613
43614         * gnulib-tool (avoidlist): Fix typo that broke options like
43615         --avoid=lock that are used by coreutils bootstrap.
43616
43617 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
43618
43619         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
43620         more systematically.
43621
43622 2006-09-18  Jim Meyering  <jim@meyering.net>
43623
43624         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
43625
43626 2006-09-18  Bruno Haible  <bruno@clisp.org>
43627
43628         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
43629
43630 2006-09-18  Bruno Haible  <bruno@clisp.org>
43631
43632         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
43633         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
43634         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
43635         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
43636         * m4/gettext.m4: Require autoconf >= 2.52.
43637         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
43638         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
43639         of gl_cv_header_inttypes_h.
43640
43641 2006-09-18  Bruno Haible  <bruno@clisp.org>
43642
43643         * lib/javaversion.c: Include configmake.h.
43644
43645 2006-09-18  Bruno Haible  <bruno@clisp.org>
43646
43647         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
43648         avoid that the while loops be executed in a subshell.
43649
43650 2006-09-18  Bruno Haible  <bruno@clisp.org>
43651
43652         * MODULES.html.sh (func_module): Break long lines.
43653         Suggested by Bruce Korb <bkorb@gnu.org>.
43654
43655 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43656
43657         Speed up by a factor of 1.12.
43658         * gnulib-tool (nl): New variable.
43659         (func_import): Rewrite include directive extraction to only read each
43660         directive once.
43661
43662 2006-09-17  Bruno Haible  <bruno@clisp.org>
43663
43664         * modules/javaversion (Makefile.am): Remove DEFS setting.
43665         (Depends-on): Add configmake, for PKGDATADIR definition.
43666
43667 2006-09-17  Bruno Haible  <bruno@clisp.org>
43668
43669         * gnulib-tool (func_create_testdir): Rewrite all files at once.
43670
43671 2006-09-17  Bruno Haible  <bruno@clisp.org>
43672
43673         * gnulib-tool (func_append): New function, stolen from libtool.m4.
43674         (func_modules_transitive_closure, func_modules_add_dummy,
43675         func_modules_to_filelist, func_import, func_create_testdir,
43676         func_create_megatestdir, ...): Use it wherever possible.
43677         Suggested by Ralf Wildenhues.
43678
43679 2006-09-16  Karl Berry  <karl@gnu.org>
43680
43681         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
43682         to avoid sectioning errors.
43683         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
43684         [ifinfo]: blank line after @center-ed titles.
43685         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
43686         Spell FSF address consistently with others.
43687         (These changes approved by rms.)
43688
43689 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43690
43691         Speed up by a factor of 1.61.
43692         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
43693         already checked module names again.
43694
43695 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43696
43697         Speed up by a factor of 1.13.
43698         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
43699         for new_files, and the input to func_add_or_update.
43700
43701 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43702
43703         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
43704         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
43705
43706 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43707
43708         * modules/mkancesdirs (Depends-on): Add fcntl.
43709         * modules/savewd: New file.
43710         * MODULES.html.sh (File system functions): Add savewd.
43711
43712         * modules/configmake (Makefile.am): Add support for the
43713         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
43714
43715 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43716
43717         * m4/savewd.m4: New file.
43718
43719 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43720
43721         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
43722         (dirchownmod): New arg FD.  All callers changed.
43723         Use FD rather than opening the directory ourself, as opening is
43724         now the caller's responsibility.
43725         * lib/dirchownmod.h: Likewise.
43726         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
43727         hosts that require <sys/types.h> before <sys/stat.h>.  Include
43728         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
43729         (test_dir): Remove.
43730         (mkancesdirs): Return length of prefix of FILE that has already
43731         been made, or -2 if there is a child doing the work.  Redo
43732         algorithm so that it is O(N) rather than O(N**2).  Optimize away
43733         ".", and treat ".." specially since it might stray back into
43734         already-created areas.  Use a subprocess if necessary.  New arg
43735         WD; all users changed.  MAKE_DIR function should now return 1
43736         if it creates a directory that is not readable.  Return -2 if
43737         a child process is spun off.
43738         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
43739         Adjust signature to match code.
43740         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
43741         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
43742         all users changed.
43743         * lib/savewd.c, lib/savewd.h: New files.
43744
43745 2006-09-15  Jim Meyering  <jim@meyering.net>
43746
43747         * modules/rename-dest-slash: New module.
43748         * MODULES.html.sh (posix_compat): Add it here.
43749
43750         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
43751
43752 2006-09-15  Jim Meyering  <jim@meyering.net>
43753
43754         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
43755         file.
43756
43757         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
43758
43759 2006-09-15  Jim Meyering  <jim@meyering.net>
43760
43761         * lib/rename-dest-slash.c (has_trailing_slash): Use
43762         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
43763         (rpl_rename_dest_slash): Perform the cheaper trailing slash
43764         test before testing whether SRC is a directory.
43765         Suggestions from Bruno Haible.
43766
43767         Avoid a warning about an unused variable.
43768         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
43769         into the #ifdef block where it's used.
43770
43771         * lib/rename-dest-slash.c: New file.
43772
43773 2006-09-14  Bruno Haible  <bruno@clisp.org>
43774
43775         * lib/allocsa.c: Include <config.h> unconditionally.
43776         * lib/asnprintf.c: Likewise.
43777         * lib/asprintf.c: Likewise.
43778         * lib/c-strcasecmp.c: Likewise.
43779         * lib/c-strcasestr.c: Likewise.
43780         * lib/c-strncasecmp.c: Likewise.
43781         * lib/c-strstr.c: Likewise.
43782         * lib/classpath.c: Likewise.
43783         * lib/clean-temp.c: Likewise.
43784         * lib/concatpath.c: Likewise.
43785         * lib/copy-file.c: Likewise.
43786         * lib/csharpcomp.c: Likewise.
43787         * lib/csharpexec.c: Likewise.
43788         * lib/execute.c: Likewise.
43789         * lib/fatal-signal.c: Likewise.
43790         * lib/findprog.c: Likewise.
43791         * lib/fwriteerror.c: Likewise.
43792         * lib/gl_array_list.c: Likewise.
43793         * lib/gl_array_oset.c: Likewise.
43794         * lib/gl_avltree_list.c: Likewise.
43795         * lib/gl_avltree_oset.c: Likewise.
43796         * lib/gl_avltreehash_list.c: Likewise.
43797         * lib/gl_carray_list.c: Likewise.
43798         * lib/gl_linked_list.c: Likewise.
43799         * lib/gl_linkedhash_list.c: Likewise.
43800         * lib/gl_list.c: Likewise.
43801         * lib/gl_oset.c: Likewise.
43802         * lib/gl_rbtree_list.c: Likewise.
43803         * lib/gl_rbtree_oset.c: Likewise.
43804         * lib/gl_rbtreehash_list.c: Likewise.
43805         * lib/imaxabs.c: Likewise.
43806         * lib/imaxdiv.c: Likewise.
43807         * lib/javacomp.c: Likewise.
43808         * lib/javaexec.c: Likewise.
43809         * lib/javaversion.c: Likewise.
43810         * lib/linebreak.c: Likewise.
43811         * lib/localcharset.c: Likewise.
43812         * lib/lock.c: Likewise.
43813         * lib/mbchar.c: Likewise.
43814         * lib/mbswidth.c: Likewise.
43815         * lib/mkdtemp.c: Likewise.
43816         * lib/pipe.c: Likewise.
43817         * lib/printf-args.c: Likewise.
43818         * lib/printf-parse.c: Likewise.
43819         * lib/progname.c: Likewise.
43820         * lib/progreloc.c: Likewise.
43821         * lib/readlink.c: Likewise.
43822         * lib/sh-quote.c: Likewise.
43823         * lib/stpcpy.c: Likewise.
43824         * lib/stpncpy.c: Likewise.
43825         * lib/strcasecmp.c: Likewise.
43826         * lib/strcasestr.c: Likewise.
43827         * lib/strcspn.c: Likewise.
43828         * lib/striconv.c: Likewise.
43829         * lib/strncasecmp.c: Likewise.
43830         * lib/strnlen1.c: Likewise.
43831         * lib/strstr.c: Likewise.
43832         * lib/strtok_r.c: Likewise.
43833         * lib/tls.c: Likewise.
43834         * lib/tmpdir.c: Likewise.
43835         * lib/unicodeio.c: Likewise.
43836         * lib/unsetenv.c: Likewise.
43837         * lib/vasnprintf.c: Likewise.
43838         * lib/vasprintf.c: Likewise.
43839         * lib/wait-process.c: Likewise.
43840         * lib/xallocsa.c: Likewise.
43841         * lib/xsetenv.c: Likewise.
43842         * lib/xstriconv.c: Likewise.
43843
43844 2006-09-13  Simon Josefsson  <jas@extundo.com>
43845
43846         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
43847         that internally, suggested by Ralf Wildenhues
43848         <Ralf.Wildenhues@gmx.de>.
43849
43850 2006-09-13  Simon Josefsson  <jas@extundo.com>
43851
43852         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
43853         @LIBOBJS@.
43854         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43855
43856 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
43857
43858         * lib/_fpending.c: Include <config.h> unconditionally, since we no
43859         longer worry about uses that don't define HAVE_CONFIG_H.
43860         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
43861         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
43862         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
43863         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
43864         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
43865         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
43866         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
43867         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
43868         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
43869         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
43870         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
43871         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
43872         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
43873         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
43874         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
43875         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
43876         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
43877         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
43878         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
43879         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
43880         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
43881         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
43882         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
43883         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
43884         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
43885         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
43886         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
43887         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
43888         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
43889         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
43890         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
43891         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
43892         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
43893         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
43894         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
43895         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
43896         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
43897         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
43898         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
43899         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
43900         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
43901         Likewise.
43902
43903 2006-09-13  Eric Blake  <ebb9@byu.net>
43904
43905         * lib/getopt.c: Fix typo in last commit.
43906
43907 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43908
43909         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
43910         dgettext.
43911
43912 2006-09-12  Jim Meyering  <jim@meyering.net>
43913
43914         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
43915         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
43916         Reported by Nelson H. F. Beebe.
43917
43918 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
43919
43920         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
43921         program_invocation_name and program_invocation_short_name are
43922         initialized.
43923         * lib/argp-namefrob.h: Move declarations of program_invocation_name
43924         and program_invocation_short_name to argp.h, so they are visible
43925         to user programs.
43926         * lib/argp.h: Likewise
43927
43928 2006-09-10  Bruno Haible  <bruno@clisp.org>
43929
43930         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
43931         m4/inttypes_h.m4, m4/uintmax_t.m4.
43932
43933 2006-09-10  Bruno Haible  <bruno@clisp.org>
43934
43935         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
43936         gl_AC_TYPE_UINTMAX_T.
43937
43938 2006-09-10  Bruno Haible  <bruno@clisp.org>
43939
43940         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
43941
43942 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
43943
43944         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
43945         convention.  Text proposed by Bruno Haible.
43946         (struct argp_option): Document the use of N_() wrappers.
43947
43948         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
43949         '\v', and translate the two parts separately, instead of feeding
43950         the whole string to gettext.  This allows to exclude
43951         '\v' from the strings visible to the translator by writing doc
43952         strings as N_("..") "\v" N_("..").
43953
43954 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
43955
43956         * config/srclist.txt: Undo latest change; the bug was fixed.
43957
43958 2006-09-09  Bruno Haible  <bruno@clisp.org>
43959
43960         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
43961         assignments if building a library without libtool.
43962         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
43963         in func_emit_lib_Makefile_am.
43964         (func_import): When building a static library libfoo.a, arrange to
43965         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
43966         (func_create_testdir): Likewise.
43967         * modules/gc (configure.ac, Makefile.am): If building statically,
43968         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
43969         * modules/iconvme (configure.ac, Makefile.am): Likewise.
43970         * modules/striconv (configure.ac, Makefile.am): Likewise.
43971         Based on a suggestion by Ralf Wildenhues.
43972
43973 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43974
43975         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
43976         Check for unistd.h too, since Autoconf doesn't assume POSIX.
43977         Also:
43978
43979         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43980         Add year_2050_test to catch glibc bug 2821
43981         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
43982
43983         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
43984         Prefer #ifdef to #if.
43985
43986         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
43987         Return from 'main' instead of calling 'exit'.
43988
43989 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
43990
43991         * lib/mktime.c (guess_time_tm): Fix bug where mktime
43992         returned the maximum time_t value rather than (time_t) -1.
43993         Problem originally reported by William Bardwell
43994         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
43995
43996         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
43997         Moved to here ...
43998         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
43999         ... from here.
44000
44001 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
44002
44003         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
44004         2821 is fixed.
44005
44006 2006-09-08  Jim Meyering  <jim@meyering.net>
44007
44008         Don't make generated files read-only.  That would bother too many
44009         people.  However, do retain the ability to work when targets are
44010         read-only: remove the destination and temporary files before writing
44011         them (when generated via sed or echo), or by using the -f option for
44012         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
44013         * modules/alloca-opt, modules/argz, modules/arpa_inet:
44014         * modules/byteswap, modules/configmake, modules/fcntl:
44015         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
44016         * modules/localcharset, modules/netinet_in, modules/poll:
44017         * modules/stdbool, modules/stdint, modules/sys_select:
44018         * modules/sys_socket, modules/sys_stat, modules/sysexits:
44019
44020 2006-09-08  Jim Meyering  <jim@meyering.net>
44021
44022         Avoid new build failure on FreeBSD 6.0.
44023         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
44024         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
44025         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
44026
44027 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44028
44029         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
44030
44031 2006-09-07  Jim Meyering  <jim@meyering.net>
44032
44033         Fix global typo in last change: use chmod u-w, not chmod u-x.
44034         Spotted by Paul Eggert and Bruce Korb.
44035         * modules/alloca-opt, modules/argz, modules/arpa_inet:
44036         * modules/byteswap, modules/configmake, modules/fcntl:
44037         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
44038         * modules/localcharset, modules/netinet_in, modules/poll:
44039         * modules/stdbool, modules/stdint, modules/sys_select:
44040         * modules/sys_socket, modules/sys_stat, modules/sysexits:
44041
44042 2006-09-06  Jim Meyering  <jim@meyering.net>
44043
44044         Make generated files be read-only.
44045         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
44046         Ensure that each generated file is now read-only.
44047         * modules/argz: Likewise.
44048         * modules/arpa_inet: Likewise.
44049         * modules/byteswap: Likewise.
44050         * modules/configmake: Likewise.
44051         * modules/fcntl: Likewise.
44052         * modules/fnmatch: Likewise.
44053         * modules/getopt: Likewise.
44054         * modules/glob: Likewise.
44055         * modules/inttypes: Likewise.
44056         * modules/netinet_in: Likewise.
44057         * modules/poll: Likewise.
44058         * modules/stdbool: Likewise.
44059         * modules/stdint: Likewise.
44060         * modules/sys_select: Likewise.
44061         * modules/sys_socket: Likewise.
44062         * modules/sys_stat: Likewise.
44063         * modules/sysexits: Likewise.
44064         * modules/localcharset: Same as above, but continue using temporary
44065         file named "t-$@" (why different?) rather than the "$@-t" used
44066         everywhere else.
44067
44068         * modules/sysexits (Makefile.am): Replace literal occurrences
44069         of "sysexit.h" more readable, and more consistent, "$@".
44070
44071 2006-09-06  Bruno Haible  <bruno@clisp.org>
44072
44073         * modules/striconv: New file.
44074         * modules/xstriconv: New file.
44075         * MODULES.html.sh (Internationalization functions): Add striconv,
44076         xstriconv.
44077
44078 2006-09-06  Bruno Haible  <bruno@clisp.org>
44079
44080         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
44081         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
44082         not using libtool correctly.
44083
44084 2006-09-06  Bruno Haible  <bruno@clisp.org>
44085
44086         * lib/striconv.h: New file.
44087         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
44088         iconvstring.c.
44089         * lib/xstriconv.h: New file.
44090         * lib/xstriconv.c: New file.
44091
44092 2006-09-06  Bruno Haible  <bruno@clisp.org>
44093
44094         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
44095         lib_..._LDFLAGS.
44096
44097 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44098
44099         * lib/argz_.h: Sync from Libtool.
44100
44101         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
44102                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44103
44104         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
44105
44106 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
44107
44108         * modules/trim: New file.
44109
44110 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
44111
44112         * lib/trim.h: New file.
44113         * lib/trim.c: New file.
44114
44115 2006-09-05  Bruno Haible  <bruno@clisp.org>
44116
44117         * MODULES.html.sh (String handling): Add trim.
44118
44119 2006-09-04  Karl Berry  <karl@gnu.org>
44120
44121         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
44122         until next release.
44123
44124 2006-09-03  Bruno Haible  <bruno@clisp.org>
44125
44126         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
44127         correctly.
44128
44129 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
44130
44131         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
44132         not gl_GETLOADAVG.  Omit unneeded semicolons.
44133         Problems reported by Ralf Wildenhues in
44134         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
44135         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
44136         at the end, which is the usual gnulib style.
44137
44138         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
44139         of doing all the work ourselves.
44140         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
44141         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
44142
44143 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
44144
44145         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
44146         Problem reported by Ralf Wildenhues in
44147         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
44148
44149         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
44150         HAVE_STRUCT_STATFS_F_FSTYPENAME.
44151
44152 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
44153
44154         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
44155         yesterday's patch by changing test -n to test -z.
44156
44157 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
44158
44159         * modules/getloadavg (Files): Add m4/getloadavg.m4.
44160         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
44161         the former is now obsolescent.
44162
44163         * modules/chdir-long (Depends-on): Add fcntl.
44164
44165 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
44166
44167         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
44168         obsolescent, and programs should use gnulib instead.
44169         * m4/getloadavg.m4: New file, with contents taken from Autoconf
44170         but with prefixes changed.
44171
44172 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
44173
44174         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
44175         or stdbool.h, because they might not exist while configuring.
44176
44177         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
44178         Don't include unistd.h or limits.h; not needed, since chdir-long.h
44179         does that for us.
44180         (O_DIRECTORY): Remove.
44181
44182 2006-08-31  Eric Blake  <ebb9@byu.net>
44183
44184         * gnulib-tool: Don't let emacs change spaces to TAB.
44185
44186 2006-08-31  Bruno Haible  <bruno@clisp.org>
44187
44188         * gnulib-tool: When calling func_import more than once, do it in a
44189         subshell.
44190         Reported by Eric Blake <ebb9@byu.net>.
44191
44192 2006-08-31  Bruno Haible  <bruno@clisp.org>
44193
44194         * gnulib-tool (nl): Remove variable.
44195         (sed_transform_lib_file): Use more robust test for config-h module.
44196         (func_import): Fix typo in 2006-08-25 patch.
44197
44198 2006-08-31  Bruno Haible  <bruno@clisp.org>
44199
44200         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
44201         specified, augment Makefile.am variables instead of assigning them.
44202
44203 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44204
44205         Work around a bug in both the Linux and SunOS 64-bit kernels:
44206         nanosleep mishandles sleeps for longer than 2**31 seconds.
44207         Problem reported by Frank v Waveren in
44208         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
44209         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
44210         Check for nanosleep bug.
44211         (LIB_NANOSLEEP): Append clock_gettime library if needed.
44212
44213 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44214
44215         Work around a bug in both the Linux and SunOS 64-bit kernels:
44216         nanosleep mishandles sleeps for longer than 2**31 seconds.
44217         Problem reported by Frank v Waveren in
44218         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
44219         * lib/nanosleep.c (BILLION): New constant.
44220         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
44221         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
44222         implementation.
44223
44224 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44225
44226         * modules/nanosleep (Depends-on): Add gettime.
44227
44228 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44229         and Simon Josefsson  <jas@extundo.com>
44230         and Oskar Liljeblad  <oskar@osk.mine.nu>
44231
44232         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
44233         * gnulib-tool (func_import): New license type 'unmodifiable license
44234         text'.
44235         * modules/fdl: Use it.  Longer description.
44236         * module/gpl, module/lgpl: New files.
44237
44238 2006-08-30  Jim Meyering  <jim@meyering.net>
44239
44240         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
44241         shadowing the parameter.
44242
44243 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44244
44245         Sync from Libtool:
44246
44247         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44248
44249         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
44250         sharing with gnulib.  Report by Eric Blake.
44251
44252 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44253
44254         * modules/isapipe: New file.
44255         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
44256
44257 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44258
44259         * modules/configmake (Makefile.am): Add a comment, and omit
44260         the CONFIGMAKE_ prefix from generated macro names.  Suggested
44261         by Bruno Haible.
44262
44263 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44264
44265         * m4/isapipe.m4: New file.
44266
44267 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44268
44269         * lib/isapipe.c, lib/isapipe.h: New files.
44270
44271 2006-08-29  Jim Meyering  <jim@meyering.net>
44272
44273         * modules/configmake (Makefile.am): Make configmake.h depend on
44274         Makefile.  Otherwise, a stale configmake.h could hang around.
44275
44276 2006-08-29  Eric Blake  <ebb9@byu.net>
44277
44278         * lib/error.c (error_at_line, print_errno_message): Match libc, after
44279         resolution of upstream bug 3044.
44280
44281 2006-08-29  Bruno Haible  <bruno@clisp.org>
44282
44283         * modules/localcharset (Depends-on): Add configmake.
44284         (Makefile.am): Remove setting of LIBDIR through DEFS.
44285
44286 2006-08-29  Bruno Haible  <bruno@clisp.org>
44287
44288         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
44289         defined.
44290
44291 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44292
44293         * modules/fcntl: New file.
44294         * modules/chdir-safer (Depends-on): Add fcntl.
44295         * modules/fts: Likewise.
44296         * modules/mkdir-p: Likewise.
44297
44298         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
44299         This undoes the most recent change, since we're now addressing the
44300         problem in a different way.
44301
44302         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
44303         into output, since the output might be called Makefile.am even
44304         if $makefile_name is something different.
44305         (func_import): Use $makefile_am rather than
44306         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
44307         empty.
44308
44309         * modules/inttypes (Files): Add m4/inttypes-h.m4.
44310
44311 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44312
44313         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
44314         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
44315         recent change to stdint.m4, since we're now addressing the problem in a
44316         different way.
44317
44318 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44319
44320         * m4/fcntl_h.m4: New file.
44321
44322 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44323
44324         * lib/fcntl_.h: New file.
44325         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
44326         the fcntl module.
44327         * lib/dirchownmod.c: Likewise.
44328         * lib/fts.c: Likewise.
44329
44330         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
44331         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
44332         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
44333         just before including <inttypes.h>, to avoid circular inclusion.
44334
44335 2006-08-28  Jim Meyering  <jim@meyering.net>
44336
44337         * doc/visibility.texi: Actually read and correct the grammar of the
44338         sentence affected by yesterday's change.
44339
44340 2006-08-28  Eric Blake  <ebb9@byu.net>
44341
44342         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
44343         needs wrapper.
44344
44345 2006-08-28  Eric Blake  <ebb9@byu.net>
44346
44347         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
44348
44349 2006-08-28  Eric Blake  <ebb9@byu.net>
44350
44351         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
44352
44353 2006-08-28  Bruno Haible  <bruno@clisp.org>
44354
44355         * modules/c-strstr: New file, from GNU gettext.
44356         * MODULES.html.sh (String handling): Add c-strstr.
44357
44358 2006-08-28  Bruno Haible  <bruno@clisp.org>
44359
44360         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
44361         macros.
44362         Reported by Eric Blake.
44363
44364 2006-08-28  Bruno Haible  <bruno@clisp.org>
44365
44366         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
44367         (VASNPRINTF): Return a string of length > INT_MAX without failing.
44368         * lib/vasprintf.c: Include errno.h, limits.h.
44369         (EOVERFLOW): New fallback definition.
44370         (vasprintf): Test here whether the string length is > INT_MAX.
44371         * lib/vsnprintf.c: Include errno.h, limits.h.
44372         (EOVERFLOW): New fallback definition.
44373         (vsnprintf): Fix bug when generated string was too long for the buffer.
44374         Test here whether the string length is > INT_MAX.
44375
44376 2006-08-28  Bruno Haible  <bruno@clisp.org>
44377
44378         * lib/inttypes_.h (SCNX*): Remove definitions.
44379         Reported by Eric Blake.
44380
44381 2006-08-28  Bruno Haible  <bruno@clisp.org>
44382
44383         * lib/c-strstr.h: New file, from GNU gettext.
44384         * lib/c-strstr.c: New file, from GNU gettext.
44385
44386 2006-08-28  Bruno Haible  <bruno@clisp.org>
44387
44388         * gnulib-tool: Reorder some statements.
44389
44390 2006-08-28  Bruno Haible  <bruno@clisp.org>
44391
44392         * gnulib-tool: New option --makefile-name.
44393         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
44394         $makefile_name.
44395         (func_import): Write $makefile_name to the cache file, and read it from
44396         there unless explicitly specified. Use $makefile_name as file name
44397         instead of Makefile.am. Adjust the recommendations accordingly.
44398
44399 2006-08-28  Bruno Haible  <bruno@clisp.org>
44400
44401         * gnulib-tool (func_verify_module): Check against misapplying patch.
44402
44403 2006-08-28  Bruno Haible  <bruno@clisp.org>
44404
44405         * gnulib-tool (func_relativize, func_relconcat): New functions.
44406         Give an error if --local-dir is given with --update.
44407         Remove trailing slashes from $local_gnulib_dir.
44408         (func_import): Store the relativized $local_gnulib_dir in
44409         gnulib-cache.m4, and read it from there if not specified explicitly.
44410
44411 2006-08-28  Bruno Haible  <bruno@clisp.org>
44412
44413         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
44414         is the current directory. Respect also $local_gnulib_dir.
44415
44416 2006-08-28  Bruno Haible  <bruno@clisp.org>
44417             Simon Josefsson  <jas@extundo.com>
44418
44419         BeOS portability.
44420         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
44421
44422 2006-08-27  Jim Meyering  <jim@meyering.net>
44423
44424         * doc/visibility.texi: Remove duplicate word: "pointer".
44425
44426 2006-08-26  Bruno Haible  <bruno@clisp.org>
44427
44428         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
44429         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
44430         (Makefile.am): Create inttypes.h from inttypes_.h.
44431         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
44432
44433         * modules/imaxabs: New file.
44434
44435         * modules/imaxdiv: New file.
44436
44437 2006-08-26  Bruno Haible  <bruno@clisp.org>
44438
44439         * m4/inttypes.m4: New file.
44440         * m4/_inttypes_h.m4: Remove file.
44441         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
44442         PRI_MACROS_BROKEN.
44443         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
44444
44445         * m4/imaxabs.m4: New file.
44446
44447         * m4/imaxdiv.m4: New file.
44448
44449 2006-08-26  Bruno Haible  <bruno@clisp.org>
44450
44451         * lib/inttypes_.h: New file.
44452         * lib/inttypes.h: Remove file.
44453         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
44454
44455         * lib/imaxabs.c: New file.
44456
44457         * lib/imaxdiv.c: New file.
44458
44459 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
44460
44461         New config-h module, so that "make" output needn't be cluttered
44462         by -DHAVE_CONFIG_H.
44463         * MODULES.html.sh (Support for building libraries and executables):
44464         Add config-h.
44465         * modules/config-h: New file.
44466         * gnulib-tool (nl, sed_transform_lib_file): New vars.
44467         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
44468         the config-h module is used.
44469
44470         New configmake module, so that "make" output needn't be cluttered
44471         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
44472         * MODULES.html.sh (Support for building libraries and executables):
44473         Add configmake.
44474         * modules/configmake: New file.
44475
44476 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
44477
44478         * m4/config-h.m4: New file.
44479
44480 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
44481
44482         * config/srclist.txt: Add elisp-comp.
44483
44484 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
44485
44486         * MODULES.html.sh (Support for building libraries and executables):
44487         Add elisp-comp.
44488         * build-aux/elisp-comp: New file.
44489         * modules/elisp-comp: New file.
44490
44491 2006-08-24  Bruno Haible  <bruno@clisp.org>
44492
44493         * gnulib-tool (func_create_testdir): Use non-default values of
44494         sourcebase and m4base.
44495
44496 2006-08-24  Bruno Haible  <bruno@clisp.org>
44497
44498         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
44499         HTML structure.
44500
44501 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
44502
44503         * modules/openat (Depends-on): Add lchown.
44504
44505 2006-08-23  Bruno Haible  <bruno@clisp.org>
44506
44507         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
44508         of gl_LOCK_EARLY instead of gl_LOCK.
44509
44510 2006-08-23  Bruno Haible  <bruno@clisp.org>
44511
44512         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
44513         on OSF/1 to no.
44514         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
44515
44516 2006-08-23  Bruno Haible  <bruno@clisp.org>
44517
44518         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
44519         as unusable.
44520
44521         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
44522         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
44523         (gl_LOCK): New macro.
44524
44525 2006-08-22  Simon Josefsson  <jas@extundo.com>
44526
44527         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
44528         to md5 module.
44529
44530 2006-08-22  Simon Josefsson  <jas@extundo.com>
44531
44532         * MODULES.html.sh: Add "Support for maintaining and release
44533         projects".
44534
44535         * build-aux/gnupload: New file, from coreutils.
44536
44537 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44538
44539         Avoid the need for AC_LIBSOURCES in m4 macros.
44540         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
44541         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
44542         * modules/check-version (EXTRA_DIST): Add check-version.h.
44543         * modules/crc (EXTRA_DIST): Add crc.h.
44544         * modules/des (EXTRA_DIST): Add des.h.
44545         * modules/gc (EXTRA_DIST): Add gc.h.
44546         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
44547         * modules/getline (EXTRA_DIST): Add getline.h.
44548         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
44549         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
44550         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
44551         * modules/md2 (EXTRA_DIST): Add md2.h.
44552         * modules/md4 (EXTRA_DIST): Add md4.h.
44553         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
44554         * modules/read-file (EXTRA_DIST): Add read-file.h.
44555         * modules/readline (EXTRA_DIST): Add readline.h.
44556         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
44557         rijndael-api-fst.h.
44558
44559 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44560
44561         * m4/rijndael.m4 (gl_ARCFOUR):
44562         * m4/arctwo.m4 (gl_ARCTWO):
44563         * m4/check-version.m4 (gl_CHECK_VERSION):
44564         * m4/crc.m4 (gl_CRC):
44565         * m4/des.m4 (gl_DES):
44566         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
44567         * m4/gc.m4 (gl_GC):
44568         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
44569         * m4/getline.m4 (gl_FUNC_GETLINE):
44570         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
44571         * m4/hmac-md5.m4 (gl_HMAC_MD5):
44572         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
44573         * m4/md2.m4 (gl_MD2):
44574         * m4/md4.m4 (gl_MD4):
44575         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
44576         * m4/read-file.m4 (gl_FUNC_READ_FILE):
44577         * m4/readline.m4 (gl_FUNC_READLINE):
44578         * m4/rijndael.m4 (gl_RIJNDAEL):
44579         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
44580         to get the necessary .h files and whatnot.
44581
44582 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44583
44584         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
44585         gnulib rather than the other way around.
44586         * config/srclistvars.sh (COREUTILS): Remove.
44587
44588 2006-08-22  Jim Meyering  <jim@meyering.net>
44589
44590         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
44591
44592         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
44593
44594 2006-08-22  Eric Blake  <ebb9@byu.net>
44595
44596         * modules/regexprops-generic: New file.
44597         * MODULES.html.sh (Support for building documentation): List it.
44598
44599 2006-08-22  Eric Blake  <ebb9@byu.net>
44600
44601         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
44602         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
44603         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
44604         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
44605
44606 2006-08-22  Bruno Haible  <bruno@clisp.org>
44607
44608         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
44609         and lib_LTLIBRARIES like the other lib_* variables.
44610
44611 2006-08-22  Bruno Haible  <bruno@clisp.org>
44612
44613         * build-aux/x-to-1.in: New file, from GNU gettext.
44614
44615 2006-08-22  Bruno Haible  <bruno@clisp.org>
44616
44617         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
44618         <utmpx.h> exists.
44619
44620 2006-08-22  Bruno Haible  <bruno@clisp.org>
44621
44622         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
44623         <utmpx.h> exists.
44624
44625 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44626
44627         BeOS portability.
44628         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
44629         exist.
44630         Problem reported by Bruno Haible.
44631
44632 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44633
44634         Avoid the need for AC_LIBSOURCES in m4 macros.
44635         * modules/acl (EXTRA_DIST): Add acl.h.
44636         * modules/argmatch (Files): Add m4/argmatch.m4.
44637         (configure.ac): Add gl_ARGMATCH.
44638         (EXTRA_DIST): Renamed from lib_SOURCES, for
44639         consistency with the other modules.  Remove argmatch.c.
44640         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
44641         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
44642         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
44643         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
44644         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
44645         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
44646         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
44647         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
44648         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
44649         * modules/closeout (EXTRA_DIST): Add closeout.h.
44650         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
44651         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
44652         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
44653         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
44654         dirname.h; remove basename.c and stripslash.c.
44655         * modules/exclude (EXTRA_DIST): Add exclude.h.
44656         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
44657         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
44658         * modules/file-type (EXTRA_DIST): Add file-type.h.
44659         * modules/filemode (EXTRA_DIST): Add filemode.h.
44660         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
44661         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
44662         * modules/fpending (EXTRA_DIST): Add __fpending.h.
44663         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
44664         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
44665         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
44666         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
44667         * modules/getdate (EXTRA_DIST): Add getdate.c.
44668         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
44669         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
44670         * modules/getpass (EXTRA_DIST): Add getpass.h.
44671         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
44672         * modules/group-member (EXTRA_DIST): Add group-member.h.
44673         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
44674         * modules/hash (EXTRA_DIST): Add hash.h.
44675         * modules/human (EXTRA_DIST): Add human.h.
44676         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
44677         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
44678         * modules/lchown (EXTRA_DIST): Add lchown.h.
44679         * modules/long-options (EXTRA_DIST): Add long-options.h.
44680         * modules/lstat (EXTRA_DIST): Add lstat.h.
44681         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
44682         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
44683         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
44684         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
44685         * modules/memxor (EXTRA_DIST): Add memxor.h.
44686         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
44687         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
44688         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
44689         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
44690         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
44691         * modules/physmem (EXTRA_DIST): Add physmem.h.
44692         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
44693         * modules/posixver (EXTRA_DIST): Add posixver.h.
44694         * modules/quote (EXTRA_DIST): Add quote.h.
44695         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
44696         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
44697         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
44698         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
44699         regex_internal.h regexec.c.
44700         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
44701         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
44702         * modules/same (EXTRA_DIST): Add same.h.
44703         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
44704         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
44705         * modules/savedir (EXTRA_DIST): Add savedir.h.
44706         * modules/sha1 (EXTRA_DIST): Add sha1.h.
44707         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
44708         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
44709         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
44710         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
44711         * modules/strdup (EXTRA_DIST): Add strdup.h.
44712         * modules/strftime (EXTRA_DIST): Add strftime.h.
44713         * modules/strndup (EXTRA_DIST): Add strndup.h.
44714         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
44715         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
44716         * modules/time_r (EXTRA_DIST): Add time_r.h.
44717         * modules/timespec (EXTRA_DIST): Add timespec.h.
44718         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
44719         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
44720         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
44721         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
44722         * modules/userspec (EXTRA_DIST): Add userspec.h.
44723         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
44724         * modules/utimens (EXTRA_DIST): Add utimens.h.
44725         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
44726         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
44727         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
44728         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
44729         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
44730         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
44731         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
44732         * modules/yesno (EXTRA_DIST): Add yesno.h.
44733
44734 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44735
44736         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
44737
44738         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
44739         * m4/dev-ino.m4, same-inode.m4: Remove.
44740
44741         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
44742         * m4/acl.m4 (AC_FUNC_ACL):
44743         * m4/backupfile.m4 (gl_BACKUPFILE):
44744         * m4/c-strtod.m4 (gl_C99_STRTOLD):
44745         * m4/canon-host.m4 (gl_CANON_HOST):
44746         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
44747         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
44748         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
44749         * m4/cloexec.m4 (gl_CLOEXEC):
44750         * m4/close-stream.m4 (gl_CLOSE_STREAM):
44751         * m4/closeout.m4 (gl_CLOSEOUT):
44752         * m4/dirfd.m4 (gl_FUNC_DIRFD):
44753         * m4/dirname.m4 (gl_DIRNAME):
44754         * m4/exclude.m4 (gl_EXCLUDE):
44755         * m4/exitfail.m4 (gl_EXITFAIL):
44756         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
44757         * m4/file-type.m4 (gl_FILE_TYPE):
44758         * m4/filemode.m4 (gl_FILEMODE):
44759         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
44760         * m4/fpending.m4 (gl_FUNC_FPENDING):
44761         * m4/fprintftime.m4 (gl_FPRINTFTIME):
44762         * m4/fts.m4 (gl_FUNC_FTS):
44763         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
44764         * m4/getdate.m4 (gl_GETDATE):
44765         * m4/gethrxtime.m4 (gl_GETHRXTIME):
44766         * m4/getpagesize.m4 (gl_GETPAGESIZE):
44767         * m4/getpass.m4 (gl_FUNC_GETPASS):
44768         * m4/gettime.m4 (gl_GETTIME):
44769         * m4/getugroups.m4 (gl_GETUGROUPS):
44770         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
44771         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
44772         * m4/hard-locale.m4 (gl_HARD_LOCALE):
44773         * m4/hash.m4 (gl_HASH):
44774         * m4/idcache.m4 (gl_IDCACHE):
44775         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
44776         * m4/lchown.m4 (gl_FUNC_LCHOWN):
44777         * m4/long-options.m4 (gl_LONG_OPTIONS):
44778         * m4/lstat.m4 (gl_FUNC_LSTAT):
44779         * m4/md5.m4 (gl_MD5):
44780         * m4/memcasecmp.m4 (gl_MEMCASECMP):
44781         * m4/memcoll.m4 (gl_MEMCOLL):
44782         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
44783         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
44784         * m4/memxor.m4 (gl_MEMXOR):
44785         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
44786         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
44787         * m4/modechange.m4 (gl_MODECHANGE):
44788         * m4/mountlist.m4 (gl_MOUNTLIST):
44789         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
44790         * m4/openat.m4 (gl_FUNC_OPENAT):
44791         * m4/pathmax.m4 (gl_PATHMAX):
44792         * m4/physmem.m4 (gl_PHYSMEM):
44793         * m4/posixtm.m4 (gl_POSIXTM):
44794         * m4/posixver.m4 (gl_POSIXVER):
44795         * m4/quote.m4 (gl_QUOTE):
44796         * m4/quotearg.m4 (gl_QUOTEARG):
44797         * m4/readtokens.m4 (gl_READTOKENS):
44798         * m4/readutmp.m4 (gl_READUTMP):
44799         * m4/regex.m4 (gl_REGEX):
44800         * m4/safe-read.m4 (gl_SAFE_READ):
44801         * m4/safe-write.m4 (gl_SAFE_WRITE):
44802         * m4/same.m4 (gl_SAME):
44803         * m4/save-cwd.m4 (gl_SAVE_CWD):
44804         * m4/savedir.m4 (gl_SAVEDIR):
44805         * m4/settime.m4 (gl_SETTIME):
44806         * m4/sha1.m4 (gl_SHA1):
44807         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
44808         * m4/stat-macros.m4 (gl_STAT_MACROS):
44809         * m4/stat-time.m4 (gl_STAT_TIME):
44810         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
44811         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
44812         * m4/strdup.m4 (gl_FUNC_STRDUP):
44813         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
44814         * m4/strndup.m4 (gl_FUNC_STRNDUP):
44815         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
44816         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
44817         * m4/time_r.m4 (gl_TIME_R):
44818         * m4/timespec.m4 (gl_TIMESPEC):
44819         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
44820         * m4/unlinkdir.m4 (gl_UNLINKDIR):
44821         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
44822         * m4/userspec.m4 (gl_USERSPEC):
44823         * m4/utimecmp.m4 (gl_UTIMECMP):
44824         * m4/utimens.m4 (gl_UTIMENS):
44825         * m4/xalloc.m4 (gl_XALLOC):
44826         * m4/xgetcwd.m4 (gl_XGETCWD):
44827         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
44828         * m4/xreadlink.m4 (gl_XREADLINK):
44829         * m4/xstrtod.m4 (gl_XSTRTOD):
44830         * m4/yesno.m4 (gl_YESNO):
44831         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
44832         to get the necessary .h files and whatnot.
44833
44834 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
44835             Bruno Haible  <bruno@clisp.org>
44836
44837         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
44838         /bin/sh understanding of '!' conditional negation.
44839
44840 2006-08-21  Jim Meyering  <jim@meyering.net>
44841
44842         * modules/openat (Depends-on): Really alphabetize.
44843
44844         * modules/acl (Depends-on): Add error and quote.
44845
44846         * check-module (find_included_lib_files): Add at-func.c to the
44847         ok-to-include-more-than-once white list.
44848
44849         * modules/openat (Depends-on): Add lstat.  Alphabetize.
44850
44851 2006-08-21  Bruno Haible  <bruno@clisp.org>
44852
44853         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44854         Emit a pkgdata_DATA variable only if some snippets add contents to it.
44855         Reported by Martin Lambers <marlam@marlam.de>.
44856
44857 2006-08-21  Bruno Haible  <bruno@clisp.org>
44858
44859         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
44860         specify an installation location, don't emit a noinst_LIBRARIES or
44861         noinst_LTLIBRARIES assignment.
44862
44863 2006-08-21  Bruno Haible  <bruno@clisp.org>
44864
44865         BeOS portability.
44866         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
44867         BeOS has mbrtowc() but no <wctype.h>.
44868
44869 2006-08-21  Bruno Haible  <bruno@clisp.org>
44870
44871         BeOS portability.
44872         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
44873         exist.
44874
44875 2006-08-21  Bruno Haible  <bruno@clisp.org>
44876
44877         BeOS portability.
44878         * lib/mbchar.h: Include <wctype.h> only if it exists.
44879
44880 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44881
44882         Remove files that are no longer needed by their respective modules.
44883         * m4/obstack.m4: Remove.
44884         * m4/strerror_r.m4: Remove.
44885         * m4/uint32_t.m4: Remove.
44886         * m4/uintptr_t.m4: Remove.
44887         * m4/ullong_max.m4: Remove.
44888         * m4/xstrtoimax.m4: Remove.
44889         * m4/xstrtoumax.m4: Remove.
44890
44891         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
44892         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
44893         dependencies now capture this.
44894
44895         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
44896         Do not use AC_LIBSOURCES, since gnulib modules now do this.
44897         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
44898         * m4/human.m4 (gl_HUMAN): Likewise.
44899         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
44900         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
44901
44902         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
44903
44904         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
44905         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
44906         stdint.
44907         * m4/human.m4 (gl_HUMAN): Likewise.
44908         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
44909         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
44910         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
44911         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
44912         * m4/xstrtol (gl_XSTRTOL): Likewise.
44913
44914         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
44915         AC_TYPE_LONG_LONG_INT.
44916         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
44917         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
44918         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
44919         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
44920
44921         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
44922         on stdbool.
44923
44924         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
44925         (gl_PREREQ_XSTRTOUL): Remove.
44926
44927         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
44928
44929         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
44930         mode.
44931
44932 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
44933
44934         Add and change modules to make it easier for coreutils to use
44935         gnulib-tool.
44936         * modules/backupfile (Files): Remove m4/d-ino.m4.
44937         (Depends-on): Add d-ino.
44938         * modules/cycle-check (Depends-on): Add stdint.
44939         (lib_SOURCES): Add cycle-check.h.
44940         * modules/d-ino: New module.
44941         * modules/d-type: New module.
44942         * modules/error (Files): Remove m4/strerror_r.m4.
44943         * modules/filemode (Files): Add m4/st_dm_mode.m4.
44944         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
44945         m4/inttypes_h.m4, m4/uintmax_t.m4.
44946         (Depends-on): Add stdint.
44947         (lib_SOURCES): Add fsusage.h.
44948         * modules/getcwd (Files): Remove d-ino.m4.
44949         (Depends-on): Add d-ino.
44950         * modules/getndelim2 (Depends-on): Add stdint.
44951         * modules/glob (Files): Remove m4/d-type.m4.
44952         (Depends-on): Add d-type.
44953         * modules/host-os: New module.
44954         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
44955         m4/inttypes_h.m4, m4/uintmax_t.m4.
44956         * Depends-on: Add stdint.
44957         (lib_SOURCES): Add human.h.
44958         * modules/inttostr (Files): Remove m4/intmax_t.m4,
44959         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
44960         m4/uintmax_t.m4, m4/ulonglong.m4.
44961         (Depends-on): Add stdint.
44962         (EXTRA_DIST): Add inttostr.h.
44963         * modules/lchmod: New module.
44964         * modules/link-follow: New module.
44965         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
44966         (Depends-on): Add lchmod.
44967         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
44968         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
44969         (Depends-on): Add stdint.
44970         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
44971         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
44972         (Depends-on): Add stdint.
44973         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
44974         * modules/perl: New module.
44975         * modules/regex (Depends-on): Add stdint.
44976         * modules/rmdir-errno: New module.
44977         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
44978         m4/intmax_t.m4.
44979         (Depends-on): Add stdint.
44980         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
44981         m4/uintmax_t.m4.
44982         (Depends-on): Add stdint.
44983         * modules/unlink-busy: New module.
44984         * modules/utimecmp (Depends-on): Add stdint.
44985         * modules/uptime: New module.
44986         * modules/winsz-ioctl: New module.
44987         * modules/winsz-termios: New module.
44988         * modules/xnanosleep (Depends-on): Add nanosleep.
44989         * modules/ullong_max: Remove.
44990         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
44991         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
44992         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
44993         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
44994         (Depends-on): Add inttypes.
44995         (lib_SOURCES): Add xstrtol.h.
44996         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
44997         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
44998         * MODULES.html.sh: Move 'assert' into the assert section.
44999         Move 'dummy' into the linking section.
45000         Remove ullong_max.
45001         Add section for compatibility checks for POSIX:2001 functions,
45002         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
45003         winsz-ioctl, and winsz-termios into it.
45004         Add lchmod.
45005         Add top-level Misc section and put host-os, perl, and uptime
45006         into it.
45007
45008 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
45009
45010         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
45011         now assume the stdint module.  Do not include inttypes.h.
45012         * lib/fsusage.h: Likewise.
45013         * lib/getndelim2.c: Likewise.
45014         * lib/human.h: Likewise.
45015         * lib/inttostr.h: Likewise.
45016         * lib/obstack.c: Likewise.
45017         * lib/regex_internal.h: Likewise.
45018         * lib/tempname.c: Likewise.
45019         * lib/utimecmp.c: Likewise.
45020         * lib/xstrtol.h: Likewise.
45021
45022         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
45023
45024         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
45025         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
45026         * lib/xtime.h: Likewise.
45027
45028 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
45029
45030         * modules/openat (Files): Add lib/fchmodat.c.
45031         Fixes problem reported by Jay Youngman.
45032
45033 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
45034
45035         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
45036         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
45037
45038 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
45039             Bruno Haible  <bruno@clisp.org>
45040
45041         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
45042         and is a script that invokes bison. Tighten the code. Add comments.
45043
45044 2006-08-18  Jim Meyering  <jim@meyering.net>
45045
45046         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
45047         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
45048         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
45049         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
45050
45051 2006-08-18  Bruno Haible  <bruno@clisp.org>
45052
45053         * modules/bison-i18n: New file.
45054         * MODULES.html.sh (Internationalization functions): Add it.
45055
45056 2006-08-18  Bruno Haible  <bruno@clisp.org>
45057
45058         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
45059         sys/statvfs.h. When getmntinfo was found, check its declaration and
45060         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
45061
45062 2006-08-18  Bruno Haible  <bruno@clisp.org>
45063
45064         * m4/bison-i18n.m4: New file, from bison.
45065
45066 2006-08-18  Bruno Haible  <bruno@clisp.org>
45067
45068         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
45069         (ME_DUMMY): Treat "kernfs" as a dummy.
45070         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
45071
45072 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
45073
45074         Update from coreutils.
45075
45076         2006-08-15  Jim Meyering  <jim@meyering.net>
45077
45078         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
45079
45080         2006-01-17  Jim Meyering  <jim@meyering.net>
45081
45082         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
45083
45084         2006-01-11  Jim Meyering  <jim@meyering.net>
45085
45086         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
45087         Check for the lchmod function.
45088
45089 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
45090
45091         Update from coreutils.
45092
45093         * lib/__fpending.h: Add copyright notice.
45094         * lib/fprintftime.h: Likewise.
45095         * lib/savedir.c: Use (C) in copyright notice.
45096         * lib/savedir.h: Likewise.
45097
45098         2006-08-15  Jim Meyering  <jim@meyering.net>
45099
45100         * lib/at-func.c: New file, with the logic of all emulated at-functions.
45101         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
45102         in support of the EXPECTED_ERRNO macro.
45103         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
45104         definitions.  Instead, define the appropriate symbols and include
45105         "at-func.c".
45106         * lib/mkdirat.c (mkdirat): Likewise.
45107         * lib/fchmodat.c (fchmodat): Likewise.
45108         (ENOSYS): Remove definition.
45109         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
45110         it.  Don't include "unistd--.h" -- it wasn't ever used.
45111
45112         2006-01-17  Jim Meyering  <jim@meyering.net>
45113
45114         Rewrite fts.c not to change the current working directory,
45115         by using openat, fstatat, fdopendir, etc..
45116
45117         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
45118         (HAVE_OPENAT_SUPPORT): Define.
45119         [_LIBC] (fchdir): Don't undef or define; no longer used.
45120         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
45121         Now, this `function' always succeeds, and consumes its file descriptor
45122         parameter -- so callers must not close such FDs.  Update callers.
45123         (diropen_fd, opendirat, cwd_advance_fd): New functions.
45124         (diropen): Add parameter, SP.  Adjust all callers.
45125         Implement using diropen_fd, rather than open.
45126         (fts_open): Initialize new member, fts_cwd_fd.
45127         Remove fts_rft-setting code.
45128         (fts_close): Close fts_cwd_fd, if necessary.
45129         (__opendir2): Define in terms of opendir or opendirat,
45130         depending on whether the FST_NOCHDIR flag is set.
45131         (fts_build): Since fts_safe_changedir consumes its FD, and since
45132         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
45133         and close the dup'd file descriptor upon failure.
45134         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
45135         (fts_safe_changedir): Tweak semantics to reflect that this function
45136         now calls cwd_advance_fd and hence consumes its FD argument.
45137         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
45138         [struct FTS] (fts_rft): Remove now-unused member.
45139         [struct FTS] (fts_cycle.state): Improve comment.
45140
45141         * lib/openat.c (openat_needs_fchdir): New function.
45142         * lib/openat.h (openat_needs_fchdir): Declare it.
45143
45144 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
45145
45146         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
45147         Problem and fix reported by Pádraig Brady in
45148         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
45149
45150 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45151
45152         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
45153
45154 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45155
45156         * lib/memcoll.c (memcoll): Optimize for the common case where the
45157         arguments are bytewise equal.
45158
45159 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45160
45161         * doc/regexprops-generic.texi: Add a copyright notice.
45162
45163 2006-08-15  Bruno Haible  <bruno@clisp.org>
45164
45165         * modules/tmpdir (License): Change to LGPL.
45166
45167 2006-08-15  Bruno Haible  <bruno@clisp.org>
45168
45169         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
45170         module.
45171
45172 2006-08-14  Simon Josefsson  <jas@extundo.com>
45173
45174         * config/srclist.txt: Add gnupload.
45175
45176 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45177
45178         Change copyright notice from LGPL 2 to GPL 2, since that's the
45179         standard form used in the gnulib repository.
45180         * tests/test-lock.c: Likewise.
45181         * tests/test-stdint.c: Likewise.
45182         * tests/test-tls.c: Likewise.
45183
45184         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
45185         prelude-manager.  User shorter URLs for GNU projects, without '?'.
45186         Add copyright notice.
45187
45188         * check-module: Add copyright notice.  Output a copyright
45189         notice if "--version" is specified.
45190         * modules/COPYING: New file.
45191         * tests/test-getaddrinfo.c: Add copyright notice.
45192         * tests/test-verify.c: Likewise.
45193
45194 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45195
45196         Change copyright notice from LGPL 2 to GPL 2, since that's the
45197         standard form used in the gnulib repository.
45198         * lib/lock.c: LGPL -> GPL.
45199         * lib/lock.h: Likewise.
45200         * lib/strnlen1.c: Likewise.
45201         * lib/strnlen1.h: Likewise.
45202         * lib/tls.c: Likewise.
45203         * lib/tls.h: Likewise.
45204         * lib/tmpdir.c: Likewise.
45205
45206         * lib/TODO: Remove; this belongs only in coreutils.
45207
45208 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45209
45210         Add copyright notices to long-enough files that lack them, since
45211         otherwise the files aren't clearly free.  Use the same notice that
45212         getdate.texi already uses.
45213         * doc/alloca-opt.texi: Add copyright notice.
45214         * doc/alloca.texi: Likewise.
45215         * doc/ctime.texi: Likewise.
45216         * doc/functions.texi: Likewise.
45217         * doc/gcd.texi: Likewise.
45218         * doc/gnulib-tool.texi: Likewise.
45219         * doc/inet_ntoa.texi: Likewise.
45220         * doc/visibility.texi: Likewise.
45221
45222         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
45223         * doc/quote.texi: Add copyright notice.
45224
45225         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
45226         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
45227         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
45228         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
45229         is now obsolete, and give a pointer to the Sun list.
45230         Add copyright notice.
45231
45232 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45233
45234         * config/srclistvars.sh: Add copyright notice.
45235
45236 2006-08-14  Eric Blake  <ebb9@byu.net>
45237
45238         Import the following change from libc:
45239
45240         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
45241
45242         Upstream bug 2997.
45243         * lib/misc/error.c: Add space between program name and message if file
45244         name is missing.
45245
45246 2006-08-12  Karl Berry  <karl@gnu.org>
45247
45248         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
45249         remove, these originate in gnulib now.
45250
45251 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45252
45253         * doc/Makefile (standards.info standards.html standards.dvi):
45254         Also depend on make-stds.texi.
45255
45256 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
45257
45258         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
45259         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
45260
45261         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
45262         in wchar_t.  Problem reported by Eric Blake.
45263
45264         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
45265         LEN is smaller than SIZE.  Suggested by Bruno Haible.
45266         Also, help the compiler to keep LEN in a register.
45267
45268 2006-08-11  Eric Blake  <ebb9@byu.net>
45269
45270         * users.txt: Sort.  Add tar.
45271
45272 2006-08-11  Bruno Haible  <bruno@clisp.org>
45273
45274         * users.txt: New file.
45275
45276 2006-08-11  Bruno Haible  <bruno@clisp.org>
45277
45278         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
45279         before <wchar.h>. Needed for OSF/1 and BSD/OS.
45280
45281 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
45282
45283         * modules/snprintf (Depends-on): Remove minmax.
45284         (Maintainer): Add self and Bruno.
45285
45286 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
45287
45288         * lib/.cppi-disable: Add snprintf.h, socket_.h.
45289         * lib/snprintf.c: Include <errno.h> and <limits.h>.
45290         (EOVERFLOW): Define if the system does not.
45291         Do not include "minmax.h"; it wasn't used.
45292         (snprintf): Don't assume size_t promotes to an unsigned type.
45293         Fix bug when generated string was too long for the buffer: the
45294         buffer's contents are supposed to be the initial prefix of the
45295         output.  Don't assume vasnprintf returns EOVERFLOW if the size
45296         exceeds INT_MAX; do the check ourselves.
45297
45298         Import the following changes from libc:
45299
45300         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
45301
45302         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
45303         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
45304         set wc to the byte which couldn't be converted.
45305         (re_string_reconstruct): Don't clear valid_raw_len before calling
45306         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
45307         tip_context using re_string_context_at.
45308
45309         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
45310
45311         * lib/posix/regex.h: g++ still cannot handled [restrict].
45312
45313         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
45314
45315         * lib/posix/regex.h: Remove special handling for VMS.
45316
45317 2006-08-10  Jim Meyering  <jim@meyering.net>
45318
45319         * modules/same-inode: New module.
45320         * modules/dev-ino: New module.
45321         * modules/cycle-check: Depend on these modules, rather than simply
45322         including their .h files.
45323         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
45324         required via m4/cycle-check.m4.
45325         * modules/same: Depend on new same-inode module, rather than
45326         including same-inode.h.
45327         * modules/chdir-safer: New file.
45328
45329         * modules/chown (Depends-on): Add stat-macros.
45330
45331 2006-08-10  Jim Meyering  <jim@meyering.net>
45332
45333         * m4/cycle-check.m4: New file.
45334         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
45335         * m4/dev-ino.m4, m4/same-inode.m4: New files.
45336
45337 2006-08-10  Eric Blake  <ebb9@byu.net>
45338
45339         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
45340         in from original proposal.
45341
45342 2006-08-10  Eric Blake  <ebb9@byu.net>
45343         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45344
45345         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
45346         namespace.
45347
45348 2006-08-10  Bruno Haible  <bruno@clisp.org>
45349
45350         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
45351         as well.
45352
45353 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45354
45355         Sync from coreutils.
45356
45357         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
45358
45359         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
45360         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
45361
45362 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45363
45364         * modules/restrict: Remove; no longer needed now that we assume
45365         Autoconf 2.59 or later.
45366         * MODULES.html.sh: Remove 'restrict'.
45367         * modules/argp (Depends-on): Remove 'restrict'.
45368         * modules/base64 (Depends-on): Likewise.
45369         * modules/gc (Depends-on): Likewise.
45370         * modules/getaddrinfo (Depends-on): Likewise.
45371         * modules/glob (Depends-on): Likewise.
45372         * modules/inet_ntop (Depends-on): Likewise.
45373         * modules/inet_pton (Depends-on): Likewise.
45374         * modules/memxor (Depends-on): Likewise.
45375         * modules/regex (Depends-on): Likewise.
45376         * modules/strtok_r (Depends-on): Likewise.
45377         * modules/time_r (Depends-on): Likewise.
45378
45379 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45380
45381         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
45382         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
45383         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
45384         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
45385         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
45386         * m4/memxor.m4 (gl_MEMXOR): Likewise.
45387         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
45388         gl_C_RESTRICT replaced by AC_C_RESTRICT.
45389
45390         Merge from coreutils.
45391         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
45392         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
45393         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
45394         * m4/time_r.m4 (gl_TIME_R): Likewise.
45395
45396 2006-08-09  Karl Berry  <karl@gnu.org>
45397
45398         * config/srclist.txt: no more gettext-tools, per Bruno.
45399
45400 2006-08-08  Eric Blake  <ebb9@byu.net>
45401
45402         * modules/verror: New module.
45403         * MODULES.html.sh: Document it.
45404
45405 2006-08-08  Eric Blake  <ebb9@byu.net>
45406
45407         * lib/verror.h, lib/verror.c: New files.
45408
45409 2006-08-08  Eric Blake  <ebb9@byu.net>
45410
45411         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
45412         verror_at_line output complies with GNU Coding Standards even when
45413         file is NULL.
45414
45415 2006-08-07  Bruno Haible  <bruno@clisp.org>
45416
45417         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
45418         versions of AIX.
45419         Reported by Ralf Wildenhues.
45420
45421 2006-08-07  Bruno Haible  <bruno@clisp.org>
45422
45423         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
45424         in an AC_DEFUN. Needed so that the autoconf snippets can use
45425         AC_REQUIRE.
45426
45427 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45428
45429         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45430         Initialize pkgdata_DATA.
45431         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
45432         overriding it.
45433
45434 2006-08-06  Eric Blake  <ebb9@byu.net>
45435
45436         * lib/error.h: Fold in some upstream changes from glibc.
45437         * lib/error.c: Likewise.
45438
45439 2006-08-04  Bruno Haible  <bruno@clisp.org>
45440
45441         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45442         Make the mostlyclean-local rule depend on mostlyclean-generic.
45443         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
45444
45445 2006-07-31  Bruno Haible  <bruno@clisp.org>
45446
45447         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
45448         <stdlib.h>, <string.h>.
45449
45450 2006-07-30  Bruno Haible  <bruno@clisp.org>
45451
45452         * modules/readlink (License): Change to LGPL.
45453
45454 2006-07-30  Bruno Haible  <bruno@clisp.org>
45455
45456         * modules/javaversion (Makefile.am): Distribute javaversion.java and
45457         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
45458         set PKGDATADIR to point to it.
45459
45460 2006-07-30  Bruno Haible  <bruno@clisp.org>
45461
45462         * modules/csharpexec (configure.ac): Comment out macro invocation.
45463         * modules/javaexec (configure.ac): Likewise.
45464         * modules/javacomp-script (configure.ac): Likewise.
45465
45466         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
45467
45468 2006-07-30  Bruno Haible  <bruno@clisp.org>
45469
45470         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
45471         linked-list.
45472
45473 2006-07-30  Bruno Haible  <bruno@clisp.org>
45474
45475         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
45476
45477 2006-07-30  Bruno Haible  <bruno@clisp.org>
45478
45479         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45480         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
45481         get removed.
45482
45483 2006-07-29  Bruno Haible  <bruno@clisp.org>
45484
45485         Make it possible for gnulib-tool to work with locally modified or
45486         augmented gnulib repositories.
45487         * gnulib-tool (func_usage): Document --local-dir option.
45488         (local_gnulib_dir): New variable.
45489         Handle --local-dir option.
45490         (func_lookup_file): New function.
45491         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
45492         (func_get_description, func_get_filelist, func_get_description,
45493         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
45494         func_get_automake_snippet, func_get_include_directive,
45495         func_get_license, func_get_maintainer): Use func_lookup_file.
45496         (func_import, func_create_testdir): Use func_lookup_file.
45497
45498 2006-07-29  Bruno Haible  <bruno@clisp.org>
45499
45500         * modules/setenv (Depends-on): Add unistd.
45501
45502 2006-07-29  Bruno Haible  <bruno@clisp.org>
45503
45504         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
45505
45506 2006-07-29  Bruno Haible  <bruno@clisp.org>
45507
45508         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
45509
45510 2006-07-29  Bruno Haible  <bruno@clisp.org>
45511
45512         * gnulib-tool (import, update): If there is no Makefile.am, look at
45513         aclocal.m4, instead of bailing out.
45514
45515 2006-07-29  Bruno Haible  <bruno@clisp.org>
45516
45517         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
45518         Categorize the options by when they are useful.
45519
45520 2006-07-29  Bruno Haible  <bruno@clisp.org>
45521
45522         * gnulib-tool (func_usage): Document option --no-libtool.
45523         Handle option --no-libtool.
45524         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
45525         for changed semantics of $libtool variable.
45526         (func_import): Likewise. If libtool is not used, show this through
45527         an option --no-libtool.
45528         (func_create_testdir): Update.
45529
45530 2006-07-29  Bruno Haible  <bruno@clisp.org>
45531
45532         * gnulib-tool (func_import): Extend error message about missing
45533         --doc-base.
45534
45535 2006-07-29  Bruno Haible  <bruno@clisp.org>
45536
45537         * gnulib-tool (func_import): Don't create the $docbase directory if
45538         there is no file to store there.
45539
45540 2006-07-29  Bruno Haible  <bruno@clisp.org>
45541
45542         * gnulib-tool (autoconf_minversion): If a --dir option is given and
45543         relevant, look for configure.ac there, not in the current directory.
45544         Also use a simple search for AC_PREREQ, not "autoconf --trace".
45545
45546 2006-07-29  Bruno Haible  <bruno@clisp.org>
45547
45548         * gnulib-tool (SORT): New variable.
45549         (func_usage): Undocument --assume-autoconf option.
45550         Remove --assume-autoconf option handling.
45551         (autoconf_minversion): Determine from the contents of configure.ac.
45552         (func_import): Remove autoconf_minversion handling.
45553         Suggested by Eric Blake.
45554
45555 2006-07-29  Bruno Haible  <bruno@clisp.org>
45556
45557         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
45558
45559 2006-07-29  Bruno Haible  <bruno@clisp.org>
45560
45561         * config/srclist.txt (*setenv.[ch]): Remove rules.
45562
45563 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45564
45565         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
45566
45567 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45568
45569         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
45570         arpa/inet.h.
45571
45572 2006-07-28  Simon Josefsson  <jas@extundo.com>
45573
45574         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
45575         * modules/inet_pton (Depends-on): Likewise.
45576
45577 2006-07-28  Simon Josefsson  <jas@extundo.com>
45578
45579         * m4/netinet_in_h.m4: New file.
45580
45581 2006-07-28  Simon Josefsson  <jas@extundo.com>
45582
45583         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
45584         #include's.
45585
45586 2006-07-28  Simon Josefsson  <jas@extundo.com>
45587
45588         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
45589         #include's.
45590
45591 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
45592
45593         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
45594         setgid on directories only if they set these bits.
45595         * lib/modechange.h: Remove obsolete comment about masks.
45596
45597 2006-07-28  Eric Blake  <ebb9@byu.net>
45598
45599         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
45600         macro expansion.
45601
45602 2006-07-28  Bruno Haible  <bruno@clisp.org>
45603
45604         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
45605
45606 2006-07-28  Bruno Haible  <bruno@clisp.org>
45607
45608         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
45609
45610 2006-07-28  Bruno Haible  <bruno@clisp.org>
45611
45612         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
45613         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
45614         Define fallbacks.
45615         Avoids link error on FreeBSD 4.x.
45616         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45617
45618         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
45619         encoding.
45620         * lib/mbswidth.c (iswcntrl): Likewise.
45621
45622 2006-07-27  Bruno Haible  <bruno@clisp.org>
45623
45624         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
45625         test.
45626
45627 2006-07-27  Bruno Haible  <bruno@clisp.org>
45628
45629         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
45630         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
45631         defined.
45632
45633 2006-07-26  Eric Blake  <ebb9@byu.net>
45634
45635         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
45636
45637 2006-07-26  Eric Blake  <ebb9@byu.net>
45638
45639         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
45640         like mingw that lack mkstemp.
45641         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
45642         avoid compilation warning on mingw.
45643
45644 2006-07-26  Bruno Haible  <bruno@clisp.org>
45645
45646         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
45647         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
45648         INT_FAST*_MIN, INTPTR_MIN.
45649
45650 2006-07-25  Bruno Haible  <bruno@clisp.org>
45651
45652         * modules/version-etc (Depends-on): Add stdarg.
45653
45654 2006-07-25  Bruno Haible  <bruno@clisp.org>
45655
45656         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
45657         complex commands.
45658
45659 2006-07-25  Bruno Haible  <bruno@clisp.org>
45660
45661         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
45662         defined in <stdarg.h> or config.h.
45663
45664 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
45665
45666         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
45667         (gl_STDIO_SAFER): Remove.
45668
45669 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
45670
45671         * MODULES.html.sh (File stream based Input/Output):
45672         Add fopen-safer, tmpfile-safer; remove stdio-safer.
45673         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
45674         * modules/fopen-safer, modules/tmpfile-safer: New files.
45675         * modules/stdio-safer: Remove.
45676
45677 2006-07-24  Bruno Haible  <bruno@clisp.org>
45678
45679         * modules/tmpdir: New file.
45680         * MODULES.html.sh (File system functions): Add it.
45681
45682 2006-07-24  Bruno Haible  <bruno@clisp.org>
45683
45684         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
45685         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
45686
45687 2006-07-24  Bruno Haible  <bruno@clisp.org>
45688
45689         * modules/clean-temp: New file.
45690
45691 2006-07-24  Bruno Haible  <bruno@clisp.org>
45692
45693         * m4/tmpdir.m4: New file, from GNU gettext.
45694
45695 2006-07-24  Bruno Haible  <bruno@clisp.org>
45696
45697         * lib/tmpdir.h: New file, from GNU gettext.
45698         * lib/tmpdir.c: New file, from GNU gettext.
45699
45700 2006-07-24  Bruno Haible  <bruno@clisp.org>
45701
45702         * lib/clean-temp.h: New file, from GNU gettext.
45703         * lib/clean-temp.c: New file, from GNU gettext.
45704
45705 2006-07-23  Eric Blake  <ebb9@byu.net>
45706
45707         * modules/stdio-safer (Files): Add tmpfile-safer.c.
45708         (Depends-on): Add binary-io.
45709
45710 2006-07-23  Eric Blake  <ebb9@byu.net>
45711
45712         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
45713
45714 2006-07-23  Eric Blake  <ebb9@byu.net>
45715
45716         * lib/tmpfile-safer.c: New file.
45717         * lib/stdio-safer.h (fopen_safer): Add prototype.
45718         * lib/stdio--.h (tmpfile): Make safer.
45719
45720 2006-07-23  Bruno Haible  <bruno@clisp.org>
45721
45722         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
45723         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
45724         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
45725         gl_linked_remove_at): Use it.
45726
45727 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45728         and Simon Josefsson <jas@extundo.com>
45729
45730         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
45731
45732         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
45733
45734 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45735
45736         * modules/close-stream: New file.
45737         * modules/closeout (Description): Make it clear that it exits
45738         with a diagnostic on error.
45739         (Depends-on): Add close-stream.  Remove fpending, stdbool.
45740         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
45741
45742 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45743
45744         * m4/close-stream.m4: New file.
45745
45746 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45747
45748         * lib/close-stream.c, lib/close-stream.h: New files.
45749
45750 2006-07-22  Bruno Haible  <bruno@clisp.org>
45751
45752         Merge from GNU gettext 0.15.
45753
45754         2006-05-01  Bruno Haible  <bruno@clisp.org>
45755
45756                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
45757
45758         2006-07-22  Bruno Haible  <bruno@clisp.org>
45759
45760                 * modules/javaversion: New file.
45761                 * MODULES.html.sh (Java): Add javaversion.
45762
45763         2006-03-12  Bruno Haible  <bruno@clisp.org>
45764
45765                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
45766
45767         2005-12-04  Bruno Haible  <bruno@clisp.org>
45768
45769                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
45770                 (untested).
45771
45772         2006-06-21  Bruno Haible  <bruno@clisp.org>
45773
45774                 Avoid warnings from recent versions of mcs.
45775                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
45776                 -o, -L, -r any more. Use options documented since mcs-1.0
45777                 instead. Similarly for -g.
45778
45779         2005-12-04  Bruno Haible  <bruno@clisp.org>
45780
45781                 * build-aux/csharpcomp.sh.in: Suffix for resources is
45782                 .resources, not .resource.
45783
45784         2005-07-09  Bruno Haible  <bruno@clisp.org>
45785
45786                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
45787                 add a .dll suffix.
45788                 Reported by Mark Junker <mjscod@gmx.de>.
45789
45790         2006-07-22  Bruno Haible  <bruno@clisp.org>
45791
45792                 * modules/gettext: Upgrade to gettext-0.15.
45793                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
45794                 m4/visibility.m4.
45795                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
45796
45797 2006-07-22  Bruno Haible  <bruno@clisp.org>
45798
45799         Merge from GNU gettext 0.15.
45800
45801         2006-03-25  Bruno Haible  <bruno@clisp.org>
45802
45803                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
45804
45805         2006-07-21  Bruno Haible  <bruno@clisp.org>
45806
45807                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
45808                 "1.1".
45809
45810         2006-05-09  Bruno Haible  <bruno@clisp.org>
45811
45812                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
45813                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
45814                 for the conftestver execution.
45815
45816         2006-05-01  Bruno Haible  <bruno@clisp.org>
45817
45818                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
45819                 optional target-version argument. Verify that the compiler
45820                 groks source of the specified source-version, or add -source
45821                 option as necessary. Verify that the compiler produces
45822                 bytecode in the specified target-version, or add -target and
45823                 -source options as necessary. Make the result of the test
45824                 available as variable CONF_JAVAC. Also log error output in
45825                 config.log.
45826
45827         2006-03-11  Bruno Haible  <bruno@clisp.org>
45828
45829                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
45830
45831         2006-05-09  Bruno Haible  <bruno@clisp.org>
45832
45833                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
45834                 CLASSPATH_SEPARATOR to a semicolon.
45835
45836         2006-03-12  Bruno Haible  <bruno@clisp.org>
45837
45838                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
45839                 available as variable CONF_JAVA, for subsequent autoconf
45840                 tests. Also log error output in config.log.
45841
45842         2006-07-19  Bruno Haible  <bruno@clisp.org>
45843
45844                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
45845                 that getline works on glibc2 systems. Needed to avoid trouble
45846                 in relocatable.c.
45847                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
45848
45849         2005-12-04  Bruno Haible  <bruno@clisp.org>
45850
45851                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
45852                 launcher (untested).
45853
45854         2005-12-04  Bruno Haible  <bruno@clisp.org>
45855
45856                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
45857
45858         2006-07-22  Bruno Haible  <bruno@clisp.org>
45859
45860                 * gettext.m4: Update from GNU gettext-0.15.
45861                 * nls.m4: Likewise.
45862                 * po.m4: Likewise.
45863                 * inttypes-pri.m4: Likewise.
45864                 * inttypes-h.m4: Renamed from inttypes.m4.
45865                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
45866
45867 2006-07-22  Bruno Haible  <bruno@clisp.org>
45868
45869         Merge from GNU gettext 0.15.
45870
45871         2005-07-05  Bruno Haible  <bruno@clisp.org>
45872
45873                 * printf-args.c (printf_fetchargs): Work around broken
45874                 definition of wint_t on mingw.
45875
45876         2005-02-12  Bruno Haible  <bruno@clisp.org>
45877
45878                 * xallocsa.h: Add extern "C" for C++.
45879
45880         2006-05-17  Bruno Haible  <bruno@clisp.org>
45881
45882                 Cygwin portability.
45883                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
45884
45885         2006-04-30  Bruno Haible  <bruno@clisp.org>
45886
45887                 * progreloc.c: Include <mach-o/dyld.h> if available.
45888                 (find_executable): Use _NSGetExecutablePath when possible.
45889
45890         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
45891
45892                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
45893                 function.
45894
45895         2005-12-29  Bruno Haible  <bruno@clisp.org>
45896
45897                 * progreloc.c (set_program_name_and_installdir): Fix
45898                 compilation error.
45899
45900         2005-12-04  Bruno Haible  <bruno@clisp.org>
45901
45902                 Cygwin portability.
45903                 * progreloc.c: Include <windows.h> also on Cygwin.
45904                 (find_executable): Add support for Cygwin.
45905                 (set_program_name_and_installdir): Handle also platforms with
45906                 nonempty EXEEXT.
45907
45908         2006-07-11  Bruno Haible  <bruno@clisp.org>
45909
45910                 * javacomp.c: Fix a comment.
45911                 Reported by Jim Meyering.
45912
45913         2006-04-30  Bruno Haible  <bruno@clisp.org>
45914
45915                 * javacomp.h (compile_java_class): Add source_version,
45916                 target_version arguments.
45917                 * javacomp.c: Rewritten to choose only a compiler that
45918                 respects the specified source_version and target_version.
45919
45920         2006-06-27  Bruno Haible  <bruno@clisp.org>
45921
45922                 Assume correct S_ISDIR macro.
45923                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
45924
45925         2006-07-22  Bruno Haible  <bruno@clisp.org>
45926
45927                 * javaversion.h: New file, from GNU gettext.
45928                 * javaversion.c: New file, from GNU gettext.
45929                 * javaversion.java: New file, from GNU gettext.
45930                 * javaversion.class: New file, from GNU gettext.
45931
45932         2006-05-17  Bruno Haible  <bruno@clisp.org>
45933
45934                 Cygwin portability.
45935                 * javaexec.c (execute_java_class): Test for jview program
45936                 also on Cygwin.
45937
45938         2006-04-09  Bruno Haible  <bruno@clisp.org>
45939
45940                 * fatal-signal.c: Don't include string.h.
45941                 (at_fatal_signal): Use a copying loop instead of memcpy.
45942
45943         2005-12-04  Bruno Haible  <bruno@clisp.org>
45944
45945                 * csharpexec.c: Add support for 'clix' launcher (untested).
45946                 (execute_csharp_using_sscli): New function.
45947                 (execute_csharp_program): Call it.
45948
45949         2006-06-21  Bruno Haible  <bruno@clisp.org>
45950
45951                 Avoid warnings from recent versions of mcs.
45952                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
45953                 -o, -L, -r any more. Use options documented since mcs-1.0
45954                 instead. Similarly for -g.
45955
45956         2005-07-09  Bruno Haible  <bruno@clisp.org>
45957
45958                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
45959                 add a .dll suffix.
45960                 Reported by Mark Junker <mjscod@gmx.de>.
45961
45962         2006-06-17  Bruno Haible  <bruno@clisp.org>
45963
45964                 * config.charset: Update for NetBSD 3.0.
45965
45966         2006-05-17  Bruno Haible  <bruno@clisp.org>
45967
45968                 Cygwin portability.
45969                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
45970
45971         2006-05-16  Bruno Haible  <bruno@clisp.org>
45972
45973                 * localcharset.c [CYGWIN]: Include <windows.h>.
45974                 (get_charset_aliases): For Cygwin, return the same CPxxx
45975                 aliases list as under WIN32.
45976                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
45977                 the environment variables. Fall back to GetACP().
45978
45979         2006-04-05  Bruno Haible  <bruno@clisp.org>
45980
45981                 * config.charset: Update Juan Manuel Guerrero's address.
45982
45983         2005-02-12  Bruno Haible  <bruno@clisp.org>
45984
45985                 * allocsa.h: Add extern "C" for C++.
45986
45987         2005-02-10  Bruno Haible  <bruno@clisp.org>
45988
45989                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
45990                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
45991
45992         2006-07-22  Bruno Haible  <bruno@clisp.org>
45993
45994                 * gettext.h: Update to GNU gettext-0.15.
45995
45996 2006-07-22  Bruno Haible  <bruno@clisp.org>
45997
45998         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
45999         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
46000         lib-prefix.m4, longdouble.m4, ssize_t.m4.
46001
46002 2006-07-21  Eric Blake  <ebb9@byu.net>
46003
46004         * modules/stdlib-safer: New file.
46005         * MODULES.html.sh (File stream based Input/Output): Add
46006         stdlib-safer.
46007
46008 2006-07-21  Eric Blake  <ebb9@byu.net>
46009
46010         * lib/stdlib-safer.h: New file from coreutils, required by
46011         stdlib--.h.
46012
46013 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
46014
46015         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
46016
46017 2006-07-20  Bruno Haible  <bruno@clisp.org>
46018
46019         * gnulib-tool: Recognize new option --assume-autoconf.
46020         (autoconf_minversion): New variable.
46021         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
46022
46023 2006-07-20  Bruno Haible  <bruno@clisp.org>
46024
46025         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
46026
46027 2006-07-19  Derek R. Price  <derek@ximbiot.com>
46028
46029         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
46030         Reindent and repaginate.
46031
46032 2006-07-19  Derek Price  <derek@ximbiot.com>
46033
46034         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
46035         Correct grammar.
46036
46037 2006-07-17  Bruno Haible  <bruno@clisp.org>
46038
46039         * modules/list: New file.
46040         * modules/array-list: New file.
46041         * modules/carray-list, modules/carray-list-tests: New files.
46042         * modules/linked-list, modules/linked-list-tests: New files.
46043         * modules/avltree-list, modules/avltree-list-tests: New files.
46044         * modules/rbtree-list, modules/rbtree-list-tests: New files.
46045         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
46046         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
46047         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
46048         * modules/oset: New file.
46049         * modules/array-oset: New file.
46050         * modules/avltree-oset, modules/avltree-oset-tests: New files.
46051         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
46052         * tests/test-carray_list.c: New file.
46053         * tests/test-linked_list.c: New file.
46054         * tests/test-avltree_list.c: New file.
46055         * tests/test-rbtree_list.c: New file.
46056         * tests/test-linkedhash_list.c: New file.
46057         * tests/test-avltreehash_list.c: New file.
46058         * tests/test-rbtreehash_list.c: New file.
46059         * tests/test-avltree_oset.c: New file.
46060         * tests/test-rbtree_oset.c: New file.
46061         * MODULES.html.sh (Container data structures): New section.
46062
46063 2006-07-17  Bruno Haible  <bruno@clisp.org>
46064
46065         * m4/gl_list.m4: New file.
46066
46067 2006-07-17  Bruno Haible  <bruno@clisp.org>
46068
46069         * lib/gl_list.h: New file.
46070         * lib/gl_list.c: New file.
46071         * lib/gl_array_list.h: New file.
46072         * lib/gl_array_list.c: New file.
46073         * lib/gl_carray_list.h: New file.
46074         * lib/gl_carray_list.c: New file.
46075         * lib/gl_linked_list.h: New file.
46076         * lib/gl_linked_list.c: New file.
46077         * lib/gl_anylinked_list1.h: New file.
46078         * lib/gl_anylinked_list2.h: New file.
46079         * lib/gl_avltree_list.h: New file.
46080         * lib/gl_avltree_list.c: New file.
46081         * lib/gl_anyavltree_list1.h: New file.
46082         * lib/gl_anyavltree_list2.h: New file.
46083         * lib/gl_rbtree_list.h: New file.
46084         * lib/gl_rbtree_list.c: New file.
46085         * lib/gl_anyrbtree_list1.h: New file.
46086         * lib/gl_anyrbtree_list2.h: New file.
46087         * lib/gl_anytree_list1.h: New file.
46088         * lib/gl_anytree_list2.h: New file.
46089         * lib/gl_linkedhash_list.h: New file.
46090         * lib/gl_linkedhash_list.c: New file.
46091         * lib/gl_anyhash_list1.h: New file.
46092         * lib/gl_anyhash_list2.h: New file.
46093         * lib/gl_avltreehash_list.h: New file.
46094         * lib/gl_avltreehash_list.c: New file.
46095         * lib/gl_rbtreehash_list.h: New file.
46096         * lib/gl_rbtreehash_list.c: New file.
46097         * lib/gl_anytreehash_list1.h: New file.
46098         * lib/gl_anytreehash_list2.h: New file.
46099
46100         * lib/gl_oset.h: New file.
46101         * lib/gl_oset.c: New file.
46102         * lib/gl_array_oset.h: New file.
46103         * lib/gl_array_oset.c: New file.
46104         * lib/gl_avltree_oset.h: New file.
46105         * lib/gl_avltree_oset.c: New file.
46106         * lib/gl_rbtree_oset.h: New file.
46107         * lib/gl_rbtree_oset.c: New file.
46108         * lib/gl_anytree_oset.h: New file.
46109
46110 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
46111
46112         * m4/mkancesdirs.m4: New file.
46113         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
46114         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
46115         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
46116         it.
46117
46118 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
46119
46120         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
46121         * lib/mkancesdirs.h: New files.
46122         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
46123         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
46124         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
46125         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
46126         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
46127         callers changed.  Revamp internals significantly, by not
46128         attempting to create directories that are temporarily more
46129         permissive than the final results.  Do not attempt to use
46130         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
46131         This removes some race conditions, fixes some bugs, and simplifies
46132         things.  Use new dirchownmod function to do owner and mode changes.
46133         * lib/mkdir-p.h: Likewise.
46134         * lib/modechange.c (octal_to_mode): New function.
46135         (struct mode_change): New member mentioned.
46136         (make_node_op_equals): New arg mentioned.  All callers changed.
46137         (mode_compile): Keep track of which mode bits the user has explicitly
46138         mentioned.
46139         (mode_adjust): New arg DIR, so that we implement the X op correctly.
46140         New arg PMODE_BITS, to keep track of which mode bits the user
46141         mentioned; it treats S_ISUID and S_ISGID speciall.
46142         All callers changed.
46143         * lib/modechange.h: Likewise.
46144
46145 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
46146
46147         * MODULES.html.sh: Add mkancestors.
46148         * modules/mkancesdirs: New module.
46149         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
46150         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
46151         The chdir-safer and afs files are now orphans; I'll remove them
46152         unless someone speaks up.
46153         Add lib/dirchownmod.c, lib/dirchownmod.h.
46154         (Depends-on): Remove alloca, chown, save-cwd, dirname.
46155         Add lchown, mkancesdirs.
46156         (Maintainer): Add self.
46157
46158 2006-07-15  Karl Berry  <karl@gnu.org>
46159
46160         * gnulib-tool: help message wording/arrangement.
46161
46162 2006-07-14  Simon Josefsson  <jas@extundo.com>
46163
46164         * doc/gnulib.texi (Libtool and Windows): New section.
46165
46166 2006-07-12  Simon Josefsson  <jas@extundo.com>
46167
46168         * modules/gendocs (License): Fix license, approved by Karl.
46169
46170 2006-07-12  Eric Blake  <ebb9@byu.net>
46171
46172         * MODULES.html.sh: Add gendocs.
46173
46174 2006-07-11  Eric Blake  <ebb9@byu.net>
46175
46176         * modules/fdl: New module, to install doc/fdl.texi.
46177         * MODULES.html.sh: Add new section for documentation modules.
46178         * gnulib-tool: Avoid space-tab.
46179         (--doc-base): New option, to manage files from doc.
46180
46181 2006-07-11  Eric Blake  <ebb9@byu.net>
46182
46183         * m4/absolute-header.m4: Fix comments to match recent change.
46184
46185 2006-07-11  Eric Blake  <ebb9@byu.net>
46186
46187         * gnulib-tool: List --doc-base before --tests-base.
46188
46189 2006-07-11  Derek R. Price  <derek@ximbiot.com>
46190
46191         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
46192
46193 2006-07-11  Bruno Haible  <bruno@clisp.org>
46194
46195         * README: Mention where to put documentation.
46196
46197 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46198
46199         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
46200
46201 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
46202
46203         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
46204         to stdint.m4.
46205
46206 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
46207
46208         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
46209         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
46210         "no/such/file/stdint.h" when there is no such file, so that
46211         the resulting C code can be parsed by dodgy compilers.
46212         Problems reported by Bob Proulx.
46213
46214 2006-07-10  Derek R. Price  <derek@ximbiot.com>
46215
46216         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
46217         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
46218         macros into the GNU _D_EXACT_NAMLEN.
46219         * lib/savedir.c:  Likewise.
46220         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
46221
46222 2006-07-10  Derek R. Price  <derek@ximbiot.com>
46223         and Paul Eggert  <eggert@cs.ucla.edu>
46224
46225         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
46226         * m4/savedir.m4:
46227         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
46228         macros into the GNU _D_EXACT_NAMLEN.
46229
46230 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46231
46232         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
46233         around the absolute name, to work around a problem with the HP-UX
46234         11.23 native C compiler, reported by Bob Proulx.
46235
46236 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46237
46238         * doc/maintain.texi, make-stds.texi: Sync from
46239         <http://savannah.gnu.org/projects/gnustandards>.
46240
46241 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46242
46243         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
46244
46245 2006-07-09  Jim Meyering  <jim@meyering.net>
46246
46247         * m4/glob.m4: Remove a doubled word in a comment.
46248
46249 2006-07-09  Jim Meyering  <jim@meyering.net>
46250
46251         * lib/argp-pv.c: Remove a doubled word in a comment.
46252         * lib/check-version.c (check_version): Likewise.
46253         * lib/javacomp.c (compile_java_class): Likewise.
46254
46255 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
46256
46257         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
46258         for the benefit of people using Autoconf 2.60.  If you want to
46259         support older Autoconf versions you can copy m4/onceonly_2_57.m4
46260         (or m4/onceonly.m4, if pre-2.57) manually.
46261
46262 2006-07-08  Jim Meyering  <jim@meyering.net>
46263
46264         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
46265         comment.
46266         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
46267         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
46268         comment.
46269
46270 2006-07-08  Jim Meyering  <jim@meyering.net>
46271
46272         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
46273
46274 2006-07-07  Simon Josefsson  <jas@extundo.com>
46275
46276         * tests/test-crc.c: Change expected crc value, the test vector
46277         were probably computed using the old broken crc.c?
46278
46279 2006-07-06  Simon Josefsson  <jas@extundo.com>
46280
46281         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
46282         now the canonical place for the M4 file).
46283
46284         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
46285         from the sys_socket dependency now.
46286
46287         * modules/inet_pton (Files): Ditto.
46288
46289         * modules/inet_ntop (Files): Ditto.
46290
46291 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
46292
46293         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
46294         not gl_PREREQ_GETUSERSHELL.
46295
46296 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46297
46298         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
46299         with only one argument, for Autoconf 2.60.
46300         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
46301         expand to nothing, so add a shell command to avoid syntax error.
46302         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
46303
46304 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46305
46306         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
46307
46308 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46309
46310         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
46311         no longer needed.  Check for isblank decl.
46312         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
46313         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
46314         of existence.
46315
46316 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46317
46318         * lib/getloadavg.c: Use __VMS, not VMS.
46319         * lib/getopt.c: Likewise.
46320         * lib/getpagesize.h: Likewise.
46321         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
46322         and probably does not work.
46323
46324 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46325
46326         * lib/.cppi-disable: Add wcwidth.
46327         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
46328         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
46329         (ISGRAPH): Remove.  All uses changed to isgraph.
46330         (FOLD) [!defined _LIBC]: Remove special case.
46331         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
46332         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
46333         HAVE_ISBLANK.
46334         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
46335         case.
46336
46337 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
46338
46339         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
46340         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
46341         brackets.  Other minor changes to suppress some compiler
46342         warnings.
46343
46344 2006-07-06  Derek R. Price  <derek@ximbiot.com>
46345         and Paul Eggert  <eggert@cs.ucla.edu>
46346
46347         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
46348         of invoking obsolescent AC_HEADER_DIRENT macro.
46349         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
46350         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
46351         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
46352         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
46353         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
46354         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
46355         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
46356         * m4/readdir.m4: Remove; no longer needed.
46357
46358 2006-07-06  Derek R. Price  <derek@ximbiot.com>
46359         and Paul Eggert  <eggert@cs.ucla.edu>
46360
46361         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
46362         Don't worry about this obsolete case any more.
46363         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
46364         directories.
46365         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
46366         worry about this obsolete case any more.
46367         * lib/fts.c: Likewise.
46368         * lib/getcwd.c: Likewise.
46369         * lib/glob.h: Likewise.
46370         * lib/savedir.c: Likewise.
46371
46372 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
46373
46374         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
46375         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
46376         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
46377         needed.
46378         All uses removed.
46379         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46380         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
46381         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
46382         needed.
46383         * m4/getdate.m4 (gl_GETDATE): Likewise.
46384         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
46385         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
46386         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
46387         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46388         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
46389         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
46390         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
46391         needed.
46392
46393 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
46394
46395         * lib/memcasecmp.c: Include <limits.h>.
46396         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
46397         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
46398         Don't assume isdigit succeeds only on '0' through '9'.
46399
46400 2006-07-05  Eric Blake  <ebb9@byu.net>
46401
46402         * modules/getaddrinfo (Depends-on): Add snprintf.
46403
46404 2006-07-05  Eric Blake  <ebb9@byu.net>
46405
46406         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
46407         to avoid 'header present but could not be compiled' on cygwin.
46408
46409 2006-07-05  Eric Blake  <ebb9@byu.net>
46410
46411         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
46412         missing from netdb.h.
46413         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
46414
46415 2006-07-05  Derek R. Price  <derek@ximbiot.com>
46416
46417         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
46418         no longer needed.
46419         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
46420         * m4/getdate.m4 (gl_GETDATE): Likewise.
46421         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
46422         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
46423         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
46424         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46425         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
46426
46427 2006-07-05  Derek R. Price  <derek@ximbiot.com>
46428
46429         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
46430         All uses of is_space replaced by isspace.
46431         * lib/exit.h: Don't talk about STDC_HEADERS.
46432         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
46433         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
46434         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
46435         replaced by isprint etc.
46436         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
46437         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
46438         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
46439         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
46440         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
46441         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
46442
46443 2006-07-05  Bruno Haible  <bruno@clisp.org>
46444
46445         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
46446         the function exists, before testing against AIX.
46447         Reported by Martin Lambers <marlam@marlam.de>.
46448
46449 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
46450
46451         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
46452         From Mark D. Baushke.
46453
46454 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
46455
46456         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
46457         to the absolute name, not just one, to bypass Sun C 5.8's
46458         "warning: #include of /usr/include/... may be non-portable".
46459
46460 2006-07-04  Eric Blake  <ebb9@byu.net>
46461
46462         * modules/dirname-tests: New test module.
46463         * tests/test-dirname.c: New file, replacing dirname.c
46464         TEST_DIRNAME section that was recently deleted.
46465
46466 2006-07-04  Bruno Haible  <bruno@clisp.org>
46467
46468         Assume ANSI C header files and <ctype.h> functions.
46469         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
46470         (mbsnwidth): Use isprint, iscntrl instead.
46471
46472 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46473
46474         Merge from coreutils.
46475         * MODULES.html.sh: Add xstrtold.
46476         * modules/xstrtold: New file.
46477         * modules/cycle-check (Files): Add lib/same-inode.h.
46478         * modules/dirname (Files): Add m4/double-slash-root.m4.
46479         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
46480         * modules/mkdir-p (Files): Add lib/same-inode.h.
46481         * modules/same (Files): Add lib/same-inode.h.
46482
46483 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46484
46485         * m4/absolute-header.m4: Renamed from full-header-path.m4.
46486         This is to keep the terminology clean; POSIX talks about
46487         "absolute pathnames", not "full pathnames", but the GNU
46488         Coding Standards say to use "path" for something else;
46489         so use "absolute" to keep both sides happy.
46490         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
46491         Set gl_absolute_header, not gl_full_header_path.
46492         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
46493         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
46494         All uses changed.
46495
46496         Merge from coreutils.
46497
46498         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
46499
46500         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
46501         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
46502         want to require the building of c-strtod.o.
46503         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
46504         needs -lm directly.
46505         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
46506
46507         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
46508
46509         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
46510         --as-needed option if available.  Problem reported by Albert Chin in
46511         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
46512         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
46513         cc merely issues a bunch of annoying warnings for --as-needed
46514         (this problem was reported by Bob Proulx).  Also, try linking with
46515         -lm to detect a bug in binutils 2.16 (this problem was reported
46516         by Ralf Wildenhues).
46517
46518         2006-06-18  Jim Meyering  <jim@meyering.net>
46519
46520         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
46521         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
46522         macro.
46523         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
46524         also check for glibc-2.4's abort-inducing bug.
46525
46526         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
46527         Low-probability clean-up should be to use rmdir to get rid of
46528         the just-created directory, not unlink.
46529
46530         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
46531         configure fail, and request a bug report to inform us about it.
46532         Add a comment that, barring reports to the contrary, in 2007 we'll
46533         assume ftruncate is universally available.
46534
46535         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
46536
46537         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
46538
46539         2006-03-12  Jim Meyering  <jim@meyering.net>
46540
46541         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
46542         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
46543         * m4/same.m4 (gl_SAME): Likewise.
46544         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
46545
46546         2006-03-11  Eric Blake  <ebb9@byu.net>
46547
46548         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
46549         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
46550         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
46551         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
46552
46553 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46554
46555         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
46556         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
46557         reported by Mark D. Baushke, one in
46558         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
46559
46560         Merge from coreutils.
46561
46562         * lib/.cppi-disable: Add stdint_.h.
46563         * lib/.cvsignore: Add stdint.h.
46564
46565         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
46566
46567         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
46568         both double and long double versions.
46569         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
46570         * lib/xstrtold.c: New file.
46571         * lib/xstrtod.h (xstrtold): New decl.
46572
46573         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
46574
46575         * lib/filemode.c (setst): Remove.
46576         (strmode): Rewrite to avoid setst.  This makes the code shorter,
46577         (arguably) clearer, and the generated code is a bit smaller on my
46578         Debian GNU/Linux stable x86 host.
46579
46580         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
46581
46582         * lib/filemode.c: Include "filemode.h" first, to test the interface.
46583         Assume that filemode.h includes sys/types.h and sys/stat.h.
46584         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
46585         (ftypelet): Reorder to put common cases first, for efficiency.
46586         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
46587         to do 'M'.
46588         (strmode): Renamed from mode_string, and now stores 12 bytes instead
46589         of 10, for compatibility with FreeBSD.  All callers changed.
46590         (filemodestring): Now stores 12 bytes instead of 10, and sets file
46591         types that can't be deduced solely from st_mode.  First arg is now a
46592         const pointer.
46593         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
46594         (strmode): Renamed from mode_string.
46595         (filemodestring): New decl.
46596         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
46597         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
46598         needed.
46599         (S_ISPORT, S_ISWHT): New macros, if not already defined.
46600
46601         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
46602
46603         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
46604         fsusage.h now does that.  Include fsusage.h first, to test interface.
46605         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
46606         at most one method (the old code could have generated decls that
46607         didn't conform to C89, not that this was ever exercised).
46608         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
46609
46610         2006-03-19  Jim Meyering  <jim@meyering.net>
46611
46612         Work even in a chroot where d_ino values for entries in "/"
46613         don't match the stat.st_ino values for the same names.
46614         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
46615         number, iterate through all entries again, using lstat instead.
46616         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
46617         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
46618
46619         * lib/getcwd.c (__getcwd): Clarify a comment.
46620         Use memcpy in place of a call to strcpy.
46621
46622         2006-03-12  Jim Meyering  <jim@meyering.net>
46623
46624         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
46625         matches that of the current directory (which we're about to chdir ".."
46626         out of), then save the dev-ino of the parent, instead.
46627
46628         * lib/same-inode.h (SAME_INODE): New file/macro.
46629         * lib/chdir-safer.c (SAME_INODE): Remove definition.
46630         Include "same-inode.h", instead.
46631         * lib/same.c: Likewise.
46632         * lib/cycle-check.h: Include "same-inode.h".
46633         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
46634         * lib/cycle-check.c (SAME_INODE): Remove definition.
46635         * lib/root-dev-ino.h: Include "same-inode.h".
46636
46637         2006-03-11  Eric Blake  <ebb9@byu.net>
46638
46639         * lib/same.c (same_name): s/base_name/last_component/
46640         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
46641         * lib/filenamecat.c (file_name_concat): Likewise.
46642
46643         2006-03-11  Eric Blake  <ebb9@byu.net>,
46644                     Paul Eggert  <eggert@cs.ucla.edu>
46645
46646         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
46647         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
46648         drive prefix.
46649         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
46650         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
46651         (last_component): New method.
46652         * lib/dirname.c (dir_len): Determine when drive letters need a
46653         subsequent slash.  Preserve // when it is special.
46654         (dir_name): Don't append dot when drive letter is absolute.
46655         [TEST_DIRNAME]: Move into a full-blown gnulib test.
46656         * lib/basename.c (base_name): New semantics - malloc the result.
46657         Preserve // when it is special.  Preserve relative files that look
46658         like drive letters.
46659         (base_len): Preserve // when it is special.
46660         (last_component): New method, similar to old base_name semantics.
46661         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
46662         base_name.  Strip redundant slashes from ///.
46663
46664 2006-07-03  Jim Meyering  <jim@meyering.net>
46665
46666         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
46667         macro is used before the first cycle_check call.
46668
46669 2006-07-03  Eric Blake  <ebb9@byu.net>
46670
46671         * modules/dirname (Depends-on): Add xstrndup.
46672
46673 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
46674
46675         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
46676         test cases, so that config.log is a bit easier to follow.
46677
46678 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
46679
46680         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
46681         both are 64 bits, since this seems to be the tradition, and this
46682         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
46683         we ever run into a host that prefers long long to long in this
46684         case, we'll need another configure-time test.  Problem reported by
46685         Jim Meyering.
46686
46687 2006-07-02  Eric Blake  <ebb9@byu.net>
46688
46689         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
46690
46691 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46692
46693         * modules/inttypes (Depends-on): No longer depends on stdint.
46694         * modules/stdint (Description): Say more about assumptions.
46695         Say that the fast types might differ.  Say macros are used.
46696         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
46697         (Makefile.am): Revise list of substituted symbols to match
46698         new stdint.m4.
46699         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
46700         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
46701         * tests/test-stdint.c (verify_same_types)
46702         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
46703         the code conforms to C99/C89.
46704         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
46705         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
46706
46707 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46708
46709         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
46710         but fix a bug, by requiring at least 64 bits.
46711         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
46712         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
46713         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
46714         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
46715
46716         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
46717         changes.  Make 2.59 a prerequisite.  Check and substitute for
46718         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
46719         inttypes.h.  Do not use special include files; just use the
46720         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
46721         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
46722         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
46723         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
46724         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
46725         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
46726         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
46727         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
46728         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
46729         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
46730         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
46731         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
46732         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
46733         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
46734         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
46735         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
46736         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
46737         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
46738         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
46739         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
46740         WINT_MAX.  Check for C99 conformance more strictly, by detecting
46741         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
46742         not check for things that C99 does not require, e.g., int8_t.  If
46743         a test isn't needed unless <stdint.h> isn't working, and is
46744         unlikely to be needed for any other reason, then don't do it
46745         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
46746         size_t, since we assume C89 freestanding at least.  Do not check
46747         for sig_atomic_t, wchar_t, or wint_t, since the code now does
46748         the right thing even if the types are not defined.  Instead use:
46749         (gl_STDINT_TYPE_PROPERTIES): New macro.
46750         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
46751         testing whether <sys/types.h> clashes, as Autoconf does this for
46752         us now.  All uses removed.
46753         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
46754         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
46755         (gl_CHECK_TYPE_SAME):
46756         Remove; no longer needed.
46757         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
46758         exists, since we'll return 0 anyway in that case.
46759         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
46760
46761 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46762
46763         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
46764         possible collision with system files.
46765         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
46766         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
46767         WCHAR_MIN and WCHAR_MAX in this case.
46768         (<stddef.h>): Do not include; no longer needed.
46769         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
46770         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
46771         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
46772         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
46773         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
46774         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
46775         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
46776         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
46777         !defined(__c99))]: Include in this case too, since it's harmless
46778         now.
46779         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
46780         dangerous to do so.
46781         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
46782         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
46783         (_STDINT_MIN, _STDINT_MAX): New macros.
46784         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
46785         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
46786         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
46787         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
46788         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
46789         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
46790         macros, not typedefs; this simplifies things quite a bit.
46791         Use long int for all types narrower than int64_t.
46792         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
46793         Define in terms of long long int or int64_t or long int,
46794         not int64_t or int32_t.  This saves some compile-time testing.
46795         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
46796         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
46797         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
46798         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
46799         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
46800         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
46801         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
46802         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
46803         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
46804         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
46805         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
46806         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
46807         undef any previous version and define our own version, for
46808         simplicity and consistency with the new macros for types.
46809         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
46810         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
46811         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
46812         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
46813         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
46814         @WINT_T_SUFFIX@ to keep things simple here.
46815         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
46816         Simplify by assuming typical 8/16/32/64 host, since we're
46817         already doing that elsewhere anyway.
46818         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
46819         and assume long long int is 64 bits if available.  This
46820         speeds up 'configure'.
46821
46822 2006-07-01  Eric Blake  <ebb9@byu.net>
46823
46824         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
46825         Reported by Andreas Buening.
46826
46827 2006-07-01  Eric Blake  <ebb9@byu.net>
46828
46829         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
46830
46831 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
46832
46833         * lib/getaddrinfo.c: fixed typo
46834
46835 2006-06-29  Jim Meyering  <jim@meyering.net>
46836
46837         * modules/strftime (Maintainer): Add my name, since with the
46838         FPRINTFTIME changes strftime.c has forked from glibc.
46839
46840 2006-06-29  Eric Blake  <ebb9@byu.net>
46841
46842         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
46843
46844 2006-06-29  Eric Blake  <ebb9@byu.net>
46845
46846         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
46847
46848 2006-06-29  Eric Blake  <ebb9@byu.net>
46849
46850         * lib/stat_.h: New file.
46851
46852 2006-06-29  Eric Blake  <ebb9@byu.net>
46853
46854         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
46855         unused static function.
46856
46857 2006-06-29  Eric Blake  <ebb9@byu.net>
46858
46859         * doc/functions.texi (Function Portability): Document missing lstat
46860         on mingw.
46861
46862 2006-06-29  Eric Blake  <ebb9@byu.net>
46863
46864         * MODULES.html.sh: Add sys_stat.
46865         * modules/sys_stat: New module.
46866         * modules/mkstemp (Depends-on): Add sys_stat.
46867
46868 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46869
46870         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
46871
46872 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46873
46874         * m4/c-bs-a.m4: Removed.
46875
46876 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46877
46878         * lib/strftime.c: Assume strftime() exists.
46879
46880 2006-06-29  Derek Price  <derek@ximbiot.com>
46881
46882         * modules/c-bs-a: Removed - \a is C89.
46883         * MODULES.html.sh: Remove c-bs-a.
46884
46885 2006-06-29  Bruno Haible  <bruno@clisp.org>
46886
46887         * modules/wcwidth (License): Change to LGPL.
46888
46889 2006-06-28  Simon Josefsson  <jas@extundo.com>
46890
46891         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
46892         on _WIN32.
46893
46894         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
46895         getnameinfo.
46896
46897 2006-06-28  Simon Josefsson  <jas@extundo.com>
46898
46899         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
46900
46901 2006-06-28  Simon Josefsson  <jas@extundo.com>
46902
46903         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
46904         functions there.  It will succeed on Windows XP, but on Windows
46905         2000 and (presumably) earlier, it will fail, and use the internal
46906         re-implementation.
46907         (use_win32_p): New function.
46908         (getaddrinfo): Use strtoul on servname, to support numeric ports.
46909         Support AI_NUMERICSERV to disable getservbyname.
46910         (getnameinfo): New function, only supports
46911         NI_NUMERICHOST|NI_NUMERICSERV for now.
46912
46913         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
46914         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
46915         getnameinfo.
46916
46917 2006-06-28  Eric Blake  <ebb9@byu.net>
46918
46919         * modules/wcwidth: New file.
46920         * modules/mbchar (Depends-on): Add wcwidth.
46921         * modules/mbswidth (Depends-on): Add wcwidth.
46922         * MODULES.html.sh: Add wcwidth.
46923
46924 2006-06-28  Eric Blake  <ebb9@byu.net>
46925
46926         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
46927         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
46928
46929 2006-06-28  Eric Blake  <ebb9@byu.net>
46930
46931         * lib/xvasprintf.h: Fix comments.
46932
46933 2006-06-28  Eric Blake  <ebb9@byu.net>
46934
46935         * lib/mbchar.h (wcwidth): Include wcwidth.h.
46936         * lib/mbswidth.c (wcwidth): Move from here...
46937         * lib/wcwidth.h: ...to this new file.
46938
46939 2006-06-28  Derek R. Price  <derek@ximbiot.com>
46940
46941         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
46942
46943         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
46944         it's obsolete.
46945         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
46946
46947 2006-06-28  Derek R. Price  <derek@ximbiot.com>
46948
46949         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
46950         Autoconf 2.60 says this stuff was obsolete.
46951
46952 2006-06-28  Bruno Haible  <bruno@clisp.org>
46953
46954         * modules/wcwidth (Files): Add m4/wchar_t.m4.
46955
46956 2006-06-28  Bruno Haible  <bruno@clisp.org>
46957
46958         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
46959         gt_TYPE_WCHAR_T.
46960
46961 2006-06-28  Bruno Haible  <bruno@clisp.org>
46962
46963         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
46964         declaration for wcwidth.
46965         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
46966
46967 2006-06-28  Bruno Haible  <bruno@clisp.org>
46968
46969         * lib/mkdtemp.c [MINGW]: Include <io.h>.
46970         (mkdir): Define using _mkdir.
46971
46972 2006-06-28  Bruno Haible  <bruno@clisp.org>
46973
46974         * lib/getaddrinfo.h: Fix POSIX URL.
46975         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
46976         _WIN32.
46977         (use_win32_p): Make static.
46978         (getaddrinfo): Reject service name if it is empty or does not consist
46979         solely of decimal digits, or if its value is > 65535.
46980         (getnameinfo): Remove useless casts.
46981
46982 2006-06-27  Simon Josefsson  <jas@extundo.com>
46983
46984         * modules/sys_select: New file, suggested by Bruno Haible, Paul
46985         Eggert and Martin Lambers.
46986
46987 2006-06-27  Simon Josefsson  <jas@extundo.com>
46988
46989         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
46990         Eggert and Martin Lambers.
46991
46992 2006-06-27  Bruno Haible  <bruno@clisp.org>
46993
46994         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
46995         result to 0, not to empty.
46996         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
46997
46998 2006-06-27  Bruno Haible  <bruno@clisp.org>
46999
47000         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
47001
47002 2006-06-26  Simon Josefsson  <jas@extundo.com>
47003
47004         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
47005         present.
47006
47007 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
47008
47009         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
47010         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
47011         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
47012
47013 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
47014
47015         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
47016
47017 2006-06-26  Bruno Haible  <bruno@clisp.org>
47018
47019         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
47020
47021 2006-06-26  Bruno Haible  <bruno@clisp.org>
47022
47023         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
47024
47025 2006-06-26  Bruno Haible  <bruno@clisp.org>
47026
47027         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
47028         SGI C compiler in pre-C99 mode.
47029         Suggested by Mark D. Baushke and Larry Jones.
47030
47031 2006-06-26  Bruno Haible  <bruno@clisp.org>
47032
47033         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
47034         WCHAR_MAX.
47035         Reported by Mark D. Baushke and Larry Jones.
47036
47037 2006-06-26  Bruno Haible  <bruno@clisp.org>
47038
47039         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
47040         in pre-C99 mode.
47041         Suggested by Mark D. Baushke and Larry Jones.
47042
47043 2006-06-23  Simon Josefsson  <jas@extundo.com>
47044             Bruno Haible  <bruno@clisp.org>
47045
47046         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
47047         Emit mostlyclean-local rule.
47048         (func_emit_tests_Makefile_am): Likewise.
47049         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
47050
47051 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
47052
47053         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
47054
47055 2006-06-23  Bruno Haible  <bruno@clisp.org>
47056
47057         * tests/test-stdint.c: Update to match ISO C 99 Technical
47058         Corrigendum 1.
47059
47060 2006-06-23  Bruno Haible  <bruno@clisp.org>
47061
47062         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
47063
47064 2006-06-23  Bruno Haible  <bruno@clisp.org>
47065
47066         * lib/stdint_.h: Treat IRIX like OpenBSD.
47067
47068 2006-06-23  Bruno Haible  <bruno@clisp.org>
47069
47070         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
47071         ISO C 99 Technical Corrigendum 1.
47072
47073 2006-06-22  Simon Josefsson  <jas@extundo.com>
47074
47075         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
47076         MinGW.
47077
47078 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
47079
47080         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
47081         needed.  Some compiler complained about some of them.  Problem reported
47082         by Larry Jones in
47083         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
47084
47085 2006-06-21  Simon Josefsson  <jas@extundo.com>
47086
47087         * tests/test-getaddrinfo.c: New file.
47088
47089         * modules/getaddrinfo-tests: New file.
47090
47091         * MODULES.html.sh: Add inet_pton.
47092
47093         * modules/inet_pton: New file.
47094
47095 2006-06-21  Simon Josefsson  <jas@extundo.com>
47096
47097         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
47098         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
47099         of using the (limited) gnulib implementation on Windows XP.
47100
47101         * m4/inet_pton.m4: New file.
47102
47103 2006-06-21  Simon Josefsson  <jas@extundo.com>
47104
47105         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
47106         variable.
47107
47108         * lib/socket_.h: Don't define WINVER.
47109
47110         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
47111         slightly modified to work in gnulib.
47112
47113 2006-06-21  Simon Josefsson  <jas@extundo.com>
47114
47115         * doc/gnulib.texi (Windows sockets): Add.
47116
47117 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
47118
47119         * lib/read-file.c (fread_file): Start with buffer allocation of
47120         0 bytes rather than 1 byte; this simplifies the code.
47121         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
47122         code to free buffer and save/restore errno.
47123         (internal_read_file): Remove unused local.
47124
47125 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
47126
47127         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
47128         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
47129         Problem reported by Denis Excoffier in
47130         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
47131
47132 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47133
47134         * modules/sys_socket, modules/socklen: Include sys/types since
47135         FreeBSD 4.x's sys/socket.h needs it.
47136
47137 2006-06-19  Simon Josefsson  <jas@extundo.com>
47138
47139         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
47140
47141 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
47142
47143         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
47144
47145 2006-06-19  Bruno Haible  <bruno@clisp.org>
47146
47147         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
47148         and FULL_PATH_INTTYPES_H in angle brackets.
47149         Reported by Mark D. Baushke <mdb@gnu.org>.
47150
47151 2006-06-17  Eric Blake  <ebb9@byu.net>
47152
47153         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
47154         errno.
47155
47156 2006-06-17  Bruno Haible  <bruno@clisp.org>
47157
47158         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
47159         <sys/inttypes.h>.
47160
47161 2006-06-17  Bruno Haible  <bruno@clisp.org>
47162
47163         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
47164         whether errno is declared. Assume <errno.h> declares errno.
47165
47166 2006-06-17  Bruno Haible  <bruno@clisp.org>
47167
47168         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
47169
47170 2006-06-17  Bruno Haible  <bruno@clisp.org>
47171
47172         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
47173         problem on Solaris 2.5.1.
47174
47175 2006-06-16  Eric Blake  <ebb9@byu.net>
47176
47177         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
47178         * lib/unicodeio.c [!defined errno]: Likewise.
47179         * lib/strtol.c [!defined errno]: Likewise.
47180         * lib/strtod.c [!defined errno]: Likewise.
47181
47182 2006-06-15  Eric Blake  <ebb9@byu.net>
47183
47184         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
47185
47186 2006-06-15  Eric Blake  <ebb9@byu.net>
47187
47188         * config/srclist.txt (ssize_t.m4): Lose sync.
47189
47190 2006-06-15  Bruno Haible  <bruno@clisp.org>
47191
47192         * modules/stdint (Files): Include m4/full-header-path.m4,
47193         m4/size_max.m4, m4/wchar_t.m4.
47194         (Makefile.am): Many more substitutions.
47195         * modules/stdint-tests: New file.
47196         * tests/test-stdint.c: New file.
47197
47198 2006-06-15  Bruno Haible  <bruno@clisp.org>
47199
47200         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
47201         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
47202         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
47203         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
47204         gl_CHECK_TYPE_SAME): New macros.
47205
47206 2006-06-15  Bruno Haible  <bruno@clisp.org>
47207
47208         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
47209
47210 2006-06-15  Bruno Haible  <bruno@clisp.org>
47211
47212         * lib/stdint_.h: Rewritten to be fully auto-configured.
47213         Fixes bug on HP-UX/IA64.
47214
47215 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
47216
47217         * lib/getdate.y (__attribute__): Don't define if already defined.
47218         Problem reported by Larry Jones.
47219         * lib/utimens.c (__attribute__): Likewise.
47220
47221 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
47222
47223         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
47224         reported by Andreas Schwab.
47225
47226 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47227             Bruno Haible  <bruno@clisp.org>
47228
47229         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
47230         check for the declaration of strnlen and a run test that exposes the
47231         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
47232         rpl_strndup.
47233
47234 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47235             Bruno Haible  <bruno@clisp.org>
47236
47237         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
47238
47239 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47240
47241         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
47242         compile test, for Tru64 4.0D.
47243
47244 2006-05-28  Karl Berry  <karl@gnu.org>
47245
47246         * config/srclist.txt (printf-args.c): lose sync.
47247
47248 2006-05-26  Martin Lambers  <marlam@marlam.de>
47249
47250         * lib/getpass.c: Updates the test for the native W32 API, and adds
47251         missing includes, thus fixing compilation warnings.
47252
47253 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47254
47255         * lib/exclude.c (exclude_fnmatch): New function.
47256         (excluded_file_name): Call exclude_fnmatch.
47257         * lib/exclude.h (excluded_file_name): New prototype
47258
47259 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
47260
47261         * lib/tempname.c (small_open, large_open): New macros.
47262         (__open, __open64) [!_LIBC]: Remove.
47263         (__gen_tempname): Use small_open and large_open instead of __open
47264         and __open64.  This fixes a portability bug on HP-UX 11.11i
47265         reported by Simon Wing-Tang in
47266         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
47267
47268 2006-05-24  Bruno Haible  <bruno@clisp.org>
47269
47270         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
47271         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
47272         Reported by Thorsten Maerz <torte@netztorte.de> via
47273         Aaron Stone <aaron@serendipity.cx>.
47274
47275 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
47276
47277         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
47278         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
47279         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
47280         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
47281         not really conditional on the cache.
47282         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
47283
47284 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
47285
47286         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
47287         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
47288         (my_usleep): Don't mishandle maximum value.
47289
47290 2006-05-19  Jim Meyering  <jim@meyering.net>
47291
47292         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
47293
47294 2006-05-17  Bruno Haible  <bruno@clisp.org>
47295
47296         Cygwin portability.
47297         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
47298
47299 2006-05-17  Bruno Haible  <bruno@clisp.org>
47300
47301         * lib/stdint_.h: Fix recognition of Cygwin.
47302
47303 2006-05-15  Bruno Haible  <bruno@clisp.org>
47304
47305         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
47306         on libtool patch by Ralf Wildenhues.
47307
47308 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
47309
47310         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
47311         test for C99 conformance; (bool) 0.5 is an integer constant
47312         expression, but (bool) -0.5 is not.  Problem reported by Fedor
47313         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
47314
47315 2006-05-11  Simon Josefsson  <jas@extundo.com>
47316
47317         * m4/xvasprintf.m4: Fix obvious typo.
47318
47319 2006-05-11  Jim Meyering  <jim@meyering.net>
47320
47321         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
47322         James Lemley.
47323
47324 2006-05-10  Simon Josefsson  <jas@extundo.com>
47325
47326         * lib/md4.c: Typo fix, update copyright years.
47327         (K1, K2): Don't use L because it turn computations into 64-bit on
47328         64-bit platforms.
47329
47330 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
47331
47332         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
47333         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
47334         unwanted sign propagation, e.g., on hosts with 64-bit int.
47335         There still are some problems with reeelly weird theoretical hosts
47336         (e.g., 33-bit int) but it's not worth worrying about now.
47337         * lib/sha1.c (rol): Likewise.
47338         (K1, K2, K3, K4): Remove unnecessary L suffix.
47339
47340 2006-05-10  Bruno Haible  <bruno@clisp.org>
47341
47342         * lib/des.c: Cast to avoid warnings.
47343
47344 2006-05-09  Bruno Haible  <bruno@clisp.org>
47345
47346         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
47347         (Depends-on): Depend also on xsize, stdarg.
47348         (configure.ac): Add gl_XVASPRINTF.
47349
47350 2006-05-09  Bruno Haible  <bruno@clisp.org>
47351
47352         * m4/xvasprintf.m4: New file.
47353
47354 2006-05-09  Bruno Haible  <bruno@clisp.org>
47355
47356         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
47357         (EOVERFLOW): Define fallback value.
47358         (xstrcat): New function.
47359         (xvasprintf): Recognize the special case of a string concatenation.
47360
47361 2006-05-08  Eric Blake  <ebb9@byu.net>
47362
47363         * gnulib-tool (func_version): Base copyright year on CVS date.
47364         (func_emit_copyright_notice): New function.
47365         (func_emit_lib_Makefile_am): Use it.
47366         (func_emit_tests_Makefile_am): Likewise.
47367         (func_import): Likewise.
47368
47369 2006-05-08  Bruno Haible  <bruno@clisp.org>
47370
47371         * modules/stdarg: New file.
47372         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
47373
47374 2006-05-08  Bruno Haible  <bruno@clisp.org>
47375
47376         * m4/stdarg.m4: New file, from GNU gettext.
47377
47378 2006-05-08  Bruno Haible  <bruno@clisp.org>
47379
47380         * config/srclist.txt (build-aux/config.rpath): different from latest
47381         release.
47382
47383 2006-05-08  Bruno Haible  <bruno@clisp.org>
47384
47385         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
47386
47387 2006-05-05  Jim Meyering  <jim@meyering.net>
47388
47389         * m4/warning.m4: New file, derived from bison's file by the same name.
47390
47391 2006-05-03  Bruno Haible  <bruno@clisp.org>
47392
47393         * lib/stdint_.h: Shorter URL.
47394         * lib/inttypes.h: Likewise.
47395
47396 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47397
47398         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
47399
47400 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47401
47402         * lib/verify.h: Document the internals better.  Most of this change
47403         was written by Bruno Haible.
47404
47405 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47406
47407         * doc/verify.texi: New file, partly based on a proposal by
47408         Bruno Haible.
47409
47410 2006-05-02  Bruno Haible  <bruno@clisp.org>
47411
47412         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
47413         test from here...
47414         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
47415
47416 2006-04-29  Bruno Haible  <bruno@clisp.org>
47417
47418         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
47419         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
47420
47421 2006-04-29  Bruno Haible  <bruno@clisp.org>
47422
47423         * gnulib-tool: Make --update option actually work.
47424
47425 2006-04-29  Bruno Haible  <bruno@clisp.org>
47426
47427         * doc/gcd.texi: New file.
47428         * doc/gnulib.texi: Include it.
47429
47430 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
47431
47432         * lib/getdate.y (get_date): When adding relative date, start with the
47433         initial time, not with the result of the first mktime call.
47434
47435 2006-04-25  Bruno Haible  <bruno@clisp.org>
47436
47437         * gnulib-tool (func_import): Output the include directives in three
47438         blocks, sorted separately.
47439         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47440
47441 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
47442
47443         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
47444         to define main with arguments, for C++.  Reported by Eric Blake.
47445         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
47446         Prefer 'int main ()' to 'int main (void)', for C++.
47447         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
47448         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
47449         for 'main', for C99 and C++.
47450
47451 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
47452
47453         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
47454         Don't assume that exit status -1 is valid.
47455         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47456         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
47457         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
47458         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
47459         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
47460         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
47461         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
47462         functions can be used without declaring them, or that you can
47463         exit with status -1.
47464         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
47465
47466 2006-04-24  Karl Berry  <karl@gnu.org>
47467
47468         * config/srclist.txt (longdouble.m4): sync lost.
47469
47470 2006-04-24  Eric Blake  <ebb9@byu.net>
47471
47472         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
47473
47474 2006-04-24  Bruno Haible  <bruno@clisp.org>
47475
47476         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
47477         poll() implementation in AIX.
47478         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47479
47480 2006-04-24  Bruno Haible  <bruno@clisp.org>
47481
47482         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
47483         assigned exactly once.
47484
47485 2006-04-23  Claudio Fontana  <claudio@gnu.org>
47486             Bruno Haible  <bruno@clisp.org>
47487
47488         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
47489         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
47490         for AM_CPPFLAGS.
47491
47492 2006-04-23  Bruno Haible  <bruno@clisp.org>
47493
47494         * modules/copy-file: Depend on unistd.
47495         * modules/execute: Likewise.
47496         * modules/fatal-signal: Likewise.
47497         * modules/findprog: Likewise.
47498         * modules/mkdtemp : Likewise.
47499         * modules/pipe: Likewise.
47500         * modules/wait-process: Likewise.
47501
47502 2006-04-23  Bruno Haible  <bruno@clisp.org>
47503
47504         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
47505         condition was already detected.
47506         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47507
47508 2006-04-23  Bruno Haible  <bruno@clisp.org>
47509
47510         * lib/copy-file.c: Include <unistd.h> unconditionally.
47511         * lib/execute.c: Likewise.
47512         * lib/fatal-signal.c: Likewise.
47513         * lib/findprog.c: Likewise.
47514         * lib/mkdtemp.c: Likewise.
47515         * lib/pipe.h: Likewise.
47516         * lib/pipe.c: Likewise.
47517         * lib/wait-process.h: Likewise.
47518
47519 2006-04-23  Bruno Haible  <bruno@clisp.org>
47520
47521         * gnulib-tool (func_usage): Fix --import description. Document
47522         --update.
47523         (func_import): Create temporary file in a temporary directory, if
47524         --dry-run is specified. Silence errors from 'grep' when there are no
47525         m4 files in $m4dir.
47526         (func_create_testdir): Silence errors from 'grep' when there are no
47527         m4 files in $m4dir.
47528         Reported by Karl Berry <karl@freefriends.org>.
47529
47530 2006-04-20  Bruno Haible  <bruno@clisp.org>
47531
47532         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
47533         one argument, so that the code will be portable to Autoconf 2.60.
47534         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
47535         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
47536         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
47537
47538 2006-04-19  Derek Price  <derek@ximbiot.com>
47539             Eric Blake  <ebb9@byu.net>
47540
47541         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
47542         rather than "/full/path.h".  Update comment to match.  Shorten &
47543         generalize m4_translit call via AS_TR_CPP.
47544
47545 2006-04-19  Derek Price  <derek@ximbiot.com>
47546             Eric Blake  <ebb9@byu.net>
47547
47548         * lib/inttypes.h: Correct grammar in comment.
47549
47550 2006-04-18  Derek Price  <derek@ximbiot.com>
47551             Paul Eggert  <eggert@cs.ucla.edu>
47552
47553         * modules/inttypes: New file.
47554         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
47555
47556 2006-04-18  Derek Price  <derek@ximbiot.com>
47557             Paul Eggert  <eggert@cs.ucla.edu>
47558
47559         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
47560         New files.
47561
47562 2006-04-18  Derek Price  <derek@ximbiot.com>
47563             Paul Eggert  <eggert@cs.ucla.edu>
47564
47565         * lib/inttypes.h: New file.
47566         * lib/strtoimax.c: Assume <inttypes.h>.
47567
47568 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
47569
47570         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
47571         isn't mounted.  Problem reported by Kir Kolyshkin.
47572
47573 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
47574
47575         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
47576         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
47577         Derek R. Price.
47578         * lib/regex.h (RE_DUP_MAX): Update comment to match current
47579         implementation.
47580
47581 2006-04-12  Eric Blake  <ebb9@byu.net>
47582
47583         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
47584         is now done automatically by the corresponding Autoconf macro.
47585
47586 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
47587
47588         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
47589         time_r.h.
47590
47591 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47592
47593         Merge regex changes from libc, removing some of our
47594         POSIX-conformance changes that were rejected and redoing them in a
47595         less-intrusive way.
47596
47597         * lib/regcomp.c (re_compile_internal, init_dfa):
47598         Length arg is now size_t, not Idx.  All uses changed.
47599         (peek_token): Forward decl now says internal_function.
47600         (__re_error_msgid, __re_error_msgid_idx):
47601         Now static rather than extern with attribute_hidden.
47602         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
47603         For some reason libc prefers K&R style defns for external functions.
47604         (regerror) [!defined _LIBC]: Likewise.
47605         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
47606         (seek_collating_symbol_entry, lookup_collation_sequence_value):
47607         (build_range_exp, build_collating_symbol):
47608         Use K&R-style defn.
47609         (re_compile_fastmap): Use '\0' to memset, not 0.
47610         (utf8_sb_map): Make the calculations more obvious.
47611         (init_dfa, parse_bracket_exp, build_charclass_op):
47612         Call calloc and cast result, as glibc does.
47613         (init_word_char, fetch_token, peek_token, peek_token_bracket):
47614         (build_range_exp, build_collating_symbol):
47615         Now internal functions.
47616
47617         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
47618
47619         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
47620         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
47621         Don't depend on VMS; depend on __VMS instead, for POSIX
47622         namespace cleanness.
47623         (regoff_t): Define to ssize_t, not long int.
47624
47625         Remove the REG_ macros named below.  Instead, make the old names
47626         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
47627         __USE_GNU_REGEX.
47628         (REG_BACKSLASH_ESCAPE_IN_LISTS):
47629         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
47630         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
47631         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
47632         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
47633         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
47634         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
47635         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
47636         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
47637         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
47638         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
47639         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
47640         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
47641         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
47642         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
47643         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
47644         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
47645         (REG_NREGS):
47646         Remove.  All uses replaced by the old RE_* names.
47647         (RE_BACKSLASH_ESCAPE_IN_LISTS):
47648         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
47649         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
47650         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
47651         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
47652         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
47653         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
47654         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
47655         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
47656         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
47657         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
47658         Don't bother having these macros be independent of each others'
47659         values, since they no longer exist in the POSIX name space.
47660
47661         Rename the following member names back to their old names,
47662         unless !__USE_GNU_REGEX.  All uses changed back.
47663         (buffer): Renamed from re_buffer.
47664         (allocated): Renamed from re_allocated.
47665         (used): Renamed from re_used.
47666         (syntax): Renamed from re_syntax.
47667         (fastmap): Renamed from re_fastmap.
47668         (translate): Renamed from re_translate.
47669         (can_be_null): Renamed from re_can_be_null.
47670         (regs_allocated): Renamed from re_regs_allocated.
47671         (fastmap_accurate): Renamed from re_fastmap_accurate.
47672         (no_sub): Renamed from re_no_sub.
47673         (not_bol): Renamed from re_not_bol.
47674         (not_eol): Renamed from re_not_eol.
47675         (newline_anchor): Renamed from re_newline_anchor.
47676         (num_regs): Renamed from rm_num_regs.
47677         (start): Renamed from rm_start.
47678         (end): Renamed from rm_end.
47679
47680         (free_state): Move up a bit.
47681
47682         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
47683         #define to be empty.
47684         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
47685         when that is what is intended.
47686         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
47687         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
47688         (MAX): New macro.
47689         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
47690         All uses changed back to re_malloc, etc.  It's now the caller's
47691         responsibility to check for overflow; all callers changed.
47692         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
47693         (re_x2nrealloc): Remove.
47694         (free_state): Remove decl.
47695
47696         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
47697         (re_set_registers, re_exec):
47698         Use K&R-style defn.
47699
47700         2006-01-31  Roland McGrath  <roland@redhat.com>
47701
47702         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
47703         Reported by Mike Frysinger <vapier@gentoo.org>.
47704
47705         2006-01-15  Andreas Jaeger  <aj@suse.de>
47706
47707         [BZ #1950]
47708         * lib/regex_internal.c (re_string_reconstruct): Adjust for
47709         build_wcs_upper_buffer change.
47710         (build_wcs_upper_buffer): Change return type.
47711
47712         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
47713
47714         * lib/regex_internal.h: Include <stdint.h> if available.
47715
47716         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
47717
47718         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
47719
47720         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
47721
47722         * lib/regcomp.c: Adjust for changed secondary hash function.
47723
47724         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
47725
47726         * lib/regex.h: Pretty printing.
47727         Clean up namespace a bit.
47728
47729         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
47730
47731         * lib/regexec.c (update_cur_sifted_state, check_arrival,
47732         check_arrival_add_next_nodes): Avoid using uninitialized variable.
47733
47734         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
47735                     Ulrich Drepper  <drepper@redhat.com>
47736
47737         [BZ #1302]
47738         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
47739         changed.
47740         (bitset_word_t): Renamed from bitset_word.  All uses changed.
47741
47742         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
47743
47744         [BZ #281]
47745         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
47746         * lib/regcomp.c: Remove unnecessary uses of
47747         unsigned RE_TRANSLATE_TYPE.
47748         * lib/regex_internal.h: Likewise.
47749         * lib/regex_internal.c: Likewise.
47750         * lib/regexec.c: Likewise.
47751         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
47752
47753         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
47754
47755         * lib/regexec.c (find_recover_state): Remove unnecessary
47756         initialization.
47757         (transit_state_bkref): Make DFA a const pointer.
47758         (get_subexp): Likewise.
47759         (check_arrival): Likewise.
47760         (update_cur_sifted_state): Likewise.
47761         (re_search_internal): Likewise.
47762         (prune_impossible_nodes): Likewise.
47763         (acquire_init_state_context): Likewise.
47764         (proceed_next_node): Likewise.
47765         (set_regs): Likewise.
47766         (free_fail_stack_return): Likewise.
47767         (check_arrival_expand_ecl): Mark DFA parameter as const.
47768         (check_arrival_expand_ecl_sub): Likewise.
47769         (check_subexp_limits): Likewise.
47770         (sub_epsilon_src_nodes):  Likewise.
47771         (add_epsilon_src_nodes):  Likewise.
47772         (merge_state_array): Likewise.
47773         (update_regs): Likewise.
47774         (build_trtable): Likewise.
47775         (sift_states_backward): Mark MCTX parameter as const.
47776         (build_sifted_states): Likewise.
47777         (update_cur_sifted_state): Likewise.
47778         (sift_states_mkref): Likewise.
47779         (check_arrival_expand_ecl): Mark eclosure as const.
47780         (check_dst_limits_calc_pos_1): Likewise.
47781         * lib/regex_internal.h (re_match_context_t): Make dfa a const
47782         pointer.
47783
47784         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
47785
47786         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
47787         (transit_state_sb): Likewise.
47788         (transit_state_mb): Likewise.
47789         (sift_states_iter_mb): Likewise.
47790         (check_arrival_add_next_nodes): Likewise.
47791         (check_node_accept_bytes): Change first parameter to pointer-to-const.
47792         [_LIBC] (re_search_2_stub): Use mempcpy.
47793
47794         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
47795         mbrtowc for very simple UTF-8 case.
47796
47797         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
47798         a pointer-to-const.
47799         (re_acquire_state_context): Likewise.
47800         * lib/regex_internal.h: Adjust prototypes.
47801
47802         * lib/regex.c: Prevent using C++ compilers.
47803
47804         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
47805         (re_acquire_state_context): Likewise.
47806
47807 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47808
47809         * modules/regex (Depends-on): Add ssize_t.
47810
47811 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47812
47813         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
47814         translation table.
47815
47816 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47817
47818         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
47819
47820 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
47821             Bruno Haible  <bruno@clisp.org>
47822
47823         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
47824         <sys/types.h> and <inttypes.h>.
47825
47826 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47827
47828         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
47829         `__error_t_defined', so argp.h will not typedef the former.
47830
47831 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
47832
47833         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
47834         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
47835         glibc names.  Even if glibc is changed to conform to POSIX, the
47836         traditional names will be available anyway, since regex depends on
47837         the extensions module.  Also, fix a longstanding typo in the
47838         implementation of Spencer ERE test #75 from grep 2.3.  Problems
47839         reported by Emanuele Giaquinta.  Also, change sense of cached
47840         variable, so that the message makes sense.
47841
47842 2006-03-24  Simon Josefsson  <jas@extundo.com>
47843
47844         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
47845         including some doc fixes.
47846         (base64_encode_alloc): Fix +1 bug on allocation failures.
47847
47848 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47849
47850         * lib/base64.c (base64_encode): Do not read past end of array with
47851         unsanitized input on systems with CHAR_BIT > 8.
47852
47853 2006-03-24  Eric Blake  <ebb9@byu.net>
47854
47855         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
47856
47857 2006-03-22  Karl Berry  <karl@gnu.org>
47858
47859         * config/srclist.txt (*setenv.[ch]): get from coreutils.
47860         * config/srclistvars.sh (COREUTILS): new var.
47861
47862 2006-03-17  Jim Meyering  <jim@meyering.net>
47863
47864         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
47865         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
47866
47867 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
47868
47869         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
47870         no longer needs it.  Instead, check that regoff_t is as least
47871         as wide as ptrdiff_t.
47872
47873         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
47874         so that our regex.h stays compatible with the installed regex.
47875         This is helpful for installers who configure --without-included-regex.
47876         Problem reported by Emanuele Giaquinta.
47877
47878 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
47879
47880         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
47881         Typedef to long int, not to off_, as POSIX will likely change
47882         in that direction.
47883
47884 2006-03-15  Eric Blake  <ebb9@byu.net>
47885
47886         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
47887
47888 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
47889
47890         * lib/argp-help.c (validate_uparams): Fix typo
47891         * lib/argp-parse.c (argp_default_options): Consistently begin help
47892         messages with a lowercase letter.
47893
47894 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
47895
47896         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
47897         overrun buffers and shouldn't be used (much as gets shouldn't be
47898         used).
47899         * lib/time_r.c (asctime_r, ctime_r): Likewise.
47900
47901 2006-03-08  Simon Josefsson  <jas@extundo.com>
47902
47903         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
47904         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47905
47906 2006-03-08  Simon Josefsson  <jas@extundo.com>
47907
47908         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
47909         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47910
47911 2006-03-08  Simon Josefsson  <jas@extundo.com>
47912
47913         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
47914         signal that configure disabled the device.
47915
47916 2006-03-08  Simon Josefsson  <jas@extundo.com>
47917
47918         * build-aux/maint.mk: Fix refresh-po, to handle no translated
47919         languages.
47920
47921 2006-03-07  Simon Josefsson  <jas@extundo.com>
47922
47923         * modules/getopt (Depends-on): Add unistd.
47924
47925         * modules/unistd: New file.
47926
47927 2006-03-07  Simon Josefsson  <jas@extundo.com>
47928
47929         * modules/gc-random: New file.
47930
47931 2006-03-07  Simon Josefsson  <jas@extundo.com>
47932
47933         * m4/unistd_h.m4: New file.
47934
47935 2006-03-07  Simon Josefsson  <jas@extundo.com>
47936
47937         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
47938         test to be side-effect free by storing the result in the cache
47939         variable gl_cv_lib_readline, and moving the assignment of
47940         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
47941         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47942
47943 2006-03-07  Simon Josefsson  <jas@extundo.com>
47944
47945         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
47946         error on missing devices (the functions will return an error).
47947
47948         * m4/gc.m4: Move random stuff to gc-random.m4
47949
47950 2006-03-07  Simon Josefsson  <jas@extundo.com>
47951
47952         * lib/unistd_.h: New file.
47953
47954 2006-03-07  Simon Josefsson  <jas@extundo.com>
47955
47956         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
47957
47958 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
47959
47960         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
47961         Problem reported by Juan Manuel Guerrero.
47962
47963 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
47964
47965         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
47966         the unistd module.
47967         * lib/getlogin_r.c: Likewise.
47968         * lib/getlogin_r.h: Likewise.
47969         * lib/glob.c: Likewise.
47970         * lib/pagealign_alloc.c: Likewise.
47971         * lib/unistd_.h: Remove; no longer needed.
47972
47973 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
47974
47975         * MODULES.html.sh (Support for systems lacking POSIX:2001):
47976         Add unistd.
47977         * modules/c-stack (Depends-on): Add unistd.
47978         * modules/getlogin_r: Likewise.
47979         * modules/glob: Likewise.
47980         * modules/pagealign_alloc: Likewise.
47981         * modules/unistd (Files): Remove lib/unistd_.h.
47982         (EXTRA_DIST): Remove.
47983         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
47984         need unistd_.h.
47985         (MOSTLYCLEANFILES): Remove unistd.h-t.
47986
47987 2006-03-03  Simon Josefsson  <jas@extundo.com>
47988
47989         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
47990
47991 2006-03-03  Simon Josefsson  <jas@extundo.com>
47992
47993         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
47994         libidn and bison.
47995
47996 2006-03-03  Simon Josefsson  <jas@extundo.com>
47997
47998         * build-aux/maint.mk: Add indent target.
47999
48000 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
48001
48002         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
48003         our replacement poll.h in any case, to avoid a differing
48004         declaration from a system header.  Seen on AIX.
48005
48006 2006-03-01  Simon Josefsson  <jas@extundo.com>
48007
48008         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
48009         <kasal@ucw.cz>.
48010
48011 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
48012
48013         * modules/gettime (Depends-on): Add extensions module.
48014         * modules/nanosleep (Depends-on): Likewise.
48015         * modules/settime (Depends-on): Likewise.
48016
48017 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
48018
48019         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
48020         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
48021         pedantically.
48022         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
48023         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
48024
48025         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
48026         not "==".  Reported by Ralf Wildenhues.
48027
48028 2006-03-01  Karl Berry  <karl@gnu.org>
48029
48030         * doc/Copyright/request-*: new files, synced from gnuorg.
48031
48032 2006-03-01  Karl Berry  <karl@gnu.org>
48033
48034         * config/srclist.txt (Copyright/*): new entries.
48035
48036 2006-02-28  Simon Josefsson  <jas@extundo.com>
48037
48038         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
48039
48040 2006-02-27  Simon Josefsson  <jas@extundo.com>
48041
48042         * lib/base64.h: Indent #define's.  From Jim Meyering
48043         <jim@meyering.net>.
48044
48045 2006-02-27  Jim Meyering  <jim@meyering.net>
48046
48047         Revert the change of 2006-02-24, so these files can continue
48048         to be sync'd from gettext.
48049         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
48050         of `config.h'.
48051
48052 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
48053
48054         * modules/intprops: New file.
48055         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
48056         Add intprops.
48057         * modules/getloadavg (Files): Remove lib/intprops.h.
48058         (Depends-on): Add intprops.
48059         * modules/human: Likewise.
48060         * modules/inttostr: Likewise.
48061         * modules/openat: Likewise.
48062         * modules/sig2str: Likewise.
48063         * modules/userspec: Likewise.
48064         * modules/utimecmp: Likewise.
48065         * modules/xnanosleep: Likewise.
48066         * modules/xstrtol: Likewise.
48067
48068 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
48069
48070         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
48071         * modules/lock-tests (TESTS): Use $(EXEEXT).
48072         * modules/tls-tests: Likewise.
48073         * modules/argp-tests: Likewise.
48074         (check_PROGRAMS): New var, replacing...
48075         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
48076
48077 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48078
48079         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
48080         `config.h'.
48081
48082 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
48083
48084         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
48085
48086 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48087
48088         Sync from coreutils.
48089         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
48090         gl_CHDIR_SAFER.
48091
48092 2006-02-22  Jim Meyering  <jim@meyering.net>
48093
48094         Sync from coreutils.
48095         * m4/chdir-safer.m4: New file.
48096
48097 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
48098
48099         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
48100         AT_FDCWD exceeds INT_MAX.
48101         * lib/openat.h (AT_FDCWD): Likewise.
48102
48103 2006-02-17  Eric Blake  <address@hidden>
48104
48105         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
48106
48107 2006-02-16  Simon Josefsson  <jas@extundo.com>
48108
48109         * modules/getaddrinfo (Depends-on): Add sys_socket.
48110
48111 2006-02-15  Simon Josefsson  <jas@extundo.com>
48112
48113         * build-aux/maint.mk: Add dsyntax-check rule.
48114
48115 2006-02-15  Eric Blake  <ebb9@byu.net>
48116
48117         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
48118         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
48119         'present but cannot compile' warnings on cygwin.
48120         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
48121         use ws2tcpip.h if sys/socket.h works.
48122         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
48123         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
48124
48125 2006-02-14  Simon Josefsson  <jas@extundo.com>
48126
48127         * modules/maintainer-makefile (Files): Rename.
48128
48129         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
48130         and (the local) Makefile.cfg to maint-cfg.mk.
48131
48132         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
48133         to the latter.
48134
48135         * modules/maintainer-makefile: New module.
48136
48137         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
48138         severaly stripped to make it possible to build it up from scratch
48139         with reliable tests.
48140
48141         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
48142         fixes to permit overriding the default actions when configure and
48143         makefile are not available.
48144
48145 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
48146
48147         Sync from coreutils.
48148         * modules/lstat (Depends-on): Don't depend on xalloc.
48149         (License): Change from GPL to LGPL, since this is now simply a
48150         replacement for a libc function.
48151
48152 2006-02-14  Jim Meyering  <jim@meyering.net>
48153
48154         Sync from coreutils.
48155
48156         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
48157         failure on deficient systems, and simplify gnulib lgpl dependencies.
48158         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
48159         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
48160
48161         * lib/xalloc-die.c: Remove unused definition of N_.
48162
48163 2006-02-14  Jim Meyering  <jim@meyering.net>
48164
48165         Sync from coreutils.
48166         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
48167         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
48168         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
48169         double-quote uses of that variable, to accommodate the rare case in
48170         which getmntent is available in none of the libraries checked.  This
48171         happens at least on FreeBSD 5.0.
48172
48173 2006-02-13  Simon Josefsson  <jas@extundo.com>
48174
48175         * gnulib-tool (Usage): Fix --import, from
48176         karl@freefriends.org (Karl Berry).
48177
48178 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
48179
48180         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
48181
48182 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
48183
48184         * lib/argp-namefrob.h: Restore changes accidentally lost during the
48185         "autoupdate" on 2005-12-12.
48186
48187 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
48188
48189         * modules/closeout (Depends-on): Remove atexit.
48190
48191 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
48192
48193         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
48194         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
48195
48196 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
48197
48198         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
48199         __EXTENSIONS__ if this causes compilation to fail.  Problem
48200         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
48201         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
48202
48203 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
48204
48205         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
48206         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
48207         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
48208         All uses changed.
48209
48210 2006-01-26  Simon Josefsson  <jas@extundo.com>
48211
48212         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
48213         prototype is visible on mingw32.
48214
48215         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
48216         for mingw32.
48217
48218         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
48219         mingw32).
48220
48221 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
48222
48223         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
48224         attempt to open for write; this always fails, at least on POSIX
48225         hosts.  This reinstates the 2006-01-09 change, which was
48226         inadvertently removed.
48227
48228 2006-01-26  Bruno Haible  <bruno@clisp.org>
48229
48230         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
48231         Reported by Paul Eggert.
48232
48233 2006-01-26  Bruno Haible  <bruno@clisp.org>
48234             Paul Eggert  <eggert@cs.ucla.edu>
48235
48236         * lib/stdbool_.h (_Bool)
48237         [(! (defined __cplusplus || defined __BEOS__)
48238           && !defined __GNUC__
48239           && !(defined __HP_cc || defined __xlc__
48240                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
48241                || defined __sgi))]:
48242         #define to signed char in these cases too; this simplifies
48243         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
48244         etc., separately) and makes it more conservative.
48245
48246 2006-01-25  Simon Josefsson  <jas@extundo.com>
48247
48248         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
48249         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
48250         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
48251
48252 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48253
48254         * lib/argp-namefrob.h: Bugfix. Remove stray #
48255
48256 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
48257
48258         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
48259         so that we test the test.
48260         Check for yet another HP-UX cc bug involving *bool |= bool.
48261
48262 2006-01-25  Karl Berry  <karl@gnu.org>
48263
48264         * config/srclist.txt (vasnprintf.c): sync lost.
48265
48266 2006-01-25  Jim Meyering  <jim@meyering.net>
48267
48268         Sync from the stable (b5) branch of coreutils:
48269
48270         * lib/fts.c (fts_children): Don't let close() clobber errno from
48271         failed fchdir().
48272
48273         * lib/fts.c (fts_stat): When following a symlink-to-directory,
48274         don't necessarily interpret stat-fails+lstat-succeeds as indicating
48275         a dangling symlink.  That can also happen at least for ELOOP.
48276         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
48277         FYI, this bug predates the inclusion of fts.c in coreutils.
48278
48279         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
48280         in their own block, so pre-c99 compilers don't object.
48281
48282         Avoid the double-free (first in fts_read, second in fts_close) that
48283         would occur when an `active' directory is made inaccessible (e.g.,
48284         via chmod a-x) during a traversal.
48285         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
48286         before returning.  Reproduce this failure by
48287         mkdir -p a/b; cd a; chmod a-x . b
48288         Reported by Stavros Passas.
48289
48290 2006-01-25  Jim Meyering  <jim@meyering.net>
48291
48292         * lib/fileblocks.c: Remove more useless parentheses.
48293         * lib/readutmp.h: Likewise.
48294
48295 2006-01-25  Bruno Haible  <bruno@clisp.org>
48296
48297         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
48298         warnings.
48299         Reported by Paul Eggert.
48300
48301 2006-01-25  Bruno Haible  <bruno@clisp.org>
48302
48303         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
48304         rid of a trap command. For Solaris sh.
48305         Reported by Mark D. Baushke <mdb@gnu.org>.
48306
48307 2006-01-24  Simon Josefsson  <jas@extundo.com>
48308
48309         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
48310         Bruno.
48311
48312 2006-01-24  Karl Berry  <karl@gnu.org>
48313
48314         * config/srclist.txt (argp-namefrob.h): sync lost.
48315
48316 2006-01-24  Jim Meyering  <jim@meyering.net>
48317
48318         * modules/openat (Files): Add lib/intprops.h.
48319         From Mark D. Baushke.
48320
48321 2006-01-24  Jim Meyering  <jim@meyering.net>
48322
48323         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
48324         Reported by Mark D. Baushke.
48325
48326 2006-01-24  Jim Meyering  <jim@meyering.net>
48327
48328         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
48329
48330 2006-01-24  Bruno Haible  <bruno@clisp.org>
48331
48332         * modules/strnlen (Maintainer): Change from glibc to all.
48333
48334 2006-01-24  Bruno Haible  <bruno@clisp.org>
48335
48336         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
48337         Patch by Paul Eggert.
48338
48339 2006-01-24  Bruno Haible  <bruno@clisp.org>
48340
48341         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
48342         already has it.
48343         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
48344         2005-11-26.
48345
48346         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
48347         'signed char' to avoid problems with the built-in _Bool type.
48348         Reported by Paul Eggert on 2005-11-26.
48349
48350 2006-01-24  Bruno Haible  <bruno@clisp.org>
48351
48352         * gnulib-tool (func_import): Avoid constructing complicated sed
48353         expressions inside backquote.
48354         Report and solution by Mark D. Baushke <mdb@gnu.org>.
48355
48356 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
48357
48358         These changes imported from libc.
48359         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
48360         test and two separate function calls.
48361         * lib/strndup.c (__strndup): Add libc_hidden_def.
48362
48363 2006-01-23  Simon Josefsson  <jas@extundo.com>
48364
48365         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
48366         Remove the test_*_SOURCES variable: automake infers it by default.
48367         * modules/tls-tests: Likewise.
48368
48369 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48370
48371         Work around porting bugs reported by Dieter in
48372         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
48373         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
48374         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
48375         Include "getopt.h" first, to check interface.
48376         (getenv): Declare only if defined HAVE_DECL_GETENV &&
48377         !HAVE_DECL_GETENV.
48378         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
48379         (__strndup): Revert to K&R-style function dfns, the glibc style.
48380         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
48381         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
48382         Include strnlen.h first, to get prototype properly.
48383         (strnlen): Renamed from __strnlen.
48384         Remove weak alias.
48385
48386 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48387
48388         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
48389
48390 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48391
48392         * config/srclist.txt: Adjust to reflect glibc reorganization.
48393         This affects only comments.
48394
48395 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
48396
48397          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
48398          Reported by Bruce Korb <bkorb@gnu.org>.
48399
48400 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
48401
48402         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
48403         to pacify gcc -Wswitch-default.
48404
48405 2006-01-22  Bruno Haible  <bruno@clisp.org>
48406
48407         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
48408         temporary buffer for sprintf, take into account the precision also
48409         for 'd', 'i', 'u', 'o', 'x', 'X'.
48410
48411 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
48412
48413         * modules/argp-tests: New module
48414         * tests/test-argp.c: New file
48415         * tests/test-argp-2.sh: New file
48416
48417 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
48418
48419         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
48420         (__argp_base_name): Removed
48421         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
48422         typo.
48423         (__argp_base_name): Provide macro definition or extern declaration
48424         depending on the configuration
48425
48426 2006-01-20  Simon Josefsson  <jas@extundo.com>
48427
48428         * modules/inet_ntop (Depends-on): Depend on sys_socket.
48429
48430 2006-01-20  Simon Josefsson  <jas@extundo.com>
48431
48432         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
48433
48434 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
48435
48436         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
48437         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
48438         Suggested by Bruno Haible.
48439
48440 2006-01-20  Karl Berry  <karl@gnu.org>
48441
48442         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
48443         until changes propagate, I guess.
48444
48445 2006-01-19  Simon Josefsson  <jas@extundo.com>
48446
48447         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
48448
48449 2006-01-19  Simon Josefsson  <jas@extundo.com>
48450
48451         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
48452
48453 2006-01-19  Simon Josefsson  <jas@extundo.com>
48454
48455         * gnulib-tool: Set check_PROGRAMS.
48456
48457         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
48458         modules/des-tests, modules/gc-arcfour-tests,
48459         modules/gc-arctwo-tests, modules/gc-des-tests,
48460         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
48461         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
48462         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
48463         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
48464         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
48465         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
48466         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
48467         test_*_SOURCES.
48468
48469 2006-01-18  Simon Josefsson  <jas@extundo.com>
48470
48471         * modules/socklen (Depends-on): Depend on sys_socket.
48472
48473 2006-01-18  Simon Josefsson  <jas@extundo.com>
48474
48475         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
48476         modules/des-tests, modules/gc-arcfour-tests,
48477         modules/gc-arctwo-tests, modules/gc-des-tests,
48478         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
48479         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
48480         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
48481         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
48482         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
48483         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
48484         $(EXEEXT) to automake TESTS variable, for mingw32.
48485
48486 2006-01-17  Simon Josefsson  <jas@extundo.com>
48487
48488         * modules/socklen (Include): Need sys/socket.h.
48489
48490 2006-01-17  Bruno Haible  <bruno@clisp.org>
48491
48492         * modules/ssize_t (Include): Add <sys/types.h>.
48493
48494 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
48495
48496         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
48497         it's not portable and it doesn't work with cross-compiles.
48498         Problem reported by Bruno Haible.  Fix missing-$ typo in
48499         'test "gl_cv_ignore_unused_libraries" ...' that prevented
48500         -zignore from being used with Sun's C compiler.
48501
48502 2006-01-12  Simon Josefsson  <jas@extundo.com>
48503
48504         * lib/base64.c: Fix warning, reported by Bruno Haible
48505         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
48506
48507 2006-01-12  Bruno Haible  <bruno@clisp.org>
48508
48509         * modules/ldd: New file.
48510         * build-aux/ldd.sh.in: New file.
48511         * MODULES.html.sh (Support for building libraries and executables): Add
48512         ldd.
48513
48514 2006-01-12  Bruno Haible  <bruno@clisp.org>
48515
48516         * m4/ldd.m4: New file.
48517
48518 2006-01-12  Bruno Haible  <bruno@clisp.org>
48519
48520         * gnulib-tool (func_import, func_create_testdir): Don't go into an
48521         endless loop while replacing $auxdir with build-aux.
48522
48523 2006-01-11  Simon Josefsson  <jas@extundo.com>
48524
48525         * lib/stdint_.h (SIZE_MAX): Add missing (.
48526
48527 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
48528
48529         Sync from coreutils.
48530         * lib/md5.c: Fix commentary typos.
48531         (alignof, UNALIGNED_P): No need for a GCC-specific version.
48532         * lib/md5.h (__attribute__): Remove; unused.
48533         * lib/sha1.c: Fix commentary to match md5 better.
48534         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
48535         so that we don't need to worry about alignment.  All uses changed.
48536         This merges the 2005-10-28 md5 change into sha1.
48537
48538 2006-01-11  Jim Meyering  <jim@meyering.net>
48539
48540         Sync from coreutils.
48541         * lib/md5.c (OP): Fix spacing.
48542
48543 2006-01-11  Bruno Haible  <bruno@clisp.org>
48544
48545         Ensure automatic ordering between gl_LOCK and gl_ARGP.
48546         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
48547         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
48548
48549 2006-01-11  Bruno Haible  <bruno@clisp.org>
48550
48551         Ensure automatic ordering between gl_LOCK and gl_ARGP.
48552         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
48553         the "early" section as well.
48554
48555 2006-01-11  Bruno Haible  <bruno@clisp.org>
48556
48557         Avoid "ar: no archive members specified" error on MacOS X.
48558         * gnulib-tool (func_modules_add_dummy): New function.
48559         (func_import, func_create_testdir): Invoke it.
48560
48561 2006-01-11  Bruno Haible  <bruno@clisp.org>
48562
48563         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
48564         with $auxdir in AC_CONFIG_FILES statements.
48565
48566 2006-01-11  Bruno Haible  <bruno@clisp.org>
48567
48568         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48569         Initialize also noinst_HEADERS to empty.
48570
48571 2006-01-11  Bruno Haible  <bruno@clisp.org>
48572
48573         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
48574         variables.
48575         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
48576         autoreconf.
48577
48578 2006-01-11  Bruno Haible  <bruno@clisp.org>
48579
48580         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
48581         overridable by the user.
48582         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48583
48584 2006-01-10  Simon Josefsson  <jas@extundo.com>
48585
48586         * modules/sys_socket: New file.
48587
48588 2006-01-10  Simon Josefsson  <jas@extundo.com>
48589
48590         * m4/sys_socket_h.m4: New file.
48591
48592 2006-01-10  Simon Josefsson  <jas@extundo.com>
48593
48594         * lib/socket_.h: New file.
48595
48596 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48597
48598         * modules/readutmp (Maintainer): Add myself.
48599
48600 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48601
48602         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
48603         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
48604         People who are still concerned with buggy memcmp implementations
48605         can invoke gl_FUNC_MEMCMP themselves.
48606
48607 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48608
48609         * lib/regex_internal.h (BITSET_WORD_BITS):
48610         Work around a bug in 64-bit PGC (before version 6.1-2), where the
48611         preprocessor mishandles large unsigned values as if they were signed.
48612         Problem reported by Claudio Fontana in
48613         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
48614
48615 2006-01-10  Jim Meyering  <jim@meyering.net>
48616
48617         Avoid the double-free (first in fts_read, second in fts_close) that
48618         would occur when an `active' directory is made inaccessible (e.g.,
48619         via chmod a-x) during a traversal.
48620         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
48621         before returning.  Reproduce this failure by
48622         mkdir -p a/b; cd a; chmod a-x . b
48623         Reported by Stavros Passas.
48624
48625         Sync from coreutils.
48626         * lib/sha1.c: Tweak grammar in a comment.
48627
48628 2006-01-10  Jim Meyering  <jim@meyering.net>
48629
48630         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
48631         Patch by Joerg Sonnenberger.
48632
48633 2006-01-10  Bruno Haible  <bruno@clisp.org>
48634
48635         * modules/readutmp: Depend on module free.
48636         * modules/strtok_r: Depend on module restrict.
48637
48638 2006-01-10  Bruno Haible  <bruno@clisp.org>
48639
48640         * modules/gettext (configure.ac): Add an invocation of
48641         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
48642
48643 2006-01-10  Bruno Haible  <bruno@clisp.org>
48644
48645         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
48646         Reported by Werner Lemberg <wl@gnu.org>.
48647
48648 2006-01-10  Bruno Haible  <bruno@clisp.org>
48649
48650         * lib/localcharset.c: Update from GNU gettext.
48651
48652 2006-01-10  Bruno Haible  <bruno@clisp.org>
48653
48654         * lib/argp.h (__const): Remove macro. Use const instead.
48655         * lib/argp-fmtstream.h (__const): Likewise.
48656         * lib/glob_.h (__const): Remove macro.
48657         * lib/glob-libc.h: Use const instead of __const.
48658
48659 2006-01-10  Bruno Haible  <bruno@clisp.org>
48660
48661         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
48662         variable.
48663         Needed to avoid an automake error regarding the 'gettext' module.
48664
48665 2006-01-09  Simon Josefsson  <jas@extundo.com>
48666
48667         * modules/inet_ntop (Depends-on): Add restrict.
48668
48669 2006-01-09  Simon Josefsson  <jas@extundo.com>
48670
48671         * modules/gc-rijndael-tests (License): Put under LGPL.
48672
48673         * modules/gc-des-tests (License): Likewise.
48674
48675         * modules/gc-arcfour-tests (License): Likewise.
48676
48677         * modules/gc-arctwo-tests (License): Likewise.
48678
48679         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
48680
48681         * modules/gc-hmac-sha1-tests (Files): Likewise.
48682
48683         * modules/gc-hmac-md5-tests (License): Likewise.
48684
48685         * modules/gc-sha1-tests (License): Likewise.
48686
48687         * modules/gc-md5-tests (License): Likewise.
48688
48689         * modules/gc-md4-tests (License): Likewise.
48690
48691         * modules/gc-md2-tests (License): Likewise.
48692
48693         * modules/gc-tests (License): Likewise.
48694
48695         * modules/des-tests (License): Likewise.
48696
48697         * modules/md4-tests (License): Likewise.
48698
48699         * modules/md2-tests (License): Likewise.
48700
48701 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48702
48703         Sync from coreutils:
48704
48705         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
48706         * modules/lib-ignore: New file.
48707         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
48708         chdir-safer.m4, lchmod.m4.
48709         * modules/openat: Add mkdirat.c, openat-priv.h.
48710
48711 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48712
48713         Sync from coreutils.
48714         * m4/lib-ignore.m4: New file.
48715         * m4/lchmod.m4: New file.
48716
48717 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48718
48719         Sync from coreutils.
48720         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
48721         for write access: POSIX says that must fail.
48722         * lib/fts.c (diropen): Likewise.
48723         * lib/save-cwd.c (save_cwd): Likewise.
48724         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
48725         well, for minor improvements on hosts that lack O_DIRECTORY.
48726         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
48727         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
48728         Fall back on chown if open failed with EACCES.
48729
48730         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
48731         Report an error at compile-time if only a 1-second nominal clock
48732         resolution is found.
48733
48734         * lib/lchmod.h: New file.
48735         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
48736         (make_dir_parents): Use lchown rather than chown, and
48737         lchmod rather than chmod.
48738
48739         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
48740         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
48741         "proc" reported by n0dalus.
48742
48743         * lib/mountlist.c: Include <limits.h>.
48744         (dev_from_mount_options)
48745         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
48746         New function.  It no longer assumes "dev=" has the System V meaning
48747         on Linux (since it doesn't).  It also parses "dev=" more carefully.
48748         (read_file_system_list)
48749         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
48750         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
48751         dev= in that case.
48752
48753         * lib/posixtm.h (PDS_PRE_2000): New macro.
48754         * lib/posixtm.c (year): Arg is now syntax_bits rather than
48755         allow_century.  All usages changed.  Reject dates outside the range
48756         1969-1999 if PDS_PRE_2000 is used.
48757
48758 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48759
48760         Sync from coreutils.
48761         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
48762         (Time of day items): Mention the possibility of leap seconds.
48763         Problem reported by Dr. David Alan Gilbert.
48764
48765 2006-01-09  Jim Meyering  <jim@meyering.net>
48766
48767         Sync from coreutils.
48768
48769         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
48770
48771         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
48772
48773         * lib/modechange.c (mode_compile): Reject an invalid mode string
48774         that starts with an octal digit.  From Andreas Gruenbacher.
48775
48776         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
48777         and dup to open_safer and dup_safer, respectively.
48778         (openat_permissive): Fix typo in comment.
48779
48780         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
48781         "gettext.h"; either no longer needed or are guaranteed by openat.h.
48782         (_): Remove; no longer needed.
48783         (openat): Renamed from rpl_openat; no need for rpl_openat
48784         since openat.h renames openat for us.
48785         Replace most of the body with a call to openat_permissive,
48786         to avoid duplicate code.
48787         Port to (probably hypothetical) environments were mode_t is
48788         wider than int.
48789         (openat_permissive): Require mode arg, so that we can check
48790         types better.  Put it just after flags.  Change cwd failure
48791         indicator from pointer-to-bool to pointer-to-errno-value.
48792         All callers changed.
48793         Invoke openat_save_fail and/or openat_restore_fail if
48794         cwd_errno is null, so that openat can call us.
48795         (openat_permissive, fdopendir, fstatat, unlinkat):
48796         Simplify errno handling to avoid some duplicate code,
48797         as it's OK to set errno on success.
48798         * lib/openat.h: Revamp code so that function macros depend on
48799         __OPENAT_PREFIX only, not also on AT_FDCWD.
48800         (openat_ro): Remove.  Caller changed to use openat_permissive.
48801         (openat_permissive): Now a macro, if not a function.
48802         (openat_restore_fail, openat_save_fail): Now always functions,
48803         since mkdirat needs them even if __OPENAT_PREFIX is defined.
48804
48805         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
48806         and openat.c.
48807         * lib/mkdirat.c: Include openat-priv.h.
48808         Remove definitions of macros defined therein.
48809         * lib/openat.c: Likewise.
48810
48811         * lib/mkdirat.c (mkdirat): New file and function.
48812         * lib/openat.h (mkdirat): Declare.
48813
48814         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
48815
48816         * lib/openat.h (openat_permissive): Declare.
48817         (openat_ro): Define.
48818
48819         * lib/openat.c (EXPECTED_ERRNO): New macro.
48820         (openat_permissive): New function -- used in remove.c rewrite.
48821         (all functions): Set errno just before returning, only if there
48822         was an actual failure.
48823         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
48824
48825         Emulate openat-family functions using Linux's procfs, if possible.
48826         Idea and some code based on Ulrich Drepper's glibc changes.
48827
48828         * lib/openat.c: (BUILD_PROC_NAME): New macro.
48829         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
48830         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
48831         before falling back on save_cwd and restore_cwd.
48832         (fdopendir, fstatat, unlinkat): Likewise.
48833
48834         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
48835         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
48836
48837         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
48838         as second argument to va_arg.  Otherwise, some versions of gcc
48839         warn that `if this code is reached, the program will abort'.
48840
48841 2006-01-09  Jim Meyering  <jim@meyering.net>
48842
48843         Sync from coreutils.
48844         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
48845         Require openat-priv.h.
48846
48847 2006-01-09  Bruno Haible  <bruno@clisp.org>
48848
48849         * modules/strnlen (Include): Use strnlen.h.
48850
48851 2006-01-09  Bruno Haible  <bruno@clisp.org>
48852
48853         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
48854
48855 2006-01-09  Bruno Haible  <bruno@clisp.org>
48856
48857         * lib/sysexit_.h (EX_OK): New macro.
48858         Suggested by Martin Lambers <marlam@marlam.de>.
48859
48860 2006-01-09  Bruno Haible  <bruno@clisp.org>
48861
48862         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
48863         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
48864
48865 2006-01-09  Bruno Haible  <bruno@clisp.org>
48866
48867         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
48868         numbers.
48869
48870 2006-01-09  Bruno Haible  <bruno@clisp.org>
48871
48872         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
48873         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
48874         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
48875         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
48876
48877 2006-01-09  Bruno Haible  <bruno@clisp.org>
48878
48879         * build-aux/javacomp.sh.in: New file, moved from lib/.
48880         * modules/javacomp-script (Files): Update.
48881         (configure.ac): Add AC_CONFIG_FILES invocation.
48882         (EXTRA_DIST): Remove variable.
48883
48884         * build-aux/javaexec.sh.in: New file, moved from lib/.
48885         * modules/javaexec (Files): Update.
48886         (configure.ac): Add AC_CONFIG_FILES invocation.
48887         (EXTRA_DIST): Remove javaexec.sh.in.
48888
48889         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
48890         * modules/csharpcomp-script (Files): Update.
48891         (configure.ac): Add AC_CONFIG_FILES invocation.
48892         (EXTRA_DIST): Remove variable.
48893
48894         * build-aux/csharpexec.sh.in: New file, moved from lib/.
48895         * modules/csharpexec (Files): Update.
48896         (configure.ac): Add AC_CONFIG_FILES invocation.
48897         (EXTRA_DIST): Remove csharpexec.sh.in.
48898
48899 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
48900
48901         Sync from coreutils.
48902
48903         Add POSIX ACL support
48904         * lib/acl.h (copy_acl, set_acl): Add declarations.
48905         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
48906         systems other than Linux.
48907         (chmod_or_fchmod): New function: use fchmod when possible,
48908         and chmod otherwise.
48909         (file_has_acl): Add a POSIX ACL implementation, with a
48910         Linux-specific subcase.
48911         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
48912         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
48913         acls are unsupported.
48914         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
48915         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
48916         are unsupported.
48917
48918 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
48919
48920         Sync from coreutils.
48921         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
48922
48923 2006-01-07  Bruno Haible  <bruno@clisp.org>
48924
48925         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
48926         gl_EARLY.
48927
48928 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
48929
48930         * lib/strftime.c (tzname): Don't declare if it is already #defined.
48931         Problem reported for Mingw by Mark Junker.
48932
48933 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
48934
48935         * README: Gnulib normally doesn't generate a tarball.
48936
48937 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
48938
48939         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
48940         long int, not int, for nanosecond counts, so that people who are
48941         used to POSIX struct timespec won't be surprised.  Reported by Jim
48942         Meyering.
48943
48944 2005-12-28  Bruno Haible  <bruno@clisp.org>
48945
48946         * build-aux/config.rpath: Update from GNU gettext.
48947
48948 2005-12-16  Jim Meyering  <jim@meyering.net>
48949
48950         * modules/fprintftime: New module.
48951         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
48952
48953 2005-12-16  Jim Meyering  <jim@meyering.net>
48954
48955         * m4/fprintftime.m4: New file.
48956
48957 2005-12-16  Jim Meyering  <jim@meyering.net>
48958
48959         * lib/fprintftime.c, lib/fprintftime.h: New files.
48960
48961 2005-12-15  Simon Josefsson  <jas@extundo.com>
48962
48963         * modules/socklen (configure.ac): Fix M4 macro name, to align with
48964         new m4/socklen.m4.
48965
48966 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48967
48968         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
48969         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
48970
48971 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48972
48973         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
48974         * lib/argp-help.c (fill_in_uparams): Check if the constructed
48975         struct uparams is valid. Fall back to the default values if it is
48976         not.
48977
48978 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48979
48980         * modules/argp (Files): Add argp-pin.c
48981         (Depends-on): dirname
48982         (lib_SOURCES): Add argp-pin.c
48983
48984 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48985
48986         * m4/argp.m4:  Check if program_invocation_name and
48987         program_invocation_short_name are declared and define appropriate
48988         macros if they are not.
48989
48990 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48991
48992         * lib/argp-help.c (__argp_base_name): New function
48993         (__argp_short_program_name): Rewrite using __argp_base_name
48994         * lib/argp-namefrob.h: Define program_invocation_name and
48995         program_invocation_short_name if requested
48996         (__argp_base_name): Add prototype
48997         * lib/argp-parse.c (argp_def): Use gettext wrappers
48998         (argp_default_parser): Use __argp_base_name
48999         * lib/argp-pin.c: New file. Defines program_invocation_name and
49000         program_invocation_short_name on systems that lack them.
49001
49002 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
49003
49004         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
49005         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
49006         porting problem reported by Georg Schwarz in
49007         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
49008
49009 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
49010
49011         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
49012         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
49013         porting problem reported by Georg Schwarz in
49014         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
49015
49016 2005-12-05  Bruno Haible  <bruno@clisp.org>
49017
49018         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
49019         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
49020         Reported by Mark Junker <mjscod@gmx.de>.
49021
49022 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
49023
49024         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
49025         Use implementation from Albert Chin, with some
49026         comments/corrections by Stepan Kasal and myself.
49027
49028 2005-12-02  Bruno Haible  <bruno@clisp.org>
49029
49030         * gnulib-tool (func_import): Accept GPLed build tool modules when
49031         --lgpl is given.
49032         * modules/csharpcomp-script: New file.
49033         * modules/csharpcomp: Depend on it.
49034         * modules/javacomp-script: New file.
49035         * modules/javacomp: Depend on it.
49036         Suggested by Simon Josefsson.
49037
49038 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
49039
49040         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
49041         statement, to work around an HP-UX 10.20 compiler bug reported by
49042         Peter O'Gorman.
49043
49044 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
49045
49046         * modules/savedir (Depends-on): Add openat.
49047
49048 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
49049
49050         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
49051         (uintmax_t) [defined uintmax_t]: Do not declare.
49052         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
49053         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
49054         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
49055         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
49056         sake of portability to weird hosts that C allows (though we don't
49057         know of any practical examples).
49058
49059         * lib/savedir.h (fdsavedir): New decl.
49060         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
49061         contains most of the former guts of savedir.
49062         (savedir): Use savedirstream.
49063         Include "openat.h".
49064
49065 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
49066
49067         * modules/obstack (Files): Add m4/ulonglong.m4.
49068         Problem reported by Davide Angelocola.
49069
49070 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
49071
49072         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
49073         coreutils no longer futzes with rounding modes.
49074
49075 2005-11-14  Jim Meyering  <jim@meyering.net>
49076
49077         * lib/mkstemp-safer.c: Include <config.h>, required for possible
49078         replacement of mkstemp.
49079
49080 2005-11-10  Simon Josefsson  <jas@extundo.com>
49081
49082         * lib/readline.c: Remove EOL.
49083
49084 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
49085
49086         * modules/gethrxtime (Depends-on): Add gettime.
49087
49088 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
49089
49090         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
49091         or gettimeofday; no longer needed.
49092
49093 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
49094
49095         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
49096         time business.
49097         (gethrxtime) [! (HAVE_NANOUPTIME
49098         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
49099         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
49100         our own approximation.
49101
49102 2005-11-08  Eric Blake  <ebb9@byu.net>
49103
49104         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
49105
49106 2005-11-08  Eric Blake  <ebb9@byu.net>
49107
49108         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
49109
49110 2005-11-04  Bruno Haible  <bruno@clisp.org>
49111
49112         * gnulib-tool: Implement --update mode.
49113
49114 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
49115
49116         Fix porting problem reported by Theodoros V. Kalamatianos.
49117         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
49118         Don't assume that futimes failing means we must fail.
49119
49120 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
49121
49122         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
49123         variables to suggest the intended function of the PATH_MAX check.
49124
49125 2005-10-30  Kean Johnston  <jkj@sco.com>
49126
49127         Trivial changes to support SCO systems.
49128         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
49129         as PATH_MAX.
49130         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
49131         where __ptr is null when no I/O is pending.
49132
49133 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
49134
49135         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
49136         leave errno alone.  Problem reported by Dmitry V. Levin.
49137
49138 2005-10-28  Simon Josefsson  <jas@extundo.com>
49139
49140         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
49141         Test more.
49142
49143         * tests/test-gc-md2.c, tests/test-md2.c: New files.
49144
49145         * modules/md2, modules/md2-tests: New files.
49146
49147 2005-10-28  Simon Josefsson  <jas@extundo.com>
49148
49149         * m4/inet_ntop.m4: More tests.
49150
49151         * m4/gc-md2.m4, md2.m4: New file.
49152
49153 2005-10-28  Simon Josefsson  <jas@extundo.com>
49154
49155         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
49156         "restrict" keywords, as per POSIX.  Protect the function
49157         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
49158         Don't use K&R prototypes.  Check the sprintf return values.
49159         Re-define EAFNOSUPPORT if not present.  Indent.
49160
49161         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
49162         suggested by Bruno Haible <bruno@clisp.org>.
49163
49164         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
49165
49166         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
49167
49168         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
49169         libgcrypt).
49170
49171         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
49172
49173         * lib/md2.h, lib/md2.c: New files.
49174
49175 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
49176
49177         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
49178         errno alone.  Problem reported by Frederic Jolliton.
49179
49180 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
49181
49182         * modules/verify (License): Change from GPL to LGPL.  This is a
49183         tiny module and there are apparently near-equivalents that are
49184         under the BSD license.
49185
49186 2005-10-24  Simon Josefsson  <jas@extundo.com>
49187
49188         * modules/sha1: Relicense to LGPL.
49189
49190 2005-10-24  Simon Josefsson  <jas@extundo.com>
49191
49192         * lib/md4.h: Shrink buffer size, now that we changed the type.
49193
49194 2005-10-23  Simon Josefsson  <jas@extundo.com>
49195
49196         * gnulib-tool (func_import): Fix --tests-base.
49197
49198 2005-10-22  Simon Josefsson  <jas@extundo.com>
49199
49200         * modules/arcfour (Depends-on): Need stdint.
49201
49202 2005-10-22  Simon Josefsson  <jas@extundo.com>
49203
49204         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
49205         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
49206
49207 2005-10-22  Simon Josefsson  <jas@extundo.com>
49208
49209         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
49210         suggested by Bruno Haible <bruno@clisp.org>.
49211
49212 2005-10-22  Simon Josefsson  <jas@extundo.com>
49213
49214         * lib/crc.h: Include stddef.h, for size_t.
49215
49216 2005-10-22  Simon Josefsson  <jas@extundo.com>
49217
49218         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
49219         arcfour_context struct (simplify test vector testing in GNU
49220         Shishi).
49221
49222 2005-10-21  Simon Josefsson  <jas@extundo.com>
49223
49224         * modules/des, modules/des-tests: New files.
49225
49226         * modules/gc-des, modules/gc-des-tests: New files.
49227
49228         * tests/test-des.c, tests/test-gc-des.c: New file.
49229
49230 2005-10-21  Simon Josefsson  <jas@extundo.com>
49231
49232         * modules/arctwo, modules/arctwo-tests: New files.
49233
49234         * tests/test-arctwo.c: New file.
49235
49236         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
49237
49238         * tests/test-gc-arctwo.c: New file.
49239
49240 2005-10-21  Simon Josefsson  <jas@extundo.com>
49241
49242         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
49243         Bruno Haible <bruno@clisp.org>.
49244
49245         * m4/gc-des.m4: New file.
49246
49247 2005-10-21  Simon Josefsson  <jas@extundo.com>
49248
49249         * m4/arctwo.m4: New file.
49250
49251         * m4/gc-arctwo.m4: New file.
49252
49253 2005-10-21  Simon Josefsson  <jas@extundo.com>
49254
49255         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
49256         block.
49257
49258 2005-10-21  Simon Josefsson  <jas@extundo.com>
49259
49260         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
49261         <bruno@clisp.org>.
49262
49263         * lib/hmac-sha1.c (hmac_sha1): Likewise.
49264
49265         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
49266         Bruno Haible <bruno@clisp.org>.
49267
49268         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
49269         <bruno@clisp.org>.
49270
49271 2005-10-21  Simon Josefsson  <jas@extundo.com>
49272
49273         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
49274
49275 2005-10-21  Simon Josefsson  <jas@extundo.com>
49276
49277         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
49278
49279 2005-10-21  Simon Josefsson  <jas@extundo.com>
49280
49281         * lib/des.h, lib/des.c: New files.
49282
49283         * lib/gc-gnulib.c: Support DES.c
49284
49285 2005-10-21  Simon Josefsson  <jas@extundo.com>
49286
49287         * lib/arctwo.h, lib/arctwo.c: New files.
49288
49289         * lib/gc-gnulib.c: Support ARCTWO.
49290
49291 2005-10-21  Simon Josefsson  <jas@extundo.com>
49292
49293         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
49294         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49295
49296 2005-10-21  Simon Josefsson  <jas@extundo.com>
49297
49298         * gnulib-tool (func_import, func_create_testdir): Define automake
49299         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
49300         Makefile.am snippet),
49301         suggested by Bruno Haible <bruno@clisp.org>.
49302
49303         * modules/gc (Makefile.am): Use it.
49304
49305 2005-10-21  Bruno Haible  <bruno@clisp.org>
49306
49307         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
49308         patch.
49309
49310 2005-10-19  Simon Josefsson  <jas@extundo.com>
49311
49312         * tests/test-gc-rijndael.c: New file.
49313
49314         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
49315
49316 2005-10-19  Simon Josefsson  <jas@extundo.com>
49317
49318         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
49319         interface too.
49320
49321 2005-10-19  Simon Josefsson  <jas@extundo.com>
49322
49323         * tests/test-gc-arcfour.c: New file.
49324
49325         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
49326
49327 2005-10-19  Simon Josefsson  <jas@extundo.com>
49328
49329         * modules/gc-md4, modules/gc-md4-tests: New file.
49330
49331         * tests/test-gc-md4.c: New file.
49332
49333 2005-10-19  Simon Josefsson  <jas@extundo.com>
49334
49335         * m4/gc-md4.m4: New file.
49336
49337 2005-10-19  Simon Josefsson  <jas@extundo.com>
49338
49339         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
49340         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
49341         <kasal@ucw.cz>.
49342
49343 2005-10-19  Simon Josefsson  <jas@extundo.com>
49344
49345         * m4/gc-arcfour.m4: New file.
49346
49347         * m4/gc-rijndael.m4: New file.
49348
49349 2005-10-19  Simon Josefsson  <jas@extundo.com>
49350
49351         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
49352
49353 2005-10-19  Simon Josefsson  <jas@extundo.com>
49354
49355         * lib/gc-gnulib.c: Support ARCFOUR.
49356
49357 2005-10-19  Simon Josefsson  <jas@extundo.com>
49358
49359         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
49360         support.
49361
49362         * lib/gc.h: Add ECB enum type.
49363
49364         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
49365
49366 2005-10-18  Simon Josefsson  <jas@extundo.com>
49367
49368         * tests/test-md5.c: New file.
49369
49370         * modules/md5-tests: New file.
49371
49372 2005-10-18  Simon Josefsson  <jas@extundo.com>
49373
49374         * tests/test-md4.c: New file.
49375
49376         * modules/md4, modules/md4-tests: New files.
49377
49378 2005-10-18  Simon Josefsson  <jas@extundo.com>
49379
49380         * m4/md4.m4: New file.
49381
49382 2005-10-18  Simon Josefsson  <jas@extundo.com>
49383
49384         * lib/md4.h, lib/md4.c: New files, based on md5.?.
49385
49386 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
49387
49388         * gnulib-tool (func_create_testdir): Omit the second check whether
49389         BUILT_SOURCES in nonempty.
49390
49391 2005-10-17  Simon Josefsson  <jas@extundo.com>
49392
49393         * tests/test-rijndael.c: New file.
49394
49395 2005-10-17  Simon Josefsson  <jas@extundo.com>
49396
49397         * modules/sha1: Depend on stdint instead of md5.
49398
49399         * modules/md5: Depend on stdint, remove uint32_t.
49400
49401 2005-10-17  Simon Josefsson  <jas@extundo.com>
49402
49403         * modules/gc-sha1-tests: New file.
49404
49405         * tests/test-gc-sha1.c: New file.
49406
49407 2005-10-17  Simon Josefsson  <jas@extundo.com>
49408
49409         * m4/md5.m4: Remove call to uint32_t.m4.
49410
49411 2005-10-17  Simon Josefsson  <jas@extundo.com>
49412
49413         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
49414
49415         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
49416         md5.h.
49417
49418         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
49419
49420         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
49421
49422 2005-10-17  Simon Josefsson  <jas@extundo.com>
49423
49424         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
49425
49426 2005-10-17  Simon Josefsson  <jas@extundo.com>
49427
49428         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
49429
49430 2005-10-17  Simon Josefsson  <jas@extundo.com>
49431
49432         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
49433
49434         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
49435
49436 2005-10-17  Bruno Haible  <bruno@clisp.org>
49437
49438         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
49439         that it can also be used in a test.
49440
49441 2005-10-16  Bruno Haible  <bruno@clisp.org>
49442
49443         * gnulib-tool (func_emit_tests_Makefile_am): Also define
49444         TESTS_ENVIRONMENT, so that individual tests can augment it.
49445
49446         * gnulib-tool (func_create_testdir): Use an intermediate target for
49447         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
49448         macros, like $(ALLOCA_H), which cannot be passed through the command
49449         line.
49450
49451 2005-10-15  Simon Josefsson  <jas@extundo.com>
49452
49453         * modules/rijndael-tests: New file.
49454
49455         * modules/rijndael: New file.
49456
49457 2005-10-15  Simon Josefsson  <jas@extundo.com>
49458
49459         * m4/rijndael.m4: New file.
49460
49461 2005-10-15  Simon Josefsson  <jas@extundo.com>
49462
49463         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
49464
49465         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
49466
49467 2005-10-14  Simon Josefsson  <jas@extundo.com>
49468
49469         * tests/test-arcfour.c: New file.
49470
49471         * modules/arcfour, modules/arcfour-tests: New files.
49472
49473 2005-10-14  Simon Josefsson  <jas@extundo.com>
49474
49475         * m4/arcfour.m4: New file.
49476
49477 2005-10-14  Simon Josefsson  <jas@extundo.com>
49478
49479         * lib/arcfour.h, lib/arcfour.c: New files.
49480
49481 2005-10-14  Roland McGrath  <roland@redhat.com>
49482
49483         Import from libc.  [BZ #1331]
49484         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
49485         macro argument.
49486         Reported by Matej Vela <vela@debian.org>.
49487
49488 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
49489
49490         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
49491         include <wchar.h>; no longer needed.
49492
49493 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
49494
49495         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
49496
49497 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
49498         and  Ulrich Drepper  <drepper@redhat.com>
49499
49500         Import from libc.
49501         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
49502         instead of inline stream orientation test and two separate
49503         function calls.  Pay no attention to USE_IN_LIBIO.
49504
49505 2005-10-13  Simon Josefsson  <jas@extundo.com>
49506
49507         * modules/gc-hmac-md5-tests: New file.
49508
49509         * tests/test-gc-hmac-sha1.c: New file.
49510
49511         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
49512
49513         * modules/gc-hmac-md5-tests: New file.
49514
49515         * tests/test-gc-md5.c: New file.
49516
49517         * modules/gc-md5-tests: New file.
49518
49519 2005-10-13  Simon Josefsson  <jas@extundo.com>
49520
49521         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
49522         Move memory allocation outside of loop.
49523
49524 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
49525
49526         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
49527         intermediate directory is in a read-only file system.  Problem
49528         reported by Eric Blake.
49529
49530 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
49531
49532         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
49533
49534 2005-10-12  Simon Josefsson  <jas@extundo.com>
49535
49536         * tests/test-hmac-sha1.c: New file.
49537
49538         * modules/hmac-sha1-tests: New file.
49539
49540         * modules/hmac-sha1: New file.
49541
49542 2005-10-12  Simon Josefsson  <jas@extundo.com>
49543
49544         * modules/gc-sha1: New file.
49545
49546 2005-10-12  Simon Josefsson  <jas@extundo.com>
49547
49548         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
49549
49550         * tests/test-gc-pbkdf2-sha1.c: New file.
49551
49552 2005-10-12  Simon Josefsson  <jas@extundo.com>
49553
49554         * modules/gc-md5, modules/gc-hmac-md5: New files.
49555
49556         * modules/gc (Files): Remove md5, memxor and hmac files.
49557
49558 2005-10-12  Simon Josefsson  <jas@extundo.com>
49559
49560         * m4/gc-pbkdf2-sha1.m4: New file.
49561
49562         * m4/gc-hmac-sha1.m4: New file.
49563
49564         * m4/gc-sha1: New file.
49565
49566         * m4/hmac-sha1.m4: New file.
49567
49568 2005-10-12  Simon Josefsson  <jas@extundo.com>
49569
49570         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
49571
49572         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
49573
49574 2005-10-12  Simon Josefsson  <jas@extundo.com>
49575
49576         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
49577         suggested by Bruno Haible <bruno@clisp.org>.
49578
49579 2005-10-12  Simon Josefsson  <jas@extundo.com>
49580
49581         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
49582
49583 2005-10-12  Simon Josefsson  <jas@extundo.com>
49584
49585         * lib/gc-pbkdf2-sha1.c: New file.
49586
49587         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
49588
49589 2005-10-12  Simon Josefsson  <jas@extundo.com>
49590
49591         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
49592
49593         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
49594
49595 2005-10-12  Simon Josefsson  <jas@extundo.com>
49596
49597         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
49598         GC_USE_HMAC_MD5, respectively.
49599
49600         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
49601         (gc_md5): Fix typo.
49602
49603         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
49604
49605         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
49606
49607         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
49608
49609 2005-10-12  Bruno Haible  <bruno@clisp.org>
49610
49611         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
49612         Reported by Stepan Kasal <kasal@ucw.cz>.
49613
49614 2005-10-11  Simon Josefsson  <jas@extundo.com>
49615
49616         * tests/test-crc.c: New file.
49617
49618         * modules/crc, modules/crc-tests: New files.
49619
49620 2005-10-11  Simon Josefsson  <jas@extundo.com>
49621
49622         * m4/crc.m4: New file.
49623
49624 2005-10-11  Simon Josefsson  <jas@extundo.com>
49625
49626         * lib/gc.h: Add gc_hash and gc_hash_buffer.
49627
49628         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
49629
49630         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
49631
49632 2005-10-11  Simon Josefsson  <jas@extundo.com>
49633
49634         * lib/crc.h, lib/crc.c: New files.
49635
49636         * lib/gc.h (gc_hash_buffer): Add doc.
49637
49638 2005-10-11  Bruno Haible  <bruno@clisp.org>
49639
49640         * modules/c-strcasestr: New file.
49641         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
49642
49643 2005-10-11  Bruno Haible  <bruno@clisp.org>
49644
49645         * modules/c-strcase: New file.
49646         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
49647
49648 2005-10-11  Bruno Haible  <bruno@clisp.org>
49649
49650         * lib/strcasecmp.c: Include limits.h.
49651         (strcasecmp): Avoid integer overflow on exotic platforms.
49652         * lib/strncasecmp.c: Include limits.h.
49653         (strncasecmp): Avoid integer overflow on exotic platforms.
49654         Reported by Paul Eggert.
49655
49656 2005-10-11  Bruno Haible  <bruno@clisp.org>
49657
49658         * lib/c-strcasestr.h: New file, from GNU gettext.
49659         * lib/c-strcasestr.c: New file, from GNU gettext.
49660
49661 2005-10-11  Bruno Haible  <bruno@clisp.org>
49662
49663         * lib/c-strcase.h: New file, from GNU gettext.
49664         * lib/c-strcasecmp.c: New file, from GNU gettext.
49665         * lib/c-strncasecmp.c: New file, from GNU gettext.
49666
49667 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
49668
49669         * modules/mempcpy (License): GPL -> LGPL.
49670         * modules/strchrnul (License): Likewise.
49671         * modules/sysexits (License): Likewise.
49672
49673 2005-10-08  Simon Josefsson  <jas@extundo.com>
49674
49675         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
49676
49677 2005-10-07  Simon Josefsson  <jas@extundo.com>
49678
49679         * m4/memxor.m4: Remove gl_C_RESTRICT call.
49680
49681 2005-10-06  Simon Josefsson  <jas@extundo.com>
49682
49683         * tests/test-hmac-md5.c: New file.
49684
49685         * modules/hmac-md5-tests: New file.
49686
49687         * modules/hmac-md5: New file.
49688
49689 2005-10-06  Simon Josefsson  <jas@extundo.com>
49690
49691         * m4/hmac-md5.m4: New file.
49692
49693         * m4/memxor.m4: Require gl_C_RESTRICT.
49694
49695 2005-10-06  Simon Josefsson  <jas@extundo.com>
49696
49697         * lib/memxor.c (memxor): Avoid casts and warnings.
49698
49699 2005-10-06  Simon Josefsson  <jas@extundo.com>
49700
49701         * lib/hmac-md5.c: New file.
49702
49703         * lib/hmac.h: New file.
49704
49705 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
49706
49707         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
49708         promotes to int, not unsigned int, to catch the AIX 5.3
49709         compiler bug.
49710
49711 2005-10-05  Simon Josefsson  <jas@extundo.com>
49712
49713         * modules/memxor: New file.
49714
49715         * modules/iconv (Files): Move config.rpath to havelib, it is used
49716         there.
49717
49718         * modules/havelib (Files): Add config.rpath.
49719
49720 2005-10-05  Simon Josefsson  <jas@extundo.com>
49721
49722         * m4/memxor.m4: New file.
49723
49724 2005-10-05  Simon Josefsson  <jas@extundo.com>
49725
49726         * lib/memxor.c (memxor): Fix compiler error.
49727
49728         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
49729         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
49730
49731         * lib/memxor.h, lib/memxor.c: New files.
49732
49733         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
49734         we assume all systems have it, suggested by Jim Meyering
49735         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
49736         any systems lack sys/socket.h; mingw32 is known to lack it, but we
49737         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
49738         same reasons.
49739
49740 2005-10-05  Simon Josefsson  <jas@extundo.com>
49741
49742         * config/srclist.txt: Add glibc bug 1423 for md5.h.
49743
49744 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
49745
49746         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
49747         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
49748         needed, since the source code now assumes these .h files.
49749
49750 2005-10-05  Derek Price  <derek@ximbiot.com>
49751
49752         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
49753
49754 2005-10-05  Bruno Haible  <bruno@clisp.org>
49755
49756         * modules/stdint (License): Change to LGPL.
49757
49758 2005-10-04  Simon Josefsson  <jas@extundo.com>
49759
49760         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
49761         D. Baushke" <mdb@gnu.org>.
49762
49763 2005-10-04  Bruno Haible  <bruno@clisp.org>
49764
49765         * lib/verify.h (verify_true): Provide alternative definition for C++.
49766
49767 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
49768
49769         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
49770         (SSIZE_MAX): New macro, if not already defined.
49771         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
49772         than 2 GiB.
49773
49774 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49775
49776         Sync from coreutils.
49777         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
49778         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
49779         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
49780         ULLONG_MAX doesn't work with 2.7.2.1.
49781
49782 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49783
49784         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
49785         From Ben Pfaff.
49786
49787         * modules/exclude (Depends-on): Depend on verify.
49788         * modules/strtoimax (Depends-on): Likewise.
49789         * modules/utimecmp (Depends-on): Likewise.
49790
49791 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49792
49793         * lib/exclude.c: Include verify.h.
49794         (verify): Remove.  All callers changed to use verify.h's version.
49795         * lib/strtoimax.c: Likewise.
49796         * lib/utimecmp.c: Likewis.e
49797
49798         Sync from coreutils.
49799         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
49800         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
49801         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
49802         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
49803         bother returning ENOSYS if settimeofday or stime fails; just let
49804         them return whatever errno they want to return.
49805         * lib/utimens.c: Include unistd.h, for dup2.
49806         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
49807         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
49808
49809 2005-10-02  Jim Meyering  <jim@meyering.net>
49810
49811         Sync from coreutils.
49812         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
49813         from glibc-2.2.5 that fails for read-only files.
49814
49815 2005-10-02  Jim Meyering  <jim@meyering.net>
49816
49817         Sync from coreutils.
49818         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
49819         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
49820         `#if HAVE_CONFIG_H'.
49821         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
49822         Remove AT_FDCWD test.
49823         Do not consume the fd unless successful.
49824         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
49825         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
49826         block, so that we don't even try to compile it if settimeofday is
49827         available.  This works around a compilation failure on OSF1 V5.1,
49828         due to stime requiring a `long int*' while tv_sec is `int'.
49829
49830 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
49831
49832         Sync from coreutils.
49833         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
49834         against `yes', rather than just testing for nonempty.
49835
49836 2005-10-01  Simon Josefsson  <jas@extundo.com>
49837
49838         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
49839         and Darwin.
49840
49841         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
49842         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
49843         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
49844         freeaddrinfo and gai_strerror are declared by the POSIX headers.
49845         Check if struct addrinfo is declared.
49846
49847 2005-10-01  Simon Josefsson  <jas@extundo.com>
49848
49849         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
49850         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
49851         AI_* and EAI_* definitions.  Protect function declarations.
49852
49853 2005-10-01  Jim Meyering  <jim@meyering.net>
49854
49855         Sync from coreutils.
49856
49857         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
49858         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
49859         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
49860         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
49861         in the inet and nsl libraries.  Required on Solaris 5.7.
49862
49863 2005-10-01  Jim Meyering  <jim@meyering.net>
49864
49865         Sync from coreutils.
49866         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
49867         in the inet and nsl libraries.  Required on Solaris 5.7.
49868
49869 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
49870
49871         * lib/getdelim.c (getdelim): Remove unused variables.
49872
49873 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
49874
49875         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
49876         so that the code works even with ancient cpp.  Portability problem
49877         with GCC 2.7.2.1 reported by Thomas M.Ott.
49878
49879 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
49880
49881         * modules/regex (Depends-on): Add strcase.
49882
49883         * modules/gethostname (Licence): Change from GPL to LGPL, since
49884         gethostname.c is a trivial implementation of a standard library
49885         function.
49886         * modules/poll (License): Change from GPL to LGPL, since it's
49887         derived from LGPL code.
49888
49889 2005-09-27  Jim Meyering  <jim@meyering.net>
49890
49891         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
49892         HAVE_CONFIG_H.
49893
49894         * lib/intprops.h (signed_type_or_expr__): Define.
49895         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
49896         for unsigned types.
49897
49898 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
49899
49900         * lib/verify.h (verify_expr): Remove, replacing with:
49901         (verify_true): New macro that returns true instead of void.
49902         (verify_type__): Remove.
49903         (verify): Use verify_true rather than verify_type__.
49904
49905 2005-09-26  Bruno Haible  <bruno@clisp.org>
49906
49907         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
49908         is necessary.
49909         (lib_SOURCES): Remove mbchar.c.
49910         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
49911         (Files): Add m4/mbrtowc.m4.
49912         * modules/mbiter: Likewise.
49913         * modules/mbuiter: Likewise.
49914
49915 2005-09-26  Bruno Haible  <bruno@clisp.org>
49916
49917         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
49918         compile mbchar.c if they are not both present.
49919         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
49920         * m4/mbiter.m4 (gl_MBITER): Likewise.
49921         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
49922         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
49923         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
49924
49925 2005-09-25  Jim Meyering  <jim@meyering.net>
49926
49927         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
49928         also uses socklen_t.
49929
49930 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
49931
49932         * lib/utimens.c (ENOSYS): Define if not already defined.
49933         (futimens): Support having a null PATH if the file descriptor
49934         is nonnegative.
49935
49936         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
49937         Remove.
49938         (__attribute): Define to empty unless GCC 3.1 or later.
49939         This works around a core dump on OpenBSD 3.4, which has GCC
49940         2.95.3, which dumps core when given __attribute__(()).  It also
49941         simplifies other tests, since we really don't want to bother with
49942         worrying about which ancient version of GCC supported what.
49943         Original problem reported by Yoann Vandoorselaere, with part of
49944         the fix suggested by Derek Price.
49945
49946 2005-09-24  Jim Meyering  <jim@meyering.net>
49947
49948         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
49949         so we can once again use a positive bitfield width of 1 -- now we
49950         don't have to explain why we were using a bitfield width of 2.
49951
49952 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
49953
49954         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
49955         and similarly for the other external symbols.  Problem reported
49956         by James Gallager.
49957
49958         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
49959         bug reported by Jim Meyering.
49960
49961         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
49962         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
49963         not needed, since socklen is a prerequisite module.
49964
49965 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
49966
49967         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
49968         Problem reported by Eric Blake.
49969         (getaddrinfo): Initialize se so that it's not garbage.
49970         Redo internal storage allocation so that it doesn't make unportable
49971         assumptions about alignment.
49972         Fix a memory leak.
49973
49974         * lib/utimens.c (futimens): Use futimesat if available.
49975         Prefer it to futimes since it doesn't have the futimes bug.
49976
49977         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
49978         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
49979         Instead, declare a function that returns a pointer to an array,
49980         and use verify_type__ to declare the size of the array.
49981         Problem and germ of a solution reported by Bruno Haible.
49982         (verify_type__): Use 2, not 1, for bitfield size, to avoid
49983         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
49984
49985 2005-09-23  Jim Meyering  <jim@meyering.net>
49986
49987         Sync from coreutils.
49988         Correct build failure (socklen_t not defined) on at least
49989         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
49990         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
49991
49992 2005-09-23  Jim Meyering  <jim@meyering.net>
49993
49994         * modules/getaddrinfo (Depends-on): Add socklen.
49995
49996 2005-09-23  Bruno Haible  <bruno@clisp.org>
49997
49998         * tests/test-verify.c: New file.
49999
50000 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
50001
50002         Sync from coreutils.
50003
50004         * modules/argmatch (Depends-on): Add verify.
50005         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
50006         unistd-safer.
50007         * modules/save-cwd (Depends-on): Likewise.
50008
50009         * modules/openat (Files): Add lib/openat-die.c.
50010         (Depends-on): Remove error, exitfail.
50011         Add dirname.
50012
50013         * modules/verify: New file.
50014         * MODULES.html.sh (Diagnostics <assert.h>): New section,
50015         with "verify" module.
50016
50017 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
50018
50019         Sync from coreutils.
50020
50021         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
50022         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
50023         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
50024         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
50025         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
50026         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
50027         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
50028         Don't bother checking for string.h, stdlib.h, unistd.h.
50029         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
50030         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
50031         module's job.
50032         * m4/jm-macros.m4 (gl_MACROS): Likewise.
50033         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
50034
50035         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
50036         (gl_GETDATE): Use it.
50037
50038         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
50039
50040 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
50041
50042         Sync from coreutils.
50043
50044         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
50045         stat-time.h.
50046         * lib/argmatch.h: Include verify.h
50047         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
50048         (ARGMATCH_ASSERT): Remove; unused.
50049         * lib/canonicalize.c: Assume STDC_HEADERS.
50050         * lib/exclude.c: Include "strcase.h".
50051         * lib/regex_internal.h [!defined _LIBC]: Likewise.
50052         * lib/getusershell.c: Include stdio--.h rather than stdio.h
50053         and stdio-safer.h.
50054         (getusershell): Call fopen, not fopen_safer.
50055         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
50056         Do not include unistd-safer.h.
50057         (save_cwd): Don't call fd_safer; no longer needed
50058         now that we include fcntl--.h.
50059
50060         * lib/getdate.y (relative_time): New type.
50061         (RELATIVE_TIME_0): New constant.
50062         (parser_control): Use relative_time instead of doing it ourselves.
50063         (%union): Add new relative_time rel member.
50064         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
50065         Now typeless.
50066         (relunit, relunit_snumber): Now of type rel.
50067         (zone, rel, relunit, get_date): Adjust to above changes.
50068
50069         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
50070         Do not include unistd-safer.h.
50071         (getloadavg): Don't call fd_safer; no longer needed
50072         now that we include fcntl--.h.
50073
50074         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
50075         (make_dir_parents): Treat ENOSYS like EEXIST.
50076
50077         Improve quality of diagnostics on restore_cwd failure.
50078         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
50079         (make_dir_parents): Last arg is now int * (for errno), not bool *.
50080         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
50081         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
50082         each time through the loop.  Do not diagnose restore_cwd failure;
50083         that is the caller's job (and perhaps the caller does not care).
50084
50085         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
50086         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
50087         If the file already exists but is not a directory, don't bother
50088         to try to make its parents.
50089         Close potential file descriptor leak if we can't chdir("/") (!).
50090         Don't always return true if chdir($PWD) fails; return true only
50091         if the requested action was done successfully (except for the
50092         chdir($PWD)).
50093         Don't log final directory unless we actually made it.
50094         Refactor to avoid duplicate code to fix up permissions.
50095         Don't attempt to fix up parent permissions if chdir($PWD) fails.
50096
50097         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
50098         to make it a bit faster and (I hope) clearer.
50099         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
50100         Fix bug in formats like %2N.
50101
50102         * lib/verify.h: New file.
50103
50104 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
50105
50106         Sync from coreutils.
50107         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
50108
50109 2005-09-22  Jim Meyering  <jim@meyering.net>
50110
50111         Sync from coreutils.
50112
50113         * m4/lstat.m4 (gl_FUNC_LSTAT):
50114         Use AC_LIBSOURCES to require lstat.c and lstat.h.
50115         Remove obsolete comment.
50116         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
50117         * m4/xstrtod.m4: Likewise.
50118
50119         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
50120
50121 2005-09-22  Jim Meyering  <jim@meyering.net>
50122
50123         Sync from coreutils.
50124
50125         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
50126
50127         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
50128         the .tm_year member, since otherwise gcc-4.0 would now warn about
50129         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
50130
50131         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
50132         order to avoid an unsuppressible warning from gcc on 64-bit systems.
50133
50134         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
50135         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
50136         when run in a time zone for which daylight savings time is in effect
50137         for the starting date.
50138
50139         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
50140         stop us from restricting permissions of just-created absolute-named
50141         directories.
50142         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
50143         to restore initial working directory.
50144         * lib/mkdir-p.c (make_dir_parents): New parameter:
50145         different_working_dir, to tell caller if/when we change the working
50146         directory and are unable to return to the initial one.
50147         * lib/mkdir-p.h (make_dir_parents): Update prototype.
50148         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
50149         `return false'.  This fixes a bug introduced on 2004-07-30.
50150
50151         * lib/openat.c (fdopendir): Be sure to close the supplied
50152         file descriptor before returning.  This makes our replacement
50153         implementation a little closer to Solaris's, where fdopendir
50154         ties the file descriptor to the returned DIR* pointer.
50155         * lib/openat.c (unlinkat): New function.
50156         * lib/openat.h (unlinkat): Add prototype.
50157         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
50158         (openat_restore_fail): Rename from openat_restore_die.
50159         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
50160
50161         Provide an alternative to exiting immediately upon save_cwd or
50162         restore_cwd failure.  Now, an application can arrange e.g.,
50163         to perform a longjump in that case.
50164         * lib/openat.c: Include dirname.h.
50165         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
50166         (rpl_openat, fdopendir, fstatat): Call openat_save_die
50167         and openat_restore_die rather than calling error directly.
50168         Don't include "error.h" or "exitfail.h"; they're no longer needed.
50169
50170         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
50171         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
50172         define.
50173
50174         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
50175         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
50176                             int utc, int nanoseconds);
50177         Background:
50178         date should not have to allocate a megabyte of virtual memory to
50179         handle a format argument like +%1048575T.  When implemented with
50180         strftime, it must allocate such a buffer, use strftime to fill it
50181         in, print it, then free it.
50182         With fprintftime, it simply prints everything and exits.
50183         With no need for memory allocation, that's one fewer way to fail.
50184         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
50185         optional field width, not before, so we accept %9:z, not %:9z.
50186         (my_strftime): Be sure to use L_('x') for literals.
50187
50188         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
50189         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
50190         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
50191         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
50192         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
50193         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
50194         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
50195         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
50196         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
50197         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
50198         * lib/xgethostname.c, lib/xreadlink.c:
50199         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
50200
50201         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
50202         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
50203         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
50204         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
50205         and don't include <sys/file.h>).
50206
50207 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
50208
50209         Sync from coreutils.
50210
50211         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
50212         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
50213         [!LDAV_DONE]: Avoid unused variable warning.
50214
50215 2005-09-21  Bruno Haible  <bruno@clisp.org>
50216
50217         * lib/unicodeio.h (unicode_to_mb): New declaration.
50218
50219 2005-09-20  Derek Price  <derek@ximbiot.com>
50220
50221         * lib/getaddrinfo.c: Don't include <netdb.h> included from
50222         getaddrinfo.h.
50223
50224 2005-09-20  Bruno Haible  <bruno@clisp.org>
50225
50226         * gnulib-tool: Remove trailing slashes from the values specified for
50227         --source-base, --m4-base, --tests-base, --aux-dir.
50228         Suggested by Simon Josefsson <jas@extundo.com>.
50229
50230 2005-09-20  Bruno Haible  <bruno@clisp.org>
50231
50232         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
50233         func_modules_to_filelist, func_import, func_create_testdir): Make all
50234         sorting results locale-independent, so that gnulib-cache.m4 doesn't
50235         change when gnulib-tool is invoked in a different locale.
50236
50237 2005-09-19  Simon Josefsson  <jas@extundo.com>
50238
50239         * m4/socklen.m4: Fix typo.
50240
50241 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50242
50243         Use a consistent style for including <config.h>.
50244         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
50245         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
50246         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
50247         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
50248         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
50249         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
50250         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
50251         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
50252         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
50253         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
50254         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
50255         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
50256         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
50257         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
50258         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
50259         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
50260         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
50261         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
50262         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
50263         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
50264         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
50265         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
50266         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
50267         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
50268         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
50269         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
50270         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
50271         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
50272         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
50273         lib/xstrtoumax.c, lib/yesno.c:
50274         Standardize inclusion of config.h.
50275         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
50276         lib/inttostr.h:  Removed inclusion of config.h from header files.
50277         * lib/inttostr.c:  Adjusted in-tree users.
50278         * lib/timespec.h: Remove superfluous warning to include config.h.
50279         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
50280         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
50281         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
50282         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
50283         config.h with HAVE_CONFIG_H.
50284
50285 2005-09-19  Jim Meyering  <jim@meyering.net>
50286
50287         * modules/pathmax (License): Change to LGPL.
50288
50289 2005-09-19  Derek Price  <derek@ximbiot.com>
50290
50291         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
50292
50293 2005-09-19  Bruno Haible  <bruno@clisp.org>
50294
50295         * gnulib-tool (import): Provide default for --tests-base.
50296
50297 2005-09-19  Bruno Haible  <bruno@clisp.org>
50298
50299         * doc/quote.texi: New file, extracted from gnulib.texi.
50300         * doc/ctime.texi: New file, extracted from gnulib.texi.
50301         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
50302         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
50303         * doc/gnulib.texi: Include them.
50304
50305 2005-09-18  Bruno Haible  <bruno@clisp.org>
50306
50307         Portability fix.
50308         * gnulib-tool (func_readlink): New function.
50309         (func_ln_if_changed): Use it.
50310
50311 2005-09-18  Bruno Haible  <bruno@clisp.org>
50312
50313         * gnulib-tool: Support --with-tests also with --import.
50314         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
50315         (func_import): Use variables $testsbase and $inctests. Emit a
50316         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
50317         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
50318         SUBDIRS += $testsdir.
50319         (func_create_testdir): Update.
50320
50321 2005-09-18  Bruno Haible  <bruno@clisp.org>
50322
50323         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
50324         instead of $dry_run.
50325         (func_cp_if_changed, func_mv_if_changed): Remove functions.
50326         (func_ln_if_changed): Don't handle dry-run here.
50327         (func_import): In dry-run mode, detect more precisely which actions
50328         would be performed, and don't use "...ing" verbs.
50329
50330 2005-09-18  Bruno Haible  <bruno@clisp.org>
50331
50332         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
50333         (func_import): Use join on two temporary files instead of three nested
50334         loops, in order to determine which files are new or old.
50335
50336 2005-09-18  Bruno Haible  <bruno@clisp.org>
50337
50338         * gnulib-tool (func_import): Comment out code that spits out the
50339         new files with --dry-run.
50340
50341 2005-09-18  Bruno Haible  <bruno@clisp.org>
50342
50343         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
50344
50345 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
50346
50347         * lib/stat-time.h: New file.
50348         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
50349         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
50350         in a different way.
50351         (timespec_cmp): New function.
50352         * lib/utimecmp.c: Include stat-time.h.
50353         (SYSCALL_RESOLUTION): Depend on whether various struct stat
50354         members exist, not on the obsolescent ST_MTIM_NSEC.
50355         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
50356
50357 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
50358
50359         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
50360
50361 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
50362
50363         * MODULES.html.sh (File system functions): Add stat-time.
50364         * modules/stat-time: New file.
50365         * modules/timespec (Files): Remove m4/st_mtim.m4; this
50366         is now done in a different way, by the stat-time module.
50367         * modules/utimecmp (Depends-on): Add stat-time.
50368
50369 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
50370
50371         * m4/st_mtim.m4: Remove.  Superseded by...
50372         * m4/stat-time.m4: New file.
50373         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
50374         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
50375
50376 2005-09-15  Derek Price  <derek@ximbiot.com>
50377
50378         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
50379
50380 2005-09-15  Derek Price  <derek@ximbiot.com>
50381
50382         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
50383         * lib/regex_internal.c: Ditto, using this...
50384         (__GNUC_PREREQ): ...new macro.
50385         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
50386         using...
50387         (__GNUC_PREREQ): ...this new macro.
50388
50389         * lib/strstr.h: Include string.h. Define strstr as a macro here.
50390
50391 2005-09-15  Derek Price  <derek@ximbiot.com>
50392             Paul Eggert  <eggert@cs.ucla.edu>
50393
50394         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
50395         changes, consolidating in...
50396         * lib/regex_internal.h: ...this file.
50397
50398 2005-09-13  Jim Meyering  <jim@meyering.net>
50399
50400         * lib/canon-host.c: Filter through gnu indent and reword comments
50401         slightly.
50402         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
50403
50404 2005-09-13  Derek Price  <derek@ximbiot.com>
50405
50406         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
50407         failure.
50408         Reported by Jim Meyering  <jim@meyering.net>.
50409
50410 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
50411
50412         * lib/base64.c: Typo.
50413         (base64_encode): Put b64str in initialized data section.
50414
50415 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
50416
50417         Merge glibc and coreutils changes into gnulib, plus a few
50418         extra fixes.
50419         * lib/md5.c: Use #error rather than a string.
50420         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
50421         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
50422         (__attribute__): Define to empty for non recent-GCC.
50423         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
50424         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
50425         Renamed from their non-__ counterparts, with new macros replacing
50426         them if not _LIBC.  Add __THROW attribute.
50427         (rol): Remove.
50428         (struct md5_ctx): Align buffer if using GCC.
50429         * lib/sha1.h (struct sha1_ctx): Likewise.
50430         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
50431         The old name was backwards.
50432         (NOTSWAP): Remove; not used.
50433         (rol): New macro, moved here from md5.h.
50434         (sha1_process_block): Remove a FIXME that doesn't make sense.
50435
50436 2005-09-12  Derek Price  <derek@ximbiot.com>
50437
50438         Return usable errors from canon-host.
50439         * lib/canon-host.h: New file.
50440         * lib/canon-host.c (canon_host): Wrap...
50441         (canon_host_r): ...this new function, which now relies exclusively on
50442         getaddrinfo.
50443         (ch_strerror): New function.
50444         (last_cherror): New global.
50445         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
50446         interface.
50447         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
50448         void *.
50449         (freeaddrinfo): Free ai->ai_canonname when set.
50450
50451 2005-09-12  Derek Price  <derek@ximbiot.com>
50452
50453         Make canon-host require getaddrinfo.
50454         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
50455         AC_LIBSOURCE canon-host.h.  Call...
50456         (gl_PREREQ_CANON_HOST): ...this new function, which requires
50457         gl_GETADDRINFO.
50458         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
50459
50460 2005-09-12  Derek Price  <derek@ximbiot.com>
50461
50462         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
50463         LGPL.
50464         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
50465
50466 2005-09-12  Derek Price  <derek@ximbiot.com>
50467
50468         * lib/gai_strerror.c: Include config.h when available.  Include
50469         getaddrinfo.h before other headers to test interface.
50470         Reported by Larry Jones <lawrence.jones@ugs.com>.
50471
50472 2005-09-12  Derek Price  <derek@ximbiot.com>
50473             Paul Eggert  <eggert@cs.ucla.edu>
50474
50475         * modules/glob (Files): Add glob-libc.h.
50476
50477 2005-09-12  Derek Price  <derek@ximbiot.com>
50478             Paul Eggert  <eggert@cs.ucla.edu>
50479
50480         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
50481         glob_.h, glob-libc.h.
50482         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
50483
50484 2005-09-12  Derek Price  <derek@ximbiot.com>
50485             Paul Eggert  <eggert@cs.ucla.edu>
50486
50487         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
50488         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
50489         protecting things that should be done only in gnulib contexts.
50490         * lib/glob_.h: New file, containing only the glob things needed for
50491         gnulib.
50492         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
50493         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
50494         (glob, globfree, glob_pattern_p): Now defined simply in terms of
50495         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
50496         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
50497         and to respect the namespace rules better.
50498
50499 2005-09-08  Simon Josefsson  <jas@extundo.com>
50500
50501         * modules/socklen: New file.
50502
50503 2005-09-08  Simon Josefsson  <jas@extundo.com>
50504
50505         * m4/socklen.m4: New file.
50506
50507 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50508
50509         * modules/utimens (Files): Add m4/utimbuf.m4, since
50510         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
50511         Reported by Sergey Poznyakoff.
50512
50513 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50514
50515         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
50516         definitions, since that's the preferred style in glibc.
50517         Fix a minor spacing issue, and update copyright notice to match
50518         glibc's.
50519
50520 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50521
50522         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
50523
50524 2005-09-06  Simon Josefsson  <jas@extundo.com>
50525
50526         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
50527         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
50528
50529 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50530
50531         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
50532         warning.
50533
50534 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50535
50536         * config/srclist.txt: Add glibc bug 1302.
50537
50538 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
50539
50540         Change bitset word type from unsigned int to unsigned long int,
50541         as this has better performance on typical 64-bit hosts.
50542         Port bitset code to hosts with unusual word sizes.
50543         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
50544         (build_collating_symbol):
50545         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
50546         argument is a bitset.  This is merely a style issue, but it makes
50547         it clearer that an entire array is expected.
50548         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
50549         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
50550         Port to the case where bitset_word is not the same as unsigned int.
50551         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
50552         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
50553         Likewise.
50554         * lib/regexec.c (check_dst_limits_calc_pos_1,
50555         check_subexp_matching_top):
50556         (build_trtable, group_nodes_into_DFAstates):
50557         Likewise.
50558         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
50559         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
50560         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
50561         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
50562         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
50563         * lib/regcomp.c (optimize_subexps, lower_subexp):
50564         Work even if bitset_word has holes in its bitwise representation.
50565         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
50566         * lib/regexec.c (check_dst_limits_calc_pos_1,
50567         check_subexp_matching_top):
50568         Likewise.
50569         * lib/regex_internal.c (re_string_reconstruct):
50570         Don't assume UCHAR_MAX == 255.
50571         * lib/regex_internal.h (bitset_set_all): Likewise.
50572         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
50573         All uses changed.
50574         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
50575         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
50576         All uses changed.
50577         (BITSET_WORD_MAX): New macro.
50578         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
50579         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
50580         (bitset_empty, bitset_copy):
50581         Prefer sizeof (bitset) to multiplying it out ourselves.
50582         (bitset_not_merge): Remove; unused.
50583         (bitset_contain): Return bool, not unsigned int with one bit on.
50584         All callers changed.
50585         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
50586         alignment than re_node_set; do this by defining a new internal
50587         type struct dests_alloc and using it to allocate memory.
50588
50589 2005-09-05  Bruno Haible  <bruno@clisp.org>
50590
50591         * gnulib-tool (func_import): Fix comparison in handling of symbolic
50592         links.
50593
50594 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
50595
50596         * modules/size_max (Makefile.am): Add size_max.h
50597
50598 2005-09-04  Derek Price  <derek@ximbiot.com>
50599
50600         * gnulib-tool (func_import): Fix reversed $symbolic logic.
50601
50602 2005-09-03  Simon Josefsson  <jas@extundo.com>
50603
50604         * gnulib-tool: Fix typo.
50605
50606 2005-09-03  Simon Josefsson  <jas@extundo.com>
50607
50608         * config/srclist.txt: Add glibc bug 1293.
50609
50610 2005-09-03  Derek Price  <derek@ximbiot.com>
50611
50612         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
50613         From Larry Jones <lawrence.jones@ugs.com>.
50614
50615 2005-09-02  Simon Josefsson  <jas@extundo.com>
50616
50617         * modules/socklen: New file.
50618
50619 2005-09-02  Simon Josefsson  <jas@extundo.com>
50620
50621         * modules/havelib: New module.
50622
50623         * modules/gettext, modules/iconv, modules/lock, modules/readline:
50624         Use havelib.
50625
50626 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
50627
50628         Check for arithmetic overflow when calculating sizes, to prevent
50629         some buffer-overflow issues.  These patches are conservative, in the
50630         sense that when I couldn't determine whether an overflow was possible,
50631         I inserted a run-time check.
50632         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
50633         macros.
50634         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
50635         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
50636         (re_xnrealloc, re_x2nrealloc): New inline functions.
50637         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
50638         parse_bracket_exp):
50639         (build_equiv_class, build_charclass): Check for arithmetic overflow
50640         in size expression calculations.
50641         * lib/regex_internal.c (re_string_realloc_buffers):
50642         (build_wcs_upper_buffer, re_node_set_add_intersect):
50643         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
50644         (re_dfa_add_node, register_state): Likewise.
50645         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
50646         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
50647         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
50648         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
50649
50650 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
50651
50652         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
50653         m4/ulonglong.m4.  Problem reported by Martin Lambers.
50654
50655 2005-09-02  Bruno Haible  <bruno@clisp.org>
50656
50657         Support for lib vs. lib64 distinction on biarch platforms.
50658         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
50659         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
50660         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
50661
50662 2005-09-02  Bruno Haible  <bruno@clisp.org>
50663
50664         * gnulib-tool (import): In the other first-use case, provide defaults
50665         as well.
50666
50667 2005-09-02  Bruno Haible  <bruno@clisp.org>
50668
50669         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
50670         patches not yet found in the latest gettext release.
50671
50672 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50673
50674         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
50675         to avoid a collision with bits/local_lim.h in glibc.
50676         All uses changed.  Problem reported by Dmitry V. Levin in
50677         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
50678
50679         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
50680         bugs in int versus size_t comparisons.
50681         (re_string_context_at): Fix bug where the code assumed that
50682         Idx is signed.
50683
50684         Use bool where appropriate.
50685         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
50686         All callers changed.
50687         (calc_eclosure_iter): Likewise, for ROOT arg.
50688         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
50689         (build_charclass_op): Likewise, for NON_MATCH arg.
50690         * lib/regex_internal.c (re_string_allocate, re_string_construct):
50691         (re_string_construct_common): Likewise, for ICASE arg.
50692         * lib/regexec.c (re_search_2_stub, re_search_stub):
50693         Likewise, for RET_LEN arg.
50694         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
50695         (set_regs): Likewise, for FL_BACKTRACK arg.
50696         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
50697         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
50698         (calc_eclosure_iter, parse_bracket_exp):
50699         Use bool for internal variables that are booleans.
50700         * lib/regexec.c (re_search_internal, check_matching,
50701         proceed_next_node):
50702         (set_regs, build_sifted_states, sift_states_bkref):
50703         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
50704         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
50705         (find_collation_sequence_value):
50706         Likewise.
50707         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
50708         (re_node_set_compare):
50709         Return bool, not int. All callers changed.
50710         * lib/regexec.c (check_halt_node_context, check_dst_limits):
50711         (build_trtable, check_node_accept): Likewise.
50712         * lib/regex_internal.h: Include stdbool.h.
50713
50714         Fix bugs uncovered when converting to bool.
50715         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
50716         failure instead of charging ahead blindly.
50717         * lib/regex_internal.c (register_state): Likewise.
50718         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
50719         for freeing internal storage.
50720         (group_nodes_into_DFA_states): Use unsigned int, not int, for
50721         bitset pieces used as boolean, to avoid undefined behavior
50722         on hosts that do int overflow checking.
50723
50724 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50725
50726         * config/srclist.txt: Add glibc bugs 1285-1287.
50727
50728 2005-09-01  Jim Meyering  <jim@meyering.net>
50729
50730         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
50731         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
50732         Require gl_STAT_MACROS, too.
50733
50734 2005-09-01  Bruno Haible  <bruno@clisp.org>
50735
50736         * gnulib-tool (import): In the first-use case, provide defaults.
50737
50738 2005-09-01  Bruno Haible  <bruno@clisp.org>
50739
50740         * gnulib-tool (func_import): Remove the .tmp files.
50741
50742 2005-09-01  Bruno Haible  <bruno@clisp.org>
50743
50744         * gnulib-tool (func_import): Fix handling of symbolic links.
50745
50746 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50747
50748         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
50749         old glibc regex code mishandles strings longer than 2**31 bytes.
50750         This patch fixes this when the regex code is used in gnulib
50751         (i.e., outside glibc).
50752
50753         This patch should not affect the use of the regex code inside
50754         glibc.  No doubt this problem also needs to be handled for glibc
50755         as well, but the result will be an incompatible change to the
50756         glibc ABI, and the old ABI will have to be supported too.  That
50757         can be the the subject for another patch.
50758
50759         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
50760         governing whether the rest of this patch is active.  By default,
50761         the macro is disabled and the patch has no effect.
50762         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
50763         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
50764         (struct re_pattern_buffer, re_search, re_search_2, re_match):
50765         (re_match_2, re_set_registers): Use the new types.
50766         * lib/regex_internal.h (Idx, re_hashval_t): New types.
50767         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
50768         New macros.
50769         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
50770         (re_string_context_at, bin_tree_t, re_dfastate_t):
50771         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
50772         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
50773         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
50774         (re_string_char_size_at, re_string_wchar_at):
50775         (re_string_elem_size_at):
50776         Use the new types and macros to port to 64-bit hosts.
50777         Use unsigned types for internal values, so that the code
50778         mostly works even for arrays larger than SSIZE_MAX.
50779         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
50780         (search_duplicated_node, calc_eclosure_iter, fetch_number):
50781         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
50782         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
50783         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
50784         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
50785         (calc_inveclosure, parse_dup_op, build_range_exp):
50786         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
50787         (fetch_number, create_token_tree, mark_opt_subexp):
50788         Likewise.
50789         * lib/regex_internal.c (re_string_construct_common,
50790         create_ci_newstate):
50791         (create_cd_newstate, re_string_allocate, re_string_construct):
50792         (re_string_realloc_buffers, build_wcs_upper_buffer):
50793         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
50794         (re_string_reconstruct, re_string_peek_byte_case):
50795         (re_string_fetch_byte_case, re_string_context_at):
50796         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
50797         (re_node_set_init_copy, re_node_set_add_intersect):
50798         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50799         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50800         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
50801         (re_acquire_state, re_acquire_state_context, register_state):
50802         Likewise.
50803         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
50804         search_cur_bkref_entry):
50805         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
50806         (re_search_internal, re_search_2_stub, re_search_stub)
50807         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
50808         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
50809         (update_cur_sifted_state, check_dst_limits):
50810         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
50811         (check_subexp_limits, sift_states_bkref, merge_state_array):
50812         (check_subexp_matching_top, get_subexp, get_subexp_sub):
50813         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
50814         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
50815         (expand_bkref_cache, check_node_accept_bytes):
50816         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
50817         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
50818         (acquire_init_state_context, check_halt_node_context):
50819         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
50820         (sift_states_backward, clean_state_log_if_needed):
50821         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
50822         (find_recover_state, transit_state_sb, transit_state_mb):
50823         (transit_state_bkref, build_trtable, match_ctx_clean):
50824         Likewise.
50825         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
50826         to work around an assumption that REG_MISSING is negative.
50827
50828         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
50829         (seek_collating_symbol_entry) [defined _LIBC]:
50830         (lookup_collation_sequence_value) [defined _LIBC]:
50831         (build_range_exp, build_collating_symbol) [defined _LIBC]:
50832         Use prototypes rather than old-style function definitions.
50833         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
50834         (transit_state_sb) [0]:
50835         (find_collation_sequence_value) [defined _LIBC]: Likewise.
50836
50837         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
50838         rm_eo.
50839
50840         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
50841         (optimize_subexps, lower_subexp):
50842         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
50843         since the signed shift might overflow.  Use 1u<<31 instead.
50844         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
50845         Likewise.
50846         * lib/regexec.c (check_dst_limits_calc_pos_1,
50847         check_subexp_matching_top): Likewise.
50848
50849         * lib/regcomp.c (optimize_subexps, lower_subexp):
50850         Use CHAR_BIT rather than 8, for clarity.
50851         * lib/regexec.c (check_dst_limits_calc_pos_1):
50852         (check_subexp_matching_top): Likewise.
50853         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
50854         have to worry about portability issues when shifting it left.
50855         Remove no-longer-needed test for table_size > 0.
50856         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
50857         in a word, as the resulting behavior is undefined.
50858         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
50859         in one case, a <= should have been an <, and in another case the
50860         whole test was missing.
50861         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
50862         the standard name CHAR_BIT.
50863         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
50864         this is not true on one's complement and signed-magnitude hosts.
50865
50866         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
50867         next_last_offset.
50868         (struct re_dfa_t): Remove unused member states_alloc.
50869         * lib/regcomp.c (init_dfa): Don't initialize unused members.
50870
50871 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50872
50873         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
50874         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
50875         and large-file glibc and in 32-bit large-file Solaris.
50876
50877 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50878
50879         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
50880         lengths fit in regoff_t; this isn't true if regoff_t is the same
50881         width as size_t.
50882         * lib/regex.c (re_search_internal): 5th arg is LAST_START
50883         (= START + RANGE) instead of RANGE.  This avoids overflow
50884         problems when regoff_t is the same width as size_t.
50885         All callers changed.
50886         (re_search_2_stub): Check for overflow when adding the
50887         sizes of the two strings.
50888         (re_search_stub): Check for overflow when adding START
50889         to RANGE; if it occurs, substitute the extreme value.
50890
50891 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50892
50893         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
50894
50895 2005-08-31  Jim Meyering  <jim@meyering.net>
50896
50897         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
50898         a pointer-to-const.
50899         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
50900         (register_state): Likewise.
50901         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
50902         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
50903         (group_nodes_into_DFAstates): Likewise.
50904
50905 2005-08-31  Jim Meyering  <jim@meyering.net>
50906
50907         * check-module: Add a FIXME comment.
50908
50909 2005-08-31  Eric Blake  <ebb9@byu.net>
50910
50911         * modules/unistd-safer (Files): Add unistd--.h.
50912         * modules/stdio-safer (Files): Add stdio--.h.
50913
50914 2005-08-31  Derek Price  <derek@ximbiot.com>
50915
50916         * lib/getdelim.c (getdelim): Return EOF on EOF.
50917         Reported by Larry Jones <lawrence.jones@ugs.com>.
50918
50919 2005-08-31  Bruno Haible  <bruno@clisp.org>
50920
50921         Avoid unnecessary diffs in the generated lib/Makefile.am.
50922         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
50923         the generated files.
50924         (func_import): Don't set cmd.
50925
50926 2005-08-31  Bruno Haible  <bruno@clisp.org>
50927
50928         * lib/strstr.c: Include <stddef.h>, for NULL.
50929         * lib/strcasestr.c: Likewise.
50930         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50931
50932 2005-08-31  Bruno Haible  <bruno@clisp.org>
50933
50934         * gnulib-tool: New option --macro-prefix.
50935         (func_import): Use macro_prefix.
50936         (import): Handle option --macro-prefix.
50937
50938 2005-08-31  Bruno Haible  <bruno@clisp.org>
50939
50940         * gnulib-tool (import): Rename most ac_* variables to cached_*.
50941         Also use new variables cached_lgpl, cached_libtool.
50942
50943 2005-08-31  Bruno Haible  <bruno@clisp.org>
50944
50945         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
50946         always instantiating them.
50947
50948 2005-08-31  Bruno Haible  <bruno@clisp.org>
50949
50950         * gnulib-tool (func_import): Read the previous cached settings
50951         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
50952         earlier added by gnulib but are now dropped. Warn when a gnulib file
50953         overwrites a non-gnulib file.
50954
50955 2005-08-31  Bruno Haible  <bruno@clisp.org>
50956
50957         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
50958         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
50959         projects that don't keep autogenerated files in CVS. Put into
50960         actioncmd only the specified modules, not the transitive closure.
50961
50962 2005-08-31  Bruno Haible  <bruno@clisp.org>
50963
50964         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
50965         Create directories that shall be filled.
50966         (import): Don't look for gl_* macros in configure.ac. Recurse across
50967         all directories containing a gnulib-cache.m4 files, if meaningful.
50968
50969 2005-08-31  Bruno Haible  <bruno@clisp.org>
50970
50971         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
50972         (import): Set seen_libtool when we see gl_LIBTOOL.
50973
50974 2005-08-31  Bruno Haible  <bruno@clisp.org>
50975
50976         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
50977         declaration macro definitions from generated gnulib.m4.
50978
50979 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
50980
50981         * lib/iconvme.h: Add prototype for iconv_alloc.
50982
50983 2005-08-29  Simon Josefsson  <jas@extundo.com>
50984
50985         * lib/iconvme.c: Fix errno.
50986
50987 2005-08-29  Bruno Haible  <bruno@clisp.org>
50988
50989         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
50990         that it works when the directory contains spaces.
50991
50992 2005-08-29  Bruno Haible  <bruno@clisp.org>
50993
50994         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
50995
50996 2005-08-29  Bruno Haible  <bruno@clisp.org>
50997
50998         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
50999         Emit more advice.
51000
51001 2005-08-29  Bruno Haible  <bruno@clisp.org>
51002         and Stepan Kasal  <kasal@ucw.cz>
51003
51004         * check-module: If more parameters are given, check each of them
51005         separately; add more exceptions, as noted by Jim Meyering.
51006         (check_module): New procedure.
51007         (%exempt_header): Now contains all exceptions.
51008
51009 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
51010
51011         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
51012
51013 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
51014
51015         * lib/iconvme.c: Split iconv_string into iconv_alloc.
51016
51017 2005-08-28  Bruno Haible  <bruno@clisp.org>
51018
51019         * m4/gnulib-tool.m4: New file.
51020
51021 2005-08-27  Jim Meyering  <jim@meyering.net>
51022
51023         * modules/unistd-safer (Files): Add pipe-safer.c.
51024         * modules/fcntl-safer (Files): Add creat-safer.c.
51025
51026 2005-08-27  Jim Meyering  <jim@meyering.net>
51027
51028         * m4/stdlib-safer.m4: New file.  From coreutils.
51029         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
51030         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
51031         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
51032         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
51033         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
51034
51035 2005-08-27  Jim Meyering  <jim@meyering.net>
51036
51037         * lib/fopen-safer.c: Merge minor changes from coreutils.
51038         * lib/dup-safer.c: Likewise.
51039         * lib/fd-safer.c: Likewise.
51040
51041         Merge from coreutils.
51042         * lib/stdio--.h: New file.
51043         * lib/stdlib--.h: New file.
51044         * lib/mkstemp-safer.c: New file.
51045
51046         GNU tar needs these.
51047         * lib/pipe-safer.c: New file.
51048         * lib/creat-safer.c: New file.
51049         * lib/fcntl--.h (creat): Define to creat_safer.
51050         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
51051         * lib/unistd--.h (pipe): Define to pipe_safer.
51052         * lib/unistd-safer.h: Declare pipe_safer.
51053
51054 2005-08-26  Simon Josefsson  <jas@extundo.com>
51055
51056         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
51057         Haible <bruno@clisp.org>.
51058
51059 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
51060
51061         * lib/regex_internal.h: Remove all references to
51062         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
51063         or better.
51064         (bitset_not, bitset_merge, bitset_not_merge):
51065         (bitset_mask, re_string_allocate, re_string_construct):
51066         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
51067         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
51068         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
51069         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
51070         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
51071         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
51072         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
51073         (re_acquire_state_context):
51074         Remove unnecessary forward decls.
51075         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
51076         Put __attribute at function definition,
51077         now that the function decl has been removed.
51078         * lib/regex_internal.c (re_string_peek_byte_case):
51079         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
51080         Likewise.
51081
51082 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
51083
51084         * m4/regex.m4: Add AC_PREREQ(2.50).
51085         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
51086
51087 2005-08-25  Simon Josefsson  <jas@extundo.com>
51088
51089         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
51090         __fsetlocking.
51091
51092 2005-08-25  Simon Josefsson  <jas@extundo.com>
51093
51094         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
51095         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
51096         GLIBC specific code.
51097
51098 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51099
51100         Make regex safe for g++.  This fixes one real bug (an "err"
51101         that should have been "*err").  g++ problem reported by
51102         Sam Steingold.
51103         * lib/regex_internal.h (re_calloc): New macro, consistent with
51104         re_malloc etc.  All callers of calloc changed to use re_calloc.
51105         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
51106         not int.  All callers changed.
51107         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
51108         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
51109         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
51110         (find_recover_state): Change "err" to "*err"; this fixes what
51111         appears to be a real bug.
51112         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
51113         versus int.
51114
51115 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51116
51117         * modules/regex (Depends-on): Add malloc, since the code
51118         assumes that !malloc(0) means failure.
51119
51120 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51121
51122         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
51123
51124         alloca modernization/simplification for regex.
51125         * lib/regex.c: Remove portability cruft for alloca.  This no longer
51126         needs to be at the start of the file, and can be moved into
51127         regex_internal.h and simplified.
51128         * lib/regex_internal.h: Include <alloca.h>.
51129         (__libc_use_alloca) [!defined _LIBC]: New macro.
51130         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
51131         now works outside glibc.
51132
51133 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51134
51135         * config/srclist.txt: Add glibc bugs 1241, 1245.
51136
51137 2005-08-25  Jim Meyering  <jim@meyering.net>
51138
51139         * lib/open-safer.c: Include <config.h>.
51140         Otherwise, we'd lose LARGEFILE support in any file using
51141         e.g. "fcntl--.h"
51142
51143 2005-08-25  Bruno Haible  <bruno@clisp.org>
51144
51145         * m4/minmax.m4: Require autoconf 2.52.
51146         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
51147         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
51148         alternatives of translit over the alphabet.
51149         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
51150
51151 2005-08-24  Simon Josefsson  <jas@extundo.com>
51152
51153         * tests/test-getpass.c: New file.
51154
51155 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51156
51157         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
51158         for GNU regex features.
51159
51160 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51161
51162         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
51163         * lib/regex.h (regerror): Likewise.
51164
51165         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
51166         requires this.  (The code never needed it.)
51167
51168         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
51169         All uses of recently-renamed identifiers changed to use the new,
51170         POSIX-compliant names.  The code will build and run just fine
51171         without these changes, but it's better to eat our own dog food
51172         and use the standard-conforming names.
51173
51174         * lib/regex.h: Fix a multitude of POSIX name space violations.
51175         These changes have an effect only for programs that define
51176         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
51177         do not change anything for programs compiled in the normal way.
51178         Also, there is no effect on the ABI.
51179
51180         (_REGEX_SOURCE): New macro.
51181         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
51182         defined and _GNU_SOURCE is not; this fixes a name space violation.
51183
51184         Rename the following macros to obey POSIX requirements.
51185         The old names are still visible as macros if _REGEX_SOURCE is defined.
51186         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
51187         RE_BACKSLASH_ESCAPE_IN_LISTS.
51188         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
51189         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
51190         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
51191         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
51192         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
51193         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
51194         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
51195         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
51196         (REG_INTERVALS): renamed from RE_INTERVALS.
51197         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
51198         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
51199         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
51200         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
51201         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
51202         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
51203         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
51204         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
51205         RE_UNMATCHED_RIGHT_PAREN_ORD.
51206         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
51207         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
51208         (REG_DEBUG): renamed from RE_DEBUG.
51209         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
51210         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
51211         unusual, since we can't clash with the POSIX REG_ICASE.
51212         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
51213         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
51214         (REG_NO_SUB): renamed from RE_NO_SUB.
51215         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
51216         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
51217         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
51218         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
51219         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
51220         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
51221         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
51222         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
51223         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
51224         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
51225         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
51226         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
51227         RE_SYNTAX_POSIX_MINIMAL_BASIC.
51228         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
51229         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
51230         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
51231         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
51232         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
51233         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
51234         (REG_FIXED): Renamed from REGS_FIXED.
51235         (REG_NREGS): Renamed from RE_NREGS.
51236
51237         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
51238         of other REG_* macros, since POSIX says the user is allowed to
51239         #undef these macros selectively.
51240
51241         (reg_errcode_t): Update comment stating what other tables need
51242         to be consistent.
51243
51244         Rename the following enum values to obey POSIX requirements.
51245         The old names are still visible as macros.
51246         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
51247         is not defined, since GNU is supposed to be a superset of POSIX as
51248         much as possible, and since we want reg_errcode_t to be a signed
51249         type for implementation consistency.
51250         (_REG_NOERROR): Renamed from REG_NOERROR.
51251         (_REG_NOMATCH): Renamed from REG_NOMATCH.
51252         (_REG_BADPAT): Renamed from REG_BADPAT.
51253         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
51254         (_REG_ECTYPE): Renamed from REG_ECTYPE.
51255         (_REG_EESCAPE): Renamed from REG_EESCAPE.
51256         (_REG_ESUBREG): Renamed from REG_ESUBREG.
51257         (_REG_EBRACK): Renamed from REG_EBRACK.
51258         (_REG_EPAREN): Renamed from REG_EPAREN.
51259         (_REG_EBRACE): Renamed from REG_EBRACE.
51260         (_REG_BADBR): Renamed from REG_BADBR.
51261         (_REG_ERANGE): Renamed from REG_ERANGE.
51262         (_REG_ESPACE): Renamed from REG_ESPACE.
51263         (_REG_BADRPT): Renamed from REG_BADRPT.
51264         (_REG_EEND): Renamed from REG_EEND.
51265         (_REG_ESIZE): Renamed from REG_ESIZE.
51266         (_REG_ERPAREN): Renamed from REG_ERPAREN.
51267         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
51268         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
51269         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
51270         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
51271
51272         (_REG_RE_NAME, _REG_RM_NAME): New macros.
51273         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
51274         changed.  But support the old name if the new one is not defined
51275         and if _REGEX_SOURCE.
51276
51277         Change the following member names in struct re_pattern_buffer.
51278         The old names are still supported if !_REGEX_SOURCE.
51279         The new names are always supported, regardless of _REGEX_SOURCE.
51280         (re_buffer): Renamed from buffer.
51281         (re_allocated): Renamed from allocated.
51282         (re_used): Renamed from used.
51283         (re_syntax): Renamed from syntax.
51284         (re_fastmap): Renamed from fastmap.
51285         (re_translate): Renamed from translate.
51286         (re_can_be_null): Renamed from can_be_null.
51287         (re_regs_allocated): Renamed from regs_allocated.
51288         (re_fastmap_accurate): Renamed from fastmap_accurate.
51289         (re_no_sub): Renamed from no_sub.
51290         (re_not_bol): Renamed from not_bol.
51291         (re_not_eol): Renamed from not_eol.
51292         (re_newline_anchor): Renamed from newline_anchor.
51293
51294         Change the following member names in struct re_registers.
51295         The old names are still supported if !_REGEX_SOURCE.
51296         The new names are always supported, regardless of _REGEX_SOURCE.
51297         (rm_num_regs): Renamed from num_regs.
51298         (rm_start): Renamed from start.
51299         (rm_end): Renamed from end.
51300
51301         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
51302         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
51303         Prepend __ to parameter names.
51304
51305         Undo yesterday's changes.
51306
51307 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51308
51309         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
51310         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
51311         lib/regex.c.
51312
51313 2005-08-24  Jim Meyering  <jim@meyering.net>
51314
51315         Sync from coreutils.
51316         * m4/fcntl-safer.m4: New file.
51317
51318         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
51319         and object files for this module.
51320
51321 2005-08-24  Jim Meyering  <jim@meyering.net>
51322
51323         Sync from coreutils.
51324         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
51325
51326 2005-08-24  Jim Meyering  <jim@meyering.net>
51327
51328         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
51329         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
51330
51331 2005-08-24  Jim Meyering  <jim@meyering.net>
51332
51333         * modules/fcntl-safer: New module.
51334         * modules/fts (Depends-on): Add fcntl-safer.
51335         * MODULES.html.sh (File descriptor based Input/Output):
51336         Add fcntl-safer.
51337
51338 2005-08-24  Bruno Haible  <bruno@clisp.org>
51339
51340         Support for unit test modules.
51341         * modules/README: Mention tests modules.
51342         * modules/TEMPLATE-TESTS: New file.
51343         * gnulib-tool: New options --extract-tests-module, --with-tests and
51344         --tests-base (unused for the moment).
51345         (testsbase, inctests): New variables.
51346         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
51347         (func_verify_module): Exclude TEMPLATE-TESTS.
51348         (func_verify_nontests_module, func_verify_tests_module): New functions.
51349         (func_get_dependencies): Add implicit dependency for tests modules.
51350         (func_get_tests_module): New function.
51351         (func_modules_transitive_closure): When --with-tests was specified,
51352         include the unit tests as well, unless explicitly avoided.
51353         (func_emit_lib_Makefile_am): Ignore the tests modules here.
51354         (func_emit_tests_Makefile_am): New function.
51355         (func_create_testdir): When --with-tests was specified, emit a
51356         tests/ directory.
51357         * MODULES.html.sh (Future developments): Update.
51358
51359 2005-08-24  Bruno Haible  <bruno@clisp.org>
51360
51361         * modules/tls-tests: New file.
51362         * tests/test-tls.c: New file, from GNU gettext.
51363
51364 2005-08-24  Bruno Haible  <bruno@clisp.org>
51365
51366         * modules/lock-tests: New file.
51367         * tests/test-lock.c: New file, from GNU gettext.
51368
51369 2005-08-24  Bruno Haible  <bruno@clisp.org>
51370
51371         * lib/lock.h: Add multiple inclusion guard.
51372         * lib/tls.h: Add multiple inclusion guard.
51373
51374 2005-08-24  Bruno Haible  <bruno@clisp.org>
51375
51376         * gnulib-tool: Add support for the --aux-dir option to
51377         --create-testdir, --create-megatestdir, --test, --megatest.
51378         (func_create_testdir, func_create_megatestdir): Optionally emit a
51379         AC_CONFIG_AUX_DIR directive.
51380         (create-testdir, create-megatestdir, test, megatest): Provide a
51381         default value for $auxdir.
51382
51383 2005-08-24  Bruno Haible  <bruno@clisp.org>
51384
51385         * gnulib-tool (import): Use compound statement instead of subshell
51386         where possible.
51387
51388 2005-08-24  Bruno Haible  <bruno@clisp.org>
51389
51390         * gnulib-tool (import): Change --aux-dir default to "build-aux".
51391
51392 2005-08-24  Bruno Haible  <bruno@clisp.org>
51393
51394         * gnulib-tool (func_version): Update.
51395
51396 2005-08-24  Bruno Haible  <bruno@clisp.org>
51397
51398         * gnulib-tool (func_import, func_create_testdir,
51399         func_create_megatestdir): Quote all autoconf macro arguments.
51400
51401 2005-08-24  Bruno Haible  <bruno@clisp.org>
51402
51403         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
51404         option --force, because --force causes the aclocal.m4 of each
51405         subdirectory to be newer than the corresponding config.h.in.
51406
51407 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51408
51409         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
51410         All contents moved to gl_REGEX.
51411         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
51412         assume that it does.
51413
51414 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51415
51416         * lib/regex.h (REG_NOSYS)
51417         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
51418         Define, since POSIX requires it as of 2001.
51419         (_REG_ENOSYS)
51420         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
51421         New private symbol, used to keep the enum signed in all cases.
51422         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
51423         Youngman in
51424         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
51425
51426         * lib/regex_internal.c (re_string_skip_chars, register_state):
51427         (calc_state_hash):
51428         Remove forward decls; no longer needed now that we use prototypes.
51429         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
51430         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
51431         (clean_state_log_if_needed): Likewise.
51432
51433 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51434
51435         * config/srclist.txt: Add glibc bugs 1231-1233.
51436
51437 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51438
51439         Fix problems reported by Sam Steingold in
51440         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
51441         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
51442         assumed that reg_errcode_t is a signed type, which is not
51443         necessarily true if _XOPEN_SOURCE is not defined.
51444         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
51445         since some compilers warn about it otherwise.
51446
51447 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51448
51449         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
51450         (init_word_char, create_initial_state, duplicate_node_closure):
51451         (fetch_token, peek_token_bracket, build_range_exp):
51452         (build_collating_symbol): Remove forward decls; no longer needed
51453         now that we use prototypes.
51454
51455         * lib/regcomp.c:
51456         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
51457         (re_compile_fastmap_iter, regcomp, regerror, regfree):
51458         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
51459         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
51460         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
51461         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
51462         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
51463         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
51464         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
51465         (build_range_exp, build_collating_symbol, parse_bracket_exp):
51466         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
51467         (build_charclass, build_charclass_op, fetch_number, create_tree):
51468         (create_token_tree, mark_opt_subexp, duplicate_tree):
51469         Use prototypes rather than old-style definitions.
51470
51471         * lib/regex_internal.c:
51472         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
51473         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
51474         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
51475         (re_string_reconstruct, re_string_peek_byte_case):
51476         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
51477         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
51478         (re_node_set_init_copy, re_node_set_add_intersect):
51479         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
51480         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
51481         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
51482         (re_acquire_state, re_acquire_state_context, register_state):
51483         (create_ci_newstate, create_cd_newstate, free_state):
51484         Likewise.
51485         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
51486         re_search_2):
51487         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
51488         (re_search_internal, prune_impossible_nodes):
51489         (acquire_init_state_context, check_matching, static):
51490         (check_halt_node_context, check_halt_state_context, proceed_next_node):
51491         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
51492         (update_regs, sift_states_backward, build_sifted_states):
51493         (clean_state_log_if_needed, merge_state_array):
51494         (update_cur_sifted_state, add_epsilon_src_nodes):
51495         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
51496         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
51497         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
51498         (find_recover_state, check_subexp_matching_top, transit_state_mb):
51499         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
51500         (check_arrival, check_arrival_add_next_nodes):
51501         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
51502         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
51503         (check_node_accept_bytes, check_node_accept, extend_buffers):
51504         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
51505         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
51506         (sift_ctx_init):
51507         Likewise.
51508
51509         * lib/regex_internal.h:
51510         (re_string_allocate, re_string_construct, re_string_reconstruct):
51511         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
51512         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
51513         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
51514         (re_string_context_at, re_string_peek_byte_case):
51515         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
51516         is defined, since we now use prototypes always.
51517
51518         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
51519         C89 or better.  All uses removed.
51520
51521 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51522
51523         * config/srclist.txt: Add glibc bugs 1220-1227.
51524
51525 2005-08-20  Jim Meyering  <jim@meyering.net>
51526
51527         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
51528         of unused local, dfa.
51529
51530 2005-08-20  Bruno Haible  <bruno@clisp.org>
51531
51532         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
51533
51534 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51535
51536         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
51537         (re_node_set_insert_last, re_dfa_add_node):
51538         Rename local variables to avoid GCC shadowing warnings.
51539
51540 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51541
51542         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
51543         [defined lint]: Suppress bogus uninitialized-variable warnings.
51544
51545         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
51546         and let the caller return REG_ESPACE if out of space.  This
51547         removes an uninitialied-variable warning with GCC 4.0.1, and also
51548         avoids taking the address of a local variable.  All callers
51549         changed.
51550
51551 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51552
51553         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
51554         $LIBCSRC/posix/regexec.c.
51555         Add glibc bug 1217 for regcomp.c.
51556
51557 2005-08-19  Jim Meyering  <jim@meyering.net>
51558
51559         * lib/regexec.c (proceed_next_node): Redo local variables to
51560         avoid GCC shadowing warnings.
51561
51562 2005-08-18  Bruno Haible  <bruno@clisp.org>
51563
51564         * lib/strstr.c (strstr): Fix return value in multibyte case.
51565         * lib/strcasestr.c (strcasestr): Likewise.
51566
51567 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
51568
51569         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
51570
51571 2005-08-17  Jim Meyering  <jim@meyering.net>
51572
51573         Make the %s format (seconds since the epoch) work for a negative
51574         number and when used with a zero-padded field width, e.g. %015s.
51575
51576         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
51577         label so that it precedes the code to set `digits'.  Otherwise,
51578         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
51579         print `00-22'.  Now, it prints `-0022', as it should.
51580
51581 2005-08-17  Bruno Haible  <bruno@clisp.org>
51582
51583         * modules/strstr (Files): Add m4/mbrtowc.m4.
51584         (Depends-on): Add mbuiter.
51585
51586 2005-08-17  Bruno Haible  <bruno@clisp.org>
51587
51588         * modules/strcasestr: New file.
51589         * MODULES.html.sh (String handling, based on ANSI C 89): Add
51590         strcasestr.
51591
51592 2005-08-17  Bruno Haible  <bruno@clisp.org>
51593
51594         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
51595
51596 2005-08-17  Bruno Haible  <bruno@clisp.org>
51597
51598         * modules/mbuiter: New file.
51599         * MODULES.html.sh (Extended multibyte and wide character utilities):
51600         Add mbuiter.
51601
51602 2005-08-17  Bruno Haible  <bruno@clisp.org>
51603
51604         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
51605         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
51606
51607 2005-08-17  Bruno Haible  <bruno@clisp.org>
51608
51609         * m4/strcasestr.m4: New file.
51610
51611 2005-08-17  Bruno Haible  <bruno@clisp.org>
51612
51613         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
51614         * lib/strstr.c: Completely rewritten, with multibyte locale support.
51615
51616 2005-08-17  Bruno Haible  <bruno@clisp.org>
51617
51618         * lib/strcasestr.h: New file.
51619         * lib/strcasestr.c: New file.
51620
51621 2005-08-17  Bruno Haible  <bruno@clisp.org>
51622
51623         * lib/strcasecmp.c: Use mbuiter.h.
51624
51625 2005-08-17  Bruno Haible  <bruno@clisp.org>
51626
51627         * lib/mbuiter.h: New file.
51628
51629 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
51630
51631         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
51632         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
51633         and gl_GETOPT are both invoked via different paths (as happens
51634         with GNU tar CVS because it uses both argp and getopt), the former
51635         wins.
51636
51637 2005-08-16  Bruno Haible  <bruno@clisp.org>
51638
51639         * modules/tls: New file.
51640         * MODULES.html.sh (Multithreading): Add tls.
51641
51642 2005-08-16  Bruno Haible  <bruno@clisp.org>
51643
51644         * modules/strnlen1: New file.
51645         * MODULES.html.sh (String handling): Add strnlen1.
51646
51647 2005-08-16  Bruno Haible  <bruno@clisp.org>
51648
51649         * modules/strcase (Files): Add m4/mbrtowc.m4.
51650         (Depends-on): Add strnlen1, mbchar.
51651
51652 2005-08-16  Bruno Haible  <bruno@clisp.org>
51653
51654         * modules/mbiter: New file.
51655         * MODULES.html.sh (Extended multibyte and wide character utilities):
51656         Add mbiter.
51657
51658 2005-08-16  Bruno Haible  <bruno@clisp.org>
51659
51660         * modules/mbfile: New file.
51661         * MODULES.html.sh (Extended multibyte and wide character utilities):
51662         Add mbfile.
51663
51664 2005-08-16  Bruno Haible  <bruno@clisp.org>
51665
51666         * modules/mbchar: New file.
51667         * MODULES.html.sh (Extended multibyte and wide character utilities):
51668         New section.
51669
51670 2005-08-16  Bruno Haible  <bruno@clisp.org>
51671
51672         * m4/tls.m4: New file, from GNU gettext.
51673
51674 2005-08-16  Bruno Haible  <bruno@clisp.org>
51675
51676         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
51677         always.
51678         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
51679
51680 2005-08-16  Bruno Haible  <bruno@clisp.org>
51681
51682         * m4/mbiter.m4: New file.
51683
51684 2005-08-16  Bruno Haible  <bruno@clisp.org>
51685
51686         * m4/mbfile.m4: New file.
51687
51688 2005-08-16  Bruno Haible  <bruno@clisp.org>
51689
51690         * m4/mbchar.m4: New file.
51691
51692 2005-08-16  Bruno Haible  <bruno@clisp.org>
51693
51694         * lib/tls.h: New file, from GNU gettext.
51695         * lib/tls.c: New file, from GNU gettext.
51696
51697 2005-08-16  Bruno Haible  <bruno@clisp.org>
51698
51699         * lib/strnlen1.h: New file.
51700         * lib/strnlen1.c: New file.
51701
51702 2005-08-16  Bruno Haible  <bruno@clisp.org>
51703
51704         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
51705         (mbi_init): Update.
51706         (mbi_avail, mbi_advance): Let the iteration end before the terminating
51707         NUL byte, not after it.
51708
51709 2005-08-16  Bruno Haible  <bruno@clisp.org>
51710
51711         * lib/strcase.h (strcasecmp): Add note in comments.
51712         * lib/strncasecmp.c: Use code from strcasecmp.c.
51713         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
51714         (strcasecmp): Work correctly in multibyte locales.
51715
51716 2005-08-16  Bruno Haible  <bruno@clisp.org>
51717
51718         * lib/mbiter.h: New file.
51719
51720 2005-08-16  Bruno Haible  <bruno@clisp.org>
51721
51722         * lib/mbfile.h: New file.
51723
51724 2005-08-16  Bruno Haible  <bruno@clisp.org>
51725
51726         * lib/mbchar.h: New file.
51727         * lib/mbchar.c: New file.
51728
51729 2005-08-16  Bruno Haible  <bruno@clisp.org>
51730
51731         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
51732         the valid ones. Makes the comparison operations transitive:
51733         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
51734         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
51735
51736 2005-08-15  Simon Josefsson  <jas@extundo.com>
51737
51738         * modules/ssize_t (License): Change to 'unlimited'.
51739
51740         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
51741
51742 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51743
51744         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
51745         Add comments for each pending glibc patch.
51746
51747 2005-08-15  Bruno Haible  <bruno@clisp.org>
51748
51749         * lib/regex.h (__restrict_arr): Don't define to __restrict if
51750         __cplusplus is defined.
51751
51752 2005-08-14  Jim Meyering  <jim@meyering.net>
51753
51754         Sync from coreutils.
51755
51756         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
51757         Use the hash-table-based cycle-detection code not just when
51758         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
51759         Reported by James Youngman in
51760         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
51761         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
51762         FTS_TIGHT_CYCLE_CHECK.
51763         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
51764         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
51765         once again.
51766         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
51767         * lib/fts.c (fd_safer): Remove decl.
51768         Include fcntl--.h rather than unistd-safer.h
51769         (fts_safe_changedir): Don't call fd_safer; no longer needed
51770         now that we include fcntl--.h.
51771
51772 2005-08-12  Simon Josefsson  <jas@extundo.com>
51773
51774         * modules/getndelim2: Use ssize_t module.
51775         * modules/getnline: Likewise.
51776         * modules/safe-read: Likewise.
51777         * modules/xreadlink: Likewise.
51778
51779         * modules/ssize_t: New file.
51780
51781 2005-08-12  Simon Josefsson  <jas@extundo.com>
51782
51783         * m4/readline.m4: Look for termcap, curses or ncurses if required.
51784
51785 2005-08-12  Simon Josefsson  <jas@extundo.com>
51786
51787         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51788         ssize_t.
51789
51790 2005-08-12  Simon Josefsson  <jas@extundo.com>
51791
51792         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
51793         readline, getdelim and check_version.
51794         (Support for systems lacking ISO C 99: Sizes of integer types):
51795         Add size_max.
51796
51797 2005-08-12  Bruno Haible  <bruno@clisp.org>
51798
51799         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
51800
51801 2005-08-11  Simon Josefsson  <jas@extundo.com>
51802
51803         * modules/readline: New file.
51804
51805         * modules/strnlen (Files): Add strnlen.h.
51806
51807 2005-08-11  Simon Josefsson  <jas@extundo.com>
51808
51809         * m4/readline.m4: New file.
51810
51811 2005-08-11  Simon Josefsson  <jas@extundo.com>
51812
51813         * lib/readline.h, readline.c: New file.
51814
51815 2005-08-11  Simon Josefsson  <jas@extundo.com>
51816
51817         * doc/gnulib.texi (Initial import, Finishing touches): Mention
51818         gl_AVOID.
51819
51820 2005-08-11  Bruno Haible  <bruno@clisp.org>
51821
51822         * lib/strnlen.h (strnlen): Change parameter name to match comment.
51823
51824 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
51825
51826         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
51827
51828 2005-08-10  Simon Josefsson  <jas@extundo.com>
51829
51830         * tests/test-iconvme.c: New file.
51831
51832 2005-08-10  Simon Josefsson  <jas@extundo.com>
51833
51834         * m4/strnlen.m4: New file.
51835
51836         * m4/strndup.m4: Don't check for strnlen declaration, done in
51837         strnlen.m4.
51838
51839 2005-08-10  Simon Josefsson  <jas@extundo.com>
51840
51841         * lib/strndup.c: Use strnlen.h.
51842
51843         * lib/strnlen.h: New file.
51844
51845 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
51846
51847         * README: Typos.
51848
51849 2005-08-02  Simon Josefsson  <jas@extundo.com>
51850
51851         * modules/readline: New file.
51852
51853 2005-08-02  Simon Josefsson  <jas@extundo.com>
51854
51855         * modules/getdelim: New file.
51856
51857         * modules/getline: Rewrite, don't use getndelim2.
51858
51859 2005-08-02  Simon Josefsson  <jas@extundo.com>
51860
51861         * m4/getline.m4: Separate out getdelim stuff into separate module.
51862
51863         * m4/getdelim.m4: New file.
51864
51865 2005-08-02  Simon Josefsson  <jas@extundo.com>
51866
51867         * lib/getline.h, getline.c: Rewrite.
51868
51869         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
51870
51871 2005-07-31  Bruno Haible  <bruno@clisp.org>
51872
51873         * lib/lock.h (gl_lock_initializer): New macro.
51874         (gl_lock_define_initialized): Use it.
51875         (gl_rwlock_initializer): New macro.
51876         (gl_rwlock_define_initialized): Use it.
51877         (gl_recursive_lock_initializer): New macro.
51878         (gl_recursive_lock_define_initialized): Use it.
51879
51880 2005-07-30  Karl Berry  <karl@gnu.org>
51881
51882         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
51883         Report from Ben Pfaff, regarding getopt.
51884
51885 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
51886
51887         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
51888         normal way.
51889         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
51890         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
51891         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
51892         (gl_GETOPT): Use the new macros.  Most of the implementation
51893         is moved to the new macros.  This is for programs like Emacs
51894         that don't want all the functionality of gl_GETOPT.
51895
51896 2005-07-26  Bruno Haible  <bruno@clisp.org>
51897
51898         * m4/lock.m4: Update from GNU gettext.
51899
51900 2005-07-26  Bruno Haible  <bruno@clisp.org>
51901
51902         * lib/lock.h: Update from GNU gettext.
51903         * lib/lock.c: Update from GNU gettext.
51904
51905 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
51906
51907         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
51908         obsolescent AC_TRY_RUN.  Include the default includes files, for
51909         'exit'.
51910
51911 2005-07-24  Bruno Haible  <bruno@clisp.org>
51912
51913         * modules/visibility: New file.
51914         * MODULES.html.sh (Misc): Add visibility.
51915
51916 2005-07-24  Bruno Haible  <bruno@clisp.org>
51917
51918         * m4/visibility.m4: New file.
51919
51920 2005-07-24  Bruno Haible  <bruno@clisp.org>
51921
51922         * doc/visibility.texi: New file.
51923
51924 2005-07-22  Bruno Haible  <bruno@clisp.org>
51925
51926         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
51927         $(ALLOCA_H), redundant through BUILT_SOURCES.
51928         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
51929         redundant through BUILT_SOURCES.
51930         * modules/byteswap (Makefile.am): Remove explicit dependency on
51931         $(BYTESWAP_H), redundant through BUILT_SOURCES.
51932         * modules/fnmatch (Makefile.am): Remove explicit dependency on
51933         $(FNMATCH_H), redundant through BUILT_SOURCES.
51934         * modules/getopt (Makefile.am): Remove explicit dependency on
51935         $(GETOPT_H), redundant through BUILT_SOURCES.
51936         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
51937         redundant through BUILT_SOURCES.
51938         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
51939         redundant through BUILT_SOURCES.
51940         * modules/stdbool (Makefile.am): Remove explicit dependency on
51941         $(STDBOOL_H), redundant through BUILT_SOURCES.
51942         * modules/stdint (Makefile.am): Remove explicit dependency on
51943         $(STDINT_H), redundant through BUILT_SOURCES.
51944         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
51945         Remove explicit dependency on $(SYSEXITS_H).
51946         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
51947
51948 2005-07-18  Simon Josefsson  <jas@extundo.com>
51949
51950         * lib/check-version.c (check_version): Accept identical versions too.
51951
51952 2005-07-18  Bruno Haible  <bruno@clisp.org>
51953
51954         * modules/lock: New file.
51955         * MODULES.html.sh (Multithreading): New section.
51956
51957 2005-07-18  Bruno Haible  <bruno@clisp.org>
51958
51959         * m4/lock.m4: New file, from GNU gettext.
51960
51961 2005-07-18  Bruno Haible  <bruno@clisp.org>
51962
51963         * lib/lock.h: New file, from GNU gettext.
51964         * lib/lock.c: New file, from GNU gettext.
51965
51966 2005-07-18  Bruno Haible  <bruno@clisp.org>
51967
51968         * lib/lock.h (gl_once_t): New type.
51969         (gl_once_define, gl_once): New macros.
51970         * lib/lock.c (fresh_once): New variable.
51971         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
51972         functions.
51973
51974 2005-07-16  Simon Josefsson  <jas@extundo.com>
51975
51976         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
51977         workaround, suggested by Bruno.
51978
51979 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
51980
51981         * modules/xalloc (Depends-on): Add xalloc-die.
51982         * modules/xvasprintf (Depends-on): Add xalloc-die.
51983
51984 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
51985
51986         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
51987         with a minor change.
51988
51989 2005-07-15  Bruno Haible  <bruno@clisp.org>
51990
51991         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
51992         When using lib/poll.c, define poll as rpl_poll.
51993
51994 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
51995
51996         * modules/argp (Depends-on): Remove unlocked-io.
51997
51998 2005-07-14  Derek Price  <derek@ximbiot.com>
51999
52000         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
52001         for glob symlink bug.
52002
52003 2005-07-14  Bruno Haible  <bruno@clisp.org>
52004
52005         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
52006         Instead, test for *_unlocked function declarations directly.
52007
52008 2005-07-11  Simon Josefsson  <jas@extundo.com>
52009
52010         * modules/size_max: New file.
52011
52012         * modules/xsize: Depend on size_max module for size_max.m4.
52013
52014 2005-07-11  Simon Josefsson  <jas@extundo.com>
52015
52016         * lib/size_max.h: New file.
52017
52018 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
52019
52020         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
52021         copyright symbol and the year.
52022         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
52023         (version_etc_va): Use parameterized copyright notice.
52024         Reword to conform to the current GNU coding standards.
52025
52026 2005-07-11  Karl Berry  <karl@gnu.org>
52027
52028         * doc/gnulib.texi (Quoting): new node.
52029         (Initial import): more info, from Patrice.
52030
52031 2005-07-11  Bruno Haible  <bruno@clisp.org>
52032
52033         * gnulib-tool (func_usage): Document option --avoid.
52034         (Command line options): Handle --avoid.
52035         (func_acceptable): New function.
52036         (func_modules_transitive_closure): Use it.
52037
52038 2005-07-11  Bruno Haible  <bruno@clisp.org>
52039
52040         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
52041         Reported by Jim Meyering.
52042
52043 2005-07-10  Bruno Haible  <bruno@clisp.org>
52044
52045         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
52046         Needed when size_t is smaller than 'unsigned int'.
52047         Reported by Paul Eggert.
52048
52049 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52050
52051         * modules/argp (Depends-on): Add unlocked-io
52052
52053 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52054
52055         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
52056         block of defines.
52057
52058 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
52059
52060         * config/srclist.txt: Comment out regcomp.c, since we have a porting
52061         fix now.
52062
52063 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
52064         and Paul Eggert  <eggert@cs.ucla.edu>
52065
52066         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
52067         in wint_t, not wchar_t.  Remove now-unnecessary cast.
52068
52069 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
52070
52071         * modules/regex (Files): Add lib/regex_internal.c,
52072         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
52073         (Depends-on): Add extensions.
52074         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
52075
52076 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
52077
52078         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
52079         pathconf.
52080         * m4/same.m4 (gl_SAME): Likewise.
52081         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
52082
52083         * m4/regex.m4: Adjust to new libc regex implementation.
52084         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
52085         all the .c and .h parts of (the new) regex.
52086         Quote the m4 stuff better.
52087         Check for RE_ICASE bug of old gnulib.
52088         Check for REG_STARTEND of recent libc.
52089         Rename local variables from jm_* to gl_*.
52090         Quote operand of "test -f".
52091         Say "recent enough" version of libc, not "version 2".
52092         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
52093         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
52094         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
52095         Remove check for btowc, isascii.
52096         Require AM_LANGINFO_CODESET.
52097
52098 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
52099
52100         * lib/regex.c, regex.h: Sync from libc.
52101         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
52102         * lib/regexec.c:
52103         New files, synced from libc, except that regex_internal.h
52104         currently has a small porting fix.
52105
52106 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
52107
52108         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
52109         regex_internal.c, regexec.c.
52110         Add regex_internal.h too, but as a comment, since the libc version
52111         is currently broken in gnulib mode.
52112
52113 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
52114
52115         Support programs like Emacs that use gnulib but not gettext.
52116         * MODULES.html.sh (Internationalization functions): Add gettext-h.
52117         * modules/gettext-h: New file.
52118         * modules/gettext (Files): Remove lib/gettext.h.
52119         (Depends-on): Add gettext-h.
52120         (Makefile.am): Remove lib_SOURCES.
52121         * modules/argmatch, modules/c-stack, modules/closeout:
52122         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
52123         * modules/execute, modules/file-type, modules/getaddrinfo:
52124         * modules/getopt, modules/human, modules/javacomp:
52125         * modules/javaexec, modules/mkdir-p, modules/obstack:
52126         * modules/openat, modules/pagealign_alloc, modules/pipe:
52127         * modules/quotearg, modules/regex, modules/rpmatch:
52128         * modules/unicodeio, modules/userspec, modules/version-etc:
52129         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
52130         * modules/xsetenv:
52131         Depend on gettext-h, not gettext.
52132
52133 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
52134
52135         * gnulib-tool (func_import): Add support for 'public domain' license.
52136         * modules/alloca, modules/atexit, modules/memmove:
52137         Now public domain, not GPL.
52138         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
52139         * modules/realloc, modules/strerror, modules/strtod:
52140         Now LGPL, not GPL.
52141
52142 2005-07-05  Bruno Haible  <bruno@clisp.org>
52143
52144         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
52145         autoconf CVS. Needed for mingw.
52146
52147 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52148
52149         Remove the dependency of the strftime module on the tzset module.
52150         * modules/strftime (Depends-on): Remove dependency on tzset.
52151
52152 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52153
52154         Remove the dependency of the strftime module on the tzset module.
52155         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
52156         gl_FUNC_TZSET_CLOBBER.
52157
52158 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52159
52160         Remove the dependency of the strftime module on the tzset module.
52161         * lib/strftime.c (my_strftime)
52162         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
52163         Copy the input structure, to work around some of the bug with
52164         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
52165         Solaris releases, you should also use the tzset module, but we won't
52166         require it as a dependency any more since we don't want LGPLed code
52167         to depend on GPLed code.
52168
52169 2005-07-02  Jim Meyering  <jim@meyering.net>
52170
52171         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
52172         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
52173         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
52174         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
52175
52176 2005-07-02  Jim Meyering  <jim@meyering.net>
52177
52178         * lib/backupfile.c (backup_args): Change a `0' to NULL.
52179
52180 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
52181
52182         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
52183         declares only 'struct timespec;' (!).
52184
52185 2005-07-01  Jim Meyering  <jim@meyering.net>
52186
52187         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
52188         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
52189         * lib/save-cwd.c, tempname.c:
52190         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
52191         and don't include <sys/file.h>).
52192
52193 2005-06-29  Jim Meyering  <jim@meyering.net>
52194
52195         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
52196         type name.  Use the variable name instead.
52197         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
52198         Likewise.
52199
52200 2005-06-28  Simon Josefsson  <jas@extundo.com>
52201
52202         * modules/check-version (Files): Add check-version.m4.
52203
52204 2005-06-28  Simon Josefsson  <jas@extundo.com>
52205
52206         * m4/check-version.m4: New file, suggested by Jim Meyering
52207         <jim@meyering.net>.
52208
52209 2005-06-28  Simon Josefsson  <jas@extundo.com>
52210
52211         * lib/check-version.h, lib/check-version.c: New files.
52212
52213 2005-06-28  Simon Josefsson  <jas@extundo.com>
52214
52215         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
52216         collision with global variable.  Better indentation.  Don't
52217         increment buffer pointer beyond buffer end.  Based on comments
52218         from Paul Eggert <eggert@cs.ucla.edu>.
52219
52220         * lib/base64.h: Indent.
52221
52222 2005-06-28  Simon Josefsson  <jas@extundo.com>
52223
52224         * doc/gnulib.texi (Library version handling): New section.
52225
52226 2005-06-28  Jim Meyering  <jim@meyering.net>
52227
52228         * check-module (find_included_lib_files): Hard-code another
52229         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
52230         but modules/fts-lgpl (correctly) does not list those files.
52231
52232         * modules/canonicalize (Files): Add lib/pathmax.h.
52233
52234 2005-06-25  Simon Josefsson  <jas@extundo.com>
52235
52236         * modules/check-version: New file.
52237
52238 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
52239
52240         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
52241         initializer of struct addrinfo, as an indication that we don't
52242         care how many members the structure has.
52243
52244 2005-06-24  Derek Price  <derek@ximbiot.com>
52245         and Bruno Haible  <bruno@clisp.org>
52246
52247         Remove stat module & update lstat.
52248         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
52249         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
52250         * m4/stat.m4: Remove this file.
52251
52252 2005-06-24  Derek Price  <derek@ximbiot.com>
52253         and Bruno Haible  <bruno@clisp.org>
52254
52255         Remove stat module & update lstat.
52256         * lib/stat.c: Remove this file...
52257         (slash_aware_lstat): ...moving this content and its support...
52258         * lib/lstat.c (rpl_lstat): ...into here.
52259         * lib/lstat.h: New file.
52260
52261 2005-06-24  Derek Price  <derek@ximbiot.com>
52262         and Bruno Haible  <bruno@clisp.org>
52263
52264         Remove stat module & update lstat.
52265         * config/srclist.txt (libc sources): Remove stat.
52266
52267 2005-06-24  Derek Price  <derek@ximbiot.com>
52268         and Bruno Haible  <bruno@clisp.org>
52269
52270         Remove stat module & update lstat.
52271         * MODULES.html.sh (stat): Remove.
52272         * MODULES.html: Regenerated.
52273         * modules/lstat (Description): Correct function name.
52274         (Files): Add "lstat.h".
52275         (Depends-on): Remove stat, add xalloc, stat-macros.
52276         * modules/stat: Remove this file.
52277         (Include): Add "lstat.h", remove <sys/stat.h>.
52278
52279 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
52280
52281         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
52282         (ranged_convert): Don't save conversion in a temporary struct.
52283         This causes a warning with GCC 4.0.0, and anyway in the typical
52284         case it's not worth the extra 100 bytes or so of code.
52285         (ranged_convert, __mktime_internal): When calling a function via a
52286         pointer P, use P () rather than (*P) (), as we now assume C89 or
52287         better.
52288
52289 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
52290
52291         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
52292         "who -r" failed to give output.  Problem reported by Tim Waugh.
52293
52294         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
52295         (xcalloc): Use it to avoid needless tests.
52296         Problem reported by Jim Meyering.
52297
52298 2005-06-20  Derek Price  <derek@ximbiot.com>
52299
52300         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
52301         unnecessary for Autoconfs > 2.59c.
52302
52303 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52304
52305         * lib/argp.h (__option_is_short): Check upper limit of
52306         __key. Isprint() requires its argument to have the value
52307         of an unsigned char or EOF.
52308
52309 2005-06-16  Jim Meyering  <jim@meyering.net>
52310
52311         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
52312         when either N or S is zero.
52313
52314 2005-06-16  Derek Price  <derek@ximbiot.com>
52315
52316         * m4/bison.m4: Declare YACC & YFLAGS precious.
52317
52318 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
52319
52320         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
52321         multibyte string or pattern, fall back on unibyte matching.
52322         Problem reported by James Youngman.
52323
52324 2005-06-08  Bruno Haible  <bruno@clisp.org>
52325
52326         * modules/csharpcomp: New file.
52327         * MODULES.html.sh (C#): Add csharpcomp.
52328
52329 2005-06-08  Bruno Haible  <bruno@clisp.org>
52330
52331         * m4/csharpcomp.m4: New file, from GNU gettext.
52332
52333 2005-06-08  Bruno Haible  <bruno@clisp.org>
52334
52335         * lib/csharpcomp.h: New file, from GNU gettext.
52336         * lib/csharpcomp.c: New file, from GNU gettext.
52337         * lib/csharpcomp.sh.in: New file, from GNU gettext.
52338
52339 2005-06-08  Bruno Haible  <bruno@clisp.org>
52340
52341         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
52342         warning on mingw.
52343
52344 2005-06-07  Derek Price  <derek@ximbiot.com>
52345
52346         Sync from CVS.
52347         * lib/glob_.h: Indent nested #ifdef.
52348
52349 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52350
52351         Sync from coreutils.
52352         Use "file name" when talking about file names, instead of "filename"
52353         or "path", as per the GNU coding standards.
52354         * lib/mkdir-p.c: Renamed from makepath.c.
52355         (make_dir_parents): Renamed from make_path.  All callers changed.
52356         * lib/mkdir-p.h: Likewise.  All includers changed.
52357         * lib/filenamecat.c: Renamed from path-concat.c.
52358         (file_name_concat): Renamed from path_concat.  All callers changed.
52359         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
52360         * lib/filenamecat.h: Likewise.  All includers changed.
52361         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
52362         in comments or local variable names.
52363         * lib/basename.c: Likewise.
52364         * lib/canonicalize.c, canonicalize.h: Likewise.
52365         * lib/dirname.c, dirname.h: Likewise.
52366         * lib/euidaccess.c: Likewise.
52367         * lib/exclude.c: Likewise
52368         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
52369         * lib/fsusage.c, fsuage.h: Likewise.
52370         * lib/fts.c, fts_.h: Likewise.
52371         * lib/getcwd.c: Likewise.
52372         * lib/getloadavg.c: Likewise.
52373         * lib/mkstemp.c: Likewise.
52374         * lib/mountlist.c, mountlist.h: Likewise.
52375         * lib/openat.c, openat.h: Likewise.
52376         * lib/readlink-stub.c: Likewise.
52377         * lib/readutmp.c, readutmp.h: Likewise.
52378         * lib/rename.c: Likewise.
52379         * lib/rmdir.c: Likewise.
52380         * lib/same.c: Likewise.
52381         * lib/savedir.c: Likewise.
52382         * lib/stripslash.c: Likewise.
52383         * lib/tempname.c: Likewise.
52384         * lib/xreadlink.c: Likewise.
52385         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
52386         All uses changed.
52387         * lib/exclude.h: Likewise.
52388
52389         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
52390         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52391         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
52392         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52393         * lib/pathmax.h: Include <limits.h> unconditionally, since other
52394         files have been getting away with it for years (MORE/BSD 4.3
52395         is extinct now).
52396         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
52397         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52398
52399         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
52400         Define to 256, not 255, as per modern POSIX.
52401
52402 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52403
52404         Sync from coreutils.
52405         Use "file name" when talking about file names, instead of "filename"
52406         or "path", as per the GNU coding standards.
52407         * MODULES.html.sh: mkdir-p renamed from makepath.
52408         filenamecat renamed from path-concat.
52409         * modules/filenamecat: Renamed from modules/path-concat.
52410         (Files): filenamecat.h and filenamecat.c renamed from
52411         path-concat.h and path-concat.c.
52412         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
52413         (Include): filenamecat.h, not path-concat.h.
52414         * modules/mkdir-p: Renamed from modules/makepath.
52415         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
52416         makepath.c.
52417         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
52418         (Include): mkdir-p.h, not makepath.h.
52419
52420 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52421
52422         Sync from coreutils.
52423         * m4/mkdir-p.m4: Renamed from makepath.m4.
52424         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
52425         Rename files from makepath.c to mkdir-p.c, and from
52426         makepath.h to mkdir-p.h.
52427         * m4/filenamecat.m4: Renamed from path-concat.m4.
52428         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
52429         Rename files from path-concat.c to filenamecat.c,
52430         and from path-concat.h to filenamecat.h.
52431         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
52432         "file name" in local variables or comments.
52433         * m4/rename.m4: Likewise.
52434
52435 2005-06-01  Bruno Haible  <bruno@clisp.org>
52436
52437         * modules/csharpexec: New file.
52438         * MODULES.html.sh (C#): New section.
52439
52440 2005-06-01  Bruno Haible  <bruno@clisp.org>
52441
52442         * m4/csharp.m4: New file, from GNU gettext.
52443         * m4/csharpexec.m4: New file, from GNU gettext.
52444
52445 2005-06-01  Bruno Haible  <bruno@clisp.org>
52446
52447         * lib/csharpexec.h: New file, from GNU gettext.
52448         * lib/csharpexec.c: New file, from GNU gettext.
52449         * lib/csharpexec.sh.in: New file, from GNU gettext.
52450
52451 2005-05-31  Derek Price  <derek@ximbiot.com>
52452             Paul Eggert  <eggert@cs.ucla.edu>
52453
52454         Sync from cvs.
52455         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
52456
52457 2005-05-31  Derek Price  <derek@ximbiot.com>
52458             Paul Eggert  <eggert@cs.ucla.edu>
52459
52460         Sync from cvs.
52461         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
52462
52463 2005-05-29  Derek Price  <derek@ximbiot.com>
52464
52465         * config/srclist.txt (glob_.h, glob.c): Add these files.
52466
52467 2005-05-29  Derek Price  <derek@ximbiot.com>
52468
52469         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
52470         * modules/glob: New file.
52471         * modules/getlogin_r: Add link to POSIX spec in description.
52472
52473 2005-05-29  Derek Price  <derek@ximbiot.com>
52474             Paul Eggert  <eggert@cs.ucla.edu>
52475
52476         * m4/glob.m4: New file.
52477
52478 2005-05-29  Derek Price  <derek@ximbiot.com>
52479             Paul Eggert  <eggert@cs.ucla.edu>
52480
52481         * lib/glob_.h, lib/glob.c: New files.
52482
52483 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52484
52485         * modules/fts (Files): Remove m4/inttypes-pri.m4.
52486         * modules/fts-lgpl (Depends-on): Remove gettext.
52487
52488 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52489
52490         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
52491         and don't require gt_INTTYPES_PRI.
52492
52493 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52494
52495         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
52496
52497         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
52498         the configuration hassle isn't worth it.
52499         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
52500         (LONGEST_MODIFIER, PRIuMAX): Remove.
52501
52502 2005-05-27  Bruno Haible  <bruno@clisp.org>
52503
52504         * lib/getlogin_r.h: Remove second include of <stddef.h>.
52505
52506 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
52507
52508         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
52509         _POSIX_PTHREAD_SEMANTICS for Solaris.
52510
52511 2005-05-25  Derek Price  <derek@ximbiot.com>
52512
52513         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
52514
52515 2005-05-25  Derek Price  <derek@ximbiot.com>
52516             Paul Eggert  <eggert@cs.ucla.edu>
52517
52518         * modules/getlogin_r, m4/getlogin_r.m4: New files.
52519         * lib/getlogin_r.c, getlogin_r.h: New files.
52520
52521 2005-05-25  Bruno Haible  <bruno@clisp.org>
52522             Derek Price  <derek@ximbiot.com>
52523
52524         * lib/getlogin_r.h: Simplify API documentation.
52525
52526 2005-05-23  Derek Price  <derek@ximbiot.com>
52527
52528         * modules/minmax (Files): Add m4/minmax.m4.
52529         (configure.ac): Add gl_MINMAX.
52530
52531 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
52532
52533         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
52534         so that unistd-safer.h (GPL'ed code) need not be included.
52535
52536 2005-05-22  Bruno Haible  <bruno@clisp.org>
52537
52538         * m4/minmax.m4: New file.
52539         Based on a patch by Derek Price <derek@ximbiot.com>.
52540
52541 2005-05-22  Bruno Haible  <bruno@clisp.org>
52542
52543         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
52544         (INT64_MIN): Fix definition.
52545         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
52546
52547         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
52548         NEED_SIGNED_INT_TYPES.
52549
52550         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
52551         HAVE_SYSTEM_INTTYPES.
52552
52553 2005-05-22  Bruno Haible  <bruno@clisp.org>
52554
52555         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
52556         Also include <sys/param.h> if it defines MIN, MAX.
52557         Based on a patch by Derek Price <derek@ximbiot.com>.
52558
52559 2005-05-21  Jim Meyering  <jim@meyering.net>
52560
52561         * modules/fts (Files): Add m4/inttypes-pri.m4.
52562         (Depends-on): Add lstat and remove gettext.  Alphabetize.
52563
52564 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52565
52566         New fts module.
52567         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
52568         (setup_dir, free_dir): New functions.
52569         (enter_dir, leave_dir): Define trivial
52570         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
52571         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
52572         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
52573         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
52574         Move to fts-cycle.c.
52575         (fts_open): Use setup_dir.
52576         (fts_close): Use free_dir.
52577         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
52578         This adds a label and some gotos, but the alternatives were messier.
52579         Check for memory allocation failure when entering a dir.
52580         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
52581         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
52582         (FTS): New member fts_cycle, that is a union that contains the
52583         old active_dir_ht and cycle_state.  All uses changed to mention
52584         fts_cycle.ht and fts_cycle.state.
52585         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
52586         fts.c, with the following changes:
52587         (setup_dir, free_dir): New functions.
52588         (enter_dir): Now returns bool.  Return true if successful, false
52589         if memory exhausted.  All callers changed.
52590         Do not bother partly cleaning up on
52591         memory allocation failure; that is free_dir's job.
52592         However, free ad if hash_insert fails, to avoid memory leak.
52593         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
52594         fts->fts_options to see which union member to use.
52595
52596 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52597
52598         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
52599         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
52600
52601 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52602
52603         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
52604
52605 2005-05-20  Jim Meyering  <jim@meyering.net>
52606
52607         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
52608         Now a macro, to pacify GCC.
52609
52610 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
52611
52612         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
52613         of -1.
52614
52615 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
52616
52617         * lib/chown.c (rpl_chown): Return -1 on failure.
52618
52619 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
52620
52621         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
52622         Don't check for stddef.h.
52623         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
52624         don't use its results.
52625         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
52626         since we include them unconditionally.  Don't require
52627         AM_STDBOOL_H, since stdbool is a prerequisite.
52628         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
52629         since we assume C89 or better.
52630         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
52631         as we don't use their results.
52632         Don't check for fchdir, memmove, memset, strrchr, as we use
52633         them unconditionally.
52634         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
52635         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
52636
52637 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
52638
52639         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
52640         Include <stddef.h> unconditionally, since we assume C89 now.
52641         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
52642         * lib/fts.c: Include fts_.h first, to check interface.
52643         Do not include intprops.h; no longer needed.
52644         Include cycle-check.h and hash.h, since fts_.h no longer does.
52645         Remove unnecessary casts of closedir to void.
52646         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
52647         decide whether to decrement nlinks.
52648         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
52649         (FTS): Use struct hash_table * instead of Hash_table, so that
52650         we no longer need to include hash.h here.
52651
52652 2005-05-18  Jim Meyering  <jim@meyering.net>
52653
52654         * modules/dirfd (License): Change to LGPL.  Most of the code
52655         is already in the public domain.
52656
52657 2005-05-18  Jim Meyering  <jim@meyering.net>
52658
52659         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
52660         Reported by Yoann Vandoorselaere.
52661
52662 2005-05-17  Jim Meyering  <jim@meyering.net>
52663
52664         * m4/fts.m4: New file, from coreutils.
52665
52666 2005-05-17  Jim Meyering  <jim@meyering.net>
52667
52668         * lib/fts.c, lib/fts_.h: New files, from coreutils.
52669
52670 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52671
52672         Sync from coreutils.
52673         * m4/unlinkdir.m4: New file.
52674
52675 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52676
52677         Sync from coreutils.
52678         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
52679         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
52680         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
52681         White space changes only.
52682         * lib/makepath.c (make_path): Port to hosts where leading "//" is
52683         special.
52684         * lib/yesno.c: Include getline.h, not ctype.h.
52685         (yesno): Don't remove leading white space; POSIX doesn't allow it.
52686         Use getline to remove arbitrary restriction on response length.
52687
52688 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52689
52690         * config/srclist-update: Spell out "Street" in FSF postal
52691         mail address; this is the style the FSF seems to prefer.
52692
52693         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
52694         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
52695         this updates FSF postal mail address.
52696
52697         Sync from coreutils.
52698         * modules/unlinkdir: New file.
52699         * modules/yesno (Depends-on): Add getline.
52700         * MODULES.html.sh (File system functions): Add unlinkdir.
52701
52702 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
52703
52704         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
52705         lib/strsep.h:
52706         Change the initial comment to refer to GPL, not LGPL.
52707         gnulib-tool will change it to LGPL as needed.
52708
52709         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
52710         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
52711         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
52712         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
52713         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
52714         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
52715         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
52716         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
52717         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
52718         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
52719         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
52720         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
52721         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
52722         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
52723         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
52724         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
52725         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
52726         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
52727         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
52728         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
52729         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
52730         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
52731         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
52732         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
52733         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
52734         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
52735         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
52736         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
52737         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
52738         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
52739         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
52740         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
52741         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
52742         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
52743         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
52744         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
52745         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
52746         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
52747         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
52748         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
52749         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
52750         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
52751         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
52752         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
52753         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
52754         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
52755         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
52756         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
52757         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
52758         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
52759         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
52760         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
52761         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
52762         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
52763         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
52764         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
52765         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
52766         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
52767         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
52768         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
52769         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
52770         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
52771         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
52772         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
52773         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
52774         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
52775         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
52776         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
52777         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
52778         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
52779         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
52780         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
52781         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
52782         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
52783         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
52784         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
52785         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
52786         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
52787         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
52788         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
52789         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
52790         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
52791         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
52792         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
52793         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
52794         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
52795         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
52796         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
52797         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
52798         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
52799         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
52800         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
52801         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
52802         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
52803         lib/yesno.c, lib/yesno.h:
52804         Update FSF postal mail address.
52805
52806 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
52807
52808         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
52809         tests/test-memmem.c, tests/test-stpncpy.c:
52810         Update FSF postal mail address.
52811
52812 2005-05-13  Bruno Haible  <bruno@clisp.org>
52813
52814         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
52815         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
52816         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
52817         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
52818         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
52819         Add support for 64-bit integers in the MSVC compiler.
52820
52821 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52822
52823         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
52824
52825 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
52826
52827         * gnulib-tool (func_import): Sort and uniquify recommended includes.
52828
52829 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
52830
52831         * doc/getdate.texi (General date syntax): Don't say that date
52832         date --iso-8601=ns generates acceptable dates; it doesn't yet.
52833         Problem reported by Nic Ferrier.
52834
52835 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52836
52837         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
52838         specified in ai_socktype. Fix invalid ai_protocol
52839         check. ai_protocol is usually set to 0 or depending on
52840         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
52841         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
52842         ai_socktype / ai_protocol in the returned addrinfo structure.
52843
52844 2005-05-10  Simon Josefsson  <jas@extundo.com>
52845
52846         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
52847         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52848
52849 2005-05-10  Karl Berry  <karl@gnu.org>
52850
52851         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
52852         (from http://www.gnu.org/licenses).
52853         * doc/COPYING.LIB: also rename to COPYING.LESSER.
52854         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
52855         fdl.texi suffices.
52856
52857 2005-05-10  Karl Berry  <karl@gnu.org>
52858
52859         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
52860         (COPYING.DOC): remove.
52861
52862         * config/srclist-update: new FSF address.
52863
52864 2005-05-10  Derek Price  <derek@ximbiot.com>
52865
52866         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
52867         possible.
52868
52869 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52870             Bruno Haible  <bruno@clisp.org>
52871
52872         * modules/inet_ntop: New file.
52873         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52874         inet_ntop.
52875
52876 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52877             Bruno Haible  <bruno@clisp.org>
52878
52879         * m4/inet_ntop.m4: New file.
52880
52881 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52882             Bruno Haible  <bruno@clisp.org>
52883
52884         * lib/inet_ntop.h: New file.
52885         * lib/inet_ntop.c: New file, from glibc with modifications.
52886
52887 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
52888
52889         * modules/time_r (License): Change to LGPL.
52890         * modules/extensions (License): Change to LGPL.  Actually,
52891         the license is more permissive than that, but currently gnulib-tool
52892         doesn't know how to handle more-permissive licenses.
52893
52894         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
52895         Problem reported by Dave Love.
52896
52897 2005-05-08  Jim Meyering  <jim@meyering.net>
52898
52899         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
52900         blank.
52901
52902 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
52903
52904         * modules/argmatch (Depends-on): Add stdbool.
52905         * modules/backupfile (Depends-on): Likewise.
52906         * modules/chdir-long (Depends-on): Likewise.
52907         * modules/closeout (Depends-on): Likewise.
52908         * modules/cycle-check (Depends-on): Likewise.
52909         * modules/dirname (Depends-on): Likewise.
52910         * modules/fnmatch (Depends-on): Likewise.
52911         * modules/fsusage (Depends-on): Likewise.
52912         * modules/fwriteerror (Depends-on): Likewise.
52913         * modules/getcwd (Depends-on): Likewise.
52914         * modules/getloadavg (Depends-on): Likewise.
52915         * modules/hard-locale (Depends-on): Likewise.
52916         * modules/makepath (Depends-on): Likewise.
52917         * modules/mountlist (Depends-on): Likewise.
52918         * modules/nanosleep (Depends-on): Likewise.
52919         * modules/posixtm (Depends-on): Likewise.
52920         * modules/quotearg (Depends-on): Likewise.
52921         * modules/readtokens (Depends-on): Likewise.
52922         * modules/readtokens0 (Depends-on): Likewise.
52923         * modules/readutmp (Depends-on): Likewise.
52924         * modules/save-cwd (Depends-on): Likewise.
52925         * modules/strftime (Depends-on): Likewise.
52926         * modules/userspec (Depends-on): Likewise.
52927         * modules/utimecmp (Depends-on): Likewise.
52928         * modules/xgetcwd (Depends-on): Likewise.
52929         * modules/xnanosleep (Depends-on): Likewise.
52930         * modules/xstrtod (Depends-on): Likewise.
52931         * modules/yesno (Depends-on): Likewise.
52932
52933 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
52934
52935         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
52936         needless checks.
52937
52938 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
52939
52940         Merge from coreutils.  Among other things,
52941         add bulletproofing for cases where stdin, stdout, or stderr are closed.
52942         * lib/fd-safer.c: New file.
52943         * lib/fcntl-safer.h, open-safer.c: Remove.
52944         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
52945         * lib/dup-safer.c: Include unistd-safer.h first.
52946         Don't include errno.h.
52947         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
52948         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
52949         * lib/file-type.c: Rely on file-type.h change.
52950         * lib/getloadavg.c: Include unistd-safer.h.
52951         (getloadavg): Use safer open.
52952         * lib/getusershell.c: Include "stdio-safer.h".
52953         (getusershell): Use safer fopen.
52954         * lib/long-options.c (long_options): Use NULL rather than 0.
52955         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
52956         'free'.
52957         * lib/modechange.c: Likewise.
52958         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
52959         (MODE_DONE): New constant.
52960         (struct mode_change): Remove 'next' member.
52961         (make_node_op_equals): New function; like the old one of the
52962         same name, except it allocates an array.
52963         (mode_compile, mode_create_from_ref): Use it.
52964         (mode_compile): Allocate result as an array, not a linked list.
52965         Parse octal string ourself, so that we catch mistakes like "+0".
52966         (mode_adjust): Arg is an array, not a linked list.
52967         * lib/modechange.c: Include stat-macros.h, xalloc.h.
52968         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
52969         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
52970         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
52971         Remove.  This is now stat-macros.h's job.
52972         (talloc): Remove.  All callers replaced by xalloc, so that
52973         our invokers don't have to worry about reporting memory failures.
52974         (make_node_op_equals): Remove.
52975         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
52976         New constants.
52977         (struct mode_change): Moved here from modechange.h.
52978         (mode_append_entry): Remove.
52979         (mode_compile): Remove MASKED_OPS arg, since it encouraged
52980         apps to have incorrect behavior.  Use simpler algorithm for head
52981         and tail.  Don't futz with umask; that's now the job of mode_adjust.
52982         Detect more invalid usages rather than having somewhat-random behavior.
52983         Don't insert an "a=" action, as that leads to incorrect behavior.
52984         (mode_compile, mode_create_from_ref): Return NULL on error instead
52985         of an enum, since now there's only one way to have an error.  All
52986         callers changed.
52987         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
52988         at the correct time.  Simplify calculation of "+u" and its ilk.
52989         Don't mishandle "+X".
52990         (mode_free): Remove "register" and localize decls.
52991         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
52992         (struct mode_change): Move to modechange.c; callers don't
52993         need to see this stuff.
52994         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
52995         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
52996         (mode_change, mode_adjust): Reflect the new signatures noted above.
52997         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
52998         that might redefine system include files.
52999         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
53000         (my_usleep): Use NULL rather than (void *) 0.
53001         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
53002         Use siginterrupt to specify that system calls should be interrupted.
53003         (rpl_nanosleep): Move initialization of suspended closer to call of
53004         my_usleep.
53005         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
53006         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
53007         (desirable_utmp_entry): New function.
53008         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
53009         using x2nrealloc, to simplify logic.
53010         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
53011         size calculation.  Do not assume utmp file is a regular file.
53012         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
53013         (READ_UTMP_CHECK_PIDS): New constant.
53014         * lib/save-cwd.c: Include unistd-safer.h.
53015         (save_cwd): Use fd_safer.
53016         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
53017         [!_LIBC] Include "stat-macros.h" instead.
53018         * lib/unistd-safer.h (fd_safer): New decl.
53019
53020 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
53021
53022         * modules/getloadavg (Depends-on): Add unistd-safer.
53023         * modules/getusershell (Depends-on): Add stdio-safer.
53024         * modules/lstat (Depends-on): Remove xalloc.
53025         * modules/mkstemp (Depends-on): Add stat-macros.
53026         * modules/modechange (Depends-on): Remove xstrtol.
53027         Add stat-macros, xalloc.
53028         * modules/save-cwd (Depends-on): Add unistd-safer.
53029         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
53030         * modules/unistd-safer (Files): Add lib/fd-safer.c
53031         (Makefile.am): Remove lib_SOURCES.
53032
53033         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
53034         Remove fcntl-safer; unistd-safer supersedes it.
53035
53036 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
53037
53038         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
53039         AC_HEADER_STAT.
53040         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
53041         (gl_PREREQ_CHOWN): Remove.
53042         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
53043         it.  Don't require AC_HEADER_STAT.
53044         (gl_PREREQ_LSTAT): Remove.
53045         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
53046         Don't require AC_HEADER_STAT.
53047         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
53048         (gl_PREREQ_RMDIR): Remove.
53049         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
53050         mention stat-macros.h or AC_HEADER_STAT, since we'll make
53051         the stat-macros module a prerequisite.
53052         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
53053         * m4/filemode.m4 (gl_FILEMODE): Likewise.
53054         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
53055         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
53056         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
53057         variable names.
53058         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
53059         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
53060         variable prefixes.
53061         * m4/fcntl-safer.m4: Remove.
53062         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
53063         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
53064         Invoke gl_PREREQ_FD_SAFER.
53065         (gl_PREREQ_FD_SAFER): New macro.
53066         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
53067         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
53068         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
53069         Remove duplicate call to AC_LIBOBJ(readutmp).
53070         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
53071
53072         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
53073         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
53074
53075 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
53076
53077         * MODULES.html.sh (Misc): Add byteswap.
53078
53079 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
53080
53081         * modules/getcwd (Depends-on): Add extensions.
53082         * modules/openat (Depends-on): Likewise.
53083
53084 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
53085
53086         * modules/byteswap: New file.
53087
53088 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
53089
53090         * m4/byteswap.m4: New file.
53091
53092 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
53093
53094         * lib/byteswap_.h: New file.
53095
53096 2005-04-25  Karl Berry  <karl@gnu.org>
53097
53098         * m4/gettext.m4: Update from GNU gettext 0.14.4.
53099
53100 2005-04-25  Albert Chin  <china@thewrittenword.com>
53101
53102         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
53103         Toolkit C bug.
53104
53105 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
53106
53107         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
53108         (func_ln_if_changed) Remove forcibly for no error message
53109         in case file does not exist.
53110
53111 2005-04-19  Simon Josefsson  <jas@extundo.com>
53112
53113         * gnulib-tool (Options): Make --symlink mean --symbolic.
53114
53115 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
53116
53117         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
53118
53119 2005-04-16  Simon Josefsson  <jas@extundo.com>
53120
53121         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
53122
53123 2005-04-15  Simon Josefsson  <jas@extundo.com>
53124
53125         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
53126
53127 2005-04-15  Simon Josefsson  <jas@extundo.com>
53128
53129         * gnulib-tool: Rename --symlink to --symbolic.
53130
53131 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
53132
53133         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
53134         symbolic links to files instead of copying/moving.  Add --aux-dir,
53135         specifying directory relative --dir where auxiliary build tools
53136         are placed.
53137
53138 2005-04-14  Bruno Haible  <bruno@clisp.org>
53139
53140         * modules/allocsa (License): Change to LGPL.
53141         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53142
53143 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
53144
53145         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
53146         that "UTC +1 second" continues to work.  Problem reported
53147         by Dmitry V. Levin.
53148         (relunit_snumber): New rule.
53149         (relunit): Use it.
53150
53151 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
53152
53153         * lib/getdate.y (universal_time_zone_table): New constant.
53154         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
53155         universal_time_zone_table.
53156         (lookup_zone): Prefer universal_time_zone_table to
53157         local_time_zone_table, so that "GMT" time stamps are allowed in
53158         London during the summer.  Problem reported by Ian Abbott.
53159
53160 2005-04-12  Jim Meyering  <jim@meyering.net>
53161
53162         * lib/human.c (humblock): Set *options even when returning due to
53163         xstrtoumax conversion failure.  Thanks to a used-uninitialized
53164         warning from gcc-4.
53165
53166 2005-04-09  Jim Meyering  <jim@meyering.net>
53167
53168         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
53169         -Wuninitialized: initialize tm0.tm_year.
53170
53171 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
53172
53173         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
53174         count, since there's no maximum.  All uses changed.
53175         Add member dsts_seen.
53176         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
53177         not being INT_MAX.
53178         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
53179         Use pc_rels_seen to decide whther a date is absolute.
53180
53181         * lib/getdate.y (number): Don't overwrite year.
53182         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
53183         check.
53184
53185 2005-04-02  Simon Josefsson  <jas@extundo.com>
53186
53187         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
53188         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
53189
53190 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
53191
53192         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
53193         where no absolute path name can be longer than PATH_MAX.
53194
53195 2005-03-27  Jim Meyering  <jim@meyering.net>
53196
53197         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
53198
53199 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
53200
53201         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
53202         "one's complement" -> "ones' complement" in comment, as per Knuth.
53203         "value of type" -> "type or expression" in comment.
53204         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
53205
53206 2005-03-26  Jim Meyering  <jim@meyering.net>
53207
53208         Comment nits.
53209         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
53210         Correct typos: s/or/of/.
53211
53212 2005-03-26  Jim Meyering  <jim@meyering.net>
53213
53214         * modules/check-include-files: Move to ../ and rename to...
53215         * check-module: ...this.
53216
53217 2005-03-25  Jim Meyering  <jim@meyering.net>
53218
53219         * modules/xvasprintf (Files): Add xalloc.h.
53220
53221 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
53222
53223         * modules/gettext (Files): config/config.rpath ->
53224         build-aux/config.rpath
53225         * modules/iconv (Files): Likewise.
53226         Problem reported by Oskar Liljeblad.
53227
53228 2005-03-23  Jim Meyering  <jim@meyering.net>
53229
53230         * modules/check-include-files: New script to check for
53231         missing dependencies, multiple includes, etc.
53232
53233         * modules/c-strtold (Depends-on): Add xalloc.
53234         * modules/c-strtod (Depends-on): Add xalloc.
53235         * modules/hash (Depends-on): Add xalloc.
53236         (Files): Remove lib/xalloc.h.
53237
53238         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
53239         * modules/userspec (Files): Add lib/inttostr.h.
53240
53241 2005-03-23  Jim Meyering  <jim@meyering.net>
53242
53243         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
53244
53245 2005-03-22  Jim Meyering  <jim@meyering.net>
53246
53247         * modules/stat-macros: New module.
53248         * modules/canonicalize, modules/euidaccess, modules/file-type,
53249         * modules/filemode, modules/lchown, modules/makepath,
53250         * modules/rmdir, modules/stat: Depend on new stat-macros module
53251         rather than listing lib/stat-macros.h manually.
53252         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
53253
53254 2005-03-22  Jim Meyering  <jim@meyering.net>
53255
53256         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
53257
53258 2005-03-22  Bruno Haible  <bruno@clisp.org>
53259
53260         * config/srclist.txt: Replace target directory 'config' with
53261         'build-aux'.
53262         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
53263         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
53264         ../build-aux/.
53265
53266 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
53267
53268         * modules/chdir-long (Depends-on): Add mempcpy.
53269
53270         * modules/acl, modules/backupfile, modules/c-strtod,
53271         modules/c-strtold, modules/canon-host, modules/canonicalize,
53272         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
53273         modules/exclude, modules/exitfail, modules/file-type,
53274         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
53275         modules/getdate, modules/getline, modules/getpagesize,
53276         modules/getpass, modules/getugroups, modules/group-member,
53277         modules/hard-locale, modules/hash, modules/human, modules/idcache,
53278         modules/inttostr, modules/long-options, modules/makepath,
53279         modules/md5, modules/memcasecmp, modules/memcoll,
53280         modules/modechange, modules/mountlist, modules/path-concat,
53281         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
53282         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
53283         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
53284         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
53285         modules/strftime, modules/strndup, modules/strverscmp,
53286         modules/timespec, modules/unlocked-io, modules/userspec,
53287         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
53288         modules/yesno:
53289         Remove lib_SOURCES line from Makefile.am section, as this is now
53290         done automatically by the corresponding Autoconf macro.
53291
53292 2005-03-21  Jim Meyering  <jim@meyering.net>
53293
53294         Changes imported from coreutils.
53295
53296         * lib/cycle-check.c: Don't include xalloc.h.
53297
53298         * lib/path-concat.c: Don't include assert.h.
53299         (path_concat): Remove assertion that would have triggered
53300         for ABASE starting with more than one slash.
53301         Reported by Andreas Schwab.
53302
53303         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
53304         properly when ABASE is an absolute file name.
53305         Correct the description of this function.
53306         Include <assert.h>.
53307         Add an assertion and a test driver.
53308         This fixes a bug introduced on 2004-07-02.
53309         Andreas Schwab reported the resulting failure of cp --parents:
53310         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
53311
53312 2005-03-21  Jim Meyering  <jim@meyering.net>
53313
53314         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
53315         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
53316
53317 2005-03-21  Jim Meyering  <jim@meyering.net>
53318         and  Paul Eggert  <eggert@cs.ucla.edu>
53319
53320         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
53321         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
53322         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
53323         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
53324         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
53325         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
53326         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
53327         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
53328         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
53329         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
53330         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
53331         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
53332         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
53333         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
53334         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
53335         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
53336         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
53337         for these modules.
53338
53339 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
53340
53341         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
53342         (which shouldn't happen), generate nothing instead of returning 0
53343         immediately, so that nstrftime (NULL, ...) doesn't return 0.
53344
53345 2005-03-16  Bruno Haible  <bruno@clisp.org>
53346
53347         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
53348         HAVE_LONGLONG_64BIT.
53349
53350 2005-03-16  Bruno Haible  <bruno@clisp.org>
53351
53352         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
53353         HAVE_LONGLONG_64BIT.
53354
53355 2005-03-16  Bruno Haible  <bruno@clisp.org>
53356
53357         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
53358         HAVE_LONGLONG_64BIT.
53359
53360 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
53361
53362         * lib/strftime.c (my_strftime): Prepend space to format so that we can
53363         reliably distinguish strftime failure from empty output on POSIX
53364         hosts.
53365
53366 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
53367
53368         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
53369         (iconv_string): Don't guess a size-zero buffer, as that might cause
53370         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
53371         result would be 'too large', where 'too large' is (heuristically)
53372         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
53373         overflow concerns.  This will prevent some unwanted malloc failures
53374         when the inputs are very large.
53375
53376 2005-03-15  Karl Berry  <karl@gnu.org>
53377
53378         * config/srclist.txt (config.rpath): from gettext.
53379         * config/config.rpath: update.
53380
53381 2005-03-15  Bruno Haible  <bruno@clisp.org>
53382
53383         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
53384         to 'negate'.
53385
53386         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
53387         variable.
53388
53389         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
53390         results.
53391
53392 2005-03-14  Simon Josefsson  <jas@extundo.com>
53393
53394         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
53395         <fx@gnu.org>.
53396
53397 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
53398
53399         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
53400         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
53401         intprops.h.
53402         * lib/strtol.c: Likewise.
53403
53404 2005-03-14  Jim Meyering  <jim@meyering.net>
53405
53406         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
53407         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
53408         to be nonzero so that we (and caller) can detect the difference
53409         between a valid zero-length expansion and an error return, even
53410         when the underlying strftime fails before writing anything into
53411         that location.
53412
53413 2005-03-14  Bruno Haible  <bruno@clisp.org>
53414
53415         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
53416         Update from GNU gettext 0.14.3.
53417
53418 2005-03-10  Jim Meyering  <jim@meyering.net>
53419
53420         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
53421
53422 2005-03-10  Jim Meyering  <jim@meyering.net>
53423
53424         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
53425         so that this module works on systems without fchdir.
53426
53427 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
53428
53429         Factor int-properties macros into a single file, except for
53430         glibc-related files.
53431         * lib/intprops.h: New file.
53432         * lib/getloadavg.c: Include it instead of limits.h.
53433         (INT_STRLEN_BOUND): Remove.
53434         * lib/human.c: Include intprops.h.
53435         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
53436         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
53437         302/1000.
53438         * lib/inttostr.h: Include intprops.h instead of limits.h.
53439         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
53440         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
53441         for consistency with intprops.h.
53442         (time_t_is_integer, twos_complement_arithmetic): Use them.
53443         * lib/sig2str.h: Include <signal.h>, intprops.h.
53444         (INT_STRLEN_BOUND): Remove.
53445         * lib/strftime.c (TYPE_SIGNED): Remove.
53446         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
53447         * lib/strtol.c: Adjust comments to match intprops.h.
53448         * lib/userspec.c: Include intprops.h.
53449         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
53450         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
53451         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
53452         instead of rolling our own expressions.
53453         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
53454
53455         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
53456         instead of int.
53457         (my_strftime): Do not mishandle years close to INT_MAX, by doing
53458         the right thing even if adding 1900 would overflow.  Similarly
53459         for tm_mon + 1 and tm_yday + 1.
53460         Make %Y always equivalent to %C%y, and similarly for %G and %g.
53461         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
53462         (DO_SIGNED_NUMBER): New macro.
53463         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
53464
53465 2005-03-07  Bruno Haible  <bruno@clisp.org>
53466
53467         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
53468
53469 2005-03-07  Bruno Haible  <bruno@clisp.org>
53470
53471         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
53472
53473 2005-03-04  Derek R. Price  <derek@ximbiot.com>
53474
53475         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
53476         (func_import): Only replace files via --import when they have actually
53477         changed.
53478
53479 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53480
53481         * m4/mmap-anon.m4: New file.
53482         * m4/pagealign_alloc.m4: New file.
53483
53484 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53485             Bruno Haible  <bruno@clisp.org>
53486
53487         * modules/pagealign_alloc: New file.
53488         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
53489
53490 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53491             Bruno Haible  <bruno@clisp.org>
53492
53493         * lib/pagealign_alloc.h: New file.
53494         * lib/pagealign_alloc.c: New file.
53495
53496 2005-03-03  Bruno Haible  <bruno@clisp.org>
53497
53498         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
53499         Use an all-permissive copyright notice, recommended by RMS.
53500
53501 2005-03-02  Bruno Haible  <bruno@clisp.org>
53502
53503         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
53504         of AIX, the replacement has to be done only after <string.h> is
53505         included, therefore not in config.h. stpncpy.h does the replacement,
53506         and stpncpy.c uses it.
53507
53508 2005-03-02  Bruno Haible  <bruno@clisp.org>
53509
53510         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
53511         stpncpy.c uses it.
53512
53513 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53514
53515         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
53516         The workaround isn't strictly needed for POSIX conformance, and
53517         it's too much of a pain to configure and maintain.  We'll ask
53518         people to fix their kernels instead.
53519         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
53520         (NANOSLEEP_BUG_WORKAROUND): Remove.
53521         (xnanosleep): Remove the workaround.
53522
53523 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53524
53525         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
53526         Reported by Derek Price.
53527         (Include): Add "timespec.h".
53528
53529         * modules/xnanosleep (Depends-on): Remove gethrxtime.
53530
53531 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53532
53533         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
53534         to detect nanosleep bug.
53535
53536 2005-03-01  Bruno Haible  <bruno@clisp.org>
53537
53538         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
53539
53540 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
53541
53542         * modules/gethrxtime: New file.
53543         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
53544         (Depends-on): Add gethrxtime.
53545         (configure.ac): Add gl_XNANOSLEEP.
53546         (Makefile.am): Remove lib_SOURCES line.
53547
53548 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53549
53550         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
53551         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
53552
53553 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53554
53555         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
53556         * lib/timespec.h (gettime): Return void, since it always
53557         succeeds now.  All uses changed.
53558         * lib/gettime.c (gettime) Likewise.
53559         [HAVE_NANOTIME]: Prefer nanotime.
53560         Assume gettimeofday succeeds, as POSIX requires.
53561         Assime time () succeeds, since other code already does.
53562         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
53563         (timespec_subtract): Remove.
53564         (NANOSLEEP_BUG_WORKAROUND): New constant.
53565         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
53566         things considerably.  Use it only on GNU/Linux hosts, since the
53567         workaround shouldn't be needed elsewhere.
53568
53569 2005-02-24  Bruno Haible  <bruno@clisp.org>
53570
53571         * modules/gettext (Files): Add m4/glibc2.m4.
53572
53573 2005-02-24  Bruno Haible  <bruno@clisp.org>
53574
53575         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
53576         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
53577         * m4/progtest.m4:
53578         Update from GNU gettext 0.14.2.
53579         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
53580
53581 2005-02-24  Bruno Haible  <bruno@clisp.org>
53582
53583         * lib/localcharset.c: Update from GNU gettext 0.14.2.
53584         * lib/config.charset: Update from GNU gettext 0.14.2.
53585
53586 2005-02-24  Bruno Haible  <bruno@clisp.org>
53587
53588         * lib/gettext.h: Update from GNU gettext 0.14.2.
53589
53590 2005-02-23  Simon Josefsson  <jas@extundo.com>
53591
53592         * m4/iconvme.m4: New file.
53593
53594 2005-02-23  Jim Meyering  <jim@meyering.net>
53595
53596         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
53597         change.
53598         Thanks to Bruno Haible for catching it.
53599
53600 2005-02-22  Simon Josefsson  <jas@extundo.com>
53601
53602         * modules/iconvme: New file.
53603
53604         * MODULES.html.sh: Add iconvme.
53605
53606 2005-02-22  Simon Josefsson  <jas@extundo.com>
53607
53608         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
53609
53610 2005-02-22  Simon Josefsson  <jas@extundo.com>
53611
53612         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
53613
53614 2005-02-22  Jim Meyering  <jim@meyering.net>
53615
53616         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
53617         s/ifndef/ifdef/.
53618
53619 2005-02-20  Neil Conway  <neilc@samurai.com>
53620
53621         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
53622         returned by OSX/Darwin if the specified buffer is not large
53623         enough for the hostname.
53624
53625 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53626
53627         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
53628         pass it to _help, otherwise the latter coredumps trying to
53629         dereference state.root_argp.
53630
53631 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53632
53633         * modules/chdir-long (Depends-on): Add memrchr.
53634         * modules/memrchr (Files): Add lib/memrchr.h.
53635         (Include): "memrchr.h".
53636
53637 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53638
53639         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
53640
53641 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53642
53643         * lib/memrchr.h: New file.
53644         * lib/chdir-long.c: Include it.
53645         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
53646         Don't bother including stddef.h.
53647
53648 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
53649
53650         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
53651         inclusion.
53652         Include <sys/types.h>, for dev_t.
53653         (ME_DUMMY, ME_REMOTE): Move from here....
53654         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
53655         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
53656         Dmitry V. Levin.
53657         Include mountlist.h first, to test the interface.
53658
53659 2005-01-29  Bruno Haible  <bruno@clisp.org>
53660
53661         * lib/progname.c (program_name): Initialize.
53662         Needed when linking statically on MacOS X.
53663
53664 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
53665
53666         Sync from coreutils.
53667         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
53668         (Depends-on): Add c-strtod.
53669         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
53670
53671 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
53672
53673         Sync from coreutils.
53674         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
53675
53676         Remove files that are specific to coreutils.
53677         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
53678
53679 2005-01-28  Bruno Haible  <bruno@clisp.org>
53680
53681         * modules/javacomp: New file.
53682         * MODULES.html.sh (Java): Add javacomp.
53683
53684 2005-01-28  Bruno Haible  <bruno@clisp.org>
53685
53686         * m4/javacomp.m4: New file, from GNU gettext.
53687
53688 2005-01-28  Bruno Haible  <bruno@clisp.org>
53689
53690         * lib/javacomp.sh.in: New file, from GNU gettext.
53691         * lib/javacomp.h: New file, from GNU gettext.
53692         * lib/javacomp.c: New file, from GNU gettext.
53693
53694 2005-01-26  Simon Josefsson  <jas@extundo.com>
53695
53696         * lib/gai_strerror.c: Use GPL in header.
53697
53698 2005-01-26  Bruno Haible  <bruno@clisp.org>
53699
53700         * modules/javaexec: New file.
53701         * MODULES.html.sh (Java): Add javaexec.
53702
53703 2005-01-26  Bruno Haible  <bruno@clisp.org>
53704
53705         * m4/javaexec.m4: New file, from GNU gettext.
53706
53707 2005-01-26  Bruno Haible  <bruno@clisp.org>
53708
53709         * lib/javaexec.sh.in: New file, from GNU gettext.
53710         * lib/javaexec.h: New file, from GNU gettext.
53711         * lib/javaexec.c: New file, from GNU gettext.
53712
53713 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53714
53715         * modules/lchown (Depends-on): Remove lchown.h
53716
53717 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53718
53719         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
53720         must be defined if the header file was not found, in order
53721         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
53722
53723 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53724
53725         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
53726         initializers for struct pentry_state.
53727         (__argp_error): Check return value of __asprintf
53728         (__argp_failure): Translate error message
53729
53730         * lib/argp-parse.c: Removed braces around the expansion of N_()
53731
53732 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53733
53734         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
53735         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
53736         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
53737         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
53738         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
53739         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
53740         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
53741         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
53742         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
53743         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
53744         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
53745         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
53746         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
53747         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
53748         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
53749         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
53750         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
53751         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
53752         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
53753         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
53754         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
53755         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
53756         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
53757         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
53758         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
53759         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
53760         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
53761         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
53762         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
53763         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
53764         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
53765         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
53766         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
53767         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
53768         xstrtol.m4, xstrtoumax.m4, yesno.m4:
53769         Use an all-permissive copyright notice, recommended by RMS.
53770
53771 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
53772
53773         * modules/chdir-long (Depends-on): Remove mempcpy.
53774
53775 2005-01-21  Jim Meyering  <jim@meyering.net>
53776
53777         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
53778         same value as for Solaris 9.
53779
53780         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
53781         component length.  This included changing the parameter to be
53782         of type `char *' rather than `char const *'.
53783         * lib/chdir-long.h (chdir_long): Update prototype.
53784
53785         * lib/openat.c (fdopendir, fstatat): New functions.
53786         * lib/openat.h: Include headers required for use of DIR and struct
53787         stat.
53788         [AT_SYMLINK_NOFOLLOW]: Define.
53789         (fdopendir, fstatat): Add prototypes.
53790
53791 2005-01-21  Bruno Haible  <bruno@clisp.org>
53792
53793         * modules/classpath: New file.
53794         * MODULES.html.sh (Java): Add classpath.
53795
53796 2005-01-21  Bruno Haible  <bruno@clisp.org>
53797
53798         * lib/classpath.h: New file, from GNU gettext.
53799         * lib/classpath.c: New file, from GNU gettext.
53800
53801 2005-01-20  Simon Josefsson  <jas@extundo.com>
53802
53803         * modules/version-etc-fsf: New file.
53804
53805 2005-01-20  Simon Josefsson  <jas@extundo.com>
53806
53807         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
53808         * lib/version-etc.c: Remove version_etc_copyright.
53809         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
53810         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
53811
53812 2005-01-20  Simon Josefsson  <jas@extundo.com>
53813
53814         * lib/base64.h (isbase64): Add.
53815
53816         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
53817         using a unsigned prototype, don't inline.
53818         (base64_decode): Use it.
53819
53820 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53821
53822         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
53823         it.
53824
53825 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53826
53827         * lib/save-cwd.c (save_cwd): Remove code to support the case
53828         where fchdir is missing or flaky.
53829
53830 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53831
53832         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
53833
53834 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
53835
53836         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
53837         AC_LIBSOURCES now does this.
53838         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
53839         with new ullong_max module.
53840
53841 2005-01-19  Bruno Haible  <bruno@clisp.org>
53842
53843         * modules/sh-quote: New file.
53844         * MODULES.html.sh (Executing programs): Add sh-quote.
53845
53846 2005-01-19  Bruno Haible  <bruno@clisp.org>
53847
53848         * lib/sh-quote.h: New file, from GNU gettext.
53849         * lib/sh-quote.c: New file, from GNU gettext.
53850
53851 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53852
53853         Merge from coreutils.
53854         * m4/ullong_max.m4: New file.
53855         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
53856         (gl_MACROS): Assume localeconv exists.
53857
53858 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53859
53860         Merge changes from coreutils, as described below in several
53861         changelogs dated today.
53862
53863         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
53864         (O_DIRECTORY): Remove; not needed here, since "." must be
53865         a directory.  All uses removed.
53866         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
53867         universal on Suns, and we also need to test for IRIX.
53868         Revamp code to use 'if' rather than '#if'.
53869         Avoid unnecessary comparison of cwd->desc to 0.
53870
53871         * lib/utimens.c (futimens): Robustify the previous patch, by checking
53872         for known valid error numbers rather than observed invalid ones.
53873
53874 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53875
53876         * modules/ullong_max: New file.
53877
53878         * modules/chdir-long, modules/openat: New files.
53879         * modules/save-cwd (Depends-on): Depend on chdir-long.
53880         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
53881
53882 2005-01-18  Jim Meyering  <jim@meyering.net>
53883
53884         Merge from coreutils.
53885         * m4/chdir-long.m4, m4/openat.m4: New files.
53886         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
53887         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
53888         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
53889         is sane and DOES follow symlinks.  Besides, testing 20 different
53890         systems found no broken chown implementations.
53891         Prompted by a change in rsync's copy of this macro.
53892         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
53893
53894         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
53895
53896         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
53897         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
53898         NULL-means-set-to-current-time semantics.
53899         Remove temporary file immediately, rather than waiting
53900         for configure's at-exit trap code to do it.
53901
53902 2005-01-18  Jim Meyering  <jim@meyering.net>
53903
53904         * lib/version-etc.c (version_etc_copyright): Update copyright date.
53905
53906         * lib/utimens.c (futimens): Account for the fact that futimes
53907         can also fail with errno == ENOSYS or errno == ENOENT.
53908         Patch from Dmitry V. Levin.
53909
53910         Change the name of the robust chdir function from chdir to chdir_long.
53911         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
53912         (restore_cwd): Use chdir_long, not chdir.
53913         * lib/chdir-long.c: Renamed from chdir.c.
53914         * lib/chdir-long.h: Renamed from chdir.h.
53915         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
53916         Hurd.
53917
53918 2005-01-18  Bruno Haible  <bruno@clisp.org>
53919
53920         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
53921         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
53922         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
53923         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
53924         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
53925         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
53926         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
53927         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
53928         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
53929         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
53930         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
53931         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
53932         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
53933         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
53934         Use an all-permissive copyright notice, recommended by RMS.
53935
53936 2005-01-18  Bob Proulx  <bob@proulx.com>
53937
53938         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
53939         simplify offsetof() macro construct to avoid compile failure with
53940         native HP-UX 11.0 ANSI C compiler.
53941
53942 2005-01-17  Bruno Haible  <bruno@clisp.org>
53943
53944         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
53945         redundant because stpncpy.m4 takes care of it.
53946
53947 2005-01-17  Bruno Haible  <bruno@clisp.org>
53948
53949         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
53950
53951 2005-01-17  Bruno Haible  <bruno@clisp.org>
53952
53953         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
53954         used.
53955
53956 2005-01-17  Bruno Haible  <bruno@clisp.org>
53957
53958         * lib/fwriteerror.h (fwriteerror): Change specification to include
53959         fclose.
53960         * lib/fwriteerror.c: Include <stdbool.h>.
53961         (fwriteerror): At the end, close the file stream. Record whether
53962         stdout was already closed.
53963
53964 2005-01-17  Bruno Haible  <bruno@clisp.org>
53965
53966         * lib/execute.c (environ): Declare if needed.
53967         * lib/pipe.c (environ): Likewise.
53968         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
53969
53970 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53971
53972         * modules/argp: Depend on vsnprintf
53973
53974 2005-01-10  Jim Meyering  <jim@meyering.net>
53975
53976         * modules/closeout (Depends-on): Add atexit.
53977
53978 2005-01-06  Bruno Haible  <bruno@clisp.org>
53979
53980         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
53981
53982 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53983
53984         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
53985         definitions to be after all include files, to avoid collisions.
53986         Problem reported by Bob Proulx.
53987
53988 2005-01-04  Jim Meyering  <jim@meyering.net>
53989
53990         Changes imported from coreutils.
53991         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
53992         as the mkstemp template, use a temporary directory and an
53993         8.3-friendly template to avoid trouble on systems like DJGPP.
53994         Reported by Juan M. Guerrero via Stepan Kasal.
53995         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
53996         close. Remove the temporary directory right away, rather than waiting
53997         for configure's at-exit trap code to do it.
53998         Suggestion from Stepan Kasal.
53999
54000 2005-01-01  Simon Josefsson  <jas@extundo.com>
54001
54002         * gnulib-tool: Print #include directives when --import'ing.
54003
54004 2004-12-28  Simon Josefsson  <jas@extundo.com>
54005
54006         * tests/test-base64.c: Include required header files.  Remove
54007         unused variables.
54008
54009 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
54010
54011         * modules/error (Depends-on): Remove gettext.
54012
54013 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
54014
54015         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
54016         not needed.  This removes a dependency on the gettext module.
54017         [defined _LIBC]: Do not include <libintl.h>; not needed.
54018
54019 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
54020
54021         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
54022         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
54023
54024 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
54025
54026         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
54027         HAVE_DECL_STRTOLD.
54028
54029 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
54030
54031         * modules/getdate (Depends-on): Remove alloca-opt.
54032
54033 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
54034
54035         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
54036
54037 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
54038
54039         * lib/argp-parse.c: Include <stddef.h>.
54040         (alignof, alignto): New macros.
54041         (parser_init): Don't assume that void * is aligned sufficiently
54042         for struct option.
54043
54044         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
54045         need to extend the stack.
54046         (YYINITDEPTH): New macro, so that the initial stack isn't overly
54047         large.
54048
54049 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54050
54051         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
54052
54053 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
54054
54055         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
54056         (2004-10-24) change.  Apparently this was a false alarm.
54057
54058         * modules/getdate: Depend on alloca-opt, not alloca.
54059
54060 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
54061
54062         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
54063         Remove now-obsolete comment about AIX.
54064         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
54065         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
54066         (YYMAXDEPTH): New macro.
54067
54068 2004-12-18  Simon Josefsson  <jas@extundo.com>
54069
54070         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
54071
54072 2004-12-18  Bruno Haible  <bruno@clisp.org>
54073
54074         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
54075
54076 2004-12-18  Bruno Haible  <bruno@clisp.org>
54077
54078         * lib/fatal-signal.c (fatal_signals): Make non-const.
54079         (init_fatal_signals): New function.
54080         (uninstall_handlers, install_handlers): Ignore signals that were set to
54081         SIG_IGN.
54082         (at_fatal_signal): Call init_fatal_signals.
54083         (init_fatal_signal_set): Likewise. Ignore signals that were set to
54084         SIG_IGN.
54085         Reported by Paul Eggert.
54086
54087 2004-12-18  Bruno Haible  <bruno@clisp.org>
54088
54089         * doc/alloca.texi: New file.
54090         * doc/alloca-opt.texi: New file.
54091
54092 2004-12-17  Jim Meyering  <jim@meyering.net>
54093
54094         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
54095         Otherwise, install-sh could exit with improper exit status when
54096         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
54097
54098 2004-12-16  Simon Josefsson  <jas@extundo.com>
54099
54100         * tests/test-base64.c: Add license.
54101
54102 2004-12-15  Stepan Kasal  <address@hidden>
54103
54104         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
54105
54106 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
54107
54108         * modules/getcwd (Files): Add m4/d-ino.m4.
54109         Suggested by Mark D. Baushke.
54110
54111 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
54112
54113         * lib/getdate.y (textint): New member "negative".
54114         (time_zone_hhmm): New function.
54115         Expect 14 shift-reduce conflicts, not 13.
54116         (o_colon_minutes): New rule.
54117         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
54118         (yylex): Set the "negative" member of signed numbers.
54119
54120 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
54121
54122         * doc/getdate.texi (Time of day items, Time zone items):
54123         Describe new formats +00:00, UTC+00:00.
54124
54125 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
54126
54127         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
54128         spurious "-l"s.  Problem reported by Stepan Kasal.
54129
54130 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
54131
54132         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
54133         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
54134
54135 2004-12-04  Simon Josefsson  <jas@extundo.com>
54136
54137         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
54138         Vandoorselaere <yoann@prelude-ids.org>.
54139
54140 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
54141
54142         Changes imported from coreutils.
54143         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
54144         exist.
54145         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
54146
54147 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
54148
54149         Changes imported from coreutils.
54150         * lib/hard-locale.c: Assume <locale.h> exists.
54151         Include "strdup.h".
54152         (GLIBC_VERSION): New macro.
54153         (hard_locale): Assume setlocale exists.
54154         Rewrite to avoid #ifdef.
54155         Use strdup rather than malloc + strcpy.
54156         * lib/human.c: Assume <locale.h> exists.
54157         (human_readable): Assume localeconv exists.
54158
54159 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
54160
54161         * modules/hard-locale (Depends-on): Add strdup.
54162
54163 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
54164
54165         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
54166         convert T2, not T.  (Imported from libc.)
54167
54168 2004-11-30  Simon Josefsson  <jas@extundo.com>
54169
54170         * modules/restrict (License): Change to LGPL.
54171
54172 2004-11-30  Simon Josefsson  <jas@extundo.com>
54173
54174         * m4/restrict.m4: Add copyright and copying conditions.
54175
54176 2004-11-30  Simon Josefsson  <jas@extundo.com>
54177
54178         * m4/base64.m4: New file.
54179
54180 2004-11-30  Simon Josefsson  <jas@extundo.com>
54181
54182         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
54183         base64.
54184
54185         * tests/test-base64.c: New file.
54186
54187         * modules/base64: New file.
54188
54189 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
54190
54191         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
54192         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
54193
54194         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
54195
54196 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
54197
54198         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
54199         (__getcwd.c): Don't restore errno; glibc doesn't.
54200         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
54201         first, falling back to our code only if its results look suspicious.
54202         Ensure that the resulting buffer is only as large as necessary.
54203
54204         * lib/readutmp.c: Include readutmp.h first.
54205         Include <errno.h>, since readutmp.h no longer does that.
54206         * lib/readutmp.h: Don't include <errno.h>,
54207         <sys/param.h>, <time.h>; not needed to establish interface.
54208         (errno): Remove decl.
54209         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
54210         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
54211         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
54212
54213 2004-11-28  Simon Josefsson  <jas@extundo.com>
54214
54215         * lib/base64.h, base64.c: New file.
54216
54217 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
54218
54219         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
54220
54221 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
54222
54223         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
54224         (Depends-on): Remove pathmax, same.  Add mempcpy.
54225         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
54226         (Makefile.am): Append getcwd.h to lib_SOURCES.
54227         (Include): Add getcwd.h.
54228         (Maintainer): Change from Jim Meyering to "all, glibc",
54229         since getdate now uses intended-for-glibc code.
54230         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
54231         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
54232
54233 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
54234
54235         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
54236         HP's ANSI C compiler.
54237         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
54238         Declaring int functions causes warnings on some modern systems and
54239         shouldn't be needed to compile on ancient ones.
54240         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
54241         defined.
54242
54243         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
54244         with the following changes.
54245         (__set_errno): Parenthesize properly.
54246         Include <stdbool.h>.
54247         (MIN, MAX, MATCHING_INO): New macros.
54248         (__getcwd): Define with prototype, not K&R form.
54249         Use heuristics to allocate default buffer on stack if possible.
54250         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
54251         behavior, and to avoid the PATH_MAX limit when computing
54252         ../../../../...
54253         Use MATCHING_INO to compare inode number to file.
54254         Check for arithmetic overflow in size calculations.
54255         Fix bug in reallocation of dot array that caused getcwd to fail
54256         on directories nested deeper than 75.
54257         Be more careful about saving errno on error.
54258         Do not use realloc; use only free+malloc, as this is a bit
54259         more flexible and avoids a needless copy operation.
54260         Do not inspect st_dev and st_ino for symbolic links; POSIX
54261         doesn't specify the latter.
54262         Check for closedir errors.
54263         Avoid needless casts.
54264         Use "#ifdef weak_alias" around weak_alias, to be like other
54265         glibc code.
54266         The following changes to getcwd.c have effect only when used in
54267         gnulib; they have no effect inside glibc proper.
54268         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
54269         as alloca isn't used.
54270         (alloca, __alloca): Likewise.
54271         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
54272         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
54273         unconditionally, as gnulib assumes C89 or better.
54274         Do not include <sys/param.h>.
54275         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
54276         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
54277         better.
54278         (NULL) [!defined NULL]: Remove; we assume C89 or better.
54279         Include <dirent.h> in a way that is compatible with modern Autoconf.
54280         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
54281         New macros, if not already defined.
54282         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
54283         Use "_LIBC", not "defined _LIBC", for consistency.
54284         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
54285         a mempcpy module.
54286         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
54287         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
54288         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
54289         credit only to Jim Meyering and adjust the copyright dates.
54290         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
54291         <stdlib.h>, <unistd.h>, "pathmax.h".
54292         Instead, include "xgetcwd.h" (first) and "getcwd.h".
54293         (INITIAL_BUFFER_SIZE): Remove.
54294         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
54295
54296 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
54297
54298         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
54299         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
54300         Use the _ONCE methods, for efficiency.
54301         Check for fcntl.h.  In test program, include <errno.h>
54302         and <fcntl.h> if available.  Remove old K&R cruft from
54303         test program.  Check for common errors in GNU/Linux,
54304         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
54305         don't do AC_LIBOBJ, as that's getcwd.m4's job.
54306         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
54307         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
54308         name accordingly.
54309         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
54310         accommodate new getcwd.c.
54311         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
54312         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
54313         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
54314         that's all we need now.
54315
54316 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54317
54318         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
54319         argp-parse.c depends on getopt internals, that means we should
54320         always use our getopt, to be on the safe side.
54321         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
54322         order not to spoil the result of an eventual previous invocation
54323         of gl_GETOPT_SUBSTITUTE.
54324
54325 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54326
54327         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
54328         redefinition warnings. To avoid them, include the defines
54329         in `#if !defined __need_getopt ... #endif'. The only place
54330         where __getopt_argv_const is used is in definitions
54331         of getopt_long and getopt_long_only below, which are as well
54332         protected by `#ifndef __need_getopt'.
54333         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
54334         __need_getopt after including <stdio.h> and <unistd.h> These
54335         headers might have defined it.
54336
54337 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
54338
54339         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
54340
54341 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
54342
54343         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
54344         (futimens): New function, which uses futimes if available.
54345         (futimens, utimens): Support timespec==NULL, with same semantics
54346         as utime and utimens.
54347         * lib/utimens.h (futimens): New decl.
54348
54349 2004-11-23  Jim Meyering  <jim@meyering.net>
54350
54351         * lib/getopt_.h: Remove trailing blanks.
54352
54353 2004-11-23  Jim Meyering  <jim@meyering.net>
54354
54355         * lib/__fpending.c: Add comment.
54356
54357 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
54358
54359         * modules/canonicalize (Depends-on): Add xreadlink.
54360         Problem reported by James Youngman.
54361
54362 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
54363
54364         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
54365         New macros.
54366         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
54367         optopt): Use them instead of invoking ## directly; otherwise, the
54368         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
54369
54370 2004-11-19  Bruno Haible  <bruno@clisp.org>
54371
54372         * lib/strtok_r.c: Move comments from here...
54373         * lib/strtok_r.h: ... to here.
54374
54375 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
54376
54377         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
54378         implementations that mishandle size_t overflow.
54379
54380 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
54381
54382         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
54383         might fail.  Problem reported by Yoann Vandoorselaere.
54384         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
54385         implementations that mishandle size_t overflow.
54386
54387 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54388
54389         * modules/canon-host (Depends-on): Add strdup.
54390
54391 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54392
54393         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
54394
54395 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54396
54397         * lib/canon-host.c: Include "strdup.h".
54398         (canon_host): Use getaddrinfo if available, so that IPv6 works.
54399         Use strdup instead of malloc/strcpy to duplicate strings.
54400
54401         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
54402         (human_space_before_unit): New constant.
54403         * lib/human.c (human_readable): Support it.
54404
54405         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
54406         (xgetcwd): Set errno correctly when failing.
54407         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
54408         the failure is actually due to a PATH_MAX problem.
54409
54410         Further getopt changes to make it more likely that glibc will
54411         buy the changes back.
54412         * lib/getopt.c (POSIXLY_CORRECT): New constant.
54413         (getopt): Use it, so to preserve glibc semantic
54414         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
54415         when compiling for libc.
54416         * lib/getopt_.h (__getopt_argv_const): Bring it back.
54417         (getopt_long, getopt_long_only): Use it.
54418
54419         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
54420         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
54421         (getopt): Argv is now char * const *, as per standard.
54422         (_getopt_internal_r, _getopt_internal): Argv is now char **,
54423         not char *__getopt_argv_const *.
54424         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
54425         _getopt_long_only_r): Likewise.
54426         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
54427         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
54428         _getopt_long_r, _getopt_long_only_r): Likewise.
54429         * lib/getopt_.h (__getopt_argv_const): Remove.
54430         (getopt): Argv is now char * const *, as per standard.
54431
54432         * lib/getdate.y (tORDINAL): New token.
54433         (day, relunit): Allow it for relative times.
54434         (relative_time_table): Use tORDINAL for ordinals.
54435
54436 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54437
54438         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
54439         Document that "second" isn't allowed as an ordinal number.
54440
54441 2004-11-16  Jim Meyering  <jim@meyering.net>
54442
54443         * modules/closeout (Depends-on): Add fpending.
54444
54445 2004-11-15  Jim Meyering  <jim@meyering.net>
54446
54447         * lib/closeout.c: Include "__fpending.h" once again.
54448         Include <stdbool.h>.
54449         (close_stdout): Don't fail just because stdout was closed initially,
54450         since some programs don't write to stdout in the normal course of
54451         operation (other than --version and --help), and we don't want this
54452         function to make e.g. `touch file >&-' fail.
54453         But do fail if it was closed and someone has tried to write to it.
54454         E.g., `printf foo >&-' must fail.
54455
54456 2004-11-13  Jim Meyering  <jim@meyering.net>
54457
54458         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
54459
54460 2004-11-12  Simon Josefsson  <jas@extundo.com>
54461
54462         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
54463         small doc fix is still pending.
54464
54465 2004-11-11  Simon Josefsson  <jas@extundo.com>
54466
54467         * modules/strtok_r: New file.
54468
54469         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54470         strtok_r.
54471
54472 2004-11-11  Simon Josefsson  <jas@extundo.com>
54473
54474         * m4/strtok_r.m4: New file.
54475
54476         * m4/getopt.m4: Replace opterr.
54477
54478 2004-11-11  Simon Josefsson  <jas@extundo.com>
54479
54480         * lib/strtok_r.h, strtok_r.c: New file.
54481
54482 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
54483
54484         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
54485         of replacing opterr, getopt, etc.  This should handle the
54486         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
54487
54488 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
54489
54490         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
54491         we can stop lying to compilers about the constness of argv when we
54492         are compiled outside glibc.
54493         (getopt, getopt_long, getopt_long_only): Use it.
54494         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
54495         _getopt_internal, getopt): Likewise.
54496         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
54497         _getopt_long_only_r): Likewise.
54498         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
54499         _getopt_long_r, _getopt_long_only_r): Likewise.
54500
54501         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
54502         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
54503         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
54504         the other external symbols.
54505         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
54506         declaration, since the above renaming now works around collisions.
54507
54508 2004-11-11  Jim Meyering  <jim@meyering.net>
54509
54510         * lib/linebreak.c: Remove trailing blanks.
54511         * lib/alloca_.h: Likewise.
54512         * lib/acosl.c: Likewise.
54513         * lib/euidaccess.c: Likewise.
54514         * lib/allocsa.h: Likewise.
54515
54516 2004-11-10  Simon Josefsson  <jas@extundo.com>
54517
54518         * m4/getaddrinfo.m4: New file.
54519
54520 2004-11-10  Simon Josefsson  <jas@extundo.com>
54521
54522         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
54523
54524 2004-11-10  Simon Josefsson  <jas@extundo.com>
54525
54526         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54527         getaddrinfo.
54528
54529         * modules/getaddrinfo: New file.
54530
54531 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54532
54533         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
54534
54535 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54536
54537         * lib/mktime.c (SHR): New macro, which is a portable
54538         substitute for >> that should work even on Crays.
54539         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
54540         Problem reported by Mark D. Baushke in
54541         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
54542         * lib/getdate.y (SHR): Likewise.
54543         (tm_diff): Use it.
54544         * lib/strftime.c (SHR): Likewise.
54545         (tm_diff): Use it.
54546         * lib/quotearg.c (struct quoting_options): Use unsigned int for
54547         quote_these_too, so that right shifts are well defined.  All uses
54548         changed.
54549
54550 2004-11-10  Jim Meyering  <jim@meyering.net>
54551
54552         Ensure that no close failure goes unreported.
54553         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
54554         return early when it seems there's nothing to flush.
54555         Don't include __fpending.h.
54556
54557 2004-11-10  Jim Meyering  <jim@meyering.net>
54558
54559         * modules/closeout (Depends-on): Remove fpending.
54560
54561 2004-11-10  Jim Meyering  <jim@meyering.net>
54562
54563         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
54564
54565 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54566
54567         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
54568         gl_FUNC_STRFTIME.
54569         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
54570         and AC_REQUIRE when possible, to avoid duplicate checks.
54571         Check for <wchar.h>.
54572
54573 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54574
54575         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
54576
54577 2004-11-09  Bruno Haible  <bruno@clisp.org>
54578
54579         * m4/sockpfaf.m4: New file.
54580
54581 2004-11-05  Bruno Haible  <bruno@clisp.org>
54582
54583         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
54584         Reported by Mark D. Baushke <mdb@cvshome.org>.
54585
54586 2004-11-04  Bruno Haible  <bruno@clisp.org>
54587
54588         2004-09-11  Bruno Haible  <bruno@clisp.org>
54589                 * allocsa.valgrind: New file.
54590         2004-02-06  Bruno Haible  <bruno@clisp.org>
54591                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
54592                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
54593                 Reported by Christopher Seip <chris.seip@hp.com>.
54594
54595 2004-11-04  Bruno Haible  <bruno@clisp.org>
54596
54597         * modules/allocsa (Files): Add lib/allocsa.valgrind.
54598         (Makefile.am): Distribute it.
54599
54600 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
54601
54602         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
54603         with errno == ERANGE if the buffer is too small.
54604         Problem reported by Mark D. Baushke.
54605
54606 2004-11-03  Albert Chin  <china@thewrittenword.com>
54607             Paul Eggert  <eggert@cs.ucla.edu>
54608
54609         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
54610         equivalent, substitute $ac_type for equivalent type rather than
54611         blindly using uint32_t *always* which won't work if uint32_t is not
54612         available.  Define _UINT32_T to work around typedef of uint32_t if
54613         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
54614         2.5.1.
54615
54616 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54617
54618         * m4/jm-macros.m4: Sync from coreutils.
54619         (gl_MACROS): Check for mbrlen, for pathchk.
54620         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
54621
54622 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54623
54624         * lib/xreadlink.c (MAXSIZE): New macro.
54625         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
54626         size does not exceed MAXSIZE.  Avoid cast.
54627         As suggested by Mark D. Baushke in
54628         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
54629         if readlink fails with buffer size just under MAXSIZE, try again
54630         with MAXSIZE.
54631
54632 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54633
54634         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
54635
54636 2004-11-02  Derek R. Price  <derek@ximbiot.com>
54637         and  Paul Eggert  <eggert@cs.ucla.edu>
54638
54639         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
54640         (get_date): Overparenthesize to avoid GCC warning.
54641
54642 2004-11-02  Bruno Haible  <bruno@clisp.org>
54643
54644         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
54645         returns void.
54646
54647 2004-11-02  Bruno Haible  <bruno@clisp.org>
54648
54649         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
54650         function returns void.
54651
54652 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54653
54654         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
54655         fflush_unlocked, flockfile, funlockfile, funlockfile,
54656         fputs_unlocked, putc_unlocked.
54657
54658 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54659
54660         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
54661         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
54662         already declared.
54663
54664 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54665
54666         * modules/getdate (Files): Add doc/getdate.texi.
54667         (Depends-on): Add setenv, xalloc.
54668
54669 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54670
54671         * lib/getdate.y: Add support for TZ="foo" within a date string.
54672         Fix some bugs near time_t boundaries.  Reject dates with
54673         out-of-range components, e.g., "Sept 31".
54674         Include <stdlib.h>, "setenv.h", "xalloc.h".
54675         (ISDIGIT_LOCALE): Remove; unused.
54676         Note that the TZ and time functions used here are not reentrant.
54677         (mktime_ok, get_tz): New functions.
54678         (TZBUFSIZE): New constant.
54679         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
54680         This requires that we sometimes generate our own TZ="XXX..." setting.
54681
54682 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54683
54684         * doc/getdate.texi: New file, from coreutils with modifications for
54685         the new TZ parsing.
54686
54687 2004-10-27  Derek R. Price  <derek@ximbiot.com>
54688
54689         * lib/mktime.c (not_equal_tm): Remove redundant check.
54690
54691 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54692
54693         * modules/regex (lib_SOURCES): Add regex.c.
54694         Reported by James Youngman in
54695         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
54696
54697 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54698
54699         * lib/getdate.y: Use Bison 1.875 features, and some minor
54700         code cleanups.  This change does not affect semantics.
54701         Don't include <stdlib.h>; no longer needed.
54702         Don't include unlocked-io.h; only the "#if TEST" code uses
54703         stdio, and performance isn't crucial there.
54704         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
54705         Bison 1.875 features as described below.
54706         All uses of "PC." replaced by "pc->".
54707         (YYSTYPE): Add a forward declaration.
54708         (yylex, yyerror): Use full prototypes in forward decls.
54709         Use "%pure-parser" rather than obsolescent "%pure_parser".
54710         Use %parse-param and %lex-param instead of obsolescent
54711         YYPARSE_PARAM and YYLEX_PARAM.
54712         (meridian_table, month_and_day_table, time_units_table,
54713         relative_time_table, time_zone_table, military_table,
54714         lookup_zone, lookup_word, get_date):
54715         Use NULL instead of 0 where appropriate.
54716         (to_hour): Avoid abort (), to avoid a dependency on
54717         stdlib.h.
54718         (yyerror, yylex): Now accepts parser_control * arg.
54719         (main) [TEST]: Use '\0' rather than 0 for char.
54720
54721 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54722
54723         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
54724
54725 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54726
54727         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
54728         It's now the caller's responsibility to handle the case where
54729         !HAVE_GETPAGESIZE && !defined getpagesize.
54730
54731         * lib/mktime.c (leapyear): Arg is long int, not int.
54732
54733 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
54734
54735         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
54736
54737 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
54738
54739         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
54740         missing.  Problem reported by James Youngman.
54741
54742 2004-10-16  Simon Josefsson  <jas@extundo.com>
54743
54744         * gnulib-tool: Fix comments.  Fix parse problem.
54745         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
54746
54747 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
54748
54749         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
54750         implementation of getopt_long.  Problem reported by Alexander Taler in:
54751         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
54752
54753 2004-10-15  Bruno Haible  <bruno@clisp.org>
54754
54755         * gnulib-tool: Untabify. Initialize supplied_libname.
54756         (func_usage): More homogenous output.
54757         (func_modules_transitive_closure, func_modules_to_filelist,
54758         func_emit_lib_Makefile_am): New functions.
54759         (func_import): New function, extracted from big case statement. Use
54760         func_get_license, func_modules_transitive_closure,
54761         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
54762         opt_lgpl. Don't use test -a, as it's not portable.
54763         (func_create_testdir): Use func_modules_transitive_closure,
54764         func_modules_to_filelist, func_emit_lib_Makefile_am.
54765
54766 2004-10-15  Bruno Haible  <bruno@clisp.org>
54767
54768         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
54769
54770 2004-10-15  Bruno Haible  <bruno@clisp.org>
54771
54772         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
54773         the portions belonging to each module.
54774         Suggested by Derek Robert Price <derek@ximbiot.com>.
54775
54776 2004-10-12  Simon Josefsson  <jas@extundo.com>
54777
54778         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
54779         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
54780         to real functions.
54781
54782 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54783
54784         * modules/vsnprintf: New file.
54785
54786 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54787
54788         * m4/vsnprintf.m4: New file.
54789
54790 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54791
54792         * lib/vsnprintf.h: New file.
54793         * lib/vsnprintf.c: New file.
54794
54795 2004-10-11  Bruno Haible  <bruno@clisp.org>
54796
54797         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
54798         vsnprintf.
54799
54800 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
54801
54802         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
54803
54804 2004-10-07  Bruno Haible  <bruno@clisp.org>
54805
54806         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
54807         fits into the provided buffer.
54808
54809 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
54810
54811         * lib/diacrit.c, diacrit.h: Add GPL notice.
54812
54813         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
54814         notice.
54815         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
54816         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
54817         This avoids a potential constant-folding bug.
54818
54819 2004-10-05  Bruno Haible  <bruno@clisp.org>
54820
54821         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
54822         for the declaration of strsep.
54823
54824 2004-10-05  Bruno Haible  <bruno@clisp.org>
54825
54826         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
54827
54828 2004-10-04  Simon Josefsson  <jas@extundo.com>
54829
54830         * modules/memmem: New file.
54831         * tests/test-memmem.c: New file.
54832         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
54833
54834 2004-10-04  Simon Josefsson  <jas@extundo.com>
54835
54836         * m4/memmem.m4: New file.
54837
54838 2004-10-04  Simon Josefsson  <jas@extundo.com>
54839
54840         * lib/memmem.h: New file.
54841         * lib/memmem.c: New file, taken from glibc.
54842
54843 2004-10-04  Simon Josefsson  <jas@extundo.com>
54844
54845         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
54846         '#ifdef USE_UNLOCKED_IO'.
54847
54848 2004-10-04  Simon Josefsson  <jas@extundo.com>
54849
54850         * config/srclist.txt: Add memmem from glibc.
54851
54852 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54853
54854         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
54855
54856         * modules/argmatch, modules/argp, modules/closeout, modules/error,
54857         modules/exclude, modules/getdate, modules/getline,
54858         modules/getndelim2, modules/getpass, modules/getpass-gnu,
54859         modules/getusershell, modules/linebuffer, modules/md5,
54860         modules/mountlist, modules/posixtm, modules/readtokens,
54861         modules/readutmp, modules/regex, modules/sha1,
54862         modules/version-etc, modules/yesno:
54863         Remove dependency on unlocked-io.
54864
54865 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54866
54867         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
54868
54869         * m4/unlocked-io.m4: Add copyright notice.
54870         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
54871
54872 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54873
54874         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
54875         * lib/xmalloc.c (xmemdup): Likewise.
54876         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
54877         XFREE): Remove these long-obsolescent macros.
54878         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
54879         * lib/xstrdup.c: Remove.
54880
54881         * lib/regex.c (re_comp): Cast gettext return value to char *,
54882         Problem reported by Martin Neitzel via Mark D. Baushke.
54883
54884 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54885
54886         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
54887         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
54888         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
54889         regex.c, sha1.c, version-etc.c, yesno.c:
54890         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
54891         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
54892         the includer's responsibility.
54893
54894         Sync from coreutils.
54895
54896         * lib/modechange.c (mode_compile): Don't decrement a pointer that
54897         points to the start of a string, as the C Standard says the
54898         resulting behavior is undefined.
54899
54900         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
54901         simple -> simple_backups, numbered_existing ->
54902         numbered_existing_backups, numbered -> numbered_backups
54903         to avoid shadowing problems.  All uses changed.
54904         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
54905         * lib/backupfile.c (check_extension, numbered_backup):
54906         Rename locals to avoid shadowing 'basename'.
54907         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
54908         once.
54909
54910         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
54911         * lib/.cvsignore: Add getopt.h.
54912
54913 2004-10-04  Bruno Haible  <bruno@clisp.org>
54914
54915         * modules/README: New file.
54916         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
54917         not a module.
54918
54919 2004-10-02  Jim Meyering  <jim@meyering.net>
54920
54921         * lib/dirfd.h, getpagesize.h: Add copyright notice.
54922
54923 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54924
54925         * modules/strsep: New file.
54926
54927 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54928
54929         * m4/strsep.m4: New file.
54930
54931 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54932
54933         * lib/strsep.h: New file.
54934         * lib/strsep.c: New file.
54935
54936 2004-10-01  Simon Josefsson  <jas@extundo.com>
54937
54938         * lib/snprintf.c (snprintf): Handle size==0.
54939
54940 2004-10-01  Simon Josefsson  <jas@extundo.com>
54941             Bruno Haible  <bruno@clisp.org>
54942
54943         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
54944         (snprintf): Declare 'args'.
54945
54946 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
54947
54948         * lib/snprintf.c: Remove comments as to why each header is needed.
54949
54950 2004-10-01  Bruno Haible  <bruno@clisp.org>
54951
54952         * MODULES.html.sh: Add strsep.
54953
54954 2004-09-30  Simon Josefsson  <jas@extundo.com>
54955
54956         * modules/snprintf: New file.
54957
54958 2004-09-30  Simon Josefsson  <jas@extundo.com>
54959
54960         * m4/snprintf.m4: New file.
54961
54962 2004-09-30  Simon Josefsson  <jas@extundo.com>
54963
54964         * lib/snprintf.h, lib/snprintf.c: New files.
54965
54966 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54967
54968         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
54969         (hol_entry_help): Never translate an empty string.
54970         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
54971         * lib/argp.h (OPTION_NO_TRANS): New option.
54972
54973 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
54974
54975         * modules/argp (Maintainer): Replace Simon Josefsson
54976         by Sergey Poznyakoff.
54977
54978 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
54979
54980         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
54981         changes merged back into glibc.
54982
54983 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
54984
54985         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
54986
54987 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
54988
54989         * lib/xvasprintf.c: Include xalloc.h.
54990         (xvasprintf): Use xalloc_die, not xmalloc_die.
54991
54992 2004-09-29  Bruno Haible  <bruno@clisp.org>
54993
54994         * modules/alloca-opt: New file, derived from modules/alloca.
54995         * modules/allocsa: Depend on alloca-opt instead of alloca.
54996         * modules/setenv: Likewise.
54997         * modules/vasnprintf: Likewise.
54998         * MODULES.html.sh: Add alloca-opt.
54999
55000 2004-09-28  Simon Josefsson  <jas@extundo.com>
55001
55002         * gnulib-tool: New parameter --lgpl, to asseert that modules are
55003         LGPL, and to replace license template from GPL to LGPL.
55004
55005 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
55006
55007         * modules/dummy: Change license to LGPL.
55008
55009 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
55010
55011         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
55012
55013 2004-09-24  Simon Josefsson  <jas@extundo.com>
55014
55015         * modules/minmax (License): Change from GPL to LGPL.
55016
55017 2004-09-23  Simon Josefsson  <jas@extundo.com>
55018
55019         * gnulib-tool (--import): Typo.
55020
55021 2004-09-23  Simon Josefsson  <jas@extundo.com>
55022
55023         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
55024
55025 2004-09-22  Bruno Haible  <bruno@clisp.org>
55026
55027         * modules/*: Add 'License' field.
55028         * gnulib-tool: Accept --extract-license option.
55029         (func_get_license): New function.
55030
55031 2004-09-21  Bruno Haible  <bruno@clisp.org>
55032
55033         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
55034         Reported by Simon Josefsson.
55035
55036 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
55037
55038         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
55039         gl_AC_TYPE_LONG_LONG.
55040
55041 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
55042
55043         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
55044
55045 2004-09-18  Simon Josefsson  <jas@extundo.com>
55046         and  Paul Eggert  <eggert@cs.ucla.edu>
55047
55048         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
55049         calls with autoreconf.  Define GL_LIB.
55050
55051 2004-09-14  Karl Berry  <karl@gnu.org>
55052
55053         * config/srclist.txt: unsync setenv.c, sigh.
55054
55055 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
55056
55057         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
55058         Problem reported by Bruno Haible in:
55059         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
55060
55061 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
55062
55063         * config/srclist.txt: Comment out argp-pvh.c.
55064
55065 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
55066
55067         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
55068         in case some system header has #define'd it.  Problem reported by
55069         Soeren D. Schulze in
55070         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
55071
55072 2004-09-09  Karl Berry  <karl@gnu.org>
55073
55074         * regex.[ch]: delete from the root.  These were supposed to be
55075                 synced with emacs cvs, but this has not happened for about
55076                 a year, and anyway nothing else uses emacs regex.[ch].
55077                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
55078                 lib/regex[.ch] is untouched.
55079
55080 2004-09-09  Bruno Haible  <bruno@clisp.org>
55081
55082         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
55083
55084 2004-09-09  Bruno Haible  <bruno@clisp.org>
55085
55086         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
55087         modifications.
55088         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
55089
55090 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
55091
55092         * modules/xvasprintf: New file.
55093         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
55094
55095 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
55096
55097         * lib/xvasprintf.h: New file.
55098         * lib/xvasprintf.c: New file.
55099         * lib/xasprintf.c: New file.
55100
55101 2004-09-08  Bruno Haible  <bruno@clisp.org>
55102
55103         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
55104
55105 2004-09-08  Bruno Haible  <bruno@clisp.org>
55106
55107         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
55108         length is > INT_MAX.
55109         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
55110         more.
55111
55112 2004-09-08  Bruno Haible  <bruno@clisp.org>
55113
55114         * lib/stdint_.h: New file, taken from GNU clisp.
55115
55116 2004-09-08  Bruno Haible  <bruno@clisp.org>
55117             Oskar Liljeblad  <oskar@osk.mine.nu>
55118
55119         * modules/stdint: New file.
55120         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
55121
55122 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55123
55124         Import from coreutils.
55125         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
55126         strings on unbounded length.  alloca's performance benefits aren't
55127         that important here.
55128         (V_STRDUP): Remove.
55129         (parse_with_separator): New function, with most of the internals
55130         of the old parse_user_spec.  Allow user to omit both user and group,
55131         for compatibility with FreeBSD.
55132         Clone only the user name, not the entire spec.
55133         Do not set *uid, *gid unless entirely successful.
55134         Avoid memory leak in some failing cases.
55135         Fix regression for USER.GROUP reported by Dmitry V. Levin in
55136         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
55137         (parse_user_spec): Rewrite to use parse_with_separator.
55138
55139 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55140
55141         * modules/userspec: Don't depend on alloca.
55142
55143 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55144
55145         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
55146
55147 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
55148
55149         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
55150         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
55151         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
55152
55153 2004-08-16  Simon Josefsson  <jas@extundo.com>
55154
55155         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
55156         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
55157         Add --dry-run for --import.
55158         Let user provided command line parameters override configure.ac
55159         settings.
55160
55161 2004-08-12  Simon Josefsson  <jas@extundo.com>
55162
55163         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
55164         as discussed with Paul Eggert in threads rooted at
55165         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
55166         and
55167         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
55168         Before, the test was empty, and relied on ELIDE_CODE in source
55169         code.)
55170         (gl_PREREQ_GETOPT): New macro.
55171         (gl_GETOPT): Use them.
55172
55173 2004-08-12  Simon Josefsson  <jas@extundo.com>
55174
55175         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
55176         * lib/getopt_.h: Renamed from getopt.h.
55177
55178 2004-08-12  Simon Josefsson  <jas@extundo.com>
55179
55180         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
55181         Change default library name from libfoo to libgnu.
55182         Now, if you have a configure.ac that says:
55183                 gl_SOURCE_BASE(gl)
55184                 gl_M4_BASE(gl/m4)
55185                 gl_MODULES(error getopt etcetera)
55186                 gl_INIT
55187         you can import all you need by running:
55188                 ../gnulib/gnulib-tool --import
55189
55190         * modules/getopt (Files): Rename getopt.h to getopt_.h.
55191         (Makefile.am): Rewrite, use logic from argz.
55192         (Include): Use <getopt.h> instead of "getopt.h".
55193
55194 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55195
55196         * modules/argp (Files): Add m4/unlocked-io.m4.
55197         (Depends-on): Add extensions.
55198
55199 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55200
55201         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
55202         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
55203         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
55204         Check for program_invocation_name, program_invocation_short_name,
55205         flockfile, funlockfile, features.h, _getopt_long_only_r.
55206
55207 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55208
55209         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
55210         its complicated substitute.
55211         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
55212         and program_invocation_name.
55213         (__argp_basename) [!_LIBC]: Remove; the only use was
55214         replaced by its body.
55215         (__argp_short_program_name): Change condition from
55216         !defined __argp_short_program_name to
55217         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
55218         to match argp-namefrob.h.
55219         (__argp_failure): Don't assume strerror_r returns char *.
55220         * lib/argp-parse.c (N_): Define unconditionally.
55221         (argp_default_options): Fill out initializers with 0 to avoid
55222         gcc warnings.
55223
55224 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55225
55226         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
55227         getopt1.c.
55228
55229 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55230
55231         Merge from coreutils.
55232
55233         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
55234
55235         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
55236         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
55237
55238 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55239
55240         Merge from coreutils.
55241
55242         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
55243         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
55244         for Reliant Unix 5.43.
55245
55246         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
55247         (union fooround): Use uintmax_t, not long int.
55248         The rest is a merge from libc:
55249         [defined _LIBC]: Include <shlib-compat.h>.
55250         (_obstack) [defined _LIBC]: Remove after 2.3.4.
55251
55252         * lib/settime.c (settime): Recode to avoid warning with
55253         Sun Forte C 6U2.
55254
55255         * lib/strverscmp.c: Convert to UTF-8.
55256
55257 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55258
55259         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
55260         m4/uintmax_t.m4.
55261
55262 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55263
55264         * modules/xalloc-die: New file.
55265         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
55266
55267         * modules/md5 (Files): Add m4/uint32_t.m4.
55268         * modules/sha1: Renamed from modules/sha.
55269         (Files):
55270         Rename lib/sha.h to lib/sha1.h.
55271         Rename lib/sha.c to lib/sha1.c.
55272         Rename m4/sha.m4 to m4/sha1.m4.
55273         (lib_SOURCES): Likewise.
55274         (configure.ac): Rename gl_SHA to gl_SHA1.
55275         (Include): sha.h -> sha1.h.
55276
55277 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55278
55279         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
55280         * m4/sha1.m4: Renamed from sha.m4.
55281         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
55282
55283 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55284
55285         * lib/obstack.h (obstack_empty_p):
55286         Don't assume that chunk->contents is suitably aligned.
55287         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
55288         Likewise. Problem reported by Benno in
55289         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
55290
55291         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
55292         readable.  This could be improved further but it'd take some work.
55293
55294 2004-08-08  Simon Josefsson  <jas@extundo.com>
55295
55296         * modules/xgethostname (Depends-on): Remove exit and error (not
55297         used).
55298
55299         * modules/getpass-gnu: Add getpass.h.
55300         (Depends-on): Add stdbool.
55301         * modules/getpass: Add getpass.h.
55302
55303 2004-08-08  Simon Josefsson  <jas@extundo.com>
55304
55305         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
55306         Check getpass declaration.
55307
55308 2004-08-08  Simon Josefsson  <jas@extundo.com>
55309
55310         * lib/xgethostname.c: Don't include error.h (not used).
55311
55312         * lib/getpass.h: Add.
55313         * lib/getpass.c: Include getpass.h first.
55314
55315 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
55316
55317         * lib/xalloc-die.c: New file.
55318         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
55319         All uses removed.
55320         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
55321         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
55322         xalloc-die.c.
55323         (_, N_, xalloc_die): Move to xalloc-die.c.
55324         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
55325         so that we needn't mess with xalloc_msg_memory_exhausted.
55326
55327         * lib/sha1.h: Renamed from sha.h.
55328         (SHA1_H): Renamed from _SHA_H.
55329         (sha1_ctx): Renamed from sha_ctx.
55330         (sha1_init_ctx): Renamed from sha_init_ctx.
55331         (sha1_process_block): Renamed from sha_process_block.
55332         (sha1_process_bytes): Renamed from sha_process_bytes.
55333         (sha1_finish_ctx): Renamed from sha_finish_ctx.
55334         (sha1_read_ctx): Renamed from sha_read_ctx.
55335         (sha1_stream): Renamed from sha_stream.
55336         (sha1_buffer): Renamed from sha_buffer.
55337         * lib/sha1.c: Likewise; renamed from sha.c.
55338         Do not include <sys/types.h>.
55339         Include <stddef.h> rather than <stdlib.h>.
55340
55341 2004-08-08  Bruno Haible  <bruno@clisp.org>
55342
55343         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
55344         FILESYSTEM_PREFIX_LEN.
55345         * lib/progreloc.c: Likewise.
55346         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
55347
55348 2004-08-06  Simon Josefsson  <jas@extundo.com>
55349
55350         * modules/progname (Depends-on): Don't depend on stdbool.
55351
55352 2004-08-06  Simon Josefsson  <jas@extundo.com>
55353
55354         * modules/getsubopt: New file.
55355         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55356         getsubopt.
55357
55358 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55359
55360         More merge from coreutils.
55361
55362         * m4/utimens.m4, m4/utimecmp.m4: New files.
55363         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
55364         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
55365         prereq.m4, sha.m4: Import changes from coreutils.
55366
55367 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55368
55369         More merge from coreutils.
55370         * modules/raise, modules/readtokens0, modules/utimens:
55371         * modules/utimecmp, module/xnanosleep: New files.
55372         * modules/strftime: Add lib/strftime.h.
55373         Change include from <time.h> to "strftime.h".
55374         * modules/yesno: Add lib/yesno.h.
55375         * modules/backupfile: Remove lib/addext.c.
55376         * modules/euidaccess: Add stat-macros.h.
55377         * modules/canonicalize, modules/euidaccess,
55378         modules/filemode, modules/lchown, modules/makepath,
55379         modules/rmdir, modules/stat: Likewise.
55380
55381 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55382
55383         Merge from tar.
55384         * lib/argp-help.c (make_hol, hol_append): Don't assume that
55385         SIZE_MAX is a valid preprocessor constant.
55386         (__argp_basename): Change from "#ifndef _LIBC"
55387         to "#ifndef __argp_short_program_name", so that
55388         we don't compile these functions for tar.
55389
55390         More merges from coreutils.
55391         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
55392         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
55393         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
55394         * lib/addext.c: Remove; no longer needed.
55395         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
55396         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
55397         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
55398         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
55399         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
55400         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
55401         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
55402         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
55403         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
55404         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
55405         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
55406         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
55407         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
55408         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
55409         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
55410         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
55411         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
55412         Import changes from coreutils.
55413
55414 2004-08-05  Simon Josefsson  <jas@extundo.com>
55415
55416         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
55417
55418 2004-08-05  Simon Josefsson  <jas@extundo.com>
55419
55420         * m4/getsubopt.m4: New file.
55421
55422 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55423
55424         Merge from coreutils.
55425
55426         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
55427         * m4/getcwd-path-max.m4: New files.
55428
55429         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
55430         FILESYSTEM_PREFIX_LEN ->
55431         FILE_SYSTEM_PREFIX_LEN.
55432         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
55433         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
55434         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
55435         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
55436
55437         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
55438         prerequisite modules now handle the DOS stuff.
55439         Don't check for unistd.h.
55440
55441 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55442
55443         Merge from coreutils.
55444
55445         * lib/.gdb-history: Remove; this doesn't belong here.
55446
55447         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
55448         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
55449         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
55450         * lib/getcwd.c: New files.
55451
55452         * lib/dirname.h: Include <stdbool.h>.
55453         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
55454         for consistency with POSIX terminology.  All uses changed.
55455         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
55456         (strip_trailing_slashes): Use bool for booleans.
55457         * lib/stripslash.c (strip_trailing_slashes): Likewise.
55458
55459         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
55460         sometimes returns a positive errno value even when it succeeds.
55461         (print_errno_message) [!LIBC]: Fall back on strerror if
55462         __strerror_r fails.
55463
55464         * lib/path-concat.c (mempcpy): Don't define if a system header defines
55465         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
55466         (longest_relative_suffix): New function.
55467         (path_concat): Use it.  Assume first argument is not NULL.
55468         Port to DOS.  Omit redundant separators.
55469         Report an error instead of returning NULL.
55470         Use mempcpy instead of memcpy.
55471         (xpath_concat): Remove: not declared or used.
55472
55473         * lib/same.h: Include <stdbool.h>
55474         (same_name): Return bool, not int.
55475         * lib/same.c (same_name): Likewise.
55476         (errno): Don't declare; we assume C89 or better now.
55477
55478         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
55479         if not already defined.
55480
55481         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
55482         * lib/dup-safer.c (errno): Likewise.
55483
55484 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55485
55486         Merge from coreutils.
55487         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
55488         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
55489         * modules/path-concat: Don't depend on strdup.
55490
55491 2004-08-03  Simon Josefsson  <jas@extundo.com>
55492
55493         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
55494         * lib/progname.h: Don't include stdbool.h.
55495
55496 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55497
55498         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
55499         * MODULES.html.sh (func_all_modules): Remove fatal.
55500
55501 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55502
55503         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
55504
55505 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55506
55507         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
55508         working.
55509
55510 2004-08-02  Simon Josefsson  <jas@extundo.com>
55511
55512         * lib/getsubopt.h: New file, with comments from Bruno Haible.
55513         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
55514         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
55515
55516 2004-08-01  Simon Josefsson  <jas@extundo.com>
55517
55518         * lib/xgetdomainname.c: Include stdlib.h, for free().
55519
55520 2004-07-19  Bruno Haible  <bruno@clisp.org>
55521
55522         * MODULES.html.sh (func_all_modules): Add dummy.
55523
55524 2004-07-16  Simon Josefsson  <jas@extundo.com>
55525
55526         * modules/dummy: New file.
55527
55528 2004-07-16  Simon Josefsson  <jas@extundo.com>
55529
55530         * lib/dummy.c: New file.
55531
55532 2004-07-16  Bruno Haible  <bruno@clisp.org>
55533
55534         * lib/backupfile.h: Add extern "C" for C++.
55535         * lib/closeout.h: Likewise.
55536         * lib/copy-file.h: Likewise.
55537         * lib/findprog.h: Likewise.
55538         * lib/full-write.h: Likewise.
55539         * lib/pathname.h: Likewise.
55540         * lib/progname.h: Likewise.
55541         * lib/stpcpy.h: Likewise.
55542         * lib/stpncpy.h: Likewise.
55543         * lib/strcase.h: Likewise.
55544         * lib/strstr.h: Likewise.
55545         * lib/xalloc.h: Likewise.
55546
55547         * lib/mbswidth.h: Add extern "C" for C++.
55548         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
55549
55550 2004-07-13  Robert Millan  <robertmh@gnu.org>
55551
55552         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
55553
55554 2004-07-09  Simon Josefsson  <jas@extundo.com>
55555
55556         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
55557         failed without this.)
55558
55559 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55560
55561         * modules/chown (Files): Add lib/fchown-stub.c, since
55562         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
55563
55564 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55565
55566         * lib/fchown-stub.c: New file.
55567
55568 2004-06-24  Jim Meyering  <jim@meyering.net>
55569
55570         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
55571
55572 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55573
55574         * modules/argz: Omit "#include".
55575
55576         * MODULES.html.sh (func_all_modules): Add calloc, to match
55577         2004-06-01 addition of calloc module.
55578
55579 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55580
55581         * m4/argz.m4: New file, which is autoupdated from libtool.
55582
55583 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55584
55585         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
55586         libtool.
55587
55588 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55589
55590         * config/srclist-update: Don't insist on "USA." before the
55591         close-comment, as libtool omits the period and puts the */ on a
55592         separate line.
55593         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
55594         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
55595
55596 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
55597
55598         * modules/argz: New file.
55599         * MODULES.html.sh (func_all_modules): Add argz.
55600
55601 2004-06-12  Jim Meyering  <jim@meyering.net>
55602         and  Paul Eggert  <eggert@cs.ucla.edu>
55603
55604         * modules/hash (Files): Add lib/xalloc.h.
55605         * modules/pipe (Depends-on): Add wait-process.
55606         * modules/stat (Depends-on): Add xalloc.
55607         * modules/userspec (Files): Add lib/userspec.h.
55608         * modules/xstrto
55609
55610         Upgrade from gettext-0.13.
55611         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
55612         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
55613         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
55614
55615 2004-06-10  Jim Meyering  <jim@meyering.net>
55616
55617         * lib/calloc.c: New file.
55618
55619 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
55620
55621         * lib/getdate.y (yylex): Allow space between sign and number.
55622         Problem reported by Dan Jacobson.
55623
55624 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
55625
55626         Merge from coreutils CVS.
55627
55628         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
55629         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
55630         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
55631         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
55632         xstrtol.m4: Fix copyright date and/or serial number.
55633
55634         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
55635         See if we need an fchown replacement.
55636         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
55637         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
55638         and use the replacement function if we detect either defect.
55639
55640         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
55641         gl_UTIMECMP.
55642
55643 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
55644         and  Jim Meyering  <jim@meyering.net>
55645
55646         Merge from coreutils CVS.
55647
55648         * lib/stat-macros.h: New file, with contents from file-type.h
55649         and coreutils' system.h.
55650         * lib/file-type.c: Include "stat-macros.h".
55651         * lib/file-type.h (file_type): Move all macro definitions to new file,
55652         stat-macros.h.
55653
55654         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
55655         Wrap old code with this conditional.
55656         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
55657         function that does not dereference symlinks.
55658         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
55659
55660         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
55661         dependency problems.
55662         (xreadlink): Accept new arg SIZE, for efficiency.
55663         All decls and uses changed.
55664         * lib/xreadlink.h: Include <stddef.h>, for size_t.
55665
55666         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
55667         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
55668
55669         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
55670         sysexits.h.
55671
55672 2004-06-01  Jim Meyering  <jim@meyering.net>
55673
55674         * m4/calloc.m4: New file.
55675
55676 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
55677
55678         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
55679         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
55680         Also, fix a typo in a diagnostic.
55681
55682 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
55683
55684         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
55685         or AC_FUNC_REALLOC.
55686
55687 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
55688
55689         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
55690         macros to be defined.
55691         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
55692         the allocator returns NULL because the requested size is zero.
55693
55694 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55695
55696         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
55697         var.  Add comment explaining why libc still defines it.  This
55698         merges the following patch from glibc:
55699         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
55700
55701 2004-05-20  Andreas Schwab  <schwab@suse.de>
55702
55703         * m4/free.m4: Replace free if it not known to work, not the other
55704         way round.
55705
55706 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
55707
55708         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
55709         present in glibc since revision 1.1 of this file.
55710         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
55711         obstack_alignment_mask, obstack_alloc, obstack_base,
55712         obstack_blank, obstack_blank_fast, obstack_chunk_size,
55713         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
55714         obstack_grow0, obstack_init, obstack_int_grow,
55715         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
55716         obstack_next_free, obstack_object_size, obstack_ptr_grow,
55717         obstack_ptr_grow_fast, obstack_room): Remove declarations of
55718         nonexistent functions.
55719
55720 2004-05-18  Karl Berry  <karl@gnu.org>
55721
55722         * config/srclist.txt: break link for vasnprintf.c.
55723
55724 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55725
55726         Port obstack to the AS/400, where pointers are 16 bytes wide and
55727         you cannot cast an integer to a valid pointer.  This patch is
55728         currently waiting to be integrated into glibc; see
55729         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
55730
55731         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
55732         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
55733         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
55734         (struct obstack): temp member is now a union of a pointer and
55735         an integer, instead of an integer.  All integer uses changed.
55736         This does not affect the physical layout of struct obstack,
55737         except on hosts (like the AS/400) where the size or alignment of
55738         void * is greater than that of ptrdiff_t.
55739         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
55740         __STDC__)]: Store temporary in pointer member of union, not
55741         integer member.
55742         * lib/obstack.c: Include <stddef.h>, for offsetof.
55743         (struct fooalign): Remove; it doesn't need a name.
55744         (union fooround): Change double to long double, and add void *.
55745         (DEFAULT_ALIGNMENT): Use offsetof to compute.
55746         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
55747         not a macro.  Hence the values are always int; so remove all
55748         casts-to-int in uses.
55749
55750 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55751
55752         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
55753         we can get this patch merged into glibc.
55754
55755 2004-05-17  Derek R. Price  <derek@ximbiot.com>
55756             Paul Eggert  <eggert@cs.ucla.edu>
55757
55758         * m4/argp: Depend on alloca.
55759
55760 2004-05-17  Derek R. Price  <derek@ximbiot.com>
55761             Paul Eggert  <eggert@cs.ucla.edu>
55762
55763         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
55764         freecoding.
55765
55766 2004-05-17  Bruno Haible  <bruno@clisp.org>
55767
55768         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
55769         precision that consists of a '.' followed by an empty digit string.
55770         Patch by Tor Lillqvist <tml@iki.fi>.
55771
55772 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55773
55774         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
55775         for backward compatibility with older code.  We need our own
55776         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
55777         it under some other name, and our alloca.h will define it.
55778
55779 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55780             Derek Price  <derek@ximbiot.com>
55781
55782         * lib/alloca.c: Include <alloca.h>, to get our interface.
55783         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
55784         include <alloca.h> first.  Use C89 prototype for alloca; this
55785         requires including <stddef.h> for size_t.  Use extern "C" if C++.
55786         Use #elif for simplicity, since we can assume C89 now.
55787         Don't try to source the system alloca.h since it will not be found
55788         and to prevent recursively including its replacement.
55789         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
55790         * lib/regex.c: Likewise.
55791
55792 2004-05-16  Derek Price  <derek@ximbiot.com>
55793             Paul Eggert  <eggert@cs.ucla.edu>
55794
55795         getline cleanup.  This changes the getndelim2 API: both order of
55796         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
55797         no delimiter).
55798
55799         * lib/getline.c: Don't include stddef.h or stdio.h, since our
55800         interface does that.
55801         (getline): Always use getdelim, so that we don't have two
55802         copies of this code.
55803         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
55804         if available.
55805         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
55806         (GETNDELIM2_MAXIMUM): New macro.
55807         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
55808         instead of the old practice of delim2==0.  All callers changed.
55809         Return -1 on overflow, instead of returning junk.
55810         Do not set *linesize unless allocation succeeds.
55811         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
55812         that we include sys/types.h.
55813         * lib/getnline.h: Likewise.
55814         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
55815         (getndelim2): Reorder arguments.
55816         * lib/getnline.c (getnline, getndelim):
55817         Don't discard the NMAX argument.
55818         (getnline): Invoke getndelim, to avoid code duplication.
55819         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
55820         of (size_t) -1 by callers of the getnline family.
55821
55822 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55823
55824         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
55825         Check for gettimeofday.
55826         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
55827         Check for settimeofday, stime.
55828
55829 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55830
55831         * lib/nanosleep.c (suspended): Change its type from int to
55832         sig_atomic_t volatile.
55833         (first_call): Make it private to rpl_nanosleep, and have it
55834         be zero initially as that's a bit faster.
55835         (my_usleep): Round up fractional times instead of truncating them,
55836         as this is the usual meaning for 'sleep'.
55837
55838         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
55839         doesn't work.
55840         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
55841         (ENOSYS): Define if not defined.
55842         (settime): Fall back on stime if it exists and settimeofday fails.
55843         But don't bother with fallbacks if a method fails with errno == EPERM.
55844
55845 2004-05-11  Jim Meyering  <jim@meyering.net>
55846
55847         Prior to this change, the save_cwd caller required read access to the
55848         current directory on most systems (ones with the fchdir function).
55849
55850         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
55851         fails, try write-only, and finally, resort to using xgetcwd.
55852
55853 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
55854
55855         * lib/obstack.c, obstack.h: Import changes from libc.
55856
55857 2004-04-28  Bruno Haible  <bruno@clisp.org>
55858
55859         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
55860         also implicitly appends .exe to executables.
55861         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
55862         accepts Windows pathnames.
55863         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
55864         Treat Cygwin like Windows, since it now accepts Windows pathnames.
55865         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
55866         Treat Cygwin like Windows, since it now accepts Windows pathnames.
55867         Reported by Derek Robert Price <derek@ximbiot.com>.
55868
55869 2004-04-21  Karl Berry  <karl@gnu.org>
55870
55871         * config/srclist.txt (localcharset.c): break sync.
55872
55873 2004-04-20  Paul Eggert  <eggert@twinsun.com>
55874
55875         * m4/host-os.m4: Add a copyright notice.
55876
55877 2004-04-20  Jim Meyering  <jim@meyering.net>
55878
55879         Change UTILS_ to gl_ in AC_DEFINE'd names.
55880         Change utils_- and jm_-prefixed variables, too.
55881         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
55882         UTILS_FUNC_MKDIR_TRAILING_SLASH.
55883         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
55884
55885         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
55886         Don't emit trailing blanks.
55887         Also rename jm_-prefixed variables to have gl_ prefix.
55888
55889         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
55890         Also rename jm_-prefixed variables to have gl_ prefix.
55891
55892         * m4/jm-macros.m4: Reflect the renamings.
55893         * m4/prereq.m4: Likewise.
55894
55895 2004-04-20  Jim Meyering  <jim@meyering.net>
55896
55897         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
55898         memory.
55899
55900 2004-04-20  Jim Meyering  <jim@meyering.net>
55901             Bruno Haible  <bruno@clisp.org>
55902
55903         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
55904         memory when realloc fails.
55905
55906 2004-04-19  Jim Meyering  <jim@meyering.net>
55907
55908         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
55909         now that readutmp.c may call `free (0)'.
55910
55911 2004-04-19  Bruno Haible  <bruno@clisp.org>
55912
55913         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
55914         * m4/inttypes_h.m4: Likewise.
55915         * m4/stdint_h.m4: Likewise.
55916         * m4/intmax_t.m4: Likewise.
55917         * m4/uintmax_t.m4: Likewise.
55918
55919 2004-04-18  Jim Meyering  <jim@meyering.net>
55920
55921         * m4/prereq.m4: Don't forbid jm_ prefix.
55922
55923         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
55924         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
55925         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
55926         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
55927         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
55928         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
55929         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
55930         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
55931         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
55932         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
55933         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
55934         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
55935         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
55936         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
55937         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
55938         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
55939         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
55940         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
55941         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
55942
55943 2004-04-18  Jim Meyering  <jim@meyering.net>
55944
55945         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
55946         failure, don't leak memory and do call END_UTMP_ENT.
55947
55948 2004-04-16  Jim Meyering  <jim@meyering.net>
55949
55950         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
55951         coreutils' stat program.
55952         (gl_PREREQ): Don't require jm_PREREQ_STAT.
55953
55954 2004-04-11  Paul Eggert  <eggert@twinsun.com>
55955
55956         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
55957         C89.
55958         (CHAR_BIT): Remove, since we assume C89.
55959         Include <stdint.h> if available, as per current Autoconf CVS advice.
55960
55961 2004-03-31  Jim Meyering  <jim@meyering.net>
55962
55963         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
55964         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
55965         * m4/xalloc.m4: Likewise.
55966
55967 2004-03-30  Paul Eggert  <eggert@twinsun.com>
55968
55969         Merge from coreutils.
55970
55971         * m4/inttostr.m4: New file.
55972         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
55973         Require AM_STDBOOL_H and gl_TIMESPEC instead.
55974         Require gl_CLOCK_TIME.
55975         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
55976
55977 2004-03-30  Paul Eggert  <eggert@twinsun.com>
55978
55979         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
55980         not bool, to be more consistent with Unix conventions.
55981         Suggested by Bruno Haible.
55982
55983         Merge from coreutils.
55984
55985         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
55986         * lib/umaxtostr.c: New files.
55987
55988         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
55989         the usual <time.h> dance.
55990         (get_date): Change signature to support fractional time stamps.
55991         All callers changed.
55992         * lib/getdate.y: Include "getdate.h" first, as we can now
55993         assume C89 and don't need to worry about 'const'.
55994         Similarly, include "unlocked-io.h" near start, not in middle.
55995         Include <limits.h>.
55996         (textint.value): Use long int rather than int.
55997         (textint.digits): Use size_t rather than int.
55998         (BILLION, LOG10_BILLION): New constants.
55999         (parser_control): New member rel_ns.  Members day_ordinal,
56000         time_zone, month, day, hour, minutes, rel_year, rel_month,
56001         rel_day, rel_hour, rel_minutes, rel_seconds
56002         are now long int, not int.  Member seconds is now struct timespec,
56003         not int.  New member timespec_seen.  Members dates_seen, days_seen,
56004         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
56005         not int.
56006         (%union.intval): Now long int, not int.
56007         New member timespec.
56008         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
56009         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
56010         (spec): Now is a timespec or an item list.
56011         (timespec, items): New nonterminals.
56012         (time, rel, relunit, number, get_date):
56013         Add support for fractional seconds.
56014         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
56015         (gmtime, localtime, mktime): Remove decls; not needed with C89.
56016         (to_hour): First arg is now long int, not int.
56017         (to_year): Returns long int, not int.
56018         Don't treat year -70 like 70.
56019         (tm_diff): Returns long int, not int.
56020         (lookup_word): Use bool instead of int when appropriate.
56021         (yylex): Use size_t for count, not int.
56022         Detect overflow when parsing large integer constants.
56023         Add support for fractions.
56024         (get_date): Make pointers 'const' if possible.
56025         Use more-portable code to detect integer overflow.
56026         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
56027         Don't use ctime; it's not reliable if the year has >4 digits.
56028
56029         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
56030         This is for compatibility with BSD.
56031
56032         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
56033         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
56034         From coreutils' system.h.
56035
56036         * lib/userspec.c: Don't include "posixver.h".
56037         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
56038         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
56039         compatible extension.  Simplify code by removing a boolean int
56040         that was always nonzero if a string was nonnull.
56041
56042 2004-03-30  Jim Meyering  <jim@meyering.net>
56043
56044         Merge from coreutils.
56045
56046         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
56047         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
56048         on some systems one must include <grp.h> before it.
56049         Reported by Christian Krackowizer.
56050
56051 2004-03-30  Jim Meyering  <jim@meyering.net>
56052
56053         Merge from coreutils.
56054
56055         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
56056
56057         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
56058         an empty input stream.
56059
56060         * lib/readtokens.c: Include <stdbool.h>.
56061         (readtoken): Use `size_t' rather than int/long.
56062         All callers adjusted.
56063         Use `bool' rather than `int' where appropriate.
56064         Use memset rather than an explicit loop.
56065         Use x2nrealloc rather than xrealloc.
56066         Allow the use of `\0' as a delimiter.
56067         (readtokens): Likewise.
56068         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
56069
56070 2004-03-30  Jim Meyering  <jim@meyering.net>
56071
56072         * m4/realloc.m4: Remove file, since now it does no more than
56073         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
56074         the `configure.ac' section of module/realloc.
56075         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
56076
56077 2004-03-30  Bruno Haible  <bruno@clisp.org>
56078
56079         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
56080         nonnull.
56081
56082 2004-03-29  Paul Eggert  <eggert@twinsun.com>
56083
56084         Merge changes to getloadavg.c from coreutils and Emacs.
56085
56086         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
56087         Define to an expression, not to the empty string.
56088         Include cloexec.h and xalloc.h.
56089         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
56090         Use set_cloexec_flag rather than rolling our own.
56091         * lib/cloexec.c, lib/cloexec.h: New files.
56092
56093 2004-03-29  Paul Eggert  <eggert@twinsun.com>
56094
56095         * m4/cloexec.m4: New file.
56096
56097 2004-03-18  Paul Eggert  <eggert@twinsun.com>
56098
56099         * lib/getopt.h: Sync with libc CVS.
56100
56101 2004-03-18  Paul Eggert  <eggert@twinsun.com>
56102             Bruno Haible  <bruno@clisp.org>
56103
56104         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
56105         mbswidth.
56106
56107 2004-03-18  Paul Eggert  <eggert@twinsun.com>
56108             Bruno Haible  <bruno@clisp.org>
56109
56110         * lib/mbswidth.h: Include <wchar.h> only if
56111         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
56112         <wchar.h>.
56113         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
56114
56115 2004-03-09  Paul Eggert  <eggert@twinsun.com>
56116
56117         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
56118         Sync with libc CVS.
56119         * lib/getopt_int.h: New file, also synced from libc.
56120
56121 2004-03-09  Paul Eggert  <eggert@twinsun.com>
56122
56123         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
56124         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
56125         Bring back getopt.c, getopt.h, getopt1.c.
56126
56127 2004-03-07  Paul Eggert  <eggert@twinsun.com>
56128
56129         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
56130         All uses changed.  Check for sa_sigaction member; this fixes
56131         a bug first reported by Jason Andrade in
56132         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
56133
56134 2004-03-07  Paul Eggert  <eggert@twinsun.com>
56135
56136         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
56137         '#if' expressions.  Unlike the code it replaces, it does not
56138         depend on (defined _SC_PAGESIZE).  However, it does depend on
56139         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
56140         first reported by Jason Andrade in
56141         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
56142
56143 2004-02-25  Simon Josefsson  <jas@extundo.com>
56144
56145         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
56146
56147 2004-02-25  Simon Josefsson  <jas@extundo.com>
56148
56149         * lib/strdup.h: New file.
56150         * lib/strdup.c: Include it.
56151         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
56152         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
56153
56154 2004-02-23  Karl Berry  <karl@gnu.org>
56155
56156         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
56157         (from fencepost.gnu.org:/gd/gnuorg).
56158
56159 2004-02-23  Karl Berry  <karl@gnu.org>
56160
56161         * config/srclistvars.sh (GNUORG) [karl]: redefine.
56162         * config/srclist.txt: add maintain/standards documents.
56163
56164 2004-02-18  Bruno Haible  <bruno@clisp.org>
56165
56166         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
56167         Reported by Derek Robert Price <derek@ximbiot.com>.
56168
56169 2004-02-16  Karl Berry  <karl@gnu.org>
56170
56171         * config/mkinstalldirs, install-sh: update from automake.
56172
56173 2004-02-06  Karl Berry  <karl@gnu.org>
56174
56175         * m4/po.m4: update from gettext 0.14.1.
56176
56177 2004-02-06  Karl Berry  <karl@gnu.org>
56178
56179         * lib/config.charset: update from gettext 0.14.1.
56180
56181 2004-02-05  Paul Eggert  <eggert@twinsun.com>
56182
56183         Add comments and code, prompted by suggestions from Bruno Haible
56184         for sh-quote.
56185         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
56186         describing the enum quoting_style values.
56187         * lib/quotearg.c (quotearg_alloc): New function.
56188         (quotearg_buffer_restyled): Treat lone { and } as special.
56189         Treat = as special.  Work around bug with older shells
56190         that "see" a '\' that is really the 2nd byte of a multibyte char.
56191         Quote empty string with shell_quoting_style.
56192
56193 2004-02-03  Bruno Haible  <bruno@clisp.org>
56194
56195         * m4/pipe.m4: New file, from GNU gettext.
56196
56197 2004-02-03  Bruno Haible  <bruno@clisp.org>
56198
56199         * lib/pipe.h: New file, from GNU gettext.
56200         * lib/pipe.c: New file, from GNU gettext.
56201
56202 2004-01-27  Bruno Haible  <bruno@clisp.org>
56203
56204         * m4/execute.m4: New file, from GNU gettext.
56205
56206 2004-01-27  Bruno Haible  <bruno@clisp.org>
56207
56208         * lib/execute.h: New file, from GNU gettext.
56209         * lib/execute.c: New file, from GNU gettext.
56210         * lib/w32spawn.h: New file, from GNU gettext.
56211
56212 2004-01-24  Paul Eggert  <eggert@twinsun.com>
56213
56214         Merge from diffutils.
56215
56216         * lib/file-type.c (file_type): Add typed memory objects.
56217         * lib/file-type.h (S_TYPEISTMO): New macro.
56218
56219         * lib/c-stack.h (c_stack_action): Remove argv argument.
56220         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
56221         (die): Don't calculate message unless segv_action returns.
56222         (get_stack_location, min_address_from_argv, max_address_from_argv,
56223         volatile stack_base, volatile_stack_size): Remove.
56224         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
56225         that every segmentation violation is a stack overflow.  (Ouch!)
56226         See Debian bug 136249 (still outstanding) for more info about why
56227         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
56228
56229 2004-01-24  Paul Eggert  <eggert@twinsun.com>
56230
56231         Exit-status fix from coreutils.
56232
56233         Use exit_failure consistently in place of EXIT_FAILURE,
56234         so that program exit statuses are consistent on failure.
56235
56236         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
56237         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
56238         * lib/argmatch.h: Comment fix to match the above.
56239         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
56240         Now a macro referring to exit_failure, instead of a separate
56241         variable.  Include "exitfail.h" to get it.
56242         * lib/xstrtol.h: Include "exitfail.h".
56243         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
56244
56245         * lib/long-options.c (parse_long_options): Use prototype
56246         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
56247         for clarity.
56248
56249 2004-01-21  Jim Meyering  <jim@meyering.net>
56250
56251         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
56252         so as not to conflict with a different-sized __mktime_internal
56253         function in GNU libc.
56254         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
56255         Problem building statically-linked `ls' reported by Michael Brunnbauer.
56256
56257 2004-01-20  Karl Berry  <karl@gnu.org>
56258
56259         * config/config.guess: update from config.
56260
56261         * config/srclistvars.sh: GNUWWWLICENSES for karl.
56262
56263 2004-01-20  Bruno Haible  <bruno@clisp.org>
56264
56265         Safer stack allocation.
56266         * lib/setenv.c: Include allocsa.h.
56267         (alloca): Remove fallback definition.
56268         (freea): Remove macro.
56269         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
56270         instead of freea.
56271
56272 2004-01-20  Bruno Haible  <bruno@clisp.org>
56273
56274         * m4/eealloc.m4: New file, from GNU gettext.
56275
56276 2004-01-20  Bruno Haible  <bruno@clisp.org>
56277
56278         * m4/allocsa.m4: New file, from GNU gettext.
56279
56280 2004-01-20  Bruno Haible  <bruno@clisp.org>
56281
56282         * lib/xallocsa.h: New file, from GNU gettext.
56283         * lib/xallocsa.c: New file, from GNU gettext.
56284
56285 2004-01-20  Bruno Haible  <bruno@clisp.org>
56286
56287         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
56288
56289 2004-01-20  Bruno Haible  <bruno@clisp.org>
56290
56291         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
56292         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
56293         specially.
56294
56295 2004-01-20  Bruno Haible  <bruno@clisp.org>
56296
56297         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
56298         patch.
56299
56300 2004-01-20  Bruno Haible  <bruno@clisp.org>
56301
56302         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
56303
56304 2004-01-20  Bruno Haible  <bruno@clisp.org>
56305
56306         * lib/eealloc.h: New file.
56307
56308 2004-01-20  Bruno Haible  <bruno@clisp.org>
56309
56310         * lib/binary-io.h: Avoid warnings on Cygwin.
56311
56312 2004-01-20  Bruno Haible  <bruno@clisp.org>
56313
56314         * lib/allocsa.h: New file, from GNU gettext.
56315         * lib/allocsa.c: New file, from GNU gettext.
56316
56317 2004-01-18  Karl Berry  <karl@gnu.org>
56318
56319         * doc/gpl.texi, doc/lgpl.texi: new files.
56320
56321 2004-01-18  Karl Berry  <karl@gnu.org>
56322
56323         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
56324         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
56325
56326 2004-01-15  Paul Eggert  <eggert@twinsun.com>
56327
56328         Merge from coreutils.
56329
56330         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
56331         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
56332         (gl_DEFAULT_POSIX2_VERSION): Move
56333         the documentation from 'configure' into 'config.hin',
56334         so that 'configure --help' isn't burdened by it and
56335         we don't have to worry about its formatting there.
56336         Reword the documentation so that it's more succinct
56337         and can be run together into a single paragraph.
56338         * m4/same.m4 (gl_SAME): Check for pathconf.
56339
56340 2004-01-15  Paul Eggert  <eggert@twinsun.com>
56341
56342         Merge from coreutils.
56343
56344         * lib/posixver.c: Include posixver.h.
56345
56346         * lib/same.c: Include <stdbool.h>, <limits.h>.
56347         (_POSIX_NAME_MAX): Define if not defined.
56348         (MIN): New macro.
56349         (same_name): If file names are silently truncated, report
56350         that the file names are the same if they are the same after
56351         the silent truncation.
56352
56353         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
56354         conversion function.
56355         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
56356         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
56357         longer needed.
56358
56359 2004-01-15  Jim Meyering  <jim@meyering.net>
56360
56361         Merge from coreutils.
56362
56363         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
56364         if no library is required.
56365         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
56366         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
56367         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
56368         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
56369         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
56370         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
56371         value, $ac_cv_search_crypt, if it's "none required".
56372         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
56373         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
56374         not gl_FUNC_GETLOADAVG.
56375         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
56376         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
56377
56378 2004-01-15  Jim Meyering  <jim@meyering.net>
56379
56380         Merge from coreutils.
56381
56382         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
56383         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
56384         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
56385
56386         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
56387         optional configure-time default.
56388
56389         * lib/version-etc.c (version_etc_copyright): Update copyright date.
56390
56391         * lib/xreadlink.c (xreadlink): Correct outdated comment.
56392
56393 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
56394
56395         Merge from coreutils.
56396
56397         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
56398         value, $ac_cv_search_nanosleep, if it's "none required".
56399
56400 2004-01-14  Paul Eggert  <eggert@twinsun.com>
56401
56402         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
56403         with like-named macro in fnmatch.c.
56404         (EXT): Use an internal constant instead.
56405
56406         Merge fnmatch patches from glibc.
56407         * lib/fnmatch.c (mbsinit): Remove define.
56408         Add libc_hidden_ver (__fnmatch, fnmatch).
56409         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
56410         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
56411
56412 2004-01-14  Karl Berry  <karl@gnu.org>
56413
56414         * config/install-sh: update from automake.
56415
56416 2004-01-13  Karl Berry  <karl@gnu.org>
56417
56418         * config/install-sh: update from automake.
56419
56420 2004-01-09  Karl Berry  <karl@gnu.org>
56421
56422         * config/install-sh: update from automake.
56423
56424 2004-01-05  Karl Berry  <karl@gnu.org>
56425
56426         * config/config.{sub,guess}: update from config.
56427
56428 2003-12-31  Karl Berry  <karl@gnu.org>
56429
56430         * config/depcomp: update from automake.
56431
56432 2003-12-14  Karl Berry  <karl@gnu.org>
56433
56434         * lib/config.charset: update from gettext-runtime.
56435
56436 2003-12-03  Paul Eggert  <eggert@twinsun.com>
56437
56438         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
56439         Bug reported by Alfred M. Szmidt.
56440
56441 2003-12-03  Bruno Haible  <bruno@clisp.org>
56442
56443         * m4/gettext.m4: Upgrade from gettext-0.13.
56444         * m4/po.m4: Upgrade from gettext-0.13.
56445         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
56446         * m4/intmax.m4: New file, from gettext-0.13.
56447         * m4/printf-posix.m4: New file, from gettext-0.13.
56448
56449 2003-11-29  Karl Berry  <karl@gnu.org>
56450
56451         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
56452
56453 2003-11-25  Paul Eggert  <eggert@twinsun.com>
56454             Bruno Haible  <bruno@clisp.org>
56455
56456         * lib/printf-parse.h: Don't include sys/types.h.
56457         (ARG_NONE): New macro.
56458         (char_directive): Change type of *arg_index fields to size_t.
56459         * lib/printf-parse.c: Don't include sys/types.h.
56460         (SSIZE_MAX): Remove macro.
56461         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
56462         Remove unnecessary overflow check.
56463         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
56464         fields.
56465
56466 2003-11-25  Bruno Haible  <bruno@clisp.org>
56467
56468         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
56469
56470 2003-11-25  Bruno Haible  <bruno@clisp.org>
56471
56472         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
56473         gt_TYPE_SSIZE_T.
56474
56475 2003-11-24  Paul Eggert  <eggert@twinsun.com>
56476
56477         * modules/alloca: Remove dependency on xalloc.
56478
56479 2003-11-24  Paul Eggert  <eggert@twinsun.com>
56480
56481         * lib/alloca.c: Remove dependency on xalloc module.
56482         (xalloc_die): Remove.
56483         (memory_full) [!defined emacs]: New macro.
56484         [!defined emacs]: Don't include xalloc.h.
56485         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
56486         address arithmetic overflows.  Change datatypes a bit to avoid
56487         unnecessary casts.
56488
56489 2003-11-22  Jim Meyering  <jim@meyering.net>
56490
56491         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
56492         s/size/size_t/.
56493
56494 2003-11-21  Karl Berry  <karl@gnu.org>
56495
56496         * config/config.{sub,guess}: update from config.
56497
56498 2003-11-18  Karl Berry  <karl@gnu.org>
56499
56500         * config/config.{sub,guess}: update from config.
56501
56502         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
56503
56504 2003-11-17  Paul Eggert  <eggert@twinsun.com>
56505
56506         * README: Mention that S+T cannot overflow if S is the size of
56507         an existing object and T is sufficiently small.
56508
56509 2003-11-17  Jim Meyering  <jim@meyering.net>
56510
56511         On systems without utime and without a utimes function capable of
56512         dealing with a NULL struct utimbuf* argument, this utime replacement
56513         could -- in unusual circumstances -- leak a file descriptor.
56514         * lib/utime.c: Include <unistd.h> and <errno.h>.
56515         (utime_null): Be sure to close `fd' and to preserve errno.
56516         Reported by Geoff Collyer via Arnold Robbins.
56517
56518 2003-11-17  Bruno Haible  <bruno@clisp.org>
56519
56520         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
56521         (Depends-on): Add xsize.
56522
56523 2003-11-17  Bruno Haible  <bruno@clisp.org>
56524
56525         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
56526
56527 2003-11-17  Bruno Haible  <bruno@clisp.org>
56528
56529         * lib/vasnprintf.c (alloca): Remove fallback definition.
56530         (freea): Remove definition.
56531         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
56532         Reported by Paul Eggert.
56533
56534 2003-11-16  Paul Eggert  <eggert@twinsun.com>
56535             Bruno Haible  <bruno@clisp.org>
56536
56537         Protect against address arithmetic overflow.
56538         * lib/printf-args.h: Include stddef.h.
56539         (arguments): Change type of field 'count' to size_t.
56540         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
56541         'unsigned int' where appropriate.
56542         * lib/printf-parse.h: Include sys/types.h.
56543         (char_directive): Change type of *arg_index fields to ssize_t.
56544         (char_directives): Change type of fields 'count', max_*_length to
56545         size_t.
56546         * lib/printf-parse.c: Include sys/types.h and xsize.h.
56547         (SSIZE_MAX): Define fallback value.
56548         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
56549         instead of 'int' where appropriate. Check a_allocated, d_allocated
56550         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
56551         * lib/vasnprintf.c: Include xsize.h.
56552         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
56553         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
56554         overflow. Avoid wraparound when converting a width or precision from
56555         decimal to binary.
56556
56557 2003-11-16  Bruno Haible  <bruno@clisp.org>
56558
56559         Update from GNU gettext.
56560         * lib/printf-parse.c: Generalize to it can be compiled for wide
56561         strings.
56562         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
56563         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
56564         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
56565         SNPRINTF): New macros.
56566         Don't include <alloca.h> if the file is used inside libintl.
56567         (local_wcslen): New function, for Solaris 2.5.1.
56568         (VASNPRINTF): Use it instead of wcslen.
56569
56570 2003-11-16  Bruno Haible  <bruno@clisp.org>
56571
56572         * lib/xsize.h (xmax): New function.
56573         (xsum, xsum3, xsum4): Declare as "pure" functions.
56574
56575 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56576
56577         * modules/xalloc (Files): Undo latest change, since xalloc.h
56578         no longer needs SIZE_MAX or PTRDIFF_MAX.
56579
56580 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56581
56582         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
56583         gl_PTRDIFF_MAX.
56584
56585 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56586
56587         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
56588         "return", to pacify some unknown compiler.  Problem reported
56589         by Joerg Schilling.
56590
56591 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56592
56593         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
56594         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
56595         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
56596         heuristic is just as accurate as far as we know, and it removes a
56597         dependency on size_max.m4 and ptrdiff_max.m4.
56598
56599 2003-11-11  Bruno Haible  <bruno@clisp.org>
56600
56601         * modules/xsize (Files): Add m4/size_max.m4.
56602         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
56603
56604 2003-11-11  Bruno Haible  <bruno@clisp.org>
56605
56606         * m4/size_max.m4: New file.
56607         * m4/ptrdiff_max.m4: New file.
56608         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
56609         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
56610         (gl_XALLOC): Invoke it.
56611
56612 2003-11-11  Bruno Haible  <bruno@clisp.org>
56613
56614         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
56615         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
56616         defined.
56617
56618 2003-11-10  Paul Eggert  <eggert@twinsun.com>
56619
56620         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
56621         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
56622         rejected some allocations of exactly SIZE_MAX - 2 bytes.
56623         From Bruno Haible.
56624         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
56625         not (size_t) -1, since it's defined here.
56626
56627 2003-11-09  Karl Berry  <karl@gnu.org>
56628
56629         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
56630
56631 2003-11-06  Paul Eggert  <eggert@twinsun.com>
56632
56633         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
56634         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
56635         Reject sizes of exactly SIZE_MAX bytes.
56636         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
56637         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
56638
56639 2003-11-05  Bruno Haible  <bruno@clisp.org>
56640
56641         * lib/xsize.h: Include limits.h, to avoid a possible collision with
56642         SIZE_MAX defined in <limits.h> on Solaris.
56643
56644 2003-11-04  Jim Meyering  <jim@meyering.net>
56645
56646         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
56647         variable names, rather than @VAR@.
56648         * modules/poll: Likewise.
56649
56650 2003-11-04  Bruno Haible  <bruno@clisp.org>
56651
56652         * modules/xsize: New file.
56653         * modules/linebreak: Depend on xsize.
56654         * MODULES.html.sh (func_all_modules): Add xsize.
56655
56656 2003-11-04  Bruno Haible  <bruno@clisp.org>
56657
56658         * m4/xsize.m4: New file.
56659
56660 2003-11-04  Bruno Haible  <bruno@clisp.org>
56661
56662         * lib/xsize.h: New file.
56663         * lib/linebreak.c: Include xsize.h.
56664         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
56665         argument for overflow.
56666         Suggested by Paul Eggert.
56667
56668 2003-11-03  Karl Berry  <karl@gnu.org>
56669
56670         * config/config.{guess,sub}: update from config.
56671
56672 2003-11-03  Jim Meyering  <jim@meyering.net>
56673
56674         * modules/userspec (lib_SOURCES): Add userspec.h.
56675         (Include): Add "userspec.h".
56676         Improve description.
56677
56678 2003-11-03  Jim Meyering  <jim@meyering.net>
56679
56680         * lib/userspec.c: Include "userspec.h".
56681         * lib/userspec.h: New file.
56682
56683 2003-11-03  Bruno Haible  <bruno@clisp.org>
56684
56685         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
56686
56687 2003-11-03  Bruno Haible  <bruno@clisp.org>
56688
56689         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
56690         available, to avoid (extremely rare) race condition.
56691         Suggested by Paul Eggert.
56692
56693 2003-11-02  Karl Berry  <karl@gnu.org>
56694
56695         * config/srclist.txt (vasprintf.c): sync broken, sigh.
56696
56697 2003-10-31  Paul Eggert  <eggert@twinsun.com>
56698
56699         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
56700         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
56701         (read_filesystem_list): Set and use me_type_malloced.
56702         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
56703         whatever the type happens to be), for brevity and consistency.
56704         Check for size calculation overflow on Alphas running OSF/1.
56705
56706 2003-10-31  Jim Meyering  <jim@meyering.net>
56707
56708         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
56709
56710         * lib/linebuffer.c: Include <string.h> for declaration of memset.
56711
56712 2003-10-30  Paul Eggert  <eggert@twinsun.com>
56713             Bruno Haible  <bruno@clisp.org>
56714
56715         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
56716         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
56717
56718 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
56719
56720         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
56721         netbsd*-gnu*.  Suggested by Robert Millan.
56722
56723 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56724
56725         * modules/group-member: Depend on stdbool.
56726
56727 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56728
56729         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
56730
56731 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56732
56733         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
56734         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
56735         after the 'gnu' in these cases.  This fixes some bugs in the
56736         previous change, and is based on suggestions by Robert Millan.
56737
56738 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56739
56740         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
56741         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
56742         no longer needed.
56743         * lib/quotearg.c (quotearg_n_options): Use it.
56744         * lib/group-member.c: Include <stdbool.h>.
56745         (free_group_info): Arg is now const *; don't free arg.
56746         (get_group_info): Now returns bool and accepts struct group_info *,
56747         rather than returning a malloc'ed struct group_info *.
56748         All uses changed.  Check for overflow in internal size calculation.
56749
56750         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
56751         rather than xmalloc/xrealloc.
56752         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
56753         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
56754         conformance bug: the old code used a pointer after freeing the
56755         storage that it addressed.
56756         * lib/hash.c (hash_initialize): Simplify the code by using
56757         xalloc_oversized rather than doing it by hand.
56758         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
56759         the buffer preserved.  Use free and xmalloc instead.
56760         * lib/quotearg.c (quotearg_n_options): Likewise.
56761         Use a simpler test for size overflow.  Don't use xalloc_oversized
56762         because unsigned int might be wider than size_t (!); this suggests
56763         that we should switch from unsigned int to size_t for slot numbers.
56764
56765 2003-10-28  Paul Eggert  <eggert@twinsun.com>
56766
56767         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
56768         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
56769         NetBSD kernels.  Requested by Richard Stallman.
56770
56771 2003-10-27  Paul Eggert  <eggert@twinsun.com>
56772
56773         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
56774         to allocate the returned structure.  Do not allocate a subarray,
56775         as x2nrealloc will do that.
56776         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
56777         instead of xnrealloc.
56778         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
56779
56780 2003-10-27  Bruno Haible  <bruno@clisp.org>
56781
56782         * lib/stdbool_.h: Better support for BeOS.
56783
56784 2003-10-26  Paul Eggert  <eggert@twinsun.com>
56785
56786         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
56787         now uses inline.
56788
56789 2003-10-26  Paul Eggert  <eggert@twinsun.com>
56790
56791         * lib/xalloc.h (xalloc_oversized): New static inline function, for
56792         callers that want to do their own size-overflow checking.  Include
56793         <stdbool.h>, since xalloc_oversized returns bool.
56794         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
56795         to use xalloc_oversized.
56796
56797         Add two functions x2realloc, x2nrealloc, for programs that grow
56798         arrays dynamically by doubling their sizes.
56799         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
56800         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
56801         New functions.
56802
56803         Port to C99 semantics for 'inline' of external functions.
56804         Bug reported by Bruno Haible.
56805         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
56806         with the old contents of xnmalloc.
56807         (xnmalloc, xmalloc): Use it.
56808         (xnrealloc_inline): New static inline function,
56809         with the old contents of xnrealloc.
56810         (xnrealloc, xrealloc): Use it.
56811
56812         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
56813         that.
56814
56815 2003-10-26  Karl Berry  <karl@gnu.org>
56816
56817         * config/srclist.txt (COPYING.DOC): no longer available from
56818         /gd/gnuorg; don't know where the ultimate source is.
56819
56820 2003-10-25  Paul Eggert  <eggert@twinsun.com>
56821
56822         Fix several address-calculation bugs in the hash modules,
56823         plus some minor code cleanup.
56824
56825         * lib/hash.h: Include <stdbool.h>, for bool.
56826         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
56827         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
56828         hash_get_n_entries, hash_get_max_bucket_length,
56829         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
56830         hash_rehash): Use size_t rather than unsigned.
56831         * lib/hash.c (struct hash_table, hash_get_n_buckets,
56832         hash_get_n_buckets_used, hash_get_n_entries,
56833         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
56834         hash_get_entries, hash_do_for_each, hash_string, is_prime,
56835         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
56836         Likewise.
56837         (SIZE_MAX): Define if not defined.
56838         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
56839         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
56840         hash_print):
56841         Use const * when possible.
56842         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
56843         (check_tuning): Fix bug: if tuning parameters were very close to
56844         0 or 1, rounding errors could have caused subscript violations.
56845         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
56846         (hash_initialize): Add 'fail:' label
56847         to free table and return NULL, and use it to simplify code.
56848         Use calloc rather than clearing the storage ourself.
56849         (hash_initialize, hash_rehash): Check for arithmetic overflow in
56850         buffer size calculations.
56851         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
56852         Include <stddef.h>, for size_t.
56853         * lib/hash-pjw.c (hash_pjw): Likewise.
56854         Switch to method described by Bruno Haible.
56855         Include <limits.h>, for CHAR_BIT.
56856         (SIZE_BITS): New macro.
56857
56858 2003-10-23  Paul Eggert  <eggert@twinsun.com>
56859
56860         * m4/getline.m4 (AM_FUNC_GETLINE):
56861         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
56862         hosts.  Problem reported by Derek Robert Price in
56863         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
56864         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
56865         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
56866
56867 2003-10-21  Paul Eggert  <eggert@twinsun.com>
56868
56869         * lib/getndelim2.c (getndelim2): When size calculation overflows,
56870         ceiling the allocation at NMAX bytes rather than silently
56871         discarding input bytes before NMAX is reached.  This makes
56872         a difference only if NMAX exceeds SIZE_MAX / 2.
56873
56874         * lib/obstack.c: Merge from glibc.
56875         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
56876         Add libc_hidden_def (_obstack_newchunk).
56877         (_obstack_free) [! defined _LIBC]: Remove.
56878         [defined _LIBC]: Make a strong alias from obstack_free, rather than
56879         a clone of the function body.
56880         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
56881         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
56882
56883         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
56884         glibc.
56885         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
56886         arg to memcpy.
56887
56888         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
56889         (obstack_ptr_grow_fast, obstack_int_grow_fast):
56890         Don't use lvalue casts, as GCC plans to remove support for them
56891         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
56892         was also present in the non-GCC version, indicating that this
56893         code had always been buggy and had never been widely used.
56894         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
56895         Use the fast variant of each macro, rather than copying the
56896         definiens of the fast variant; that way, we'll be more likely to
56897         catch future bugs in the fast variants.
56898
56899 2003-10-20  Bruno Haible  <bruno@clisp.org>
56900
56901         * modules/wait-process: New file.
56902         * MODULES.html.sh (func_all_modules): Add wait-process.
56903
56904 2003-10-20  Bruno Haible  <bruno@clisp.org>
56905
56906         * m4/wait-process.m4: New file.
56907
56908 2003-10-20  Bruno Haible  <bruno@clisp.org>
56909
56910         * lib/wait-process.h: New file, from GNU gettext.
56911         * lib/wait-process.c: New file, from GNU gettext.
56912
56913 2003-10-19  Jim Meyering  <jim@meyering.net>
56914
56915         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
56916         HPUX 10.20.
56917
56918 2003-10-18  Karl Berry  <karl@gnu.org>
56919
56920         * config/config.guess: update from config.
56921
56922 2003-10-16  Paul Eggert  <eggert@twinsun.com>
56923
56924         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
56925         (getgroups): First arg is int, not size_t.
56926         Don't let 'free' mangle errno.
56927
56928 2003-10-16  Paul Eggert  <eggert@twinsun.com>
56929
56930         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
56931
56932 2003-10-16  Karl Berry  <karl@gnu.org>
56933
56934         * config/config.{guess,sub}: update from config.
56935
56936 2003-10-16  Jim Meyering  <jim@meyering.net>
56937
56938         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
56939         memcpy.
56940
56941 2003-10-15  Paul Eggert  <eggert@twinsun.com>
56942
56943         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
56944         (SIZE_MAX): Remove.
56945         (new_exclude, add_exclude_file): Initial size no longer needs to
56946         be a power of 2.
56947         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
56948         our own address arithmetic overflow checking.
56949
56950         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
56951         (fnmatch): Do not alloca more than 2000 wide characters;
56952         instead, use malloc for large buffers.
56953         Check for address arithmetic overflow, and return -1
56954         with errno set to ENOMEM in that case.
56955         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
56956         (NEW_PATTERN): Do not alloca more than 8000 bytes;
56957         instead, return -1.  Check for address arithmetic overflow.
56958
56959 2003-10-14  Paul Eggert  <eggert@twinsun.com>
56960
56961         Handle invalid suffixes and overflow independently, so that
56962         callers can treat them independently as needed.  Fix some bugs in
56963         suffix handling, e.g., "100k@" was not diagnosed as an invalid
56964         suffix for a human-readable blocksize.  The major caller-visible
56965         change is the addition of a new
56966         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
56967         that both overflow and suffix chars were found.
56968
56969         * lib/human.c (humblock): Don't check separately for invalid suffix
56970         char; that is xstrtoumax's job (now that its bug is fixed).
56971         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
56972         INTMAX_MAX]: New macros.
56973         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
56974         TYPE_MAXIMUM): New macros.
56975         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
56976         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
56977         if overflow occurs, as it's what __strtol does and it's more useful
56978         in practice.
56979         (__xstrtol): If __strtol reports some error other than ERANGE,
56980         reflect it to the caller as LONGINT_INVALID.  If it reports
56981         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
56982         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
56983         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
56984         value.
56985         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
56986         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
56987         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
56988         [defined UINTMAX_MAX]: New macros.
56989
56990 2003-10-14  Bruno Haible  <bruno@clisp.org>
56991
56992         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
56993
56994 2003-10-14  Bruno Haible  <bruno@clisp.org>
56995
56996         * m4/sig_atomic_t: New file, from GNU gettext.
56997         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
56998
56999 2003-10-14  Bruno Haible  <bruno@clisp.org>
57000
57001         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
57002         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
57003         Also use volatile where needed.
57004
57005 2003-10-12  Paul Eggert  <eggert@twinsun.com>
57006
57007         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
57008         Change maintainer from Bruno Haible to 'all'.
57009
57010 2003-10-12  Paul Eggert  <eggert@twinsun.com>
57011
57012         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
57013
57014 2003-10-12  Paul Eggert  <eggert@twinsun.com>
57015
57016         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
57017         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
57018         and define in terms of the other primitives.
57019         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
57020         (SIZE_MAX): Define if not already defined.
57021         (array_size_overflow): New function.
57022         (xalloc_die): Abort instead of exiting if 'error' returns.
57023         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
57024         (xmalloc, xrealloc): Use them.
57025         (xcalloc): Check for address arithmetic overflow.
57026         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
57027         a bit faster than strcpy.
57028
57029 2003-10-10  Simon Josefsson  <jas@extundo.com>
57030
57031         * modules/argp (Depends-on): Add restrict and strcase.
57032
57033 2003-10-10  Simon Josefsson  <jas@extundo.com>
57034
57035         * m4/argp.m4: Add AC_C_INLINE.
57036
57037 2003-10-08  Paul Eggert  <eggert@twinsun.com>
57038
57039         Merge getpass from libc, plus a few fixes.
57040
57041         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
57042         Include <stdbool.h>.
57043         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
57044         __fsetlocking to empty.
57045         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
57046         do include <bits/libc-lock.h>.
57047         Do not include <fcntl.h>; not needed.
57048         [_LIBC]: Include <wchar.h>.
57049         (NOTCANCEL_MODE): New macro.
57050         (flockfile, funlockfile) [_LIBC]: New macros.
57051         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
57052         [!_LIBC]: New macros.
57053         (call_fclose): New function.
57054         (getpass): Use it.  Save tty stream separately; this simplifies the
57055         code and makes it more reliable if stdin happens to equal stdout.
57056         Invoke __fsetlocking on tty.
57057         Handle thread cancellation if needed.
57058         Namespace cleanup (use __tcgetattr, __getline).
57059         Use bool for Booleans.
57060         [USE_IN_LIBIO]: Handle wide streams.
57061         [!_LIBC]: Unconditionally do the fseek, since we don't know what
57062         stream might go where.
57063
57064         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
57065         doesn't have to include <stdio.h> before us.
57066         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
57067         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
57068         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
57069         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
57070         if not declared, so that we can use getpass.c code from libc without
57071         rewriting it.
57072         (flockfile, ftrylockfile, funlockfile): New macros.
57073
57074 2003-10-08  Paul Eggert  <eggert@twinsun.com>
57075
57076         * modules/getpass: Depend on stdbool.
57077
57078 2003-10-08  Paul Eggert  <eggert@twinsun.com>
57079
57080         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
57081
57082 2003-10-07  Karl Berry  <karl@gnu.org>
57083
57084         * config/config.{guess,sub}: update from config.
57085
57086 2003-10-06  Jim Meyering  <jim@meyering.net>
57087             Bruno Haible  <bruno@clisp.org>
57088
57089         This lets translators provide better translations for the
57090         "Written by ..." part of --version output.
57091         * lib/version-etc.h: Include stdarg.h.
57092         (version_etc_copyright): Declare as readonly.
57093         (version_etc): Make this function variadic with a NULL-terminated list
57094         of author name strings.
57095         (version_etc_va): New declaration.
57096         * lib/version-etc.c: Include stdarg.h, stdlib.h.
57097         (version_etc_copyright): Declare as readonly.
57098         (version_etc_va): New function. Provide a different translatable string
57099         for each possible number of authors < 10. Abbreviate when there are 10
57100         authors or more.
57101         (version_etc): Make this function variadic. Call version_etc_va.
57102         Suggestion from Gary V. Vaughan.
57103
57104         * lib/long-options.h (parse_long_options): Change prototype: the
57105         authors string is moved to the end and becomes variadic.
57106         * lib/long-options.c: Include stdarg.h.
57107         (parse_long_options): Make this function variadic, too.
57108         Call version_etc_va, not version_etc.
57109
57110 2003-10-06  Bruno Haible  <bruno@clisp.org>
57111
57112         * modules/version-etc-2: Remove file.
57113         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
57114
57115 2003-10-06  Bruno Haible  <bruno@clisp.org>
57116
57117         * modules/fatal-signal: New file.
57118         * MODULES.html.sh (func_all_modules): Add fatal-signal.
57119
57120 2003-10-06  Bruno Haible  <bruno@clisp.org>
57121
57122         * m4/fatal-signal.m4: New file.
57123         * m4/signalblocking.m4: New file, from GNU gettext.
57124
57125 2003-10-06  Bruno Haible  <bruno@clisp.org>
57126
57127         * lib/version-etc-2.h: Remove file.
57128         * lib/version-etc-2.c: Remove file.
57129
57130 2003-10-06  Bruno Haible  <bruno@clisp.org>
57131
57132         * lib/fatal-signal.h: New file, from GNU gettext.
57133         * lib/fatal-signal.c: New file, from GNU gettext.
57134
57135 2003-10-05  Paul Eggert  <eggert@twinsun.com>
57136
57137         * README: Rework advice for preventing empty .o files.
57138         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
57139         not <sys/types.h>.
57140
57141 2003-10-04  Karl Berry  <karl@gnu.org>
57142
57143         * lib/argp*: update from libc.
57144
57145 2003-10-04  Karl Berry  <karl@gnu.org>
57146
57147         * config/config.{guess,sub}: update from config.
57148
57149 2003-10-02  Bruno Haible  <bruno@clisp.org>
57150
57151         * modules/lchown (Include): Add lchown.h.
57152         * modules/time_r (Include): Use "..." syntax.
57153         * modules/xgetdomainname (Include): Add xgetdomainname.h.
57154
57155 2003-10-01  Simon Josefsson  <jas@extundo.com>
57156
57157         * MODULES.html.sh (func_all_modules): Move gethostname from section
57158         'based on' to section 'lacking' POSIX:2001.
57159
57160 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
57161
57162         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
57163         to output mode on the same stream.
57164
57165 2003-09-29  Paul Eggert  <eggert@twinsun.com>
57166
57167         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
57168         Fix arg typo in previous patch.
57169
57170 2003-09-28  Jim Meyering  <jim@meyering.net>
57171
57172         * lib/error.c: Correct cpp indentation.
57173
57174 2003-09-27  Paul Eggert  <eggert@twinsun.com>
57175
57176         * modules/free: New file.
57177
57178 2003-09-27  Paul Eggert  <eggert@twinsun.com>
57179
57180         * m4/free.m4: New file.
57181
57182 2003-09-27  Paul Eggert  <eggert@twinsun.com>
57183
57184         * lib/minmax.h (MIN, MAX)
57185         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
57186         Omit the special code that used __typeof__, since we worry that
57187         it could be more trouble than it's worth.  See:
57188         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
57189         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
57190
57191         * lib/free.c: New file.
57192
57193 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
57194
57195         Trivial fixes to Makefile.am parts of module listings.
57196         * modules/strstr: Append strstr.h to lib_SOURCES.
57197         * modules/strcase: Likewise, for strcase.h.
57198
57199 2003-09-27  Karl Berry  <karl@gnu.org>
57200
57201         * config/mkinstalldirs: update from automake.
57202
57203 2003-09-26  Paul Eggert  <eggert@twinsun.com>
57204
57205         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
57206         (error_tail): Do not loop, reallocating temporary buffer, since
57207         the output cannot contain more wide characters than the input
57208         contains bytes, the size must be big enough already.  This avoids
57209         one potential size overflow calculation.  Check for size overflow
57210         when calculating temporary buffer size.  Free temporary buffer
57211         when done, if it was allocated with malloc; this plugs a memory
57212         leak.  Remove casts from void * to pointers, that are no longer
57213         needed now that we're assuming C89 or better.
57214
57215         Merge error changes from glibc.
57216
57217         * lib/error.c, error.h: Update copyright notice header to match glibc.
57218         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
57219         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
57220         Disable cancellation while printing error.
57221         * lib/error.h: Prepend __ to parameter names.
57222
57223 2003-09-26  Jim Meyering  <jim@meyering.net>
57224
57225         * lib/error.c (error_tail): Move some declarations
57226         into inner scope where the local variables are used.
57227
57228 2003-09-26  Bruno Haible  <bruno@clisp.org>
57229
57230         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
57231         stpncpy().
57232         Don't define stpncpy through config.h; it's now done through stpncpy.h.
57233
57234 2003-09-26  Bruno Haible  <bruno@clisp.org>
57235
57236         * lib/stpncpy.h (gnu_stpncpy): New declaration.
57237         (stpncpy): Define as alias for gnu_stpncpy.
57238         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
57239
57240 2003-09-25  Simon Josefsson  <jas@extundo.com>
57241
57242         * lib/xgetdomainname.h: New file.
57243         * lib/xgetdomainname.c: New file.
57244
57245 2003-09-25  Simon Josefsson  <jas@extundo.com>
57246             Bruno Haible  <bruno@clisp.org>
57247
57248         * modules/getdomainname: New file.
57249         * modules/xgetdomainname: New file.
57250         * MODULES.html.sh (func_all_modules): Add getdomainname,
57251         xgetdomainname.
57252
57253 2003-09-25  Simon Josefsson  <jas@extundo.com>
57254             Bruno Haible  <bruno@clisp.org>
57255
57256         * m4/getdomainname.m4: New file.
57257
57258 2003-09-25  Simon Josefsson  <jas@extundo.com>
57259             Bruno Haible  <bruno@clisp.org>
57260
57261         * lib/getdomainname.h: New file.
57262         * lib/getdomainname.c: New file.
57263
57264 2003-09-25  Karl Berry  <karl@gnu.org>
57265
57266         * lib/argp-fmtstream.c, argp-help.c: update from libc.
57267
57268 2003-09-25  Karl Berry  <karl@gnu.org>
57269
57270         * config/install-sh: update from automake.
57271
57272 2003-09-25  Bruno Haible  <bruno@clisp.org>
57273
57274         * modules/version-etc-2: New file, from modules/version-etc with
57275         modifications.
57276         * MODULES.html.sh (func_all_modules): Add version-etc-2.
57277
57278 2003-09-25  Bruno Haible  <bruno@clisp.org>
57279
57280         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
57281         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
57282
57283 2003-09-24  Simon Josefsson  <jas@extundo.com>
57284
57285         * modules/xgethostname: Add xgethostname.h.
57286
57287 2003-09-24  Paul Eggert  <eggert@twinsun.com>
57288
57289         * lib/linebuffer.c (freebuffer): Don't free the argument, just
57290         the buffer associated with the argument.  Bug reported by
57291         Simon Josefsson.
57292
57293 2003-09-24  Paul Eggert  <eggert@twinsun.com>
57294
57295         * README: Document assumptions that 'int' is at least 32 bits
57296         wide, that integer arithmetic is 2's complement without overflow,
57297         that there are no holes in integer values, that adding sizes of
57298         two nonoverlapping objects can't overflow, and that all-bits-zero
57299         yields scalar zero.  Fix spelling and capitalization typos.
57300
57301 2003-09-19  Karl Berry  <karl@gnu.org>
57302
57303         * lib/argp.h: update from libc.
57304
57305 2003-09-17  Paul Eggert  <eggert@twinsun.com>
57306
57307         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
57308         to avoid spurious warnings like "AC_RUN_IFELSE was called before
57309         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
57310
57311 2003-09-17  Paul Eggert  <eggert@twinsun.com>
57312
57313         * gnulib-tool: Use "test -h", not "test -L", for portability
57314         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
57315         (tags_regexp): Remove, since \| doesn't conform to POSIX.
57316         (sed_extract_prog): Issue s commands one-by-one, rather than
57317         using \| in one s command.
57318
57319 2003-09-16  Paul Eggert  <eggert@twinsun.com>
57320
57321         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
57322         input error, instead of returning NULL the next time we are called
57323         (and therefore losing track of errno).
57324
57325 2003-09-16  Bruno Haible  <bruno@clisp.org>
57326
57327         * gnulib-tool (func_create_testdir): Warn about duplicated
57328         dependencies.
57329
57330 2003-09-15  Paul Eggert  <eggert@twinsun.com>
57331
57332         * modules/argmatch, modules/fatal, modules/obstack,
57333         modules/xalloc, modules/xgethostname: Sort dependencies by
57334         importance, not alphabetically.
57335
57336 2003-09-15  Paul Eggert  <eggert@twinsun.com>
57337
57338         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
57339         fails, so that the caller gets the proper errno.
57340
57341         * lib/readutmp.c (read_utmp): Likewise.
57342         Check for fstat error.  Close stream and free storage
57343         when failing.
57344
57345 2003-09-14  Karl Berry  <karl@gnu.org>
57346
57347         * config/srclist.txt (strdup.c): disable for c89 changes.
57348
57349 2003-09-14  Jim Meyering  <jim@meyering.net>
57350
57351         * lib/getloadavg.c: Correct cpp indentation.
57352         * lib/strdup.c: Likewise.
57353         * lib/vasnprintf.c: Likewise.
57354
57355 2003-09-14  Bruno Haible  <bruno@clisp.org>
57356
57357         * modules/fwriteerror: New file.
57358         * MODULES.html.sh (func_all_modules): Add fwriteerror.
57359
57360 2003-09-14  Bruno Haible  <bruno@clisp.org>
57361
57362         * lib/fwriteerror.h: New file.
57363         * lib/fwriteerror.c: New file.
57364
57365 2003-09-12  Paul Eggert  <eggert@twinsun.com>
57366
57367         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
57368         modules/xgethostname, modules/xalloc: Depend on exit.
57369
57370 2003-09-12  Paul Eggert  <eggert@twinsun.com>
57371
57372         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
57373
57374         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
57375         and AC_MINIX, too, so that their extensions are available.
57376
57377         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
57378         This macro has been superseded by gl_BACKUPFILE.
57379
57380         More patches to assume C89 or better.
57381
57382         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
57383
57384         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
57385         unconditionally.
57386         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
57387         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
57388         Include <string.h>, <stdlib.h> unconditionally.
57389         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
57390         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
57391         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
57392         headers or for string.h.
57393         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
57394         or strtoul.
57395
57396         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
57397         headers.
57398         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
57399         * m4/userspec.m4 (gl_USERSPEC): Likewise.
57400         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
57401         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
57402         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
57403         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
57404         memcpy, memset.
57405         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
57406         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
57407         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
57408         strtol.
57409         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
57410         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
57411         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
57412         strtoul.
57413
57414 2003-09-12  Paul Eggert  <eggert@twinsun.com>
57415
57416         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
57417         * lib/obstack.c [!defined _LIBC]: Likewise.
57418         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
57419         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
57420         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
57421
57422         More changes to assume C89 or better.
57423
57424         * lib/error.c (error_tail): Assume vprintf.
57425
57426         * lib/argmatch.c (getenv): Remove decl.
57427         * lib/progreloc.c (get_full_program_name): Define via prototype.
57428         * lib/setenv.c (clearenv): Likewise.
57429         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
57430         needed.
57431         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
57432         (malloc, memcpy): Remove decls.
57433         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
57434         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
57435         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
57436         (memcpy): Remove macro.
57437         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
57438         (__P): Remove.  All uses removed.
57439         (PTR): Remove.  All uses changed to void *.
57440         (CHAR_BIT, NULL): Remove.
57441         (spaces, zeros, memset_space, memset_zero)
57442         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
57443         Remove.
57444         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
57445         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
57446         Define with prototype.
57447         Remove now-unnecessary prototype decl.
57448         (extra_args_spec): Assume ANSI C.  All uses changed.
57449         (extra_args_spec_iso): Remove.
57450         (my_strftime, emacs_strftimeu): Define via prototype.
57451         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
57452         unconditionally.
57453         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
57454         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
57455         (strtoul, strtol): Remove decls.
57456         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
57457         LONG_MAX): Remove.
57458         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
57459         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
57460         (LOCALE_PARAM_PROTO): New macro.
57461         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
57462         (INTERNAL (strtol), strtol): Define with a prototype.
57463         (PARAMS): Remove.  All uses removed.
57464         * lib/tempname.c: Include <string.h> unconditionally.
57465         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
57466         * lib/xgethostname.c (main): Define with a prototype.
57467         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
57468         Include <stdlib.h> unconditionally.
57469         (calloc, malloc, realloc, free): Remove decls.
57470         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
57471         Include <stdlib.h> unconditionally.  Sort include file names.
57472         (strtod): Remove.
57473         (xstrtod): Define with a prototype.
57474         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
57475         (strtol, strtoul): Remove decls.
57476
57477 2003-09-11  Paul Eggert  <eggert@twinsun.com>
57478
57479         More patches to assume C89 or better.
57480         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
57481         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
57482         string.h, memchr, STDC_HEADERS.
57483
57484 2003-09-11  Paul Eggert  <eggert@twinsun.com>
57485
57486         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
57487         Include <stdlib.h>, <string.h> unconditionally.
57488         Remove now-unnecessary cast to char *.
57489         * lib/strnlen.c: Include <string.h> unconditionally.
57490         * lib/yesno.c (yesno): Define with a prototype.
57491
57492 2003-09-11  Bruno Haible  <bruno@clisp.org>
57493
57494         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
57495
57496 2003-09-10  Jim Meyering  <jim@meyering.net>
57497
57498         * lib/error.c: Correct indentation of cpp directives.
57499
57500 2003-09-10  Bruno Haible  <bruno@clisp.org>
57501
57502         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
57503         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
57504         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
57505         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
57506         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
57507         <stdlib.h> and <string.h> checks.
57508         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
57509         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
57510
57511 2003-09-10  Bruno Haible  <bruno@clisp.org>
57512
57513         * lib/strcspn.c: Include <string.h> unconditionally.
57514         * lib/strpbrk.c: Include <string.h> unconditionally.
57515         * lib/strstr.c: Include <string.h> unconditionally.
57516         * lib/unicodeio.c: Include <string.h> unconditionally.
57517         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
57518         * lib/unsetenv.c: Likewise.
57519         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
57520         * lib/yesno.c: Include <stdlib.h> unconditionally.
57521         (rpmatch): Add prototype.
57522
57523 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57524
57525         More patches to assume C89 or better.
57526         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
57527         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
57528         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
57529         or for string.h.
57530         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
57531         stdlib.h.
57532         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
57533         C headers.
57534         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
57535         string.h.
57536         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
57537         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
57538         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
57539         or for string.h.
57540         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
57541         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
57542         C headers.
57543         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
57544         memcpy.
57545         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
57546         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
57547         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
57548         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
57549         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
57550         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
57551         string.h, free.
57552         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
57553         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
57554         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
57555         C headers, or for string.h.
57556         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
57557         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
57558         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
57559         headers, memory.h, stdlib.h, string.h, strings.h.
57560         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
57561         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
57562         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
57563         strchr.
57564         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
57565         headers, memory.h, string.h.
57566         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
57567         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
57568         free.
57569         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
57570         headers.
57571         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
57572         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
57573         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
57574         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
57575         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
57576
57577 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57578
57579         More K&R removal.
57580
57581         * lib/acosl.c (main): Use a prototype.
57582         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
57583         tanl.c: Likewise.
57584
57585         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
57586
57587         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
57588         (getopt, etopt_long, getopt_long_only, _getopt_internal)
57589         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
57590         with a prototype.
57591         * lib/getopt.c (const): Remove macro.
57592         Include <string.h> unconditionally.
57593         (my_index): Remove; all uses changed to strchr.
57594         (strlen): Remove decl.
57595         (exchange): Remove forward decl; no longer needed.
57596         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
57597         Define with prototype.
57598         * lib/getopt1.c (const): Remove macro.
57599         (getopt_long, getopt_long_only, main): Define with prototype.
57600
57601         * lib/getugroups.c: Include <string.h> unconditionally.
57602
57603         * lib/getusershell.c: Include <stdlib.h> unconditionally.
57604         (getusershell, setusershell, endusershell, readname, main):
57605         Define with prototypes.
57606
57607         * lib/group-member.c: Include group-member.h first.
57608         Include <stdlib.h> unconditionally.
57609
57610         * lib/hard-locale.c: Include hard-locale.h first.
57611         Include <stdlib.h>, <string.h> unconditionally.
57612
57613         * lib/hash.c (free, malloc): Remove decls.
57614         Include <stdlib.h> unconditionally.
57615
57616         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
57617         (getenv): Do not declare.
57618
57619         * lib/idcache.c: Include <string.h> unconditionally.
57620
57621         * lib/long-options.c: Include long-options.h first, to test interface.
57622         Include <stdlib.h> unconditionally.
57623
57624         * lib/makepath.c: Include makepath.h first, to test interface.
57625         Include <stdlib.h> and <string.h> unconditionally.
57626
57627         * lib/linebuffer.c: Include <stdlib.h>.
57628         (free): Remove decl.
57629
57630         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
57631         stddef.h. rpl_malloc returns void *, not char *.
57632         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
57633         prototype.
57634
57635         * lib/md5.h: Include <limits.h> unconditionally.
57636         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
57637         (__P): Remove; all uses removed.
57638         * lib/md5.c: Include "md5.h" first.
57639         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
57640         md5_buffer, md5_process_bytes, md5_process_block):
57641         Define with prototypes.
57642         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
57643         * lib/sha.c: Include "sha.h" first.
57644         Include <stdlib.h>, <string.h> unconditionally.
57645
57646         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
57647         * lib/memcmp.c (__ptr_t): Likewise.
57648         * lib/memrchr.c (__ptr_t): Likewise.
57649         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
57650         Include <string.h> unconditionally.
57651         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
57652         * lib/memchr.c: Include <stdlib.h> unconditionally.
57653         * lib/memchr.c (LONG_MAX): Remove.
57654         * lib/memrchr.c (LONG_MAX): Likewise.
57655         * lib/memchr.c (__memchr): Define via a prototype.
57656         * lib/memrchr.c (__memrchr): Likewise.
57657         * lib/memcmp.c (__P): Remove, and remove all uses.
57658         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
57659         Remove forward decls; no longer needed.
57660         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
57661         Use types required by C89 in prototype.
57662
57663         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
57664         * lib/savedir.c: Likewise.
57665         * lib/mkdir.c (free): Remove decl.
57666         * lib/rmdir.c (rmdir): Define with a prototype.
57667         * lib/savedir.c: Include savedir.h first, to test interface.
57668
57669         * lib/mktime.c (STDC_HEADERS): Remove.
57670         Include <stdlib.h>, <string.h> unconditionally.
57671
57672         * lib/modechange.c: Include <stdlib.h> unconditionally.
57673         (malloc): Remove decl.
57674
57675         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
57676         (free): Remove decl.
57677
57678         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
57679         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
57680         (This type really should be intptr_t, but that's a C99ism.)
57681         (_obstack_memcpy): Remove: all uses changed to memcpy.
57682         Include <string.h> unconditionally.
57683         (struct obstack): Assume __STDC__ for types of members
57684         chunkfun, freefun, extra_arg.
57685         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
57686         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
57687         obstack_begin, obstack_specify_allocation,
57688         obstack_specify_allocation_with_arg, obstack_chunkfun,
57689         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
57690         Remove unprototyped decls and the macros that use them.
57691         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
57692         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
57693         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
57694         (defined __STDC__ && __STDC__)]:
57695         Remove nonprototyped code.
57696         Include <stdlib.h> unconditionally.
57697         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
57698         _obstack_allocated_p, _obstack_free, obstack_free,
57699         _obstack_memory_used, print_and_abort):
57700         Define using prototypes.
57701         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
57702         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
57703         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
57704         obstack_next_free, obstack_object_size, obstack_room) [0]:
57705         Remove unused, unprototyped code.
57706
57707         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
57708
57709         * lib/physmem.c (physmem_total, physmem_available, main): Define
57710         with prototypes.
57711
57712         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
57713         (main): Define with a prototype.
57714
57715         * lib/posixver.c (getenv): Remove decl.
57716
57717         * lib/putenv.c (malloc): Returns void *, not char *.
57718         Include <string.h> unconditionally.
57719         (strchr, memcpy, NULL): Do not define.
57720
57721         * lib/readtokens.c: Include readtokens.h first, to test interface.
57722         Include <stdlib.h>, <string.h> unconditionally.
57723         (init_tokenbuffer): Define with a prototype.
57724
57725         * lib/regex.c (PARAMS): Remove.  All uses removed.
57726         All uses of _RE_ARGS removed, too.
57727         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
57728         unconditionally.
57729         (bzero): Assume memset exists.
57730         (memcmp, memcpy, NULL): Remove.
57731         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
57732         char, or assignments to local vars of type signed char.
57733         (init_syntax_once, PREFIX(extract_number_and_incr),
57734         PREFIX(print_partial_compiled_pattern),
57735         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
57736         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
57737         PREFIX(regex_grow_registers), PREFIX(regex_compile),
57738         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
57739         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
57740         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
57741         wcs_compile_range, byte_compile_range, truncate_wchar,
57742         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
57743         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
57744         count_mbs_length, wcs_re_match_2_internal,
57745         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
57746         PREFIX(alt_match_null_string_p),
57747         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
57748         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
57749         regfree, PREFIX(extract_number)): Define with prototype.  Remove
57750         now-unnecessary declaration, if any.
57751         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
57752         regcomp, regexec):
57753         Remove now-unnecessary casts among pointer types.
57754         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
57755
57756         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
57757         (free): Remove decl.
57758
57759         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
57760
57761         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
57762         (free): Remove decl.
57763
57764         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
57765         * lib/xgetcwd.c: Likewise.
57766
57767         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
57768         (free): Remove decl.
57769
57770         * lib/strchrnul.c (strchrnul): Define with a prototype.
57771         Fix bug: c_in was not converted to char before searching.
57772
57773         The following changes are not K&R related:
57774
57775         * lib/group-member.h: Include <sys/types.h>, so that this file is
57776         self-contained.
57777         * lib/makepath.h: Likewise.
57778
57779         * lib/getusershell.c (readname, default_index, line_size, readname):
57780         Use size_t, not int, for sizes.
57781         (readname): If the size overflows, report an error instead of
57782         looping forever.
57783
57784 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57785
57786         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
57787         libc.
57788
57789 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57790
57791         * README: New section: portability guidelines.
57792
57793 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
57794
57795         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
57796         C89 spec.
57797
57798 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
57799
57800         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
57801
57802 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57803
57804         Assume C89 or better; remove K&R cruft.
57805         A few of these changes were first proposed by Derek Robert Price
57806         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
57807
57808         * lib/addext.c: Include <string.h> unconditionally.
57809         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
57810         Don't declare getenv or malloc.
57811
57812         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
57813         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
57814         (NULL): Remove.
57815         (find_stack_direction, alloca): Use prototypes.
57816
57817         * lib/atexit.c (atexit): Define using a prototype.
57818
57819         * lib/basename.c, dirname.c, stripslash.c:
57820         Include <string.h> unconditionally.
57821
57822         * lib/bcopy.c: Include <stddef.h>.
57823         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
57824
57825         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
57826
57827         * lib/error.h (error, error_at_line, error_print_progname)
57828         [! (defined (__STDC__) && __STDC__)]: Remove decls.
57829         * lib/error.c: Include error.h first, to check interface.
57830         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
57831         (VA_START): Remove; all uses changeed to va_start.
57832         (exit, strerror): Remove decls.
57833         (error_print_progname): Prototype uncondionally.
57834         Don't include <errno.h>; no longer needed.
57835         (private_strerror): Remove.
57836         (error_tail): Always define.
57837         (error, error_at_line): Assume C89 or better; always use prototypes.
57838         * lib/fatal.c: Include "fatal.h" first, to test interface.
57839         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
57840         (VA_START): Remove; all uses changed to va_start.
57841         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
57842         this case.
57843         (exit): Remove decl.
57844         (fatal): Prototype unconditionally.  Assume va_start works.
57845         Abort at end, to pacify gcc.
57846
57847         * lib/euidaccess.c (main): Define with a prototype.
57848
57849         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
57850
57851         * lib/exitfail.c: Include <stdlib.h> unconditionally.
57852
57853         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
57854         prototypes.
57855         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
57856         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
57857         (getenv): Remove decl.
57858         (fnmatch): Define using a prototype.
57859         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
57860         (FCT): Define using a prototype.
57861
57862         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
57863
57864         * lib/gethostname.c: Include <stddef.h>.
57865         (gethostname): Define with prototype.  Length is size_t, not int.
57866
57867 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57868
57869         Assume C89 or better; remove K&R cruft.
57870         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
57871         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
57872         string.h, getenv, malloc.
57873         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
57874         headers.
57875         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
57876         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
57877         do not check for strerror.
57878         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
57879         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
57880         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
57881         do not check for doprnt or vprintf.
57882         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
57883         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
57884
57885 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57886
57887         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
57888         getversion.c should have been removed then, but was accidentally
57889         preserved.
57890
57891         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
57892         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
57893
57894 2003-09-08  Karl Berry  <karl@gnu.org>
57895
57896         * config/config.sub, config.guess, srclistvars.sh: update from savannah
57897                 config, forget about prep.
57898
57899         * config/depcomp, missing: update from automake.
57900
57901 2003-09-07  Paul Eggert  <eggert@twinsun.com>
57902
57903         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
57904         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
57905
57906 2003-09-07  Paul Eggert  <eggert@twinsun.com>
57907
57908         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
57909         copy_tm_result.  Bug reported by Simon Josefsson in
57910         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
57911
57912 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57913
57914         * m4/time_r.m4: New file.
57915         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
57916         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
57917         is. Check for timegm declaration.
57918         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
57919         Do not check for gmtime_r.
57920         Replace mktime if __mktime_internal does not exist and if mktime
57921         hasn't been replaced already.
57922
57923 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57924
57925         * lib/time_r.c, lib/time_r.h: New files.
57926
57927         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
57928         __localtime_r.
57929         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
57930         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
57931
57932         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
57933         __gmtime_r.
57934         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
57935         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
57936         Include <time_r.h>.
57937
57938         * lib/timegm.c: Switch to glibc implementation, with the following
57939         changes:
57940         [defined HAVE_CONFIG_H]: Include <config.h>.
57941         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
57942         (__mktime_internal) [!defined _LIBC]: New decl.
57943         (__gmtime_r) [!defined _LIBC]: New macro and function.
57944         (timegm): Use a prototype, since gnulib assumes C89.
57945         Do not bother declaring tmp to be const, as it's not really usefu.
57946         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
57947         (timegm): Declare only if HAVE_DECL_TIMEGM.
57948
57949 2003-09-06  Paul Eggert  <eggert@twinsun.com>
57950
57951         * MODULES.html.sh (func_all_modules): Add time_r.
57952         * modules/time_r: New file.
57953         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
57954         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
57955
57956 2003-09-03  Paul Eggert  <eggert@twinsun.com>
57957
57958         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
57959         Bug reported by Lute Kamstra in
57960         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
57961
57962         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
57963         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
57964         course with correspondingly smaller numbers for tomorrow and
57965         yesterday.  From Tadayoshi Funaba.  Originally installed into
57966         sh-utils on 1999-08-07, but the patch got lost (I guess during the
57967         coreutils merge?).
57968
57969 2003-08-31  Simon Josefsson  <jas@extundo.com>
57970
57971         * modules/timegm: New file.
57972         * MODULES.html.sh (func_all_modules): Add timegm.
57973
57974 2003-08-31  Simon Josefsson  <jas@extundo.com>
57975
57976         * m4/timegm.m4: New file.
57977
57978 2003-08-31  Simon Josefsson  <jas@extundo.com>
57979
57980         * lib/timegm.h: New file.
57981         * lib/timegm.c: New file.  Based on
57982         wget-1.8.2/src/http.c:mktime_from_utc.
57983
57984 2003-08-31  Karl Berry  <karl@gnu.org>
57985
57986         * lib/argp.h: update from libc.
57987
57988 2003-08-28  Bruno Haible  <bruno@clisp.org>
57989
57990         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
57991         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
57992         followed by '#define fnmatch fnmatch_posix' gives an error.
57993
57994 2003-08-28  Bruno Haible  <bruno@clisp.org>
57995
57996         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
57997         warning on QNX, which defines O_BINARY to 000000.
57998
57999 2003-08-27  Jim Meyering  <jim@meyering.net>
58000
58001         * m4/mkstemp.m4: Require that the system mkstemp be able to create
58002         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
58003         would fail after 32.  Reported by Danny Levinson.  Details here:
58004         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
58005
58006 2003-08-24  Bruno Haible  <bruno@clisp.org>
58007
58008         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
58009         MSVC7 <stdio.h> is included later.
58010
58011 2003-08-22  Simon Josefsson  <jas@extundo.com>
58012
58013         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
58014
58015 2003-08-20  Karl Berry  <karl@gnu.org>
58016
58017         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
58018
58019 2003-08-20  Bruno Haible  <bruno@clisp.org>
58020
58021         * modules/progname: New file.
58022         * MODULES.html.sh (func_all_modules): Add progname.
58023
58024 2003-08-20  Bruno Haible  <bruno@clisp.org>
58025
58026         * lib/progname.h: New file, from GNU gettext.
58027         * lib/progname.c: New file, from GNU gettext.
58028         * lib/progreloc.c: New file, from GNU gettext.
58029
58030 2003-08-19  Jim Meyering  <jim@meyering.net>
58031
58032         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
58033         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
58034
58035 2003-08-19  Bruno Haible  <bruno@clisp.org>
58036
58037         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
58038         more.
58039
58040 2003-08-19  Bruno Haible  <bruno@clisp.org>
58041
58042         * lib/xstrdup.c: Assume <string.h> exists.
58043
58044 2003-08-18  Paul Eggert  <eggert@twinsun.com>
58045
58046         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
58047         in makefile rules.
58048
58049 2003-08-18  Jim Meyering  <jim@meyering.net>
58050
58051         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
58052         * m4/lib-ld.m4: Likewise.
58053
58054 2003-08-18  Jim Meyering  <jim@meyering.net>
58055
58056         * lib/setenv.h: Indent nested cpp directive.
58057         * lib/vasnprintf.c: Remove trailing blanks.
58058
58059 2003-08-17  Simon Josefsson  <jas@extundo.com>
58060
58061         * modules/xstrndup: New file.
58062         * MODULES.html.sh (func_all_modules): Add xstrndup.
58063
58064 2003-08-17  Simon Josefsson  <jas@extundo.com>
58065
58066         * modules/argp: Fix autoconf macro name. Add more dependencies.
58067
58068 2003-08-17  Simon Josefsson  <jas@extundo.com>
58069
58070         * m4/xstrndup.m4: New file.
58071
58072 2003-08-17  Simon Josefsson  <jas@extundo.com>
58073
58074         * m4/argp.m4: New file.
58075
58076 2003-08-17  Simon Josefsson  <jas@extundo.com>
58077             Bruno Haible  <bruno@clisp.org>
58078
58079         * lib/xstrndup.h: New file.
58080         * lib/xstrndup.c: New file.
58081
58082 2003-08-17  Bruno Haible  <bruno@clisp.org>
58083
58084         * modules/strndup (Files, Include): Add lib/strndup.h.
58085
58086 2003-08-17  Bruno Haible  <bruno@clisp.org>
58087
58088         * modules/euidaccess (Files): Add lib/euidaccess.h.
58089
58090 2003-08-17  Bruno Haible  <bruno@clisp.org>
58091
58092         * lib/strndup.h: New file.
58093
58094 2003-08-17  Bruno Haible  <bruno@clisp.org>
58095
58096         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
58097         like AC_GNU_SOURCE.
58098         * modules/extensions (configure.ac): Comment out the invocation of
58099         gl_USE_SYSTEM_EXTENSIONS.
58100
58101 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58102
58103         Merges from coreutils, etc.
58104         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
58105         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
58106         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
58107         fixing a typo.
58108         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
58109         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
58110
58111 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58112
58113         Document merge from coreutils.
58114         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
58115         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
58116         * modules/utime: Add m4/utimes-null.m4.
58117
58118 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58119
58120         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
58121         space, undoing this 2003-08-12 change:
58122         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
58123
58124 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58125
58126         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
58127         strtoul.c from libc, undoing this 2003-08-12 change:
58128         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
58129
58130 2003-08-16  Jim Meyering  <jim@meyering.net>
58131
58132         Merges from coreutils.
58133         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
58134         prefix.  Adjust cache variables similarly.  Create 500 rather than
58135         just 300 files, to exercise bug on Darwin6.5, too.
58136         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
58137         $missing_dir.
58138         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
58139         AM_SYS_POSIX_TERMIOS.
58140         Reported by mkc@mathdogs.com.
58141         Also change use of $am_cv_sys_posix_termios
58142         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
58143         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
58144         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
58145         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
58146         in /proc/mounts until it finds one with matching device number.  This
58147         is unnecessary when the FILE argument *is* a mount point.  No stat call
58148         is necessary in that case.  So, disable the statvfs-testing code on
58149         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
58150         as RedHat bug# 84846.
58151         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
58152         to 1MB, so as not to render systems with no stack size limit (e.g.,
58153         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
58154         Include <unistd.h>.  On some systems,
58155         it is required for the definition of _SC_PAGESIZE.
58156
58157 2003-08-16  Jim Meyering  <jim@meyering.net>
58158
58159         Merge from coreutils.
58160         * lib/xstrtoimax.c: #else #if -> #elif.
58161         * lib/xstrtoumax.c: Likewise.
58162
58163 2003-08-16  Jim Meyering  <jim@meyering.net>
58164
58165         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
58166         * m4/utimes.m4: Removed.
58167         * m4/utimes-null.m4: Renamed from utimes.m4.
58168
58169         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
58170         to 1MB, so as not to render systems with no stack size limit (e.g.,
58171         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
58172         Include <unistd.h>.  On some systems,
58173         it is required for the definition of _SC_PAGESIZE.
58174
58175 2003-08-16  Jim Meyering  <jim@meyering.net>
58176         and Paul Eggert  <eggert@cs.ucla.edu>
58177
58178         Merges from coreutils, etc.
58179
58180         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
58181         using the latest version from cvs.  This avoids problems with #line
58182         directives using a vendor (Sun) compiler.
58183         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
58184         Don't set GETGROUPS_LIB here; now it's
58185         done via getgroups.m4's wrapper function.
58186         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
58187         rather than just in sh-util/configure.in, so that the
58188         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
58189         same.
58190         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
58191         AC_FUNC_GETLOADAVG where to find getloadavg.c.
58192         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
58193         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
58194         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
58195         Remove code that is now done by the newly-required macros.
58196         Append $(EXEEXT) to DF_PROG.
58197         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
58198         Do not invoke or require the following here,
58199         since prereq.m4 or some gnulib .m4 now does this for us:
58200         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
58201         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
58202         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
58203         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
58204         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
58205         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
58206         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
58207         AC_FUNC_OBSTACK.
58208         Do not replace the following functions, as this is now the job
58209         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
58210         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
58211         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
58212         atexit getpass, strdup, getpagesize.
58213         Replace 'raise'.
58214         Do not check for the following functions, as this is now the job
58215         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
58216         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
58217         setregid.
58218         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
58219         Check for sys/sysctl.h.
58220         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
58221         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
58222         of checking for ssize_t ourselves.
58223
58224         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
58225         Require every macro that gnulib/modules/* suggests for us.
58226         (jm_PREREQ_ADDEXT): New macro.
58227         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
58228         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
58229
58230         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
58231         (gl_PHYSMEM): Use it.
58232         Also check for `table' function.
58233         Check for new headers and functions.
58234         Add check for sys/sysmp.h.
58235         With suggestions from Kaveh Ghazi.
58236         Ignore headers that are present but cannot be compiled.  This
58237         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
58238         C 5.4.
58239
58240 2003-08-15  Paul Eggert  <eggert@twinsun.com>
58241
58242         Document merge from coreutils.
58243         * modules/userspec: Depend on posixver.
58244         * modules/strftime: Depend on tzset.
58245
58246 2003-08-15  Paul Eggert  <eggert@twinsun.com>
58247
58248         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
58249         rather than tab, after '#' in shell-script copyright notices.
58250         Suggested by Bruno Haible.
58251
58252 2003-08-15  Paul Eggert  <eggert@twinsun.com>
58253
58254         * config/srclist-update: Use three spaces, rather than tab, after '#'
58255         in shell-script copyright notices.  Suggested by Bruno Haible.
58256         Remove unnecessary parenthesization in regular expression.
58257
58258 2003-08-15  Jim Meyering  <jim@meyering.net>
58259
58260         Merge from coreutils.
58261         * lib/xgethostname.c: Include <stdlib.h>.
58262         (xghostname): Don't exit for anything other than memory-related
58263         failure; just return NULL.
58264         * lib/userspec.c: Include "posixver.h".
58265         (parse_user_spec): Accept `.' as a separator only
58266         in pre-POSIX-200112 mode.
58267         * lib/strtoimax.c: Use #elif rather than #else #if.
58268         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
58269         Remove function, now that we can rely on a working tzset function.
58270         [!_LIBC]: Ensure that the required autoconf test has been run.
58271         [!defined _NL_CURRENT && HAVE_STRFTIME]:
58272         Use underlying_strftime for %r.
58273         * lib/sha.c: Merge in some clean-up and optimization changes from
58274         glibc.
58275         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
58276         Ensure that it is a multiple of 64.
58277         Rearrange loop exit tests so as to avoid performing an
58278         additional fread after encountering an error or EOF.
58279         * lib/realloc.c: Update copyright date.
58280
58281 2003-08-15  Jim Meyering  <jim@meyering.net>
58282         and Paul Eggert  <eggert@twinsun.com>
58283
58284         Merge from coreutils.
58285         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
58286         member but strut utmpx does not.  Needed for AIX 4.3.3.
58287         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
58288
58289 2003-08-15  Jim Meyering  <jim@meyering.net>
58290         and Paul Eggert  <eggert@cs.ucla.edu>
58291
58292         Merges from coreutils, etc.
58293         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
58294         Require gl_FUNC_TZSET_CLOBBER.
58295         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
58296         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
58297         members.
58298
58299 2003-08-14  Paul Eggert  <eggert@twinsun.com>
58300
58301         Help the merge from coreutils.
58302         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
58303         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
58304         * m4/tzset.m4: Use it too.
58305
58306 2003-08-14  Paul Eggert  <eggert@twinsun.com>
58307
58308         * modules/tzset: New file.
58309
58310 2003-08-14  Jim Meyering  <jim@meyering.net>
58311
58312         Merges from coreutils.
58313         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
58314         variable names, rather than @FNMATCH_H@.
58315         * modules/alloca: Likewise for $(ALLOCA_H).
58316
58317         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
58318         the three copies of the literal target, `fnmatch.h'.
58319         * modules/alloca (alloca.h): Likewise.
58320
58321 2003-08-14  Jim Meyering  <jim@meyering.net>
58322
58323         Merge from coreutils.
58324         * m4/tzset.m4: New file.
58325         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
58326         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
58327         otherwise, AIX 5.1 systems would end up using the latter.
58328         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
58329         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
58330         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
58331         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
58332
58333 2003-08-14  Jim Meyering  <jim@meyering.net>
58334
58335         Merge from coreutils.
58336         * lib/obstack.h: Whitespace changes.
58337         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
58338         and xcalloc return values.
58339         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
58340         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
58341         hang on OSF/1 5.1 for DIR on both local and remote file systems.
58342         Reported by (and fix confirmed by) Nelson H. F. Beebe.
58343         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
58344         error from mntctl.
58345         Use mntctl's return value to drive the entry-processing loop, since
58346         we can't rely on the value of the vmt_length member in the last
58347         entry.  On some systems doing so could result in exhausting
58348         virtual memory.  Based in part on a patch from Mike Jetzer.
58349
58350 2003-08-14  Jim Meyering  <jim@meyering.net>
58351         and Paul Eggert  <eggert@twinsun.com>
58352
58353         Merges from coreutils, plus other fixes.
58354         * lib/physmem.c: Merge in portability changes from gcc/libiberty
58355         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
58356         for credits and details.  Thanks to Kaveh Ghazi for helping
58357         to keep these files in sync.
58358         (ARRAY_SIZE): Define it.
58359         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
58360         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
58361         (memcasecmp): Don't assume size_t fits in unsigned int.
58362         Remove casts and duplicate code.
58363         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
58364         (memcpy): Remove definition.
58365         Merge in some clean-up and optimization changes from glibc.
58366         [BLOCKSIZE]: Move definition to top of file.
58367         Ensure that it is a multiple of 64.
58368         Rearrange loop exit tests so as to avoid performing an
58369         additional fread after encountering an error or EOF.
58370         * lib/md5.h (md5_uintptr): Define.
58371         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
58372         return to the initial working directory.  Preserve errno
58373         for caller.
58374         * lib/idcache.c: Include "xalloc.h".
58375         (xmalloc, xrealloc): Remove decls.
58376         (getuser): Remove casts no longer required in C89.
58377         * lib/human.c: Include stdio.h, for sprintf.
58378         * lib/group-member.c: Include "xalloc.h".
58379         (xmalloc, xrealloc): Remove decls.
58380         (get_group_info): Remove casts no longer required in C89.
58381         * lib/getusershell.c (readname): Remove casts no longer required in
58382         C89.
58383         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
58384         * lib/getline.c: Whitespace fix, from coreutils.
58385
58386 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58387
58388         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
58389         Check for isascii.
58390
58391         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
58392         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
58393         Undo previous (whitespace-only) change.
58394
58395 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58396
58397         * lib/exclude.c: Include <ctype.h>
58398         (IN_CTYPE_DOMAIN): New macro.
58399         (is_space): New fn.
58400         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
58401         and empty lines.
58402
58403         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
58404         Undo previous (whitespace-only) change.
58405
58406 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58407
58408         * config/srclist-update: Change update back to the old behavior,
58409         leaving whitespace alone.  Use one 'sed' command rather than a
58410         pipeline.
58411         (fixlicense): Now a variable, not a function.
58412         (remove_trailing_blanks): Remove.
58413         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
58414         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
58415         Undo previous (whitespace-only) change.
58416
58417 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58418
58419         Merge from coreutils.
58420         * modules/euidaccess: Add lib_SOURCES, include for new
58421         file euidaccess.h
58422
58423 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58424
58425         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
58426         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
58427         Normalize leading white space and remove trailing white space.
58428
58429         Merge from coreutils
58430         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
58431
58432         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
58433         0.12.1.  These files are now being upgraded automatically by
58434         ../config/srclist-update.
58435
58436 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58437
58438         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
58439         Normalize leading white space and remove trailing white space.
58440         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
58441         notice, as per ../config/srclist-update.
58442
58443         Merge from coreutils.
58444         * lib/euidaccess.h: New file.
58445         * lib/euidaccess.c: Include it.
58446         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
58447         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
58448         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
58449
58450 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58451
58452         * config/srclist-update: Add copyright notice.
58453         (remove_id_lines, remove_trailing_blanks): New constants.
58454         (fixfile): Use them to normalize spacing a bit in copied files.
58455         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
58456         Normalize leading white space and remove trailing white space.
58457
58458         * config/texinfo.tex: Sync with texinfo.
58459
58460         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
58461         strtoul.c from libc, to merge coreutils whitespace changes.
58462
58463         * config/srclist.txt: Get the following m4 files from gettext:
58464         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
58465         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
58466         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
58467         wint_t.m4.
58468
58469 2003-08-12  Karl Berry  <karl@gnu.org>
58470
58471         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
58472         been made.
58473
58474 2003-08-11  Paul Eggert  <eggert@twinsun.com>
58475
58476         * modules/gnu-source, m4/gnu-source.m4:
58477         Remove; we're assuming Autoconf 2.54 or later now.
58478         Suggested by Bruno Haible.
58479         * MODULES.html.sh (func_all_modules): Remove gnu-source.
58480
58481 2003-08-11  Bruno Haible  <bruno@clisp.org>
58482
58483         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
58484
58485 2003-08-11  Bruno Haible  <bruno@clisp.org>
58486
58487         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
58488         (vasnprintf): Use it instead of wcslen.
58489
58490 2003-08-11  Bruno Haible  <bruno@clisp.org>
58491
58492         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
58493         value to ensure that _Bool promotes to int. Use #define for _Bool when
58494         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
58495
58496 2003-08-10  Karl Berry  <karl@gnu.org>
58497
58498         * lib/regex.h: update from libc (whitespace fix).
58499
58500 2003-08-09  Paul Eggert  <eggert@twinsun.com>
58501
58502         Merge some files from coreutils.  These changes were
58503         originally made by Jim Meyering.
58504         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
58505         many older Unixes require this.
58506         * lib/alloca.c (alloca): Remove cast to argument of free;
58507         no longer needed in C89.
58508         * lib/alloca_.h, regex.h: Fix white space to match
58509         what GNU indent does.
58510
58511 2003-08-09  Paul Eggert  <eggert@twinsun.com>
58512
58513         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
58514         apparently Emacs's Unicode mode got confused before my 2003-08-05
58515         checkin.
58516
58517 2003-08-08  Paul Eggert  <eggert@twinsun.com>
58518
58519         * m4/extensions.m4: New file.
58520         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
58521         Require gl_USE_SYSTEM_EXTENSIONS.
58522         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
58523         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
58524
58525 2003-08-08  Paul Eggert  <eggert@twinsun.com>
58526
58527         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
58528         * modules/extensions, modules/gnu-source: New files.
58529         * modules/timespec, modules/unlocked-io: Depend on extensions.
58530
58531 2003-08-07  Paul Eggert  <eggert@twinsun.com>
58532
58533         * modules/restrict: New file.
58534         * MODULES.html.sh (func_all_modules): Add restrict.
58535         * modules/regex: Depend on restrict.
58536
58537 2003-08-07  Paul Eggert  <eggert@twinsun.com>
58538
58539         * m4/restrict.m4: New file.
58540         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
58541
58542 2003-08-07  Bruno Haible  <bruno@clisp.org>
58543
58544         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
58545         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
58546
58547 2003-08-07  Bruno Haible  <bruno@clisp.org>
58548
58549         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
58550         makes the module 'getndelim2' compatible with the module 'getline'.
58551
58552 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58553
58554         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
58555         byte with "\201" to avoid glitches when editing that source file
58556         with multi-gnome-terminal.
58557
58558 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58559
58560         * lib/bumpalloc.h: Remove.
58561
58562 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58563
58564         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
58565         * modules/bumpalloc: Remove.
58566
58567 2003-08-04  Paul Eggert  <eggert@twinsun.com>
58568
58569         * lib/getloadavg.c: Change copyright notice and spacing to conform to
58570         GNU coding style.
58571
58572         Merge from coreutils.
58573         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
58574         1. From glibc.
58575         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
58576         from Karl Berry, implemented by Jim Meyering.
58577         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
58578         from Dmitry V. Levin.
58579         Remove anachronistic cast of xrealloc.
58580         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
58581         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
58582         type. Otherwise, it wouldn't compile with at least /bin/cc on
58583         ymp-cray-unicos9.0.2.X.
58584         Combine two mostly-identical uses of alloca into one.
58585         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
58586
58587 2003-08-04  Dave Love  <d.love@dl.ac.uk>
58588
58589         [From Emacs.]
58590
58591         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
58592         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
58593         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
58594         obsolete NLIST_NAME_UNION.
58595         [__GNU__]: Undef BSD and FSCALE.
58596         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
58597
58598 2003-08-03  Paul Eggert  <eggert@twinsun.com>
58599
58600         * lib/stdbool_.h (_Bool): Make it signed char, instead of
58601         an enum type, so that it's guaranteed to promote to int.  See:
58602         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
58603
58604 2003-08-03  Karl Berry  <karl@gnu.org>
58605
58606         * config/depcomp: update from automake.
58607
58608 2003-07-31  Paul Eggert  <eggert@twinsun.com>
58609
58610         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
58611         (strerror): Don't assume that a printable int fits in 14 bytes.
58612
58613 2003-07-31  Bruno Haible  <bruno@clisp.org>
58614
58615         * modules/getpass-gnu: New file.
58616         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
58617
58618 2003-07-31  Bruno Haible  <bruno@clisp.org>
58619
58620         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
58621
58622 2003-07-24  Karl Berry  <karl@gnu.org>
58623
58624         * config/missing: update from automake.
58625
58626 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
58627             Bruno Haible  <bruno@clisp.org>
58628
58629         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
58630         * lib/getline.c (getline, getdelim): Likewise.
58631         Remove _GNU_SOURCE define; now it's defined in config.h through
58632         m4/getline.m4.
58633
58634 2003-07-23  Karl Berry  <karl@gnu.org>
58635
58636         * config/config.sub: update from prep.
58637
58638 2003-07-22  Paul Eggert  <eggert@twinsun.com>
58639
58640         * modules/xalloc (Depends-on): Add exitfail.
58641         * modules/xmemcoll: Likewise.
58642
58643 2003-07-22  Paul Eggert  <eggert@twinsun.com>
58644
58645         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
58646         over-parenthesization in macros.
58647
58648         Sync with coreutils.
58649
58650         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
58651         required by C99.
58652
58653         Use `exit_failure' for xalloc and xmemcoll instead of their own
58654         private exit-failure variables.
58655         * lib/xalloc.h (xalloc_exit_failure): Remove.
58656         * lib/xmalloc.c: Likewise.  Include exitfail.h.
58657         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
58658         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
58659         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
58660         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
58661
58662 2003-07-20  Jim Meyering  <jim@meyering.net>
58663
58664         * modules/closeout (Depends-on): Add exitfail.
58665         Suggestion from Bruno Haible.
58666
58667 2003-07-19  Karl Berry  <karl@gnu.org>
58668
58669         * config/config.sub: update from prep.
58670
58671 2003-07-18  Paul Eggert  <eggert@twinsun.com>
58672
58673         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
58674         Remove.
58675         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
58676         to test that it can stand by itself.  Include "exitfail.h".
58677         Clients should set exit_failure instead.
58678         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
58679
58680 2003-07-18  Bruno Haible  <bruno@clisp.org>
58681
58682         * modules/getndelim2: New file.
58683         * modules/getline: Share files with module getndelim2.
58684         * modules/getnline: Depend on getndelim2 instead of sharing files with
58685         it. Add getnline.c to lib_SOURCES.
58686         * MODULES.html.sh (func_all_modules): Add getndelim2.
58687
58688 2003-07-18  Bruno Haible  <bruno@clisp.org>
58689
58690         * m4/getndelim2.m4: New file.
58691         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
58692         invoke gl_PREREQ_GETNDELIM2.
58693         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
58694         gl_PREREQ_GETNDELIM2.
58695         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
58696         gl_GETNDELIM2.
58697
58698 2003-07-18  Bruno Haible  <bruno@clisp.org>
58699
58700         * lib/getndelim2.h: New file.
58701         * lib/getndelim2.c: Make into a module of its own. Include config.h,
58702         getndelim2.h.
58703         (getndelim2): Make non-static. Change return type to ssize_t.
58704         * lib/getline.h: Change argument names.
58705         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
58706         * lib/getnline.c: Include getndelim2.h.
58707
58708 2003-07-18  Andreas Schwab  <schwab@suse.de>
58709
58710         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
58711
58712 2003-07-17  Karl Berry  <karl@gnu.org>
58713
58714         * config/config.sub: update from prep.
58715
58716 2003-07-17  Bruno Haible  <bruno@clisp.org>
58717
58718         * modules/getnline: New file.
58719         * modules/getline: Add lib/getndelim2.c to source file list.
58720         * MODULES.html.sh (func_all_modules): Add getnline.
58721
58722 2003-07-17  Bruno Haible  <bruno@clisp.org>
58723
58724         * m4/getnline.m4: New file.
58725
58726 2003-07-17  Bruno Haible  <bruno@clisp.org>
58727
58728         * m4/Makefile.am.in: Remove file.
58729         * m4/Makefile.am: Remove file.
58730         * m4/Makefile.in: Remove file.
58731
58732 2003-07-17  Bruno Haible  <bruno@clisp.org>
58733
58734         * lib/getnline.h: New file.
58735         * lib/getnline.c: New file.
58736         * lib/getndelim2.c: New file, extracted from getline.c.
58737         (getndelim2): Renamed from getdelim2, with added nmax argument.
58738         * lib/getline.c: Include getndelim2.c.
58739         (getdelim2): Moved out to getndelim2.c.
58740         (getline, getdelim): Update.
58741
58742 2003-07-17  Bruno Haible  <bruno@clisp.org>
58743
58744         * lib/Makefile.am: Remove file.
58745         * lib/Makefile.in: Remove file.
58746
58747 2003-07-17  Bruno Haible  <bruno@clisp.org>
58748
58749         * configure.in: Remove file.
58750         * Makefile.in: Remove file.
58751
58752 2003-07-17  Bruno Haible  <bruno@clisp.org>
58753
58754         * MODULES.html.sh: Put the </BODY> right before </HTML>.
58755
58756 2003-07-16  Karl Berry  <karl@gnu.org>
58757
58758         * config/srclist-update: was running fixlicense twice, which caused
58759                 texinfo.tex to be nullified for some reason.  Simplify,
58760                 $gplsrc is no longer needed as far as I can see?
58761
58762 2003-07-16  Jim Meyering  <jim@meyering.net>
58763
58764         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
58765
58766 2003-07-15  Paul Eggert  <eggert@twinsun.com>
58767
58768         * config/srclist.txt: Get the following files from gettext-runtime/intl
58769         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
58770         ref-del.sin.  From Bruno Haible.
58771         * config/srclist-update (fixfile): Change grep pattern again, since the
58772         previous fix didn't work (there was another trailing $).  Use
58773         '[$]' to escape the $s.
58774
58775 2003-07-15  Karl Berry  <karl@gnu.org>
58776
58777         * lib/vasnprintf.c: update from gettext.
58778
58779 2003-07-15  Karl Berry  <karl@gnu.org>
58780
58781         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
58782         gets expanded when surrounded by '$'.
58783
58784 2003-07-15  Jim Meyering  <jim@meyering.net>
58785
58786         * modules/save-cwd: Don't depend on error.  From Derek Price.
58787
58788 2003-07-15  Jim Meyering  <jim@meyering.net>
58789
58790         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
58791
58792 2003-07-14  Simon Josefsson  <jas@extundo.com>
58793
58794         * modules/mempcpy: New file.
58795         * MODULES.html.sh (func_all_modules): Add mempcpy.
58796
58797 2003-07-14  Simon Josefsson  <jas@extundo.com>
58798
58799         * m4/mempcpy.m4: New file.
58800
58801 2003-07-14  Simon Josefsson  <jas@extundo.com>
58802
58803         * lib/mempcpy.h: New file.
58804         * lib/mempcpy.c: New file.
58805
58806 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58807
58808         * modules/getdate, modules/posixtm: Depend on mktime.
58809
58810 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58811
58812         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
58813         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
58814         unicodeio.c, unicodeio.h, unlocked-io.h:
58815         Switch from LGPL to GPL.
58816
58817 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58818
58819         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
58820         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
58821         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
58822         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
58823         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
58824         updated automatically by ../config/srclist-update.  This changes
58825         their license from LPGL to GPL.
58826
58827 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58828
58829         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
58830         assumed to refer to the root of the most recent stable gettext version.
58831         * config/srclistvars.sh: Add defaults for eggert.
58832         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
58833         Match "This program" as well as "The program".  This is needed
58834         for gettext.
58835
58836 2003-07-14  Jim Meyering  <jim@meyering.net>
58837
58838         Don't emit diagnostics.  Let callers do that.
58839         * lib/save-cwd.c: Don't include "error.h".
58840         (save_cwd): Don't call error.  Ensure that errno is valid
58841         when returning nonzero.
58842
58843         * lib/save-cwd.h (restore_cwd): Update prototype.
58844         * lib/save-cwd.c (restore_cwd): Remove two parameters.
58845         Simplify.  Don't call error upon failure.  Let callers do that.
58846         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
58847         when auditing is enabled.  But don't bother updating the #if.
58848
58849 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
58850
58851         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
58852         it breaks C++ compilation.
58853         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
58854
58855 2003-07-10  Simon Josefsson  <jas@extundo.com>
58856
58857         * modules/strchrnul (Makefile.am): Add strchrnul.h.
58858
58859 2003-07-10  Jim Meyering  <jim@meyering.net>
58860
58861         * m4/clock_time.m4: Remove trailing blank.
58862         * m4/intmax_t.m4: Likewise.
58863
58864 2003-07-10  Jim Meyering  <jim@meyering.net>
58865
58866         * lib/vasnprintf.c: Remove trailing blanks.
58867         Make cpp indentation consistent.
58868
58869 2003-07-09  Paul Eggert  <eggert@twinsun.com>
58870
58871         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
58872         posixver.c, strftime.c, strnlen.c, strverscmp.c:
58873         Switch from LGPL to GPL.
58874
58875 2003-07-09  Paul Eggert  <eggert@twinsun.com>
58876
58877         * config/srclist.txt: Sort sublists.  Add
58878         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
58879         that differ from gnulib for one reason or another; we'd like this list
58880         to be smaller but for now let's document what we have.
58881
58882 2003-07-08  Paul Eggert  <eggert@twinsun.com>
58883
58884         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
58885         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
58886         and sweeter "eval x=$x".
58887         * config/srclist.txt: Get lib/argp* from glibc.
58888
58889 2003-07-07  Paul Eggert  <eggert@twinsun.com>
58890
58891         * lib/mktime.c: Fix some boundary cases and remove need for floating
58892         point.
58893
58894         Issue a compile-time diagnostic if time_t is floating point, or if
58895         two's complement arithmetic is not in effect, or if arithmetic
58896         right shift does not propagate the sign.  These assumptions were
58897         all in the original code but they weren't checked.
58898
58899         (TIME_T_MIDPOINT, verify): New macros.
58900         (__isleap): Remove; it has integer overflow problems.
58901         (leapyear): New function, without those problems.
58902         (ydhms_tm_diff): Remove; splitting into two parts.
58903         (ydhms_diff): New function, containing the arithmetic part of
58904         the old ydhms_tm_diff function.  Issue a compile-time
58905         diagnostic if we are not using C99 integer division.
58906         Avoid casts when possible.
58907         (guess_time_tm): New function, containing the checking part of
58908         the old ydhms_tm_diff function.  Return the new value, rather than
58909         the difference between it and the old.  Accept a new argument T
58910         so that *T specifies the old value.  Check for overflow in the result.
58911
58912         (__mktime_internal): Use a time_t offset, not a long int offset.
58913         This undoes the 2003-06-04 change, which is no longer needed now
58914         that we have better overflow checking.
58915         (localtime_offset): Likewise.
58916
58917         (__mktime_internal): Avoid harmful overflow on hosts where time_t
58918         and long are 64-bit but int is only 32-bit.
58919         (ydhms_diff): Use long int to store year1 and yday1.
58920         Issue a compile-time diagnostic if long int is not wide enough.
58921
58922         (__mktime_internal): Use long int to store adjusted year and yday.
58923         Use plain C rather than preprocessor commands, if that doesn't
58924         affect efficiency.
58925         Check for overflow (and try to repair) after each probe
58926         rather than checking only at the very end.  This avoids some bugs
58927         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
58928         does not equal GMT offset at maximum time).
58929         Use integer to check for overflow rather than floating point; this
58930         is more portable to non-IEEE hosts, and is a tad faster.
58931         When we detect that we are oscillating between two values,
58932         don't check whether tm_isdst has the requested value, since
58933         we already know the answer.  When tm_isdst has the wrong value,
58934         use a different heuristic to find the right one, based on the
58935         extreme values actually observed in practice in tz2003a,
58936         rather than the (overly optimistic) "previous 3 calendar quarters".
58937
58938         (not_equal_tm, print_tm, check_result): Use "const T" rather than
58939         "T const" to accommodate glibc style.
58940         (check_result): Use less-confusing report format.  "long" -> "long int.
58941         (main): Likewise.
58942         Don't loop if the iteration overflows time_t.
58943         Allow a negative step in the iteration.
58944
58945 2003-07-06  Karl Berry  <karl@gnu.org>
58946
58947         * config/depcomp: update from automake.
58948         * config/config.sub: update from prep.
58949
58950 2003-07-03  Karl Berry  <karl@gnu.org>
58951
58952         * config/config.guess: update from prep.
58953
58954 2003-07-01  Paul Eggert  <eggert@twinsun.com>
58955
58956         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
58957         xreadlink.c now includes it unconditionally.
58958
58959 2003-07-01  Paul Eggert  <eggert@twinsun.com>
58960
58961         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
58962         having it depend on HAVE_SYS_TYPES_H.
58963
58964 2003-07-01  Bruno Haible  <bruno@clisp.org>
58965
58966         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
58967         <sys/types.h> should be sufficient.
58968         Reported by Paul Eggert.
58969
58970 2003-06-26  Karl Berry  <karl@gnu.org>
58971
58972         * config/depcomp: update from automake.
58973
58974 2003-06-26  Bruno Haible  <bruno@clisp.org>
58975
58976         * modules/human: Depend on module stdbool.
58977
58978 2003-06-25  Bruno Haible  <bruno@clisp.org>
58979
58980         * modules/readlink: New file.
58981         * modules/xreadlink: Depend on it.
58982         * MODULES.html.sh (func_all_modules): Add readlink.
58983
58984 2003-06-25  Bruno Haible  <bruno@clisp.org>
58985
58986         * m4/readlink.m4: New file.
58987
58988 2003-06-25  Bruno Haible  <bruno@clisp.org>
58989
58990         * lib/readlink.c: New file.
58991
58992 2003-06-22  Karl Berry  <karl@gnu.org>
58993
58994         * config/srclist.txt: update mkinstalldirs from automake.
58995         * config/mkinstalldirs: update.
58996
58997 2003-06-22  Bruno Haible  <bruno@clisp.org>
58998
58999         Portability to mingw32.
59000         * m4/ssize_t.m4: New file, from GNU gettext.
59001         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
59002         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
59003
59004 2003-06-22  Bruno Haible  <bruno@clisp.org>
59005
59006         * modules/safe-read: Add m4/ssize_t.m4.
59007         * modules/xreadlink: Add m4/ssize_t.m4.
59008
59009 2003-06-20  Bruno Haible  <bruno@clisp.org>
59010
59011         Assume C89, so PARAMS isn't needed.
59012         * lib/unicodeio.h (PARAMS): Remove.
59013         * lib/unicodeio.c: Don't use PARAMS.
59014
59015 2003-06-18  Karl Berry  <karl@gnu.org>
59016
59017         * config/config.{guess,sub}: update from prep.
59018
59019 2003-06-18  Jim Meyering  <jim@meyering.net>
59020
59021         Merge changes from coreutils.
59022         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
59023         Remove explicit declarations of xmalloc and realloc.
59024         Include xalloc.h.
59025         (read_utmp): Remove anachronistic cast of xmalloc.
59026
59027 2003-06-17  Paul Eggert  <eggert@twinsun.com>
59028
59029         Assume C89, so PARAMS isn't needed.
59030         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
59031         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
59032         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
59033         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
59034         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
59035         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
59036         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
59037         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
59038         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
59039         lib/xstrtod.h, lib/xstrtol.h: Likewise.
59040         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
59041         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
59042         no longer needed. Anyway, config.h should always be included before any
59043         other file.
59044
59045 2003-06-11  Simon Josefsson  <jas@extundo.com>
59046
59047         * modules/sysexits: New file.
59048         * MODULES.html.sh (func_all_modules): Add sysexits.
59049
59050 2003-06-11  Simon Josefsson  <jas@extundo.com>
59051
59052         * lib/sysexit_.h: New file.
59053
59054 2003-06-11  Derek Price  <derek@ximbiot.com>
59055
59056         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
59057         necessary.
59058
59059 2003-06-11  Bruno Haible  <bruno@clisp.org>
59060
59061         * m4/sysexits.m4: New file.
59062
59063 2003-06-10  Simon Josefsson  <jas@extundo.com>
59064
59065         * lib/argp.h: New file, from glibc.
59066         * lib/argp-ba.c: New file, from glibc.
59067         * lib/argp-eexst.c: New file, from glibc.
59068         * lib/argp-fmtstream.c: New file, from glibc.
59069         * lib/argp-fmtstream.h: New file, from glibc.
59070         * lib/argp-fs-xinl.c: New file, from glibc.
59071         * lib/argp-help.c: New file, from glibc.
59072         * lib/argp-namefrob.h: New file, from glibc.
59073         * lib/argp-parse.c: New file, from glibc.
59074         * lib/argp-pv.c: New file, from glibc.
59075         * lib/argp-pvh.c: New file, from glibc.
59076         * lib/argp-xinl.c: New file, from glibc.
59077
59078 2003-06-10  Simon Josefsson  <jas@extundo.com>
59079
59080         * modules/strchrnul: New file.
59081
59082 2003-06-10  Simon Josefsson  <jas@extundo.com>
59083
59084         * modules/argp: New file.
59085
59086 2003-06-10  Simon Josefsson  <jas@extundo.com>
59087
59088         * m4/strchrnul.m4: New file.
59089
59090 2003-06-10  Simon Josefsson  <jas@extundo.com>
59091
59092         * lib/strchrnul.h: New file.
59093         * lib/strchrnul.c: New file.
59094
59095 2003-06-10  Bruno Haible  <bruno@clisp.org>
59096
59097         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
59098
59099 2003-06-07  Karl Berry  <karl@gnu.org>
59100
59101         * config/config.{guess,sub}: update from prep.
59102
59103 2003-06-07  Jim Meyering  <jim@meyering.net>
59104
59105         * modules/strtod: Use $(...) notation, not @...@ for
59106         AC_REPLACE'd variables.
59107         * modules/localcharset: Likewise.
59108
59109 2003-06-07  Jim Meyering  <jim@meyering.net>
59110
59111         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
59112         in place of my name in the copyright comment.
59113         Remove definition and uses of __P.
59114
59115         From coreutils.
59116         * lib/stat.c: Don't declare xmalloc explicitly.
59117         Instead, include "xalloc.h".
59118         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
59119         xrealloc, and xcalloc return values.
59120         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
59121         Improve comment.
59122         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
59123
59124 2003-06-07  Bruno Haible  <bruno@clisp.org>
59125
59126         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
59127         avoid AC_CONFIG_LINKS.
59128         * modules/fnmatch (Makefile.am): Use explicit creation rule for
59129         fnmatch.h, to avoid AC_CONFIG_LINKS.
59130         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
59131
59132 2003-06-07  Bruno Haible  <bruno@clisp.org>
59133
59134         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
59135         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
59136         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
59137         directory.
59138         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
59139         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
59140         directory.
59141
59142 2003-06-06  Jim Meyering  <jim@meyering.net>
59143
59144         Merge from coreutils.
59145         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
59146         Consolidate declarations and initializations of *_base* locals.
59147
59148         Merge from coreutils.
59149         This avoids a core dump on systems without GNU putenv,
59150         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
59151         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
59152         (unsetenv): New static function, from GNU libc.
59153         (rpl_putenv): Use it.
59154
59155         * lib/modechange.c: Remove trailing blanks.
59156
59157         Merge from coreutils.
59158         * lib/fsusage.c: Remove declaration of statfs.
59159         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
59160
59161         * lib/posixtm.c: Include <stdbool.h> unconditionally.
59162
59163 2003-06-06  Jim Meyering  <jim@meyering.net>
59164
59165         * lib/stdbool_.h: Renamed from stdbool.h.in.
59166
59167 2003-06-06  Jim Meyering  <jim@meyering.net>
59168             Bruno Haible  <bruno@clisp.org>
59169
59170         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
59171         Adjust Makefile.am snippet not to redirect directly to target.
59172         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
59173
59174 2003-06-05  Paul Eggert  <eggert@twinsun.com>
59175
59176         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
59177         mismatch, look in future quarters as well as past.  This fixes a
59178         bug when processing fall-backwards gaps immediately after a long
59179         period of daylight-saving time.
59180
59181         * lib/mktime.c: Assume freestanding C89 or better.
59182         (HAVE_LIMITS_H): Remove.  Assume it's 1.
59183         (__P): Remove; not used.
59184         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
59185         (mktime, not_equal_tm, print_tm, check_result,
59186         main): Use prototypes.  Use const * where appropriate.
59187         (main): Fix typo in testing code that uncovered by above changes.
59188         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
59189
59190 2003-06-04  Paul Eggert  <eggert@twinsun.com>
59191
59192         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
59193         locale.h, localeconv.  This merges changes from coreutils.
59194
59195         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
59196         It can be removed after the next Autoconf is released.
59197         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
59198         needed.
59199
59200 2003-06-04  Paul Eggert  <eggert@twinsun.com>
59201
59202         * lib/mktime.c: Fix Debian bug 177940
59203         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
59204         (localtime_offset): Now long int, not time_t, because we want it
59205         to be guaranteed to be signed.  All uses changed.
59206         (__mktime_internal): If overflow would occur when adding offset,
59207         don't add it.
59208
59209         Merge 'human' changes from coreutils.  Rewrite to support
59210         locale-specific notations like thousands separators.
59211         * lib/human.c: Simplify authorship notice.
59212         Include human.h immediately after config.h.
59213         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
59214         <limits.h>: Do not include, since human.h does.
59215         (SIZE_MAX, UINTMAX_MAX): New macros.
59216         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
59217         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
59218         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
59219         (power_letter): Renamed from suffixes.
59220         (generate_suffix_backwards): Remove.
59221         (adjust_value): Now takes int style (because of human.h changes)
59222         and long double value (for greater precision on some platforms).
59223         (group_number): New function.
59224         (human_readable): Use it.  Use integer options, not enum.
59225         Put the options before the sizes in the arg list.
59226         Support all the new options.
59227         The old human_readable function has been removed;
59228         use inttostr.h instead.
59229         (human_readable, default_block_size, humblock):
59230         Use uintmax_t, not int, for block sizes.
59231         (human_readable_inexact, block_size_types): Remove.
59232         (block_size_opts): New constant.
59233         (human_options): Renamed from human_block_size, with new signature
59234         that allows block sizes up to UINTMAX_MAX.  All callers changed.
59235         * lib/human.h: Add copyright and authorship notice.
59236         Include <limits.h> and <stdbool.h> unconditionally.
59237         (PARAMS): Remove.  All uses removed.
59238         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
59239         (enum human_inexact_style): Remove tag; now a nameless enum.
59240         (human_floor, human_ceiling, human_round_to_even): Now have
59241         values 2, 0, 1 rather than -1, 1, 0.
59242         (human_group_digits, human_suppress_point_zero, human_autoscale,
59243         human_base_1024, human_SI, human_B): New constants.
59244         (human_readable_inexact, human_block_size): Remove.
59245         (human_readable): Size args are now uintmax_t, not int.
59246         (human_options): New decl.
59247
59248         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
59249         unnecessary now that we assume C89 or better.  This change
59250         imported from coreutils.
59251
59252         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
59253         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
59254         in the 2003-05-30 sync from glibc.
59255
59256         .h files should stand alone, but we shouldn't include <sys/types.h>
59257         if we can get away with just <stddef.h>.
59258
59259         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
59260         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
59261         rather than <sys/types.h>, as we merely need size_t.
59262         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
59263         to get size_t.
59264         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
59265         Include <stdio.h>, to get FILE.
59266         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
59267         memcasecmp.h has included <stddef.h> and all we need is size_t.
59268         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
59269         our interface, instead of including <sys/types.h>
59270
59271 2003-06-04  Paul Eggert  <eggert@twinsun.com>
59272
59273         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
59274         now, as glibc mktime is buggy on non-glibc systems.
59275
59276 2003-06-03  Karl Berry  <karl@gnu.org>
59277
59278         * config/config.sub: update from prep.
59279
59280 2003-06-02  Paul Eggert  <eggert@twinsun.com>
59281
59282         [from coreutils]
59283         Fix some minor time-related bugs with POSIX time arguments.
59284         Some valid time stamps were being rejected (notably -1, and
59285         time stamps before 1900 on 64-bit hosts).  And some invalid
59286         time stamps were being accepted, e.g. September 31.
59287
59288         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
59289         that we can return (time_t) -1 successfully.
59290         * lib/posixtm.c: Likewise.
59291         [HAVE_STDBOOL_H]: Include <stdbool.h>.
59292         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
59293         (t): Remove static var.
59294         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
59295         of static var.  All uses changed.
59296         (year): Do not reject years before 1900; they can occur with
59297         64-bit time_t.
59298         (posix_time_parse): Do not check for out-of-range components;
59299         that is now the caller's responsibility, since our checks were
59300         only approximations.
59301         (posixtime): Use mktime to check for out-of-range components,
59302         since it knows them exactly.
59303         If mktime returns (time_t) -1, check whether an error actually occurred
59304         by invoking localtime on -1.
59305         (main) [TEST_POSIXTIME]: Check for input data errors, and report
59306         posixtime failures better.
59307         Improve the test data (in comments only).
59308
59309 2003-06-02  Karl Berry  <karl@gnu.org>
59310
59311         * config/mkinstalldirs (version): new variable.
59312         (--version): new option.
59313         (usage): improve message.
59314
59315 2003-05-30  Karl Berry  <karl@gnu.org>
59316
59317         * lib/mktime.c: update from libc.
59318
59319 2003-05-30  Bruno Haible  <bruno@clisp.org>
59320
59321         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
59322         * config/config.rpath: Upgrade to gettext-0.12.1.
59323
59324 2003-05-30  Bruno Haible  <bruno@clisp.org>
59325
59326         * m4/gettext.m4: Upgrade to gettext-0.12.1.
59327         * m4/nls.m4: New file, from gettext-0.12.1.
59328         * m4/po.m4: New file, from gettext-0.12.1.
59329         * m4/progtest.m4: Upgrade to gettext-0.12.1.
59330
59331 2003-05-30  Bruno Haible  <bruno@clisp.org>
59332
59333         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
59334         * lib/localcharset.h: Likewise.
59335         * lib/localcharset.c: Likewise.
59336
59337 2003-05-29  Karl Berry  <karl@gnu.org>
59338
59339         * config/config.rpath: update from gettext.
59340
59341 2003-05-28  Paul Eggert  <eggert@twinsun.com>
59342
59343         Assume the headers required for C89 freestanding compilers.
59344         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
59345         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
59346         * m4/human.m4 (gl_HUMAN): Likewise.
59347         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
59348         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
59349         * m4/userspec.m4 (gl_USERSPEC): Likewise.
59350         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
59351         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
59352         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
59353
59354 2003-05-28  Paul Eggert  <eggert@twinsun.com>
59355
59356         Assume the headers required for C89 freestanding compilers.
59357         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
59358         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
59359         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
59360         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
59361         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
59362         define, since <limits.h> is guaranteed to do that.
59363         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
59364         * lib/exclude.c: Include <stdbool.h> unconditionally.
59365         * lib/tempname.c: Include <stddef.h> unconditionally.
59366         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
59367         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
59368         <stddef.h> does that.
59369         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
59370         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
59371         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
59372         needed.
59373         * lib/xstrtol.c: Likewise.
59374         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
59375         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
59376
59377         * lib/addext.c (addext): Use assignment rather than cast, to avoid
59378         warnings on some platforms.
59379
59380         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
59381         arbitrarily.
59382
59383 2003-05-26  Jim Meyering  <jim@meyering.net>
59384
59385         Merge in a change from coreutils:
59386         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
59387         that is guaranteed to be `no'.  Use `no_such_member' to indicate
59388         that condition, rather than `-1' which is slightly misleading.
59389         Change the name of the cache variable to have the gl_ prefix.
59390         Prompted by a patch from Richard Dawe for DJGPP.
59391
59392 2003-05-24  Karl Berry  <karl@gnu.org>
59393
59394         * config/config.guess: update from prep.
59395
59396 2003-05-22  Karl Berry  <karl@gnu.org>
59397
59398         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
59399
59400 2003-05-20  Karl Berry  <karl@gnu.org>
59401
59402         * config/config.guess: update from prep.
59403
59404 2003-05-18  Karl Berry  <karl@gnu.org>
59405
59406         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
59407         might actually be set by the user.
59408
59409         * config/depcomp, install-sh, mdate-sh: update from automake.
59410
59411 2003-05-17  Bruno Haible  <bruno@clisp.org>
59412
59413         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
59414         invalid expansion for AC_EGREP_CPP.
59415         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
59416         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
59417         Suggested by Akim Demaille <akim@epita.fr> in
59418         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
59419
59420 2003-05-12  Jim Meyering  <jim@meyering.net>
59421
59422         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
59423         the space-padded-by-default conversion specifiers, %e, %k, %l.
59424
59425 2003-05-12  Bruno Haible  <bruno@clisp.org>
59426
59427         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
59428         the string is longer than 4 KB.
59429
59430 2003-05-11  Karl Berry  <karl@gnu.org>
59431
59432         * config/config.{guess,sub}: update from prep.
59433
59434 2003-05-09  Bruno Haible  <bruno@clisp.org>
59435
59436         * modules/error: Add m4/strerror_r.m4 to file list.
59437
59438 2003-05-03  Bruno Haible  <bruno@clisp.org>
59439
59440         Upgrade to Unicode-4.0.
59441         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
59442         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
59443         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
59444         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
59445         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
59446         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
59447         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
59448         Change width of U+E0100..U+E01EF from 1 to 0.
59449
59450 2003-04-25  Jim Meyering  <jim@meyering.net>
59451
59452         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
59453         of type size_t, not int.
59454
59455 2003-04-25  Bruno Haible  <bruno@clisp.org>
59456
59457         * lib/copy-file.c: Include <stddef.h>, for size_t.
59458
59459 2003-04-21  Paul Eggert  <eggert@twinsun.com>
59460
59461         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
59462         code which expansion is under static control.  Patch imported from
59463         Akim Demaille's patch to Bison; see
59464         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
59465
59466 2003-04-14  Bruno Haible  <bruno@clisp.org>
59467
59468         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
59469
59470 2003-04-11  Jim Meyering  <jim@meyering.net>
59471
59472         Merge changes from Coreutils.
59473
59474         2003-03-22  Jim Meyering  <jim@meyering.net>
59475
59476         * lib/strftime.c (widen): Cast alloca return value to proper type.
59477
59478         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
59479
59480         From GNU libc.
59481         * lib/strftime.c (my_strftime): Handle very large width
59482         specifications for numeric values correctly.  Improve checks for
59483         overflow.
59484
59485         2003-01-19  Jim Meyering  <jim@meyering.net>
59486
59487         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
59488         definitions.
59489         (nl_get_alt_digit) [! defined my_strftime]: Define.
59490         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
59491         _nl_get_alt_digit and _nl_get_walt_digit.
59492
59493         * lib/strftime.c (my_strftime): Merge in locale-related changes from
59494         libc. These changes have no effect outside of _LIBC.
59495
59496 2003-04-10  Bruno Haible  <bruno@clisp.org>
59497
59498         * modules/findprog: New file.
59499         * MODULES.html.sh (func_all_modules): Add it.
59500
59501 2003-04-10  Bruno Haible  <bruno@clisp.org>
59502
59503         * m4/findprog.m4: New file.
59504         * m4/eaccess.m4: New file.
59505
59506 2003-04-10  Bruno Haible  <bruno@clisp.org>
59507
59508         * lib/findprog.h: New file, from GNU gettext.
59509         * lib/findprog.c: New file, from GNU gettext.
59510
59511 2003-04-05  Jim Meyering  <jim@meyering.net>
59512
59513         Merge changes from Coreutils.
59514
59515         * lib/exclude.h (PARAMS): Remove definition and uses.
59516         * lib/exclude.c: Remove uses of `PARAMS'.
59517
59518         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
59519         Add test-cases for DOS filenames. Declare program_name.
59520         (main): Set up program_name.  Patch by Rich Dawe.
59521
59522         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
59523         error from mntctl.
59524         Use mntctl's return value to drive the entry-processing loop, since
59525         we can't rely on the value of the vmt_length member in the last
59526         entry.  On some systems doing so could result in exhausting
59527         virtual memory.  Based in part on a patch from Mike Jetzer.
59528
59529 2003-04-04  Bruno Haible  <bruno@clisp.org>
59530
59531         * modules/linebreak: New file.
59532         * MODULES.html.sh (func_all_modules): Add it.
59533
59534 2003-04-04  Bruno Haible  <bruno@clisp.org>
59535
59536         * m4/linebreak.m4: New file.
59537
59538 2003-04-04  Bruno Haible  <bruno@clisp.org>
59539
59540         * lib/linebreak.h: New file, from GNU gettext.
59541         * lib/linebreak.c: New file, from GNU gettext with slight
59542         modifications.
59543         * lib/lbrkprop.h: New file, from GNU gettext.
59544
59545 2003-04-03  Bruno Haible  <bruno@clisp.org>
59546
59547         * modules/utf8-ucs4: New file.
59548         * modules/utf16-ucs4: New file.
59549         * modules/ucs4-utf8: New file.
59550         * modules/ucs4-utf16: New file.
59551         * MODULES.html.sh (func_all_modules): Add them.
59552
59553 2003-04-03  Bruno Haible  <bruno@clisp.org>
59554
59555         * m4/utf-ucs4.m4: New file.
59556         * m4/ucs4-utf.m4: New file.
59557
59558 2003-04-03  Bruno Haible  <bruno@clisp.org>
59559
59560         * lib/utf8-ucs4.h: New file, from GNU gettext.
59561         * lib/utf16-ucs4.h: New file, from GNU gettext.
59562         * lib/ucs4-utf8.h: New file, from GNU gettext.
59563         * lib/ucs4-utf16.h: New file, from GNU gettext.
59564
59565 2003-04-02  Bruno Haible  <bruno@clisp.org>
59566
59567         * modules/binary-io: New file.
59568         * MODULES.html.sh (func_all_modules): Add it.
59569
59570 2003-04-02  Bruno Haible  <bruno@clisp.org>
59571
59572         * lib/binary-io.h: New file, from GNU gettext.
59573
59574 2003-04-01  Bruno Haible  <bruno@clisp.org>
59575
59576         * modules/pathname: New file.
59577         * MODULES.html.sh (func_all_modules): Add it.
59578
59579 2003-04-01  Bruno Haible  <bruno@clisp.org>
59580
59581         * lib/pathname.h: New file, from GNU gettext.
59582         * lib/concatpath.c: New file, from GNU gettext.
59583
59584 2003-03-30  Bruno Haible  <bruno@clisp.org>
59585
59586         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
59587
59588 2003-03-30  Bruno Haible  <bruno@clisp.org>
59589
59590         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
59591         function chown() doesn't exist.
59592
59593 2003-03-28  Bruno Haible  <bruno@clisp.org>
59594
59595         * modules/copy-file: New file.
59596         * MODULES.html.sh (func_all_modules): Add it.
59597
59598 2003-03-28  Bruno Haible  <bruno@clisp.org>
59599
59600         * m4/copy-file.m4: New file.
59601
59602 2003-03-28  Bruno Haible  <bruno@clisp.org>
59603
59604         * lib/copy-file.h: New file, from GNU gettext.
59605         * lib/copy-file.c: New file, from GNU gettext.
59606
59607 2003-03-18  Jim Meyering  <jim@meyering.net>
59608
59609         * lib/quote.c (quote_n): Fix typo in comment.
59610
59611 2003-03-18  Bruno Haible  <bruno@clisp.org>
59612
59613         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
59614         checking.
59615         * m4/onceonly_2_57.m4: Likewise.
59616
59617 2003-03-17  Bruno Haible  <bruno@clisp.org>
59618
59619         * m4/onceonly.m4: Require autoconf 2.54 or newer.
59620         (m4_quote): Remove macro.
59621         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
59622
59623 2003-03-14  Jim Meyering  <jim@meyering.net>
59624
59625         Merge changes from Coreutils.
59626         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
59627         to be const, in order to avoid warnings.
59628         (obstack_room): Likewise.
59629         (obstack_empty_p): Likewise.
59630
59631 2003-03-14  Bruno Haible  <bruno@clisp.org>
59632
59633         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
59634         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
59635
59636 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59637
59638         Merge changes from Bison.
59639         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
59640         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
59641         when compiling Bison 1.875's `bitset bset = obstack_alloc
59642         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
59643         * lib/hash.c: Include <stdbool.h> unconditionally.
59644
59645 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59646
59647         * m4/onceonly.m4 (m4_quote): New macro.
59648         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
59649         Quote AC_FOREACH variable-expansions properly.
59650
59651 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59652
59653         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
59654
59655 2003-03-09  Paul Eggert  <eggert@twinsun.com>
59656
59657         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
59658         Reported by Bruce Becker; see:
59659         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
59660
59661 2003-03-03  Paul Eggert  <eggert@twinsun.com>
59662             Bruno Haible  <bruno@clisp.org>
59663
59664         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
59665         Reported by John Hughes, see
59666         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
59667
59668 2003-02-20  Bruno Haible  <bruno@clisp.org>
59669
59670         * MODULES.html.sh (func_all_modules): Add poll.
59671
59672 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59673
59674         * modules/poll: New file.
59675
59676 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59677
59678         * lib/poll_.h: New file.
59679         * lib/poll.c: New file.
59680
59681 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59682
59683         * m4/poll.m4: New file.
59684
59685 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59686
59687         * modules/mathl: New file.
59688
59689 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59690
59691         * lib/mathl.h: New file.
59692         * lib/acosl.c: New file.
59693         * lib/asinl.c: New file.
59694         * lib/atanl.c: New file.
59695         * lib/ceill.c: New file.
59696         * lib/cosl.c: New file.
59697         * lib/expl.c: New file.
59698         * lib/floorl.c: New file.
59699         * lib/frexpl.c: New file.
59700         * lib/ldexpl.c: New file.
59701         * lib/logl.c: New file.
59702         * lib/sincosl.c: New file.
59703         * lib/sinl.c: New file.
59704         * lib/sqrtl.c: New file.
59705         * lib/tanl.c: New file.
59706         * lib/trigl.c: New file.
59707         * lib/trigl.h: New file.
59708
59709 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59710
59711         * m4/mathl.m4: New file.
59712
59713 2003-02-18  Bruno Haible  <bruno@clisp.org>
59714
59715         * MODULES.html.sh (func_all_modules): Add mathl.
59716
59717 2003-02-17  Bruno Haible  <bruno@clisp.org>
59718
59719         * modules/mkdtemp: New module.
59720         * MODULES.html.sh (func_all_modules): Add it.
59721
59722 2003-02-17  Bruno Haible  <bruno@clisp.org>
59723
59724         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
59725
59726 2003-02-17  Bruno Haible  <bruno@clisp.org>
59727
59728         * lib/mkdtemp.h: New file, from GNU gettext.
59729         * lib/mkdtemp.c: New file, from GNU gettext.
59730
59731 2003-02-02  Jim Meyering  <jim@meyering.net>
59732
59733         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
59734         e.g. glibc-2.2.93.
59735
59736 2003-01-31  Bruno Haible  <bruno@clisp.org>
59737
59738         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
59739         'rpl_rename'.
59740         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
59741         'rpl_strnlen'.
59742         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
59743         'rpl_strtod'.
59744         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
59745         'rpl_utime'.
59746
59747 2003-01-31  Bruno Haible  <bruno@clisp.org>
59748
59749         * lib/rename.c: #undef rename before defining rpl_rename.
59750         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
59751
59752 2003-01-30  Bruno Haible  <bruno@clisp.org>
59753
59754         * modules/vasnprintf, modules/vasprintf: New modules.
59755         * MODULES.html.sh (func_all_modules): Add them.
59756
59757 2003-01-30  Bruno Haible  <bruno@clisp.org>
59758
59759         * m4/signed.m4: New file, from GNU gettext.
59760         * m4/longdouble.m4: New file, from GNU gettext.
59761         * m4/wchar_t.m4: New file, from GNU gettext.
59762         * m4/wint_t.m4: New file, from GNU gettext.
59763         * m4/vasnprintf.m4: New file.
59764         * m4/vasprintf.m4: New file.
59765
59766 2003-01-30  Bruno Haible  <bruno@clisp.org>
59767
59768         * lib/printf-args.h: New file, from GNU gettext.
59769         * lib/printf-args.c: New file, from GNU gettext.
59770         * lib/printf-parse.h: New file, from GNU gettext.
59771         * lib/printf-parse.c: New file, from GNU gettext.
59772         * lib/vasnprintf.h: New file, from GNU gettext.
59773         * lib/vasnprintf.c: New file, from GNU gettext.
59774         * lib/asnprintf.c: New file, from GNU gettext.
59775         * lib/vasprintf.h: New file, from GNU gettext with modifications.
59776         * lib/vasprintf.c: New file, from GNU gettext.
59777         * lib/asprintf.c: New file, from GNU gettext.
59778
59779 2003-01-29  Bruno Haible  <bruno@clisp.org>
59780
59781         * modules/stpncpy: New module.
59782         * MODULES.html.sh (func_all_modules): Add it.
59783
59784 2003-01-29  Bruno Haible  <bruno@clisp.org>
59785
59786         * m4/stpncpy.m4: New file.
59787
59788 2003-01-29  Bruno Haible  <bruno@clisp.org>
59789
59790         * lib/stpncpy.h: New file, from GNU gettext with modifications.
59791         * lib/stpncpy.c: New file, from GNU gettext with modifications.
59792
59793 2003-01-28  Bruno Haible  <bruno@clisp.org>
59794
59795         * modules/c-ctype: New module.
59796         * MODULES.html.sh (func_all_modules): Add it.
59797
59798 2003-01-28  Bruno Haible  <bruno@clisp.org>
59799
59800         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
59801         Paul Eggert.
59802         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
59803         Paul Eggert.
59804
59805 2003-01-27  Bruno Haible  <bruno@clisp.org>
59806
59807         * modules/xsetenv: New module.
59808         * MODULES.html.sh (func_all_modules): Add it.
59809
59810 2003-01-27  Bruno Haible  <bruno@clisp.org>
59811
59812         * lib/xsetenv.h: New file, from GNU gettext.
59813         * lib/xsetenv.c: New file, from GNU gettext.
59814
59815 2003-01-23  Jim Meyering  <jim@meyering.net>
59816
59817         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
59818         from working on systems without dirfd (at least Irix and OSF1/Tru64).
59819
59820 2003-01-23  Bruno Haible  <bruno@clisp.org>
59821
59822         * modules/minmax: New module.
59823         * MODULES.html.sh (func_all_modules): Add it.
59824
59825 2003-01-23  Bruno Haible  <bruno@clisp.org>
59826
59827         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
59828         Eggert.
59829
59830 2003-01-22  Bruno Haible  <bruno@clisp.org>
59831
59832         * modules/exit: New module.
59833         * MODULES.html.sh (func_all_modules): Add it.
59834
59835 2003-01-22  Bruno Haible  <bruno@clisp.org>
59836
59837         * lib/exit.h: New file, from GNU gettext.
59838
59839 2003-01-19  Bruno Haible  <bruno@clisp.org>
59840
59841         * gnulib-tool: Recognize option --extract-maintainer.
59842         (func_get_maintainer): New function.
59843         * modules/*: Add Maintainer entry.
59844
59845 2003-01-16  Jim Meyering  <jim@meyering.net>
59846
59847         * m4/regex.m4: The `regex' struct is both input and output.
59848         Initialize it before each use.  Patch by Tim Waugh.
59849
59850 2003-01-16  Bruno Haible  <bruno@clisp.org>
59851
59852         * MODULES.html.sh: Add a table of contents. Add the module name as
59853         leftmost column. Add hyperlinks.
59854
59855 2003-01-15  Bruno Haible  <bruno@clisp.org>
59856
59857         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
59858
59859 2003-01-15  Bruno Haible  <bruno@clisp.org>
59860
59861         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
59862         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
59863         suffix.
59864
59865 2003-01-15  Bruno Haible  <bruno@clisp.org>
59866
59867         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
59868
59869 2003-01-15  Bruno Haible  <bruno@clisp.org>
59870
59871         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
59872         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
59873
59874 2003-01-14  Jim Meyering  <jim@meyering.net>
59875
59876         * lib/same.c (same_name): Tweak a comment.
59877
59878 2003-01-14  Bruno Haible  <bruno@clisp.org>
59879
59880         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
59881         when a string comparison is sufficient.
59882
59883 2003-01-14  Bruno Haible  <bruno@clisp.org>
59884
59885         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
59886         'unsigned int'.
59887
59888 2003-01-14  Bruno Haible  <bruno@clisp.org>
59889
59890         * lib/hash-pjw.c: Add comment about low quality of this function.
59891
59892 2003-01-13  Bruno Haible  <bruno@clisp.org>
59893
59894         * modules/stpcpy: Distribute lib/stpcpy.h.
59895         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
59896
59897 2003-01-13  Bruno Haible  <bruno@clisp.org>
59898
59899         * modules/*: Add a description.
59900         * modules/strpbrk: Fix Makefile.am snippet.
59901         * modules/strtoimax: Fix dependencies.
59902         * modules/strtoumax: Likewise.
59903
59904 2003-01-13  Bruno Haible  <bruno@clisp.org>
59905
59906         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
59907         * modules/alloca (Makefile.am): All object files depend on alloca.h.
59908         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
59909
59910 2003-01-13  Bruno Haible  <bruno@clisp.org>
59911
59912         * gnulib-tool (func_create_testdir): Store config/* files in the main
59913         directory.
59914         * config.rpath: Move to ...
59915         * config/config.rpath: ... here.
59916         * modules/gettext: Contains config/config.rpath, not config.rpath.
59917         * modules/iconv: Likewise.
59918
59919 2003-01-12  Paul Eggert  <eggert@twinsun.com>
59920
59921         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59922         to avoid collisions with libcurses and libreadline.
59923
59924         * m4/getstr.m4: Remove.
59925         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
59926
59927 2003-01-12  Paul Eggert  <eggert@twinsun.com>
59928
59929         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59930         to avoid collisions with libcurses and libreadline.
59931
59932         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
59933         * lib/getstr.h, getstr.c: Remove.
59934         * lib/getline.c: Include "getline.h", to check interface.
59935         Move body of old getstr.c here: this defines MIN_CHUNK and
59936         declares getdelim2, which is renamed from getstr.
59937         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
59938
59939         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
59940         All uses changed.
59941         * lib/linebuffer.h: Likewise.
59942         (readline): Remove backward-compatibility macro.
59943
59944 2003-01-12  Paul Eggert  <eggert@twinsun.com>
59945
59946         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
59947         to avoid collisions with libcurses and libreadline.
59948         * getstr: Remove.
59949         * MODULES.html.sh: Remove getstr.
59950         * modules/getline: Depend on unlocked-io, not getstr.
59951
59952 2003-01-12  Jim Meyering  <jim@meyering.net>
59953
59954         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
59955
59956 2003-01-10  Bruno Haible  <bruno@clisp.org>
59957
59958         * modules/alloca: Change Makefile.am requirements. Simplify Include
59959         requirements. Add lib/alloca_.h to file list.
59960
59961 2003-01-10  Bruno Haible  <bruno@clisp.org>
59962
59963         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
59964
59965 2003-01-10  Bruno Haible  <bruno@clisp.org>
59966
59967         * lib/alloca_.h: New file.
59968         * lib/getdate.y: Unconditionally include alloca.h.
59969         * lib/makepath.c: Likewise.
59970         * lib/setenv.c: Likewise.
59971         * lib/userspec.c: Likewise.
59972
59973 2003-01-09  Karl Berry  <karl@gnu.org>
59974
59975         * MODULES.html.sh: include `dirname $0` in PATH, to find
59976         gnulib-tool.
59977
59978 2003-01-09  Bruno Haible  <bruno@clisp.org>
59979
59980         * modules/stdbool: Change configure.ac, Makefile.am requirements.
59981         Simplify Include requirements. Add lib/stdbool.h.in to file list.
59982
59983 2003-01-09  Bruno Haible  <bruno@clisp.org>
59984
59985         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
59986
59987 2003-01-09  Bruno Haible  <bruno@clisp.org>
59988
59989         * lib/stdbool.h.in: New file.
59990
59991 2003-01-09  Bruno Haible  <bruno@clisp.org>
59992
59993         * gnulib-tool (func_all_modules): Ignore files ending in ~.
59994         * MODULES.html.sh: Likewise.
59995
59996 2003-01-08  Jim Meyering  <jim@meyering.net>
59997
59998         * lib/full-write.c: Undefine and define-away `const' after inclusion
59999         of errno.h, not before.  Suggestion from Bruno Haible.
60000
60001 2003-01-08  Bruno Haible  <bruno@clisp.org>
60002
60003         * modules/full-read: Depend on full-write.
60004
60005 2003-01-08  Bruno Haible  <bruno@clisp.org>
60006
60007         * lib/safe-read.c: Include specification header first, to ensure its
60008         selfcontainedness.
60009         * lib/full-write.c: Likewise.
60010
60011 2003-01-07  Jim Meyering  <jim@meyering.net>
60012
60013         * lib/full-write.c: Rework so that it may serve to define full_read,
60014         too.
60015         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
60016
60017 2003-01-07  Bruno Haible  <bruno@clisp.org>
60018
60019         * lib/strtoimax.c: Include <stdint.h> as an alternative to
60020         <inttypes.h>.
60021         * lib/xstrtol.h: Likewise.
60022         * lib/xstrtoimax.c: Likewise.
60023         * lib/xstrtoumax.c: Likewise.
60024         * lib/human.h: Likewise.
60025
60026         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
60027         on systems that have <inttypes.h> but not <stdint.h>.
60028
60029 2003-01-07  Bruno Haible  <bruno@clisp.org>
60030
60031         * MODULES.html.sh: Add copyright notice.
60032         (missed_files): Omit CVS directory entries.
60033         (func_module): Make it work with sed-3.02.
60034         * MODULES.txt: Remove file.
60035
60036 2003-01-06  Jim Meyering  <jim@meyering.net>
60037
60038         * lib/version-etc.c: Update year in translatable copyright string.
60039
60040 2003-01-03  Karl Berry  <karl@gnu.org>
60041
60042         * config/config.{guess,sub}: update from prep.
60043
60044 2003-01-02  Karl Berry  <karl@gnu.org>
60045
60046         * doc/COPYING.DOC: belatedly updated to 1.2.
60047
60048 2003-01-01  Karl Berry  <karl@gnu.org>
60049
60050         * gnulib-tool (func_verify_module): report module name $module in
60051         error message, not $1.
60052         * gnulib-tool (create-testdir): don't complain if destdir couldn't
60053         be created, only if it doesn't exist.
60054         * gnulib-tool (last_checkin_date): don't expand the $Date here.
60055
60056 2002-12-31  Paul Eggert  <eggert@twinsun.com>
60057
60058         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
60059
60060 2002-12-31  Paul Eggert  <eggert@twinsun.com>
60061
60062         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
60063         memcmp if strcoll doesn't work.
60064
60065 2002-12-31  Bruno Haible  <bruno@clisp.org>
60066
60067         * lib/utime.c (utime_null): No need to call ftruncate if the file was
60068         nonempty.
60069
60070 2002-12-31  Bruno Haible  <bruno@clisp.org>
60071
60072         * lib/memcoll.c (STRCOLL): New macro.
60073         (memcoll): Use it.
60074
60075 2002-12-31  Bruno Haible  <bruno@clisp.org>
60076
60077         * lib/localcharset.h: New file.
60078         * lib/localcharset.c: Include it.
60079         * lib/unicodeio.c: Likewise.
60080
60081 2002-12-31  Bruno Haible  <bruno@clisp.org>
60082
60083         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
60084         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
60085
60086 2002-12-31  Bruno Haible  <bruno@clisp.org>
60087
60088         * lib/getline.h: Include <stddef.h>, for size_t.
60089
60090         * lib/unicodeio.h: Include <stddef.h>, for size_t.
60091         * lib/unicodeio.c: Don't include <stddef.h>.
60092
60093 2002-12-31  Bruno Haible  <bruno@clisp.org>
60094
60095         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
60096         HAVE_TM_ZONE.
60097
60098 2002-12-24  Karl Berry  <karl@gnu.org>
60099
60100         * config/config.guess: update from prep.
60101
60102 2002-12-24  Bruno Haible  <bruno@clisp.org>
60103
60104         General infrasructure.
60105         * m4/README: Rewritten.
60106         * m4/onceonly.m4: New file.
60107         * m4/onceonly_2_57.m4: New file.
60108
60109         Module atexit.
60110         * m4/atexit.m4: New file.
60111
60112         Module strtod.
60113         * m4/strtod.m4: New file.
60114
60115         Module strtol.
60116         * m4/strtol.m4: New file.
60117
60118         Module strtoul.
60119         * m4/strtoul.m4: New file.
60120
60121         Module memchr.
60122         * m4/memchr.m4: New file.
60123
60124         Module memcmp.
60125         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
60126         (jm_FUNC_MEMCMP): Invoke it.
60127
60128         Module memcpy.
60129         * m4/memcpy.m4: New file.
60130
60131         Module memmove.
60132         * m4/memmove.m4: New file.
60133
60134         Module memset.
60135         * m4/memset.m4: New file.
60136
60137         Module strcspn.
60138         * m4/strcspn.m4: New file.
60139
60140         Module strpbrk.
60141         * m4/strpbrk.m4: New file.
60142
60143         Module strstr.
60144         * m4/strstr.m4: New file.
60145
60146         Module strerror.
60147         * m4/strerror.m4: New file.
60148
60149         Module mktime.
60150         * m4/mktime.m4: Renamed from jm-mktime.m4.
60151         (gl_PREREQ_MKTIME): New macro.
60152         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
60153
60154         Module malloc.
60155         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
60156         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
60157         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
60158
60159         Module realloc.
60160         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
60161         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
60162         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
60163
60164         Module strftime.
60165         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
60166         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
60167         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
60168         gl_TM_GMTOFF.
60169         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
60170
60171         Module xalloc.
60172         * m4/xalloc.m4: New file.
60173
60174         Module alloca.
60175         * m4/alloca.m4: New file.
60176
60177         Module putenv.
60178         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
60179         (jm_FUNC_PUTENV): Invoke it.
60180
60181         Module setenv.
60182         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
60183         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
60184         when invoked twice.
60185         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
60186         gt_FUNC_SETENV.
60187
60188         Module memrchr.
60189         * m4/memrchr.m4: New file.
60190
60191         Module stpcpy.
60192         * m4/stpcpy.m4: New file.
60193
60194         Module strcase.
60195         * m4/strcase.m4: New file.
60196
60197         Module strdup.
60198         * m4/strdup.m4: New file.
60199
60200         Module strnlen.
60201         * m4/strnlen.m4: New file.
60202
60203         Module strndup.
60204         * m4/strndup.m4: New file.
60205
60206         Module xstrtod.
60207         * m4/xstrtod.m4: New file.
60208
60209         Module xstrtol.
60210         * m4/xstrtol.m4: New file.
60211
60212         Module getdate.
60213         * m4/getdate.m4: New file.
60214
60215         Module unlocked-io.
60216         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
60217         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
60218         * m4/jm-glibc-io.m4n: Remove file.
60219
60220         Module long-options.
60221         * m4/long-options.m4: New file.
60222
60223         Module md5.
60224         * m4/md5.m4: New file.
60225
60226         Module sha.
60227         * m4/sha.m4: New file.
60228
60229         Module getstr.
60230         * m4/getstr.m4: New file.
60231
60232         Module getline.
60233         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
60234         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
60235         <sys/types.h>, for size_t. Use the function name gnu_getline, not
60236         simply getline. Infoke gl_PREREQ_GETLINE.
60237
60238         Module obstack.
60239         * m4/obstack.m4: New file.
60240
60241         Module hash.
60242         * m4/hash.m4: New file.
60243
60244         Module readtokens.
60245         * m4/readtokens.m4: New file.
60246
60247         Module strverscmp.
60248         * m4/strverscmp.m4: New file.
60249
60250         Module stdbool.
60251         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
60252         OSF/1.
60253
60254         Module strtoll.
60255         * m4/strtoll.m4: New file.
60256
60257         Module strtoull.
60258         * m4/strtoull.m4: New file.
60259
60260         Module strtoimax.
60261         * m4/strtoimax.m4: New file.
60262
60263         Module strtoumax.
60264         * m4/strtoumax.m4: New file.
60265
60266         Module xstrtoimax.
60267         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
60268         jm_AC_PREREQ_XSTRTOIMAX.
60269         Moved the strtol prerequisites to strtol.m4.
60270         Moved the strtoll prerequisites to strtoll.m4.
60271         Moved the strtoimax prerequisites to strtoimax.m4.
60272
60273         Module xstrtoumax.
60274         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
60275         jm_AC_PREREQ_XSTRTOUMAX.
60276         Moved the strtoul prerequisites to strtoul.m4.
60277         Moved the strtoull prerequisites to strtoull.m4.
60278         Moved the strtoumax prerequisites to strtoumax.m4.
60279
60280         Module chown.
60281         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
60282         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
60283
60284         Module dup2.
60285         * m4/dup2.m4: New file.
60286
60287         Module ftruncate.
60288         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
60289         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
60290
60291         Module getgroups.
60292         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
60293         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
60294
60295         Module gettimeofday.
60296         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
60297         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
60298         gl_PREREQ_GETTIMEOFDAY.
60299
60300         Module mkdir.
60301         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
60302         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
60303
60304         Module mkstemp.
60305         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
60306         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
60307         jm_AC_TYPE_UINTMAX_T.
60308         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
60309
60310         Module stat.
60311         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
60312         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
60313
60314         Module lstat.
60315         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
60316         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
60317
60318         Module timespec.
60319         * m4/timespec.m4 (gl_TIMESPEC): New macro.
60320         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
60321         * m4/st_mtim.m4: Indentation.
60322
60323         Module nanosleep.
60324         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
60325         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
60326         gl_PREREQ_NANOSLEEP.
60327
60328         Module regex.
60329         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
60330         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
60331         (gl_REGEX): New macro.
60332
60333         Module rename.
60334         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
60335         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
60336
60337         Module rmdir.
60338         * m4/rmdir.m4: New file.
60339
60340         Module utime.
60341         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
60342         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
60343         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
60344
60345         Module dirname.
60346         * m4/dirname.m4: New file.
60347
60348         Module getopt.
60349         * m4/getopt.m4: New file.
60350
60351         Module unistd-safer.
60352         * m4/unistd-safer.m4: New file.
60353
60354         Module fnmatch.
60355         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
60356         declaration.
60357         (gl_PREREQ_FNMATCH_EXTRA): New macro.
60358         (gl_FUNC_FNMATCH_POSIX): New macro.
60359         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
60360         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
60361         simply fnmatch.
60362
60363         Module exclude.
60364         * m4/exclude.m4: New file.
60365
60366         Module human.
60367         * m4/human.m4: New file.
60368
60369         Module acl.
60370         * m4/acl.m4: Nop.
60371
60372         Module backupfile.
60373         * m4/backupfile.m4: New file.
60374         * m4/d-ino.m4: Indentation.
60375
60376         Module fsusage.
60377         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
60378         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
60379         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
60380
60381         Module dirfd.
60382         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
60383         requirements.
60384
60385         Module euidaccess.
60386         * m4/euidaccess.m4: New file.
60387
60388         Module file-type.
60389         * m4/file-type.m4: New file.
60390
60391         Module fileblocks.
60392         * m4/fileblocks.m4: New file.
60393
60394         Module filemode.
60395         * m4/filemode.m4: New file.
60396
60397         Module isdir.
60398         * m4/isdir.m4: New file.
60399
60400         Module lchown.
60401         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
60402         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
60403
60404         Module makepath.
60405         * m4/makepath.m4: New file.
60406
60407         Module modechange.
60408         * m4/modechange.m4: New file.
60409
60410         Module mountlist.
60411         * m4/mountlist.m4: New file.
60412         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
60413         Indentation.
60414
60415         Module path-concat.
60416         * m4/path-concat.m4: New file.
60417
60418         Module pathmax.
60419         * m4/pathmax.m4: New file.
60420
60421         Module same.
60422         * m4/same.m4: New file.
60423
60424         Module save-cwd.
60425         * m4/save-cwd.m4: New file.
60426
60427         Module savedir.
60428         * m4/savedir.m4: New file.
60429
60430         Module xgetcwd.
60431         * m4/xgetcwd.m4: New file.
60432         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
60433
60434         Module xreadlink.
60435         * m4/xreadlink.m4: New file.
60436
60437         Module safe-read.
60438         * m4/safe-read.m4: New file.
60439
60440         Module safe-write.
60441         * m4/safe-write.m4: New file.
60442
60443         Module closeout.
60444         * m4/closeout.m4: New file.
60445
60446         Module stdio-safer.
60447         * m4/stdio-safer.m4: New file.
60448
60449         Module getpass.
60450         * m4/getpass.m4: New file.
60451
60452         Module getugroups.
60453         * m4/getugroups.m4: New file.
60454
60455         Module group-member.
60456         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
60457         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
60458
60459         Module idcache.
60460         * m4/idcache.m4: New file.
60461
60462         Module userspec.
60463         * m4/userspec.m4: New file.
60464
60465         Module gettime.
60466         * m4/clock_time.m4: New file.
60467         * m4/gettime.m4: New file.
60468
60469         Module settime.
60470         * m4/settime.m4: New file.
60471
60472         Module posixtm.
60473         * m4/posixtm.m4: New file.
60474
60475         Module gethostname.
60476         * m4/gethostname.m4: New file.
60477
60478         Module canon-host.
60479         * m4/canon-host.m4: New file.
60480
60481         Module gettext.
60482         * m4/codeset.m4: New file, from gettext-0.11.5.
60483         * m4/gettext.m4: New file, from gettext-0.11.5.
60484         * m4/glibc21.m4: New file, from gettext-0.11.5.
60485         * m4/iconv.m4: New file, from gettext-0.11.5.
60486         * m4/intdiv0.m4: New file, from gettext-0.11.5.
60487         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
60488         * m4/inttypes.m4: New file, from gettext-0.11.5.
60489         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
60490         * m4/isc-posix.m4: New file, from gettext-0.11.5.
60491         * m4/lcmessage.m4: New file, from gettext-0.11.5.
60492         * m4/lib-ld.m4: New file, from gettext-0.11.5.
60493         * m4/lib-link.m4: New file, from gettext-0.11.5.
60494         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
60495         * m4/progtest.m4: New file, from gettext-0.11.5.
60496         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
60497         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
60498         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
60499
60500         Module localcharset.
60501         * m4/localcharset.m4: New file.
60502
60503         Module hard-locale.
60504         * m4/hard-locale.m4: New file.
60505
60506         Module mbswidth.
60507         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
60508         onceonly macros.
60509         * m4/mbrtowc.m4: Add comment.
60510
60511         Module memcasecmp.
60512         * m4/memcasecmp.m4: New file.
60513
60514         Module memcoll.
60515         * m4/memcoll.m4: New file.
60516
60517         Module unicodeio.
60518         * m4/unicodeio.m4: New file.
60519
60520         Module rpmatch.
60521         * m4/rpmatch.m4: New file.
60522
60523         Module yesno.
60524         * m4/yesno.m4: New file.
60525
60526         Module exitfail.
60527         * m4/exitfail.m4: New file.
60528
60529         Module c-stack.
60530         * m4/c-stack.m4 (gl_C_STACK): New macro.
60531         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
60532
60533         Module error.
60534         * m4/error.m4 (gl_ERROR): New macro.
60535         (jm_PREREQ_ERROR): Use onceonly macros.
60536
60537         Module fatal.
60538         * m4/fatal.m4: New file.
60539
60540         Module getloadavg.
60541         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
60542         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
60543
60544         Module getpagesize.
60545         * m4/getpagesize.m4: New file.
60546
60547         Module getusershell.
60548         * m4/getusershell.m4: New file.
60549
60550         Module physmem.
60551         * m4/physmem.m4: New file.
60552
60553         Module posixver.
60554         * m4/posixver.m4: New file.
60555
60556         Module quotearg.
60557         * m4/quotearg.m4: New file.
60558
60559         Module quote.
60560         * m4/quote.m4: New file.
60561
60562         Module readutmp.
60563         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
60564
60565         Module sig2str.
60566         * m4/sig2str.m4: New file.
60567
60568         Other.
60569         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
60570         ulonglong.m4.
60571         * m4/intmax_t.m4: New file.
60572         * m4/d-type.m4: Indentation.
60573         * m4/jm-macros.m4: Update.
60574         * m4/prereq.m4 (jm_PREREQ): Update.
60575         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
60576         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
60577         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
60578         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
60579         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
60580         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
60581         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
60582         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
60583         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
60584         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
60585         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
60586         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
60587         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
60588         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
60589         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
60590         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
60591         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
60592         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
60593         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
60594
60595 2002-12-24  Bruno Haible  <bruno@clisp.org>
60596
60597         * MODULES.txt: Update according to m4/ changes.
60598
60599         Module gettext.
60600         * config.rpath: New file, from gettext-0.11.5.
60601
60602         * modules/*: New module descriptions.
60603         * gnulib-tool: New file.
60604         * MODULES.html.sh: New file.
60605
60606 2002-12-21  Karl Berry  <karl@gnu.org>
60607
60608         * doc/fdl.texi: update to version 1.2.
60609
60610 2002-12-19  Karl Berry  <karl@gnu.org>
60611
60612         * config/config.guess: update from prep.
60613
60614 2002-12-18  Bruno Haible  <bruno@clisp.org>
60615
60616         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
60617         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
60618
60619 2002-12-17  Bruno Haible  <bruno@clisp.org>
60620
60621         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
60622         stdlib.h, string.h.
60623
60624 2002-12-17  Bruno Haible  <bruno@clisp.org>
60625
60626         * lib/canon-host.c (strdup): Remove unused declaration.
60627
60628         * lib/fsusage.c: Include full_read.h.
60629         (get_fs_usage): Use full_read instead of safe_read.
60630
60631         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
60632
60633 2002-12-12  Karl Berry  <karl@gnu.org>
60634
60635         * config/config.guess: update from prep.
60636
60637 2002-12-11  Bruno Haible  <bruno@clisp.org>
60638
60639         * m4/setenv.m4: New file, from gettext-0.11.5.
60640
60641 2002-12-11  Bruno Haible  <bruno@clisp.org>
60642
60643         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
60644         not unsetenv().
60645         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
60646         modifications:
60647
60648         2002-12-11  Bruno Haible  <bruno@clisp.org>
60649
60650                 * setenv.c (alloca): Fall back to malloc.
60651                 (freea): New macro.
60652                 (setenv): Use freea() to free memory allocated with alloca().
60653
60654         2002-11-13  Bruno Haible  <bruno@clisp.org>
60655
60656                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
60657                 function declarations.
60658                 * unsetenv.c (unsetenv): Likewise.
60659
60660         2002-03-04  Bruno Haible  <bruno@clisp.org>
60661
60662                 Portability to AIX 4.3.3.
60663                 * unsetenv.c: New file, extracted from setenv.c.
60664                 * setenv.c: Move the unsetenv() function to unsetenv.c.
60665
60666         2001-12-20  Bruno Haible  <bruno@clisp.org>
60667
60668                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
60669                 use malloc instead. For SunOS 4.
60670
60671         2001-12-11  Bruno Haible  <bruno@clisp.org>
60672
60673                 * setenv.c: Declare alloca.
60674                 (compar_fn_t): New typedef.
60675                 (KNOWN_VALUE, STORE_VALUE): Use it.
60676
60677         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
60678         setenv.h.
60679
60680 2002-12-10  Paul Eggert  <eggert@twinsun.com>
60681
60682         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
60683         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
60684         Choose values that are less likely to collide with system fnmatch
60685         options.
60686         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
60687         defined (e.g., a pure POSIX system).
60688         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
60689         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
60690
60691 2002-12-06  Paul Eggert  <eggert@twinsun.com>
60692
60693         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
60694         a pain in practice to deal with generated m4 files.  This change
60695         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
60696
60697         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
60698         and jm-glibc-io.m4, as they are no longer a special case.
60699         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
60700         kludge and the auto-generation stuff.  Check only whether the
60701         functions are declared, not whether they exist, since older hosts
60702         that don't declare the functions can't use the optimization anyway.
60703
60704 2002-12-06  Jim Meyering  <jim@meyering.net>
60705
60706         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
60707
60708         Merge in changes from libc's misc/error.c, in preparation
60709         for the merge of gnulib's changes back into libc.
60710
60711         * lib/error.c (_): Define only if not already defined.
60712         Move definition to follow all #include directives.
60713         Include unlocked-io.h only if !_LIBC.
60714         [_LIBC]: Include <libio/libioP.h>.
60715         [USE_IN_LIBIO]: Include <libio/iolibio.h>
60716         (fflush): Tweak definition to use INTUSE.
60717         (putc): Define.
60718
60719 2002-12-05  Paul Eggert  <eggert@twinsun.com>
60720
60721         * lib/alloca.c [defined emacs]: Include "lisp.h".
60722         (xalloc_die) [defined emacs]: New macro.
60723         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
60724         [! defined emacs]: Include <xalloc.h>.
60725         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
60726         (pointer): Typedef to POINTER_TYPE *.
60727         (malloc): Remove decl; we now always use xmalloc.
60728         (alloca): Use old-style definition, since Emacs needs this.
60729         Check for arithmetic overflow when computing combined size.
60730
60731 2002-12-04  Paul Eggert  <eggert@twinsun.com>
60732
60733         Do not generate unlocked-io.h automatically, since it's easier to
60734         maintain it by hand.
60735
60736         * lib/unlocked-io.h: New file, from GNU diffutils,
60737         but with proper copyright notice and attribution.
60738         * lib/gen-uio: Remove.
60739         * lib/Makefile.am: Add copyright notice.
60740         (libfetish_a_SOURCES): Add unlocked-io.h.
60741         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
60742         (DISTCLEANFILES, io_functions): Remove macros.
60743         (EXTRA_DIST): Remove gen_uio.
60744         (unlocked-io.h): Remove rule.
60745
60746 2002-12-04  Jim Meyering  <jim@meyering.net>
60747
60748         Reflect the fact that stat.c and lstat.c are no longer generated.
60749         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
60750         (DISTCLEANFILES): Likewise.
60751         (EXTRA_DIST): Likewise.
60752         (all_local): Don't depend on stat.c or lstat.c.
60753         (stat.c, lstat.c): Remove rules.
60754         (EXTRA_DIST): Remove xstat.in.
60755
60756         * lib/xstat.in: Remove file.  Contents moved into stat.c.
60757         * lib/stat.c: New file.  Contents mostly from xstat.in.
60758         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
60759         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
60760
60761         * lib/safe-read.c: Rework so that it may serve to define safe_write,
60762         too.
60763         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
60764
60765 2002-12-03  Jim Meyering  <jim@meyering.net>
60766
60767         * lib/safe-read.c, safe-write.c: Change variable names and comments,
60768         but not semantics, to minimize the differences between these two files.
60769         (safe_read): Change comment to mention SAFE_READ_ERROR.
60770
60771         * lib/safe-read.c (IS_EINTR): Define.
60772         (safe_read): Use IS_EINTR in place of in-function cpp directives.
60773
60774 2002-12-02  Jim Meyering  <jim@meyering.net>
60775
60776         * lib/safe-read.c (EINTR): Define.
60777         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
60778         (INT_MAX): Provide fallback.
60779         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
60780
60781         * lib/safe-read.h (SAFE_READ_ERROR): Define.
60782
60783 2002-12-02  Bruno Haible  <bruno@clisp.org>
60784
60785         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
60786         Define, taken from safe-read.c.
60787         (INT_MAX): Provide fallback.
60788         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
60789         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
60790
60791         * lib/safe-read.c (EINTR): Remove definition.
60792         (safe_read): Don't use EINTR if it is absent.
60793
60794 2002-12-01  Jim Meyering  <jim@meyering.net>
60795
60796         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
60797         zero.
60798         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
60799
60800 2002-11-27  Paul Eggert  <eggert@twinsun.com>
60801
60802         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
60803         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
60804         with `if (! (value < limit)) abort ();', for readability.
60805
60806 2002-11-26  Karl Berry  <karl@gnu.org>
60807
60808         * lib/strdup.c: copy from libc again, with jim's ok.
60809         * lib/.cppi-disable: re-add strdup.c
60810
60811 2002-11-25  Karl Berry  <karl@gnu.org>
60812
60813         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
60814         instead of "strtol.c".
60815
60816 2002-11-25  Karl Berry  <karl@gnu.org>
60817
60818         * config/install-sh: update from automake for variable quoting, $0 in
60819         error msgs, etc.
60820
60821         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
60822         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
60823         entry.
60824
60825 2002-11-25  Jim Meyering  <jim@meyering.net>
60826
60827         * lib/mktime.c: Sync from libc, now that it has the latest fix.
60828
60829 2002-11-24  Karl Berry  <karl@gnu.org>
60830
60831         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
60832         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
60833
60834 2002-11-24  Jim Meyering  <jim@meyering.net>
60835
60836         Update from coreutils:
60837
60838         * lib/mktime.c: Merge in changes from libc.
60839
60840         Avoid a link-time failure on some Linux systems.
60841         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
60842         (otherwise).
60843         (__mon_yday): Declare with the STATIC attribute.
60844         (__mktime_internal): Likewise.
60845         Based on a report from Greg Schafer.
60846
60847 2002-11-23  Jim Meyering  <jim@meyering.net>
60848
60849         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
60850         Use `unsigned', not `int', as type of index.
60851
60852         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
60853
60854         * lib/fsusage.c: Remove unneeded parentheses around operands of
60855         `defined'.
60856
60857 2002-11-22  Paul Eggert  <eggert@twinsun.com>
60858
60859         * lib/quotearg.h: Allow multiple inclusion by surrounding with
60860         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
60861         so that we can be included first.
60862         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
60863         * lib/quotearg.c: Include quotearg.h immediately after config.h.
60864         No need to include stddef.h or sys/types.h any more.
60865         Surround local include files with "", not "<>".
60866         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
60867         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
60868         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
60869         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
60870         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
60871         (ISPRINT): Remove; no longer needed now that we assume C89.
60872
60873         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
60874         Preserve errno.
60875
60876         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
60877         quotearg_char): Use SIZE_MAX rather than
60878         (size_t) -1 when we are talking about "infinity".
60879
60880         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
60881
60882 2002-11-22  Paul Eggert  <eggert@twinsun.com>
60883
60884         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
60885         hint that one should use `if (! x) abort ();' rather than `assert
60886         (x);', and anyway it's one less thing to worry about configuring.
60887         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
60888         hash_rehash, hash_insert): Use abort rather than assert.
60889
60890 2002-11-22  Bruno Haible  <bruno@clisp.org>
60891
60892         * lib/safe-read.h: Assume C89. Add comments.
60893         (safe_read): Change return type to size_t.
60894         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
60895         byte counts > SSIZE_MAX correctly.
60896         * lib/safe-write.h: New file.
60897         * lib/safe-write.c: New file.
60898         * lib/full-read.h: New file.
60899         * lib/full-read.c: New file.
60900         * lib/full-write.h: Assume C89. Add comments.
60901         * lib/full-write.c: Include safe-write.h.
60902         (full_write): Rewritten to use safe_write.
60903         Suggested by Jim Meyering and Paul Eggert.
60904
60905 2002-11-21  Jim Meyering  <jim@meyering.net>
60906
60907         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
60908
60909         Merge in changes from the coreutils.
60910
60911         2002-09-25  Paul Eggert  <eggert@twinsun.com>
60912         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
60913         <stdint.h>.
60914         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
60915         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
60916         int.  Work more efficiently if X is the same width as uintmax_t.
60917         Do not compare X to -1, to avoid bogus compiler warning.
60918         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
60919         Don't assume that f_frsize and f_bsize are the same type.
60920
60921         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
60922         warning on FreeBSD.
60923
60924         * lib/makepath.c (make_path): Restore umask *before* creating the final
60925         component.
60926         (make_path): Minor reformatting.
60927
60928         * lib/xmalloc.c: Adjust to work with new autoconf macros,
60929         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
60930         HAVE_MALLOC/HAVE_REALLOC.
60931
60932         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
60933         dummy ones.  At least on GNU/Linux systems, `auto' means something
60934         else.
60935         From Michael Stone.
60936
60937 2002-11-21  Bruno Haible  <bruno@clisp.org>
60938
60939         Remove case insensitive option matching.
60940         * lib/argmatch.h (argcasematch): Remove declaration.
60941         (ARGCASEMATCH): Remove macro.
60942         (__xargmatch_internal): Remove case_sensitive argument.
60943         (XARGMATCH): Update.
60944         (XARGCASEMATCH): Remove macro.
60945         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
60946         case_sensitive argument.
60947         (argcasematch): Remove function.
60948         (__xargmatch_internal): Remove case_sensitive argument.
60949         (main): Use XARGMATCH instead of XARGCASEMATCH.
60950
60951         * lib/xmalloc.c: Change compile-time error message. Add comment about
60952         required autoconf version.
60953
60954 2002-11-20  Paul Eggert  <eggert@twinsun.com>
60955
60956         Merge argmatch cleanups from Bison.  Assume C89.
60957
60958         * lib/argmatch.c: Include config.h here, not in argmatch.h.
60959         Include stdlib.h, for EXIT_FAILURE.
60960         Always include <string.h>, since we assume C89.
60961         (EXIT_FAILURE): Remove pre-C89 bug workaround.
60962         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
60963         Include <stddef.h> instead, since it's all we need for size_t.
60964         (PARAMS): Remove.  All uses removed.
60965         (ARRAY_CARDINALITY): Do not bother to #undef.
60966         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
60967         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
60968         Remove unnecessary parentheses.
60969         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
60970         Insert necessary parentheses.
60971         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
60972         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
60973
60974 2002-11-19  Bruno Haible  <bruno@clisp.org>
60975
60976         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
60977         * lib/mbswidth.h: Include <stddef.h>, for size_t.
60978
60979         * lib/mbswidth.h (PARAMS): Remove macro.
60980         (mbswidth, mbsnwidth): Use ANSI C function declarations.
60981         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
60982
60983         * lib/gcd.h (PARAMS): Remove macro.
60984         (gcd): Use ANSI C function declarations.
60985         * lib/gcd.c (gcd): Likewise.
60986
60987 2002-11-15  Bruno Haible  <bruno@clisp.org>
60988
60989         * lib/strcspn.c: Include <stddef.h>.
60990         (strcspn): Use ANSI C function declaration. Change return type to
60991         size_t. Use NULL.
60992         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
60993         (strpbrk): Use NULL.
60994         * lib/strpbrk.h (PARAMS): Remove macro.
60995         (strpbrk): Use ANSI C function declaration.
60996         * lib/strstr.c: Don't include <sys/types.h>.
60997         * lib/strstr.h (PARAMS): Remove macro.
60998         (strstr): Use ANSI C function declarations.
60999
61000 2002-11-14  Karl Berry  <karl@gnu.org>
61001
61002         * config/mkinstalldirs: `do' on separate line, instead of
61003         `for var; do'.
61004
61005 2002-11-06  Bruno Haible  <bruno@clisp.org>
61006
61007         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
61008         * lib/gcd.c (gcd): Likewise.
61009
61010 2002-11-05  Bruno Haible  <bruno@clisp.org>
61011
61012         * lib/gcd.h: New file, from gettext-0.11.5.
61013         * lib/gcd.c: New file, from gettext-0.11.5.
61014
61015 2002-11-05  Bruno Haible  <bruno@clisp.org>
61016
61017         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
61018         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
61019         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
61020         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
61021
61022         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
61023         <libintl.h>.
61024         * lib/makepath.c: Include gettext.h instead of <locale.h> and
61025         <libintl.h>.
61026
61027         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
61028         * lib/human.c: Include gettext.h instead of <libintl.h>.
61029         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
61030         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
61031         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
61032         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
61033         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
61034         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
61035         (textdomain): Remove definition.
61036         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
61037
61038         * lib/long-options.c: Remove include of <libintl.h> and definition of
61039         _.
61040         * lib/same.c: Remove include of <libintl.h> and definition of _.
61041
61042 2002-11-04  Owen Taylor  <otaylor@redhat.com>
61043
61044         * lib/config.charset: A few additions for Solaris.
61045
61046 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
61047
61048         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
61049         * lib/localcharset.c (locale_charset): Declare as extern "C".
61050
61051 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
61052
61053         * lib/config.charset: msdos in uk_UA uses CP1125.
61054
61055 2002-11-04  Bruno Haible  <bruno@clisp.org>
61056
61057         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
61058         * lib/strcase.h: New file, from GNU gettext-0.11.5.
61059         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
61060         * lib/strstr.h: New file, from GNU gettext-0.11.5.
61061         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
61062
61063 2002-11-04  Bruno Haible  <bruno@clisp.org>
61064
61065         * lib/localcharset.c (locale_charset): Don't return an empty string.
61066
61067 2002-11-04  Bruno Haible  <bruno@clisp.org>
61068
61069         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
61070         aliases.
61071
61072 2002-11-04  Bruno Haible  <bruno@clisp.org>
61073
61074         * lib/config.charset: Update for newest glibc. Add canonical names
61075         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
61076
61077 2002-11-04  Bruno Haible  <bruno@clisp.org>
61078
61079         * lib/config.charset: Add support for NetBSD.
61080
61081 2002-11-04  Bruno Haible  <bruno@clisp.org>
61082
61083         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
61084
61085 2002-11-01  Bruno Haible  <bruno@clisp.org>
61086
61087         * configure.in: Add AC_CONFIG_AUX_DIR call.
61088         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
61089         test/Makefile.
61090         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
61091
61092 2002-09-28  Karl Berry  <karl@gnu.org>
61093
61094         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
61095         installed automake until the next release, since changes have been
61096         made.
61097
61098 2002-09-25  Karl Berry  <karl@gnu.org>
61099
61100         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
61101         * lib/getopt*: copy from libc/posix.
61102         * lib/gettext.h: copy from gettext.
61103         * lib/.cppi-disable: add strdup.c, gettext.h.
61104
61105 2002-09-25  Karl Berry  <karl@gnu.org>
61106
61107         * config/srclist.txt: enable gettext.h check.
61108         * config/config.{guess,sub}: update from prep.
61109         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
61110                 from automake 1.6.3.
61111         See srclist*.
61112
61113 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
61114
61115         * regex.c (PATFETCH): Remove the translating fetch.
61116         (PATFETCH_RAW): Rename to PATFETCH.
61117         (set_image_of_range): New fun.
61118         (SET_RANGE_TABLE_WORK_AREA): Use it.
61119         (regex_compile): Don't translate the pattern chars so eagerly.
61120         Only do it when inserting an `exactn' bytecode or when handling
61121         a char-range.
61122         (mutually_exclusive_p): Avoid empty statement.
61123
61124 2002-07-06  Jim Meyering  <meyering@lucent.com>
61125
61126         * m4/README: Don't mention Makefile.am.in.
61127         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
61128
61129 2002-07-01  Jim Meyering  <meyering@lucent.com>
61130
61131         * lib/c-stack.c: Include sys/time.h.
61132         From Volker Borchert.
61133
61134 2002-06-26  Paul Eggert  <eggert@twinsun.com>
61135
61136         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
61137
61138 2002-06-26  Paul Eggert  <eggert@twinsun.com>
61139
61140         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
61141         New macro.  Use it uniformly instead of
61142         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
61143         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
61144         reported by Vin Shelton.
61145
61146 2002-06-22  Paul Eggert  <eggert@twinsun.com>
61147
61148         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
61149         Do not assume SA_SIGINFO behavior.
61150         Bug reported by Jim Meyering on NetBSD 1.5.2.
61151
61152 2002-06-22  Jim Meyering  <meyering@lucent.com>
61153
61154         * m4/c-stack.m4: New file, from diffutils-2.8.2.
61155         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
61156
61157         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
61158         now that configure.ac uses AC_GNU_SOURCE.
61159         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
61160         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
61161
61162         Update to latest tools.  Suggestions from Paul Eggert.
61163         * m4/stdbool.m4: New file, from diffutils-2.8.2.
61164         * m4/gnu-source.m4: Update from diffutils-2.8.2.
61165         * m4/fnmatch.m4: Likewise.
61166         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
61167         to AC_HEADER_STDBOOL
61168
61169 2002-06-22  Jim Meyering  <meyering@lucent.com>
61170
61171         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
61172         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
61173
61174 2002-06-22  Jim Meyering  <meyering@lucent.com>
61175
61176         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
61177
61178         * lib/exitfail.c, exitfail.h: Likewise.
61179         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
61180
61181         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
61182         of fnmatch.h.
61183         (EXTRA_DIST): Add fnmatch_loop.c.
61184         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
61185
61186         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
61187         * lib/fnmatch.c: Update from diffutils-2.8.2.
61188         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
61189         * lib/fnmatch.h: Remove file.
61190
61191 2002-06-21  Jim Meyering  <meyering@lucent.com>
61192
61193         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
61194         * m4/mbrtowc.m4: Likewise.
61195
61196         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
61197         * m4/mbswidth.m4: Reflect name change:
61198         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
61199         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
61200
61201         * m4/lib-link.m4: Update from gettext-0.11.2.
61202         * m4/gettext.m4: Likewise.
61203
61204         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
61205         From Alfred M. Szmidt.
61206
61207 2002-06-18  Paul Eggert  <eggert@twinsun.com>
61208
61209         * lib/file-type.h: Report an error if neither S_ISREG nor
61210         S_IFREG is defined, instead of using a test specific to glibc
61211         2.2.  This should be safe, since POSIX requires S_ISREG and
61212         Unix Version 7 had S_IFREG.  We don't need to check for
61213         <sys/types.h> since we don't use any symbols that it defines.
61214
61215 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
61216
61217         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
61218         $@-t, so that each temporary file name is unique and valid in the first
61219         8 characters, for operation under DOS.
61220
61221 2002-06-15  Paul Eggert  <eggert@twinsun.com>
61222
61223         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
61224
61225 2002-06-15  Jim Meyering  <meyering@lucent.com>
61226
61227         Work even with DJGPP 2.03, which lacks support for symlinks.
61228         From Richard Dawe.
61229         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
61230         is defined.
61231         * lib/lchown.c (S_ISLNK): Likewise.
61232
61233 2002-06-15  Jim Meyering  <meyering@lucent.com>
61234
61235         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
61236         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
61237         have been included before this file.
61238
61239 2002-06-14  Jim Meyering  <meyering@lucent.com>
61240
61241         * lib/file-type.h: Use the version from diffutils-2.8.2.
61242         * lib/file-type.c: Likewise.
61243
61244 2002-06-07  Jim Meyering  <meyering@lucent.com>
61245
61246         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
61247         They're needed at least for NetBSD 1.5.2.
61248         ($statxfs_includes): Include those same headers.
61249         ($statxfs_includes): Include sys/vfs.h if available.
61250         ($statxfs_includes): Likewise for sys/statvfs.h.
61251         Check for the following members in both structs statfs and statvfs:
61252         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
61253
61254 2002-06-01  Jim Meyering  <meyering@lucent.com>
61255
61256         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
61257         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
61258
61259 2002-05-28  Jim Meyering  <meyering@lucent.com>
61260
61261         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
61262         Reported by Volker Borchert.
61263
61264 2002-05-27  Jim Meyering  <meyering@lucent.com>
61265
61266         Fix a problem seen only on nonconforming systems whereby ls.c's
61267         use of localtime, and then of gettimeofday would cause trouble:
61268         the localtime call used to initialize rpl_gettimeofday's save
61269         mechanism would clobber ls's current local time information so
61270         that in any long listing the first file would always be listed
61271         with date 1970-01-01.  Analysis by Volker Borchert.
61272
61273         * lib/gettimeofday.c (localtime): Undefine.
61274         (rpl_localtime): New function.
61275
61276 2002-05-27  Jim Meyering  <meyering@lucent.com>
61277
61278         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
61279         localtime.
61280
61281         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
61282         use the replacement function; it wouldn't resolve at link time.
61283         Reported by Volker Borchert.
61284
61285 2002-05-22  Jim Meyering  <meyering@lucent.com>
61286
61287         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
61288         file-type.h.
61289         * lib/file-type.h: New file.
61290         * lib/file-type.c (file_type): New file/function.  Extracted from
61291         diffutils.
61292
61293 2002-04-30  Jim Meyering  <meyering@lucent.com>
61294
61295         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
61296
61297 2002-04-29  Paul Eggert  <eggert@twinsun.com>
61298
61299         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
61300
61301 2002-04-29  Paul Eggert  <eggert@twinsun.com>
61302
61303         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
61304         Do not check for alloca.h (no longer used) or stdbool.h (was never
61305         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
61306
61307 2002-04-29  Paul Eggert  <eggert@twinsun.com>
61308
61309         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
61310
61311 2002-04-29  Jim Meyering  <meyering@lucent.com>
61312
61313         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
61314         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
61315         Use AC_FUNC_STRNLEN here instead.
61316
61317         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
61318         With autoconf-2.53a, it's part of AC_PROG_CC.
61319
61320 2002-04-28  Paul Eggert  <eggert@twinsun.com>
61321
61322         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
61323         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
61324
61325 2002-04-28  Paul Eggert  <eggert@twinsun.com>
61326
61327         * lib/sig2str.h, lib/sig2str.c: New files.
61328         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
61329
61330 2002-04-28  Paul Eggert  <eggert@twinsun.com>
61331
61332         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
61333         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
61334         of 127, since 64 is the largest conceivable number for ancient
61335         nonstandard hosts.
61336         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
61337
61338 2002-04-28  Jim Meyering  <meyering@lucent.com>
61339
61340         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
61341
61342 2002-04-24  Jim Meyering  <meyering@lucent.com>
61343
61344         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
61345         (jm_PREREQ): Use it.
61346
61347         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
61348         mach/mach.h fcntl.h.
61349         Check for this function: setlocale.
61350
61351 2002-04-24  Jim Meyering  <meyering@lucent.com>
61352
61353         * lib/gettext.h: New file, from Gettext.
61354         * lib/Makefile.am (INCLUDES): Remove -I../intl.
61355         (libfetish_a_SOURCES): Add gettext.h.
61356
61357 2002-04-16  Jim Meyering  <meyering@lucent.com>
61358
61359         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
61360         ut_pid, ut_id, ut_exit.
61361
61362 2002-04-16  Jim Meyering  <meyering@lucent.com>
61363
61364         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
61365         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
61366         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
61367
61368 2002-04-12  Jim Meyering  <meyering@lucent.com>
61369
61370         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
61371         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
61372         existence of the getmntinfo function.  Needed for Darwin 5.3.
61373
61374         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
61375         This is necessary at least on Darwin 5.3.
61376
61377         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
61378         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
61379         strnlen.o in the library, and that makes some versions of ranlib
61380         object.
61381
61382 2002-04-12  Jim Meyering  <meyering@lucent.com>
61383
61384         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
61385
61386 2002-04-09  Jim Meyering  <meyering@lucent.com>
61387
61388         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
61389         to be more precise.  Rather than saying we're checking whether the
61390         function `works', say what we're testing.
61391         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
61392         Reported by Bruno Haible.
61393
61394 2002-03-10  Jim Meyering  <meyering@lucent.com>
61395
61396         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
61397         Suggestion from Santiago Vila.
61398
61399 2002-03-08  Jim Meyering  <meyering@lucent.com>
61400
61401         * lib/rename.c: Mention that this wrapper is needed also on
61402         mips-dec-ultrix4.4 systems.
61403
61404 2002-03-02  Jim Meyering  <meyering@lucent.com>
61405
61406         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
61407         not HAVE_CLOCK_SETTIME.
61408
61409 2002-02-27  Paul Eggert  <eggert@twinsun.com>
61410
61411         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
61412         Check for clock_settime.
61413
61414 2002-02-27  Paul Eggert  <eggert@twinsun.com>
61415
61416         * lib/nanosleep.h: Rename to....
61417         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
61418
61419         * lib/gettime.c: New file.
61420         * lib/settime.c: New file.
61421         * lib/stime.c: Remove.
61422
61423         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
61424         timespec.h.  Remove nanosleep.h.
61425
61426 2002-02-25  Paul Eggert  <eggert@twinsun.com>
61427
61428         * m4/acl.m4: New file.
61429         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
61430         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
61431
61432 2002-02-25  Paul Eggert  <eggert@twinsun.com>
61433
61434         * lib/acl.c, lib/acl.h: New files.
61435         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
61436
61437 2002-02-24  Jim Meyering  <meyering@lucent.com>
61438
61439         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
61440         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
61441         cause trouble.  Reported by Nelson Beebe.
61442
61443 2002-02-23  Paul Eggert  <eggert@twinsun.com>
61444
61445         * lib/path-concat.c (xpath_concat): Reorder code to pacify
61446         compilers that don't know that xalloc_die never returns.
61447
61448 2002-02-20  Jim Meyering  <meyering@lucent.com>
61449
61450         * lib/getdate.c: Regenerate using bison-1.33.
61451
61452 2002-02-17  Jim Meyering  <meyering@lucent.com>
61453
61454         * config/config.guess (main): Don't use `head -1'; it's no longer
61455         portable. Use `sed 1q' instead.
61456
61457 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
61458
61459         * m4/codeset.m4: Upgrade to gettext-0.11.
61460         * m4/gettext.m4: Upgrade to gettext-0.11.
61461         * m4/glibc21.m4: Upgrade to gettext-0.11.
61462         * m4/iconv.m4: Upgrade to gettext-0.11.
61463         * m4/isc-posix.m4: Upgrade to gettext-0.11.
61464         * m4/lcmessage.m4: Upgrade to gettext-0.11.
61465         * m4/lib-ld.m4: New file, from gettext-0.11.
61466         * m4/lib-link.m4: New file, from gettext-0.11.
61467         * m4/lib-prefix.m4: New file, from gettext-0.11.
61468         * m4/progtest.m4: Upgrade to gettext-0.11.
61469
61470 2002-02-15  Paul Eggert  <eggert@twinsun.com>
61471
61472         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
61473         (jm_PREREQ): Use it.
61474
61475 2002-02-15  Paul Eggert  <eggert@twinsun.com>
61476
61477         * lib/posixver.c, lib/posixver.h: New files.
61478         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
61479
61480 2002-02-02  Paul Eggert  <eggert@twinsun.com>
61481             Bruno Haible  <bruno@clisp.org>
61482
61483         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
61484         (fwrite_success_callback): New declaration.
61485         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
61486         print_unicode_char. Call failure callback instead of error.
61487         (fwrite_success_callback): New function.
61488         (exit_failure_callback): New function.
61489         (fallback_failure_callback): New function.
61490         (print_unicode_char): Call unicode_to_mb.
61491
61492 2002-01-26  Jim Meyering  <meyering@lucent.com>
61493
61494         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
61495         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
61496
61497 2002-01-26  Jim Meyering  <meyering@lucent.com>
61498
61499         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
61500
61501 2002-01-22  Paul Eggert  <eggert@twinsun.com>
61502
61503         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
61504
61505 2002-01-22  Jim Meyering  <meyering@lucent.com>
61506
61507         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
61508         Otherwise, some versions of automake would omit the rule that makes
61509         Makefile from Makefile.in.
61510
61511 2002-01-21  Paul Eggert  <eggert@twinsun.com>
61512
61513         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
61514         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
61515         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
61516         (memcoll): Set errno to zero if there is no error.
61517
61518         * lib/quotearg.c (quotearg_buffer_restyled):
61519         Fix bug with quoting buffers containing NUL when backslashing escapes.
61520         This bug was exposed by the other changes in this patch.
61521         (quotearg_n_options): New arg ARGSIZE.
61522         All callers changed.
61523         (quoting_options_from_style): New function.
61524         (quotearg_n_style): Use it.
61525         (quotearg_n_style_mem): New function.
61526
61527         * lib/quotearg.h (quotearg_n_style_mem): New function.
61528
61529 2002-01-19  Jim Meyering  <meyering@lucent.com>
61530
61531         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
61532         Remove useless quotes: DF_PROG="df".
61533         * m4/strnlen.m4: New file.
61534
61535 2002-01-16  Paul Eggert  <eggert@twinsun.com>
61536
61537         * lib/backupfile.c (ISDIGIT): Comment fix.
61538         * lib/getdate.y (ISDIGIT): Likewise.
61539         * lib/posixtm.c (ISDIGIT, year): Likewise.
61540         * lib/strverscmp.c (ISDIGIT): Likewise.
61541         * lib/userspec.c (ISDIGIT): Likewise.
61542
61543 2002-01-16  Jim Meyering  <meyering@lucent.com>
61544
61545         * lib/getdate.y: Add three semicolons, each just before a closing
61546         brace. Bison (as of version 1.31) no longer papers over that mistake.
61547
61548 2002-01-05  Jim Meyering  <meyering@lucent.com>
61549
61550         * lib/version-etc.c (version_etc_copyright): Update copyright year.
61551
61552 2001-12-19  Paul Eggert  <eggert@twinsun.com>
61553
61554         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
61555         not silently exit merely because the output buffer happens to
61556         have nothing pending.
61557
61558 2001-12-18  Paul Eggert  <eggert@twinsun.com>
61559
61560         See the big note in ../ChangeLog.
61561         * lib/human.c (suffixes): Prefer K to k for 1024.
61562         (generate_suffix_backwards): New function.
61563         (human_readable_inexact): Use it.
61564         * lib/xstrtol.c (__xstrtol): If there is no number but there
61565         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
61566         Accept 'K' as well as 'k'.
61567
61568 2001-12-15  Jim Meyering  <meyering@lucent.com>
61569
61570         * lib/regex.h (__restrict_arr): Update from libc.
61571
61572         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
61573         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
61574         (STREQ): Define.
61575
61576 2001-12-14  Jim Meyering  <meyering@lucent.com>
61577
61578         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
61579         Suggestion from Bruno Haible.
61580
61581 2001-12-10  Jim Meyering  <meyering@lucent.com>
61582
61583         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
61584         xrealloc, Instead, include "xalloc.h".
61585         (initbuffer): Don't cast xmalloc return value to char*.
61586         (readline): Reword comment.
61587         Don't cast xrealloc return value to char*
61588         Return NULL, not 0.
61589
61590 2001-12-09  Jim Meyering  <meyering@lucent.com>
61591
61592         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
61593         about `signed and unsigned type in conditional expression'.
61594         * lib/posixtm.c (posix_time_parse): Likewise.
61595
61596         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
61597
61598         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
61599         to avoid a pedantic warning.
61600
61601         * lib/getstr.c: Don't include assert.h.
61602         (getstr): Remove warning-evoking assertions.
61603         Return -1 if offset parameter is out of bounds.
61604         Change the type of a local from int to size_t.
61605
61606         * lib/strftime.c (my_strftime_localtime_r): Include this function
61607         definition in the `#if ! HAVE_TM_GMTOFF' block.
61608
61609         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
61610         Include xalloc.h instead.
61611
61612 2001-12-02  Jim Meyering  <meyering@lucent.com>
61613
61614         * lib/tempname.c: Don't declare getenv, thus reverting the change of
61615         2001-11-18.  It's no longer necessary, now that stdlib.h is always
61616         included.
61617
61618         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
61619         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
61620
61621 2001-11-30  Akim Demaille  <akim@epita.fr>
61622
61623         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
61624         before being defined.
61625
61626 2001-11-27  Paul Eggert  <eggert@twinsun.com>
61627
61628         * lib/quotearg.h (quotearg_n, quotearg_n_style):
61629         First arg is int, not unsigned.
61630         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
61631         (SIZE_MAX, UINT_MAX): New macros.
61632         (quotearg_n_options): Abort if N is negative.
61633         Avoid overflow check on hosts where size_t is 64 bits and int
61634         is 32 bits, as overflow is impossible there.
61635         Fix off-by-one typo that caused unnecessary reallocation.
61636
61637 2001-11-27  Jim Meyering  <meyering@lucent.com>
61638
61639         * lib/tempname.c: Merge with version from libc.
61640         * lib/regex.c: Likewise.
61641
61642         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
61643         systems for which STDC_HEADERS is 0, it was not included, resulting in
61644         a warning about an integer-to-pointer conversion problem with getenv.
61645         Reported by Volker Borchert.
61646
61647 2001-11-26  Jim Meyering  <meyering@lucent.com>
61648
61649         * lib/gtod.h: Remove file.
61650         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
61651         * lib/gettimeofday.c: Don't include gtod.h.
61652         (GTOD_init): Remove function.
61653         (rpl_gettimeofday): Do its job here instead, rather than aborting.
61654         Suggestion from Volker Borchert.
61655
61656 2001-11-23  Jim Meyering  <meyering@lucent.com>
61657
61658         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
61659         it.
61660         * lib/hash.c (struct hash_table): Define it here instead.
61661
61662 2001-11-22  Jim Meyering  <meyering@lucent.com>
61663
61664         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
61665
61666 2001-11-20  Jim Meyering  <meyering@lucent.com>
61667
61668         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
61669         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
61670
61671 2001-11-19  Jim Meyering  <meyering@lucent.com>
61672
61673         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
61674         directory.  Use "conftestXXXXXX" as the template.
61675         Suggestion from Paul Eggert.
61676
61677         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
61678         immediately, so the test doesn't mistakenly hit the max-open-files
61679         limit.
61680
61681 2001-11-18  Paul Eggert  <eggert@twinsun.com>
61682
61683         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
61684         (TEMPORARIES): New macro.
61685         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
61686         removes an artificial limitation (e.g. HP-UX 10.20, where
61687         TMP_MAX is 17576).
61688
61689 2001-11-18  Jim Meyering  <meyering@lucent.com>
61690
61691         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
61692
61693 2001-11-18  Jim Meyering  <meyering@lucent.com>
61694
61695         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
61696         on SunOS 4.
61697
61698         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
61699         files will be created before anything else.
61700
61701 2001-11-17  Paul Eggert  <eggert@twinsun.com>
61702
61703         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
61704         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
61705
61706 2001-11-17  Jim Meyering  <meyering@lucent.com>
61707
61708         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
61709         Prompted by a report from Bob Proulx.
61710
61711         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
61712         Instead, require UTILS_FUNC_MKSTEMP.
61713
61714 2001-11-17  Jim Meyering  <meyering@lucent.com>
61715
61716         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
61717         Now, that's done as part of AC_FUNC_STRTOD.
61718
61719 2001-11-17  Jim Meyering  <meyering@lucent.com>
61720
61721         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
61722         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
61723         rather than group writable.  Patch by Juan F. Codagnone.
61724
61725         * lib/readtokens.c: Remove explicit declarations of xmalloc and
61726         xrealloc, Instead, include "xalloc.h".
61727
61728         * lib/mountlist.c: Include unlocked-io.h after all system headers.
61729         Remove explicit declarations of xmalloc, xrealloc,
61730         and xstrdup.  Instead, include "xalloc.h".
61731
61732         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
61733         unlocked-io.h.
61734         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
61735         Likewise.
61736         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
61737
61738         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
61739         Reported by Padraig Brady.
61740
61741         * lib/mkstemp.c: #undef mkstemp.
61742         Include config.h.
61743         (rpl_mkstemp): Rename from mkstemp.
61744         Protoize.
61745
61746 2001-11-16  Jim Meyering  <meyering@lucent.com>
61747
61748         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
61749         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
61750         determine the amount of total physical memory, use pstat_getstatic.
61751         HPUX-11 doesn't define _SC_PHYS_PAGES.
61752         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
61753         If sysconf couldn't be used to determine the amount of available
61754         physical memory, use both pstat_getstatic and pstat_getdynamic.
61755         Based on a patch from Bob Proulx.
61756
61757 2001-11-10  Jim Meyering  <meyering@lucent.com>
61758
61759         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
61760         (jm_PREREQ): Use it.
61761
61762 2001-11-09  Jim Meyering  <meyering@lucent.com>
61763
61764         * m4/jm-macros.m4: Require autoconf-2.52f.
61765         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
61766         Use these AC_-prefixed names, not the AM_-prefixed ones.
61767
61768         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
61769
61770 2001-11-05  Jim Meyering  <meyering@lucent.com>
61771
61772         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
61773
61774 2001-11-04  Jim Meyering  <meyering@lucent.com>
61775
61776         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
61777         $DEFS.
61778
61779 2001-11-03  Jim Meyering  <meyering@lucent.com>
61780
61781         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
61782         of AC_DEFUN.
61783
61784         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
61785         know the name of the variable in the macro definition.
61786
61787 2001-11-03  Jim Meyering  <meyering@lucent.com>
61788
61789         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
61790         in argmatch_to_argument call.
61791
61792         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
61793         argument.
61794
61795         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
61796         e.g., a fault due to an attempt to free a NULL pointer.
61797
61798 2001-11-01  Jim Meyering  <meyering@lucent.com>
61799
61800         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
61801         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
61802
61803 2001-11-01  Jim Meyering  <meyering@lucent.com>
61804
61805         * lib/dirfd.c, lib/dirfd.h: New files.
61806         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
61807
61808         * lib/hash.c (hash_print) [TESTING]: Clean up.
61809
61810 2001-10-22  Paul Eggert  <eggert@twinsun.com>
61811
61812         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
61813         to avoid a warning if -Wall.
61814
61815 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
61816
61817         * README: New file
61818         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
61819         (per RMS's instructions, this is now the canonical source)
61820         * lgpl/, gpl/: New directories.
61821
61822 2001-10-21  Paul Eggert  <eggert@twinsun.com>
61823
61824         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
61825
61826 2001-10-21  Jim Meyering  <meyering@lucent.com>
61827
61828         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
61829         this code would end up calling gettext even in packages built
61830         with --disable-nls.
61831         * lib/getopt.c (_): Likewise.
61832         * lib/regex.c (_): Likewise.
61833
61834 2001-10-20  Paul Eggert  <eggert@twinsun.com>
61835
61836         * m4/error.m4 (jm_PREREQ_ERROR):
61837         Do not invoke AC_CHECK_FUNCS with strerror_r, as
61838         AC_FUNC_STRERROR_R does that.
61839         Check for strerror declaration.
61840
61841         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
61842         are supposed to have them these days.
61843         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
61844         Merge changes from latest Autoconf CVS.
61845         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
61846         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
61847         POSIX decided to standardize on the int flavor of strerror_r.
61848
61849 2001-10-20  Paul Eggert  <eggert@twinsun.com>
61850
61851         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
61852         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
61853         Use strerror_r that is only a macro, even if it is not a function.
61854         (strerror): Check for HAVE_DECL_STRERROR before declaring.
61855         (private_strerror): Use prototypes, not old-style function definition.
61856         (print_errno_message): New function.
61857         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
61858         char*-flavored one.
61859         (error_tail, error, error_at_line): Use it.
61860
61861 2001-10-11  Jim Meyering  <meyering@lucent.com>
61862
61863         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
61864         and quote_n (1, ... to avoid clobbering a buffer.
61865
61866 2001-10-05  Jim Meyering  <meyering@lucent.com>
61867
61868         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
61869         hash-pjw.h.
61870         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
61871         * lib/hash-pjw.h: New file.
61872
61873 2001-09-30  Jim Meyering  <meyering@lucent.com>
61874
61875         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
61876         `struct fsstat' has the `f_fstypename' member.
61877         Use that to define FS_TYPE, which is now used to make
61878         the getfsstat link test tighter.
61879
61880 2001-09-30  Jim Meyering  <meyering@lucent.com>
61881
61882         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
61883         Include <sys/ucred.h>, for Apple Darwin.
61884         Include sys/mount.h and sys/fs_types.h only if available.
61885         (FS_TYPE): Define.
61886         (read_filesystem_list): Use FS_TYPE.
61887
61888 2001-09-29  Paul Eggert  <eggert@twinsun.com>
61889
61890         * lib/exclude.c (excluded_filename): 0 -> false, since it's
61891         a boolean context.
61892
61893 2001-09-29  Jim Meyering  <meyering@lucent.com>
61894
61895         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
61896         [one-argument getmntent function]): Include stdio.h before mntent.h.
61897         SunOS 4.1.x needs it for the declaration of `FILE'.
61898         Patch by Volker Borchert.
61899
61900         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
61901         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
61902         sys/fs_types.h, and make the link-test for getfsstat guard #include
61903         directives with appropriate #if HAVE_*_H tests so that we can
61904         detect getfsstat on Apple Darwin1.3.7 systems.
61905         Reported by Nelson Beebe.
61906         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
61907
61908 2001-09-28  Paul Eggert  <eggert@twinsun.com>
61909
61910         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
61911         #defines strtoimax.  Also treat the other strto* functions
61912         like strtoimax.
61913
61914         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
61915         Check for strtoul and strtoumax,
61916         as those declarations are made even in the signed case.
61917         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
61918         Likewise, for strtol and strtoimax.
61919
61920 2001-09-28  Paul Eggert  <eggert@twinsun.com>
61921
61922         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
61923         #defines strtoimax.  Also treat the other strto* functions
61924         like strtoimax.
61925
61926         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
61927         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
61928         (strtoimax, strtoumax): Do not declare if already defined as a macro.
61929
61930 2001-09-26  Jim Meyering  <meyering@lucent.com>
61931
61932         Most macros in unlocked-io.h had the wrong number of arguments.
61933         * lib/gen-uio: New script.
61934         (USE_UNLOCKED_IO): Define to 1 if not already defined.
61935         * lib/unlocked-io.hin: Remove file.
61936         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
61937         rather than trying to embed it here.
61938         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
61939         Reported by Padraig Brady.
61940
61941 2001-09-25  Volker Borchert  <bt@teknon.de>
61942
61943         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
61944         `result'.
61945
61946 2001-09-24  Jim Meyering  <meyering@lucent.com>
61947
61948         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
61949
61950 2001-09-23  Jim Meyering  <meyering@lucent.com>
61951
61952         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
61953         instead of the mere test for existence of mntent.h.  The latter
61954         would get a false-positive on AIX 3.4 systems.
61955         In the outer getmntent if-block, don't die if neither of the getmntent
61956         tests succeeds.  Instead, just fall through and continue with the
61957         remaining tests.
61958
61959 2001-09-23  Jim Meyering  <meyering@lucent.com>
61960
61961         * lib/mountlist.c: Remove useless parentheses in #if directives.
61962         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
61963         the deprecated MOUNTED symbol is no longer defined in mntent.h.
61964
61965 2001-09-22  Jim Meyering  <meyering@lucent.com>
61966
61967         * m4/gettext.m4: New file.  From gettext.
61968         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
61969         * m4/progtest.m4: Likewise
61970         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
61971         * m4/glibc21.m4: Likewise.
61972
61973         * m4/libintl.m4: Remove.  No longer used.
61974
61975 2001-09-22  Jim Meyering  <meyering@lucent.com>
61976
61977         * lib/localcharset.c: Update from latest gettext.
61978         * lib/config.charset: Likewise.
61979
61980 2001-09-20  Jim Meyering  <meyering@lucent.com>
61981
61982         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
61983         strtoimax.
61984         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
61985         strtoumax.
61986
61987 2001-09-20  Jim Meyering  <meyering@lucent.com>
61988
61989         * lib/xstrtol.c (strtoimax): Guard declaration with
61990         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
61991         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
61992         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
61993         (strtoumax): Likewise, for completeness (it wasn't necessary).
61994
61995 2001-09-17  Paul Eggert  <eggert@twinsun.com>
61996
61997         * lib/strtoimax.c (HAVE_LONG_LONG):
61998         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
61999         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
62000         to work around bug in IBM C compiler.
62001
62002 2001-09-17  Jim Meyering  <meyering@lucent.com>
62003
62004         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
62005         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
62006         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
62007         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
62008         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
62009         whenever the right hand side need not be expanded by the shell.
62010
62011 2001-09-16  Paul Eggert  <eggert@twinsun.com>
62012
62013         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
62014         library.  It's not correct, as some older glibcs are buggy.
62015         fnmatch wasn't fixed until glibc 2.2.
62016
62017         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
62018         special shell magic here.
62019
62020 2001-09-16  Jim Meyering  <meyering@lucent.com>
62021
62022         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
62023         * m4/jm-macros.m4: Require it.
62024
62025 2001-09-16  Jim Meyering  <meyering@lucent.com>
62026
62027         * lib/mkdir.c: New file.
62028
62029 2001-09-15  Jim Meyering  <meyering@lucent.com>
62030
62031         * m4/jm-macros.m4: Check for help2man.
62032
62033 2001-09-11  Jim Meyering  <meyering@lucent.com>
62034
62035         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
62036         The body, by Paul Eggert, was moved here from configure.in.
62037         * m4/jm-macros.m4: Require UTILS_HOST_OS.
62038
62039 2001-09-04  Paul Eggert  <eggert@twinsun.com>
62040
62041         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
62042         (jm_PREREQ): Use it.
62043
62044 2001-09-04  Paul Eggert  <eggert@twinsun.com>
62045
62046         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
62047         Use ssize_t, not int, to store result of readlink.
62048         Check for ssize_t overflow as well as size_t overflow,
62049         as POSIX says the result of readlink is implementation-defined
62050         when ssize_t overflows.
62051         Remove unnecessary cast to char*.
62052         Use free+malloc instead of realloc, as the storage doesn't need
62053         to be preserved and it's clearer and can be more efficient that way.
62054         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
62055         * lib/xreadlink.h (xreadlink): Update prototype.
62056
62057 2001-09-04  Paul Eggert  <eggert@twinsun.com>
62058
62059         * lib/xgetcwd.c: Revert some of the previous change; intead,
62060         fix the HAVE_GETCWD_NULL code to behave more like the
62061         !HAVE_GETCWD_NULL code used to.
62062
62063         Include "xalloc.h".
62064         (xgetcwd): Do not return NULL when memory is exhausted; instead,
62065         invoke xalloc_die.
62066
62067 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62068
62069         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
62070         sys/param.h, as pathmax.h includes them.
62071
62072 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62073
62074         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
62075         (jm_PREREQ_XGETCWD): New macro.
62076
62077         * m4/getcwd.m4: New file.
62078
62079 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62080
62081         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
62082         like the HAVE_GETCWD_NULL code.
62083         Include pathmax.h if not HAVE_GETCWD.
62084         Do not include xalloc.h.
62085         (INITIAL_BUFFER_SIZE): New symbol.
62086         Do not use xmalloc / xrealloc, since the caller is responsible for
62087         handling errors.  Preserve errno around `free' during failure.
62088         Do not overrun buffer when using getwd.
62089
62090 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62091
62092         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
62093         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
62094         getcwd (NULL, 0).
62095
62096 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62097
62098         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
62099         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
62100         spotted by Jim Meyering.
62101
62102 2001-09-03  Jim Meyering  <meyering@lucent.com>
62103
62104         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
62105         failure.
62106
62107 2001-09-02  Jim Meyering  <meyering@lucent.com>
62108
62109         * lib/error.c: Update from GNU libc.
62110
62111 2001-09-01  Jim Meyering  <meyering@lucent.com>
62112
62113         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
62114         Used by df.
62115
62116 2001-09-01  Jim Meyering  <meyering@lucent.com>
62117
62118         * lib/xreadlink.c: New file.
62119         * lib/xreadlink.h: New file.
62120         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
62121         xreadlink.h.
62122
62123         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
62124         doesn't conflict with sparc Solaris 7's definition in
62125         /usr/include/sys/int_types.h.
62126
62127         * lib/exclude.c: Use `""', not `<>' to #include non-system header
62128         files.
62129         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
62130         and strncasecmp as r-values.  Unixware didn't have declarations.
62131
62132 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62133
62134         * lib/xstrtol.h: Add copyright notice.
62135         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
62136         LONGINT_INVALID_SUFFIX_CHAR.
62137
62138 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62139
62140         * lib/xstrtol.c (strtoimax): New decl.
62141
62142 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62143
62144         * lib/xgetcwd.c: Don't include pathmax.h.
62145         Include stdlib.h and unistd.h if available.
62146         Include xalloc.h.
62147         (xmalloc, xstrdup, free): Remove decls.
62148         (xgetcwd): Don't assume sizes fit in unsigned.
62149         Check for overflow when computing sizes.
62150         Simplify reallocation code.
62151
62152 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62153
62154         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
62155         a directory's st_size can have an arbitrary value, so the old
62156         usage could waste an arbitrary amount of memory.  All uses
62157         changed.
62158         * lib/savedir.h: Update prototype.
62159
62160 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62161
62162         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
62163
62164         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
62165         old strtoimax.c.
62166
62167         Also, make the following further changes to make this file's
62168         configuration more similar to that of strtol.c:
62169         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
62170         (strtoumax, uintmax_t, strtoull, strtol): Remove.
62171         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
62172         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
62173         changed to signed values.
62174
62175         And make the following changes as well:
62176         Fix copyright notice, as 1999 was missing.
62177         (verify): New macro.
62178         (strtoimax): Check sizes at compile-time, not run-time.
62179         Prefer strtol to strtoll if both work.
62180         (main): Remove; it was not that useful and was a pain to maintain.
62181
62182         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
62183
62184 2001-08-31  Jim Meyering  <meyering@lucent.com>
62185
62186         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
62187         Use an initial, malloc'd, buffer of length 128 rather than
62188         a statically allocated one of length 1024.
62189
62190 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62191
62192         Simplify code, partly by assuming autoconf 2.52 semantics.
62193
62194         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
62195
62196         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
62197         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
62198         All uses removed.
62199         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
62200         Move AC_REQUIRE to next-to-top level, to avoid confusion.
62201         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
62202         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
62203         jm_AC_HEADER_INTTYPES_H.
62204         * m4/jm-macros.m4 (jm_MACROS): Likewise.
62205
62206         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
62207
62208         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
62209         Quote first arg of AC_DEFUN.
62210         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
62211         since they are needed to parse the include file even if we need
62212         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
62213         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
62214         but with opposite signedness.
62215
62216 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62217
62218         Merge 'exclude' changes from tar 1.13.22.
62219         This fixes one or two unlikely storage allocation overflow bugs,
62220         but doesn't change user-visible behavior otherwise.
62221
62222 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62223
62224         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
62225         (jm_PREREQ_EXCLUDE): New macro.
62226
62227 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62228
62229         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
62230         tm to be declared.
62231
62232 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62233
62234         * lib/hash.c: Remove '2001' from copyright notice.
62235
62236 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62237
62238         * lib/full-write.h: New file.
62239         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
62240         * lib/full-write.c: Correct credits, as cccp.c no longer
62241         exists and anyway it was so heavily changed from the old cccp
62242         code as to be unrecognizable.  Include full-write.h.
62243         (full_write) Return size_t, with short writes meaning failure.
62244         All callers changed.  This fixes a bug with large buffers
62245         on 64-bit hosts.
62246         * lib/utime.c: Include full-write.h.
62247
62248 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62249
62250         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
62251         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
62252         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
62253         Include if available.
62254         (<xalloc.h>): Include
62255         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
62256         (verify): New macro.  Use it to verify that EXCLUDE macros do not
62257         collide with FNM macros.
62258         (struct patopts): New struct.
62259         (struct exclude): Use it, as exclude patterns now come with options.
62260         (new_exclude): Support above changes.
62261         (new_exclude, add_exclude_file):
62262         Initial size must now be a power of two to simplify overflow checking.
62263         (free_exclude, fnmatch_no_wildcards): New function.
62264         (excluded_filename): No longer requires options arg, as the options
62265         are determined by add_exclude.  Now returns bool, not int.
62266         (excluded_filename, add_exclude):
62267         Add support for the fancy new exclusion options.
62268         (add_exclude, add_exclude_file): Now takes int options arg.
62269         Check for arithmetic overflow when computing sizes.
62270         (add_exclude_file): xrealloc might modify errno, so don't
62271         realloc until after errno might be used.
62272
62273         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
62274         New macros.
62275         (free_exclude): New decl.
62276         (add_exclude, add_exclude_file): Now takes int options arg.
62277         (excluded_filename): No longer requires options arg, as the options
62278         are determined by add_exclude.  Now returns bool, not int.
62279
62280 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62281
62282         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
62283
62284 2001-08-27  Jim Meyering  <meyering@lucent.com>
62285
62286         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
62287
62288         * lib/version-etc.c (N_): Remove definition.
62289         Revert most of last change.
62290         Instead, simply don't mark the `Copyright...' string for translation.
62291         Based on advice from Paul Eggert.
62292
62293         * lib/strtoxmax.c: Tweak comment.
62294
62295 2001-08-26  Jim Meyering  <meyering@lucent.com>
62296
62297         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
62298
62299         * m4/xstrtoimax.m4: New file.
62300         * m4/xstrtoumax.m4: Add comments explaining why we
62301         AC_REPLACE_FUNCS(strtol).
62302
62303 2001-08-26  Jim Meyering  <meyering@lucent.com>
62304
62305         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
62306         of copyright with `%s' so translators don't get an untranslated
62307         message in 2002.
62308         (COPYRIGHT_YEAR): Define.
62309         (version_etc): Use fprintf rather than fputs.
62310         Suggestion from Ulrich Drepper.
62311
62312         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
62313
62314         * lib/strtoll.c: New file, from GNU libc.
62315         * lib/xstrtoimax.c: New file.
62316
62317         * lib/xstrtol.h: Add xstrtoimax.
62318         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
62319         * lib/strtoimax.c: New file.  Likewise, but first define
62320         STRTOUXMAX_SIGNED.
62321
62322         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
62323         ...
62324         * lib/strtoxmax.c: ... then renamed to this.
62325
62326 2001-08-18  Paul Eggert  <eggert@twinsun.com>
62327
62328         * m4/inttypes.m4: Add AC_PREREQ(2.13).
62329         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
62330         (jm_AC_TYPE_INTMAX_T): New macro.
62331         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
62332
62333         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
62334
62335         * m4/longlong.m4: Renamed from ulonglong.m4.
62336         * m4/inttypes.m4: Renamed from inttypes_h.m4.
62337         * m4/uintmax_t.m4: Removed.
62338
62339 2001-08-13  Paul Eggert  <eggert@twinsun.com>
62340
62341         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
62342         Port to Solaris 8, where 'sed' requires a space after the 'r'
62343         command, and where sh dislikes "$/".  Clean up the spacing a bit.
62344         Redirect output to $tmp just once.
62345
62346 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
62347
62348         * lib/addext.c (<errno.h>): Include.
62349         (errno): Declare if not defined.
62350         (addext): Work correctly when pathconf returns -1 and leaves
62351         errno alone because there is no limit.  Also, work even if
62352         pathconf returns a value greater than SIZE_MAX.
62353
62354 2001-08-12  Jim Meyering  <meyering@lucent.com>
62355
62356         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
62357         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
62358         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
62359         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
62360         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
62361         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
62362         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
62363         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
62364         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
62365         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
62366         utime.m4, utimes.m4, xstrtoumax.m4:
62367         Quote the first argument in each use of AC_DEFUN.
62368
62369 2001-08-12  Jim Meyering  <meyering@lucent.com>
62370
62371         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
62372         Simply `return getcwd (NULL, 0);'.
62373         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
62374         Use 1300 as initial value for length, not PATH_MAX.
62375
62376         * lib/pathmax.h: Clean up cpp syntax.
62377
62378 2001-08-12  Jim Meyering  <meyering@lucent.com>
62379
62380         * lib/gettimeofday.c: New file.
62381         * lib/gtod.h: New file.
62382         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
62383
62384 2001-08-05  Jim Meyering  <meyering@lucent.com>
62385
62386         * m4/jm-macros.m4: Require autoconf-2.52.
62387
62388 2001-08-04  Jim Meyering  <meyering@lucent.com>
62389
62390         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
62391         stmt, to get in sync with glibc.
62392
62393 2001-08-03  Paul Eggert  <eggert@twinsun.com>
62394
62395         The following changes are from gettext 0.10.39 as maintained by
62396         Bruno Haible.
62397
62398         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
62399         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
62400         with inverted sense.  All uses changed.
62401
62402         * lib/mbswidth.c: Don't include <limits.h>.
62403         Include <stdlib.h> and <string.h> unconditionally.
62404         (iswcntrl, mbsinit, ISCNTRL): New macros.
62405         (mbsnwidth): Use K&R style function declarations.
62406         Don't bother checking for MB_LEN_MAX == 1, since the compiler
62407         can optimize it when MB_CUR_MAX == 1.
62408         The width of control characters is zero, not 1.
62409
62410 2001-08-03  Paul Eggert  <eggert@twinsun.com>
62411
62412         The following changes are from gettext 0.10.39 as maintained by
62413         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
62414
62415         * m4/codeset.m4: Upgrade to serial AM1.
62416         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
62417         all uses changed.  Quote first arg of AC_DEFUN.
62418         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
62419
62420         * m4/iconv.m4: Upgrade to serial AM2.
62421         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
62422         Add --with-libconv-prefix.
62423         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
62424         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
62425         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
62426         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
62427         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
62428
62429         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
62430         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
62431         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
62432         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
62433         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
62434         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
62435         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
62436         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
62437         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
62438
62439         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
62440         string.h any more.
62441
62442         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
62443         not the default value.
62444
62445         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
62446         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
62447         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
62448         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
62449         Also check for iswcntrl, used for wcwidth fallback.
62450         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
62451         to Autoconf 2.13.
62452
62453 2001-08-03  Jim Meyering  <meyering@lucent.com>
62454
62455         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
62456         as it was in the original.  Reported by Paul Eggert.
62457
62458 2001-07-16  Jim Meyering  <meyering@lucent.com>
62459
62460         * m4/gettimeofday.m4: New file.
62461         Prompted by a report from Bernhard Baehr.
62462
62463 2001-07-15  Jim Meyering  <meyering@lucent.com>
62464
62465         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
62466         stuff. Now it's in ../Makefile.cfg.
62467
62468 2001-07-15  Jim Meyering  <meyering@lucent.com>
62469
62470         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
62471         (BUILT_SOURCES): Add unlocked-io.h.
62472         (io_functions): Define.
62473         (unlocked-io.h): New rule.
62474         (DISTCLEANFILES): Add unlocked-io.h.
62475         (all-local): Depend on unlocked-io.h, to ensure it is created.
62476
62477         * lib/unlocked-io.hin: New file
62478
62479         * lib/regex.c: Update from glibc.
62480
62481 2001-07-05  Jim Meyering  <meyering@lucent.com>
62482
62483         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
62484         recommendation.
62485         (libfetish_a_SOURCES): Put all .h files here instead.
62486         Remove a thus-exposed (better checks in automake) duplicate and
62487         two unnecessary .h files.
62488
62489 2001-07-04  Jim Meyering  <meyering@lucent.com>
62490
62491         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
62492         that generates jm-glibc-io.m4 so that it doesn't trigger any make
62493         distcheck failure.
62494
62495 2001-07-02  Jim Meyering  <meyering@lucent.com>
62496
62497         The following changes were prompted by suggestions from Bruno Haible.
62498
62499         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
62500         is now generated.
62501         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
62502         definition of EXTRA_DIST.
62503         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
62504         ensure that the generated file is created/updated whenever the list
62505         of $(unlocked_functions) is changed.
62506         (jm-glibc-io.m4): New rule.
62507         (unlocked-io.h): New rule -- currently unused.
62508
62509 2001-06-24  Jim Meyering  <meyering@lucent.com>
62510
62511         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
62512         unmatched right bracket, rather than kludging it with an extra,
62513         falsely-matching quote in a comment.  Patch by Akim Demaille.
62514
62515 2001-06-11  Jim Meyering  <meyering@lucent.com>
62516
62517         * lib/regex.c: Update from GNU libc.
62518
62519 2001-05-27  Jim Meyering  <meyering@lucent.com>
62520
62521         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
62522         Check for ut_type in struct utmp.
62523
62524 2001-05-27  Jim Meyering  <meyering@lucent.com>
62525
62526         * lib/readutmp.h (UT_TYPE): Define.
62527
62528 2001-05-24  Jim Meyering  <meyering@lucent.com>
62529
62530         * lib/argmatch.c: Include "quote.h".
62531         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
62532         quote function.  Reported by Göran Uddeborg.
62533
62534 2001-05-22  Jim Meyering  <meyering@lucent.com>
62535
62536         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
62537         now that we use the package-supplied version unconditionally.
62538         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
62539
62540 2001-05-21  Jim Meyering  <meyering@lucent.com>
62541
62542         * m4/regex.m4: Change a couple backticks to single quotes to avoid
62543         shell syntax errors.
62544
62545 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
62546
62547         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
62548
62549 2001-05-20  Paul Eggert  <eggert@twinsun.com>
62550
62551         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
62552         Don't bother to check library strftime, since
62553         we'll be using our own my_strftime function anyway.
62554         Define my_strftime instead of strftime.
62555
62556 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
62557
62558         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
62559         which is not yet declared.
62560
62561 2001-05-15  Jim Meyering  <meyering@lucent.com>
62562
62563         * m4/regex.m4: Use proper quoting so brackets appear in the test
62564         program.
62565         Reported by, and with help from, Bruno Haible.
62566
62567 2001-05-13  Jim Meyering  <meyering@lucent.com>
62568
62569         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
62570         undefined.
62571
62572 2001-05-11  Paul Eggert  <eggert@twinsun.com>
62573
62574         dirname code cleanup.  base_name now behaves more compatibly
62575         with POSIX basename when given file names that have trailing
62576         slashes, and similarly for dir_name.  Add new primitives
62577         base_len and dir_len.  Put the directory-name-related decls
62578         into dirname.h.
62579
62580         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
62581         * lib/backupfile.c (base_name): Likewise.
62582         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
62583         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
62584         * lib/makepath.c (strip_trailing_slashes): Likewise.
62585         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
62586         ISSLASH): Likewise.
62587         * lib/rename.c (strip_trailing_slashes): Likewise.
62588         * lib/same.c (base_name): Likewise.
62589         * lib/stripslash.c (ISSLASH): Likewise.
62590
62591         * lib/addext.c: Include <dirname.h> after size_t is defined.
62592         * lib/backupfile.c: Likewise.
62593
62594         * lib/addext.c (addext): Use base_len to trim redundant
62595         trailing slashes instead of doing it ourselves.
62596         But do not trim the last slash if it is not redundant.
62597
62598         * lib/backupfile.c (find_backup_file_name,
62599         max_backup_version): Use base_len instead of rolling it ourselves.
62600         Handle the case of "" and (on DOS) "C:" correctly.
62601
62602         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
62603         needed. Include <string.h>, <dirname.h>.
62604         (base_name): Allow file names ending in slashes, other than names
62605         that are all slashes.  In this case, return the basename followed
62606         by the slashes.  This is more general, and can be used in places
62607         where the original base_name purposely had an assertion failure.
62608         (base_len): New function.
62609
62610         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
62611         Do not include <assert.h>; no longer needed.
62612         Include xalloc.h.
62613         (memrchr): Remove decl.
62614         (dir_name_r): Remove.
62615         (dir_len): Renamed from dirlen.  All callers changed.
62616         Rewrite in terms of base_name, for simplicity and consistency.
62617         (dir_name): Never return NULL.  All callers changed.
62618         Do not include <stdlib.h> in test program; no longer needed.
62619         return 0; is fine for test program.
62620
62621         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
62622         New macros.
62623         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
62624
62625         * lib/path-concat.c (path_concat): Use base_len to compute
62626         base length, not strlen; this means we cannot rely on memcpy
62627         to null-terminate.
62628
62629         * lib/same.c (STREQ): Remove.
62630         (same_name): Handle the case where the basename ends in trailing '/'.
62631
62632         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
62633         a slash was stripped.  Do not strip the last slash after a
62634         file system prefix.
62635
62636 2001-05-11  Paul Eggert  <eggert@twinsun.com>
62637
62638         * lib/Makefile.am (libfetish_a_SOURCES):
62639         Add strftime.c, since we now compile it on all hosts.
62640
62641         * lib/strftime.c (my_strftime):
62642         Define to nstrftime if emacs, but only if my_strftime is not defined.
62643         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
62644         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
62645         Add one more extra argument: a nanoseconds value.
62646         All uses changed.
62647         (ns): New macro.
62648         (my_strftime function): Add %N format.
62649         (emacs_strftimeu): Renamed from emacs_strftime,
62650         with extra ut argument.
62651
62652 2001-05-09  Paul Eggert  <eggert@twinsun.com>
62653
62654         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
62655
62656 2001-04-21  Jim Meyering  <meyering@lucent.com>
62657
62658         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
62659         doesn't interfere.
62660
62661 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
62662
62663         * m4/ftruncate.m4: Check for chsize.
62664         Link with ftruncate.o unconditionally if ftruncate is missing.
62665         This was required when cross-compiling to i586-mingw32msvc.
62666
62667 2001-04-08  Jim Meyering  <meyering@lucent.com>
62668
62669         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
62670         recomputed; that's necessary when the offset spans a DST transition.
62671         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
62672
62673 2001-04-02  Jim Meyering  <meyering@lucent.com>
62674
62675         * lib/regex.h, regex.c: Update from GNU libc.
62676
62677 2001-03-24  Jim Meyering  <meyering@lucent.com>
62678
62679         * m4/jm-macros.m4: Require autoconf-2.49d.
62680
62681 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
62682
62683         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
62684
62685 2001-03-19  Paul Eggert  <eggert@twinsun.com>
62686
62687         * lib/version-etc.c (version_etc_copyright): Update to 2001.
62688
62689 2001-03-17  Jim Meyering  <meyering@lucent.com>
62690
62691         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
62692         now that the version in autoconf is equivalent.
62693         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
62694
62695         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
62696         Suggestion from Akim Demaille.
62697
62698         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
62699         (jm_PREREQ_TEMPNAME): New function.
62700
62701 2001-03-16  Paul Eggert  <eggert@twinsun.com>
62702
62703         * lib/tempname.c (uint64_t): Define to uintmax_t if
62704         not defined, and if UINT64_MAX is not defined.
62705         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
62706         Reported by John David Anglin.
62707
62708 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
62709
62710         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
62711         resolve alias if codeset is empty.
62712         * lib/config.charset (BeOS): Use wildcard syntax.
62713
62714 2001-03-13  Jim Meyering  <meyering@lucent.com>
62715
62716         * lib/path-concat.c (path_concat)
62717         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
62718         concatenating e.g., `C:' and `foo'.
62719         From Bruno Haible.
62720
62721 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
62722
62723         * lib/localcharset.c (locale_charset): Don't use
62724         setlocale(LC_CTYPE,NULL). Don't return NULL.
62725         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
62726
62727 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
62728
62729         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
62730         support for DOS/DJGPP.
62731
62732 2001-03-01  Paul Eggert  <eggert@twinsun.com>
62733
62734         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
62735         lacks mkstemp.  Compile our own tempname.c if we compile our own
62736         mkstemp.c, as mkstemp relies on tempname.
62737
62738 2001-03-01  Jim Meyering  <meyering@lucent.com>
62739
62740         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
62741         AH_VERBATIM really does output its argument verbatim.
62742
62743 2001-02-28  Paul Eggert  <eggert@twinsun.com>
62744
62745         * lib/Makefile.am (libfetish_a_SOURCES):
62746         Add dup-safer.c, fopen-safer.c.
62747         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
62748
62749         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
62750         * lib/unistd-safer.h: New files.
62751
62752 2001-02-25  Paul Eggert  <eggert@twinsun.com>
62753
62754         The mkstemp replacement is taken from glibc 2.2.2, with some
62755         portability fixes for use outside glibc, as follows:
62756
62757         * lib/tempname.c (struct_stat64): New macro.
62758         (direxists, __gen_tempname): Use it.
62759         This avoids a portability problem with Solaris 8.
62760
62761         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
62762         (<stddef.h>, <stdint.h>, <string.h>):
62763         Include only if STDC_HEADERS || _LIBC.
62764         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
62765         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
62766         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
62767         (__set_errno): Define this macro if <errno.h> doesn't.
62768         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
62769         Define these macros if <stdio.h> doesn't.
62770         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
62771         Define these macros if <sys/stat.h>
62772         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
62773         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
62774         __xstat64): Define if not _LIBC.
62775         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
62776         (__gen_tempname): Invoke gettimeofday only if
62777         HAVE_GETTIMEOFDAY || _LIBC;
62778         otherwise, fall back on plain "time".
62779         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
62780
62781         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
62782
62783         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
62784
62785 2001-02-18  Paul Eggert  <eggert@twinsun.com>
62786
62787         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
62788
62789 2001-02-17  Paul Eggert  <eggert@twinsun.com>
62790
62791         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
62792         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
62793         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
62794         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
62795
62796 2001-02-17  Paul Eggert  <eggert@twinsun.com>
62797
62798         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
62799         Remove workaround macros for hosts that have mbrtowc but not
62800         mbstate_t, as we now insist on proper declarations for both
62801         before using mbrtowc.
62802
62803 2001-02-17  Jim Meyering  <meyering@lucent.com>
62804
62805         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
62806         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
62807         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
62808         UnixWare 7.1.1.
62809
62810         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
62811         rather than AC_CACHE_VAL.
62812
62813 2001-02-17  Jim Meyering  <meyering@lucent.com>
62814
62815         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
62816         around included file name.
62817
62818         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
62819
62820         * lib/strftime.c: Update from GNU libc (the only changes were to
62821         comments).
62822
62823 2001-02-17  Jim Meyering  <meyering@lucent.com>
62824
62825         * lib/regex.c: Update from libc.
62826
62827 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
62828
62829         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
62830         clash.
62831
62832 2001-02-16  Paul Eggert  <eggert@twinsun.com>
62833
62834         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
62835         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
62836         Reported by Mark Hounschell via Paul Eggert.
62837
62838 2001-02-07  Jim Meyering  <meyering@lucent.com>
62839
62840         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
62841
62842 2001-02-05  Jim Meyering  <meyering@lucent.com>
62843
62844         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
62845         it includes the patch required for `large file' support with at least
62846         HP-UX's 10.20 /bin/cc.
62847
62848 2001-02-03  Jim Meyering  <meyering@lucent.com>
62849
62850         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
62851         AS_IF, now that it works once again (mysteriously).
62852         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
62853
62854 2001-01-30  Jim Meyering  <meyering@lucent.com>
62855
62856         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
62857         * m4/chown.m4: Rename conftestchown to conftest.chown.
62858         * m4/rename.m4: s/conftestdir/conftest.d1/ and
62859         s/conftestdir2/conftest.d2/.
62860         * m4/utimes.m4: s/conftestdata/conftest.data/
62861         Inspired by Pavel Roskin's change in autoconf.
62862
62863 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
62864
62865         * lib/config.charset: Update for FreeBSD 4.2.
62866
62867 2001-01-27  Jim Meyering  <meyering@lucent.com>
62868
62869         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
62870         a use of AS_IF.
62871         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
62872
62873 2001-01-26  Jim Meyering  <meyering@lucent.com>
62874
62875         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
62876         quotearg.c includes it.
62877
62878 2001-01-26  Jim Meyering  <meyering@lucent.com>
62879
62880         * lib/quotearg.c: Include stddef.h.
62881         * lib/quote.c: Include stddef.h.
62882         Reported by Axel Kittenberger.
62883
62884         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
62885         line in double quotes so that it evokes a better diagnostic.
62886         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
62887         Reported by Axel Kittenberger.
62888
62889 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
62890
62891         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
62892         as if it was a `charset'.
62893
62894 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
62895
62896         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
62897         has const.
62898
62899 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
62900
62901         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
62902         to avoid a warning.  Add back 'const' to inptr.
62903
62904 2001-01-20  Jim Meyering  <meyering@lucent.com>
62905
62906         Be sure that headers are checked before used in code compiled
62907         for the type checks.
62908         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
62909         In place of that, invoke jm_CHECK_ALL_TYPES.
62910         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
62911         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
62912         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
62913         The check for ssize_t was mistakenly run before the test for unistd.h.
62914
62915         The configure-time check for stdbool.h was missing.
62916         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
62917         (jm_PREREQ_HASH): New function.
62918
62919 2001-01-17  Jim Meyering  <meyering@lucent.com>
62920
62921         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
62922         for autoconf-2.49c.
62923         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
62924
62925 2001-01-16  Jim Meyering  <meyering@lucent.com>
62926
62927         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
62928         From Bruno Haible.
62929
62930 2001-01-14  Jim Meyering  <meyering@lucent.com>
62931
62932         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
62933         foo and bar.  Create conftestdir/ in the script, not in the C code.
62934         Remove directories in the script, not in the C code.
62935         Remove conftestdir{,2} before trying to create the directory.
62936         Make the entire configure script fail if the mkdir fails.
62937
62938 2001-01-14  Jim Meyering  <meyering@lucent.com>
62939
62940         * lib/rename.c: New file.  From Volker Borchert.
62941         Include stdlib.h, string.h or strings.h, and xalloc.h.
62942         Use strip_trailing_slashes rather than open-coding it.
62943
62944 2001-01-03  Paul Eggert  <eggert@twinsun.com>
62945
62946         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
62947
62948 2001-01-03  Jim Meyering  <meyering@lucent.com>
62949
62950         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
62951         of local `inptr' to avoid warning with some system declarations of
62952         iconv.
62953
62954 2001-01-02  Volker Borchert  <bt@teknon.de>
62955
62956         * m4/rename.m4: New file.
62957         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
62958
62959 2001-01-01  Jim Meyering  <meyering@lucent.com>
62960
62961         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
62962         even on systems with utmpx.h.  It's necessary for the declaration of
62963         utmp's ut_user member.  Reported by Andreas Jaeger.
62964
62965         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
62966         available. They are required for the declarations of getgrgid and
62967         getpwuid resp.
62968         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
62969         Reported by Andreas Jaeger.
62970
62971 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
62972
62973         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
62974         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
62975         so `make install' also works in VPATH builds.
62976
62977 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
62978
62979         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
62980         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
62981         can be used in subdirectories.
62982
62983 2000-12-29  Paul Eggert  <eggert@twinsun.com>
62984
62985         * lib/modechange.c: Do not assume that mode_t uses the
62986         traditional octal encoding.  E.g. "chmod 1 FOO" should set
62987         the other-execute bit of FOO even if S_IXOTH != 1.
62988
62989         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
62990         WOTH, XOTH, ALLM): New macros.
62991         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
62992          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
62993         Use them.
62994         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
62995         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
62996         (mode_compile):
62997         No need to use uintmax_t; unsigned long is long enough.
62998         Don't bother to get suffix since we don't use it.
62999
63000 2000-12-26  Jim Meyering  <meyering@lucent.com>
63001
63002         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
63003         better with autoheader.
63004
63005 2000-12-24  Jim Meyering  <meyering@lucent.com>
63006
63007         * lib/hash.c (is_prime): Return explicit boolean values.
63008         (hash_get_first): Return NULL to appease Irix5.6's 89.
63009         Reported by Nelson Beebe.
63010
63011 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
63012
63013         * lib/localcharset.c (locale_charset): Add support for Win32.
63014
63015 2000-12-18  Paul Eggert  <eggert@twinsun.com>
63016
63017         * lib/physmem.h, lib/physmem.c: New files.
63018
63019         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
63020         (noinst_HEADERS): Add physmem.h.
63021
63022         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
63023         't' for compatibility with Solaris 8 sort.
63024
63025 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
63026
63027         * lib/config.charset: Add support for BeOS.
63028
63029 2000-12-17  Jim Meyering  <meyering@lucent.com>
63030
63031         * m4/dos.m4 (jm_AC_DOS): New file and macro.
63032         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
63033
63034 2000-12-16  Jim Meyering  <meyering@lucent.com>
63035
63036         This bug had a serious impact on chown: `chown N:M FILE' (for integer
63037         N and M) would have treated it like `chown N:N FILE'.
63038
63039         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
63040
63041 2000-12-16  Jim Meyering  <meyering@lucent.com>
63042
63043         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
63044         SHELLS_FILE to a file name that's useful on djgpp systems.
63045         Include stdlib.h.
63046         (ADDITIONAL_DEFAULT_SHELLS): Define.
63047         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
63048         Based mostly on a patch from Prashant TR.
63049
63050 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
63051
63052         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
63053         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
63054         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
63055
63056 2000-12-08  Andreas Schwab  <schwab@suse.de>
63057
63058         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
63059         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
63060
63061 2000-12-07  Jim Meyering  <meyering@lucent.com>
63062
63063         * lib/stripslash.c (ISSLASH): Define.
63064         (strip_trailing_slashes): Use ISSLASH rather than comparing against
63065         `/'.
63066         From Prashant TR.
63067
63068         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
63069         (dir_name_r): Declare this function as static.
63070         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
63071         manifest itself on a name containing a mix of slashes and
63072         backslashes.
63073         Make this function work with names starting with a DOS-style
63074         drive letter and colon prefix.
63075         (dir_name): Append `.' if necessary.
63076         Based mostly on patches from Prashant TR and Eli Zaretskii.
63077
63078         * lib/dirname.h (dir_name_r): Remove prototype.
63079
63080 2000-12-06  Paul Eggert  <eggert@twinsun.com>
63081
63082         * m4/off_t-format.m4: Remove this file.
63083         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
63084
63085 2000-12-06  Jim Meyering  <meyering@lucent.com>
63086
63087         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
63088         replacement strtoull, we may well need the replacement strtoul, too.
63089         Check for declarations of strtoul and strtoull.
63090         Check for strtol.  Mainly as a cue to cause automake to include
63091         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
63092         Check for limits.h -- strtol.c needs it.
63093
63094 2000-12-05  Jim Meyering  <meyering@lucent.com>
63095
63096         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
63097
63098 2000-12-04  Jim Meyering  <meyering@lucent.com>
63099
63100         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
63101         Also include memory.h, stdlib.h, unistd.h if appropriate.
63102         Reported by Andreas Jaeger (conflicting declaration of malloc).
63103
63104 2000-12-02  Jim Meyering  <meyering@lucent.com>
63105
63106         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
63107         * m4/jm-macros.m4 (jm_MACROS): require it.
63108
63109 2000-12-02  Jim Meyering  <meyering@lucent.com>
63110
63111         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
63112
63113 2000-12-01  Paul Eggert  <eggert@twinsun.com>
63114
63115         * lib/memrchr.c: Include <config.h> before any system include file.
63116
63117 2000-11-30  Jim Meyering  <meyering@lucent.com>
63118
63119         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
63120
63121 2000-11-30  Jim Meyering  <meyering@lucent.com>
63122
63123         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
63124
63125 2000-11-29  Paul Eggert  <eggert@twinsun.com>
63126
63127         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
63128
63129 2000-11-26  Jim Meyering  <meyering@lucent.com>
63130
63131         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
63132
63133 2000-11-22  Paul Eggert  <eggert@twinsun.com>
63134
63135         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
63136         size of (size_t) -1; it's not portable.
63137
63138 2000-11-17  Jim Meyering  <meyering@lucent.com>
63139
63140         * lib/strstr.c: Update from GNU libc.
63141
63142 2000-11-17  Akim Demaille  <akim@epita.fr>
63143
63144         * lib/obstack.h: Formatting changes.
63145         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
63146         prevent type checking.
63147         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
63148         cast the value to (void *): assigning a `foo *' to a `void *'
63149         variable is valid.
63150         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
63151
63152 2000-11-16  Jim Meyering  <meyering@lucent.com>
63153
63154         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
63155
63156 2000-11-11  Jim Meyering  <meyering@lucent.com>
63157
63158         * lib/error.c: Add a couple #includes, merging from GNU libc version.
63159
63160 2000-11-10  Jim Meyering  <meyering@lucent.com>
63161
63162         * lib/obstack.h: Update from GNU libc.
63163         * lib/obstack.c: Likewise.
63164
63165 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
63166
63167         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
63168
63169 2000-11-06  Paul Eggert  <eggert@twinsun.com>
63170
63171         * lib/getusershell.c (setusershell): Use rewind rather than
63172         fseek/fseeko, to avoid configuration hassles with fseeko.
63173         Don't bother opening SHELLS_FILE if shellstream is NULL;
63174         it's not necessary.
63175
63176 2000-11-05  Jim Meyering  <meyering@lucent.com>
63177
63178         * lib/makepath.h (make_dir): Declare.
63179         * lib/makepath.c (make_dir): Remove `static' attribute.
63180         Tweak a comment.
63181
63182 2000-11-04  Jim Meyering  <meyering@lucent.com>
63183
63184         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
63185
63186 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
63187
63188         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
63189         last one in a bucket, advance to the next bucket.
63190
63191 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
63192
63193         * lib/fnmatch.c: Do not comment out all the code if we are using
63194         the GNU C library, because in some cases we are replacing buggy
63195         code in the GNU C library itself.
63196
63197 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
63198
63199         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
63200         (regex_compile): Catch bogus \(\1\).
63201
63202 2000-10-30  Paul Eggert  <eggert@twinsun.com>
63203
63204         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
63205         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
63206         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
63207
63208 2000-10-30  Paul Eggert  <eggert@twinsun.com>
63209
63210         * lib/error.h, getline.h, modechange.h:
63211         Remove "2000" from Copyright line, as the file hasn't been
63212         changed this year other than in the copyright notice.
63213
63214         * lib/xalloc.h: Add "2000" to Copyright line, as this file
63215         was changed this year.
63216
63217 2000-10-29  Jim Meyering  <meyering@lucent.com>
63218
63219         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
63220         renaming.
63221         * m4/ls-mntd-fs.m4: Likewise
63222
63223 2000-10-29  Jim Meyering  <meyering@lucent.com>
63224
63225         * lib/xstat.in: Fix grammar in comment.
63226
63227 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
63228
63229         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
63230         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
63231         doesn't define __restrict_arr.
63232
63233 2000-10-28  Jim Meyering  <meyering@lucent.com>
63234
63235         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
63236         (jm_PREREQ_MEMCHR): New function.
63237
63238 2000-10-28  Jim Meyering  <meyering@lucent.com>
63239
63240         * lib/memchr.c: Update from libc.
63241         Adjust for portability:
63242         [HAVE_STDLIB_H]: Include stdlib.h.
63243         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
63244         Undef __memchr, too.
63245         [!weak_alias]: Define __memchr to memchr.
63246
63247         * lib/regex.c: Update from libc.
63248         * lib/regex.h: Likewise.
63249         * lib/getopt1.c: Likewise.
63250         * lib/memcmp.c: Likewise.
63251
63252         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
63253         Avoid using fseek, when possible -- it's broken by design.
63254         Patch by Ulrich Drepper.
63255
63256 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
63257
63258         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
63259         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
63260         Giving in to popular pressure to shut up the compiler with casts.
63261
63262 2000-10-26  Jim Meyering  <meyering@lucent.com>
63263
63264         * lib/strftime.c: Update from libc.
63265
63266 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
63267
63268         * regex.c: More `unsigned char' -> `re_char' changes.
63269         Also change several `int' into `re_wchar_t'.
63270         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
63271         (PUSH_FAILURE_POINTER): Don't cast any more.
63272         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
63273         We want GCC to complain, since this piece of code makes
63274         re_match non-reentrant, which *should* be fixed.
63275         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
63276         (EXTEND_BUFFER): Use RETALLOC.
63277         (SET_LIST_BIT): Don't cast.
63278         (re_wchar_t): New type.
63279         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
63280         that those two functions will always properly return.
63281         (IMMEDIATE_QUIT_CHECK): Cast to void.
63282         (analyse_first): Use recursion rather than an explicit stack.
63283         (re_compile_fastmap): Can't fail anymore.
63284         (re_search_2): Don't check re_compile_fastmap for failure.
63285         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
63286         Now also sets the new value (passed in a new argument).
63287         (re_match_2_internal): Use it.
63288         Also, use a new var `reg' of type size_t when looping through regs
63289         rather than reuse the inappropriate `mcnt'.
63290
63291 2000-10-25  Jim Meyering  <meyering@lucent.com>
63292
63293         * lib/obstack.c: Update from libc.
63294
63295 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
63296
63297         * regex.c (regex_compile): Change the way of handling a range from
63298         a char less than 256 to a char not less than 256.
63299
63300 2000-10-24  Andrew Innes  <andrewi@gnu.org>
63301
63302         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
63303         NT-Emacs only.
63304         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
63305         so that re_search functions only quit when callers expect them to.
63306
63307 2000-10-23  Jim Meyering  <meyering@lucent.com>
63308
63309         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
63310         wrong.  That set_locale call must not have any side effects.
63311         From Paul Eggert.
63312
63313 2000-10-22  Jim Meyering  <meyering@lucent.com>
63314
63315         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
63316         [CYCLIC]: Remove now-unused definition.
63317
63318         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
63319         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
63320         Suggestion from Ulrich Drepper.
63321
63322 2000-10-21  Jim Meyering  <meyering@lucent.com>
63323
63324         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
63325         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
63326         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
63327
63328 2000-10-21  Jim Meyering  <meyering@lucent.com>
63329
63330         * lib/dirname.c (memrchr): Declare if necessary.
63331         (dir_name): Remove the restriction that there be no
63332         trailing slashes.  Now, this code skips past them, effectively
63333         ignoring them.
63334         [TEST_DIRNAME] (main): New unit tests.
63335
63336         * lib/memrchr.c: New file from GNU libc.
63337         Undef __memrchr, too.
63338         [!weak_alias]: Define __memrchr to memrchr.
63339         Guard weak_alias use with `#ifdef weak_alias'.
63340
63341 2000-10-21  Jim Meyering  <meyering@lucent.com>
63342
63343         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
63344         (dir_name): Use dir_name_r.
63345         * lib/dirname.h (dir_name_r): Declare it.
63346
63347 2000-10-17  Jim Meyering  <meyering@lucent.com>
63348
63349         * lib/quote.h (PARAMS): Define and use.
63350         Reported by Akim Demaille.
63351
63352         * lib/getopt.c: Update from libc.
63353
63354 2000-10-16  Jim Meyering  <meyering@lucent.com>
63355
63356         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
63357         setlocale.
63358         From Jan Fedak.
63359
63360 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
63361
63362         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
63363
63364 2000-09-25  Jim Meyering  <meyering@lucent.com>
63365
63366         * lib/md5.h (rol): Define (from GnuPG).
63367
63368         * lib/sha.c: Give credit (GnuPG) where due.
63369         (M): Use rol rather than open-coding it.
63370         Add a FIXME comment.
63371
63372 2000-09-21  Jim Meyering  <meyering@lucent.com>
63373
63374         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
63375         Reported by Michael Stone.
63376
63377 2000-09-20  Jim Meyering  <meyering@lucent.com>
63378
63379         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
63380         (noinst_HEADERS): Add sha.h.
63381         Based on code from Scott G. Miller and from GnuPG.
63382
63383 2000-09-18  Jim Meyering  <meyering@lucent.com>
63384
63385         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
63386         LIBS. Otherwise, everyone ends up linking with -lelf for some
63387         configurations.
63388         Reported by Mike Stone.
63389
63390 2000-09-15  Jim Meyering  <meyering@lucent.com>
63391
63392         * lib/regex.c: Update from libc.
63393
63394 2000-09-10  Jim Meyering  <meyering@lucent.com>
63395
63396         * lib/getopt.c (_getopt_internal): Update from glibc.
63397
63398 2000-09-09  Jim Meyering  <meyering@lucent.com>
63399
63400         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
63401         think it should be used as a general replacement for isascii.
63402         * lib/fnmatch.c: Likewise.
63403         * lib/mbswidth.c: Likewise
63404         * lib/regex.c: Likewise.
63405
63406         Don't use atoi.
63407         * lib/userspec.c: Include sys/param.h and limits.h.
63408         Include xstrtol.h.
63409         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
63410         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
63411         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
63412         UID, GID.  Check range.
63413
63414 2000-09-06  Jim Meyering  <meyering@lucent.com>
63415
63416         * lib/getopt.c (_getopt_internal): Update from glibc.
63417
63418 2000-08-30  Jim Meyering  <meyering@lucent.com>
63419
63420         * lib/strftime.c: Merge in changes from GNU libc.
63421
63422 2000-08-26  Jim Meyering  <meyering@lucent.com>
63423
63424         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
63425         * m4/fpending.m4: New file.
63426
63427 2000-08-26  Jim Meyering  <meyering@lucent.com>
63428
63429         * lib/closeout.c: Include "__fpending.h".
63430         (close_stdout_status): Return right away if there's nothing to flush.
63431
63432         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
63433         * lib/__fpending.c: New file.
63434         * lib/__fpending.h: New file.
63435
63436 2000-08-20  Jim Meyering  <meyering@lucent.com>
63437
63438         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
63439         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
63440         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
63441
63442 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
63443
63444         Improve fileutils installation on systems where running
63445         programs (like install) can't be unlinked.
63446         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
63447         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
63448
63449 2000-08-07  Paul Eggert  <eggert@twinsun.com>
63450
63451         Standardize on "memory exhausted" instead of "Memory exhausted"
63452         or "virtual memory exhausted".
63453         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
63454         "virtual memory exhausted".
63455         * lib/same.c (same_name): Invoke xalloc_die instead of printing
63456         our own message.
63457         * lib/userspec.c (parse_user_spec): Likewise.
63458         * lib/bumpalloc.h: comment fix
63459         * lib/same.c, userspec.c: Include xalloc.h.
63460
63461         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
63462         not char *const and pointing to a constant array.
63463         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
63464         (xrealloc): Comment fix.
63465
63466         * lib/userspec.c (parse_user_spec):
63467         Don't translate a message until just before returning,
63468         to avoid unnecessary translation.
63469
63470 2000-08-07  Jim Meyering  <meyering@lucent.com>
63471
63472         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
63473         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
63474         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
63475         getgroups.c, gethostname.c, getopt.h, group-member.c,
63476         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
63477         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
63478         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
63479         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
63480         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
63481         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
63482         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
63483         yesno.c: Back out Copyright date changes for each file with no change
63484         this year.  This eases coordination with other programs using the same
63485         source code modules.  From Paul Eggert.
63486
63487 2000-08-06  Paul Eggert  <eggert@twinsun.com>
63488
63489         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
63490         not char, for compatibility with glibc 2.1.3 strftime.c.
63491
63492 2000-08-03  Greg McGary  <greg@mcgary.org>
63493
63494         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
63495         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
63496         (EXTEND_BUFFER): Use them.
63497
63498 2000-08-01  Jim Meyering  <meyering@lucent.com>
63499
63500         * lib/dirname.c (ISSLASH): Define.
63501         (BACKSLASH_IS_PATH_SEPARATOR): Define.
63502         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
63503         both `\' and `/' may be use as path separators.
63504         Based on a patch from Prashant TR.
63505
63506 2000-07-31  Paul Eggert  <eggert@twinsun.com>
63507
63508         * lib/quotearg.c (quotearg_n_options): Don't make the initial
63509         slot vector a constant, since it might get modified.
63510
63511 2000-07-31  Jim Meyering  <meyering@lucent.com>
63512
63513         * lib/xmalloc.c: Use `virtual memory exhausted', not
63514         `Memory exhausted'.
63515         * lib/obstack.c (print_and_abort): Likewise.
63516
63517 2000-07-30  Paul Eggert  <eggert@twinsun.com>
63518
63519         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
63520         buffer, so that the caller can always quote one small
63521         component of a "memory exhausted" message in slot 0.
63522         From a suggestion by Jim Meyering.
63523
63524 2000-07-30  Jim Meyering  <meyering@lucent.com>
63525
63526         * lib/makepath.c (make_path): Quote the other instance, too.
63527
63528         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
63529         (STATIC_BUF_SIZE): Define.
63530         (quotearg_n_options): Use only statically allocated storage when
63531         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
63532         than STATIC_BUF_SIZE.
63533
63534 2000-07-29  Jim Meyering  <meyering@lucent.com>
63535
63536         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
63537         * lib/dirname.c (dir_name): Likewise.
63538
63539         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
63540         `/'.
63541
63542         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
63543         (dir_name): Assert that there are no trailing slashes.
63544
63545 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
63546
63547         * lib/mbswidth.h (mbswidth): Add a flags argument.
63548         (mbswidth): New declaration.
63549         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
63550         * lib/mbswidth.c (mbswidth): Add a flags argument.
63551         (mbsnwidth): New function.
63552
63553 2000-07-24  Jim Meyering  <meyering@lucent.com>
63554
63555         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
63556
63557 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63558
63559         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
63560
63561 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63562
63563         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
63564         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
63565         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
63566         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
63567         invoke multibyte primitives.
63568
63569 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63570
63571         * lib/quotearg.c:
63572         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
63573         so that mbstate_t is always defined.
63574
63575         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
63576         be 1 in at least one GCC installation, and this configuration
63577         error is likely to be common.  Ignoring MB_LEN_MAX hurts
63578         performance on hosts that have mbrtowc but have only unibyte
63579         locales, but I assume these hosts are rare.
63580
63581 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63582
63583         * lib/mbswidth.c (_XOPEN_SOURCE):
63584         Don't define; this causes problems on Solaris 7.
63585         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
63586
63587 2000-07-23  Jim Meyering  <meyering@lucent.com>
63588
63589         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
63590         too: getgrgid, getpwuid, getuid.
63591
63592 2000-07-23  Jim Meyering  <meyering@lucent.com>
63593
63594         * lib/basename.c (base_name): Add an assertion.
63595
63596 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
63597
63598         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
63599         shadow its mbsinit function.
63600
63601 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
63602
63603         * lib/mbswidth.h: New file.
63604         * lib/mbswidth.c: New file.
63605         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
63606         (noinst_HEADERS): Add mbswidth.h.
63607
63608 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
63609
63610         * lib/config.charset: Add support for FreeBSD. Improve support for
63611         HP-UX and IRIX 6.
63612
63613 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
63614
63615         * m4/mbswidth.m4: New file.
63616         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
63617
63618 2000-07-15  Jim Meyering  <meyering@lucent.com>
63619
63620         * lib/makepath.c: Include quote.h.
63621         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
63622         corresponding argument in a `quote (...)' call.
63623         Give better diagnostics.
63624
63625         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
63626         (noinst_HEADERS): Add quote.h.
63627
63628         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
63629         from tar's src/misc.c.
63630         * lib/quote.h: New file.  Prototypes for same.
63631
63632 2000-07-14  Paul Eggert  <eggert@twinsun.com>
63633
63634         From a suggestion by Bruno Haible.
63635         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
63636         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
63637         to decide whether to define the BeOS workaround macro;
63638         this adjusts to the change to AC_MBSTATE_T.
63639
63640 2000-07-14  Jim Meyering  <meyering@lucent.com>
63641
63642         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
63643         jm_AC_TYPE_UINTMAX_T.
63644
63645 2000-07-13  Paul Eggert  <eggert@twinsun.com>
63646
63647         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
63648
63649         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
63650         quotearg_buffer_restyled): Add support for
63651         clocale_quoting_style.  Undo previous change to
63652         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
63653         and "{RIGHT QUOTATION MARK}" msgids.
63654
63655 2000-07-10  Paul Eggert  <eggert@twinsun.com>
63656
63657         From a suggestion by Bruno Haible.
63658         * m4/mbstate_t.m4 (AC_MBSTATE_T):
63659         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
63660         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
63661         and mbstate_t, to a single-part test that simply defines mbstate_t.
63662         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
63663         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
63664
63665 2000-07-10  Jim Meyering  <meyering@lucent.com>
63666
63667         * m4/strerror_r.m4: Mirror the correction made in autoconf.
63668
63669         * m4/gnu-source.m4: Output to confdefs.h directly.
63670         Suggestion from Akim Demaille.
63671
63672 2000-07-09  Paul Eggert  <eggert@twinsun.com>
63673
63674         The old behavior of quoting `like this' doesn't look good with
63675         newer, ISO-style fonts.  See:
63676         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
63677
63678         Instead, quote "like this" by default.  Let the translator
63679         tailor the locale-specific quoting behavior by providing
63680         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
63681
63682         * lib/quotearg.c (N_): New macro.
63683         (gettext_default): New function.
63684         (quotearg_buffer_restyled): Use
63685         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
63686         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
63687
63688 2000-07-09  Jim Meyering  <meyering@lucent.com>
63689
63690         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
63691         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
63692
63693         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
63694         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
63695
63696 2000-07-09  Jim Meyering  <meyering@lucent.com>
63697
63698         * lib/Most files: Update copyright dates to include 2000.
63699
63700 2000-07-08  Jim Meyering  <meyering@lucent.com>
63701
63702         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
63703         if not defined.
63704         (xgethostname): Remove now-unnecessary #ifdef.
63705         Move declaration of `err' into loop where it's used.
63706
63707 2000-07-05  Paul Eggert  <eggert@twinsun.com>
63708         and Bruno Haible  <haible@clisp.cons.org>
63709
63710         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
63711         only if the test for an object-type mbstate_t fails.  This
63712         prevents us from mistakenly reporting that mbstate_t is a
63713         system object type after we "#define mbstate_t int" to work
63714         around its lack.
63715
63716 2000-07-05  Paul Eggert  <eggert@twinsun.com>
63717         and Bruno Haible  <haible@clisp.cons.org>
63718
63719         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
63720
63721 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63722
63723         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
63724         to strerror_r.
63725         Include <ctype.h> for use of isalpha.
63726
63727 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63728
63729         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
63730         by allocating a larger buffer. Test the gethostname return value for
63731         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
63732         returns an error and ENAMETOOLONG isn't defined.
63733
63734 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63735
63736         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
63737         dimension.
63738
63739 2000-07-04  Jim Meyering  <meyering@lucent.com>
63740
63741         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
63742         of the deprecated AC_CHECKING.
63743
63744 2000-07-04  Jim Meyering  <meyering@lucent.com>
63745
63746         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
63747         Reported by Bruno Haible.
63748
63749 2000-07-04  Jim Meyering  <meyering@lucent.com>
63750
63751         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
63752         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
63753         lacks mbrtowc.
63754
63755 2000-07-03  Paul Eggert  <eggert@twinsun.com>
63756
63757         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
63758         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
63759
63760 2000-07-03  Paul Eggert  <eggert@twinsun.com>
63761         and Bruno Haible  <haible@clisp.cons.org>
63762
63763         * lib/quotearg.c (mbrtowc):
63764         Assign to *pwc, and return 1 only if result is nonzero.
63765         (iswprint): Use ISPRINT when substituting our own mbrtowc.
63766
63767 2000-07-03  Jim Meyering  <meyering@lucent.com>
63768
63769         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
63770
63771 2000-07-03  Jim Meyering  <meyering@lucent.com>
63772
63773         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
63774         This is necessary to get a definition of e.g., UTMP_FILE on
63775         HP-UX 10.20.
63776         From Bob Proulx.
63777
63778 2000-07-02  Jim Meyering  <meyering@lucent.com>
63779
63780         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
63781
63782         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
63783         AC_LIBOBJ(function_name).
63784         * m4/chown.m4: Likewise.
63785         * m4/fnmatch.m4: Likewise.
63786         * m4/ftruncate.m4: Likewise.
63787         * m4/getgroups.m4: Likewise.
63788         * m4/getline.m4: Likewise.
63789         * m4/group-member.m4: Likewise.
63790         * m4/jm-macros.m4: Likewise.
63791         * m4/lstat.m4: Likewise.
63792         * m4/malloc.m4: Likewise.
63793         * m4/memcmp.m4: Likewise.
63794         * m4/nanosleep.m4: Likewise.
63795         * m4/putenv.m4: Likewise.
63796         * m4/realloc.m4: Likewise.
63797         * m4/regex.m4: Likewise.
63798         * m4/stat.m4: Likewise.
63799         * m4/strftime.m4: Likewise.
63800
63801 2000-07-02  Jim Meyering  <meyering@lucent.com>
63802
63803         * lib/quotearg.c (mbstate_t): Don't define here.
63804
63805 2000-07-02  Jim Meyering  <meyering@lucent.com>
63806
63807         * lib/nanosleep.c (SIGCONT): Define if not already defined.
63808
63809 2000-07-01  Jim Meyering  <meyering@lucent.com>
63810
63811         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
63812
63813 2000-07-01  Jim Meyering  <meyering@lucent.com>
63814
63815         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
63816         problem.
63817
63818 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
63819
63820         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
63821         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
63822
63823 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
63824
63825         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
63826         per change in ../m4/ls-mntd-fs.m4.
63827         (read_filesystem_list): Ignore symbolic links.
63828
63829 2000-06-29  Jim Meyering  <meyering@lucent.com>
63830
63831         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
63832         for declaration of strcmp.
63833
63834         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
63835
63836         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
63837         Avoid warning by casting result to `char *' to remove `const'.
63838
63839 2000-06-28  Jim Meyering  <meyering@lucent.com>
63840
63841         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
63842         included by quotearg.c, for which we perform this test.  From
63843         Bruno Haible.
63844
63845 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
63846
63847         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
63848         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
63849         <utmpx.h> exists, put readutmp.o into LIBOBJS.
63850
63851 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
63852
63853         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
63854
63855 2000-06-26  Paul Eggert  <eggert@twinsun.com>
63856
63857         savedir now sets errno on failure and invokes xmalloc to get memory.
63858         Fix a couple of other minor bugs while we're at it.
63859
63860         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
63861         (NAMLEN): Remove macro.
63862         (malloc, realloc): Remove decls.
63863         (stpcpy): Likewise.
63864         ("xalloc.h"): Include.
63865         (NAME_SIZE_DEFAULT): New macro.
63866         (savedir): Use xmalloc / xrealloc to allocate memory.
63867         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
63868         Skip "" directory entries.
63869         Use strlen to calculate directory entry length, since the old method
63870         is rarely used these days and isn't worth supporting.
63871         Don't use a pointer after freeing it.
63872         Check for integer overflow when calculating allocation size.
63873         Use memcpy to copy entries, instead of stpcpy.
63874         Set errno properly when returning NULL.
63875         Check for readdir error.
63876
63877 2000-06-26  Jim Meyering  <meyering@lucent.com>
63878
63879         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
63880
63881 2000-06-25  Jim Meyering  <meyering@lucent.com>
63882
63883         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
63884         Linux header bug when _XOPEN_SOURCE is defined to 500.
63885
63886 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
63887
63888         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
63889         deficiency.
63890
63891 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
63892
63893         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
63894         Include xalloc.h.
63895         Don't include <stdlib.h>.  Don't declare malloc, realloc.
63896
63897 2000-06-24  Jim Meyering  <meyering@lucent.com>
63898
63899         * m4/strerror_r.m4: Revive this file -- to try out an experimental
63900         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
63901         for which strerror does return char*, but which lacks a conveniently
63902         accessible declaration of the function.  If the compile-test says
63903         strerror_r doesn't work, then resort to a `run'-test that works on
63904         BeOS and segfaults on DEC Unix.
63905
63906 2000-06-24  Jim Meyering  <meyering@lucent.com>
63907
63908         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
63909
63910 2000-06-23  Paul Eggert  <eggert@twinsun.com>
63911
63912         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
63913         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
63914
63915 2000-06-23  Paul Eggert  <eggert@twinsun.com>
63916
63917         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
63918         (mbrtowc, mbstate_t): Define substitutes if
63919         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
63920         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
63921         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
63922
63923 2000-06-23  Jim Meyering  <meyering@lucent.com>
63924
63925         * m4/afs.m4: Add missing AC_MSG_RESULT.
63926         Reported by Bruno Haible.
63927
63928         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
63929         Suggestion from Bruno Haible.
63930
63931 2000-06-23  Jim Meyering  <meyering@lucent.com>
63932
63933         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
63934
63935 2000-06-21  Jim Meyering  <meyering@lucent.com>
63936
63937         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
63938
63939 2000-06-21  Jim Meyering  <meyering@lucent.com>
63940
63941         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
63942         (noinst_HEADERS): Add getstr.h.
63943
63944         * lib/getline.c (getstr): Move into a separate file.
63945         * lib/getstr.c (getstr): New file, extracted from getline.c, with
63946         the following changes: new parameter, delim2; both delim[12]
63947         parameters have type `int', not `char'.  The latter would lose
63948         with 8-bit delimiters.
63949         * lib/getstr.h: New file.
63950
63951 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63952
63953         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
63954         than 1024, return a memory chunk of least possible size, instead
63955         of size PATH_MAX + 2. In the loop, increment the size proportionally.
63956         Use free/xmalloc instead of xrealloc to avoid copying for very long
63957         paths.
63958
63959 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63960
63961         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
63962         the empty string.
63963
63964 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
63965
63966         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
63967         address, not strdup.  Include <stdlib.h> and don't declare free().
63968
63969 2000-06-19  Jim Meyering  <meyering@lucent.com>
63970
63971         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
63972
63973 2000-06-18  Jim Meyering  <meyering@lucent.com>
63974
63975         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
63976
63977         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
63978         `checking whether...' message to be consistent with that of the
63979         lstat test.
63980
63981 2000-06-18  Jim Meyering  <meyering@lucent.com>
63982
63983         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
63984         Besides, these days every porting target provides a mkdir function.
63985
63986         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
63987         needed. (this snippet comes from src/system.h).
63988
63989 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
63990
63991         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
63992
63993 2000-06-15  Paul Eggert  <eggert@twinsun.com>
63994
63995         * lib/human.c (adjust_value): New function.
63996         (human_readable_inexact): Apply rounding style even when
63997         printing approximate values.
63998
63999 2000-06-14  Paul Eggert  <eggert@twinsun.com>
64000
64001         * lib/human.c (human_readable_inexact): Allow an input block
64002         size that is not a multiple of the output block size, and vice versa.
64003         Reported by Piergiorgio Sartor.
64004
64005 2000-06-14  Paul Eggert  <eggert@twinsun.com>
64006
64007         * lib/getdate.y (get_date): Apply relative times after time
64008         zone indicator, not before.  Reported by Todd A. Jacobs.
64009
64010 2000-06-13  Jim Meyering  <meyering@lucent.com>
64011
64012         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
64013
64014         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
64015
64016 2000-06-12  Paul Eggert  <eggert@twinsun.com>
64017
64018         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
64019
64020 2000-06-12  Jim Meyering  <meyering@lucent.com>
64021
64022         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
64023         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
64024         optional argument.
64025         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
64026         the optional argument, `lib'.
64027
64028 2000-06-08  Jim Meyering  <meyering@lucent.com>
64029
64030         * m4/largefile.m4: Remove file (now that it's part of autoconf).
64031
64032 2000-06-04  Paul Eggert  <eggert@twinsun.com>
64033
64034         Rewrite largefile configuration so that we don't need to run
64035         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
64036         AC_CANONICAL_HOST in configure.in -- jmm]
64037
64038         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
64039         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
64040         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
64041         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
64042         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
64043         All uses changed.
64044         Instead of inspecting the output of getconf, try to compile the
64045         test program without and with the macro definition.
64046         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
64047         for getconf.  Instead, check for the needed flags by compiling
64048         test programs.
64049
64050 2000-06-04  Paul Eggert  <eggert@twinsun.com>
64051
64052         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
64053
64054 2000-06-04  Jim Meyering  <meyering@lucent.com>
64055
64056         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
64057         SunOS 4.1.4 for which gid_t is an unsigned type.
64058
64059 2000-06-03  Jim Meyering  <meyering@lucent.com>
64060
64061         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
64062         now that autoconf requires that.
64063
64064         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
64065         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
64066         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
64067
64068 2000-06-03  Jim Meyering  <meyering@lucent.com>
64069
64070         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
64071
64072 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
64073
64074         * m4/glibc21.m4: New file.
64075         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
64076
64077 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
64078
64079         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
64080         newer, don't install charset.alias.
64081         * lib/config.charset: Change the Linux/glibc rules so they become empty
64082         on glibc-2.1 or newer.
64083
64084 2000-06-02  Jim Meyering  <meyering@lucent.com>
64085
64086         * lib/mountlist.c: Back out last change.  Instead, do this...
64087         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
64088         me_dummy member using the same `ignore'-testing code.
64089         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
64090         fs_type strings.
64091         From Mark D. Roth.
64092
64093 2000-05-29  Jim Meyering  <meyering@lucent.com>
64094
64095         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
64096         mounts with the `ignore' attribute.  Based on a patch from
64097         Mark D. Roth.
64098
64099 2000-05-28  Jim Meyering  <meyering@lucent.com>
64100
64101         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
64102         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64103         * m4/stat.m4: Likewise.
64104         * m4/lstat.m4: Likewise.
64105         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
64106
64107         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
64108         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
64109
64110 2000-05-26  Jim Meyering  <meyering@lucent.com>
64111
64112         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
64113
64114 2000-05-24  Jim Meyering  <meyering@lucent.com>
64115
64116         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
64117         autoconf requires that.
64118         * m4/lib-check.m4: Likewise.
64119         * m4/jm-macros.m4: Likewise.
64120         * m4/strftime.m4: Likewise.
64121
64122         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
64123         AC_CHECK_DECLS, now that autoconf requires that.
64124
64125 2000-05-22  Jim Meyering  <meyering@lucent.com>
64126
64127         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64128         * m4/lstat.m4: Likewise.
64129
64130 2000-05-22  Jim Meyering  <meyering@lucent.com>
64131
64132         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
64133
64134 2000-05-20  Jim Meyering  <meyering@lucent.com>
64135
64136         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
64137         (jm_PREREQ): Use it.
64138
64139 2000-05-18  Jim Meyering  <meyering@lucent.com>
64140
64141         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
64142         back, too, since it may have been modified by allocate_entry.
64143         (hash_delete): Rewrite to use neither the assignment operator
64144         nor the comma operator in an if-expression.
64145
64146 2000-05-15  Paul Eggert  <eggert@twinsun.com>
64147
64148         * lib/closeout.c:
64149         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
64150         Remove; no longer needed.
64151         "quotearg.h": Add include.
64152         (file_name): Do not bother to explicitly initialize to NULL; it's less
64153         efficient on some hosts.
64154         (close_stdout_status): Remove test as to whether stdout was already
64155         closed; it breaks for the case "echo x | sort >&-".
64156         Quote file name colons.
64157         Do not assume that _("write error") lacks format strings.
64158
64159 2000-05-15  Jim Meyering  <meyering@lucent.com>
64160
64161         * lib/version-etc.c (version_etc_copyright): Update the copyright
64162         string used in all --version output.
64163
64164 2000-05-14  Jim Meyering  <meyering@lucent.com>
64165
64166         * lib/closeout.c (close_stdout_set_file_name): New function.
64167         (close_stdout_status): Use new file-scoped global.
64168         Return right away if fstat says the stdout file descriptor is invalid.
64169         * lib/closeout.h (close_stdout_set_file_name): Declare.
64170
64171 2000-05-10  Jim Meyering  <meyering@lucent.com>
64172
64173         * lib/closeout.c [default_exit_status]: New file-scoped variable.
64174         (close_stdout_set_status): New function.
64175         * lib/closeout.h (close_stdout_set_status): Declare.
64176
64177 2000-05-09  Jim Meyering  <meyering@lucent.com>
64178
64179         * m4/gettext.m4: Rename this...
64180         * m4/libintl.m4: ...to this.
64181
64182 2000-05-08  Jim Meyering  <meyering@lucent.com>
64183
64184         * lib/long-options.c: Don't include closeout.h.
64185         (parse_long_options): Don't call close_stdout for --version.
64186
64187 2000-05-06  Paul Eggert  <eggert@twinsun.com>
64188
64189         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
64190         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
64191         2.1.3 bug.  This avoids a clash when files like regex.c define
64192         _GNU_SOURCE.
64193
64194 2000-05-06  Jim Meyering  <meyering@lucent.com>
64195
64196         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
64197         (AC_REPLACE_FUNCS): Add strnlen.
64198
64199         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
64200         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
64201
64202         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
64203         AC_SEARCH_LIBS call for nanosleep.
64204         (LIB_NANOSLEEP): Set and AC_SUBST.
64205
64206 2000-05-06  Jim Meyering  <meyering@lucent.com>
64207
64208         * lib/strnlen.c: Undefine __strnlen and strnlen.
64209         [!weak_alias]: Define __strnlen to strnlen.
64210
64211         * lib/atexit.c: New file, from libiberty.
64212
64213 2000-05-06  Jim Meyering  <meyering@lucent.com>
64214
64215         * lib/closeout.c (close_stdout_status): Also check for errors on the
64216         stderr stream.
64217
64218 2000-05-05  Jim Meyering  <meyering@lucent.com>
64219
64220         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
64221         AC_SEARCH_LIBS call for clock_gettime.
64222         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
64223
64224         * m4/search-libs.m4: Update from autoconf.
64225
64226         su doesn't work on Solaris 2.6.
64227         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
64228         <shadow.h>.  Reported by Dragos Harabor.
64229
64230 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
64231
64232         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
64233         memcpy instead of xmalloc, xrealloc, path_concat.
64234         (locale_charset): Treat empty environment variables as absent.
64235         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
64236
64237 2000-05-04  Jim Meyering  <meyering@lucent.com>
64238
64239         * lib/getopt.c: Update from glibc.
64240         * lib/obstack.c: Likewise.
64241         * lib/obstack.h: Likewise.
64242         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
64243         file
64244
64245         * lib/regex.h: Likewise.
64246         * lib/strndup.c: Likewise.
64247         * lib/strnlen.c: New file, from glibc.
64248
64249 2000-05-03  Jim Meyering  <meyering@lucent.com>
64250
64251         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
64252
64253 2000-05-02  Paul Eggert  <eggert@twinsun.com>
64254
64255         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
64256         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
64257         compile-time test, rather than inspecting host and OS, to
64258         decide whether to define _LARGEFILE_SOURCE.
64259
64260 2000-05-01  Jim Meyering  <meyering@lucent.com>
64261
64262         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
64263
64264         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
64265         Based on a patch from Bruno Haible.
64266
64267 2000-05-01  Jim Meyering  <meyering@lucent.com>
64268
64269         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
64270
64271 2000-04-29  Jim Meyering  <meyering@lucent.com>
64272
64273         * lib/path-concat.c: Declare strdup only if it's not defined.
64274         * lib/canon-host.c: Likewise.
64275
64276 2000-04-28  Jim Meyering  <meyering@lucent.com>
64277
64278         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
64279         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
64280         is included first, then limits.h is included by locale.h by libintl.h.
64281         From John David Anglin.
64282
64283 2000-04-25  Jim Meyering  <meyering@lucent.com>
64284
64285         * lib/makepath.c (S_IRWXUGO): Define.
64286         (make_path): Always perform explicit chmod if MODE specifies any
64287         of the `special' permission bits.  Prompted by a bug report against
64288         install from Mate Wierdl and Joost van Baal.
64289
64290 2000-04-18  Jim Meyering  <meyering@lucent.com>
64291
64292         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
64293         (jm_PREREQ): Use it.
64294
64295 2000-04-18  Jim Meyering  <meyering@lucent.com>
64296
64297         * lib/README: New file.
64298
64299         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
64300         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
64301
64302 2000-04-17  Jim Meyering  <meyering@lucent.com>
64303
64304         Get it right :-)
64305         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
64306         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
64307         Suggestion from Akim Demaille.
64308
64309 2000-04-17  Jim Meyering  <meyering@lucent.com>
64310
64311         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
64312         the definition of it to rpl_strftime also defined-away the system's
64313         declaration.
64314
64315 2000-04-15  Jim Meyering  <meyering@lucent.com>
64316
64317         Use `C' to denote so-called `contiguous' files, the same way
64318         that tar does.
64319         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
64320         (ftypelet): Use S_ISCTG.
64321         From Michael Deutschmann.
64322
64323 2000-04-14  Jim Meyering  <meyering@lucent.com>
64324
64325         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
64326         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
64327         clobbered.
64328
64329 2000-04-14  Jim Meyering  <meyering@lucent.com>
64330
64331         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
64332
64333 2000-04-13  Jim Meyering  <meyering@lucent.com>
64334
64335         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
64336         AH_VERBATIM to insert required #ifndef into config.h.in.
64337         Suggestion from Akim Demaille.
64338
64339 2000-04-12  Jim Meyering  <meyering@lucent.com>
64340
64341         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
64342         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
64343         Christian Krackowizer.
64344
64345         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
64346         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
64347         (AC_SYS_LARGEFILE): Require.
64348         (AM_C_PROTOTYPES): Require.
64349
64350 2000-04-08  Jim Meyering  <meyering@lucent.com>
64351
64352         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
64353         names don't conflict.  Reported by Eli Zaretskii.
64354
64355 2000-04-07  Jim Meyering  <meyering@lucent.com>
64356
64357         * lib/putenv.c: Move inclusion of errno.h so it follows that of
64358         sys/types.h, to work around system header problems on AIX 3.2.5.
64359         From Bruno Haible.
64360
64361 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
64362
64363         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
64364         bug.  Deal with the different error behavior of Irix iconv.
64365
64366 2000-04-05  Paul Eggert  <eggert@twinsun.com>
64367
64368         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
64369         IRIX if the installer said otherwise.
64370
64371 2000-04-05  Jim Meyering  <meyering@lucent.com>
64372
64373         Portability tweaks required for ultrix4.3.
64374         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
64375         (jm_CHECK_DECLS): Add getutent to the list of functions.
64376         (_jm_DECL_HEADERS): Add utmpx.h.
64377         From John David Anglin.
64378
64379         * m4/strftime.m4: Back out the 2000-04-02 change.
64380         Instead of that change, simply undefine putenv in the test program.
64381
64382 2000-04-05  Jim Meyering  <meyering@lucent.com>
64383
64384         Portability tweaks required for ultrix4.3.
64385         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
64386         getutent.
64387         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
64388         * lib/canon-host.c: Declare strdup.
64389         * lib/path-concat.c: Likewise.
64390         From John David Anglin.
64391
64392 2000-04-04  Jim Meyering  <meyering@lucent.com>
64393
64394         Be more DOS 8.3-friendly.
64395         * lib/ref-add.sin: Renamed from ref-add.sed.in.
64396         * lib/ref-del.sin: Renamed from ref-del.sed.in.
64397         * lib/Makefile.am: Reflect renaming.
64398         Reported by Eli Zaretskii.
64399
64400         Use a temporary file name that won't clash with `charset.alias'
64401         in the DOS 8.3 name space.
64402         * lib/Makefile.am (charset_tmp): Define.
64403         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
64404         (uninstall-local): Likewise.
64405         Reported by Eli Zaretskii.
64406
64407 2000-04-03  Jim Meyering  <meyering@lucent.com>
64408
64409         * m4/gettext.m4: Fix typo in comment.
64410
64411         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
64412         textutils/configure.in).  Suggestion from Paul Eggert.
64413         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
64414
64415 2000-04-02  Paul Eggert  <eggert@twinsun.com>
64416
64417         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
64418         variable in the shell rather than using putenv, which isn't
64419         portable.  This avoids the configure-time inter-test dependency
64420         on the potentially-renamed putenv function.
64421
64422 2000-03-30  Paul Eggert  <eggert@twinsun.com>
64423
64424         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
64425         before checking struct stat.st_blksize, so that
64426         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
64427
64428 2000-03-29  Paul Eggert  <eggert@twinsun.com>
64429
64430         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
64431         since strftime.c uses HAVE_STRFTIME to decide whether to use
64432         the underlying strftime.
64433
64434 2000-03-29  Paul Eggert  <eggert@twinsun.com>
64435
64436         * lib/time/strftime.c (my_strftime): Make sure we call the system
64437         strftime, not ourselves, when invoking the underlying strftime.
64438
64439 2000-03-24  Jim Meyering  <meyering@lucent.com>
64440
64441         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
64442         (charset_alias): Define.
64443         (install-exec-local): Factor out common code.
64444         (uninstall-local): Split lines longer than 80.
64445         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
64446         (SUFFIXES): Define.
64447         (.sed.in.sed): New rule.  Don't redirect directly to $@.
64448         (CLEANFILES): Add ref-add.sed and ref-del.sed.
64449
64450 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
64451
64452         * lib/config.charset: Output a line containing "Packages using this
64453         file".
64454         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
64455         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
64456         ref-del.sed): New rules.
64457
64458 2000-03-17  Jim Meyering  <meyering@lucent.com>
64459
64460         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
64461         Otherwise, include <strings.h>
64462
64463 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
64464
64465         * lib/unicodeio.c (utf8_wctomb): New function.
64466         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
64467         format instead of in UCS-4 with platform dependent endianness.
64468
64469 2000-03-10  Jim Meyering  <meyering@lucent.com>
64470
64471         * m4/lib-check.m4: Look for getspnam in -lgen, too.
64472         From Marco Franzen.
64473
64474 2000-03-07  Paul Eggert  <eggert@twinsun.com>
64475
64476         * lib/savedir.c (savedir): Work even if directory size is
64477         negative; this can happen with some screwy NFS configurations.
64478
64479 2000-03-06  Jim Meyering  <meyering@lucent.com>
64480
64481         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
64482         if it's NULL (because we ran out of memory).  From Bruno Haible.
64483
64484 2000-03-05  Jim Meyering  <meyering@lucent.com>
64485
64486         * lib/localcharset.c ("path-concat.h"): Include.
64487         (get_charset_aliases): Use path_concat instead of ANSI string
64488         concatenation.
64489
64490         * lib/unicodeio.h (PARAMS): Define.
64491         Use it to guard prototype.
64492
64493 2000-03-04  Jim Meyering  <meyering@lucent.com>
64494
64495         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
64496         for lib/localcharset.c.
64497
64498 2000-03-04  Jim Meyering  <meyering@lucent.com>
64499
64500         * lib/Makefile.am (install-exec-local): Create $(libdir) before
64501         installing into it.
64502         (uninstall-local): Uncomment this rule so `make distcheck' works
64503         once again.
64504
64505         * lib/unicodeio.c (<errno.h>): Include it.
64506         (errno): Declare if not defined.
64507
64508         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
64509
64510         * lib/config.charset: New version, incorporating remarks from a linux
64511         i18n mailing list.  From Bruno Haible.
64512
64513 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
64514
64515         * m4/codeset.m4: New file.
64516         * m4/iconv.m4: New file.
64517         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
64518
64519 2000-03-03  Jim Meyering  <meyering@lucent.com>
64520
64521         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
64522
64523 2000-03-02  Jim Meyering  <meyering@lucent.com>
64524
64525         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
64526         the messages come out on separate lines.
64527
64528         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
64529         rather than jm_CHECK_DECLARATIONS.
64530         * m4/decl.m4: Remove now-unused file.
64531
64532         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
64533         geteuid.
64534
64535 2000-03-02  Jim Meyering  <meyering@lucent.com>
64536
64537         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
64538
64539 2000-03-01  Jim Meyering  <meyering@lucent.com>
64540
64541         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
64542         * lib/unicodeio.c: Likewise.
64543
64544 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
64545
64546         * lib/config.charset: New file.
64547         * lib/localcharset.c: New file.
64548         * lib/unicodeio.h, lib/unicodeio.c: New files.
64549         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
64550         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
64551         (noinst_HEADERS): Add unicodeio.h.
64552         (all-local, install-exec-local, charset.alias): New targets.
64553
64554 2000-02-28  Paul Eggert  <eggert@twinsun.com>
64555
64556         * lib/quotearg.c (ALERT_CHAR): New macro.
64557         (quotearg_buffer_restyled): Use it.
64558
64559 2000-02-27  Jim Meyering  <meyering@lucent.com>
64560
64561         * m4/check-decl.m4: Add getenv to the list.
64562
64563 2000-02-27  Jim Meyering  <meyering@lucent.com>
64564
64565         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
64566         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
64567
64568         * lib/backupfile.c: Guard inclusion of stdlib.h with
64569         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
64570         Declare malloc if needed.
64571
64572         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
64573         `#ifndef HAVE_DECL..'
64574         now that autoconf always defines the HAVE_DECL_ symbols.
64575         * lib/human.c: Likewise.
64576         * lib/same.c: Likewise.
64577         * lib/strtoumax.c: Likewise.
64578
64579         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
64580         declaration check was not run.
64581         * lib/hash.c: Likewise.
64582         * lib/human.c: Likewise.
64583         * lib/same.c: Likewise.
64584         * lib/strtoumax.c: Likewise.
64585
64586         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
64587         `.', then first look up the entire `.'-containing string as a login
64588         name.
64589
64590 2000-02-23  Jim Meyering  <meyering@lucent.com>
64591
64592         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
64593         in place of my hack.
64594
64595 2000-02-18  Paul Eggert  <eggert@twinsun.com>
64596
64597         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
64598         (textint): New typedef.
64599         (parser_control): Member year changed from int to textint.
64600         All uses changed.
64601         (YYSTYPE): Removed; replaced by %union with int and textint members.
64602         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
64603         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
64604         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
64605         (tSNUMBER, tUNUMBER): Now of type <textintval>.
64606         (date, number, to_year): Use width of number in digits, not its value,
64607         to determine whether it's a 2-digit year, or a 2-digit time.
64608         (yylex): Store number of digits of numeric tokens.
64609         Reported by John Kendall.
64610
64611         (parser_control): Changed from struct parser_control to typedef (for
64612         consistency).  All uses changed.
64613
64614         (tID): Removed; not used.
64615         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
64616
64617 2000-02-14  Paul Eggert  <eggert@twinsun.com>
64618
64619         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
64620         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
64621
64622 2000-02-12  Jim Meyering  <meyering@lucent.com>
64623
64624         * lib/userspec.c (ISDIGIT): Define it.
64625         (isdigit): Remove definition.
64626         (is_number): Use ISDIGIT, not isdigit.
64627         <libintl.h>: Include.
64628         (_ and N_): Define.
64629         (parse_user_spec): Mark translatable strings.
64630
64631 2000-02-10  Jim Meyering  <meyering@lucent.com>
64632
64633         With these changes, nanosleep.[ch] are finally enough like the other
64634         lib/* replacement files to compile on a few more losing systems.
64635
64636         * lib/nanosleep.h: Don't include config.h.
64637         Remove prototype from declaration of nanosleep.
64638         (PARAMS): Remove now-unneeded definition.
64639         * lib/nanosleep.c: #undef nanosleep.
64640         (rpl_nanosleep): Rename from nanosleep.
64641
64642 2000-02-10  Jim Meyering  <meyering@lucent.com>
64643
64644         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
64645         gnu_nanosleep to rpl_nanosleep.
64646
64647 2000-02-09  Jim Meyering  <meyering@lucent.com>
64648
64649         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
64650         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
64651
64652 2000-02-08  Akim Demaille  <akim@epita.fr>
64653
64654         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
64655         `[' and `]' and remove uses of `changequote'.
64656         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
64657         (AC_SYS_LARGEFILE): Likewise.
64658         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
64659         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
64660         of changequote.
64661         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
64662         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
64663         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
64664         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
64665
64666 2000-02-05  Jim Meyering  <meyering@lucent.com>
64667
64668         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
64669         Remove explicit use of AC_HEADER_TIME.  It is required by
64670         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
64671         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
64672         in autoconf whereby the expansion of the latter ended up preceding
64673         the expansion of its prerequisite, AC_HEADER_TIME.
64674         Reported by Volker Borchert.
64675
64676 2000-02-03  Jim Meyering  <meyering@lucent.com>
64677
64678         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
64679
64680 2000-02-03  Jim Meyering  <meyering@lucent.com>
64681
64682         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
64683         rather than with `#if HAVE_UTMPNAME'.
64684
64685 2000-02-02  Jim Meyering  <meyering@lucent.com>
64686
64687         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
64688         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
64689         Reported by Eli Zaretskii.
64690
64691 2000-02-01  Jim Meyering  <meyering@lucent.com>
64692
64693         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
64694
64695 2000-01-31  Jim Meyering  <meyering@lucent.com>
64696
64697         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
64698         functions.  Add the time.h and sys/time.h headers along with the
64699         AC_REQUIRE'ment of AC_HEADER_TIME.
64700
64701 2000-01-31  Jim Meyering  <meyering@lucent.com>
64702
64703         * lib/nanosleep.h (nanosleep): Guard declaration with
64704         `#if ! HAVE_DECL_NANOSLEEP'.
64705         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
64706         the declaration in that vendor's sys/timers.h.
64707         Reported by Christian Krackowizer.
64708
64709         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
64710         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
64711         (ISPRINT): Likewise.
64712         Reported by Tom Tromey.
64713
64714 2000-01-30  Jim Meyering  <meyering@lucent.com>
64715
64716         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
64717
64718         * m4/prereq.m4 (utmp_includes): Define.
64719         Check for ut_user and ut_name members in both struct utmpx
64720         and struct utmp.
64721
64722 2000-01-30  Jim Meyering  <meyering@lucent.com>
64723
64724         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
64725         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
64726         header files where only utmpx.ut_user is declared.
64727
64728         * lib/readutmp.h (UT_USER): Define.
64729
64730 2000-01-29  Jim Meyering  <meyering@lucent.com>
64731
64732         * m4/lib-check.m4: New file containing library-related checks from
64733         fileutils and sh-utils (textutils had none).
64734
64735 2000-01-28  Jim Meyering  <meyering@lucent.com>
64736
64737         * m4/perl.m4: Change format of warning message to look more like that
64738         from the missing script.  Suggestion from François Pinard.
64739
64740 2000-01-25  Jim Meyering  <meyering@lucent.com>
64741
64742         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
64743         well as time.h in the compile check.
64744         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
64745         Fix typo in cross-compiling case: s/yes/no/.
64746
64747 2000-01-23  Jim Meyering  <meyering@lucent.com>
64748
64749         * m4/jm-macros.m4: Move df-related tests here from
64750         fileutils/configure.in
64751
64752         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
64753         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
64754
64755         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
64756         s/space/ac_fsusage_space/.
64757         (jm_FILE_SYSTEM_USAGE): Take two parameters.
64758
64759         * m4/ftruncate.m4: New file (derived from part of
64760         fileutils/configure.in).
64761         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
64762         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
64763
64764         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
64765         AC_SUBST these here, rather than just in sh-util/configure.in, so
64766         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
64767         all the same.
64768         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
64769         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
64770         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
64771         (AC_SUBST(POW_LIBM)): Likewise.
64772         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
64773
64774 2000-01-23  Jim Meyering  <meyering@lucent.com>
64775
64776         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
64777         obstack.c.
64778
64779 2000-01-22  Jim Meyering  <meyering@lucent.com>
64780
64781         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
64782
64783         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
64784
64785         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
64786         configure.in
64787         (AC_CHECK_HEADERS): Likewise for sh-utils.
64788         (AC_CHECK_HEADERS): Likewise for textutils.
64789         Merge the three lists of headers.
64790
64791         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
64792         from fileutils' configure.in.
64793
64794         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
64795         code. Moved tests into their own function (_jm_DECL_HEADERS) in
64796         check-decl.m4.
64797
64798         * m4/check-decl.m4: Use #if rather than #ifdef.
64799         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
64800         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
64801         (_jm_DECL_HEADERS): Define new function.
64802         (jm_CHECK_DECLARATIONS): Require it.
64803
64804 2000-01-22  Jim Meyering  <meyering@lucent.com>
64805
64806         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
64807         [! HAVE_DECL_STRTOULL]: Declare strtoull.
64808         Required for some AIX systems.  Reported by Christian Krackowizer.
64809         [TESTING] (main): New function.
64810
64811         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
64812         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
64813         letters.
64814
64815         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
64816         iswprint.
64817
64818         * lib/strverscmp.c (ISDIGIT): Define.
64819         (strverscmp): Use ISDIGIT, not isdigit.
64820
64821 2000-01-19  Jim Meyering  <meyering@lucent.com>
64822
64823         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
64824         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
64825         defines `struct timespec' in <sys/time.h>
64826
64827         * m4/c-bs-a.m4: Remove uses of changequote altogether.
64828         Thanks to Akim for explaining.
64829
64830 2000-01-17  Paul Eggert  <eggert@twinsun.com>
64831
64832         * lib/nanosleep.c (nanosleep):
64833         Don't use SA_INTERRUPT to decide whether to call sigaction, as
64834         POSIX.1 doesn't require SA_INTERRUPT and some systems
64835         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
64836         it's been part of POSIX.1 since day 1 (in 1988).
64837
64838 2000-01-17  Jim Meyering  <meyering@lucent.com>
64839
64840         * lib/interlock: Remove unused file.  Reported by François Pinard.
64841
64842 2000-01-16  Paul Eggert  <eggert@twinsun.com>
64843
64844         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
64845         alert, backslash, formfeed, and vertical tab unnecessarily in
64846         shell quoting style.
64847
64848 2000-01-16  Jim Meyering  <meyering@lucent.com>
64849
64850         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
64851         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
64852         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
64853         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
64854
64855 2000-01-16  Jim Meyering  <meyering@lucent.com>
64856
64857         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
64858         because the latter didn't work.
64859
64860 2000-01-15  Jim Meyering  <meyering@lucent.com>
64861
64862         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
64863         (AC_REPLACE_FUNCS): Add memcpy and memset.
64864         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
64865         Add strpbrk.
64866         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
64867
64868 2000-01-12  Jim Meyering  <meyering@lucent.com>
64869
64870         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
64871         (jm_PREREQ): Use it.
64872         (jm_PREREQ_READUTMP): New macro.
64873         (jm_PREREQ): Use it.
64874
64875 2000-01-11  Paul Eggert  <eggert@twinsun.com>
64876
64877         Quote multibyte characters correctly.
64878         * m4/c-bs-a.m4: New file.
64879         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
64880         (jm_PREREQ): Use it.
64881
64882 2000-01-11  Paul Eggert  <eggert@twinsun.com>
64883
64884         * m4/uintmax_t.m4: Port to autoconf 2.13.
64885
64886 2000-01-08  Jim Meyering  <meyering@ascend.com>
64887
64888         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
64889         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
64890
64891 2000-01-04  Jim Meyering  <meyering@ascend.com>
64892
64893         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
64894         jm_STRUCT_DIRENT_D_TYPE.
64895         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
64896         jm_STRUCT_DIRENT_D_INO.
64897         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
64898         jm_STRUCT_UTIMBUF.
64899         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
64900         renamings.
64901         * m4/utime.m4: Likewise.
64902
64903         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
64904         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
64905
64906 2000-01-03  Paul Eggert  <eggert@twinsun.com>
64907
64908         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
64909         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
64910
64911 2000-01-02  Jim Meyering  <meyering@ascend.com>
64912
64913         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
64914         remember if this is necessary.
64915
64916 1999-12-26  Jim Meyering  <meyering@ascend.com>
64917
64918         * m4/jm-macros.m4: Use it here.
64919         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
64920
64921 1999-12-23  Jim Meyering  <meyering@ascend.com>
64922
64923         * m4/jm-macros.m4: Check for clock_gettime (moved from
64924         fileutils/configure.in)
64925         Check for gettimeofday.
64926
64927 1999-12-20  Jim Meyering  <meyering@ascend.com>
64928
64929         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
64930         autoconf-2.14a-1999-12-20.
64931
64932 1999-12-19  Jim Meyering  <meyering@ascend.com>
64933
64934         * m4/lstat-slash.m4: New file.
64935         * m4/jm-macros.m4: Use the new macro:
64936         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64937
64938 1999-12-07  Jim Meyering  <meyering@ascend.com>
64939
64940         * m4/perl.m4: Require that File::Compare be available, too.
64941         Too many systems seem to lack it.
64942
64943         * m4/strftime.m4: Add checks for most of the cpp macros tested in
64944         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
64945
64946 1999-11-18  Paul Eggert  <eggert@twinsun.com>
64947
64948         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
64949         problem with the QNX 4.25 shell, which doesn't propagate exit
64950         status of failed commands inside shell assignments.
64951
64952 1999-11-17  Jim Meyering  <meyering@ascend.com>
64953
64954         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
64955
64956 1999-11-07  Jim Meyering  <meyering@ascend.com>
64957
64958         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
64959
64960 1999-11-06  Jim Meyering  <meyering@ascend.com>
64961
64962         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
64963         * m4/jm-macros.m4 (jm_MACROS): Use it here.
64964
64965 1999-11-05  Jim Meyering  <meyering@ascend.com>
64966
64967         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
64968         configure.in of textutils, fileutils, and sh-utils into this one
64969         (shared between those packages) file.
64970         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
64971         AC_STRUCT_ST_BLKSIZE.
64972
64973 1999-11-03  Jim Meyering  <meyering@ascend.com>
64974
64975         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
64976         of AC_CHECK_TYPE checks includes unistd.h.
64977         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
64978         Suggestion from Akim Demaille.
64979
64980 1999-10-30  Jim Meyering  <meyering@ascend.com>
64981
64982         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
64983         m4-quoted string.
64984         * m4/ls-mntd-fs.m4: Likewise.
64985         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
64986         * m4/jm-winsz1.m4: Likewise.
64987
64988         * m4/const.m4: Remove file, since the fix made it into the experimental
64989         version of autoconf.
64990         * m4/mktime.m4: Likewise.
64991
64992         * m4/check-type.m4: Remove file, now that the latest version of
64993         AC_CHECK_TYPE takes a third arg to specify additional #includes.
64994
64995         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
64996         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
64997         AC_CHECK_TYPE.
64998
64999 1999-10-04  Jim Meyering  <meyering@ascend.com>
65000
65001         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
65002
65003 1999-09-22  Paul Eggert  <eggert@twinsun.com>
65004
65005         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
65006         2.95.1 bug with HP-UX 10.20.
65007
65008 1999-09-17  Jim Meyering  <meyering@ascend.com>
65009
65010         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
65011         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
65012         due to missing strdup (against sh-utils-2.0).
65013
65014 1999-08-29  Jim Meyering  <meyering@ascend.com>
65015
65016         * m4/jm-macros.m4: Require jm_BISON.
65017         * m4/bison.m4: New file.
65018
65019 1999-08-17  Paul Eggert  <eggert@twinsun.com>
65020
65021         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
65022         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
65023
65024 1999-08-05  Jim Meyering  <meyering@ascend.com>
65025
65026         * m4/getline.m4: Rename test file from conftestdata to conftest.data
65027         to avoid conflicts with `conftest' on 8+3 filesystems.
65028         Suggestion from Eli Zaretskii.
65029
65030 1999-08-04  Jim Meyering  <meyering@ascend.com>
65031
65032         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
65033         fileutils and sh-utils (textutils's getline test was inadequate).
65034         (AM_FUNC_GETLINE): Run this test.
65035         (AC_CHECK_FUNCS): Check for getdelim.
65036         Reported by Bob Proulx.
65037
65038 1999-08-02  Jim Meyering  <meyering@ascend.com>
65039
65040         * m4/jm-macros.m4: Add a comment.
65041
65042 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65043
65044         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
65045         <inttypes.h> defines strtoumax as a macro (and not as a
65046         function).
65047
65048 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65049
65050         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
65051         that we can shift, multiply and divide unsigned long long
65052         values; Ultrix cc can't do it.
65053
65054 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65055
65056         * m4/mktime.m4: New file, which is a preview of what should appear
65057         in the next public autoconf release.
65058
65059 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65060
65061         * m4/lfs.m4: Remove this file.
65062         * m4/largefile.m4: New file.  It contains the old contents of
65063         lfs.m4, except that all names with prefix AC_LFS have been
65064         changed to use the prefix AC_SYS_LARGEFILE instead, to be
65065         compatible with future autoconf versions.  Also, some minor m4
65066         quoting problems have been fixed.
65067
65068 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65069
65070         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
65071         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
65072         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
65073         and simplify the shell code.
65074
65075 1999-08-01  Jim Meyering  <meyering@ascend.com>
65076
65077         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
65078         m4.
65079
65080 1999-07-20  Jim Meyering  <meyering@ascend.com>
65081
65082         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
65083
65084 1999-07-15  Jim Meyering  <meyering@ascend.com>
65085
65086         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
65087
65088 1999-05-22  Jim Meyering  <meyering@ascend.com>
65089
65090         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
65091
65092 1999-05-20  Jim Meyering  <meyering@ascend.com>
65093
65094         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
65095         Add a colon after each `then' in case $4 is empty.
65096
65097 1999-05-16  Jim Meyering  <meyering@ascend.com>
65098
65099         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
65100
65101 1999-05-10  Jim Meyering  <meyering@ascend.com>
65102
65103         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
65104
65105         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
65106         AC_FUNC_MKTIME.
65107
65108 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
65109
65110         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
65111
65112 1999-05-04  Paul Eggert  <eggert@twinsun.com>
65113
65114         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
65115         not CPPFLAGS, so that linking works correctly in IRIX.
65116
65117 1999-04-30  Paul Eggert  <eggert@twinsun.com>
65118
65119         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
65120
65121 1999-04-20  Paul Eggert  <eggert@twinsun.com>
65122
65123         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
65124         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
65125         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
65126         jm_AC_TYPE_UNSIGNED_LONG_LONG.
65127         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
65128
65129         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
65130
65131 1999-04-20  Jim Meyering  <meyering@ascend.com>
65132
65133         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
65134         AC_REPLACE xstroull if necessary.  From Paul Eggert.
65135         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
65136
65137 1999-04-18  Jim Meyering  <meyering@ascend.com>
65138
65139         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
65140         * m4/jm-macros.m4: Use it.
65141
65142 1999-04-06  Jim Meyering  <meyering@ascend.com>
65143
65144         * m4/strftime.m4: Remove test for %f.
65145
65146 1999-03-29  Jim Meyering  <meyering@ascend.com>
65147
65148         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
65149         superset of the AC_TYPE_* checks in the textutils, fileutils,
65150         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
65151         AC_TYPE_PID_T.
65152
65153 1999-03-28  Jim Meyering  <meyering@ascend.com>
65154
65155         * m4/jm-macros.m4: Define GNU_PACKAGE here.
65156         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
65157         replaced e.g., in the *.sh files of the sh-utils.
65158
65159 1999-03-20  Jim Meyering  <meyering@ascend.com>
65160
65161         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
65162         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
65163         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
65164
65165 1999-03-19  Jim Meyering  <meyering@ascend.com>
65166
65167         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
65168
65169 1999-03-12  Jim Meyering  <meyering@ascend.com>
65170
65171         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
65172
65173 1999-03-07  Jim Meyering  <meyering@ascend.com>
65174
65175         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
65176         declared.
65177
65178 1999-02-17  Jim Meyering  <meyering@ascend.com>
65179
65180         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
65181         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
65182
65183 1999-02-07  Jim Meyering  <meyering@ascend.com>
65184
65185         * m4/group-member.m4: New file -- extracted from sh-utils'
65186         configure.in.
65187
65188         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
65189         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
65190
65191 1999-02-06  Jim Meyering  <meyering@ascend.com>
65192
65193         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
65194         * m4/fnmatch.m4: Likewise.
65195         * m4/getgroups.m4: Likewise.
65196         * m4/lstat.m4: Likewise.
65197         * m4/malloc.m4: Likewise.
65198         * m4/putenv.m4: Likewise.
65199         * m4/realloc.m4: Likewise.
65200         * m4/regex.m4: Likewise.
65201         * m4/stat.m4: Likewise.
65202         * m4/strftime.m4: Likewise.
65203         Suggestion from Alain Magloire.
65204
65205         * m4/chown.m4: Use `.$ac_objext', not `.o'.
65206         * m4/fnmatch.m4: Likewise.
65207         * m4/getgroups.m4: Likewise.
65208         * m4/getline.m4: Likewise.
65209         * m4/lstat.m4: Likewise.
65210         * m4/malloc.m4: Likewise.
65211         * m4/memcmp.m4: Likewise.
65212         * m4/putenv.m4: Likewise.
65213         * m4/realloc.m4: Likewise.
65214         * m4/regex.m4: Likewise.
65215         * m4/stat.m4: Likewise.
65216         * m4/strftime.m4: Likewise.
65217         Suggestion from Alain Magloire.
65218
65219         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
65220         an argument.
65221
65222         * m4/regex.m4: Add a run-time Test for proper operation of
65223         re_compile_pattern.
65224
65225 1999-01-31  Jim Meyering  <meyering@ascend.com>
65226
65227         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
65228
65229 1999-01-30  Jim Meyering  <meyering@ascend.com>
65230
65231         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
65232
65233         * m4/jm-mktime.m4: Make this a wrapper around the official
65234         AM_FUNC_MKTIME rather than my private copy, now that the official one
65235         is up to date.
65236         * m4/mktime.m4: Remove file.
65237
65238         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
65239         * m4/uptime.m4: Likewise.
65240         * m4/uintmax_t.m4: Likewise.
65241
65242 1999-01-28  Jim Meyering  <meyering@ascend.com>
65243
65244         * m4/jm-macros.m4: Use jm_AFS.
65245         * m4/afs.m4: New file (from fileutils' configure.in).
65246
65247         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
65248         * m4/chown.m4: Likewise.
65249         * m4/d-ino.m4: Likewise.
65250         * m4/d-type.m4: Likewise.
65251         * m4/fnmatch.m4: Likewise.
65252         * m4/getgroups.m4: Likewise.
65253         * m4/gettext.m4: Likewise.
65254         * m4/jm-mktime.m4: Likewise.
65255         * m4/jm-winsz2.m4: Likewise.
65256         * m4/lcmessage.m4: Likewise.
65257         * m4/ls-mntd-fs.m4: Likewise.
65258         * m4/malloc.m4: Likewise.
65259         * m4/memcmp.m4: Likewise.
65260         * m4/putenv.m4: Likewise.
65261         * m4/realloc.m4: Likewise.
65262         * m4/st_mtim.m4: Likewise.
65263         * m4/strftime.m4: Likewise.
65264
65265 1999-01-16  Jim Meyering  <meyering@ascend.com>
65266
65267         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
65268         (ARGMATCH_DIE_DECL): Define.
65269
65270 1999-01-12  Jim Meyering  <meyering@ascend.com>
65271
65272         * m4/Makefile.am.in: Rewrite to avoid using fmt.
65273         Reported by Lars Hecking.
65274
65275 1999-01-10  Jim Meyering  <meyering@ascend.com>
65276
65277         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
65278         gross kludge.
65279         * m4/inttypes_h.m4: Likewise.
65280         * m4/lstat.m4: Likewise.
65281         * m4/malloc.m4: Likewise.
65282         * m4/readdir.m4: Likewise.
65283         * m4/realloc.m4: Likewise.
65284         * m4/st_dm_mode.m4: Likewise.
65285         * m4/stat.m4: Likewise.
65286         * m4/utimbuf.m4: Likewise.
65287         * m4/utimes.m4: Likewise.
65288
65289         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
65290         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
65291         comments in config.h.in are meaningful.
65292
65293         * m4/jm-macros.m4: Require autoconf-2.13 here.
65294
65295         * m4/regex.m4: By default, don't use the included regex.c on systems
65296         with glibc 2.  Suggestion from Uli Drepper.
65297
65298 1999-01-02  Jim Meyering  <meyering@ascend.com>
65299
65300         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
65301
65302 1998-12-18  Jim Meyering  <meyering@ascend.com>
65303
65304         * m4/Makefile.am.in (Makefile.am): Simplify rule.
65305         Based on a suggestion from Lars Hecking.
65306
65307 1998-11-16  Paul Eggert  <eggert@twinsun.com>
65308
65309         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
65310
65311 1998-11-16  Jim Meyering  <meyering@ascend.com>
65312
65313         * m4/lfs.m4: Double-quote the `uname...` expression.
65314
65315 1998-11-14  Jim Meyering  <meyering@ascend.com>
65316
65317         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
65318         * m4/stat.m4: Likewise.
65319
65320 1998-11-03  Jim Meyering  <meyering@ascend.com>
65321
65322         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
65323         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
65324
65325 1998-10-18  Jim Meyering  <meyering@ascend.com>
65326
65327         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
65328
65329 1998-10-17  Jim Meyering  <meyering@ascend.com>
65330
65331         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
65332         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
65333         calls for those previously hard-coded headers.  Instead, take a new
65334         parameter.
65335         (jm_CHECK_DECLARATIONS): Reflect interface change.
65336         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
65337         (jm_CHECK_DECL_LOCALTIME_R): New macro.
65338
65339         * m4/mktime.m4: Test for spring-forward gap before long-running test.
65340
65341 1998-10-14  Jim Meyering  <meyering@ascend.com>
65342
65343         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
65344         instead of "TZ=America/Vancouver".  From Paul Eggert.
65345
65346 1998-10-11  Jim Meyering  <meyering@ascend.com>
65347
65348         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
65349         This adds a test for a recently added compatibility fix for mktime.c.
65350         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
65351
65352 1998-09-27  Jim Meyering  <meyering@ascend.com>
65353
65354         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
65355
65356         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
65357         ../configure.in, including a change from Gordon Matzigkeit to allow
65358         cross-compiling for the Hurd.
65359
65360         * m4/glibc.m4: New file/macro to test for the GNU C Library
65361         versions 1 and 2.  From Gordon Matzigkeit.
65362         Indent.
65363
65364 1998-09-21  Jim Meyering  <meyering@ascend.com>
65365
65366         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
65367
65368 1998-08-18  Paul Eggert  <eggert@twinsun.com>
65369
65370         Port nanosecond-resolution times to UnixWare 2.1.2 and
65371         pedantic Solaris 2.6.
65372
65373         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
65374         AC_STRUCT_ST_MTIM.
65375         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
65376         Generate name of ns member, instead of just 1 or undef.
65377         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
65378
65379 1998-08-15  Jim Meyering  <meyering@ascend.com>
65380
65381         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
65382         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
65383         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
65384         instead of jm_TYPE_SSIZE_T.
65385
65386 1998-08-12  Jim Meyering  <meyering@ascend.com>
65387
65388         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
65389
65390 1998-08-02  Jim Meyering  <meyering@ascend.com>
65391
65392         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
65393         in acconfig.h manually.
65394
65395 1998-07-31  Paul Eggert  <eggert@twinsun.com>
65396
65397         * m4/st_mtim.m4: New file.
65398
65399 1998-07-28  Jim Meyering  <meyering@ascend.com>
65400
65401         * m4/utimes.m4: Undef stat.
65402
65403 1998-07-25  Jim Meyering  <meyering@ascend.com>
65404
65405         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
65406         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
65407
65408 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
65409
65410         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
65411         uid and gid actually remain unchanged.
65412
65413 1998-07-07  Jim Meyering  <meyering@ascend.com>
65414
65415         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
65416
65417 1998-07-04  Jim Meyering  <meyering@ascend.com>
65418
65419         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
65420         to prove that this macro can be used in packages without regex.c.
65421
65422 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
65423
65424         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
65425         is to be used.
65426
65427 1998-07-03  Jim Meyering  <meyering@ascend.com>
65428
65429         * m4/gettext.m4: Add -lintl if it's found to be necessary.
65430
65431         * m4/gettext.m4: New file -- from gettext-0.10.35.
65432         * m4/lcmessage.m4: Likewise.
65433         * m4/progtest.m4: Likewise.
65434
65435         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
65436         * m4/jm-macros.m4: Require the new macro.
65437
65438 1998-06-29  Jim Meyering  <meyering@ascend.com>
65439
65440         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
65441         for the definition of NGROUPS (used in a system header included
65442         by sys/mount.h).
65443
65444 1998-06-28  Jim Meyering  <meyering@ascend.com>
65445
65446         * m4/ls-mntd-fs.m4: New file.
65447         * m4/fstypename.m4: New file.
65448
65449         * m4/jm-macros.m4: Require the new macro.
65450         * m4/jm-glibc-io.m4: New file.
65451
65452 1998-05-19  Jim Meyering  <meyering@ascend.com>
65453
65454         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
65455         * m4/lchown.m4: New file.
65456
65457         * m4/Makefile.am.in: New file.
65458         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
65459
65460 1998-05-14  Jim Meyering  <meyering@ascend.com>
65461
65462         * m4/Makefile.am (EXTRA_DIST): Add them.
65463         * m4/jm-macros.m4: New file.
65464         * m4/utimbuf.m4: New file.
65465
65466 1998-05-12  Jim Meyering  <meyering@ascend.com>
65467
65468         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
65469
65470 1998-05-11  Jim Meyering  <meyering@ascend.com>
65471
65472         * m4/isc-posix.m4: New file.
65473
65474 1998-05-10  Jim Meyering  <meyering@ascend.com>
65475
65476         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
65477
65478 1998-05-09  Jim Meyering  <meyering@ascend.com>
65479
65480         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
65481         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
65482         with automake.
65483
65484         * m4/ssize_t.m4: New file.
65485         * m4/mktime.m4: Remove file -- the new automake has this now.
65486
65487 1998-04-26  Jim Meyering  <meyering@ascend.com>
65488
65489         * m4/assert.m4: New file.
65490         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
65491
65492 1998-04-05  Jim Meyering  <meyering@ascend.com>
65493
65494         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
65495         (jm_PREREQ): Use it here.
65496
65497 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
65498
65499         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
65500         in acconfig.h.
65501
65502 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
65503
65504         * m4/prereq.m4: New file.
65505         * m4/error.m4: New file.
65506         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
65507
65508 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
65509
65510         * m4/getline.m4: Don't set am_cv_func_working_getline before the
65511         cache-check for the same variable -- that defeated the purpose of
65512         the test; the test program was never run.  This was a problem only
65513         on systems with losing getline functions -- HP-UX 10.20 is one.
65514         Reported by Bjorn Helgaas.
65515
65516 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
65517
65518         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
65519
65520 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
65521
65522         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
65523
65524         * m4/const.m4: New file.  Use an initializer in this declaration
65525         typedef int charset[2]; const charset x;
65526         Reported by Bob Glickstein.
65527
65528 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
65529
65530         * m4/chown.m4: Fix reversed types on -1 args to chown.
65531         From Kaveh Ghazi.
65532
65533 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
65534
65535         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
65536         Add lseek and memchr.
65537
65538         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
65539         T.E.Dickey <dickey@clark.net> said that some older preprocessors
65540         have a 20-character limit on names.
65541
65542 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
65543
65544         * m4/inttypes_h.m4: New file.
65545         * m4/uintmax_t.m4: New file.
65546         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
65547
65548
65549         -----
65550
65551         Local Variables:
65552         coding: utf-8
65553         End:
65554
65555         Copyright (C) 1997-2010 Free Software Foundation, Inc.
65556
65557         Copying and distribution of this file, with or without
65558         modification, are permitted provided the copyright notice
65559         and this notice are preserved.