4d3ed92ee00efc1aecd3f4a200a4e4be3efd9e9b
[gnulib.git] / ChangeLog
1 2007-11-11  Bruno Haible  <bruno@clisp.org>
2
3         * modules/gperf: New file.
4         * modules/iconv_open (Depends-on): Add it.
5         (Makefile.am): Remove the GPERF definition.
6
7 2007-11-11  Bruno Haible  <bruno@clisp.org>
8
9         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
10         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
11
12 2007-11-11  Bruno Haible  <bruno@clisp.org>
13
14         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
15         (usage): Remove function.
16
17 2007-11-11  Bruno Haible  <bruno@clisp.org>
18
19         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
20         gl_FUNC_CEILF_LIBS.
21         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
22         gl_FUNC_CEIL_LIBS.
23         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
24         gl_FUNC_CEILL_LIBS.
25         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
26         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
27         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
28
29 2007-11-11  Bruno Haible  <bruno@clisp.org>
30
31         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
32         roundf were declared but do not exist on functions.
33         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
34         roundl were declared but do not exist on functions.
35         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
36         HAVE_FLOORL_AND_CEILL, respectively.
37         Needed for Sun C on Solaris 10.
38
39 2007-11-11  Bruno Haible  <bruno@clisp.org>
40
41         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
42         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
43         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
44         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
45         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
46         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
47         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
48         HAVE_DECL_ROUNDF.
49         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
50         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
51         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
52         of HAVE_DECL_ROUND*.
53         * modules/math (Makefile.am): Update.
54
55 2007-11-10  Bruno Haible  <bruno@clisp.org>
56
57         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
58         ptrdiff_t as m4/intl.m4.
59
60 2007-11-10  Jim Meyering  <meyering@redhat.com>
61
62         Avoid link failure for the argmatch test.
63         * tests/test-argmatch.c (usage): Define function to avoid a link
64         failure: argmatch_die requires a usage function.
65
66 2007-11-09  Bruno Haible  <bruno@clisp.org>
67
68         * doc/functions/snprintf.texi: Mention BeOS deficiency.
69         * doc/functions/vsnprintf.texi: Likewise.
70         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
71         with a size argument < 2.
72
73 2007-11-09  Bruno Haible  <bruno@clisp.org>
74
75         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
76         buffer. Fixes an inefficiency introduced on 2007-11-03.
77
78 2007-11-09  Bruno Haible  <bruno@clisp.org>
79
80         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
81         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
82
83 2007-11-08  Jim Meyering  <meyering@redhat.com>
84
85         Change cache variable name prefix "jm_" to "gl_" everywhere.
86         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
87         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
88         * m4/uptime.m4: s/gl_/jm_/
89
90 2007-11-07  Bruno Haible  <bruno@clisp.org>
91
92         Update to GNU gettext 0.17.
93         * m4/intl.m4: Update to GNU gettext 0.17.
94         * m4/po.m4: Likewise.
95         * modules/gettext (Files): Remove m4/ulonglong.m4.
96         (configure.ac): Require gettext infrastructure from version 0.17.
97
98 2007-11-06  Bruno Haible  <bruno@clisp.org>
99
100         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
101         symbolic values are not defined in a public header.
102         * lib/freadable.c (freadable) [QNX]: Likewise.
103         * lib/freadahead.c (freadahead) [QNX]: Likewise.
104         * lib/freading.c (freading) [QNX]: Likewise.
105         * lib/fseterr.c (fseterr) [QNX]: Likewise.
106         * lib/fwritable.c (fwritable) [QNX]: Likewise.
107         * lib/fwriting.c (fwriting) [QNX]: Likewise.
108         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
109         Reported by Alain Magloire.
110
111         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
112
113 2007-11-05  Bruno Haible  <bruno@clisp.org>
114
115         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
116         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
117         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
118         Reported by Eric Blake.
119
120 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
121             Bruno Haible  <bruno@clisp.org>
122
123         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
124         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
125         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
126         (malloc): Undefine also before including <stdlib.h>.
127         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
128         Needed on OSF/1 4.0.
129
130 2007-11-05  Jim Meyering  <meyering@redhat.com>
131
132         git-version-gen: sync from coreutils.
133         * build-aux/git-version-gen: Add comments.
134         Change the first '-' to '.' in the snapshot version string,
135         e.g., 6.9-377-08144 -> 6.9.377-08144
136         Remove first parameter.
137         Don't declare a version "-dirty" merely because a time
138         stamp has changed.
139
140 2007-11-04  Bruno Haible  <bruno@clisp.org>
141
142         * lib/lock.h: Protect all macro definitions containing an 'if'
143         statement through a "do { ... } while (0)".
144         * lib/tls.h: Likewise.
145
146 2007-11-04  Bruno Haible  <bruno@clisp.org>
147
148         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
149
150 2007-11-04  Bruno Haible  <bruno@clisp.org>
151
152         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
153         * modules/fprintf-posix (Depends-on): Add nocrash.
154         * modules/snprintf-posix (Depends-on): Likewise.
155         * modules/sprintf-posix (Depends-on): Likewise.
156         * modules/vasnprintf-posix (Depends-on): Likewise.
157         * modules/vasprintf-posix (Depends-on): Likewise.
158         * modules/vfprintf-posix (Depends-on): Likewise.
159         * modules/vsnprintf-posix (Depends-on): Likewise.
160         * modules/vsprintf-posix (Depends-on): Likewise.
161         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
162         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
163         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
164         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
165         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
166         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
167         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
168
169 2007-11-04  Bruno Haible  <bruno@clisp.org>
170
171         * modules/nocrash: New file.
172         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
173         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
174
175 2007-11-04  Bruno Haible  <bruno@clisp.org>
176
177         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
178         precision handling.
179         * tests/test-vasprintf-posix.c (test_function): Likewise.
180         * tests/test-snprintf-posix.h (test_function): Likewise.
181         * tests/test-sprintf-posix.h (test_function): Likewise.
182
183         Fix *printf behaviour for large precisions on mingw and BeOS.
184         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
185         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
186         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
187         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
188         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
189         gl_PRINTF_PRECISION and test its result. Invoke
190         gl_PREREQ_VASNPRINTF_PRECISION.
191         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
192         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
193         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
194         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
195         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
196         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
197         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
198         * doc/functions/fprintf.texi: Update.
199         * doc/functions/printf.texi: Update.
200         * doc/functions/snprintf.texi: Update.
201         * doc/functions/sprintf.texi: Update.
202         * doc/functions/vfprintf.texi: Update.
203         * doc/functions/vprintf.texi: Update.
204         * doc/functions/vsnprintf.texi: Update.
205         * doc/functions/vsprintf.texi: Update.
206
207 2007-11-04  Bruno Haible  <bruno@clisp.org>
208
209         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
210
211 2007-11-04  Bruno Haible  <bruno@clisp.org>
212
213         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
214         Reported by Sylvain Beucler <beuc@gnu.org>.
215
216 2007-11-03  Bruno Haible  <bruno@clisp.org>
217
218         * tests/test-fprintf-posix2.sh: New file.
219         * tests/test-fprintf-posix2.c: New file.
220         * modules/fprintf-posix-tests (Files): Add them.
221         (TESTS): Add test-fprintf-posix2.sh.
222         (configure.ac): Check for getrlimit and setrlimit.
223         (check_PROGRAMS): Add test-fprintf-posix2.
224
225         * tests/test-printf-posix2.sh: New file.
226         * tests/test-printf-posix2.c: New file.
227         * modules/printf-posix-tests (Files): Add them.
228         (TESTS): Add test-printf-posix2.sh.
229         (configure.ac): Check for getrlimit and setrlimit.
230         (check_PROGRAMS): Add test-printf-posix2.
231
232         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
233         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
234         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
235         (decode_double): New function, copied from decode_long_double.
236         (scale10_round_decimal_decoded): New function, extracted from
237         scale10_round_decimal_long_double.
238         (scale10_round_decimal_long_double): Use it.
239         (scale10_round_decimal_double): New function.
240         (floorlog10): New function.
241         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
242         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
243         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
244         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
245         gl_PRINTF_ENOMEM and test its result. Invoke
246         gl_PREREQ_VASNPRINTF_ENOMEM.
247         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
248         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
249         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
250         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
251         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
252         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
253         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
254         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
255         * modules/snprintf-posix (Depends-on): Likewise.
256         * modules/sprintf-posix (Depends-on): Likewise.
257         * modules/vasnprintf-posix (Depends-on): Likewise.
258         * modules/vasprintf-posix (Depends-on): Likewise.
259         * modules/vfprintf-posix (Depends-on): Likewise.
260         * modules/vsnprintf-posix (Depends-on): Likewise.
261         * modules/vsprintf-posix (Depends-on): Likewise.
262         * doc/functions/fprintf.texi: Update.
263         * doc/functions/printf.texi: Update.
264         * doc/functions/snprintf.texi: Update.
265         * doc/functions/sprintf.texi: Update.
266         * doc/functions/vfprintf.texi: Update.
267         * doc/functions/vprintf.texi: Update.
268         * doc/functions/vsnprintf.texi: Update.
269         * doc/functions/vsprintf.texi: Update.
270
271 2007-11-03  Bruno Haible  <bruno@clisp.org>
272
273         * modules/frexp-nolibm-tests: New file.
274
275         * modules/frexp-nolibm: New file.
276         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
277
278 2007-11-03  Bruno Haible  <bruno@clisp.org>
279
280         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
281         value is C99 compliant.
282         Needed for OSF/1 5.1.
283
284 2007-11-03  Bruno Haible  <bruno@clisp.org>
285
286         Fix out-of-memory handling of vasnprintf.
287         * lib/printf-parse.c: Include <errno.h>.
288         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
289         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
290         is already set.
291
292 2007-11-02  Eric Blake  <ebb9@byu.net>
293
294         Fix tests on cygwin.
295         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
296
297 2007-11-01  Bruno Haible  <bruno@clisp.org>
298
299         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
300         warning.
301         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
302         needed for POSIX compatibility.
303
304 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
305
306         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
307         for compatibility with GNU.
308
309 2007-11-01  Bruno Haible  <bruno@clisp.org>
310
311         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
312         (putenv): Renamed from rpl_putenv. Change argument type from
313         'const char *' to 'char *'.
314         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
315         of defining putenv in config.h, just set REPLACE_PUTENV.
316         * modules/putenv (Depends-on): Add stdlib.
317         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
318         (Include): Use <stdlib.h>.
319         * lib/stdlib.in.h (putenv): New declaration.
320         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
321         REPLACE_PUTENV.
322         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
323         REPLACE_PUTENV.
324         Needed for MacOS X 10.5.0.
325         Reported by Peter O'Gorman <peter@pogma.com>.
326
327 2007-11-01  Jim Meyering  <meyering@redhat.com>
328
329         Treat an empty date string exactly like "0".
330         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
331         if the remaining date string (to be parsed) is empty, use "0".
332         Reported by Mischa Molhoek and discussed in this thread:
333         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
334
335 2007-10-31  Bruno Haible  <bruno@clisp.org>
336
337         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
338         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
339         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
340         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
341         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
342         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
343
344 2007-10-31  Bruno Haible  <bruno@clisp.org>
345
346         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
347         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
348         (AC_TYPE_LONG_LONG_INT): Use it.
349         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
350         it as well.
351         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
352         to m4/longlong.m4.
353         * modules/stdint (Files): Remove m4/ulonglong.m4.
354         * modules/strtoull (Files): Use m4/longlong.m4 instead of
355         m4/ulonglong.m4.
356         * modules/strtoumax (Files): Likewise.
357
358 2007-10-30  Bruno Haible  <bruno@clisp.org>
359
360         * modules/xvasprintf-posix: New file.
361         Suggested by Eric Blake.
362
363 2007-10-30  Bruno Haible  <bruno@clisp.org>
364
365         * modules/xprintf-posix-tests: New file.
366         * tests/test-xprintf-posix.sh: New file.
367         * tests/test-xprintf-posix.c: New file.
368         * tests/test-xfprintf-posix.c: New file.
369
370         * modules/xprintf-posix: New file.
371
372 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
373
374         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
375         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
376         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
377
378 2007-10-29  Bruno Haible  <bruno@clisp.org>
379
380         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
381         contain the special marker '_cv_'.
382         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
383         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
384         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
385         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
386         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
387         Reported by Ralf Wildenhues.
388
389 2007-10-29  Bruno Haible  <bruno@clisp.org>
390
391         * gnulib-tool (func_import): When --lgpl is not specified, set
392         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
393         GPLv3.
394         Reported by Simon Josefsson.
395
396 2007-10-28  Bruno Haible  <bruno@clisp.org>
397
398         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
399         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
400         HAVE_DECL_ISFINITE.
401         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
402         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
403         HAVE_DECL_ISFINITE.
404
405 2007-10-28  Bruno Haible  <bruno@clisp.org>
406
407         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
408         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
409
410 2007-10-28  Bruno Haible  <bruno@clisp.org>
411
412         Fix link errors with Sun C 5.0 on Solaris 10.
413         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
414         function is declared but not present in the compiler's libm.
415         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
416         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
417         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
418         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
419         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
420         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
421         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
422         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
423         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
424         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
425         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
426         HAVE_DECL_FLOORL.
427
428 2007-10-28  Bruno Haible  <bruno@clisp.org>
429
430         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
431         gl_FUNC_FLOORL. Cache the result.
432         (gl_FUNC_FLOORL): Use it.
433         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
434         gl_FUNC_CEILL. Cache the result.
435         (gl_FUNC_CEILL): Use it.
436
437         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
438         gl_FUNC_FLOOR. Cache the result.
439         (gl_FUNC_FLOOR): Use it.
440         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
441         gl_FUNC_CEIL. Cache the result.
442         (gl_FUNC_CEIL): Use it.
443
444         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
445         gl_FUNC_FLOORF. Cache the result.
446         (gl_FUNC_FLOORF): Use it.
447         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
448         gl_FUNC_CEILF. Cache the result.
449         (gl_FUNC_CEILF): Use it.
450
451 2007-10-28  Bruno Haible  <bruno@clisp.org>
452
453         * gnulib-tool: Allow specifying the LGPL version number through
454         --lgpl=2 or --lgpl=3.
455         (func_usage): Document --lgpl with argument.
456         Handle --lgpl=... arguments.
457         (func_import): Recognize also gl_LGPL calls with an argument. When
458         --lgpl=2 is used and the module's license is just LGPL, report an
459         error. Set sed_transform_lib_file according to the lgpl variable. In
460         the generated files, use --lgpl or gl_LGPL invocations with argument,
461         if necessary.
462         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
463         an LGPv2+ license.
464         * doc/gnulib-tool.texi (Modified imports): Update explanation of
465         gl_LGPL macro.
466
467 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
468             Bruno Haible  <bruno@clisp.org>
469
470         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
471         (u16_uctomb_aux): Likewise.
472         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
473         !HAVE_INLINE.
474         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
475
476 2007-10-28  Bruno Haible  <bruno@clisp.org>
477
478         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
479         Invoke AM_GETTEXT_OPTION if it exists.
480         * modules/vasprintf: Likewise.
481         * modules/verror: Likewise.
482         * modules/xprintf: Likewise.
483         * modules/xvasprintf: Likewise.
484
485 2007-10-27  Ben Pfaff  <blp@gnu.org>
486
487         * lib/math.in.h: Define isfinite macro and prototypes for
488         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
489         implementations.
490         * m4/math_h.m4: New substitutions for isfinite module.
491         * lib/isfinite.c: New file.
492         * m4/isfinite.m4: New file.
493         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
494         * modules/isfinite: New file.
495         * modules/isfinite-tests: New file.
496         * tests/tests-isfinite.c: New file.
497         * doc/functions/isfinite.texi: Mention isfinite module.
498         * MODULES.html.sh: Mention new module.
499
500 2007-10-27  Ben Pfaff  <blp@gnu.org>
501
502         Ralf Wildenhues reported that Tru64 4.0D declares the round
503         functions but does not have definitions.
504         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
505         cannot be found in any library, set the output variable to
506         "missing" instead of "".
507         * m4/round.m4: Also use our substitute if we cannot find round in
508         any library, even if it is declared.
509         * m4/roundf.m4: Likewise for roundf.
510         * m4/roundl.m4: Likewise for roundl.
511         * lib/math.in.h: Undefine roundf, round, roundl before defining
512         their replacements, to allow for hypothetical systems where these
513         may be defined as macros but not available in libraries.
514
515 2007-10-27  Bruno Haible  <bruno@clisp.org>
516
517         * doc/gnulib.texi: Invoke @firstparagraphindent.
518         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
519         changes in gnulib.
520         (Source changes): New section.
521
522 2007-10-26  Bruno Haible  <bruno@clisp.org>
523
524         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
525         borrowed from autoconf.
526
527 2007-10-26  Bruno Haible  <bruno@clisp.org>
528
529         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
530         strerror returned the empty string. Needed on HP-UX 11.00.
531
532 2007-10-24  Micah Cowan  <micah@cowan.name>
533
534         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
535         * build-aux/bootstrap: Remove support for now-unnecessary option,
536         --cvs-user, and envvars CVS_USER, CVS_RSH.
537
538 2007-10-24  Jim Meyering  <meyering@redhat.com>
539
540         Avoid diagnostics from sha1sum when there is no cached checksum.
541         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
542         if the po.s1 file hasn't been created yet.
543
544         * build-aux/bootstrap: Sync from coreutils:
545         2007-10-24  Jim Meyering  <meyering@redhat.com>
546         Get gnulib from the git repository, not from an obsolete cvs one.
547         * build-aux/bootstrap: Suggestion from Micah Cowan.
548         2007-10-04  Jim Meyering  <jim@meyering.net>
549         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
550         (update_po_files): Work also when there are no .po files in po/.
551
552 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
553
554         * README: Append ".git" to git and cg examples.
555         Problem reported by Benoit Sigoure.
556
557 2007-10-23  Micah Cowan  <micah@cowan.name>
558
559         * users.txt: Add wget.
560
561 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
562
563         Fix linking of some unistdio tests on FreeBSD.
564         * modules/unistdio/u16-vsnprintf-tests
565         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
566         * modules/unistdio/u16-vsprintf-tests
567         (test_u16_vsnprintf1_LDADD): Likewise.
568         * modules/unistdio/u32-vsnprintf-tests
569         (test_u32_vsnprintf1_LDADD): Likewise.
570         * modules/unistdio/u32-vsprintf-tests
571         (test_u32_vsprintf1_LDADD): Likewise.
572         * modules/unistdio/u8-vsnprintf-tests
573         (test_u8_vsnprintf1_LDADD): Likewise.
574         * modules/unistdio/u8-vsprintf-tests
575         (test_u8_vsprintf1_LDADD): Likewise.
576         * modules/unistdio/ulc-vsnprintf-tests
577         (test_ulc_vsnprintf1_LDADD): Likewise.
578         * modules/unistdio/ulc-vsprintf-tests
579         (test_ulc_vsprintf1_LDADD): Likewise.
580
581         Fix linking of some uniconv tests on FreeBSD.
582         * modules/uniconv/u16-conv-from-enc-tests
583         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
584         * modules/uniconv/u16-conv-to-enc-tests
585         (test_u16_conv_to_enc_LDADD): Likewise.
586         * modules/uniconv/u16-strconv-from-enc-tests
587         (test_u16_strconv_from_enc_LDADD): Likewise.
588         * modules/uniconv/u16-strconv-to-enc-tests
589         (test_u16_strconv_to_enc_LDADD): Likewise.
590         * modules/uniconv/u32-conv-from-enc-tests
591         (test_u32_conv_from_enc_LDADD): Likewise.
592         * modules/uniconv/u32-conv-to-enc-tests
593         (test_u32_conv_to_enc_LDADD): Likewise.
594         * modules/uniconv/u32-strconv-from-enc-tests
595         (test_u32_strconv_from_enc_LDADD): Likewise.
596         * modules/uniconv/u32-strconv-to-enc-tests
597         (test_u32_strconv_to_enc_LDADD): Likewise.
598         * modules/uniconv/u8-conv-from-enc-tests
599         (test_u8_conv_from_enc_LDADD): Likewise.
600         * modules/uniconv/u8-conv-to-enc-tests
601         (test_u8_conv_to_enc_LDADD): Likewise.
602         * modules/uniconv/u8-strconv-from-enc-tests
603         (test_u8_strconv_from_enc_LDADD): Likewise.
604         * modules/uniconv/u8-strconv-to-enc-tests
605         (test_u8_strconv_to_enc_LDADD): Likewise.
606
607 2007-10-22  Bruno Haible  <bruno@clisp.org>
608
609         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
610         size.
611
612 2007-10-22  Eric Blake  <ebb9@byu.net>
613
614         Tweak x*printf documentation.
615         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
616         variable name and comments.
617         Suggested by Bruno Haible.
618
619 2007-10-22  Bruno Haible  <bruno@clisp.org>
620
621         * lib/acl.c (copy_acl): Fix file name in comment.
622
623 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
624
625         Fix Tru64 problem with stdbool.h.
626         * lib/stdbool.in.h (false, true):
627         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
628         Don't declare as an enum in this situation; it runs afoul of Tru64.
629         Problem reported by Steven M. Schweda in
630         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
631
632 2007-10-22  Eric Blake  <ebb9@byu.net>
633
634         Also wrap vf?printf.
635         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
636         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
637         (xvprintf, xvfprintf): New functions.
638
639 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
640
641         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
642         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
643
644         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
645         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
646
647 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
648
649         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
650         by Bruno Haible.
651
652 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
653
654         * lib/getloadavg.c
655         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
656         Undef `sys' after including sys/table.h, for Tru64 4.0D.
657
658         * tests/test-i-ring.c: Work for C89.
659
660 2007-10-22  Bruno Haible  <bruno@clisp.org>
661
662         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
663         -1u, in preprocessor expression, so that we don't test for the bug
664         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
665         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
666
667 2007-10-22  Eric Blake  <ebb9@byu.net>
668
669         * tests/test-yesno.sh: Silence stderr during test.
670
671 2007-10-22  Simon Josefsson  <simon@josefsson.org>
672
673         * modules/crypto/gc-camellia: New file.
674
675         * m4/gc-camellia.m4: New file.
676
677         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
678
679         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
680
681 2007-10-22  Simon Josefsson  <simon@josefsson.org>
682
683         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
684         --help to stdout.  Reported by sms@antinode.org (Steven
685         M. Schweda).
686
687 2007-10-22  Simon Josefsson  <simon@josefsson.org>
688
689         * users.txt: Fix link to libksba.
690
691 2007-10-21  Ben Pfaff  <blp@gnu.org>
692
693         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
694         round.c roundf implementation that depends on floorf and ceilf to
695         be tested unconditionally.
696
697 2007-10-21  Ben Pfaff  <blp@gnu.org>
698
699         * m4/check-libm-func.m4: Removed.
700         * m4/check-math-lib.m4: New file.
701         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
702         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
703         definition and lack of AC_LIBOBJ([roundf]).
704         * m4/roundl.m4: Ditto, and similarly for roundl.
705         * modules/round: Reference new m4 file.
706         * modules/roundf: Ditto.
707         * modules/roundl: Ditto.
708         * tests/test-round2.c (main): Use ROUND instead of round.
709         Bug report from Bruno Haible.
710
711 2007-10-21  Bruno Haible  <bruno@clisp.org>
712
713         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
714         context.
715
716 2007-10-21  Bruno Haible  <bruno@clisp.org>
717
718         * tests/test-wcwidth.c (main): Allow negative result for some control
719         characters.
720
721         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
722         Needed on OSF/1 5.1.
723
724 2007-10-21  Bruno Haible  <bruno@clisp.org>
725
726         * tests/test-floorf1.c: Include isnanf.h.
727         (main): Use isnanf() instead of isnan().
728         * tests/test-ceilf1.c: Include isnanf.h.
729         (main): Use isnanf() instead of isnan().
730         * tests/test-truncf1.c: Include isnanf.h.
731         (main): Use isnanf() instead of isnan().
732         * tests/test-roundf1.c: Include isnanf.h.
733         (main): Use isnanf() instead of isnan().
734
735 2007-10-21  Eric Blake  <ebb9@byu.net>
736
737         * users.txt: Update URL for m4.
738
739 2007-10-21  Bruno Haible  <bruno@clisp.org>
740
741         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
742
743 2007-10-21  Bruno Haible  <bruno@clisp.org>
744
745         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
746         Git's management files if the CVS files are not present.
747
748 2007-10-20  Bruno Haible  <bruno@clisp.org>
749
750         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
751         gcc-3.4.x.
752
753 2007-10-20  Ben Pfaff  <blp@gnu.org>
754
755         * lib/math.in.h: Declare round, roundf, roundl if we are providing
756         implementations.
757         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
758         * lib/round.c: New file.
759         * lib/roundf.c: New file.
760         * lib/roundl.c: New file.
761         * m4/round.m4: New file.
762         * m4/roundf.m4: New file.
763         * m4/roundl.m4: New file.
764         * m4/check-libm-func-m4: New file.
765         * modules/math: Replace round, roundf, roundl related @VARS@ in
766         math.in.h.
767         * modules/round: New file.
768         * modules/round-tests: New file.
769         * modules/roundf: New file.
770         * modules/roundf-tests: New file.
771         * modules/roundl: New file.
772         * modules/roundl-tests: New file.
773         * tests/test-round1.c: New file.
774         * tests/test-round2.c: New file.
775         * tests/test-roundf1.c: New file.
776         * tests/test-roundf2.c: New file.
777         * tests/test-roundl.c: New file.
778         * doc/functions/round.texi: Mention round module.
779         * doc/functions/roundf.texi: Mention roundf module.
780         * doc/functions/roundl.texi: Mention roundl module.
781         * MODULES.html.sh: Mention new modules.
782         Thanks to Bruno Haible for suggestions.
783
784 2007-10-20  Jim Meyering  <meyering@redhat.com>
785
786         * lib/xprintf.c: Include <config.h> unconditionally.
787
788         Change xprintf's license to GPL.
789         * modules/xprintf (License): s/LGPL/GPL/, since this module
790         depends on modules (exit and exitfail) which are GPL.
791         Suggestion from Bruno Haible.
792
793         xprintf fixes.
794         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
795         Use a clearer diagnostic.
796         Patch from Bruno Haible.
797
798 2007-10-20  Bruno Haible  <bruno@clisp.org>
799
800         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
801         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
802         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
803
804 2007-10-20  Bruno Haible  <bruno@clisp.org>
805
806         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
807         precision in the comparison result > x - 1 or similar.
808         * tests/test-ceilf2.c (correct_result_p): Likewise.
809         * tests/test-truncf2.c (correct_result_p): Likewise.
810         * tests/test-trunc2.c (correct_result_p): Likewise.
811         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
812
813 2007-10-20  Bruno Haible  <bruno@clisp.org>
814
815         * modules/ceil: New file.
816         * m4/ceil.m4: New file.
817         * doc/functions/ceil.texi: Mention the 'ceil' module.
818
819 2007-10-20  Bruno Haible  <bruno@clisp.org>
820
821         * modules/floor: New file.
822         * m4/floor.m4: New file.
823         * doc/functions/floor.texi: Mention the 'floor' module.
824
825 2007-10-20  Bruno Haible  <bruno@clisp.org>
826
827         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
828         of %a.
829         * modules/floorf-tests (Depends-on): Likewise.
830         * modules/truncf-tests (Depends-on): Likewise.
831         * modules/trunc-tests (Depends-on): Likewise.
832         Reported by Ben Pfaff.
833
834 2007-10-19  Jim Meyering  <meyering@redhat.com>
835
836         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
837         Don't bother testing specific errno values.  Just test ferror.
838
839         New module: xprintf
840         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
841
842 2007-10-19  Bruno Haible  <bruno@clisp.org>
843
844         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
845         syntax.
846         * modules/javaexec (Makefile.am): Likewise.
847         * modules/relocatable-prog (Makefile.am): Likewise.
848         Suggested by Jim Meyering.
849
850 2007-10-18  Bruno Haible  <bruno@clisp.org>
851
852         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
853         Reported by Jim Meyering.
854
855 2007-10-18  Eric Blake  <ebb9@byu.net>
856
857         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
858
859 2007-10-18  Bruno Haible  <bruno@clisp.org>
860
861         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
862         the format string into writable memory. Needed in Fortify conditions.
863
864 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
865             Bruno Haible  <bruno@clisp.org>
866
867         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
868         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
869         * modules/trim (Depends-on): Add mbchar.
870         (configure.ac): Add gl_FUNC_MBRTOWC.
871         (Makefile.am): Augment lib_SOURCES.
872
873 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
874
875         Modify glob.c to use fstatat and dirfd, to simplify it.
876         Suggested by Eric Blake.
877         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
878         Don't include <stdbool.h>; not used.
879         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
880         (link_exists_p): Simplify implementation, since we can now assume
881         dirfd and fstatat.
882         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
883
884 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
885
886         * gnulib-tool (func_get_dependencies): Fix sed script to
887         match only tests.
888
889 2007-10-17  Bruno Haible  <bruno@clisp.org>
890
891         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
892         allow locale names without encoding suffix.
893         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
894         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
895
896 2007-10-16  Bruno Haible  <bruno@clisp.org>
897
898         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
899         * lib/getgroups.c (getgroups): Likewise.
900         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
901
902 2007-10-16  Bruno Haible  <bruno@clisp.org>
903
904         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
905         * modules/malloc-posix (License): Likewise.
906         * modules/realloc-posix (License): Likewise.
907         * modules/calloc-posix (License): Likewise.
908         * modules/intprops (License): Change from GPL to LGPL, with
909         Paul Eggert's approval.
910
911 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
912
913         Merge glibc changes into lib/glob.c.
914
915         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
916         2007-10-15 04:59:03 UTC.  Here are the changes:
917
918         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
919
920         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
921
922         * lib/glob.c: Add some branch prediction throughout.
923
924         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
925
926         [BZ #5103]
927         * lib/glob.c (glob): Recognize patterns starting \/.
928
929         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
930
931         [BZ #3996]
932         * lib/glob.c (attribute_hidden): Define if not defined.
933         (glob): Unescape dirname, filename or username when needed and not
934         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
935         is NULL.  Handle unescaped [ in pattern without closing ].
936         Don't pass GLOB_CHECK down to recursive glob for directories.
937         (__glob_pattern_type): New function.
938         (__glob_pattern_p): Implement using __glob_pattern_type.
939         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
940         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
941         Remove unreachable code.
942
943         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
944
945         * lib/glob.c (glob_in_dir): Add some comments and asserts to
946         explain why there are no leaks.
947
948         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
949
950         [BZ #3253]
951         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
952         time, rather allocate increasingly bigger arrays of pointers, if
953         possible with alloca, if too large with malloc.
954
955 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
956
957         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
958         Problem reported by H.Merijn Brand in
959         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
960         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
961         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
962
963 2007-10-15  Bruno Haible  <bruno@clisp.org>
964
965         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
966         with explicit rpl_ prefix.
967         * lib/fopen.c (fopen): Likewise.
968         * lib/freopen.c (freopen): Likewise.
969         * lib/iconv.c (iconv): Likewise.
970         * lib/iconv_close.c (iconv_close): Likewise.
971
972 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
973
974         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
975
976 2007-10-15  Bruno Haible  <bruno@clisp.org>
977
978         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
979         <stddef.h> instead of <stdlib.h> since we only need NULL.
980         Reported by Ben Pfaff <blp@cs.stanford.edu>.
981
982 2007-10-15  Bruno Haible  <bruno@clisp.org>
983
984         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
985         Replace paragraph talking about LIBOBJS.
986         Reported by Colin Watson <cjwatson@debian.org>.
987
988 2007-10-15  Bruno Haible  <bruno@clisp.org>
989
990         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
991         <stdlib.h> before using NULL.
992
993 2007-10-15  Simon Josefsson  <simon@josefsson.org>
994
995         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
996         Reported by Albert Chin <china@thewrittenword.com>.
997
998 2007-10-14  Bruno Haible  <bruno@clisp.org>
999
1000         * modules/iconv_open-utf-tests: New file.
1001         * tests/test-iconv-utf.c: New file.
1002
1003         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
1004         * modules/iconv_open-utf: New file.
1005         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
1006         (iconv, iconv_close): New declarations.
1007         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
1008         be defined.
1009         (iconv_open): Add special handling of conversion between UTF-8 and
1010         UTF-{16,32}{BE,LE}.
1011         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
1012         * lib/iconv_close.c: New file.
1013         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
1014         gl_FUNC_ICONV_OPEN.
1015         (gl_FUNC_ICONV_OPEN): Use it.
1016         (gl_FUNC_ICONV_OPEN_UTF): New macro.
1017         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
1018         and REPLACE_ICONV_UTF.
1019         * modules/iconv_open (Depends-on): Add c-strcase.
1020         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
1021         ICONV_CONST.
1022         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
1023
1024 2007-10-13  Albert Chin  <china@thewrittenword.com>
1025             Bruno Haible  <bruno@clisp.org>
1026
1027         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
1028         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
1029
1030 2007-10-13  Bruno Haible  <bruno@clisp.org>
1031
1032         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
1033         defined, use the ISO C99 inline semantics.
1034         * lib/argp.h (ARGP_EI): Likewise.
1035
1036 2007-10-13  Bruno Haible  <bruno@clisp.org>
1037
1038         Handle 'inline' change in gcc 4.3.0.
1039         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
1040         argp_fmtstream_write, argp_fmtstream_set_lmargin,
1041         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
1042         argp_fmtstream_point): Disable 'extern' declaration if the function
1043         definition is going to be provided inline.
1044         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
1045         semantics, not the ISO C99 inline semantics.
1046         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
1047         'extern' declaration if the function definition is going to be provided
1048         inline.
1049         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
1050         the GNU C inline semantics, not the ISO C99 inline semantics. With
1051         GCC 4.2, avoid a warning.
1052
1053 2007-10-13  Bruno Haible  <bruno@clisp.org>
1054
1055         * lib/freading.h (freading): Enable the use of __freading for
1056         glibc >= 2.7.
1057         * lib/freading.c (freading): Likewise.
1058
1059 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
1060
1061         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
1062         "warning: C99 inline functions are not supported; using GNU89".
1063
1064 2007-10-12  Bruno Haible  <bruno@clisp.org>
1065
1066         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
1067         of 2.
1068         * tests/test-ceilf2.c: New file.
1069         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
1070
1071         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
1072         * modules/ceilf-tests: Update.
1073
1074 2007-10-12  Bruno Haible  <bruno@clisp.org>
1075
1076         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
1077         of 2.
1078         * tests/test-floorf2.c: New file.
1079         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
1080
1081         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
1082         * modules/floorf-tests: Update.
1083
1084 2007-10-12  Bruno Haible  <bruno@clisp.org>
1085
1086         * tests/test-trunc2.c: New file.
1087         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
1088
1089         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
1090         * modules/trunc-tests: Update.
1091
1092 2007-10-12  Bruno Haible  <bruno@clisp.org>
1093
1094         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
1095         of 2.
1096         * tests/test-truncf2.c: New file.
1097         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
1098
1099         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
1100         * modules/truncf-tests: Update.
1101
1102 2007-10-11  Eric Blake  <ebb9@byu.net>
1103
1104         Don't claim strerror is broken on Interix.
1105         * doc/functions/strerror.texi (strerror): Known broken systems are
1106         now Solaris 8, and not Interix.
1107         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
1108         Interix on cross-compile.
1109         Reported by Martin Koeppe in
1110         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
1111
1112 2007-10-11  Bruno Haible  <bruno@clisp.org>
1113
1114         * modules/i-ring-tests: New file.
1115         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
1116         instead of assert.
1117
1118 2007-10-11  Bruno Haible  <bruno@clisp.org>
1119
1120         * modules/filenamecat-tests: New file.
1121         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
1122         * lib/filenamecat.c: Remove test code.
1123
1124 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
1125
1126         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
1127
1128         * lib/strerror.c: Include <string.h> always, to test interface,
1129         and to remove the need for the dummy.
1130         Include intprops.h to compute width instead of doing it ourselves
1131         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
1132         (strerror): Define it to return NULL if there's no system strerror.
1133         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
1134         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
1135         ancient pre-strerror Unix systems well any more.  Saying "unknown
1136         system error" is enough.
1137         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
1138         simpler strerror.c implementation.
1139         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
1140         Simplify the tests to reflect the simpler strerror implementation.
1141         * modules/strerror (Depends-on): Add intprops.
1142
1143 2007-10-09  Eric Blake  <ebb9@byu.net>
1144
1145         Silence test-fpending.
1146         * modules/fpending-tests (Files): Add wrapper script.
1147         * tests/test-fpending.sh: New file.
1148
1149 2007-10-09  Bruno Haible  <bruno@clisp.org>
1150
1151         * MODULES.html.sh (func_module): Don't create a hyperlink for
1152         function names like 'printf_frexp'.
1153         (Misc): Add crc, memxor.
1154         (Characteristics of floating types): New section.
1155         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
1156         isnanf-nolibm, signbit, trunc, truncf, truncl.
1157         (Enhancements for ISO C 99 functions): New subsection Input/output.
1158         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
1159         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
1160         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
1161         (Compatibility checks for POSIX:2001 functions): Add clock-time.
1162         (Enhancements for POSIX:2001 functions): Add chdir-long.
1163         (File system functions): Add areadlink, chdir-safer, read-file.
1164         Remove cycle-check.
1165         (File system as inode set): New section.
1166         (Date and time): Add gethrxtime.
1167         (Multithreading): Add openmp.
1168         (Internationalization functions): Add localename.
1169         (Unicode string functions): Add unistr/u*-mbsnlen.
1170         (Support for maintaining and releasing projects): Add git-version-gen.
1171         (Lone files): Remove directories.
1172
1173 2007-10-08  Ben Pfaff  <blp@gnu.org>
1174
1175         * lib/xmalloca.h: Fix typo in comment.
1176
1177 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
1178
1179         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
1180         when avoiding problems with integer overflow.  Use a portable test
1181         instead.
1182
1183 2007-10-08  Simon Josefsson  <simon@josefsson.org>
1184
1185         * modules/dummy (License): Change to LGPLv2+.
1186         * modules/float (License): Likewise
1187         * modules/realloc (License): Likewise
1188         * modules/stdlib (License): Likewise
1189
1190 2007-10-07  Bruno Haible  <bruno@clisp.org>
1191
1192         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
1193         * floor.c (TWO_MANT_DIG): Likewise.
1194         * ceil.c (TWO_MANT_DIG): Likewise.
1195         Reported by Ben Pfaff.
1196
1197 2007-10-07  Bruno Haible  <bruno@clisp.org>
1198
1199         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
1200         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
1201         * lib/frexp.c (FUNC): Likewise.
1202         * lib/printf-frexp.h (printf_frexp): Likewise.
1203         * lib/printf-frexpl.h (printf_frexpl): Likewise.
1204         * lib/printf-frexp.c (FUNC): Likewise.
1205         Suggested by Jim Meyering.
1206
1207 2007-10-07  Jim Meyering  <meyering@redhat.com>
1208
1209         Make xnanosleep's integer overflow test more robust.
1210         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
1211         so that gcc-4.3.0 doesn't optimize away this test for overflow.
1212
1213 2007-10-07  Bruno Haible  <bruno@clisp.org>
1214
1215         * NEWS: Mention the license change.
1216
1217         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
1218         abbreviations in the modules files.
1219
1220         Change copyright notice from GPLv2+ to GPLv3+.
1221         * README: Change copyright notice.
1222         * MODULES.html.sh: Likewise.
1223         * build-aux/bootstrap.conf: Likewise.
1224         * build-aux/config.libpath: Likewise.
1225         * build-aux/csharpcomp.sh.in: Likewise.
1226         * build-aux/csharpexec.sh.in: Likewise.
1227         * build-aux/install-reloc: Likewise.
1228         * build-aux/javacomp.sh.in: Likewise.
1229         * build-aux/javaexec.sh.in: Likewise.
1230         * build-aux/ldd.sh.in: Likewise.
1231         * build-aux/reloc-ldflags: Likewise.
1232         * build-aux/relocatable.sh.in: Likewise.
1233         * build-aux/x-to-1.in: Likewise.
1234         * check-module: Likewise.
1235         * config/srclistvars.sh: Likewise.
1236         * gnulib-tool: Likewise.
1237         * lib/acl-internal.h: Likewise.
1238         * lib/acl.c: Likewise.
1239         * lib/acl.h: Likewise.
1240         * lib/acl_entries.c: Likewise.
1241         * lib/areadlink-with-size.c: Likewise.
1242         * lib/areadlink.c: Likewise.
1243         * lib/areadlink.h: Likewise.
1244         * lib/argmatch.c: Likewise.
1245         * lib/argmatch.h: Likewise.
1246         * lib/argp-ba.c: Likewise.
1247         * lib/argp-eexst.c: Likewise.
1248         * lib/argp-fmtstream.c: Likewise.
1249         * lib/argp-fmtstream.h: Likewise.
1250         * lib/argp-fs-xinl.c: Likewise.
1251         * lib/argp-help.c: Likewise.
1252         * lib/argp-namefrob.h: Likewise.
1253         * lib/argp-parse.c: Likewise.
1254         * lib/argp-pin.c: Likewise.
1255         * lib/argp-pv.c: Likewise.
1256         * lib/argp-pvh.c: Likewise.
1257         * lib/argp-xinl.c: Likewise.
1258         * lib/argp.h: Likewise.
1259         * lib/at-func.c: Likewise.
1260         * lib/atanl.c: Likewise.
1261         * lib/backupfile.c: Likewise.
1262         * lib/backupfile.h: Likewise.
1263         * lib/basename.c: Likewise.
1264         * lib/binary-io.h: Likewise.
1265         * lib/byteswap.in.h: Likewise.
1266         * lib/c-stack.c: Likewise.
1267         * lib/c-stack.h: Likewise.
1268         * lib/c-strcasestr.c: Likewise.
1269         * lib/c-strcasestr.h: Likewise.
1270         * lib/c-strstr.c: Likewise.
1271         * lib/c-strstr.h: Likewise.
1272         * lib/c-strtod.c: Likewise.
1273         * lib/calloc.c: Likewise.
1274         * lib/canon-host.c: Likewise.
1275         * lib/canon-host.h: Likewise.
1276         * lib/canonicalize-lgpl.c: Likewise.
1277         * lib/canonicalize.c: Likewise.
1278         * lib/canonicalize.h: Likewise.
1279         * lib/ceil.c: Likewise.
1280         * lib/ceilf.c: Likewise.
1281         * lib/ceill.c: Likewise.
1282         * lib/chdir-long.c: Likewise.
1283         * lib/chdir-long.h: Likewise.
1284         * lib/chdir-safer.c: Likewise.
1285         * lib/chdir-safer.h: Likewise.
1286         * lib/chown.c: Likewise.
1287         * lib/classpath.c: Likewise.
1288         * lib/classpath.h: Likewise.
1289         * lib/clean-temp.c: Likewise.
1290         * lib/clean-temp.h: Likewise.
1291         * lib/cloexec.c: Likewise.
1292         * lib/close-stream.c: Likewise.
1293         * lib/closein.c: Likewise.
1294         * lib/closein.h: Likewise.
1295         * lib/closeout.c: Likewise.
1296         * lib/closeout.h: Likewise.
1297         * lib/concat-filename.c: Likewise.
1298         * lib/copy-file.c: Likewise.
1299         * lib/copy-file.h: Likewise.
1300         * lib/count-one-bits.h: Likewise.
1301         * lib/crc.c: Likewise.
1302         * lib/crc.h: Likewise.
1303         * lib/creat-safer.c: Likewise.
1304         * lib/csharpcomp.c: Likewise.
1305         * lib/csharpcomp.h: Likewise.
1306         * lib/csharpexec.c: Likewise.
1307         * lib/csharpexec.h: Likewise.
1308         * lib/cycle-check.c: Likewise.
1309         * lib/cycle-check.h: Likewise.
1310         * lib/diacrit.c: Likewise.
1311         * lib/diacrit.h: Likewise.
1312         * lib/diffseq.h: Likewise.
1313         * lib/dirchownmod.c: Likewise.
1314         * lib/dirent.in.h: Likewise.
1315         * lib/dirfd.c: Likewise.
1316         * lib/dirfd.h: Likewise.
1317         * lib/dirname.c: Likewise.
1318         * lib/dirname.h: Likewise.
1319         * lib/dummy.c: Likewise.
1320         * lib/dup-safer.c: Likewise.
1321         * lib/dup2.c: Likewise.
1322         * lib/eealloc.h: Likewise.
1323         * lib/error.c: Likewise.
1324         * lib/error.h: Likewise.
1325         * lib/euidaccess.c: Likewise.
1326         * lib/exclude.c: Likewise.
1327         * lib/exclude.h: Likewise.
1328         * lib/execute.c: Likewise.
1329         * lib/execute.h: Likewise.
1330         * lib/exitfail.c: Likewise.
1331         * lib/exitfail.h: Likewise.
1332         * lib/expl.c: Likewise.
1333         * lib/fatal-signal.c: Likewise.
1334         * lib/fatal-signal.h: Likewise.
1335         * lib/fbufmode.c: Likewise.
1336         * lib/fbufmode.h: Likewise.
1337         * lib/fchdir.c: Likewise.
1338         * lib/fchmodat.c: Likewise.
1339         * lib/fchownat.c: Likewise.
1340         * lib/fcntl--.h: Likewise.
1341         * lib/fcntl-safer.h: Likewise.
1342         * lib/fcntl.in.h: Likewise.
1343         * lib/fd-safer.c: Likewise.
1344         * lib/fflush.c: Likewise.
1345         * lib/file-has-acl.c: Likewise.
1346         * lib/file-set.c: Likewise.
1347         * lib/file-type.c: Likewise.
1348         * lib/file-type.h: Likewise.
1349         * lib/fileblocks.c: Likewise.
1350         * lib/filemode.c: Likewise.
1351         * lib/filemode.h: Likewise.
1352         * lib/filename.h: Likewise.
1353         * lib/filenamecat.c: Likewise.
1354         * lib/filenamecat.h: Likewise.
1355         * lib/findprog.c: Likewise.
1356         * lib/findprog.h: Likewise.
1357         * lib/float.in.h: Likewise.
1358         * lib/floor.c: Likewise.
1359         * lib/floorf.c: Likewise.
1360         * lib/floorl.c: Likewise.
1361         * lib/fopen-safer.c: Likewise.
1362         * lib/fopen.c: Likewise.
1363         * lib/fpending.c: Likewise.
1364         * lib/fpending.h: Likewise.
1365         * lib/fprintf.c: Likewise.
1366         * lib/fprintftime.h: Likewise.
1367         * lib/fpucw.h: Likewise.
1368         * lib/fpurge.c: Likewise.
1369         * lib/fpurge.h: Likewise.
1370         * lib/freadable.c: Likewise.
1371         * lib/freadable.h: Likewise.
1372         * lib/freadahead.c: Likewise.
1373         * lib/freadahead.h: Likewise.
1374         * lib/freading.c: Likewise.
1375         * lib/freading.h: Likewise.
1376         * lib/free.c: Likewise.
1377         * lib/freopen.c: Likewise.
1378         * lib/frexp.c: Likewise.
1379         * lib/frexpl.c: Likewise.
1380         * lib/fseek.c: Likewise.
1381         * lib/fseterr.c: Likewise.
1382         * lib/fseterr.h: Likewise.
1383         * lib/fstatat.c: Likewise.
1384         * lib/fstrcmp.c: Likewise.
1385         * lib/fstrcmp.h: Likewise.
1386         * lib/fsusage.c: Likewise.
1387         * lib/fsusage.h: Likewise.
1388         * lib/ftell.c: Likewise.
1389         * lib/ftello.c: Likewise.
1390         * lib/fts-cycle.c: Likewise.
1391         * lib/fts.c: Likewise.
1392         * lib/fts_.h: Likewise.
1393         * lib/full-read.c: Likewise.
1394         * lib/full-read.h: Likewise.
1395         * lib/full-write.c: Likewise.
1396         * lib/full-write.h: Likewise.
1397         * lib/fwritable.c: Likewise.
1398         * lib/fwritable.h: Likewise.
1399         * lib/fwriteerror.c: Likewise.
1400         * lib/fwriteerror.h: Likewise.
1401         * lib/fwriting.c: Likewise.
1402         * lib/fwriting.h: Likewise.
1403         * lib/gcd.c: Likewise.
1404         * lib/gcd.h: Likewise.
1405         * lib/getcwd.c: Likewise.
1406         * lib/getdate.h: Likewise.
1407         * lib/getdate.y: Likewise.
1408         * lib/getdomainname.c: Likewise.
1409         * lib/getdomainname.h: Likewise.
1410         * lib/getgroups.c: Likewise.
1411         * lib/gethostname.c: Likewise.
1412         * lib/gethrxtime.c: Likewise.
1413         * lib/gethrxtime.h: Likewise.
1414         * lib/getloadavg.c: Likewise.
1415         * lib/getndelim2.c: Likewise.
1416         * lib/getndelim2.h: Likewise.
1417         * lib/getnline.c: Likewise.
1418         * lib/getnline.h: Likewise.
1419         * lib/getopt.c: Likewise.
1420         * lib/getopt.in.h: Likewise.
1421         * lib/getopt1.c: Likewise.
1422         * lib/getopt_int.h: Likewise.
1423         * lib/getpagesize.h: Likewise.
1424         * lib/getsubopt.c: Likewise.
1425         * lib/gettime.c: Likewise.
1426         * lib/getugroups.c: Likewise.
1427         * lib/getugroups.h: Likewise.
1428         * lib/getusershell.c: Likewise.
1429         * lib/gl_anyavltree_list1.h: Likewise.
1430         * lib/gl_anyavltree_list2.h: Likewise.
1431         * lib/gl_anyhash_list1.h: Likewise.
1432         * lib/gl_anyhash_list2.h: Likewise.
1433         * lib/gl_anylinked_list1.h: Likewise.
1434         * lib/gl_anylinked_list2.h: Likewise.
1435         * lib/gl_anyrbtree_list1.h: Likewise.
1436         * lib/gl_anyrbtree_list2.h: Likewise.
1437         * lib/gl_anytree_list1.h: Likewise.
1438         * lib/gl_anytree_list2.h: Likewise.
1439         * lib/gl_anytree_oset.h: Likewise.
1440         * lib/gl_anytreehash_list1.h: Likewise.
1441         * lib/gl_anytreehash_list2.h: Likewise.
1442         * lib/gl_array_list.c: Likewise.
1443         * lib/gl_array_list.h: Likewise.
1444         * lib/gl_array_oset.c: Likewise.
1445         * lib/gl_array_oset.h: Likewise.
1446         * lib/gl_avltree_list.c: Likewise.
1447         * lib/gl_avltree_list.h: Likewise.
1448         * lib/gl_avltree_oset.c: Likewise.
1449         * lib/gl_avltree_oset.h: Likewise.
1450         * lib/gl_avltreehash_list.c: Likewise.
1451         * lib/gl_avltreehash_list.h: Likewise.
1452         * lib/gl_carray_list.c: Likewise.
1453         * lib/gl_carray_list.h: Likewise.
1454         * lib/gl_linked_list.c: Likewise.
1455         * lib/gl_linked_list.h: Likewise.
1456         * lib/gl_linkedhash_list.c: Likewise.
1457         * lib/gl_linkedhash_list.h: Likewise.
1458         * lib/gl_list.c: Likewise.
1459         * lib/gl_list.h: Likewise.
1460         * lib/gl_oset.c: Likewise.
1461         * lib/gl_oset.h: Likewise.
1462         * lib/gl_rbtree_list.c: Likewise.
1463         * lib/gl_rbtree_list.h: Likewise.
1464         * lib/gl_rbtree_oset.c: Likewise.
1465         * lib/gl_rbtree_oset.h: Likewise.
1466         * lib/gl_rbtreehash_list.c: Likewise.
1467         * lib/gl_rbtreehash_list.h: Likewise.
1468         * lib/gl_sublist.c: Likewise.
1469         * lib/gl_sublist.h: Likewise.
1470         * lib/group-member.c: Likewise.
1471         * lib/group-member.h: Likewise.
1472         * lib/hard-locale.c: Likewise.
1473         * lib/hard-locale.h: Likewise.
1474         * lib/hash-pjw.c: Likewise.
1475         * lib/hash-pjw.h: Likewise.
1476         * lib/hash-triple.c: Likewise.
1477         * lib/hash.c: Likewise.
1478         * lib/hash.h: Likewise.
1479         * lib/human.c: Likewise.
1480         * lib/human.h: Likewise.
1481         * lib/i-ring.c: Likewise.
1482         * lib/i-ring.h: Likewise.
1483         * lib/idcache.c: Likewise.
1484         * lib/imaxabs.c: Likewise.
1485         * lib/imaxdiv.c: Likewise.
1486         * lib/inet_pton.c: Likewise.
1487         * lib/inet_pton.h: Likewise.
1488         * lib/intprops.h: Likewise.
1489         * lib/inttostr.c: Likewise.
1490         * lib/inttostr.h: Likewise.
1491         * lib/inttypes.in.h: Likewise.
1492         * lib/isapipe.c: Likewise.
1493         * lib/isdir.c: Likewise.
1494         * lib/isnan.c: Likewise.
1495         * lib/isnan.h: Likewise.
1496         * lib/isnanf.c: Likewise.
1497         * lib/isnanf.h: Likewise.
1498         * lib/isnanl-nolibm.h: Likewise.
1499         * lib/isnanl.c: Likewise.
1500         * lib/isnanl.h: Likewise.
1501         * lib/javacomp.c: Likewise.
1502         * lib/javacomp.h: Likewise.
1503         * lib/javaexec.c: Likewise.
1504         * lib/javaexec.h: Likewise.
1505         * lib/javaversion.c: Likewise.
1506         * lib/javaversion.h: Likewise.
1507         * lib/javaversion.java: Likewise.
1508         * lib/lbrkprop.h: Likewise.
1509         * lib/lchmod.h: Likewise.
1510         * lib/lchown.c: Likewise.
1511         * lib/ldexpl.c: Likewise.
1512         * lib/linebreak.c: Likewise.
1513         * lib/linebreak.h: Likewise.
1514         * lib/linebuffer.c: Likewise.
1515         * lib/linebuffer.h: Likewise.
1516         * lib/locale.in.h: Likewise.
1517         * lib/logl.c: Likewise.
1518         * lib/long-options.c: Likewise.
1519         * lib/long-options.h: Likewise.
1520         * lib/lstat.c: Likewise.
1521         * lib/lstat.h: Likewise.
1522         * lib/math.in.h: Likewise.
1523         * lib/mbchar.c: Likewise.
1524         * lib/mbchar.h: Likewise.
1525         * lib/mbfile.h: Likewise.
1526         * lib/mbiter.h: Likewise.
1527         * lib/mbscasecmp.c: Likewise.
1528         * lib/mbscasestr.c: Likewise.
1529         * lib/mbschr.c: Likewise.
1530         * lib/mbscspn.c: Likewise.
1531         * lib/mbslen.c: Likewise.
1532         * lib/mbsncasecmp.c: Likewise.
1533         * lib/mbsnlen.c: Likewise.
1534         * lib/mbspbrk.c: Likewise.
1535         * lib/mbspcasecmp.c: Likewise.
1536         * lib/mbsrchr.c: Likewise.
1537         * lib/mbssep.c: Likewise.
1538         * lib/mbsspn.c: Likewise.
1539         * lib/mbsstr.c: Likewise.
1540         * lib/mbstok_r.c: Likewise.
1541         * lib/mbswidth.c: Likewise.
1542         * lib/mbswidth.h: Likewise.
1543         * lib/mbuiter.h: Likewise.
1544         * lib/memcasecmp.c: Likewise.
1545         * lib/memcasecmp.h: Likewise.
1546         * lib/memchr.c: Likewise.
1547         * lib/memcmp.c: Likewise.
1548         * lib/memcoll.c: Likewise.
1549         * lib/memcoll.h: Likewise.
1550         * lib/memcpy.c: Likewise.
1551         * lib/memrchr.c: Likewise.
1552         * lib/mkancesdirs.c: Likewise.
1553         * lib/mkdir-p.c: Likewise.
1554         * lib/mkdir-p.h: Likewise.
1555         * lib/mkdir.c: Likewise.
1556         * lib/mkdirat.c: Likewise.
1557         * lib/mkdtemp.c: Likewise.
1558         * lib/mkstemp-safer.c: Likewise.
1559         * lib/mkstemp.c: Likewise.
1560         * lib/modechange.c: Likewise.
1561         * lib/modechange.h: Likewise.
1562         * lib/mountlist.c: Likewise.
1563         * lib/mountlist.h: Likewise.
1564         * lib/mpsort.c: Likewise.
1565         * lib/nanosleep.c: Likewise.
1566         * lib/obstack.c: Likewise.
1567         * lib/obstack.h: Likewise.
1568         * lib/open-safer.c: Likewise.
1569         * lib/open.c: Likewise.
1570         * lib/openat-die.c: Likewise.
1571         * lib/openat-priv.h: Likewise.
1572         * lib/openat-proc.c: Likewise.
1573         * lib/openat.c: Likewise.
1574         * lib/openat.h: Likewise.
1575         * lib/pagealign_alloc.c: Likewise.
1576         * lib/pagealign_alloc.h: Likewise.
1577         * lib/physmem.c: Likewise.
1578         * lib/physmem.h: Likewise.
1579         * lib/pipe-safer.c: Likewise.
1580         * lib/pipe.c: Likewise.
1581         * lib/pipe.h: Likewise.
1582         * lib/posixtm.c: Likewise.
1583         * lib/posixtm.h: Likewise.
1584         * lib/posixver.c: Likewise.
1585         * lib/printf-frexp.c: Likewise.
1586         * lib/printf-frexp.h: Likewise.
1587         * lib/printf-frexpl.c: Likewise.
1588         * lib/printf-frexpl.h: Likewise.
1589         * lib/printf.c: Likewise.
1590         * lib/progname.c: Likewise.
1591         * lib/progname.h: Likewise.
1592         * lib/progreloc.c: Likewise.
1593         * lib/putenv.c: Likewise.
1594         * lib/quote.c: Likewise.
1595         * lib/quote.h: Likewise.
1596         * lib/quotearg.c: Likewise.
1597         * lib/quotearg.h: Likewise.
1598         * lib/raise.c: Likewise.
1599         * lib/readline.c: Likewise.
1600         * lib/readline.h: Likewise.
1601         * lib/readlink.c: Likewise.
1602         * lib/readtokens.c: Likewise.
1603         * lib/readtokens.h: Likewise.
1604         * lib/readtokens0.c: Likewise.
1605         * lib/readtokens0.h: Likewise.
1606         * lib/readutmp.c: Likewise.
1607         * lib/readutmp.h: Likewise.
1608         * lib/realloc.c: Likewise.
1609         * lib/relocwrapper.c: Likewise.
1610         * lib/rename-dest-slash.c: Likewise.
1611         * lib/rename.c: Likewise.
1612         * lib/rmdir.c: Likewise.
1613         * lib/rpmatch.c: Likewise.
1614         * lib/safe-read.c: Likewise.
1615         * lib/safe-read.h: Likewise.
1616         * lib/safe-write.c: Likewise.
1617         * lib/safe-write.h: Likewise.
1618         * lib/same-inode.h: Likewise.
1619         * lib/same.c: Likewise.
1620         * lib/same.h: Likewise.
1621         * lib/save-cwd.c: Likewise.
1622         * lib/save-cwd.h: Likewise.
1623         * lib/savedir.c: Likewise.
1624         * lib/savedir.h: Likewise.
1625         * lib/savewd.c: Likewise.
1626         * lib/savewd.h: Likewise.
1627         * lib/search.in.h: Likewise.
1628         * lib/setenv.c: Likewise.
1629         * lib/setenv.h: Likewise.
1630         * lib/settime.c: Likewise.
1631         * lib/sh-quote.c: Likewise.
1632         * lib/sh-quote.h: Likewise.
1633         * lib/sig2str.c: Likewise.
1634         * lib/sig2str.h: Likewise.
1635         * lib/signal.in.h: Likewise.
1636         * lib/signbitd.c: Likewise.
1637         * lib/signbitf.c: Likewise.
1638         * lib/signbitl.c: Likewise.
1639         * lib/sigprocmask.c: Likewise.
1640         * lib/sincosl.c: Likewise.
1641         * lib/sleep.c: Likewise.
1642         * lib/sprintf.c: Likewise.
1643         * lib/sqrtl.c: Likewise.
1644         * lib/stat-time.h: Likewise.
1645         * lib/stdio--.h: Likewise.
1646         * lib/stdio-safer.h: Likewise.
1647         * lib/stdlib--.h: Likewise.
1648         * lib/stdlib-safer.h: Likewise.
1649         * lib/stdlib.in.h: Likewise.
1650         * lib/stpcpy.c: Likewise.
1651         * lib/stpncpy.c: Likewise.
1652         * lib/strchrnul.c: Likewise.
1653         * lib/strcspn.c: Likewise.
1654         * lib/strerror.c: Likewise.
1655         * lib/strftime.c: Likewise.
1656         * lib/strftime.h: Likewise.
1657         * lib/striconveh.c: Likewise.
1658         * lib/striconveh.h: Likewise.
1659         * lib/striconveha.c: Likewise.
1660         * lib/striconveha.h: Likewise.
1661         * lib/stripslash.c: Likewise.
1662         * lib/strnlen1.c: Likewise.
1663         * lib/strnlen1.h: Likewise.
1664         * lib/strtod.c: Likewise.
1665         * lib/strtoimax.c: Likewise.
1666         * lib/strtok_r.c: Likewise.
1667         * lib/strtol.c: Likewise.
1668         * lib/strtoll.c: Likewise.
1669         * lib/strtoul.c: Likewise.
1670         * lib/strtoull.c: Likewise.
1671         * lib/sysexits.in.h: Likewise.
1672         * lib/tempname.c: Likewise.
1673         * lib/tempname.h: Likewise.
1674         * lib/timespec.h: Likewise.
1675         * lib/tls.c: Likewise.
1676         * lib/tls.h: Likewise.
1677         * lib/tmpdir.c: Likewise.
1678         * lib/tmpdir.h: Likewise.
1679         * lib/tmpfile-safer.c: Likewise.
1680         * lib/tmpfile.c: Likewise.
1681         * lib/trigl.c: Likewise.
1682         * lib/trigl.h: Likewise.
1683         * lib/trim.c: Likewise.
1684         * lib/trim.h: Likewise.
1685         * lib/trunc.c: Likewise.
1686         * lib/truncf.c: Likewise.
1687         * lib/truncl.c: Likewise.
1688         * lib/tsearch.c: Likewise.
1689         * lib/unicodeio.c: Likewise.
1690         * lib/unicodeio.h: Likewise.
1691         * lib/unistd--.h: Likewise.
1692         * lib/unistd-safer.h: Likewise.
1693         * lib/unistdio/ulc-fprintf.c: Likewise.
1694         * lib/unistdio/ulc-vfprintf.c: Likewise.
1695         * lib/unlinkdir.c: Likewise.
1696         * lib/unlinkdir.h: Likewise.
1697         * lib/unlocked-io.h: Likewise.
1698         * lib/unsetenv.c: Likewise.
1699         * lib/userspec.c: Likewise.
1700         * lib/utime.c: Likewise.
1701         * lib/utimecmp.c: Likewise.
1702         * lib/utimecmp.h: Likewise.
1703         * lib/utimens.c: Likewise.
1704         * lib/verify.h: Likewise.
1705         * lib/verror.c: Likewise.
1706         * lib/verror.h: Likewise.
1707         * lib/version-etc-fsf.c: Likewise.
1708         * lib/version-etc.c: Likewise.
1709         * lib/version-etc.h: Likewise.
1710         * lib/vfprintf.c: Likewise.
1711         * lib/vprintf.c: Likewise.
1712         * lib/vsprintf.c: Likewise.
1713         * lib/w32spawn.h: Likewise.
1714         * lib/wait-process.c: Likewise.
1715         * lib/wait-process.h: Likewise.
1716         * lib/wcwidth.c: Likewise.
1717         * lib/write-any-file.c: Likewise.
1718         * lib/xalloc-die.c: Likewise.
1719         * lib/xalloc.h: Likewise.
1720         * lib/xasprintf.c: Likewise.
1721         * lib/xgetcwd.c: Likewise.
1722         * lib/xgetcwd.h: Likewise.
1723         * lib/xgetdomainname.c: Likewise.
1724         * lib/xgetdomainname.h: Likewise.
1725         * lib/xgethostname.c: Likewise.
1726         * lib/xmalloc.c: Likewise.
1727         * lib/xmalloca.c: Likewise.
1728         * lib/xmalloca.h: Likewise.
1729         * lib/xmemcoll.c: Likewise.
1730         * lib/xnanosleep.c: Likewise.
1731         * lib/xreadlink.c: Likewise.
1732         * lib/xreadlink.h: Likewise.
1733         * lib/xsetenv.c: Likewise.
1734         * lib/xsetenv.h: Likewise.
1735         * lib/xstriconv.c: Likewise.
1736         * lib/xstriconv.h: Likewise.
1737         * lib/xstrndup.c: Likewise.
1738         * lib/xstrndup.h: Likewise.
1739         * lib/xstrtod.c: Likewise.
1740         * lib/xstrtod.h: Likewise.
1741         * lib/xstrtol-error.c: Likewise.
1742         * lib/xstrtol.c: Likewise.
1743         * lib/xstrtol.h: Likewise.
1744         * lib/xtime.h: Likewise.
1745         * lib/xvasprintf.c: Likewise.
1746         * lib/xvasprintf.h: Likewise.
1747         * lib/yesno.c: Likewise.
1748         * lib/yesno.h: Likewise.
1749         * posix-modules: Likewise.
1750         * tests/test-alloca-opt.c: Likewise.
1751         * tests/test-arcfour.c: Likewise.
1752         * tests/test-arctwo.c: Likewise.
1753         * tests/test-argmatch.c: Likewise.
1754         * tests/test-argp-2.sh: Likewise.
1755         * tests/test-argp.c: Likewise.
1756         * tests/test-arpa_inet.c: Likewise.
1757         * tests/test-array_list.c: Likewise.
1758         * tests/test-array_oset.c: Likewise.
1759         * tests/test-atexit.c: Likewise.
1760         * tests/test-avltree_list.c: Likewise.
1761         * tests/test-avltree_oset.c: Likewise.
1762         * tests/test-avltreehash_list.c: Likewise.
1763         * tests/test-base64.c: Likewise.
1764         * tests/test-binary-io.c: Likewise.
1765         * tests/test-byteswap.c: Likewise.
1766         * tests/test-c-ctype.c: Likewise.
1767         * tests/test-c-strcasecmp.c: Likewise.
1768         * tests/test-c-strcasestr.c: Likewise.
1769         * tests/test-c-strncasecmp.c: Likewise.
1770         * tests/test-c-strstr.c: Likewise.
1771         * tests/test-canonicalize-lgpl.c: Likewise.
1772         * tests/test-canonicalize.c: Likewise.
1773         * tests/test-carray_list.c: Likewise.
1774         * tests/test-ceilf.c: Likewise.
1775         * tests/test-ceill.c: Likewise.
1776         * tests/test-count-one-bits.c: Likewise.
1777         * tests/test-crc.c: Likewise.
1778         * tests/test-dirname.c: Likewise.
1779         * tests/test-fbufmode.c: Likewise.
1780         * tests/test-fcntl.c: Likewise.
1781         * tests/test-fflush.c: Likewise.
1782         * tests/test-floorf.c: Likewise.
1783         * tests/test-floorl.c: Likewise.
1784         * tests/test-fopen.c: Likewise.
1785         * tests/test-fprintf-posix.c: Likewise.
1786         * tests/test-fprintf-posix.h: Likewise.
1787         * tests/test-fpurge.c: Likewise.
1788         * tests/test-freadable.c: Likewise.
1789         * tests/test-freadahead.c: Likewise.
1790         * tests/test-freading.c: Likewise.
1791         * tests/test-freopen.c: Likewise.
1792         * tests/test-frexp.c: Likewise.
1793         * tests/test-frexpl.c: Likewise.
1794         * tests/test-fseek.c: Likewise.
1795         * tests/test-fseeko.c: Likewise.
1796         * tests/test-fseterr.c: Likewise.
1797         * tests/test-fstrcmp.c: Likewise.
1798         * tests/test-ftell.c: Likewise.
1799         * tests/test-ftello.c: Likewise.
1800         * tests/test-fwritable.c: Likewise.
1801         * tests/test-fwriting.c: Likewise.
1802         * tests/test-getaddrinfo.c: Likewise.
1803         * tests/test-getpass.c: Likewise.
1804         * tests/test-gettimeofday.c: Likewise.
1805         * tests/test-hmac-md5.c: Likewise.
1806         * tests/test-hmac-sha1.c: Likewise.
1807         * tests/test-iconv.c: Likewise.
1808         * tests/test-iconvme.c: Likewise.
1809         * tests/test-inttypes.c: Likewise.
1810         * tests/test-isnan.c: Likewise.
1811         * tests/test-isnanf.c: Likewise.
1812         * tests/test-isnanl-nolibm.c: Likewise.
1813         * tests/test-isnanl.c: Likewise.
1814         * tests/test-isnanl.h: Likewise.
1815         * tests/test-ldexpl.c: Likewise.
1816         * tests/test-linked_list.c: Likewise.
1817         * tests/test-linkedhash_list.c: Likewise.
1818         * tests/test-locale.c: Likewise.
1819         * tests/test-localename.c: Likewise.
1820         * tests/test-lock.c: Likewise.
1821         * tests/test-lseek.c: Likewise.
1822         * tests/test-malloca.c: Likewise.
1823         * tests/test-math.c: Likewise.
1824         * tests/test-mbscasecmp.c: Likewise.
1825         * tests/test-mbscasestr1.c: Likewise.
1826         * tests/test-mbscasestr2.c: Likewise.
1827         * tests/test-mbscasestr3.c: Likewise.
1828         * tests/test-mbscasestr4.c: Likewise.
1829         * tests/test-mbschr.c: Likewise.
1830         * tests/test-mbscspn.c: Likewise.
1831         * tests/test-mbsncasecmp.c: Likewise.
1832         * tests/test-mbspbrk.c: Likewise.
1833         * tests/test-mbspcasecmp.c: Likewise.
1834         * tests/test-mbsrchr.c: Likewise.
1835         * tests/test-mbsspn.c: Likewise.
1836         * tests/test-mbsstr1.c: Likewise.
1837         * tests/test-mbsstr2.c: Likewise.
1838         * tests/test-mbsstr3.c: Likewise.
1839         * tests/test-md5.c: Likewise.
1840         * tests/test-memmem.c: Likewise.
1841         * tests/test-netinet_in.c: Likewise.
1842         * tests/test-open.c: Likewise.
1843         * tests/test-printf-frexp.c: Likewise.
1844         * tests/test-printf-frexpl.c: Likewise.
1845         * tests/test-printf-posix.c: Likewise.
1846         * tests/test-printf-posix.h: Likewise.
1847         * tests/test-rbtree_list.c: Likewise.
1848         * tests/test-rbtree_oset.c: Likewise.
1849         * tests/test-rbtreehash_list.c: Likewise.
1850         * tests/test-read-file.c: Likewise.
1851         * tests/test-rijndael.c: Likewise.
1852         * tests/test-search.c: Likewise.
1853         * tests/test-signbit.c: Likewise.
1854         * tests/test-sleep.c: Likewise.
1855         * tests/test-snprintf-posix.c: Likewise.
1856         * tests/test-snprintf-posix.h: Likewise.
1857         * tests/test-snprintf.c: Likewise.
1858         * tests/test-sprintf-posix.c: Likewise.
1859         * tests/test-sprintf-posix.h: Likewise.
1860         * tests/test-stat-time.c: Likewise.
1861         * tests/test-stdbool.c: Likewise.
1862         * tests/test-stdint.c: Likewise.
1863         * tests/test-stdio.c: Likewise.
1864         * tests/test-stdlib.c: Likewise.
1865         * tests/test-stpncpy.c: Likewise.
1866         * tests/test-strcasestr.c: Likewise.
1867         * tests/test-striconv.c: Likewise.
1868         * tests/test-striconveh.c: Likewise.
1869         * tests/test-striconveha.c: Likewise.
1870         * tests/test-string.c: Likewise.
1871         * tests/test-sys_select.c: Likewise.
1872         * tests/test-sys_socket.c: Likewise.
1873         * tests/test-sys_stat.c: Likewise.
1874         * tests/test-sys_time.c: Likewise.
1875         * tests/test-sysexits.c: Likewise.
1876         * tests/test-time.c: Likewise.
1877         * tests/test-tls.c: Likewise.
1878         * tests/test-trunc.c: Likewise.
1879         * tests/test-truncf.c: Likewise.
1880         * tests/test-truncl.c: Likewise.
1881         * tests/test-unistd.c: Likewise.
1882         * tests/test-vasnprintf-posix.c: Likewise.
1883         * tests/test-vasnprintf-posix2.c: Likewise.
1884         * tests/test-vasnprintf.c: Likewise.
1885         * tests/test-vasprintf-posix.c: Likewise.
1886         * tests/test-vasprintf.c: Likewise.
1887         * tests/test-verify.c: Likewise.
1888         * tests/test-vfprintf-posix.c: Likewise.
1889         * tests/test-vprintf-posix.c: Likewise.
1890         * tests/test-vsnprintf-posix.c: Likewise.
1891         * tests/test-vsnprintf.c: Likewise.
1892         * tests/test-vsprintf-posix.c: Likewise.
1893         * tests/test-wchar.c: Likewise.
1894         * tests/test-wctype.c: Likewise.
1895         * tests/test-wcwidth.c: Likewise.
1896         * tests/test-xstrtol.c: Likewise.
1897         * tests/test-xvasprintf.c: Likewise.
1898         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
1899         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
1900         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
1901         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
1902         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
1903         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
1904         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
1905         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
1906         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
1907         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
1908         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
1909         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
1910         * tests/uniname/test-uninames.c: Likewise.
1911         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
1912         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
1913         * tests/unistdio/test-u16-printf1.h: Likewise.
1914         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
1915         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
1916         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
1917         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
1918         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
1919         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
1920         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
1921         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
1922         * tests/unistdio/test-u32-printf1.h: Likewise.
1923         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
1924         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
1925         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
1926         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
1927         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
1928         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
1929         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
1930         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
1931         * tests/unistdio/test-u8-printf1.h: Likewise.
1932         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
1933         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
1934         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
1935         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
1936         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
1937         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
1938         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
1939         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
1940         * tests/unistdio/test-ulc-printf1.h: Likewise.
1941         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
1942         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
1943         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
1944         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
1945         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
1946         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
1947         * tests/uniwidth/test-u16-strwidth.c: Likewise.
1948         * tests/uniwidth/test-u16-width.c: Likewise.
1949         * tests/uniwidth/test-u32-strwidth.c: Likewise.
1950         * tests/uniwidth/test-u32-width.c: Likewise.
1951         * tests/uniwidth/test-u8-strwidth.c: Likewise.
1952         * tests/uniwidth/test-u8-width.c: Likewise.
1953         * tests/uniwidth/test-uc_width.c: Likewise.
1954         * config/srclist-update: Likewise.
1955         (fixlicense): Update to GPLv3+.
1956
1957         Change copyright notice from LGPLv2.1+ to LGPLv3+.
1958         * tests/test-tsearch.c: Change copyright notice.
1959
1960         Change copyright notice from LGPLv2.0+ to LGPLv3+.
1961         * lib/c-strcaseeq.h: Change copyright notice.
1962         * lib/streq.h: Likewise.
1963         * lib/uniconv.h: Likewise.
1964         * lib/uniconv/u-conv-from-enc.h: Likewise.
1965         * lib/uniconv/u-conv-to-enc.h: Likewise.
1966         * lib/uniconv/u-strconv-from-enc.h: Likewise.
1967         * lib/uniconv/u-strconv-to-enc.h: Likewise.
1968         * lib/uniconv/u16-conv-from-enc.c: Likewise.
1969         * lib/uniconv/u16-conv-to-enc.c: Likewise.
1970         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
1971         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
1972         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
1973         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
1974         * lib/uniconv/u32-conv-from-enc.c: Likewise.
1975         * lib/uniconv/u32-conv-to-enc.c: Likewise.
1976         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
1977         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
1978         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
1979         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
1980         * lib/uniconv/u8-conv-from-enc.c: Likewise.
1981         * lib/uniconv/u8-conv-to-enc.c: Likewise.
1982         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
1983         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
1984         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
1985         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
1986         * lib/uniname.h: Likewise.
1987         * lib/uniname/uniname.c: Likewise.
1988         * lib/unistdio.h: Likewise.
1989         * lib/unistdio/u-asnprintf.h: Likewise.
1990         * lib/unistdio/u-asprintf.h: Likewise.
1991         * lib/unistdio/u-printf-args.c: Likewise.
1992         * lib/unistdio/u-printf-args.h: Likewise.
1993         * lib/unistdio/u-printf-parse.h: Likewise.
1994         * lib/unistdio/u-snprintf.h: Likewise.
1995         * lib/unistdio/u-sprintf.h: Likewise.
1996         * lib/unistdio/u-vasprintf.h: Likewise.
1997         * lib/unistdio/u-vsnprintf.h: Likewise.
1998         * lib/unistdio/u-vsprintf.h: Likewise.
1999         * lib/unistdio/u16-asnprintf.c: Likewise.
2000         * lib/unistdio/u16-asprintf.c: Likewise.
2001         * lib/unistdio/u16-printf-parse.c: Likewise.
2002         * lib/unistdio/u16-snprintf.c: Likewise.
2003         * lib/unistdio/u16-sprintf.c: Likewise.
2004         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
2005         * lib/unistdio/u16-u16-asprintf.c: Likewise.
2006         * lib/unistdio/u16-u16-snprintf.c: Likewise.
2007         * lib/unistdio/u16-u16-sprintf.c: Likewise.
2008         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
2009         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
2010         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
2011         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
2012         * lib/unistdio/u16-vasnprintf.c: Likewise.
2013         * lib/unistdio/u16-vasprintf.c: Likewise.
2014         * lib/unistdio/u16-vsnprintf.c: Likewise.
2015         * lib/unistdio/u16-vsprintf.c: Likewise.
2016         * lib/unistdio/u32-asnprintf.c: Likewise.
2017         * lib/unistdio/u32-asprintf.c: Likewise.
2018         * lib/unistdio/u32-printf-parse.c: Likewise.
2019         * lib/unistdio/u32-snprintf.c: Likewise.
2020         * lib/unistdio/u32-sprintf.c: Likewise.
2021         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
2022         * lib/unistdio/u32-u32-asprintf.c: Likewise.
2023         * lib/unistdio/u32-u32-snprintf.c: Likewise.
2024         * lib/unistdio/u32-u32-sprintf.c: Likewise.
2025         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
2026         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
2027         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
2028         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
2029         * lib/unistdio/u32-vasnprintf.c: Likewise.
2030         * lib/unistdio/u32-vasprintf.c: Likewise.
2031         * lib/unistdio/u32-vsnprintf.c: Likewise.
2032         * lib/unistdio/u32-vsprintf.c: Likewise.
2033         * lib/unistdio/u8-asnprintf.c: Likewise.
2034         * lib/unistdio/u8-asprintf.c: Likewise.
2035         * lib/unistdio/u8-printf-parse.c: Likewise.
2036         * lib/unistdio/u8-snprintf.c: Likewise.
2037         * lib/unistdio/u8-sprintf.c: Likewise.
2038         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
2039         * lib/unistdio/u8-u8-asprintf.c: Likewise.
2040         * lib/unistdio/u8-u8-snprintf.c: Likewise.
2041         * lib/unistdio/u8-u8-sprintf.c: Likewise.
2042         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
2043         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
2044         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
2045         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
2046         * lib/unistdio/u8-vasnprintf.c: Likewise.
2047         * lib/unistdio/u8-vasprintf.c: Likewise.
2048         * lib/unistdio/u8-vsnprintf.c: Likewise.
2049         * lib/unistdio/u8-vsprintf.c: Likewise.
2050         * lib/unistdio/ulc-asnprintf.c: Likewise.
2051         * lib/unistdio/ulc-asprintf.c: Likewise.
2052         * lib/unistdio/ulc-printf-parse.c: Likewise.
2053         * lib/unistdio/ulc-snprintf.c: Likewise.
2054         * lib/unistdio/ulc-sprintf.c: Likewise.
2055         * lib/unistdio/ulc-vasnprintf.c: Likewise.
2056         * lib/unistdio/ulc-vasprintf.c: Likewise.
2057         * lib/unistdio/ulc-vsnprintf.c: Likewise.
2058         * lib/unistdio/ulc-vsprintf.c: Likewise.
2059         * lib/unistr.h: Likewise.
2060         * lib/unistr/u-cpy-alloc.h: Likewise.
2061         * lib/unistr/u-cpy.h: Likewise.
2062         * lib/unistr/u-endswith.h: Likewise.
2063         * lib/unistr/u-move.h: Likewise.
2064         * lib/unistr/u-set.h: Likewise.
2065         * lib/unistr/u-startswith.h: Likewise.
2066         * lib/unistr/u-stpcpy.h: Likewise.
2067         * lib/unistr/u-stpncpy.h: Likewise.
2068         * lib/unistr/u-strcat.h: Likewise.
2069         * lib/unistr/u-strcpy.h: Likewise.
2070         * lib/unistr/u-strcspn.h: Likewise.
2071         * lib/unistr/u-strdup.h: Likewise.
2072         * lib/unistr/u-strlen.h: Likewise.
2073         * lib/unistr/u-strncat.h: Likewise.
2074         * lib/unistr/u-strncpy.h: Likewise.
2075         * lib/unistr/u-strnlen.h: Likewise.
2076         * lib/unistr/u-strpbrk.h: Likewise.
2077         * lib/unistr/u-strspn.h: Likewise.
2078         * lib/unistr/u-strstr.h: Likewise.
2079         * lib/unistr/u-strtok.h: Likewise.
2080         * lib/unistr/u16-check.c: Likewise.
2081         * lib/unistr/u16-chr.c: Likewise.
2082         * lib/unistr/u16-cmp.c: Likewise.
2083         * lib/unistr/u16-cpy-alloc.c: Likewise.
2084         * lib/unistr/u16-cpy.c: Likewise.
2085         * lib/unistr/u16-endswith.c: Likewise.
2086         * lib/unistr/u16-mblen.c: Likewise.
2087         * lib/unistr/u16-mbsnlen.c: Likewise.
2088         * lib/unistr/u16-mbtouc-aux.c: Likewise.
2089         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
2090         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
2091         * lib/unistr/u16-mbtouc.c: Likewise.
2092         * lib/unistr/u16-mbtoucr.c: Likewise.
2093         * lib/unistr/u16-move.c: Likewise.
2094         * lib/unistr/u16-next.c: Likewise.
2095         * lib/unistr/u16-prev.c: Likewise.
2096         * lib/unistr/u16-set.c: Likewise.
2097         * lib/unistr/u16-startswith.c: Likewise.
2098         * lib/unistr/u16-stpcpy.c: Likewise.
2099         * lib/unistr/u16-stpncpy.c: Likewise.
2100         * lib/unistr/u16-strcat.c: Likewise.
2101         * lib/unistr/u16-strchr.c: Likewise.
2102         * lib/unistr/u16-strcmp.c: Likewise.
2103         * lib/unistr/u16-strcpy.c: Likewise.
2104         * lib/unistr/u16-strcspn.c: Likewise.
2105         * lib/unistr/u16-strdup.c: Likewise.
2106         * lib/unistr/u16-strlen.c: Likewise.
2107         * lib/unistr/u16-strmblen.c: Likewise.
2108         * lib/unistr/u16-strmbtouc.c: Likewise.
2109         * lib/unistr/u16-strncat.c: Likewise.
2110         * lib/unistr/u16-strncmp.c: Likewise.
2111         * lib/unistr/u16-strncpy.c: Likewise.
2112         * lib/unistr/u16-strnlen.c: Likewise.
2113         * lib/unistr/u16-strpbrk.c: Likewise.
2114         * lib/unistr/u16-strrchr.c: Likewise.
2115         * lib/unistr/u16-strspn.c: Likewise.
2116         * lib/unistr/u16-strstr.c: Likewise.
2117         * lib/unistr/u16-strtok.c: Likewise.
2118         * lib/unistr/u16-to-u32.c: Likewise.
2119         * lib/unistr/u16-to-u8.c: Likewise.
2120         * lib/unistr/u16-uctomb-aux.c: Likewise.
2121         * lib/unistr/u16-uctomb.c: Likewise.
2122         * lib/unistr/u32-check.c: Likewise.
2123         * lib/unistr/u32-chr.c: Likewise.
2124         * lib/unistr/u32-cmp.c: Likewise.
2125         * lib/unistr/u32-cpy-alloc.c: Likewise.
2126         * lib/unistr/u32-cpy.c: Likewise.
2127         * lib/unistr/u32-endswith.c: Likewise.
2128         * lib/unistr/u32-mblen.c: Likewise.
2129         * lib/unistr/u32-mbsnlen.c: Likewise.
2130         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
2131         * lib/unistr/u32-mbtouc.c: Likewise.
2132         * lib/unistr/u32-mbtoucr.c: Likewise.
2133         * lib/unistr/u32-move.c: Likewise.
2134         * lib/unistr/u32-next.c: Likewise.
2135         * lib/unistr/u32-prev.c: Likewise.
2136         * lib/unistr/u32-set.c: Likewise.
2137         * lib/unistr/u32-startswith.c: Likewise.
2138         * lib/unistr/u32-stpcpy.c: Likewise.
2139         * lib/unistr/u32-stpncpy.c: Likewise.
2140         * lib/unistr/u32-strcat.c: Likewise.
2141         * lib/unistr/u32-strchr.c: Likewise.
2142         * lib/unistr/u32-strcmp.c: Likewise.
2143         * lib/unistr/u32-strcpy.c: Likewise.
2144         * lib/unistr/u32-strcspn.c: Likewise.
2145         * lib/unistr/u32-strdup.c: Likewise.
2146         * lib/unistr/u32-strlen.c: Likewise.
2147         * lib/unistr/u32-strmblen.c: Likewise.
2148         * lib/unistr/u32-strmbtouc.c: Likewise.
2149         * lib/unistr/u32-strncat.c: Likewise.
2150         * lib/unistr/u32-strncmp.c: Likewise.
2151         * lib/unistr/u32-strncpy.c: Likewise.
2152         * lib/unistr/u32-strnlen.c: Likewise.
2153         * lib/unistr/u32-strpbrk.c: Likewise.
2154         * lib/unistr/u32-strrchr.c: Likewise.
2155         * lib/unistr/u32-strspn.c: Likewise.
2156         * lib/unistr/u32-strstr.c: Likewise.
2157         * lib/unistr/u32-strtok.c: Likewise.
2158         * lib/unistr/u32-to-u16.c: Likewise.
2159         * lib/unistr/u32-to-u8.c: Likewise.
2160         * lib/unistr/u32-uctomb.c: Likewise.
2161         * lib/unistr/u8-check.c: Likewise.
2162         * lib/unistr/u8-chr.c: Likewise.
2163         * lib/unistr/u8-cmp.c: Likewise.
2164         * lib/unistr/u8-cpy-alloc.c: Likewise.
2165         * lib/unistr/u8-cpy.c: Likewise.
2166         * lib/unistr/u8-endswith.c: Likewise.
2167         * lib/unistr/u8-mblen.c: Likewise.
2168         * lib/unistr/u8-mbsnlen.c: Likewise.
2169         * lib/unistr/u8-mbtouc-aux.c: Likewise.
2170         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
2171         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
2172         * lib/unistr/u8-mbtouc.c: Likewise.
2173         * lib/unistr/u8-mbtoucr.c: Likewise.
2174         * lib/unistr/u8-move.c: Likewise.
2175         * lib/unistr/u8-next.c: Likewise.
2176         * lib/unistr/u8-prev.c: Likewise.
2177         * lib/unistr/u8-set.c: Likewise.
2178         * lib/unistr/u8-startswith.c: Likewise.
2179         * lib/unistr/u8-stpcpy.c: Likewise.
2180         * lib/unistr/u8-stpncpy.c: Likewise.
2181         * lib/unistr/u8-strcat.c: Likewise.
2182         * lib/unistr/u8-strchr.c: Likewise.
2183         * lib/unistr/u8-strcmp.c: Likewise.
2184         * lib/unistr/u8-strcpy.c: Likewise.
2185         * lib/unistr/u8-strcspn.c: Likewise.
2186         * lib/unistr/u8-strdup.c: Likewise.
2187         * lib/unistr/u8-strlen.c: Likewise.
2188         * lib/unistr/u8-strmblen.c: Likewise.
2189         * lib/unistr/u8-strmbtouc.c: Likewise.
2190         * lib/unistr/u8-strncat.c: Likewise.
2191         * lib/unistr/u8-strncmp.c: Likewise.
2192         * lib/unistr/u8-strncpy.c: Likewise.
2193         * lib/unistr/u8-strnlen.c: Likewise.
2194         * lib/unistr/u8-strpbrk.c: Likewise.
2195         * lib/unistr/u8-strrchr.c: Likewise.
2196         * lib/unistr/u8-strspn.c: Likewise.
2197         * lib/unistr/u8-strstr.c: Likewise.
2198         * lib/unistr/u8-strtok.c: Likewise.
2199         * lib/unistr/u8-to-u16.c: Likewise.
2200         * lib/unistr/u8-to-u32.c: Likewise.
2201         * lib/unistr/u8-uctomb-aux.c: Likewise.
2202         * lib/unistr/u8-uctomb.c: Likewise.
2203         * lib/unitypes.h: Likewise.
2204         * lib/uniwidth.h: Likewise.
2205         * lib/uniwidth/cjk.h: Likewise.
2206         * lib/uniwidth/u16-strwidth.c: Likewise.
2207         * lib/uniwidth/u16-width.c: Likewise.
2208         * lib/uniwidth/u32-strwidth.c: Likewise.
2209         * lib/uniwidth/u32-width.c: Likewise.
2210         * lib/uniwidth/u8-strwidth.c: Likewise.
2211         * lib/uniwidth/u8-width.c: Likewise.
2212         * lib/uniwidth/width.c: Likewise.
2213
2214 2007-10-07  Bruno Haible  <bruno@clisp.org>
2215
2216         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
2217         The file is still under LGPL (see modules/inttypes).
2218
2219 2007-10-06  Bruno Haible  <bruno@clisp.org>
2220
2221         * modules/trunc (Dependencies): Add 'extensions'.
2222         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
2223         Reported by Ben Pfaff <blp@gnu.org>.
2224
2225 2007-10-06  Bruno Haible  <bruno@clisp.org>
2226
2227         * modules/freopen-tests: New file.
2228         * tests/test-freopen.c: New file.
2229
2230         * modules/fopen-tests: New file.
2231         * tests/test-fopen.c: New file.
2232
2233         * modules/fopen: New file.
2234         * lib/fopen.c: New file.
2235         * m4/fopen.m4: New file.
2236         * modules/freopen: New file.
2237         * lib/freopen.c: New file.
2238         * m4/freopen.m4: New file.
2239         * lib/stdio.in.h (fopen, freopen): New declarations.
2240         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
2241         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
2242         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
2243         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
2244         * doc/functions/fopen.texi: Mention the 'fopen' module.
2245         * doc/functions/freopen.texi: Mention the 'freopen' module.
2246
2247 2007-10-06  Bruno Haible  <bruno@clisp.org>
2248
2249         * modules/open-tests: New file.
2250         * tests/test-open.c: New file.
2251
2252         * modules/open: New file.
2253         * lib/open.c: New file.
2254         * m4/open.m4: New file.
2255         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
2256         lib/open.c does.
2257         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
2258         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
2259         macros.
2260         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
2261         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
2262         REPLACE_OPEN.
2263         * doc/functions/open.texi: Mention the 'open' module.
2264
2265 2007-10-04  Bruno Haible  <bruno@clisp.org>
2266
2267         * modules/ceill-tests: New file.
2268         * tests/test-ceill.c: New file.
2269
2270         * modules/ceill: New file.
2271         * lib/ceill.c: Replace entire file.
2272         * m4/ceill.m4: New file.
2273         * lib/math.in.h (ceill): Replace declaration.
2274         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
2275         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
2276         * doc/functions/ceill.texi: Mention the 'ceill' module.
2277         * modules/mathl (Files): Remove lib/ceill.c.
2278         (Depends-on): Add ceill.
2279
2280 2007-10-04  Bruno Haible  <bruno@clisp.org>
2281
2282         * modules/ceilf-tests: New file.
2283         * tests/test-ceilf.c: New file.
2284
2285         * modules/ceilf: New file.
2286         * lib/ceil.c: New file.
2287         * lib/ceilf.c: New file.
2288         * m4/ceilf.m4: New file.
2289         * lib/math.in.h (ceilf): New declaration.
2290         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
2291         HAVE_DECL_CEILF.
2292         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
2293         HAVE_DECL_CEILF.
2294         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
2295
2296 2007-10-04  Bruno Haible  <bruno@clisp.org>
2297
2298         * modules/floorl-tests: New file.
2299         * tests/test-floorl.c: New file.
2300
2301         * modules/floorl: New file.
2302         * lib/floorl.c: Replace entire file.
2303         * m4/floorl.m4: New file.
2304         * lib/math.in.h (floorl): Replace declaration.
2305         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
2306         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
2307         * doc/functions/floorl.texi: Mention the 'floorl' module.
2308         * modules/mathl (Files): Remove lib/floorl.c.
2309         (Depends-on): Add floorl.
2310
2311 2007-10-04  Bruno Haible  <bruno@clisp.org>
2312
2313         * modules/floorf-tests: New file.
2314         * tests/test-floorf.c: New file.
2315
2316         * modules/floorf: New file.
2317         * lib/floor.c: New file.
2318         * lib/floorf.c: New file.
2319         * m4/floorf.m4: New file.
2320         * lib/math.in.h (floorf): New declaration.
2321         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
2322         HAVE_DECL_FLOORF.
2323         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
2324         HAVE_DECL_FLOORF.
2325         * doc/functions/floorf.texi: Mention the 'floorf' module.
2326
2327 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
2328             Bruno Haible  <bruno@clisp.org>
2329
2330         Advertise for the Git server instead of the CVS server.
2331         * doc/gnulib-intro.texi (Steady Development): Mention the Git
2332         repository instead of the CVS one.
2333         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
2334         about all VCS systems generically.
2335         * doc/gnulib.texi (Introduction): Capitalize `Git'.
2336
2337 2007-10-04  Bruno Haible  <bruno@clisp.org>
2338
2339         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
2340         means.
2341         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
2342
2343 2007-10-04  Bruno Haible  <bruno@clisp.org>
2344
2345         * modules/truncl-tests: New file.
2346         * tests/test-truncl.c: New file.
2347
2348         * modules/truncl: New file.
2349         * lib/truncl.c: New file.
2350         * m4/truncl.m4: New file.
2351         * lib/math.in.h (truncl): New declaration.
2352         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
2353         HAVE_DECL_TRUNCL.
2354         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
2355         HAVE_DECL_TRUNCL.
2356         * doc/functions/truncl.texi: Mention the 'truncl' module.
2357
2358 2007-10-04  Bruno Haible  <bruno@clisp.org>
2359
2360         * modules/truncf-tests: New file.
2361         * tests/test-truncf.c: New file.
2362
2363         * modules/truncf: New file.
2364         * lib/trunc.c: Make paramerizable through USE_* macros.
2365         * lib/truncf.c: New file.
2366         * m4/truncf.m4: New file.
2367         * lib/math.in.h (truncf): New declaration.
2368         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
2369         HAVE_DECL_TRUNCF.
2370         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
2371         HAVE_DECL_TRUNCF.
2372         * doc/functions/truncf.texi: Mention the 'truncf' module.
2373
2374 2007-10-03  Bruno Haible  <bruno@clisp.org>
2375
2376         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
2377         augmentation also for tests modules.
2378         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
2379         * modules/atexit-tests (Makefile.am): Likewise.
2380         * modules/binary-io-tests (Makefile.am): Likewise.
2381         * modules/c-strcase-tests (Makefile.am): Likewise.
2382         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
2383         * modules/canonicalize-tests (Makefile.am): Likewise.
2384         * modules/closein-tests (Makefile.am): Likewise.
2385         * modules/fprintf-posix-tests (Makefile.am): Likewise.
2386         * modules/freadahead-tests (Makefile.am): Likewise.
2387         * modules/fseek-tests (Makefile.am): Likewise.
2388         * modules/fseeko-tests (Makefile.am): Likewise.
2389         * modules/ftell-tests (Makefile.am): Likewise.
2390         * modules/ftello-tests (Makefile.am): Likewise.
2391         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
2392         * modules/isnanl-tests (Makefile.am): Likewise.
2393         * modules/lseek-tests (Makefile.am): Likewise.
2394         * modules/mbscasecmp-tests (Makefile.am): Likewise.
2395         * modules/mbscasestr-tests (Makefile.am): Likewise.
2396         * modules/mbschr-tests (Makefile.am): Likewise.
2397         * modules/mbscspn-tests (Makefile.am): Likewise.
2398         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
2399         * modules/mbspbrk-tests (Makefile.am): Likewise.
2400         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
2401         * modules/mbsrchr-tests (Makefile.am): Likewise.
2402         * modules/mbsspn-tests (Makefile.am): Likewise.
2403         * modules/mbsstr-tests (Makefile.am): Likewise.
2404         * modules/printf-posix-tests (Makefile.am): Likewise.
2405         * modules/snprintf-posix-tests (Makefile.am): Likewise.
2406         * modules/sprintf-posix-tests (Makefile.am): Likewise.
2407         * modules/tsearch-tests (Makefile.am): Likewise.
2408         * modules/uniname/uniname-tests (Makefile.am): Likewise.
2409         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
2410         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
2411         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
2412         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
2413         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
2414         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
2415         * modules/vprintf-posix-tests (Makefile.am): Likewise.
2416         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
2417         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
2418         * modules/xstrtoimax-tests (Makefile.am): Likewise.
2419         * modules/xstrtol-tests (Makefile.am): Likewise.
2420         * modules/xstrtoumax-tests (Makefile.am): Likewise.
2421         * modules/yesno-tests (Makefile.am): Likewise.
2422
2423 2007-10-03  Bruno Haible  <bruno@clisp.org>
2424
2425         * modules/trunc-tests: New file.
2426         * tests/test-trunc.c: New file.
2427
2428         * modules/trunc: New file.
2429         * lib/trunc.c: New file.
2430         * m4/trunc.m4: New file.
2431         * lib/math.in.h (trunc): New declaration.
2432         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
2433         HAVE_DECL_TRUNC.
2434         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
2435         HAVE_DECL_TRUNC.
2436         * doc/functions/trunc.texi: Mention the 'trunc' module.
2437
2438 2007-10-03  Bruno Haible  <bruno@clisp.org>
2439
2440         * tests/test-fpending.c: New file, mostly copied
2441         from coreutils/lib/t-fpending.c.
2442         * modules/fpending-tests: New file.
2443
2444 2007-10-03  Bruno Haible  <bruno@clisp.org>
2445
2446         Port the stdio extensions to QNX (untested).
2447         * lib/fseterr.c (fseterr): Add support for QNX.
2448         * lib/fbufmode.c (fbufmode): Likewise.
2449         * lib/freadable.c (freadable): Likewise.
2450         * lib/fwritable.c (fwritable): Likewise.
2451         * lib/freading.c (freading): Likewise.
2452         * lib/fwriting.c (fwriting): Likewise.
2453         * lib/freadahead.c (freadahed): Likewise.
2454         * lib/fpurge.c (fpurge): Likewise.
2455         * lib/fseeko.c (rpl_fseeko): Likewise.
2456
2457 2007-10-03  Bruno Haible  <bruno@clisp.org>
2458             Jim Meyering  <jim@meyering.net>
2459             Eric Blake  <ebb9@byu.net>
2460
2461         * doc/relocatable.texi: Use @command instead of @program.
2462
2463 2007-10-02  Jim Meyering  <jim@meyering.net>
2464
2465         Perform one more "_.h" -> ".in.h" substitution.
2466         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
2467         instead of unistd_.h here, too.
2468
2469 2007-10-01  Bruno Haible  <bruno@clisp.org>
2470
2471         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
2472         Needed for the alloca-opt module.
2473
2474 2007-09-30  Bruno Haible  <bruno@clisp.org>
2475
2476         * lib/alloca.in.h: Renamed from lib/alloca_.h.
2477         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
2478         alloca_.h.
2479         * lib/argz.in.h: Renamed from lib/argz_.h.
2480         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
2481         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
2482         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
2483         byteswap_.h.
2484         * lib/dirent.in.h: Renamed from lib/dirent_.h.
2485         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
2486         dirent_.h.
2487         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
2488         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
2489         fcntl_.h.
2490         * lib/float.in.h: Renamed from lib/float_.h.
2491         * modules/float (Files, Makefile.am): Use float.in.h instead of
2492         float_.h.
2493         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
2494         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
2495         fnmatch_.h.
2496         * lib/getopt.in.h: Renamed from lib/getopt_.h.
2497         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
2498         getopt_.h.
2499         * lib/glob.in.h: Renamed from lib/glob_.h.
2500         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
2501         * lib/iconv.in.h: Renamed from lib/iconv_.h.
2502         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
2503         iconv_.h.
2504         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
2505         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
2506         inttypes_.h.
2507         * lib/locale.in.h: Renamed from lib/locale_.h.
2508         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
2509         locale_.h.
2510         * lib/math.in.h: Renamed from lib/math_.h.
2511         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
2512         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
2513         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
2514         of netinet_in_.h. Add dependency.
2515         * lib/poll.in.h: Renamed from lib/poll_.h.
2516         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
2517         * lib/search.in.h: Renamed from lib/search_.h.
2518         * modules/search (Files, Makefile.am): Use search.in.h instead of
2519         search_.h.
2520         * lib/signal.in.h: Renamed from lib/signal_.h.
2521         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
2522         _signal.h.
2523         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
2524         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
2525         stdbool_.h.
2526         * lib/stdint.in.h: Renamed from lib/stdint_.h.
2527         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
2528         stdint_.h.
2529         * lib/stdio.in.h: Renamed from lib/stdio_.h.
2530         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
2531         stdio_.h.
2532         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
2533         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
2534         stdlib_.h.
2535         * lib/string.in.h: Renamed from lib/string_.h.
2536         * modules/string (Files, Makefile.am): Use string.in.h instead of
2537         string_.h.
2538         * doc/gnulib-tool.texi (Initial import): Update.
2539         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
2540         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
2541         of sys_select_.h. Add dependency.
2542         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
2543         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
2544         of sys_socket_.h.
2545         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
2546         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
2547         sys_stat_.h.
2548         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
2549         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
2550         sys_time_.h.
2551         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
2552         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
2553         sysexits_.h.
2554         * lib/time.in.h: Renamed from lib/time_.h.
2555         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
2556         * lib/unistd.in.h: Renamed from lib/unistd_.h.
2557         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
2558         unistd_.h.
2559         * lib/wchar.in.h: Renamed from lib/wchar_.h.
2560         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
2561         wchar_.h.
2562         * lib/wctype.in.h: Renamed from lib/wctype_.h.
2563         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
2564         wctype_.h.
2565         * build-aux/bootstrap (slurp): Update.
2566         * lib/.cppi-disable: Update.
2567
2568 2007-09-30  Bruno Haible  <bruno@clisp.org>
2569
2570         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
2571         Needed on BeOS.
2572
2573 2007-09-30  Bruno Haible  <bruno@clisp.org>
2574
2575         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
2576
2577 2007-09-29  Bruno Haible  <bruno@clisp.org>
2578
2579         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
2580
2581 2007-09-29  Bruno Haible  <bruno@clisp.org>
2582
2583         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
2584         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
2585         * build-aux/install-reloc: Compile also areadlink.c.
2586         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
2587
2588 2007-09-29  Bruno Haible  <bruno@clisp.org>
2589
2590         * gnulib-tool (func_emit_initmacro_done): Indentation.
2591
2592 2007-09-29  Bruno Haible  <bruno@clisp.org>
2593
2594         * README: Add CVS checkout update instructions.
2595         Info from Bob Proulx <bob@proulx.com>.
2596
2597 2007-09-28  Eric Blake  <ebb9@byu.net>
2598
2599         Provide move-if-change.
2600         * build-aux/move-if-change: New file, based on best practice
2601         rather than any canonical upstream location.
2602
2603 2007-09-28  Jim Meyering  <jim@meyering.net>
2604
2605         Fix canonicalize loop-detection corner case.
2606         Do not attempt to stat the symlink values stored via seen_triple.
2607         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
2608         on linux-2.6.18, (but not 2.6.22).
2609         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
2610         triple_compare.  The former compares dev,ino,filename, while the latter
2611         would actually stat dirname(filename) when dev and ino were equal.
2612         * lib/hash-triple.c: Install <string.h>.
2613         (STREQ): Define.
2614         (triple_compare_ino_str): New function.
2615         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
2616
2617 2007-09-28  Eric Blake  <ebb9@byu.net>
2618
2619         Enforce that AC_REPLACE_FUNCS files exist.
2620         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
2621         override check for typos.
2622
2623         Fix test-closein on Solaris 10.
2624         * tests/test-closein.c (main): Don't assume stdin can be inherited
2625         closed on all systems.
2626         * tests/test-closein.sh: Likewise.
2627         Reported by Piotr Tarnowski.
2628
2629 2007-09-28  Jim Meyering  <jim@meyering.net>
2630
2631         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
2632
2633 2007-09-27  Jim Meyering  <jim@meyering.net>
2634
2635         canonicalize: Avoid a false-positive cycle failure.
2636         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
2637         Sort.  Remove cycle-check.
2638         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
2639         not cycle-check.h.
2640         (seen_triple): New function.
2641         (canonicalize_filename_mode): Use it instead of cycle-check.
2642         * tests/test-canonicalize.c: Add a test for this bug.
2643         * tests/test-canonicalize.sh: Set up and run the test.
2644
2645         New module, file-set, from coreutils.
2646         * modules/file-set: Define it.
2647         * lib/file-set.c, lib/file-set.h: Implement.
2648
2649         New module, hash-triple, from coreutils.
2650         * modules/hash-triple: Define it.
2651         * lib/hash-triple.c, lib/hash-triple.h: Implement.
2652
2653 2007-09-25  Eric Blake  <ebb9@byu.net>
2654
2655         Fix strerror on Interix.
2656         * lib/string_.h (strerror): Declare replacement.
2657         * doc/functions/strerror.texi (strerror): Document the Interix
2658         shortcoming.
2659         * modules/string (Makefile.am): Support new hooks.
2660         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
2661         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
2662         gl_FUNC_STRERROR_SEPARATE.
2663         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
2664         * lib/strerror.c (rpl_strerror): Provide replacement.
2665         * modules/strerror (Depends-on): Add string.
2666         (configure.ac): Detect use of module.
2667         * tests/test-strerror.c: New file.
2668         * modules/strerror-tests: New test module.
2669         * modules/argp (Depends-on): Add strerror.
2670         * modules/error (Depends-on): Likewise.
2671         Reported by Martin Koeppe.
2672
2673 2007-09-24  Bruno Haible  <bruno@clisp.org>
2674
2675         * README: Update git instructions.
2676
2677 2007-09-24  Eric Blake  <ebb9@byu.net>
2678
2679         Revert fpending breakage from 2007-09-08.
2680         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
2681         __fpending.c.
2682
2683 2007-09-24  Jim Meyering  <jim@meyering.net>
2684
2685         filenamecat.c: Add a test.
2686         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
2687         showing how the function works when DIR is the empty string.
2688
2689 2007-09-21  Simon Josefsson  <simon@josefsson.org>
2690
2691         * tests/test-canonicalize.sh: Turn on executable bit.
2692
2693 2007-09-19  Eric Blake  <ebb9@byu.net>
2694
2695         * README: Update CVS instructions.
2696
2697 2007-09-18  Bruno Haible  <bruno@clisp.org>
2698
2699         * modules/areadlink: New file.
2700         * lib/areadlink.h (areadlink): New declaration.
2701         * lib/areadlink.c: New file, based on lib/xreadlink.c.
2702
2703 2007-09-17  Jim Meyering  <jim@meyering.net>
2704
2705         * lib/savewd.c (ESTALE) [!defined]: Define.
2706         Reported to be required on Interix by Martin Koeppe.
2707
2708 2007-09-17  Bruno Haible  <bruno@clisp.org>
2709
2710         * gnulib-tool (func_version): Use $version.
2711
2712 2007-09-16  Bruno Haible  <bruno@clisp.org>
2713
2714         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
2715         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
2716         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
2717         Reported by Greg Schafer <gschafer@zip.com.au>.
2718
2719 2007-09-15  Bruno Haible  <bruno@clisp.org>
2720
2721         * gnulib-tool (sed): Try a little harder to make bash understand the
2722         alias.
2723         Reported by Bruce Korb <bruce.korb@gmail.com>.
2724
2725 2007-09-13  Eric Blake  <ebb9@byu.net>
2726
2727         * ChangeLog: Remove conflict markers.
2728
2729 2007-09-13  Simon Josefsson  <simon@josefsson.org>
2730
2731         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
2732         Reported by Bruno Haible <bruno@clisp.org>.
2733
2734 2007-09-12  Bruno Haible  <bruno@clisp.org>
2735
2736         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
2737         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
2738         is not defined.
2739
2740 2007-09-12  Eric Blake  <ebb9@byu.net>
2741
2742         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
2743         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
2744         Autoconf definition.
2745         * modules/euidaccess (Depends-on): Add extensions, for
2746         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
2747         * modules/fnmatch (Depends-on): Likewise.
2748         * modules/getaddrinfo (Depends-on): Likewise.
2749         * modules/getdelim (Depends-on): Likewise.
2750         * modules/getline (Depends-on): Likewise.
2751         * modules/getsubopt (Depends-on): Likewise.
2752         * modules/gettext (Depends-on): Likewise.
2753         * modules/group-member (Depends-on): Likewise.
2754         * modules/mbchar (Depends-on): Likewise.
2755         * modules/memmem (Depends-on): Likewise.
2756         * modules/mempcpy (Depends-on): Likewise.
2757         * modules/memrchr (Depends-on): Likewise.
2758         * modules/pagealign_alloc (Depends-on): Likewise.
2759         * modules/readutmp (Depends-on): Likewise.
2760         * modules/stpcpy (Depends-on): Likewise.
2761         * modules/stpncpy (Depends-on): Likewise.
2762         * modules/strchrnul (Depends-on): Likewise.
2763         * modules/strndup (Depends-on): Likewise.
2764         * modules/strsep (Depends-on): Likewise.
2765         * modules/strverscmp (Depends-on): Likewise.
2766         * modules/vasprintf (Depends-on): Likewise.
2767         * modules/wcwidth (Depends-on): Likewise.
2768         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
2769         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
2770         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
2771         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
2772         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
2773         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
2774         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
2775         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
2776         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
2777         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
2778         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
2779         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
2780         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
2781         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
2782         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
2783         * m4/readutmp.m4 (gl_READUTMP): Likewise.
2784         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
2785         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
2786         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
2787         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
2788         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
2789         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
2790         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
2791         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
2792         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
2793         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
2794         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
2795         so that lock.m4 can be used in gettext without extensions module.
2796
2797 2007-09-11  Bruno Haible  <bruno@clisp.org>
2798
2799         * m4/isc-posix.m4: Remove file.
2800         Suggested by Eric Blake.
2801
2802 2007-09-11  Eric Blake  <ebb9@byu.net>
2803
2804         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
2805
2806 2007-09-10  Bruno Haible  <bruno@clisp.org>
2807
2808         * posix-modules: Fix typo in error message.
2809         Reported by Matt <mkraai@beckman.com>.
2810
2811 2007-09-09  Bruno Haible  <bruno@clisp.org>
2812
2813         * doc/functions/getdelim.texi: Update list of platforms lacking the
2814         function.
2815         * doc/functions/getline.texi: Likewise.
2816
2817 2007-09-09  Jim Meyering  <jim@meyering.net>
2818
2819         * lib/hash.c (hash_initialize): Detect calloc failure.
2820         Reported by Bruno Haible.
2821
2822 2007-09-09  Bruno Haible  <bruno@clisp.org>
2823
2824         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
2825         malloc or realloc fails.
2826
2827 2007-09-09  Bruno Haible  <bruno@clisp.org>
2828
2829         * modules/getcwd (Depends-on): Add malloc-posix.
2830         * modules/glob (Depends-on): Likewise.
2831         * modules/putenv (Depends-on): Likewise.
2832         * modules/strdup (Depends-on): Likewise.
2833         * modules/getdelim (Depends-on): Add realloc-posix.
2834         * modules/read-file (Depends-on): Likewise.
2835
2836 2007-09-09  Bruno Haible  <bruno@clisp.org>
2837
2838         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
2839         (gl_FUNC_MALLOC_POSIX): Require it.
2840         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
2841         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
2842         * modules/realloc (Files): Add m4/malloc.m4.
2843         * modules/calloc (Files): Likewise.
2844
2845 2007-09-09  Bruno Haible  <bruno@clisp.org>
2846
2847         * modules/malloc-posix: New file.
2848         * modules/malloc (Depends-on): Add malloc-posix.
2849         * lib/malloc.c: Include errno.h.
2850         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
2851         and a POSIX-compatible malloc into a single function. Set ENOMEM
2852         when returning NULL.
2853         * m4/malloc.m4: New file.
2854         * doc/functions/malloc.texi: Mention the malloc-posix module.
2855         * lib/stdlib_.h (malloc): New declaration.
2856         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
2857         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
2858         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
2859         and HAVE_MALLOC_POSIX.
2860
2861 2007-09-09  Bruno Haible  <bruno@clisp.org>
2862
2863         * modules/realloc-posix: New file.
2864         * modules/realloc (Depends-on): Add realloc-posix.
2865         * lib/realloc.c: Include errno.h.
2866         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
2867         and a POSIX-compatible realloc into a single function. Set ENOMEM
2868         when returning NULL.
2869         * m4/realloc.m4: New file.
2870         * doc/functions/realloc.texi: Mention the realloc-posix module.
2871         * lib/stdlib_.h (realloc): New declaration.
2872         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
2873         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
2874         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
2875         and HAVE_REALLOC_POSIX.
2876
2877 2007-09-09  Bruno Haible  <bruno@clisp.org>
2878
2879         * modules/calloc-posix: New file.
2880         * modules/calloc (Depends-on): Add calloc-posix.
2881         * lib/calloc.c: Include errno.h.
2882         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
2883         and a POSIX-compatible calloc into a single function. Set ENOMEM
2884         when returning NULL.
2885         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
2886         * doc/functions/calloc.texi: Mention the calloc-posix module.
2887         * lib/stdlib_.h (calloc): New declaration.
2888         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
2889         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
2890         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
2891         and HAVE_CALLOC_POSIX.
2892
2893 2007-09-09  Bruno Haible  <bruno@clisp.org>
2894
2895         Allow for modules to show an arbitrary notice.
2896         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
2897         * gnulib-tool: New option --extract-notice.
2898         (func_usage): Document it.
2899         (sed_extract_prog): Update.
2900         (func_get_notice): New function.
2901         (func_modules_notice): New function.
2902         (func_import, func_create_testdir): Invoke it.
2903         Suggested by Jim Meyering.
2904
2905 2007-09-09  Bruno Haible  <bruno@clisp.org>
2906
2907         * gnulib-tool: New options --verbose, --quiet.
2908         (func_usage): Document them.
2909         (verbose): New variable.
2910         (func_execute_command): New function.
2911         (func_import): Don't show the module list and the file list if
2912         $verbose < 0.
2913         (func_create_testdir): Likewise. Use func_execute_command.
2914         (func_create_megatestdir): Use func_execute_command.
2915
2916 2007-09-08  Bruno Haible  <bruno@clisp.org>
2917
2918         * gnulib-tool (func_import): Prefer rsync over wget when available,
2919         for fetching the PO files.
2920
2921 2007-09-08  Bruno Haible  <bruno@clisp.org>
2922
2923         * posix-modules: New file. Portions copied from gnulib-tool.
2924         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
2925
2926 2007-09-08  Jim Meyering  <jim@meyering.net>
2927
2928         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
2929         * lib/fpending.h: Rename from __fpending.h.
2930         * lib/fpending.c: Rename from __fpending.c.
2931         Include "fpending.h", not "__fpending.h".
2932         * lib/__fpending.h, lib/__fpending.c: Remove files.
2933         * modules/fpending (Files): Reflect new file names.
2934         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
2935
2936 2007-09-08  Bruno Haible  <bruno@clisp.org>
2937
2938         * m4/inttypes-h.m4: Remove stub file.
2939
2940 2007-09-07  Simon Josefsson  <simon@josefsson.org>
2941
2942         * doc/headers/stdint.texi: Discuss #include_next issue.
2943
2944 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
2945
2946         * build-aux/bootstrap: Remove obsolete comment about wget --help.
2947
2948 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2949
2950         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
2951         in variable name.
2952
2953 2007-09-03  Jim Meyering  <jim@meyering.net>
2954
2955         New module: git-version-gen.
2956         * modules/git-version-gen: New file.
2957
2958         Import changes from coreutils for bootstrap script.
2959
2960         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
2961
2962         bootstrap: uses rsync to download the .po files
2963         * build-aux/bootstrap (po_download_command_format): New global.
2964         (download_po_files): Use rsync.
2965         (update_po_files): Don't remove .po files after download,
2966         so future rsync runs can take advantage of the copies.
2967
2968         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
2969
2970         Solve the unnecessary-.po-file-regeneration problem once and for all.
2971         * build-aux/bootstrap (download_po_files): New function, renamed from
2972         get_translations.  Now, downloads, but doesn't update LINGUAS.
2973         (update_po_files): New function.
2974
2975         bootstrap: Ignore more.
2976         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
2977         uniwidth to e.g., lib/.gitignore.
2978         (slurp): Handle the sys_stat_.h -> sys mapping, too.
2979
2980         * build-aux/bootstrap: New setting: vc_ignore.
2981         (insert_sorted_if_absent): Create $file if absent.
2982         Adapt to new, possibly empty, list: $vc_ignore.
2983
2984         bootstrap: generate more ignorable names
2985         * build-aux/bootstrap (slurp): When generating ignorable names,
2986         also map .sin to .sed, .gperf to .c, and .y to .c.
2987
2988 2007-09-03  Jim Meyering  <jim@meyering.net>
2989
2990         * build-aux/git-version-gen: New file, from coreutils.  For details, see
2991         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
2992
2993 2007-09-02  Bruno Haible  <bruno@clisp.org>
2994
2995         Fix mis-recognition of 'mcs' on QNX 6.
2996         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
2997         output contains the string "Mono".
2998         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
2999         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
3000
3001 2007-09-01  Bruno Haible  <bruno@clisp.org>
3002
3003         Fix collision between uniwidth/* and linebreak modules.
3004         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
3005         u32_width): Remove declarations.
3006         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
3007         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
3008         streq3, streq2, streq1, streq0): Remove functions.
3009         (STREQ): Remove macro.
3010         (is_cjk_encoding): Remove function.
3011         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
3012         (uc_width, u8_width, u16_width, u32_width): Remove functions.
3013         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
3014         * NEWS: Document the change.
3015
3016 2007-09-01  Bruno Haible  <bruno@clisp.org>
3017
3018         * lib/streq.h: Add double-inclusion guard.
3019
3020 2007-09-01  Karl Berry  <karl@gnu.org>
3021
3022         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
3023
3024 2007-08-28  Jim Meyering  <jim@meyering.net>
3025
3026         Rename mreadlink_with_size to areadlink_with_size.
3027         * NEWS: Document the change.
3028         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
3029         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
3030         * lib/mreadlink.h: Rename this to...
3031         * lib/areadlink.h: ...this.
3032         * modules/mreadlink-with-size: Rename this to...
3033         * modules/areadlink-with-size: ...this.
3034         * lib/canonicalize.c: Reflect the renaming.
3035         * modules/canonicalize: Likewise.
3036
3037 2007-08-26  Bruno Haible  <bruno@clisp.org>
3038
3039         * gnulib-tool (func_import): When deciding which files to remove,
3040         consider also dangling symbolic links.
3041         Reported by Eric Blake.
3042
3043 2007-08-26  Bruno Haible  <bruno@clisp.org>
3044
3045         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
3046
3047 2007-08-23  Simon Josefsson  <simon@josefsson.org>
3048
3049         * lib/readline.c: Don't include getline.h, the prototype is now
3050         found in stdio.h.
3051
3052 2007-08-23  Jim Meyering  <jim@meyering.net>
3053
3054         Getdelim touchup.
3055         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
3056         around the funlockfile call, since funlockfile never sets errno.
3057         Don't set errno upon failed realloc.
3058
3059 2007-08-22  Eric Blake  <ebb9@byu.net>
3060
3061         Getline touchups.
3062         * lib/getdelim.c (getdelim): Revert regression that required *n to
3063         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
3064         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
3065         getdelim, rather than whether implementation is missing.
3066         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
3067         * lib/stdio_.h (getline): Also declare if replacement is
3068         required.
3069         * doc/functions/getdelim.texi: New file.
3070         * doc/functions/getline.texi: Likewise.
3071         * doc/gnulib.texi (Function Substitutes): Add new files.
3072         Reported by Bruno Haible.
3073
3074 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
3075
3076         * users.txt: Add Guile.
3077
3078 2007-08-22  Eric Blake  <ebb9@byu.net>
3079
3080         * tests/test-getdelim.c (main): Use remove, not unlink.
3081         * tests/test-getline.c (main): Likewise.
3082
3083         Move getline and getdelim into stdio.h, per POSIX 200x.
3084         * modules/getline (Files): Remove getline.h.
3085         (Depends-on): Add stdio.
3086         (configure.ac): Add module indicator.
3087         * modules/getdelim (Files): Remove getdelim.h.
3088         (Depends-on): Add stdio.
3089         (configure.ac): Add module indicator.
3090         * modules/stdio (Makefile.am): Work with new indicators.
3091         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
3092         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
3093         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
3094         * lib/getdelim.h: Delete.
3095         * lib/getline.h: Delete.
3096         * lib/stdio_.h (getdelim, getline): Declare.
3097         * modules/getdelim-tests: New module.
3098         * modules/getline-tests: Likewise.
3099         * tests/test-getdelim.c: New file.
3100         * tests/test-getline.c: Likewise.
3101         * NEWS: Document the change.
3102         * lib/getline.c: Update choice of header.
3103         * lib/csharpcomp.c: Likewise.
3104         * lib/getpass.c: Likewise.
3105         * lib/javacomp.c: Likewise.
3106         * lib/javaversion.c: Likewise.
3107         * lib/yesno.c: Likewise.
3108         * lib/getdelim.c: Likewise.
3109         (getdelim): Set errno on failure, and avoid memory leak.
3110
3111 2007-08-19  Bruno Haible  <bruno@clisp.org>
3112
3113         * modules/closein (Depends-on): Add freadahead.
3114         * lib/closein.c: Include freadahead.h.
3115         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
3116         is zero.
3117
3118 2007-08-19  Bruno Haible  <bruno@clisp.org>
3119
3120         * modules/freadahead-tests: New file.
3121         * tests/test-freadahead.sh: New file.
3122         * tests/test-freadahead.c: New file.
3123
3124         * modules/freadahead: New file.
3125         * lib/freadahead.h: New file.
3126         * lib/freadahead.c: New file.
3127         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
3128         fbufmode, fpurge, freadable, fwritable.
3129
3130 2007-08-19  Eric Blake  <ebb9@byu.net>
3131
3132         Test yesno in combination with closein.
3133         * lib/yesno.c (yesno): Document use of stdin.
3134         * modules/yesno-tests (Files): New module.
3135         * tests/test-yesno.c (main): New file.
3136         * tests/test-yesno.sh: Likewise.
3137
3138 2007-08-19  Bruno Haible  <bruno@clisp.org>
3139
3140         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
3141         * lib/fseeko.c (rpl_fseeko): Likewise.
3142         * lib/fseterr.c (fseterr): Likewise.
3143
3144 2007-08-19  Bruno Haible  <bruno@clisp.org>
3145
3146         * tests/test-lseek.c (main): Disable a test for BeOS.
3147         * doc/functions/lseek.texi: Document the BeOS bug.
3148
3149 2007-08-19  Bruno Haible  <bruno@clisp.org>
3150             Eric Blake  <ebb9@byu.net>
3151
3152         * lib/lseek.c: Include <sys/stat.h>.
3153         (rpl_lseek): Add workaround code also for Unix platforms.
3154         Needed for BeOS.
3155         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
3156         * doc/functions/lseek.texi: Document BeOS definiency.
3157
3158 2007-08-18  Bruno Haible  <bruno@clisp.org>
3159
3160         * modules/fstrcmp-tests: New file.
3161         * tests/test-fstrcmp.c: New file.
3162
3163 2007-08-18  Bruno Haible  <bruno@clisp.org>
3164
3165         * modules/fstrcmp: New file, from GNU gettext with modifications.
3166         * lib/fstrcmp.h: New file, from GNU gettext.
3167         * lib/fstrcmp.c: New file, from GNU gettext.
3168         * MODULES.html.sh (String handling): Add fstrcmp.
3169
3170 2007-08-18  Bruno Haible  <bruno@clisp.org>
3171
3172         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
3173         'bool'.
3174         (diag, compareseq): Remove const from the ctxt argument.
3175         (USE_HEURISTIC): Undefine at the end.
3176
3177 2007-08-18  Jim Meyering  <jim@meyering.net>
3178
3179         New file: lib/idcache.h
3180         * NEWS: Mention the addition.
3181         * modules/idcache (Files): Add lib/idcache.h
3182         * lib/idcache.c: Include "idcache.h".
3183         Don't include <sys/types.h>.
3184         Add a FIXME comment.
3185         Move file-scoped "static" declarations to the top.
3186         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
3187
3188 2007-08-17  Bruno Haible  <bruno@clisp.org>
3189         and Paul Eggert  <eggert@cs.ucla.edu>
3190
3191         * MODULES.html.sh: Add diffseq.
3192         * modules/diffseq: New file.
3193         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
3194         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
3195
3196 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
3197
3198         Import changes from coreutils for bootstrap script.
3199
3200         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
3201
3202         * build-aux/bootstrap (slurp): Work even in environments where
3203         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
3204         current code does not slurp files whose names start with ".", and
3205         this looks like it might be a troublesome area.
3206
3207         2007-07-11  Jim Meyering  <jim@meyering.net>
3208
3209         If there's a GPL vN copyright comment, require that N == 3.
3210
3211         2007-07-08  Jim Meyering  <jim@meyering.net>
3212
3213         Run the coreutils-specific code only if tests/Makefile.am.in exists.
3214         * build-aux/bootstrap (mam_template): Move definition out of loop.
3215
3216         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
3217
3218         * build-aux/bootstrap (symlink_to_dir): Rename function from
3219         symlink_to_gnulib.  Add a directory parameter.  Update all
3220         callers.
3221         (cp_mark_as_generated): Also check for -- and link to -- files in
3222         gl/.
3223
3224         2007-07-08  Jim Meyering  <jim@meyering.net>
3225
3226         Adapt to deeper hierarchy in gnulib.
3227         * build-aux/bootstrap (symlink_to_dir): If the destination
3228         directory doesn't exist, create it. This is required at least for
3229         "lib/uniwidth/cjk.h".
3230
3231         2007-05-15  Jim Meyering  <jim@meyering.net>
3232
3233         * build-aux/bootstrap: Now that generated Makefile.am files
3234         are no longer under version control, they must be created at
3235         bootstrap time.
3236
3237 2007-08-14  Ben Pfaff  <blp@gnu.org>
3238
3239         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
3240
3241 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
3242
3243         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
3244         given the changes below.
3245         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
3246         even on hosts that have padding bits beyond the supported 64.
3247
3248 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
3249
3250         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
3251         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
3252         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
3253         depends on it.
3254         (xstrtol_error): Remove.
3255         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
3256         but with a different signature.
3257         (ATTRIBUTE_NORETURN, __attribute__): New macros.
3258         * lib/xstrtol-error.c: Include exitfail.h.
3259         (xstrtol_fatal): New function, with a different signature from the
3260         old xstrtol_error, so that the caller need not worry about passing
3261         in an exit status, or about storage management of the option argument.
3262         (xstrtol_error): Now a static function.  Redo signature to
3263         implement xstrtol_fatal.  Output the correct number of hyphens in
3264         front of the option so that the caller need not worry about
3265         storage management.
3266         (N_): New macro.
3267         (_): Remove; not used now.
3268         * modules/xstrtol: Depend on getopt.
3269         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
3270         of old STRTOL_FATAL_ERROR macro.
3271         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
3272         of test program.
3273         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
3274         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
3275
3276 2007-08-08  Eric Blake  <ebb9@byu.net>
3277
3278         * lib/xstrtol-error.c: Add missing include.
3279
3280         Move xstrtol messages into gnulib domain, when --pobase is used.
3281         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
3282         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
3283         * modules/xstrtol (Files): Distribute new file.
3284         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
3285         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
3286         * tests/test-xstrtol.c: ...into new file.
3287         * tests/test-xstrtoul.c: Also test xstrtoul.
3288         * tests/test-xstrtoimax.c: Also test xstrtoimax.
3289         * tests/test-xstrtoumax.c: Also test xstrtoumax.
3290         * tests/test-xstrtol.sh: Drive the tests.
3291         * tests/test-xstrtoimax.sh: Likewise.
3292         * tests/test-xstrtoumax.sh: Likewise.
3293         * modules/xstrtol-tests: New module.
3294         * modules/xstrtoimax-tests: Likewise.
3295         * modules/xstrtoumax-tests: Likewise.
3296
3297 2007-08-08  Jim Meyering  <jim@meyering.net>
3298
3299         New function: mfile_name_concat.
3300         * lib/filenamecat.c (mfile_name_concat): New function, just like
3301         file_name_concat, but return NULL upon failure rather than exiting
3302         with a diagnostic.
3303         * lib/filenamecat.h: Declare it.
3304
3305 2007-08-07  Bruno Haible  <bruno@clisp.org>
3306
3307         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
3308         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
3309         warning from gcc.
3310         Reported by Eric Blake.
3311
3312 2007-08-07  Simon Josefsson  <simon@josefsson.org>
3313
3314         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
3315         * modules/crypto/arcfour (License): Likewise.
3316         * modules/crypto/des-tests (License): Likewise.
3317         * modules/crypto/gc-arctwo-tests (License): Likewise.
3318         * modules/crypto/gc-des-tests (License): Likewise.
3319         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
3320         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
3321         * modules/crypto/gc-md2-tests (License): Likewise.
3322         * modules/crypto/gc-md4-tests (License): Likewise.
3323         * modules/crypto/gc-md5-tests (License): Likewise.
3324         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
3325         * modules/crypto/gc-rijndael-tests (License): Likewise.
3326         * modules/crypto/gc-sha1-tests (License): Likewise.
3327         * modules/crypto/gc-tests (License): Likewise.
3328         * modules/crypto/hmac-md5 (License): Likewise.
3329         * modules/crypto/hmac-sha1 (License): Likewise.
3330         * modules/crypto/md2-tests (License): Likewise.
3331         * modules/crypto/md4-tests (License): Likewise.
3332         * modules/crypto/md5 (License): Likewise.
3333         * modules/crypto/rijndael (License): Likewise.
3334         * modules/crypto/sha1 (License): Likewise.
3335         * modules/memxor (License): Likewise.
3336
3337 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
3338         and Bruno Haible  <bruno@clisp.org>
3339
3340         * NEWS: Describe interface changes to human, xstrtol.
3341         * lib/human.h: Include <xstrtol.h>.
3342         (human_options): Return enum strtol_error, not int.  Remove
3343         bool arg; take int * instead.
3344         * lib/human.c: Don't include "gettext.h".
3345         (_): Remove; no longer used.
3346         Don't include <xstrtol.h>, since human.h does it.
3347         (human_options): Adjust to abovementioned interface changes.
3348         Do not report error to stderr; that's now the caller's
3349         responsibility.
3350         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
3351         interface change.
3352         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
3353         Str, Argument_type_string.  All uses changed.  Put " argument"
3354         in diagnostics to make them clearer.  Change wording of suffix
3355         message for clarity.
3356         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
3357         Argument_type_string.
3358         (STRTOL_FATAL_WARN): Remove; no longer used.
3359         * modules/human (Depends-on): Remove gettext-h.
3360
3361 2007-08-06  Simon Josefsson  <simon@josefsson.org>
3362
3363         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
3364
3365 2007-07-31  Bruno Haible  <bruno@clisp.org>
3366
3367         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
3368         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
3369         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
3370
3371 2007-07-31  Bruno Haible  <bruno@clisp.org>
3372
3373         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
3374         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
3375
3376 2007-07-30  Bruno Haible  <bruno@clisp.org>
3377
3378         * modules/base64 (License): Use the synonymous term "LGPLv2+".
3379         * modules/c-ctype (License): Likewise.
3380         * modules/c-strcase (License): Likewise.
3381         * modules/check-version (License): Likewise.
3382         * modules/iconv (License): Likewise.
3383         * modules/iconv_open (License): Likewise.
3384         * modules/read-file (License): Likewise.
3385         * modules/striconv (License): Likewise.
3386         * modules/strverscmp (License): Likewise.
3387         * modules/vasprintf (License): Likewise.
3388         * modules/crypto/des (License): Likewise.
3389         * modules/crypto/gc (License): Likewise.
3390         * modules/crypto/gc-arcfour (License): Likewise.
3391         * modules/crypto/gc-arctwo (License): Likewise.
3392         * modules/crypto/gc-des (License): Likewise.
3393         * modules/crypto/gc-hmac-md5 (License): Likewise.
3394         * modules/crypto/gc-hmac-sha1 (License): Likewise.
3395         * modules/crypto/gc-md2 (License): Likewise.
3396         * modules/crypto/gc-md4 (License): Likewise.
3397         * modules/crypto/gc-md5 (License): Likewise.
3398         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
3399         * modules/crypto/gc-random (License): Likewise.
3400         * modules/crypto/gc-rijndael (License): Likewise.
3401         * modules/crypto/gc-sha1 (License): Likewise.
3402         * modules/crypto/md2 (License): Likewise.
3403         * modules/crypto/md4 (License): Likewise.
3404
3405 2007-07-30  Jim Meyering  <jim@meyering.net>
3406
3407         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
3408         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
3409         it has valid stat data.  This bug would cause du not to count the
3410         sizes of inaccessible directories.
3411         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
3412         in <http://bugzilla.redhat.com/250077>.
3413
3414 2007-07-25  Peter O'Gorman  <peter@pogma.com>
3415             Bruno Haible  <bruno@clisp.org>
3416
3417         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
3418         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
3419         #include_next, gives a diagnostic about it, but reports no error in
3420         the exit code.
3421         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
3422
3423 2007-07-24  Ben Pfaff  <blp@gnu.org>
3424
3425         Improve name: "count-one-bits" is better than "popcount".
3426         * MODULES.html.sh: Update name.
3427         * lib/popcount.h: Renamed lib/count-one-bits.h.
3428         (popcount): Renamed count_one_bits.
3429         (popcountl): Renamed count_one_bits_l.
3430         (popcountll): Renamed count_one_bits_ll.
3431         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
3432         * modules/popcount: Renamed module/count-one-bits.
3433         * modules/popcount-tests: Renamed module/count-one-bits-tests.
3434         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
3435
3436 2007-07-23  Ben Pfaff  <blp@gnu.org>
3437
3438         * lib/popcount.h (popcount32): Reduce size of constants, to allow
3439         better code generation, and add U to large constants to avoid
3440         warnings, in non-GCC case.
3441         Suggested by Bruno Haible.
3442
3443 2007-07-23  Ben Pfaff  <blp@gnu.org>
3444
3445         * lib/popcount.h: Use verify_true instead of if...abort.
3446         * modules/popcount: Depend on verify module.
3447         Suggested by Jim Meyering.
3448
3449 2007-07-23  Bruno Haible  <bruno@clisp.org>
3450
3451         * gnulib-tool (func_import): Create a .cvsignore file also when the
3452         directory is not yet in CVS but the toplevel directory is. When
3453         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
3454         Reported by Karl Berry.
3455
3456 2007-07-22  Ben Pfaff  <blp@gnu.org>
3457
3458         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
3459         case.
3460         Suggested by Eric Blake.
3461
3462 2007-07-22  Ben Pfaff  <blp@gnu.org>
3463
3464         New module: popcount.
3465         * MODULES.html.sh: Add popcount.
3466         * modules/popcount: New file.
3467         * modules/popcount-tests: New file.
3468         * tests/test-popcount.c: New file.
3469         * lib/popcount.h: New file.
3470         * m4/popcount.m4: New file.
3471
3472 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
3473
3474         * build-aux/announce-gen: Update to GPLv3.
3475
3476         * build-aux/config.guess: Update from config.
3477
3478 2007-07-21  Bruno Haible  <bruno@clisp.org>
3479
3480         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
3481         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
3482
3483 2007-07-20  Jim Meyering  <jim@meyering.net>
3484
3485         * check-module: Diagnose a self-dependency.
3486
3487 2007-07-19  Bruno Haible  <bruno@clisp.org>
3488
3489         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
3490         empty.
3491         Reported by Eric Blake.
3492
3493 2007-07-18  Bruno Haible  <bruno@clisp.org>
3494
3495         * gnulib-tool: New options --po-base, --po-domain.
3496         (func_usage): Document them.
3497         (pobase, po_domain): New variables.
3498         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
3499         DEFAULT_TEXT_DOMAIN.
3500         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
3501         (func_import): Consider pobase and po_domain. Create a po/ directory.
3502         (func_create_testdir): Set pobase and po_domain to empty.
3503         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
3504         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
3505
3506 2007-07-18  Bruno Haible  <bruno@clisp.org>
3507
3508         * gnulib-tool (func_get_automake_snippet): Synthesize also an
3509         EXTRA_DIST augmentation for files in build-aux/.
3510
3511 2007-07-16  Bruno Haible  <bruno@clisp.org>
3512
3513         * modules/lseek (License): Use the synonymous term "LGPLv2+".
3514         * modules/getdelim (License): Likewise.
3515
3516 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
3517
3518         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
3519         * modules/d-type (License): Likewise.
3520         * modules/extensions (License): Likewise.
3521         * modules/fnmatch (License): Likewise.
3522         * modules/fseeko (License): Likewise.
3523         * modules/getaddrinfo (License): Likewise.
3524         * modules/getline (License): Likewise.
3525         * modules/getlogin_r (License): Likewise.
3526         * modules/getpass (License): Likewise.
3527         * modules/gettimeofday (License): Likewise.
3528         * modules/glob (License): Likewise.
3529         * modules/inet_ntop (License): Likewise.
3530         * modules/malloc (License): Likewise.
3531         * modules/malloca (License): Likewise.
3532         * modules/memmem (License): Likewise.
3533         * modules/mempcpy (License): Likewise.
3534         * modules/memset (License): Likewise.
3535         * modules/minmax (License): Likewise.
3536         * modules/mktime (License): Likewise.
3537         * modules/netinet_in (License): Likewise.
3538         * modules/pathmax (License): Likewise.
3539         * modules/poll (License): Likewise.
3540         * modules/regex (License): Likewise.
3541         * modules/snprintf (License): Likewise.
3542         * modules/stdbool (License): Likewise.
3543         * modules/stdint (License): Likewise.
3544         * modules/stdio (License): Likewise.
3545         * modules/strcase (License): Likewise.
3546         * modules/strcasestr (License): Likewise.
3547         * modules/strdup (License): Likewise.
3548         * modules/string (License): Likewise.
3549         * modules/strndup (License): Likewise.
3550         * modules/strnlen (License): Likewise.
3551         * modules/strpbrk (License): Likewise.
3552         * modules/strptime (License): Likewise.
3553         * modules/strsep (License): Likewise.
3554         * modules/sys_select (License): Likewise.
3555         * modules/sys_socket (License): Likewise.
3556         * modules/sys_stat (License): Likewise.
3557         * modules/sys_time (License): Likewise.
3558         * modules/time (License): Likewise.
3559         * modules/time_r (License): Likewise.
3560         * modules/timegm (License): Likewise.
3561         * modules/unistd (License): Likewise.
3562         * modules/vsnprintf (License): Likewise.
3563         * modules/wctype (License): Likewise.
3564
3565 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3566
3567         * modules/argz (License): LGPLv2+.
3568
3569 2007-07-15  Karl Berry  <karl@gnu.org>
3570
3571         * doc/gnulib.texi: revise node structure per new fdl.texi.
3572
3573 2007-07-14  Bruno Haible  <bruno@clisp.org>
3574
3575         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
3576         the output file.
3577         * lib/uniname/uninames.h: Regenerated.
3578
3579 2007-07-14  Karl Berry  <karl@gnu.org>
3580
3581         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
3582         omitting sectioning and index commands.
3583
3584 2007-07-13  Bruno Haible  <bruno@clisp.org>
3585
3586         New gnulib-tool option --more-symlinks.
3587         * gnulib-tool (func_usage): Document --more-symlinks.
3588         (do_copyrights): New variable.
3589         Recognize option --more-symlinks.
3590         (func_import): Don't add a copyright notice transform to
3591         sed_transform_lib_file if do_copyrights is empty.
3592
3593 2007-07-13  Bruno Haible  <bruno@clisp.org>
3594
3595         * lib/vasnprintf.c (decimal_point_char): Define also if
3596         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
3597         && !NEED_PRINTF_DIRECTIVE_A.
3598         Reported by Clemens Koller <clemens.koller@anagramm.de> via
3599         Gary V. Vaughan <gary@gnu.org>.
3600
3601 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
3602
3603         * lib/inttypes_.h: Undo previous change, since it was fixed
3604         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
3605
3606 2007-07-13  Bruno Haible  <bruno@clisp.org>
3607
3608         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
3609         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
3610
3611 2007-07-13  Jim Meyering  <jim@meyering.net>
3612
3613         df: Don't fail for Tru64's "file-on-file mount".
3614         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
3615         so we fall through and use statfs instead.  Details here:
3616         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
3617         Reported by Albert Chin.
3618
3619 2007-07-13  Bruno Haible  <bruno@clisp.org>
3620
3621         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
3622         * modules/configmake (License): Likewise.
3623         * modules/gettext (License): Likewise.
3624         * modules/gettext-h (License): Likewise.
3625         * modules/include_next (License): Likewise.
3626         * modules/link-warning (License): Likewise.
3627         * modules/localcharset (License): Likewise.
3628         * modules/localename (License): Likewise.
3629         * modules/lock (License): Likewise.
3630         * modules/relocatable-lib-lgpl (License): Likewise.
3631         * modules/size_max (License): Likewise.
3632         * modules/vasnprintf (License): Likewise.
3633         * modules/wchar (License): Likewise.
3634         * modules/xsize (License): Likewise.
3635
3636 2007-07-13  Bruno Haible  <bruno@clisp.org>
3637
3638         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
3639         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
3640
3641 2007-07-12  Bruno Haible  <bruno@clisp.org>
3642
3643         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
3644         in the modules files.
3645
3646 2007-07-11  Karl Berry  <karl@gnu.org>
3647
3648         * MODULES.html.sh (func_module): use
3649          sed -e '\|^'"${includefile}"'$|d'
3650          instead of /.../d, to avoid errors on $includefile's containing /.
3651
3652 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
3653
3654         * gnulib-tool (func_import): Avoid duplication of --avoid
3655         statements
3656         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
3657         names to `_' in variable names.
3658
3659 2007-07-10  Eric Blake  <ebb9@byu.net>
3660
3661         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
3662         * NEWS: Document this change.
3663
3664 2007-07-08  Bruno Haible  <bruno@clisp.org>
3665
3666         Update to Unicode 5.0.
3667         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
3668         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
3669         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
3670         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
3671         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
3672         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
3673         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
3674         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
3675         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
3676         U+10A3F, U+1D242..U+1D244.
3677         (nonspacing_table_ind): Update.
3678         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
3679         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
3680
3681 2007-07-08  Bruno Haible  <bruno@clisp.org>
3682
3683         Update to Unicode 5.0.
3684         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
3685         code transform. Extend the name index field of unicode_name_to_code and
3686         unicode_code_to_name from 16 to 24 bits.
3687         * lib/uniname/uniname.c (unicode_character_name,
3688         unicode_name_character): Add the range 0x12xxx to the code transform.
3689         * lib/uniname/uninames.h: Regenerated.
3690         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
3691
3692 2007-07-07  Bruno Haible  <bruno@clisp.org>
3693
3694         * modules/wcwidth-tests: New file.
3695         * tests/test-wcwidth.c: New file.
3696
3697         Work around MacOS X wcwidth() bug.
3698         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
3699         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
3700         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
3701         original wcwidth in non-UTF-8 locales.
3702         * modules/wcwidth (Depends-on): Add localcharset, streq,
3703         uniwidth/width.
3704         * doc/functions/wcwidth.texi: Update.
3705
3706 2007-07-07  Bruno Haible  <bruno@clisp.org>
3707
3708         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
3709         (wcwidth): New declaration.
3710         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
3711         macros.
3712         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
3713         here. Prepare for creating <wchar.h> unconditionally.
3714         * modules/wchar (Depends-on): Add link-warning.
3715         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
3716         REPLACE_WCWIDTH, and GL_LINK_WARNING.
3717         * lib/wcwidth.h: Remove file.
3718         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
3719         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
3720         * modules/wcwidth (Files): Remove lib/wcwidth.h.
3721         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
3722         (Include): Replace wcwidth.h with <wchar.h>.
3723         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
3724         * lib/mbchar.h: Don't include wcwidth.h.
3725         * lib/mbswidth.c: Likewise.
3726         * NEWS: Mention the change.
3727
3728 2007-07-07  Bruno Haible  <bruno@clisp.org>
3729
3730         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
3731         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
3732         definition with an external declaration.
3733         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
3734         defined as a function. Remove AC_C_INLINE requirement.
3735         * modules/wcwidth (Files): Add lib/wcwidth.c.
3736         (Makefile.am): Remove redundant statement.
3737
3738 2007-07-07  Bruno Haible  <bruno@clisp.org>
3739
3740         * MODULES.html.sh (Unicode string functions): Add the new modules.
3741
3742         * tests/uniwidth/test-u32-strwidth.c: New file.
3743         * modules/uniwidth/u32-strwidth-tests: New file.
3744
3745         * lib/uniwidth/u32-strwidth.c: New file.
3746         * modules/uniwidth/u32-strwidth: New file.
3747
3748         * tests/uniwidth/test-u16-strwidth.c: New file.
3749         * modules/uniwidth/u16-strwidth-tests: New file.
3750
3751         * lib/uniwidth/u16-strwidth.c: New file.
3752         * modules/uniwidth/u16-strwidth: New file.
3753
3754         * tests/uniwidth/test-u8-strwidth.c: New file.
3755         * modules/uniwidth/u8-strwidth-tests: New file.
3756
3757         * lib/uniwidth/u8-strwidth.c: New file.
3758         * modules/uniwidth/u8-strwidth: New file.
3759
3760         * tests/uniwidth/test-u32-width.c: New file.
3761         * modules/uniwidth/u32-width-tests: New file.
3762
3763         * lib/uniwidth/u32-width.c: New file.
3764         * modules/uniwidth/u32-width: New file.
3765
3766         * tests/uniwidth/test-u16-width.c: New file.
3767         * modules/uniwidth/u16-width-tests: New file.
3768
3769         * lib/uniwidth/u16-width.c: New file.
3770         * modules/uniwidth/u16-width: New file.
3771
3772         * tests/uniwidth/test-u8-width.c: New file.
3773         * modules/uniwidth/u8-width-tests: New file.
3774
3775         * lib/uniwidth/u8-width.c: New file.
3776         * modules/uniwidth/u8-width: New file.
3777
3778         * tests/uniwidth/test-uc_width.c: New file.
3779         * modules/uniwidth/width-tests: New file.
3780
3781         * lib/uniwidth/width.c: New file, from GNU libiconv.
3782         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
3783         * modules/uniwidth/width: New file.
3784
3785         * lib/uniwidth.h: New file, from GNU libiconv.
3786         * modules/uniwidth/base: New file.
3787
3788 2007-07-07  Bruno Haible  <bruno@clisp.org>
3789
3790         * lib/uniname.h: New file, from GNU gettext.
3791         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
3792         * lib/uniname/uninames.h: New file, from GNU gettext.
3793         * lib/uniname/uniname.c: New file, from GNU gettext.
3794         * tests/uniname/test-uninames.sh: New file.
3795         * tests/uniname/test-uninames.c: New file, from GNU gettext.
3796         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
3797         * modules/uniname/base: New file.
3798         * modules/uniname/uniname: New file.
3799         * modules/uniname/uniname-tests: New file.
3800         * MODULES.html.sh (Unicode string functions): Add the new modules.
3801
3802 2007-07-06  Bruno Haible  <bruno@clisp.org>
3803
3804         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
3805
3806 2007-07-06  Bruno Haible  <bruno@clisp.org>
3807
3808         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
3809         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
3810         includes <cygwin/sys_time.h> which includes <sys/select.h> which
3811         include <sys/time.h>.
3812         Reported by Eric Blake.
3813
3814 2007-07-06  Eric Blake  <ebb9@byu.net>
3815
3816         Fix testing canonicalize on cygwin.
3817         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
3818         Revert patch from 2007-06-19.
3819         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
3820         canonicalize module is also in use.
3821         * tests/test-canonicalize.c: New file.
3822         * tests/test-canonicalize.sh: Likewise.
3823         * modules/canonicalize-tests: Likewise.
3824
3825 2007-07-06  Jim Meyering  <jim@meyering.net>
3826
3827         * lib/getugroups.c (getugroups): Detect getgrent failure.
3828         Adjust comment to reflect reality: this function may return -1.
3829
3830 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
3831
3832         * build-aux/bootstrap (TP_URL,get_translations): Update to use
3833         the new TP address.
3834         (usage): Fix typo
3835         (gnulib_mk): New variable.
3836
3837 2007-07-05  Jim Meyering  <jim@meyering.net>
3838
3839         Don't let endgrent clobber errno, no matter how improbable.
3840         * lib/getugroups.c (getugroups): Save and restore errno around
3841         endgrent call.
3842
3843         Close the group DB even when failing with 2^31 or more members.
3844         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
3845
3846 2007-07-04  Jim Meyering  <jim@meyering.net>
3847
3848         * lib/getugroups.h: New file.
3849         * lib/getugroups.c: Include "getugroups.h".
3850         Remove uses of "register" keyword.
3851         Move local variable, "cp", down into scope where used.
3852         Give "username" parameter the "const" attribute.
3853         * modules/getugroups (Files): Add lib/getugroups.h
3854
3855 2007-07-04  Karl Berry  <karl@gnu.org>
3856
3857         * MODULES.html.sh (func_all_modules): Complete rename of
3858         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
3859
3860 2007-07-02  Bruno Haible  <bruno@clisp.org>
3861
3862         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
3863         mode, when inttypes.h comes from gnulib.
3864         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
3865
3866 2007-07-02  Simon Josefsson  <simon@josefsson.org>
3867
3868         * NEWS: Mention lgpl module name change.
3869
3870         * modules/lgpl-2.1: Renamed from lgpl.
3871
3872         * NEWS: Mention gpl module name change.
3873
3874         * modules/gpl-3.0: New file, based on gpl-2.0.
3875
3876         * modules/gpl-2.0: Renamed from gpl.
3877
3878         * modules/gpl: Fix filename, doc/gpl.texi is now found at
3879         doc/gpl-2.0.texi.
3880
3881 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
3882
3883         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
3884         #define __STDC_LIMIT_MACROS temporarily while including
3885         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
3886         Problem reported by Joel E. Denny in
3887         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
3888
3889 2007-07-01  Bruno Haible  <bruno@clisp.org>
3890
3891         * lib/unistdio.h: New file.
3892         * lib/unistdio/u-asnprintf.h: New file.
3893         * lib/unistdio/u-asprintf.h: New file.
3894         * lib/unistdio/u-printf-args.c: New file.
3895         * lib/unistdio/u-printf-args.h: New file.
3896         * lib/unistdio/u-printf-parse.h: New file.
3897         * lib/unistdio/u-snprintf.h: New file.
3898         * lib/unistdio/u-sprintf.h: New file.
3899         * lib/unistdio/u-vasprintf.h: New file.
3900         * lib/unistdio/u-vsnprintf.h: New file.
3901         * lib/unistdio/u-vsprintf.h: New file.
3902         * lib/unistdio/ulc-asnprintf.c: New file.
3903         * lib/unistdio/ulc-asprintf.c: New file.
3904         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
3905         * lib/unistdio/ulc-printf-parse.c: New file.
3906         * lib/unistdio/ulc-snprintf.c: New file.
3907         * lib/unistdio/ulc-sprintf.c: New file.
3908         * lib/unistdio/ulc-vasnprintf.c: New file.
3909         * lib/unistdio/ulc-vasprintf.c: New file.
3910         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
3911         * lib/unistdio/ulc-vsnprintf.c: New file.
3912         * lib/unistdio/ulc-vsprintf.c: New file.
3913         * lib/unistdio/u8-asnprintf.c: New file.
3914         * lib/unistdio/u8-asprintf.c: New file.
3915         * lib/unistdio/u8-printf-parse.c: New file.
3916         * lib/unistdio/u8-snprintf.c: New file.
3917         * lib/unistdio/u8-sprintf.c: New file.
3918         * lib/unistdio/u8-vasnprintf.c: New file.
3919         * lib/unistdio/u8-vasprintf.c: New file.
3920         * lib/unistdio/u8-vsnprintf.c: New file.
3921         * lib/unistdio/u8-vsprintf.c: New file.
3922         * lib/unistdio/u8-u8-asnprintf.c: New file.
3923         * lib/unistdio/u8-u8-asprintf.c: New file.
3924         * lib/unistdio/u8-u8-snprintf.c: New file.
3925         * lib/unistdio/u8-u8-sprintf.c: New file.
3926         * lib/unistdio/u8-u8-vasnprintf.c: New file.
3927         * lib/unistdio/u8-u8-vasprintf.c: New file.
3928         * lib/unistdio/u8-u8-vsnprintf.c: New file.
3929         * lib/unistdio/u8-u8-vsprintf.c: New file.
3930         * lib/unistdio/u16-asnprintf.c: New file.
3931         * lib/unistdio/u16-asprintf.c: New file.
3932         * lib/unistdio/u16-printf-parse.c: New file.
3933         * lib/unistdio/u16-snprintf.c: New file.
3934         * lib/unistdio/u16-sprintf.c: New file.
3935         * lib/unistdio/u16-vasnprintf.c: New file.
3936         * lib/unistdio/u16-vasprintf.c: New file.
3937         * lib/unistdio/u16-vsnprintf.c: New file.
3938         * lib/unistdio/u16-vsprintf.c: New file.
3939         * lib/unistdio/u16-u16-asnprintf.c: New file.
3940         * lib/unistdio/u16-u16-asprintf.c: New file.
3941         * lib/unistdio/u16-u16-snprintf.c: New file.
3942         * lib/unistdio/u16-u16-sprintf.c: New file.
3943         * lib/unistdio/u16-u16-vasnprintf.c: New file.
3944         * lib/unistdio/u16-u16-vasprintf.c: New file.
3945         * lib/unistdio/u16-u16-vsnprintf.c: New file.
3946         * lib/unistdio/u16-u16-vsprintf.c: New file.
3947         * lib/unistdio/u32-asnprintf.c: New file.
3948         * lib/unistdio/u32-asprintf.c: New file.
3949         * lib/unistdio/u32-printf-parse.c: New file.
3950         * lib/unistdio/u32-snprintf.c: New file.
3951         * lib/unistdio/u32-sprintf.c: New file.
3952         * lib/unistdio/u32-vasnprintf.c: New file.
3953         * lib/unistdio/u32-vasprintf.c: New file.
3954         * lib/unistdio/u32-vsnprintf.c: New file.
3955         * lib/unistdio/u32-vsprintf.c: New file.
3956         * lib/unistdio/u32-u32-asnprintf.c: New file.
3957         * lib/unistdio/u32-u32-asprintf.c: New file.
3958         * lib/unistdio/u32-u32-snprintf.c: New file.
3959         * lib/unistdio/u32-u32-sprintf.c: New file.
3960         * lib/unistdio/u32-u32-vasnprintf.c: New file.
3961         * lib/unistdio/u32-u32-vasprintf.c: New file.
3962         * lib/unistdio/u32-u32-vsnprintf.c: New file.
3963         * lib/unistdio/u32-u32-vsprintf.c: New file.
3964         * tests/unistdio/test-ulc-asnprintf1.c: New file.
3965         * tests/unistdio/test-ulc-asnprintf1.h: New file.
3966         * tests/unistdio/test-ulc-printf1.h: New file.
3967         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
3968         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
3969         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
3970         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
3971         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
3972         * tests/unistdio/test-ulc-vasprintf1.c: New file.
3973         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
3974         * tests/unistdio/test-ulc-vsprintf1.c: New file.
3975         * tests/unistdio/test-u8-asnprintf1.c: New file.
3976         * tests/unistdio/test-u8-asnprintf1.h: New file.
3977         * tests/unistdio/test-u8-printf1.h: New file.
3978         * tests/unistdio/test-u8-vasnprintf1.c: New file.
3979         * tests/unistdio/test-u8-vasnprintf2.c: New file.
3980         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
3981         * tests/unistdio/test-u8-vasnprintf3.c: New file.
3982         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
3983         * tests/unistdio/test-u8-vasprintf1.c: New file.
3984         * tests/unistdio/test-u8-vsnprintf1.c: New file.
3985         * tests/unistdio/test-u8-vsprintf1.c: New file.
3986         * tests/unistdio/test-u16-asnprintf1.c: New file.
3987         * tests/unistdio/test-u16-asnprintf1.h: New file.
3988         * tests/unistdio/test-u16-printf1.h: New file.
3989         * tests/unistdio/test-u16-vasnprintf1.c: New file.
3990         * tests/unistdio/test-u16-vasnprintf2.c: New file.
3991         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
3992         * tests/unistdio/test-u16-vasnprintf3.c: New file.
3993         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
3994         * tests/unistdio/test-u16-vasprintf1.c: New file.
3995         * tests/unistdio/test-u16-vsnprintf1.c: New file.
3996         * tests/unistdio/test-u16-vsprintf1.c: New file.
3997         * tests/unistdio/test-u32-asnprintf1.c: New file.
3998         * tests/unistdio/test-u32-asnprintf1.h: New file.
3999         * tests/unistdio/test-u32-printf1.h: New file.
4000         * tests/unistdio/test-u32-vasnprintf1.c: New file.
4001         * tests/unistdio/test-u32-vasnprintf2.c: New file.
4002         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
4003         * tests/unistdio/test-u32-vasnprintf3.c: New file.
4004         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
4005         * tests/unistdio/test-u32-vasprintf1.c: New file.
4006         * tests/unistdio/test-u32-vsnprintf1.c: New file.
4007         * tests/unistdio/test-u32-vsprintf1.c: New file.
4008         * modules/unistdio/base: New file.
4009         * modules/unistdio/u-printf-args: New file.
4010         * modules/unistdio/ulc-asnprintf: New file.
4011         * modules/unistdio/ulc-asprintf: New file.
4012         * modules/unistdio/ulc-fprintf: New file.
4013         * modules/unistdio/ulc-printf-parse: New file.
4014         * modules/unistdio/ulc-snprintf: New file.
4015         * modules/unistdio/ulc-sprintf: New file.
4016         * modules/unistdio/ulc-vasnprintf: New file.
4017         * modules/unistdio/ulc-vasprintf: New file.
4018         * modules/unistdio/ulc-vfprintf: New file.
4019         * modules/unistdio/ulc-vsnprintf: New file.
4020         * modules/unistdio/ulc-vsprintf: New file.
4021         * modules/unistdio/u8-asnprintf: New file.
4022         * modules/unistdio/u8-asprintf: New file.
4023         * modules/unistdio/u8-printf-parse: New file.
4024         * modules/unistdio/u8-snprintf: New file.
4025         * modules/unistdio/u8-sprintf: New file.
4026         * modules/unistdio/u8-vasnprintf: New file.
4027         * modules/unistdio/u8-vasprintf: New file.
4028         * modules/unistdio/u8-vsnprintf: New file.
4029         * modules/unistdio/u8-vsprintf: New file.
4030         * modules/unistdio/u8-u8-asnprintf: New file.
4031         * modules/unistdio/u8-u8-asprintf: New file.
4032         * modules/unistdio/u8-u8-snprintf: New file.
4033         * modules/unistdio/u8-u8-sprintf: New file.
4034         * modules/unistdio/u8-u8-vasnprintf: New file.
4035         * modules/unistdio/u8-u8-vasprintf: New file.
4036         * modules/unistdio/u8-u8-vsnprintf: New file.
4037         * modules/unistdio/u8-u8-vsprintf: New file.
4038         * modules/unistdio/u16-asnprintf: New file.
4039         * modules/unistdio/u16-asprintf: New file.
4040         * modules/unistdio/u16-printf-parse: New file.
4041         * modules/unistdio/u16-snprintf: New file.
4042         * modules/unistdio/u16-sprintf: New file.
4043         * modules/unistdio/u16-vasnprintf: New file.
4044         * modules/unistdio/u16-vasprintf: New file.
4045         * modules/unistdio/u16-vsnprintf: New file.
4046         * modules/unistdio/u16-vsprintf: New file.
4047         * modules/unistdio/u16-u16-asnprintf: New file.
4048         * modules/unistdio/u16-u16-asprintf: New file.
4049         * modules/unistdio/u16-u16-snprintf: New file.
4050         * modules/unistdio/u16-u16-sprintf: New file.
4051         * modules/unistdio/u16-u16-vasnprintf: New file.
4052         * modules/unistdio/u16-u16-vasprintf: New file.
4053         * modules/unistdio/u16-u16-vsnprintf: New file.
4054         * modules/unistdio/u16-u16-vsprintf: New file.
4055         * modules/unistdio/u32-asnprintf: New file.
4056         * modules/unistdio/u32-asprintf: New file.
4057         * modules/unistdio/u32-printf-parse: New file.
4058         * modules/unistdio/u32-snprintf: New file.
4059         * modules/unistdio/u32-sprintf: New file.
4060         * modules/unistdio/u32-vasnprintf: New file.
4061         * modules/unistdio/u32-vasprintf: New file.
4062         * modules/unistdio/u32-vsnprintf: New file.
4063         * modules/unistdio/u32-vsprintf: New file.
4064         * modules/unistdio/u32-u32-asnprintf: New file.
4065         * modules/unistdio/u32-u32-asprintf: New file.
4066         * modules/unistdio/u32-u32-snprintf: New file.
4067         * modules/unistdio/u32-u32-sprintf: New file.
4068         * modules/unistdio/u32-u32-vasnprintf: New file.
4069         * modules/unistdio/u32-u32-vasprintf: New file.
4070         * modules/unistdio/u32-u32-vsnprintf: New file.
4071         * modules/unistdio/u32-u32-vsprintf: New file.
4072         * modules/unistdio/ulc-asnprintf-tests: New file.
4073         * modules/unistdio/ulc-vasnprintf-tests: New file.
4074         * modules/unistdio/ulc-vasprintf-tests: New file.
4075         * modules/unistdio/ulc-vsnprintf-tests: New file.
4076         * modules/unistdio/ulc-vsprintf-tests: New file.
4077         * modules/unistdio/u8-asnprintf-tests: New file.
4078         * modules/unistdio/u8-vasnprintf-tests: New file.
4079         * modules/unistdio/u8-vasprintf-tests: New file.
4080         * modules/unistdio/u8-vsnprintf-tests: New file.
4081         * modules/unistdio/u8-vsprintf-tests: New file.
4082         * modules/unistdio/u16-asnprintf-tests: New file.
4083         * modules/unistdio/u16-vasnprintf-tests: New file.
4084         * modules/unistdio/u16-vasprintf-tests: New file.
4085         * modules/unistdio/u16-vsnprintf-tests: New file.
4086         * modules/unistdio/u16-vsprintf-tests: New file.
4087         * modules/unistdio/u32-asnprintf-tests: New file.
4088         * modules/unistdio/u32-vasnprintf-tests: New file.
4089         * modules/unistdio/u32-vasprintf-tests: New file.
4090         * modules/unistdio/u32-vsnprintf-tests: New file.
4091         * modules/unistdio/u32-vsprintf-tests: New file.
4092         * MODULES.html.sh (Unicode string functions): Add the new modules.
4093
4094 2007-07-01  Bruno Haible  <bruno@clisp.org>
4095
4096         * lib/sprintf.c (sprintf): Limit the available length estimation,
4097         to avoid address wraparound.
4098         * lib/vsprintf.c (vsprintf): Likewise.
4099         * modules/sprintf-posix (Dependencies): Add stdint.
4100         * modules/vsprintf-posix (Dependencies): Likewise.
4101
4102 2007-07-01  Bruno Haible  <bruno@clisp.org>
4103
4104         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
4105         Windows PATH as well. Conservative double-quoting. Comments.
4106
4107 2007-07-01  Bruno Haible  <bruno@clisp.org>
4108             Eric Blake  <ebb9@byu.net>
4109             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4110
4111         * gnulib-tool (self_abspathname): Fix algorithm to cope with
4112         empty components in $PATH, denoting '.'.
4113
4114 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4115
4116         * gnulib-tool: Fix indentation.
4117         (func_create_megatestdir): Likewise.
4118         Report by Bruno Haible.
4119
4120 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4121
4122         Sync from Automake.
4123         * build-aux/gnupload: Fix shell portability issues with for loops.
4124         Report by Karl Berry.
4125
4126 2007-06-29  Simon Josefsson  <simon@josefsson.org>
4127
4128         * build-aux/maint.mk (POURL): Use translationproject.org.
4129
4130 2007-06-27  Simon Josefsson  <simon@josefsson.org>
4131             Bruno Haible  <bruno@clisp.org>
4132
4133         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
4134         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
4135         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
4136         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
4137         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
4138
4139 2007-06-27  Bruno Haible  <bruno@clisp.org>
4140
4141         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
4142         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
4143
4144 2007-06-26  Karl Berry  <karl@gnu.org>
4145
4146         * MODULES.html.sh: remove xreadlink-with-size.
4147
4148 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
4149
4150         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
4151         method that I hope also handles the double-include problem noted
4152         by Bruno Haible in
4153         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
4154
4155 2007-06-23  Bruno Haible  <bruno@clisp.org>
4156
4157         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
4158         Don't let the 'mostlyclean' target fail if the last subdirectory could
4159         not be removed.
4160         Reported by Karl Berry.
4161
4162 2007-06-23  Bruno Haible  <bruno@clisp.org>
4163
4164         * gnulib-tool (echo): Add a speedier workaround for ksh.
4165         * tests/test-echo.sh: Likewise.
4166
4167 2007-06-23  Bruno Haible  <bruno@clisp.org>
4168
4169         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
4170         * tests/test-echo.sh: Likewise.
4171
4172 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4173
4174         * gnulib-tool (IFS): Initialize early, so we don't set it to
4175         empty later.
4176         (self_abspathname): Rewrite algorithm to set it, reindent.
4177         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
4178         (func_create_megatestdir): Merge some sed scripts.
4179
4180 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
4181
4182         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
4183         exposed by Sun Studio 11 cc on Solaris 8.
4184
4185 2007-06-22  Bruno Haible  <bruno@clisp.org>
4186
4187         * gnulib-tool (echo): Ensure the echo primitive does not interpret
4188         backslashes.
4189         * tests/test-echo.sh: New file.
4190
4191 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4192
4193         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
4194         simplify `sed_replace_build_aux' scripts, they are portable but
4195         echoing them with `echo' is not.
4196         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
4197
4198 2007-06-21  Karl Berry  <karl@gnu.org>
4199
4200         * config/srclist.txt: guess we can't handle the licenses via
4201         srclist at the moment.
4202
4203 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
4204
4205         * MODULES.html.sh: Add include_next.
4206         * modules/include_next: New file.
4207
4208 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
4209
4210         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
4211         INCLUDE_NEXT.
4212         (gl_CHECK_NEXT_HEADERS): New macro.
4213         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
4214         the obsolescent gl_ABSOLUTE_HEADER.
4215         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
4216         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
4217         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
4218         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
4219         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
4220         * m4/math_h.m4 (gl_MATH_H): Likewise.
4221         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
4222         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
4223         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
4224         * m4/stdint.m4 (gl_STDINT_H): Likewise.
4225         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
4226         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
4227         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
4228         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4229         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
4230         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
4231         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
4232         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
4233         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
4234         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4235         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
4236         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
4237         * m4/inttypes.m4 (gl_INTTYPES_H): Define
4238         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
4239         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
4240         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
4241         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
4242         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
4243         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
4244         * lib/float_.h: Likewise.
4245         * lib/inttypes_.h: Likewise.
4246         * lib/math_.h: Likewise.
4247         * lib/search_.h: Likewise.
4248         * lib/signal_.h: Likewise.
4249         * lib/stdint_.h: Likewise.
4250         * lib/stdio_.h: Likewise.
4251         * lib/stdlib_.h: Likewise.
4252         * lib/string_.h: Likewise.
4253         * lib/sys_stat_.h: Likewise.
4254         * lib/sys_time_.h: Likewise.
4255         * lib/time_.h: Likewise.
4256         * lib/unistd_.h: Likewise.
4257         * lib/wchar_.h: Likewise.
4258         * lib/wctype_.h: Likewise.
4259         * lib/dirent_.h: Likewise.
4260         * lib/iconv_.h: Likewise.
4261         * lib/locale_.h: Likewise.
4262         * lib/netinet_in_.h: Likewise.
4263         * lib/sys_select_.h: Likewise.
4264         * lib/sys_socket_.h: Likewise.
4265         * lib/sysexits_.h: Likewise.
4266         * modules/fcntl (Depends-on): Depend on include_next, not
4267         absolute_header.
4268         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
4269         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
4270         * modules/fchdir: Likewise.
4271         * modules/float: Likewise.
4272         * modules/iconv_open: Likewise.
4273         * modules/inttypes: Likewise.
4274         * modules/locale: Likewise.
4275         * modules/math: Likewise.
4276         * modules/netinet_in: Likewise.
4277         * modules/search: Likewise.
4278         * modules/signal: Likewise.
4279         * modules/stdint: Likewise.
4280         * modules/stdio: Likewise.
4281         * modules/stdlib: Likewise.
4282         * modules/string: Likewise.
4283         * modules/sys_select: Likewise.
4284         * modules/sys_socket: Likewise.
4285         * modules/sys_stat: Likewise.
4286         * modules/sys_time: Likewise.
4287         * modules/sysexits: Likewise.
4288         * modules/time: Likewise.
4289         * modules/unistd: Likewise.
4290         * modules/wchar: Likewise.
4291         * modules/wctype: Likewise.
4292         * modules/sys_stat: Change maintainer to "all".
4293         * modules/unistd: Likewise.
4294
4295 2007-06-20  Karl Berry  <karl@gnu.org>
4296
4297         * config/srclist.txt: track www changes in license files.
4298
4299 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
4300
4301         * build-aux/bootstrap: Remove stray dot.
4302         Make sure build_aux settings are honored when linking
4303         gnulib_extra_files.
4304
4305 2007-06-19  Eric Blake  <ebb9@byu.net>
4306
4307         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
4308         Allow compilation on cygwin.
4309
4310 2007-06-19  Jim Meyering  <jim@meyering.net>
4311
4312         xreadlink-with-size: Remove module.  No longer used.
4313         Ex-callers now use xreadlink or mreadlink-with-size.
4314         * modules/xreadlink-with-size: Remove module.
4315         * lib/xreadlink-with-size.c: Remove file.
4316         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
4317         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
4318         just before the function definition *is* accurate.
4319
4320         Eliminate one way canonicalize_filename_mode could exit.
4321         * lib/canonicalize.c (canonicalize_filename_mode):
4322         Use mreadlink_with_size, not xreadlink_with_size.
4323
4324 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
4325
4326         Detect porting problems to FreeBSD/arm, which has time_t wider than
4327         long int.  Original problem reported for GNU diff by Xin Li in
4328         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
4329         * modules/getdate (Depends-on): Add intprops, verify.
4330         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
4331         is an integer type no wider than long int.
4332
4333 2007-06-18  Jim Meyering  <jim@meyering.net>
4334
4335         New module: mreadlink-with-size.
4336         * MODULES.html.sh: Add mreadlink-with-size.
4337         * modules/mreadlink-with-size: New module
4338         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
4339         not xreadlink-with-size.
4340         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
4341
4342 2007-06-16  Bruno Haible  <bruno@clisp.org>
4343
4344         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
4345         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
4346         Reported by Gary V. Vaughan <gary@gnu.org>.
4347
4348 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
4349
4350         Revamp lchown so that it lives in unistd.h where it belongs.
4351         * lib/lchown.h: Remove.
4352         * lib/dirchownmod.c: Don't include lib/lchown.h.
4353         * lib/fchownat.c: Likewise.
4354         * lib/openat.c: Likewise.
4355         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
4356         does not follow symlinks.
4357         (EOPNOTSUPP): Define if not defined.
4358         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
4359         is defined to 0.
4360         (lchown): New decl.
4361         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
4362         Do not check for lchown decl.
4363         Set REPLACE_LCHOWN.
4364         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
4365         REPLACE_LCHOWN.
4366         * modules/chown: Make it clear it follows symlinks.
4367         * modules/lchown: Make it clear it doesn't follow symlinks.
4368         (Files): Remove lib/lchown.h
4369         (Depends-on): Add unistd.
4370         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
4371         (Include): Include <unistd.h>, not "lchown.h".
4372         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
4373         REPLACE_LCHOWN.
4374
4375 2007-06-15  Jim Meyering  <jim@meyering.net>
4376
4377         Change license (GPL to LGPL) of fsusage and dependents.
4378         * modules/fsusage (License): Change to LGPL.
4379         * modules/full-read (License): Likewise.
4380         * modules/full-write (License): Likewise.
4381         * modules/safe-read (License): Likewise.
4382         * modules/safe-write (License): Likewise.
4383
4384 2007-06-14  Ben Pfaff  <blp@gnu.org>
4385
4386         Missing part of allocsa -> malloca transition.
4387         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
4388         gl_MALLOCA.
4389
4390 2007-06-12  Bruno Haible  <bruno@clisp.org>
4391
4392         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
4393         to ia64, x86_64, i386.
4394         Reported by Eric Blake.
4395
4396 2007-06-12  Bruno Haible  <bruno@clisp.org>
4397
4398         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
4399         cross-compiling to x86_64.
4400
4401 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
4402
4403         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
4404         glitch reported by Ralf Wildenhues in
4405         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
4406
4407         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
4408         Vin Shelton.
4409
4410 2007-06-11  Bruno Haible  <bruno@clisp.org>
4411
4412         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
4413         replacement string.
4414         Reported by Eric Blake.
4415
4416 2007-06-10  Bruno Haible  <bruno@clisp.org>
4417
4418         Prepare vasnprintf code for use with Unicode strings.
4419         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
4420         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
4421         TYPE_U32_STRING.
4422         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
4423         a_u32_string variants.
4424         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
4425         * lib/printf-args.c: Don't include config.h and the specification
4426         header if PRINTF_FETCHARGS is already defined.
4427         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
4428         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
4429         TYPE_U16_STRING, TYPE_U32_STRING.
4430         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
4431         u16_directive, u16_directives, u32_directive, u32_directives): New
4432         types.
4433         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
4434         New declarations.
4435         * lib/printf-parse.c: Don't include config.h and the specification
4436         header if PRINTF_PARSE is already defined. Eliminate the set of
4437         parameters for WIDE_CHAR_VERSION; the user of this file must provide
4438         them now. Include c-ctype.h.
4439         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
4440         directive and CHAR_T_ONLY_ASCII.
4441         * lib/vasnprintf.c: Don't include config.h and the specification header
4442         if VASNPRINTF is already defined.
4443         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
4444         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
4445         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
4446         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
4447         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
4448         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
4449         code accordingly.
4450         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
4451         pad_ourselves also in this case, with the 'c' and 's' directives, and
4452         with a different notion of "width".
4453         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
4454
4455 2007-06-10  Bruno Haible  <bruno@clisp.org>
4456
4457         * modules/unistr/u32-mbsnlen: New file.
4458         * lib/unistr/u32-mbsnlen.c: New file.
4459
4460         * modules/unistr/u16-mbsnlen: New file.
4461         * lib/unistr/u16-mbsnlen.c: New file.
4462
4463         * modules/unistr/u8-mbsnlen: New file.
4464         * lib/unistr/u8-mbsnlen.c: New file.
4465
4466         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
4467         declarations.
4468
4469 2007-06-10  Bruno Haible  <bruno@clisp.org>
4470
4471         * lib/string_.h (mbsnlen): New declaration.
4472         * lib/mbsnlen.c: New file.
4473         * m4/mbsnlen.m4: New file.
4474         * modules/mbsnlen: New file.
4475         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
4476         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
4477         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
4478
4479 2007-06-10  Bruno Haible  <bruno@clisp.org>
4480
4481         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
4482
4483 2007-06-10  Bruno Haible  <bruno@clisp.org>
4484
4485         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
4486         * lib/mbuiter.h: Likewise.
4487
4488 2007-06-10  Bruno Haible  <bruno@clisp.org>
4489
4490         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
4491         declaration.
4492
4493 2007-06-10  Karl Berry  <karl@gnu.org>
4494
4495         * config/srclist.txt: remove gettext entries, Bruno prefers
4496         to update individually.
4497
4498 2007-06-10  Bruno Haible  <bruno@clisp.org>
4499
4500         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
4501         'maxlen'. Ensure only length + width bytes are allocated, not
4502         length + 1 + width.
4503
4504 2007-06-09  Bruno Haible  <bruno@clisp.org>
4505
4506         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
4507         (CHAR_T): Remove macro.
4508         (VASNPRINTF): Update.
4509
4510 2007-06-09  Bruno Haible  <bruno@clisp.org>
4511
4512         * MODULES.html.sh (Unicode string functions): Add the new modules.
4513
4514         * modules/uniconv/u32-conv-to-enc: New file.
4515         * lib/uniconv/u32-conv-to-enc.c: New file.
4516         * modules/uniconv/u32-conv-to-enc-tests: New file.
4517         * tests/uniconv/test-u32-conv-to-enc.c: New file.
4518
4519         * modules/uniconv/u16-conv-to-enc: New file.
4520         * lib/uniconv/u16-conv-to-enc.c: New file.
4521         * lib/uniconv/u-conv-to-enc.h: New file.
4522         * modules/uniconv/u16-conv-to-enc-tests: New file.
4523         * tests/uniconv/test-u16-conv-to-enc.c: New file.
4524
4525         * modules/uniconv/u8-conv-to-enc: New file.
4526         * lib/uniconv/u8-conv-to-enc.c: New file.
4527         * modules/uniconv/u8-conv-to-enc-tests: New file.
4528         * tests/uniconv/test-u8-conv-to-enc.c: New file.
4529
4530         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
4531         u32_conv_to_encoding): New declarations.
4532
4533 2007-06-09  Bruno Haible  <bruno@clisp.org>
4534
4535         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
4536
4537 2007-06-09  Bruno Haible  <bruno@clisp.org>
4538
4539         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
4540         * modules/malloca: Renamed from modules/allocsa, updated.
4541         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
4542         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
4543         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
4544         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
4545         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
4546         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
4547         * modules/xmalloca: Renamed from modules/xallocsa, updated.
4548         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
4549         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
4550         * modules/c-strcasestr (Depends-on): Update.
4551         * lib/c-strcasestr.c: Update.
4552         * modules/c-strstr (Depends-on): Update.
4553         * lib/c-strstr.c: Update.
4554         * modules/canonicalize-lgpl (Depends-on): Update.
4555         * lib/canonicalize-lgpl.c: Update.
4556         * modules/clean-temp (Depends-on): Update.
4557         * lib/clean-temp.c: Update.
4558         * modules/csharpcomp (Depends-on): Update.
4559         * lib/csharpcomp.c: Update.
4560         * modules/csharpexec (Depends-on): Update.
4561         * lib/csharpexec.c: Update.
4562         * modules/javacomp (Depends-on): Update.
4563         * lib/javacomp.c: Update.
4564         * modules/javaexec (Depends-on): Update.
4565         * lib/javaexec.c: Update.
4566         * modules/mbscasestr (Depends-on): Update.
4567         * lib/mbscasestr.c: Update.
4568         * modules/mbsstr (Depends-on): Update.
4569         * lib/mbsstr.c: Update.
4570         * modules/setenv (Depends-on): Update.
4571         * lib/setenv.c: Update.
4572         * modules/strcasestr (Depends-on): Update.
4573         * lib/strcasestr.c: Update.
4574         * modules/striconveha (Depends-on): Update.
4575         * lib/striconveha.c: Update.
4576         * modules/relocatable-prog-wrapper (Files): Update.
4577         * lib/relocwrapper.c: Update.
4578         * build-aux/install-reloc: Update.
4579         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
4580
4581 2007-06-08  Bruno Haible  <bruno@clisp.org>
4582
4583         Port to uClibc.
4584         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
4585         * lib/fpurge.c (fpurge): Likewise.
4586         * lib/freading.c (freading): Likewise.
4587         * lib/fseeko.c (rpl_fseeko): Likewise.
4588         * lib/fseterr.c (fseterr): Likewise.
4589         * lib/fwriting.c (fwriting): Likewise.
4590         * tests/test-fflush.c (main): Avoid a failure on uClibc.
4591
4592 2007-06-08  Bruno Haible  <bruno@clisp.org>
4593
4594         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
4595         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
4596         * modules/gettext (Files): Add m4/intlmacosx.m4.
4597
4598 2007-06-07  Bruno Haible  <bruno@clisp.org>
4599
4600         * modules/localename-tests: New file.
4601         * tests/test-localename.c: New file.
4602
4603         New module 'localename'.
4604         * lib/localename.h: New file.
4605         * lib/localename.c: New file, from GNU gettext.
4606         * m4/localename.m4: New file.
4607         * modules/localename: New file.
4608
4609 2007-06-07  Bruno Haible  <bruno@clisp.org>
4610
4611         Work around the lack of <wchar.h> on some builds of uClibc.
4612         * doc/headers/wchar.texi: Update.
4613         * lib/wchar_.h: Include <wchar.h> only if it exists.
4614         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
4615         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
4616         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
4617         doesn't exist.
4618         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
4619         * modules/mbfile (Depends-on): Add wchar.
4620         * modules/mbiter (Depends-on): Likewise.
4621         * modules/mbuiter (Depends-on): Likewise.
4622         Reported by Simon Josefsson.
4623
4624 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
4625
4626         Work around problem reported by Steven M. Schweda in
4627         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
4628         Tru64 5.1B with the Compaq compiler environment installed declares
4629         an 'isblank' function but does not define it in the C library.
4630         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
4631         * lib/regex_internal.h (isblank): Likewise.
4632         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
4633         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
4634
4635 2007-06-05  Bruno Haible  <bruno@clisp.org>
4636
4637         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
4638         ia64.
4639         * modules/printf-safe: New file.
4640         * modules/fprintf-posix (Depends-on): Add printf-safe.
4641         * modules/printf-posix (Depends-on): Likewise.
4642         * modules/snprintf-posix (Depends-on): Likewise.
4643         * modules/sprintf-posix (Depends-on): Likewise.
4644         * modules/vasnprintf-posix (Depends-on): Likewise.
4645         * modules/vasprintf-posix (Depends-on): Likewise.
4646         * modules/vfprintf-posix (Depends-on): Likewise.
4647         * modules/vprintf-posix (Depends-on): Likewise.
4648         * modules/vsnprintf-posix (Depends-on): Likewise.
4649         * modules/vsprintf-posix (Depends-on): Likewise.
4650         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
4651         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
4652         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
4653         "no" on i386, x86_64, ia64.
4654         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
4655         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
4656         on i386, x86_64, ia64.
4657         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
4658         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
4659         on i386, x86_64, ia64.
4660         * tests/test-vasnprintf-posix.c: Include float.h.
4661         (LDBL80_WORDS): New macro.
4662         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
4663         on i386, x86_64, ia64.
4664         * tests/test-vasprintf-posix.c: Include float.h.
4665         (LDBL80_WORDS): New macro.
4666         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
4667         on i386, x86_64, ia64.
4668         * tests/test-snprintf-posix.c: Include float.h.
4669         * tests/test-sprintf-posix.c: Likewise.
4670         * tests/test-vsnprintf-posix.c: Likewise.
4671         * tests/test-vsprintf-posix.c: Likewise.
4672
4673 2007-06-05  Bruno Haible  <bruno@clisp.org>
4674
4675         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
4676         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
4677         non-IEEE numbers on i386, x86_64, ia64.
4678         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
4679         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
4680         * tests/test-isnanl.h: Include float.h.
4681         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
4682
4683 2007-06-05  Bruno Haible  <bruno@clisp.org>
4684
4685         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
4686         also the %a / %A. Handle the %a / %A code before this extra handling.
4687
4688 2007-06-05  Bruno Haible  <bruno@clisp.org>
4689
4690         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
4691         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
4692
4693 2007-06-05  Bruno Haible  <bruno@clisp.org>
4694
4695         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
4696         typo in variable name.
4697
4698 2007-06-05  Eric Blake  <ebb9@byu.net>
4699
4700         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
4701         Reported by Simon Josefsson.
4702
4703 2007-06-04  Bruno Haible  <bruno@clisp.org>
4704
4705         Avoid test failures on some PowerPC platforms.
4706         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
4707         Define differently for PowerPC.
4708         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
4709         Reported by Gary V. Vaughan <gary@gnu.org>.
4710
4711 2007-06-02  Bruno Haible  <bruno@clisp.org>
4712
4713         Fix test-stdint failure on FreeBSD/ia64.
4714         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
4715         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
4716         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
4717         * doc/headers/stdint.texi: Update.
4718
4719 2007-06-01  Bruno Haible  <bruno@clisp.org>
4720
4721         * tests/test-binary-io.c (main): Pass a third argument to open().
4722         Reported by Gary V. Vaughan <gary@gnu.org>.
4723
4724 2007-06-01  Bruno Haible  <bruno@clisp.org>
4725
4726         * doc/functions/frexpl.texi: Update for mingw.
4727
4728 2007-06-01  Bruno Haible  <bruno@clisp.org>
4729
4730         * tests/test-lseek.c (main): Disable test of errno for invalid third
4731         argument.
4732         * doc/functions/lseek.texi: Update.
4733         Reported by Gary V. Vaughan <gary@gnu.org>.
4734
4735 2007-05-28  Bruno Haible  <bruno@clisp.org>
4736
4737         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
4738
4739 2007-05-31  Eric Blake  <ebb9@byu.net>
4740
4741         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
4742         cross compiling.
4743
4744 2007-05-30  Eric Blake  <ebb9@byu.net>
4745         and Bruno Haible  <bruno@clisp.org>
4746
4747         Work around mingw test failures exposed by m4-1.4.9b.
4748         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
4749         * tests/test-unistd.c: Disable uid_t and git_t tests for the
4750         moment.
4751
4752 2007-05-30  Bruno Haible  <bruno@clisp.org>
4753
4754         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
4755         assuming that they are closed. Needed on HP-UX 11.
4756
4757 2007-05-29  Bruno Haible  <bruno@clisp.org>
4758
4759         Fix a problem with #include_next.
4760         * lib/dirent_.h: Split the double-inclusion guard.
4761         * lib/fcntl_.h: Likewise.
4762         * lib/float_.h: Likewise.
4763         * lib/iconv_.h: Likewise.
4764         * lib/inttypes_.h: Likewise.
4765         * lib/locale_.h: Likewise.
4766         * lib/math_.h: Likewise.
4767         * lib/netinet_in_.h: Likewise.
4768         * lib/search_.h: Likewise.
4769         * lib/signal_.h: Likewise.
4770         * lib/stdint_.h: Likewise.
4771         * lib/stdio_.h: Likewise.
4772         * lib/stdlib_.h: Likewise.
4773         * lib/string_.h: Likewise.
4774         * lib/sys_select_.h: Likewise.
4775         * lib/sys_socket_.h: Likewise.
4776         * lib/sys_stat_.h: Likewise.
4777         * lib/sys_time_.h: Likewise.
4778         * lib/sysexits_.h: Likewise.
4779         * lib/time_.h: Likewise.
4780         * lib/unistd_.h: Likewise.
4781         * lib/wchar_.h: Likewise.
4782         * lib/wctype_.h: Likewise.
4783
4784 2007-05-29  Bruno Haible  <bruno@clisp.org>
4785
4786         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
4787         for the moment.
4788
4789 2007-05-29  Bruno Haible  <bruno@clisp.org>
4790
4791         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
4792         invocation.
4793         Reported by Eric Blake.
4794
4795 2007-05-29  Bruno Haible  <bruno@clisp.org>
4796
4797         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
4798         compiling case.
4799
4800 2007-05-29  Eric Blake  <ebb9@byu.net>
4801             Bruno Haible  <bruno@clisp.org>
4802
4803         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
4804         cross compiles.
4805
4806 2007-05-28  Eric Blake  <ebb9@byu.net>
4807
4808         * modules/closein-tests (test_closein_LDADD): Support test on
4809         cygwin with libtool.
4810
4811 2007-05-28  Bruno Haible  <bruno@clisp.org>
4812
4813         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
4814         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
4815         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
4816         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
4817         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
4818         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
4819         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
4820         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
4821         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
4822
4823 2007-05-28  Eric Blake  <ebb9@byu.net>
4824
4825         Unconditionally include <config.h> in unit tests.
4826         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
4827         * tests/test-allocsa.c, tests/test-arcfour.c,
4828         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
4829         tests/test-array_list.c, tests/test-array_oset.c,
4830         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
4831         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
4832         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
4833         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
4834         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
4835         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
4836         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
4837         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
4838         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
4839         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
4840         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
4841         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
4842         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
4843         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
4844         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
4845         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
4846         test-md5.c, test-memmem.c, test-printf-posix.c,
4847         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
4848         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
4849         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
4850         test-strcasestr.c, test-striconv.c, test-striconveh.c,
4851         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
4852         test-vasnprintf-posix2.c, test-vasnprintf.c,
4853         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
4854         test-vfprintf-posix.c, test-vprintf-posix.c,
4855         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
4856         test-xvasprintf.c: Likewise.
4857
4858 2007-05-28  Bruno Haible  <bruno@clisp.org>
4859
4860         * gnulib-tool (func_import): Remember the --with-tests command-line
4861         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
4862         Reported by Eric Blake.
4863
4864 2007-05-28  Bruno Haible  <bruno@clisp.org>
4865
4866         * modules/ftell-tests: New file.
4867         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
4868         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
4869
4870         * lib/ftell.c: New file.
4871         * modules/ftell: New file.
4872         * m4/ftell.m4: New file.
4873         * doc/functions/ftell.texi: Update.
4874         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
4875         REPLACE_FTELL.
4876         * lib/stdio_.h (rpl_ftell): New declaration.
4877         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
4878         REPLACE_FTELL.
4879
4880 2007-05-28  Eric Blake  <ebb9@byu.net>
4881
4882         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
4883
4884 2007-05-28  Bruno Haible  <bruno@clisp.org>
4885
4886         * modules/fseek-tests: New file.
4887         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
4888         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
4889
4890         * lib/fseek.c: New file.
4891         * modules/fseek: New file.
4892         * m4/fseek.m4: New file.
4893         * doc/functions/fseek.texi: Update.
4894         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
4895         REPLACE_FSEEK.
4896         * lib/stdio_.h (rpl_fseek): New declaration.
4897         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
4898         REPLACE_FSEEK.
4899
4900 2007-05-28  Bruno Haible  <bruno@clisp.org>
4901
4902         * lib/stdio_.h (fflush): More comments.
4903
4904 2007-05-28  Bruno Haible  <bruno@clisp.org>
4905
4906         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
4907         runtime test.
4908
4909 2007-05-28  Eric Blake  <ebb9@byu.net>
4910
4911         Improve lseek module.
4912         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
4913         * lib/unistd_.h (lseek): Scale back link warning message.
4914         * tests/test-lseek.c: Beef up test.
4915         * tests/test-lseek.sh: Exercise more facets of lseek.
4916         Reported by Bruno Haible.
4917
4918 2007-05-28  Bruno Haible  <bruno@clisp.org>
4919
4920         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
4921         to define.
4922
4923 2007-05-27  Bruno Haible  <bruno@clisp.org>
4924
4925         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
4926
4927 2007-05-27  Bruno Haible  <bruno@clisp.org>
4928
4929         * modules/openmp: New file.
4930         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
4931         Noah Misch.
4932
4933 2007-05-26  Bruno Haible  <bruno@clisp.org>
4934
4935         * modules/chdir-long (Depends-on): Add fchdir.
4936         * modules/chdir-safer (Depends-on): Likewise.
4937         * modules/fts (Depends-on): Likewise.
4938         * modules/fts-lgpl (Depends-on): Likewise.
4939         * modules/openat (Depends-on): Likewise.
4940         * modules/savewd (Depends-on): Likewise.
4941
4942 2007-05-24  Eric Blake  <ebb9@byu.net>
4943
4944         Fix lseek on mingw.
4945         * modules/lseek: New module.
4946         * m4/lseek.m4: New file.
4947         * lib/lseek.c: New file.
4948         * modules/lseek-tests: New file.
4949         * tests/test-lseek.c: New file.
4950         * tests/test-lseek.sh: New file.
4951         * MODULES.html.sh: Document lseek module.
4952         * modules/fflush (Depends-on): Add lseek, fseeko.
4953         * modules/fseeko (Depends-on): Likewise.
4954         * modules/ftello (Depends-on): Likewise.
4955         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
4956         broken.
4957         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
4958         broken.
4959         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
4960         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
4961         * lib/ftello.c (rpl_ftello): Likewise.
4962         * tests/test-fseeko.c (main): Test this.
4963         * tests/test-fseeko.sh: Likewise.
4964         * tests/test-ftello.c (main): Likewise.
4965         * tests/test-ftello.sh: Likewise.
4966         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
4967         implies replacing fseek.
4968         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
4969         HAVE_FTELLO.
4970         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
4971         * modules/unistd (Makefile.am): Likewise.
4972         * lib/unistd_.h (lseek): Declare a replacement.
4973         * doc/functions/lseek.texi (lseek): Document this fix.
4974         * doc/functions/fseek.texi (fseek): Likewise.
4975         * doc/functions/ftell.texi (ftell): Likewise.
4976
4977 2007-05-24  Bruno Haible  <bruno@clisp.org>
4978
4979         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
4980         in the printed representation of a NaN.
4981         * tests/test-vasprintf-posix.c (test_function): Likewise.
4982         * tests/test-snprintf-posix.h (test_function): Likewise.
4983         * tests/test-sprintf-posix.h (test_function): Likewise.
4984         Reported by Eric Blake.
4985
4986 2007-05-23  Eric Blake  <ebb9@byu.net>
4987
4988         Fix fseeko/ftello on cygwin 1.5.24.
4989         * doc/functions/fseeko.texi (fseeko): Document the fix.
4990         * doc/functions/ftello.texi (ftello): Document the fix.
4991         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
4992         * doc/functions/stdout.text (stdout): New file.
4993         * doc/functions/stderr.text (stderr): New file.
4994         * doc/gnulib.texi (Function Substitutes): Use new files.
4995         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
4996         prior to 1.7.0.
4997         * tests/test-ftello.c (main): Likewise for ftello.
4998         * tests/test-fseeko.sh: New file.
4999         * tests/test-ftello.sh: New file.
5000         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
5001         with seekable stdin.
5002         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
5003         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
5004         (gl_REPLACE_FSEEKO): New macro.
5005         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
5006         * modules/fseeko (Files): Distribute fseeko.c.
5007         * modules/ftello (Files): Distribute ftello.c.
5008         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
5009         mode.
5010         * lib/ftello.c (rpl_ftello): New file.
5011         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
5012         fseeko, ftello.
5013         (gl_STDIN_LARGE_OFFSET): New macro.
5014         * modules/stdio (Makefile.am): Perform the replacement.
5015         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
5016
5017 2007-05-23  Bruno Haible  <bruno@clisp.org>
5018
5019         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
5020         GNULIB_POSIXCHECK is defined.
5021
5022 2007-05-21  Bruno Haible  <bruno@clisp.org>
5023
5024         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
5025         Check also the output for NaN arguments. When cross-compiling, guess
5026         no on IRIX.
5027         * lib/vasnprintf.c: Update comments.
5028         * tests/test-vasnprintf-posix.c (strisnan): New function.
5029         (test_function): Use it.
5030         * tests/test-vasprintf-posix.c (strisnan): New function.
5031         (test_function): Use it.
5032         * tests/test-snprintf-posix.h (strisnan): New function.
5033         (test_function): Use it.
5034         * tests/test-sprintf-posix.h (strisnan): New function.
5035         (test_function): Use it.
5036         Reported by Eric Blake.
5037
5038 2007-05-20  Bruno Haible  <bruno@clisp.org>
5039
5040         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
5041         numbers that fails on BeOS.
5042         * doc/functions/frexpl.texi: Update.
5043
5044 2007-05-20  Jim Meyering  <jim@meyering.net>
5045
5046         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
5047         forced upon us by glibc-2.6.
5048
5049 2007-05-20  Bruno Haible  <bruno@clisp.org>
5050
5051         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
5052         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
5053         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
5054         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
5055         NEED_PRINTF_INFINITE.
5056         (is_infinitel): New function.
5057         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
5058         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
5059         gl_PREREQ_VASNPRINTF_INFINITE.
5060         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
5061         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
5062         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
5063         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
5064         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
5065         gl_PREREQ_VASNPRINTF_INFINITE.
5066         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
5067         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
5068         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
5069         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
5070         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
5071         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5072         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
5073         * doc/functions/fprintf.texi: Update.
5074         * doc/functions/printf.texi: Update.
5075         * doc/functions/snprintf.texi: Update.
5076         * doc/functions/sprintf.texi: Update.
5077         * doc/functions/vfprintf.texi: Update.
5078         * doc/functions/vprintf.texi: Update.
5079         * doc/functions/vsnprintf.texi: Update.
5080         * doc/functions/vsprintf.texi: Update.
5081
5082 2007-05-20  Bruno Haible  <bruno@clisp.org>
5083
5084         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
5085         was not found in libc.
5086         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
5087
5088 2007-05-20  Bruno Haible  <bruno@clisp.org>
5089
5090         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
5091         printed as "-nan" instead of "nan".
5092         * tests/test-vasprintf-posix.c (test_function): Likewise.
5093         * tests/test-snprintf-posix.h (test_function): Likewise.
5094         * tests/test-sprintf-posix.h (test_function): Likewise.
5095         Needed for HP-UX 11.
5096
5097 2007-05-20  Jim Meyering  <jim@meyering.net>
5098
5099         Fix buggy test for the fchownat-deref bug.
5100         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
5101         symlink required for the run-test.  Without it, this test would
5102         always declare that fchownat doesn't work, and client code would
5103         unnecessarily use the replacement function with fixed libc.
5104         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
5105         Reported by Greg Schafer.
5106
5107 2007-05-19  Bruno Haible  <bruno@clisp.org>
5108
5109         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
5110         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
5111         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
5112         Needed for IRIX 6.5 and Solaris 2.5.1.
5113
5114 2007-05-19  Bruno Haible  <bruno@clisp.org>
5115
5116         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
5117         (test_function): Skip tests involving -0.0 on platforms where
5118         -0.0 = 0.0.
5119         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
5120         (test_function): Skip tests involving -0.0 on platforms where
5121         -0.0 = 0.0.
5122         * tests/test-snprintf-posix.h (have_minus_zero): New function.
5123         (test_function): Skip tests involving -0.0 on platforms where
5124         -0.0 = 0.0.
5125         * tests/test-sprintf-posix.h (have_minus_zero): New function.
5126         (test_function): Skip tests involving -0.0 on platforms where
5127         -0.0 = 0.0.
5128         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
5129         tests.
5130         * tests/test-printf-posix.h (test_function): Likewise.
5131         * tests/test-printf-posix.output: Remove all -0.0 related results.
5132         Needed for IRIX 6.5.
5133
5134 2007-05-19  Bruno Haible  <bruno@clisp.org>
5135
5136         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
5137         printed as "nan0x7fffffff" instead of "nan".
5138         * tests/test-vasprintf-posix.c (test_function): Likewise.
5139         * tests/test-snprintf-posix.h (test_function): Likewise.
5140         * tests/test-sprintf-posix.h (test_function): Likewise.
5141         * tests/test-fprintf-posix.h (NaN): Remove macro.
5142         (test_function): Remove all NaN related tests.
5143         * tests/test-printf-posix.h (NaN): Remove macro.
5144         (test_function): Remove all NaN related tests.
5145         * tests/test-printf-posix.output: Remove all NaN related results.
5146         Needed for IRIX 6.5.
5147
5148 2007-05-19  Bruno Haible  <bruno@clisp.org>
5149
5150         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
5151         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
5152
5153 2007-05-19  Bruno Haible  <bruno@clisp.org>
5154
5155         * lib/float_.h: New file.
5156         * m4/float_h.m4: New file.
5157         * modules/float: New file.
5158         * modules/isnanl (Dependencies): Add float.
5159         * modules/isnanl-nolibm (Dependencies): Likewise.
5160         * modules/mathl (Dependencies): Likewise.
5161         * modules/printf-frexpl (Dependencies): Likewise.
5162         * modules/signbit (Dependencies): Likewise.
5163         * modules/vasnprintf (Dependencies): Likewise.
5164         * doc/headers/float.texi: Update.
5165
5166 2007-05-19  Jim Meyering  <jim@meyering.net>
5167
5168         * lib/utimens.c (gl_futimens): Rename from futimens,
5169         now that glibc-2.6 declares futimens.
5170         * lib/utimens.h: Likewise.
5171
5172 2007-05-19  Bruno Haible  <bruno@clisp.org>
5173
5174         Avoid test failures on mingw.
5175         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
5176         * tests/test-printf-posix.sh: Likewise.
5177         * tests/test-vfprintf-posix.sh: Likewise.
5178         * tests/test-vprintf-posix.sh: Likewise.
5179
5180 2007-05-19  Bruno Haible  <bruno@clisp.org>
5181
5182         Fix *printf result for NaN, Inf, -0.0 on mingw.
5183         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
5184         * lib/vasnprintf.c: Include math.h and isnan.h.
5185         (is_infinite_or_zero): New function.
5186         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
5187         values in the %f, %F, %e, %E, %g, %G directives.
5188         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
5189         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
5190         gl_PRINTF_INFINITE and test its result. Invoke
5191         gl_PREREQ_VASNPRINTF_INFINITE.
5192         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
5193         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
5194         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
5195         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
5196         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
5197         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5198         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
5199         * doc/functions/fprintf.texi: Update.
5200         * doc/functions/printf.texi: Update.
5201         * doc/functions/snprintf.texi: Update.
5202         * doc/functions/sprintf.texi: Update.
5203         * doc/functions/vfprintf.texi: Update.
5204         * doc/functions/vprintf.texi: Update.
5205         * doc/functions/vsnprintf.texi: Update.
5206         * doc/functions/vsprintf.texi: Update.
5207
5208 2007-05-19  Bruno Haible  <bruno@clisp.org>
5209
5210         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
5211         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
5212         Instead of multiplying with 10^k, set extra_zeroes to k.
5213         (scale10_round_long_double): Remove function.
5214
5215 2007-05-18  Bruno Haible  <bruno@clisp.org>
5216
5217         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
5218         introduced on 2007-05-06.
5219
5220 2007-05-18  Bruno Haible  <bruno@clisp.org>
5221
5222         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
5223         %g directives.
5224         * tests/test-vasprintf-posix.c (test_function): Likewise.
5225         * tests/test-snprintf-posix.h (test_function): Likewise.
5226         * tests/test-sprintf-posix.h (test_function): Likewise.
5227
5228 2007-05-18  Bruno Haible  <bruno@clisp.org>
5229
5230         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
5231         (strmatch): New function.
5232         (test_function): Test the %f directive on numbers of various exponents.
5233         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
5234         (strmatch): New function.
5235         (test_function): Test the %f directive on numbers of various exponents.
5236         * tests/test-snprintf-posix.h (strmatch): New function.
5237         (test_function): Test the %f directive on numbers of various exponents.
5238         * tests/test-sprintf-posix.h (strmatch): New function.
5239         (test_function): Test the %f directive on numbers of various exponents.
5240         * tests/test-snprintf-posix.c (SIZEOF): New macro.
5241         * tests/test-sprintf-posix.c (SIZEOF): New macro.
5242         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
5243         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
5244
5245 2007-05-18  Bruno Haible  <bruno@clisp.org>
5246
5247         Add support for 'long double' number output.
5248         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
5249         * lib/vasnprintf.c: Include math.h and float+.h.
5250         (mp_limb_t): New type.
5251         (GMP_LIMB_BITS): New macro.
5252         (mp_twolimb_t): New type.
5253         (GMP_TWOLIMB_BITS): New macro.
5254         (mpn_t): New type.
5255         (multiply, divide, convert_to_decimal, decode_long_double,
5256         scale10_round_long_double, scale10_round_decimal_long_double,
5257         floorlog10l): New functions.
5258         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
5259         for the %f, %F, %e, %E, %g, %G directives.
5260         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
5261         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
5262         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
5263         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
5264         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
5265         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
5266         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
5267         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
5268         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
5269         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5270         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
5271         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
5272         * modules/snprintf-posix (Depends-on): Likewise.
5273         * modules/sprintf-posix (Depends-on): Likewise.
5274         * modules/vasnprintf-posix (Depends-on): Likewise.
5275         * modules/vasprintf-posix (Depends-on): Likewise.
5276         * modules/vfprintf-posix (Depends-on): Likewise.
5277         * modules/vsnprintf-posix (Depends-on): Likewise.
5278         * modules/vsprintf-posix (Depends-on): Likewise.
5279         * modules/vasnprintf (Files): Add lib/float+.h.
5280         * doc/functions/fprintf.texi: Update.
5281         * doc/functions/printf.texi: Update.
5282         * doc/functions/snprintf.texi: Update.
5283         * doc/functions/sprintf.texi: Update.
5284         * doc/functions/vfprintf.texi: Update.
5285         * doc/functions/vprintf.texi: Update.
5286         * doc/functions/vsnprintf.texi: Update.
5287         * doc/functions/vsprintf.texi: Update.
5288
5289 2007-05-18  Bruno Haible  <bruno@clisp.org>
5290
5291         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
5292
5293 2007-05-18  Bruno Haible  <bruno@clisp.org>
5294
5295         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
5296         for printing 64-bit integers. Needed for mingw.
5297
5298 2007-05-18  Bruno Haible  <bruno@clisp.org>
5299
5300         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
5301         gl_FUNC_FREXPL_WORKS.
5302         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
5303
5304 2007-05-18  Bruno Haible  <bruno@clisp.org>
5305
5306         * modules/frexpl-nolibm-tests: New file.
5307
5308         * modules/frexpl-nolibm: New file.
5309         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
5310
5311 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
5312
5313         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
5314         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
5315         GCC 4.2, which otherwise issues a lot of warnings.
5316         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
5317         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
5318         Likewise.
5319         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
5320         * modules/iconv_open (iconv.h): Likewise.
5321         * modules/locale (locale.h): Likewise.
5322         * modules/netinet_in (netinet/in.h): Likewise.
5323         * modules/sys_select (sys_select.h): Likewise.
5324         * modules/sys_socket (sys/socket.h): Likewise.
5325         * modules/sys_stat (sys/stat.h): Likewise.
5326         * modules/sysexits (sysexits.h): Likewise.
5327         * modules/unistd (unistd.h): Likewise.
5328
5329 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5330
5331         * modules/closein-tests (Makefile.am): Distribute
5332         `test-closein.sh'.
5333
5334 2007-05-17  Bruno Haible  <bruno@clisp.org>
5335
5336         * tests/test-printf-posix.output: Renamed from
5337         tests/test-fprintf-posix.out.
5338         * modules/fprintf-posix-tests: Update.
5339         * modules/printf-posix-tests: Update.
5340         * modules/vfprintf-posix-tests: Update.
5341         * modules/vprintf-posix-tests: Update.
5342         * tests/test-fprintf-posix.sh: Update.
5343         * tests/test-printf-posix.sh: Update.
5344         * tests/test-vfprintf-posix.sh: Update.
5345         * tests/test-vprintf-posix.sh: Update.
5346         Reported by Ralf Wildenhues.
5347
5348 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
5349
5350         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
5351         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
5352         GCC 4.2, which otherwise issues a lot of warnings.
5353         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
5354         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
5355         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
5356         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
5357         it should no longer be needed.
5358         * lib/string_.h: Likewise.
5359         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
5360         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
5361         * modules/inttypes (inttypes.h): Likewise.
5362         * modules/math (math.h): Likewise.
5363         * modules/search (search.h): Likewise.
5364         * modules/signal (signal.h): Likewise.
5365         * modules/stdint (stdint.h): Likewise.
5366         * modules/stdio (stdio.h): Likewise.
5367         * modules/stdlib (stdlib.h): Likewise.
5368         * modules/string (string.h): Likewise.
5369         * modules/sys_time (sys/time.h): Likewise.
5370         * modules/time (time.h): Likewise.
5371         * modules/wchar (wchar.h): Likewise.
5372         * modules/wctype (wtype.h): Likewise.
5373
5374 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
5375
5376         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
5377
5378 2007-05-13  Bruno Haible  <bruno@clisp.org>
5379
5380         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
5381         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
5382         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
5383         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
5384         (gl_PREREQ_STRTOK_R): Don't require it here.
5385
5386 2007-05-13  Bruno Haible  <bruno@clisp.org>
5387
5388         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
5389         when used in C++ mode.
5390
5391 2007-05-12  Bruno Haible  <bruno@clisp.org>
5392
5393         * lib/linebuffer.h: Tweak doc.
5394         * lib/linebuffer.c: Likewise.
5395
5396 2007-05-12  James Youngman  <jay@gnu.org>
5397
5398         * lib/linebuffer.c (readlinebuffer_delim): New function,
5399         like readlinebuffer, but use a caller-specified delimiter.
5400         (readlinebuffer): Just call readlinebuffer_delim with '\n'
5401         as the delimiter.
5402         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
5403
5404 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
5405
5406         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
5407         * modules/openat (Files): Remove openat-die.c.
5408         (Depends-on): Add openat-die.
5409         * modules/openat-die: New module.
5410
5411 2007-05-06  Bruno Haible  <bruno@clisp.org>
5412
5413         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
5414         Update with info about Cygwin.
5415         * doc/functions/fprintf.texi: Update.
5416         * doc/functions/printf.texi: Update.
5417         * doc/functions/snprintf.texi: Update.
5418         * doc/functions/sprintf.texi: Update.
5419         * doc/functions/vfprintf.texi: Update.
5420         * doc/functions/vprintf.texi: Update.
5421         * doc/functions/vsnprintf.texi: Update.
5422         * doc/functions/vsprintf.texi: Update.
5423         Reported by Eric Blake.
5424
5425 2007-05-06  Bruno Haible  <bruno@clisp.org>
5426
5427         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
5428         padding ourselves for the floating-point directives.
5429         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
5430         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
5431         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
5432         gl_PRINTF_FLAG_ZERO and test its result. Invoke
5433         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
5434         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
5435         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
5436         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
5437         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
5438         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
5439         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5440         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
5441         * tests/test-snprintf-posix.h (test_function): Also check the width
5442         and some flags in the %f directive.
5443         * tests/test-sprintf-posix.h (test_function): Likewise.
5444         * tests/test-vasnprintf-posix.c (test_function): Likewise.
5445         * tests/test-vasprintf-posix.c (test_function): Likewise.
5446         * doc/functions/fprintf.texi: Update.
5447         * doc/functions/printf.texi: Update.
5448         * doc/functions/snprintf.texi: Update.
5449         * doc/functions/sprintf.texi: Update.
5450         * doc/functions/vfprintf.texi: Update.
5451         * doc/functions/vprintf.texi: Update.
5452         * doc/functions/vsnprintf.texi: Update.
5453         * doc/functions/vsprintf.texi: Update.
5454
5455 2007-05-06  Bruno Haible  <bruno@clisp.org>
5456
5457         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
5458         pass the ' flag character to sprintf or snprintf.
5459         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
5460         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
5461         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
5462         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
5463         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
5464         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
5465         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
5466         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
5467         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
5468         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
5469         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5470         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
5471         * tests/test-snprintf-posix.h (test_function): Also check the grouping
5472         flag.
5473         * tests/test-sprintf-posix.h (test_function): Likewise.
5474         * tests/test-vasnprintf-posix.c (test_function): Likewise.
5475         * tests/test-vasprintf-posix.c (test_function): Likewise.
5476         * doc/functions/fprintf.texi: Update.
5477         * doc/functions/printf.texi: Update.
5478         * doc/functions/snprintf.texi: Update.
5479         * doc/functions/sprintf.texi: Update.
5480         * doc/functions/vfprintf.texi: Update.
5481         * doc/functions/vprintf.texi: Update.
5482         * doc/functions/vsnprintf.texi: Update.
5483         * doc/functions/vsprintf.texi: Update.
5484
5485 2007-05-01  Bruno Haible  <bruno@clisp.org>
5486
5487         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
5488
5489 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
5490
5491         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
5492         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
5493
5494 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
5495
5496         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
5497         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
5498         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
5499
5500 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
5501
5502         * lib/argp-help.c (struct hol_entry): New member `ord'.
5503         (HOL_ENTRY_PTRCMP): Use ord for comparison
5504         (hol_sort): Initialize ord.
5505
5506 2007-05-01  Bruno Haible  <bruno@clisp.org>
5507
5508         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
5509         Reported by Eric Blake.
5510         * doc/gnulib.texi (Function Substitutes): Update.
5511
5512 2007-05-01  Bruno Haible  <bruno@clisp.org>
5513
5514         * doc/functions.texi: Remove file, now redundant through
5515         doc/functions/*.texi.
5516
5517 2007-05-01  Bruno Haible  <bruno@clisp.org>
5518
5519         * modules/argp (Depends-on): Add sleep.
5520
5521 2007-05-01  Bruno Haible  <bruno@clisp.org>
5522
5523         * modules/sleep-tests: New file.
5524         * tests/test-sleep.c: New file.
5525
5526         * modules/sleep: New file.
5527         * lib/sleep.c: New file.
5528         * m4/sleep.m4: New file.
5529         * lib/unistd_.h (sleep): New declaration.
5530         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
5531         HAVE_SLEEP.
5532         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
5533         * doc/functions/sleep.texi: Document the sleep module.
5534
5535 2007-05-01  Bruno Haible  <bruno@clisp.org>
5536
5537         * lib/sigprocmask.h: Remove file.
5538         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
5539         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
5540         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
5541         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
5542         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
5543         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
5544         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
5545         HAVE_SIGSET_T as a shell variable.
5546         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
5547         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
5548         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
5549         (Depends-on): Add signal. Remove verify.
5550         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
5551         (Include): Mention <signal.h> instead of sigprocmask.h.
5552         * NEWS: Mention the change.
5553         * lib/fatal-signal.c: Don't include sigprocmask.h.
5554
5555 2007-05-01  Bruno Haible  <bruno@clisp.org>
5556
5557         * modules/signal: New file.
5558         * lib/signal_.h: New file.
5559         * m4/signal_h.m4: New file.
5560
5561 2007-05-01  Bruno Haible  <bruno@clisp.org>
5562
5563         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
5564         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
5565         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
5566         HAVE_WCTYPE_CTMP_BUG into wctype.h.
5567
5568 2007-05-01  Bruno Haible  <bruno@clisp.org>
5569
5570         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
5571         configure time.
5572         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
5573         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
5574         * modules/sys_stat (Makefile.am): Substitute their values into
5575         sys/stat.h.
5576
5577 2007-05-01  Bruno Haible  <bruno@clisp.org>
5578
5579         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
5580         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
5581         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
5582
5583 2007-05-01  Bruno Haible  <bruno@clisp.org>
5584
5585         * doc/header/assert.texi: Undo last change: don't mention the gnulib
5586         'assert' module here.
5587
5588 2007-05-01  Bruno Haible  <bruno@clisp.org>
5589
5590         * doc/functions/*.texi: New files.
5591         * doc/functions/google-ranking.txt: New file.
5592         * doc/gnulib.texi (Function Substitutes): New chapter.
5593         (ctime, inet_ntoa): Remove sections.
5594         * doc/ctime.texi: Remove file.
5595         * doc/inet_ntoa.texi: Remove file.
5596         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
5597         dependencies.
5598         (%.info): New rule, specifying a --reference-limit.
5599
5600 2007-05-01  Bruno Haible  <bruno@clisp.org>
5601
5602         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
5603
5604 2007-05-01  Bruno Haible  <bruno@clisp.org>
5605
5606         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
5607         the portability of 'mkdir' to mingw systems.
5608
5609 2007-05-01  Bruno Haible  <bruno@clisp.org>
5610
5611         * doc/headers/google-ranking.txt: New file.
5612
5613 2007-04-30  Eric Blake  <ebb9@byu.net>
5614
5615         Prefer fseeko to fseek.
5616         * modules/getpass (Depends-on): Add fseeko.
5617         * lib/getpass.c (getpass): Use fseeko, not fseek.
5618
5619 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
5620
5621         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
5622         assumes the sorting is stable, while most qsort implementations
5623         are not.  Use argument addresses to ensure they never compare as
5624         equal.
5625
5626         * tests/test-argp-2.sh (usage-indent test): Fix output
5627         (func_compare): Restore diff options
5628         * tests/test-argp.c: Restore #include "progname.h"
5629
5630 2007-04-29  Bruno Haible  <bruno@clisp.org>
5631
5632         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
5633         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
5634         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
5635         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5636         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
5637         (configure.ac): Define CHECK_SNPRINTF_POSIX.
5638         (TESTS, check_PROGRAMS): Add test-snprintf.
5639         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
5640         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
5641         (TESTS, check_PROGRAMS): Add test-vsnprintf.
5642         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
5643         assertions that fail on HP-UX, OSF/1, or IRIX.
5644         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
5645
5646 2007-04-29  Bruno Haible  <bruno@clisp.org>
5647
5648         * MODULES.html.sh (posix_functions): Remove 'contents'.
5649
5650 2007-04-29  Karl Berry  <karl@gnu.org>
5651
5652         * config/srclist.txt (gendocs_template_min): new entry.
5653
5654 2007-04-29  Bruno Haible  <bruno@clisp.org>
5655
5656         Work around fpurge bug on BSD systems.
5657         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
5658         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
5659         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
5660         fpurge to rpl_fpurge if the system already has this function.
5661         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
5662         the case where the system already has this function. Correct invariants
5663         on BSD systems.
5664         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
5665         BSD systems.
5666
5667 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
5668
5669         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
5670         proposed by Sven Verdoolaege.
5671
5672         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
5673         options.
5674         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
5675         (usage and help tests): Update
5676
5677 2007-04-29  Bruno Haible  <bruno@clisp.org>
5678
5679         * tests/test-fflush.c (main): Use a file of size 17, not 10.
5680         Print more information in case of failure. Disable a test on BeOS.
5681
5682 2007-04-29  Bruno Haible  <bruno@clisp.org>
5683
5684         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
5685         This helps debugging on systems on which no gdb is available.
5686
5687 2007-04-29  Bruno Haible  <bruno@clisp.org>
5688
5689         * lib/freading.h: Improve comments.
5690         * lib/fwriting.h: Likewise.
5691         * tests/test-freading.c (main): Don't check freading immediately after
5692         repositioning. Needed for glibc.
5693
5694 2007-04-29  Bruno Haible  <bruno@clisp.org>
5695
5696         * lib/freading.c (freading): Trivial simplification.
5697
5698 2007-04-28  Bruno Haible  <bruno@clisp.org>
5699
5700         * tests/test-fwriting.c (main): Also test the interaction between
5701         fflush and fwriting.
5702         * modules/fwriting-tests (Depends-on): Add fflush.
5703
5704         * tests/test-freading.c (main): Also test the interaction between
5705         fflush and freading.
5706         * modules/freading-tests (Depends-on): Add fflush.
5707
5708 2007-04-28  Bruno Haible  <bruno@clisp.org>
5709
5710         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
5711         fseeko and ftello.
5712         Suggested by Eric Blake.
5713
5714 2007-04-28  Jim Meyering  <jim@meyering.net>
5715
5716         Avoid false-negative in gl_STDINT_H's C99 conformance test.
5717         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
5718         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
5719
5720 2007-04-27  Eric Blake  <ebb9@byu.net>
5721
5722         * doc/headers/assert.texi (assert.h): Document assert module use.
5723
5724 2007-04-27  Bruno Haible  <bruno@clisp.org>
5725
5726         * doc/headers/*.texi: New files.
5727         * doc/gnulib.texi (Header File Substitutes): New chapter.
5728         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
5729         dependencies.
5730         (standards.info ,standards.html, standards.dvi): Update dependencies.
5731         (mostlyclean, clean): New targets.
5732
5733 2007-04-27  Bruno Haible  <bruno@clisp.org>
5734
5735         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
5736         * modules/sysexits (Files, Makefile.am): Update.
5737
5738         * lib/sys_socket_.h: Renamed from lib/socket_.h.
5739         * modules/sys_socket (Files, Makefile.am): Update.
5740
5741         * lib/sys_stat_.h: Renamed from lib/stat_.h.
5742         * modules/sys_stat (Files, Makefile.am): Update.
5743
5744 2007-04-27  Eric Blake  <ebb9@byu.net>
5745
5746         * lib/freading.h: Improve comments.
5747         * lib/fwriting.h: Likewise.
5748         * lib/fflush.c: Likewise.
5749
5750         Fix closein for mingw.
5751         * modules/closein-tests: Add tests for closein.
5752         * tests/test-closein.c: New file.
5753         * tests/test-closein.sh: Likewise.
5754         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
5755         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
5756
5757 2007-04-27  Bruno Haible  <bruno@clisp.org>
5758
5759         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
5760         version is < 6.
5761         * lib/math_.h [__DECC]: Likewise.
5762         * lib/stdio_.h [__DECC]: Likewise.
5763         * lib/stdlib_.h [__DECC]: Likewise.
5764         * lib/string_.h [__DECC]: Likewise.
5765         * lib/time_.h [__DECC]: Likewise.
5766         * lib/wchar_.h [__DECC]: Likewise.
5767         * lib/wctype_.h [__DECC]: Likewise.
5768
5769 2007-04-27  Bruno Haible  <bruno@clisp.org>
5770
5771         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
5772
5773 2007-04-27  Bruno Haible  <bruno@clisp.org>
5774
5775         * lib/fflush.c: Add comments.
5776         * modules/fpurge-tests (Depends-on): Add fflush.
5777         * modules/freadable-tests (Depends-on): Likewise.
5778         * modules/fwritable-tests (Depends-on): Likewise.
5779
5780 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
5781
5782         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
5783         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
5784         Report by Bruno Haible <bruno@clisp.org>.
5785
5786 2007-04-26  Eric Blake  <ebb9@byu.net>
5787
5788         Fix fflush on mingw.
5789         * modules/fflush (Depends-on): Add freading.
5790         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
5791         but unread data.
5792
5793 2007-04-26  Eric Blake  <ebb9@byu.net>
5794         and Bruno Haible  <bruno@clisp.org>
5795
5796         Implement freading and fwriting.
5797         * lib/freading.c: New file.
5798         * lib/freading.h: Likewise.
5799         * m4/freading.m4: Likewise.
5800         * modules/freading: Likewise.
5801         * modules/freading-tests: Likewise.
5802         * tests/test-freading.c: Likewise.
5803         * lib/fwriting.c: New file.
5804         * lib/fwriting.h: Likewise.
5805         * m4/fwriting.m4: Likewise.
5806         * modules/fwriting: Likewise.
5807         * modules/fwriting-tests: Likewise.
5808         * tests/test-fwriting.c: Likewise.
5809         * MODULES.html.sh (File stream based Input/Output): Mention them.
5810
5811 2007-04-26  Bruno Haible  <bruno@clisp.org>
5812
5813         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
5814         'long' when we assume it.
5815         Suggested by Eric Blake.
5816
5817 2007-04-26  Bruno Haible  <bruno@clisp.org>
5818
5819         Ensure fseeko, ftello are declared on glibc systems.
5820         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
5821         * modules/fseeko (configure.ac-early): Likewise.
5822         * modules/ftello (configure.ac-early): Likewise.
5823         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
5824         AC_FUNC_FSEEKO for this.
5825         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
5826         (gl_CHECK_FSEEKO): Remove macro.
5827
5828 2007-04-26  Bruno Haible  <bruno@clisp.org>
5829
5830         * tests/test-fflush.c (main): Also check the ftell result after
5831         fflush and fseek/fseeko.
5832         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
5833         file descriptor position cache in the stream.
5834         * lib/fseeko.c (rpl_fseeko): Likewise.
5835
5836 2007-04-26  Bruno Haible  <bruno@clisp.org>
5837
5838         * modules/fflush-tests (Depends-on): Add fseeko.
5839
5840 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
5841             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5842
5843         * lib/argz_.h: ensure error_t definition is obtained in same
5844         mechanism system argz.h would have.
5845         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
5846         argz facilities are known bad.  Err on the side of caution if
5847         cross-compiling.
5848
5849 2007-04-25  Eric Blake  <ebb9@byu.net>
5850
5851         * lib/fpurge.c (includes): Use stdlib.h for free.
5852         * tests/test-fflush.c (main): Also test fflush-fseeko.
5853
5854 2007-04-25  Bruno Haible  <bruno@clisp.org>
5855
5856         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
5857         * lib/fseeko.c: New file.
5858         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
5859         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
5860         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
5861         gl_FUNC_FSEEKO.
5862         (gl_FUNC_FSEEKO): Invoke it.
5863         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
5864         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
5865         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
5866
5867 2007-04-25  Bruno Haible  <bruno@clisp.org>
5868
5869         * modules/fflush (Depends-on): Add ftello.
5870
5871 2007-04-25  Bruno Haible  <bruno@clisp.org>
5872
5873         * modules/ftello-tests: New file.
5874         * tests/test-ftello.c: New file.
5875
5876         * modules/ftello: New file.
5877         * m4/ftello.m4: New file.
5878         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
5879         HAVE_FTELLO.
5880         * lib/stdio_.h (ftello): New declaration.
5881         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
5882         HAVE_FTELLO.
5883
5884 2007-04-25  Bruno Haible  <bruno@clisp.org>
5885
5886         * modules/fseeko-tests: New file.
5887         * tests/test-fseeko.c: New file.
5888
5889         * modules/fseeko: New file.
5890         * m4/fseeko.m4: New file.
5891         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
5892         HAVE_FSEEKO.
5893         * lib/stdio_.h (fseeko): New declaration.
5894         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
5895         HAVE_FSEEKO.
5896
5897 2007-04-25  Bruno Haible  <bruno@clisp.org>
5898
5899         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
5900
5901 2007-04-25  Bruno Haible  <bruno@clisp.org>
5902
5903         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
5904         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
5905         * tests/test-unistd.c: Likewise.
5906         * tests/test-fcntl.c: Likewise.
5907
5908 2007-04-23  Eric Blake  <ebb9@byu.net>
5909
5910         * lib/fflush.c: Fix missing include.
5911         Reported by Bruno Haible.
5912
5913 2007-04-23  Bruno Haible  <bruno@clisp.org>
5914
5915         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
5916         Reported by Eric Blake.
5917
5918 2007-04-23  Bruno Haible  <bruno@clisp.org>
5919
5920         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
5921
5922 2007-04-23  Bruno Haible  <bruno@clisp.org>
5923
5924         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
5925
5926 2007-04-23  Bruno Haible  <bruno@clisp.org>
5927
5928         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
5929         Needed on HP-UX 11.
5930
5931 2007-04-16  Eric Blake  <ebb9@byu.net>
5932
5933         Make fflush rely on fpurge.
5934         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
5935         open coding all variants.
5936         * modules/fflush (Depends-on): Add fpurge and unistd.
5937         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
5938         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
5939
5940         Fix --with-tests compilation on cygwin.
5941         * modules/argmatch-tests (Makefile.am): List gnulib library first
5942         in LDADD.
5943         * modules/argp-tests (Makefile.am): Likewise.
5944         * modules/array-list-tests (Makefile.am): Likewise.
5945         * modules/array-oset-tests (Makefile.am): Likewise.
5946         * modules/avltree-list-tests (Makefile.am): Likewise.
5947         * modules/avltree-oset-tests (Makefile.am): Likewise.
5948         * modules/avltreehash-list-tests (Makefile.am): Likewise.
5949         * modules/carray-list-tests (Makefile.am): Likewise.
5950         * modules/dirname-tests (Makefile.am): Likewise.
5951         * modules/frexp-tests (Makefile.am): Likewise.
5952         * modules/isnanl-tests (Makefile.am): Likewise.
5953         * modules/linked-list-tests (Makefile.am): Likewise.
5954         * modules/linkedhash-list-tests (Makefile.am): Likewise.
5955         * modules/lock-tests (Makefile.am): Likewise.
5956         * modules/rbtree-list-tests (Makefile.am): Likewise.
5957         * modules/rbtree-oset-tests (Makefile.am): Likewise.
5958         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
5959         * modules/tls-tests (Makefile.am): Likewise.
5960         * modules/tsearch-tests (Makefile.am): Likewise.
5961         * modules/xvasprintf-tests (Makefile.am): Likewise.
5962
5963         Fix fpurge for cygwin.
5964         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
5965         value.
5966         * modules/fpurge-tests (Depends-on): Clean up trash.
5967
5968 2007-04-16  Simon Josefsson  <simon@josefsson.org>
5969
5970         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
5971
5972         * m4/autobuild.m4: Re-indent.
5973
5974 2007-04-13  Bruno Haible  <bruno@clisp.org>
5975
5976         * modules/fpurge-tests: New file.
5977         * tests/test-fpurge.c: New file.
5978
5979         * modules/fpurge: New file.
5980         * lib/fpurge.h: New file.
5981         * lib/fpurge.c: New file.
5982         * m4/fpurge.m4: New file.
5983
5984 2007-04-13  Bruno Haible  <bruno@clisp.org>
5985
5986         * modules/fbufmode-tests: New file.
5987         * tests/test-fbufmode.c: New file.
5988
5989         * modules/fbufmode: New file.
5990         * lib/fbufmode.h: New file.
5991         * lib/fbufmode.c: New file.
5992         * m4/fbufmode.m4: New file.
5993
5994 2007-04-13  Bruno Haible  <bruno@clisp.org>
5995
5996         * modules/fwritable-tests: New file.
5997         * tests/test-fwritable.c: New file.
5998
5999         * modules/fwritable: New file.
6000         * lib/fwritable.h: New file.
6001         * lib/fwritable.c: New file.
6002         * m4/fwritable.m4: New file.
6003
6004 2007-04-13  Bruno Haible  <bruno@clisp.org>
6005
6006         * modules/freadable-tests: New file.
6007         * tests/test-freadable.c: New file.
6008
6009         * modules/freadable: New file.
6010         * lib/freadable.h: New file.
6011         * lib/freadable.c: New file.
6012         * m4/freadable.m4: New file.
6013
6014 2007-04-13  Bruno Haible  <bruno@clisp.org>
6015
6016         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
6017         MOSTLYCLEANFILES.
6018
6019 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
6020
6021         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
6022         gzip bootstrap.conf to avoid dragging in i18n machinery.
6023         (gnulib_tool_option): Use it.
6024
6025 2007-04-13  Bruno Haible  <bruno@clisp.org>
6026
6027         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
6028         %F directives.
6029         * tests/test-vasprintf-posix.c (test_function): Likewise.
6030         * tests/test-snprintf-posix.h (test_function): Likewise.
6031         * tests/test-sprintf-posix.h (test_function): Likewise.
6032         * tests/test-fprintf-posix.h (test_function): Likewise.
6033         * tests/test-printf-posix.h (test_function): Likewise.
6034         * tests/test-fprintf-posix.out: Likewise.
6035
6036 2007-04-13  Bruno Haible  <bruno@clisp.org>
6037
6038         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
6039         * modules/tls-tests (configure.ac): Likewise.
6040         Reported by Arto C. Nirkko <anirkko@insel.ch>.
6041
6042 2007-04-13  Bruno Haible  <bruno@clisp.org>
6043
6044         * lib/tls.c (glthread_tls_get): Fix return type.
6045         Patch by Arto C. Nirkko <anirkko@insel.ch>.
6046
6047 2007-04-12  Eric Blake  <ebb9@byu.net>
6048
6049         * modules/gettime (Depends-on): Remove gettime.
6050         Reported by Dmitry V. Levin.
6051
6052 2007-04-12  Bruno Haible  <bruno@clisp.org>
6053
6054         * modules/fflush (Include): Mention <stdio.h>.
6055         * modules/strtoimax (Include): Mention <inttypes.h>.
6056         * modules/strtoumax (Include): Likewise.
6057
6058 2007-04-12  Eric Blake  <ebb9@byu.net>
6059
6060         * .cvsignore: New file.
6061         * .gitignore: Likewise.
6062
6063 2007-04-12  Bruno Haible  <bruno@clisp.org>
6064
6065         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
6066         not before, since $(LDADD) often contains libgnu.a.
6067         * modules/striconv-tests (test_striconv_LDADD): Likewise.
6068         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
6069         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
6070         Needed on Cygwin.
6071
6072 2007-04-12  Eric Blake  <ebb9@byu.net>
6073
6074         Work around glibc's failure to flush stdin on fclose.
6075         * lib/closein.c (close_stdin): Flush stdin before closing.
6076
6077         Work around glibc's failure to reset seekable stdin on exit.
6078         * modules/closein: New module.
6079         * lib/closein.c: New file.
6080         * lib/closein.h: Likewise.
6081         * m4/closein.m4: Likewise.
6082         * MODULES.html.sh (File stream based Input/Output): Document it.
6083
6084 2007-04-12  Simon Josefsson  <simon@josefsson.org>
6085
6086         * gnulib-tool: Rename generated 'autobuild' script to
6087         'do-autobuild' in --create-megatestdir output.
6088
6089         * doc/gnulib.texi (Build robot for gnulib): Fix.
6090
6091 2007-04-12  Simon Josefsson  <simon@josefsson.org>
6092
6093         * modules/sysexits (Depends-on): Add absolute-header.
6094
6095 2007-04-12  Eric Blake  <ebb9@byu.net>
6096
6097         No need to preserve errno on success.
6098         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
6099         Reported by Bruno Haible.
6100
6101 2007-04-12  Simon Josefsson  <simon@josefsson.org>
6102
6103         * MODULES.html.sh (Support for maintaining and releasing
6104         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
6105
6106 2007-04-12  Simon Josefsson  <simon@josefsson.org>
6107
6108         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
6109
6110 2007-04-12  Simon Josefsson  <simon@josefsson.org>
6111
6112         * modules/autobuild: New module.
6113
6114         * m4/autobuild.m4: New file.
6115
6116 2007-04-11  Bruno Haible  <bruno@clisp.org>
6117
6118         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
6119         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
6120         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
6121         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
6122         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
6123         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
6124         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
6125         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
6126         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
6127         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
6128         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
6129         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
6130         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
6131         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
6132         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
6133         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
6134         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
6135         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
6136         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
6137         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
6138         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
6139         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
6140         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
6141         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
6142         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
6143         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
6144         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
6145         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
6146         Reported by Eric Blake.
6147
6148 2007-04-11  Bruno Haible  <bruno@clisp.org>
6149
6150         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
6151
6152 2007-04-10  Bruno Haible  <bruno@clisp.org>
6153
6154         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
6155         for NaN and Infinity. Needed on FreeBSD 6.1.
6156         * tests/test-vasnprintf-posix.c (test_function): Undo last change
6157         regarding results for "%010a" of Infinity and NaN.
6158         * tests/test-vasprintf-posix.c (test_function): Likewise.
6159         * tests/test-snprintf-posix.h (test_function): Likewise.
6160         * tests/test-sprintf-posix.h (test_function): Likewise.
6161         * tests/test-fprintf-posix.h (test_function): Likewise.
6162         * tests/test-printf-posix.h (test_function): Likewise.
6163         * tests/test-fprintf-posix.out: Likewise.
6164
6165 2007-04-10  Bruno Haible  <bruno@clisp.org>
6166
6167         * modules/locale-tests: New file.
6168         * tests/test-locale.c: New file.
6169
6170         * modules/locale: New file.
6171         * lib/locale_.h: New file.
6172         * m4/locale_h.m4: New file.
6173
6174 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
6175             Bruno Haible  <bruno@clisp.org>
6176
6177         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
6178         be determined, test for availability of the copysignf, copysign,
6179         copysignl functions.
6180         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
6181         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
6182         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
6183
6184 2007-04-09  Eric Blake  <ebb9@byu.net>
6185
6186         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
6187         * modules/stdio (Makefile.am): Support fflush.
6188         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
6189         * modules/fflush: New file.
6190         * lib/fflush.c: Likewise.
6191         * m4/fflush.m4: Likewise.
6192         * modules/fflush-tests: New test.
6193         * tests/test-fflush.c: Likewise.
6194         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
6195
6196 2007-04-06  Bruno Haible  <bruno@clisp.org>
6197
6198         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
6199         (VASNPRINTF): Use signbit for faster determination whether to print a
6200         minus sign.
6201         * modules/vasnprintf (Files): Remove lib/float+.h.
6202         * modules/fprintf-posix (Depends-on): Add signbit.
6203         * modules/snprintf-posix (Depends-on): Likewise.
6204         * modules/sprintf-posix (Depends-on): Likewise.
6205         * modules/vasnprintf-posix (Depends-on): Likewise.
6206         * modules/vasprintf-posix (Depends-on): Likewise.
6207         * modules/vfprintf-posix (Depends-on): Likewise.
6208         * modules/vsnprintf-posix (Depends-on): Likewise.
6209         * modules/vsprintf-posix (Depends-on): Likewise.
6210
6211 2007-04-06  Bruno Haible  <bruno@clisp.org>
6212
6213         * tests/test-frexp.c (main): Test also the sign bit of zero results.
6214         * tests/test-frexpl.c (main): Likewise.
6215         * tests/test-ldexpl.c (main): Likewise.
6216         * modules/frexp-tests (Depends-on): Add signbit.
6217         * modules/frexpl-tests (Depdends-on): Likewise.
6218         * modules/ldexpl-tests (Depdends-on): Likewise.
6219
6220 2007-04-06  Bruno Haible  <bruno@clisp.org>
6221
6222         * modules/signbit-tests: New file.
6223         * tests/test-signbit.c: New file.
6224
6225         * modules/signbit: New file.
6226         * lib/signbitf.c: New file.
6227         * lib/signbitd.c: New file.
6228         * lib/signbitl.c: New file.
6229         * m4/signbit.m4: New file.
6230         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
6231         (signbit): New macro.
6232         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
6233         REPLACE_SIGNBIT.
6234         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
6235         REPLACE_FREXPL into math.h.
6236
6237 2007-04-06  Bruno Haible  <bruno@clisp.org>
6238
6239         * modules/isnanf-nolibm-tests: New file.
6240         * tests/test-isnanf.c: New file.
6241
6242         * modules/isnanf-nolibm: New file.
6243         * lib/isnanf.h: New file.
6244         * lib/isnanf.c: New file.
6245         * lib/isnan.c: Consider the USE_FLOAT macro.
6246         * m4/isnanf.m4: New file.
6247
6248 2007-04-06  Bruno Haible  <bruno@clisp.org>
6249
6250         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
6251         (Link): New section.
6252
6253         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
6254
6255 2007-04-06  Bruno Haible  <bruno@clisp.org>
6256
6257         Assume the 'long double' type.
6258         * m4/longdouble.m4: Remove file.
6259         * config/srclist.txt: Don't mention longdouble.m4.
6260         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
6261         * lib/float+.h: Likewise.
6262         * lib/frexp.c: Likewise.
6263         * lib/printf-args.h: Likewise.
6264         * lib/printf-args.c: Likewise.
6265         * lib/printf-frexp.c: Likewise.
6266         * lib/printf-parse.c: Likewise.
6267         * lib/vasnprintf.c: Likewise.
6268         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
6269         * m4/intl.m4: Likewise.
6270         * m4/isnanl.m4: Likewise.
6271         * m4/printf.m4: Likewise.
6272         * m4/printf-frexpl.m4: Likewise.
6273         * m4/vasnprintf.m4: Likewise.
6274         * modules/allocsa (Files): Remove m4/longdouble.m4.
6275         * modules/gettext (Files): Likewise.
6276         * modules/relocatable-prog-wrapper (Files): Likewise.
6277         * modules/vasnprintf (Files): Likewise.
6278         * modules/isnanl (Files): Likewise.
6279         (Include): Simplify.
6280         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
6281         (Include): Simplify.
6282         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
6283         (Include): Simplify.
6284         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
6285         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
6286         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
6287         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
6288         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
6289         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
6290         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
6291         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
6292         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
6293         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
6294         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
6295         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
6296         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
6297         * tests/test-isnanl.c: Likewise.
6298         * tests/test-snprintf-posix.h: Likewise.
6299         * tests/test-sprintf-posix.h: Likewise.
6300         * tests/test-vasnprintf-posix.c: Likewise.
6301         * tests/test-vasnprintf-posix2.c: Likewise.
6302         * tests/test-vasprintf-posix.c: Likewise.
6303
6304 2007-04-06  Bruno Haible  <bruno@clisp.org>
6305
6306         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
6307         * lib/math_.h [__DECC]: Include the overridden include file through
6308         #include_next, outside the double-inclusion guard.
6309         * lib/stdio_.h [__DECC]: Likewise.
6310         * lib/stdlib_.h [__DECC]: Likewise.
6311         * lib/string_.h [__DECC]: Likewise.
6312         * lib/time_.h [__DECC]: Likewise.
6313         * lib/wchar_.h [__DECC]: Likewise.
6314         * lib/wctype_.h [__DECC]: Likewise.
6315         * lib/inttypes_.h [__DECC]: Likewise.
6316         Reported by Albert Chin <china@thewrittenword.com> in
6317         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
6318
6319 2007-04-04  Eric Blake  <ebb9@byu.net>
6320
6321         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
6322         1.5.x.
6323
6324 2007-04-04  Bruno Haible  <bruno@clisp.org>
6325
6326         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
6327         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
6328
6329 2007-04-04  Bruno Haible  <bruno@clisp.org>
6330
6331         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
6332         results for "%010a" of Infinity and NaN.
6333         * tests/test-vasprintf-posix.c (test_function): Likewise.
6334         * tests/test-snprintf-posix.h (test_function): Likewise.
6335         * tests/test-sprintf-posix.h (test_function): Likewise.
6336         * tests/test-fprintf-posix.h (test_function): Remove these tests.
6337         * tests/test-printf-posix.h (test_function): Likewise.
6338         * tests/test-fprintf-posix.out: Update.
6339         Needed for FreeBSD 6.1.
6340
6341 2007-04-04  Bruno Haible  <bruno@clisp.org>
6342
6343         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
6344         directly used by the gnulib modules nor by gnulib-tool.
6345
6346 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
6347
6348         * DEPENDENCIES: Give overall description of version dependency
6349         desirability.  Use more-typical names for apps.
6350         Add shell, coreutils, diffutils, grep, tar, gzip.
6351
6352 2007-04-04  Simon Josefsson  <simon@josefsson.org>
6353
6354         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
6355
6356 2007-04-04  Karl Berry  <karl@gnu.org>
6357
6358         * MODULES.html.sh (func_module): missing '.
6359
6360 2007-04-03  Bruno Haible  <bruno@clisp.org>
6361
6362         * modules/argmatch-tests (Makefile.am): New variable
6363         test_argmatch_LDADD.
6364         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
6365         * modules/array-list-tests (Makefile.am): New variable
6366         test_array_list_LDADD.
6367         * modules/array-oset-tests (Makefile.am): New variable
6368         test_array_oset_LDADD.
6369         * modules/avltree-list-tests (Makefile.am): New variable
6370         test_avltree_list_LDADD.
6371         * modules/avltree-oset-tests (Makefile.am): New variable
6372         test_avltree_oset_LDADD.
6373         * modules/avltreehash-list-tests (Makefile.am): New variable
6374         test_avltreehash_list_LDADD.
6375         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
6376         test_canonicalize_lgpl_LDADD.
6377         * modules/carray-list-tests (Makefile.am): New variable
6378         test_carray_list_LDADD.
6379         * modules/dirname-tests (Makefile.am): New variable
6380         test_dirname_LDADD.
6381         * modules/linked-list-tests (Makefile.am): New variable
6382         test_linked_list_LDADD.
6383         * modules/linkedhash-list-tests (Makefile.am): New variable
6384         test_linkedhash_list_LDADD.
6385         * modules/rbtree-list-tests (Makefile.am): New variable
6386         test_rbtree_list_LDADD.
6387         * modules/rbtree-oset-tests (Makefile.am): New variable
6388         test_rbtree_oset_LDADD.
6389         * modules/rbtreehash-list-tests (Makefile.am): New variable
6390         test_rbtreehash_list_LDADD.
6391         * modules/xvasprintf-tests (Makefile.am): New variable
6392         test_xvasprintf_LDADD.
6393         Reported by Eric Blake.
6394
6395 2007-04-03  Eric Blake  <ebb9@byu.net>
6396
6397         * DEPENDENCIES: Weaken m4 requirements.
6398
6399 2007-04-03  Bruno Haible  <bruno@clisp.org>
6400
6401         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
6402         * modules/isnanl-tests (configure.ac): Likewise.
6403
6404 2007-04-03  Ben Pfaff  <blp@gnu.org>
6405
6406         * modules/iconv_open: Add $(srcdir)/ to source directory
6407         references in Makefile fragments that call gperf, to fix VPATH
6408         builds.
6409
6410 2007-04-03  Bruno Haible  <bruno@clisp.org>
6411
6412         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
6413         * lib/ldexpl.c: Undo last change.
6414
6415 2007-04-03  Bruno Haible  <bruno@clisp.org>
6416
6417         * modules/printf-frexpl (Depends-on): Undo last change.
6418         (Files): Add m4/ldexpl.m4.
6419
6420 2007-04-03  Bruno Haible  <bruno@clisp.org>
6421
6422         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
6423         * modules/isnanl (Link): New section.
6424
6425         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
6426         * modules/frexp (Link): New section.
6427
6428         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
6429         * modules/frexpl (Link): New section.
6430
6431         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
6432         * modules/ldexpl (Link): New section.
6433
6434 2007-04-03  Bruno Haible  <bruno@clisp.org>
6435
6436         * modules/TEMPLATE-EXTENDED: New file.
6437         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
6438
6439 2007-04-03  Bruno Haible  <bruno@clisp.org>
6440
6441         * DEPENDENCIES: New file.
6442         Suggested by Simon Josefsson.
6443
6444 2007-04-03  Bruno Haible  <bruno@clisp.org>
6445
6446         * doc/gnulib.texi: Escape @.
6447
6448 2007-04-03  James Youngman  <jay@gnu.org>
6449         and Paul Eggert  <eggert@cs.ucla.edu>
6450
6451         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
6452         birthtime on all systems that have birthtime, not just those which
6453         use st_birthtimensec rather than st_birthtim.  Putting zero in
6454         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
6455         that the birth time is not available for files on an NFS mount.
6456
6457 2007-04-03  Simon Josefsson  <simon@josefsson.org>
6458
6459         * modules/memxor: Move back from crypto/, suggested by Bruno.
6460         * modules/crypto/hmac-sha1: Fix memxor dependency.
6461
6462         * modules/crypto/gc: Moved from ../.
6463
6464 2007-04-02  Eric Blake  <ebb9@byu.net>
6465
6466         * lib/ldexpl.c (includes): Avoid libm.
6467
6468         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
6469
6470 2007-04-02  Bruno Haible  <bruno@clisp.org>
6471
6472         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
6473         on IRIX.
6474
6475 2007-04-02  Bruno Haible  <bruno@clisp.org>
6476
6477         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
6478         x86 or x86_64 platforms running MacOS X.
6479         Reported by Ryan Schmidt <@ryandesign.com>.
6480
6481 2007-04-02  Bruno Haible  <bruno@clisp.org>
6482
6483         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
6484         i386.
6485
6486 2007-04-01  Simon Josefsson  <simon@josefsson.org>
6487
6488         * modules/crypto/arcfour: Moved from ../.
6489         * modules/crypto/arcfour-tests: Moved from ../.
6490         * modules/crypto/arctwo: Moved from ../.
6491         * modules/crypto/arctwo-tests: Moved from ../.
6492         * modules/crypto/des: Moved from ../.
6493         * modules/crypto/des-tests: Moved from ../.
6494         * modules/crypto/gc-arcfour: Moved from ../.
6495         * modules/crypto/gc-arcfour-tests: Moved from ../.
6496         * modules/crypto/gc-arctwo: Moved from ../.
6497         * modules/crypto/gc-arctwo-tests: Moved from ../.
6498         * modules/crypto/gc-des: Moved from ../.
6499         * modules/crypto/gc-des-tests: Moved from ../.
6500         * modules/crypto/gc-hmac-md5: Moved from ../.
6501         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
6502         * modules/crypto/gc-hmac-sha1: Moved from ../.
6503         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
6504         * modules/crypto/gc-md2: Moved from ../.
6505         * modules/crypto/gc-md2-tests: Moved from ../.
6506         * modules/crypto/gc-md4: Moved from ../.
6507         * modules/crypto/gc-md4-tests: Moved from ../.
6508         * modules/crypto/gc-md5: Moved from ../.
6509         * modules/crypto/gc-md5-tests: Moved from ../.
6510         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
6511         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
6512         * modules/crypto/gc-random: Moved from ../.
6513         * modules/crypto/gc-rijndael: Moved from ../.
6514         * modules/crypto/gc-rijndael-tests: Moved from ../.
6515         * modules/crypto/gc-sha1: Moved from ../.
6516         * modules/crypto/gc-sha1-tests: Moved from ../.
6517         * modules/crypto/gc-tests: Moved from ../.
6518         * modules/crypto/hmac-md5: Moved from ../.
6519         * modules/crypto/hmac-md5-tests: Moved from ../.
6520         * modules/crypto/hmac-sha1: Moved from ../.
6521         * modules/crypto/hmac-sha1-tests: Moved from ../.
6522         * modules/crypto/md2: Moved from ../.
6523         * modules/crypto/md2-tests: Moved from ../.
6524         * modules/crypto/md4: Moved from ../.
6525         * modules/crypto/md4-tests: Moved from ../.
6526         * modules/crypto/md5: Moved from ../.
6527         * modules/crypto/md5-tests: Moved from ../.
6528         * modules/crypto/memxor: Moved from ../.
6529         * modules/crypto/rijndael: Moved from ../.
6530         * modules/crypto/rijndael-tests: Moved from ../.
6531         * modules/crypto/sha1: Moved from ../.
6532
6533 2007-03-30  James Youngman  <jay@gnu.org>
6534
6535         * tests/test-stat-time.c (prepare_test): use chmod() rather than
6536         rename() to change the ctime of a file (because ctime is unaffected
6537         by rename on jfs2 on AIX 5.1).
6538         (main): Start by doing cleanup, in case a previous run failed leaving
6539         test files behind.
6540
6541 2007-03-31  Bruno Haible  <bruno@clisp.org>
6542
6543         Support old proprietary implementations of iconv.
6544         * modules/iconv_open: New file.
6545         * lib/iconv_.h: New file.
6546         * m4/iconv_h.m4: New file.
6547         * lib/iconv_open.c: New file.
6548         * lib/iconv_open-aix.gperf: New file.
6549         * lib/iconv_open-hpux.gperf: New file.
6550         * lib/iconv_open-irix.gperf: New file.
6551         * lib/iconv_open-osf.gperf: New file.
6552         * m4/iconv_open.m4: New file.
6553         * modules/linebreak (Depends-on): Add iconv_open.
6554         * modules/striconv (Depends-on): Likewise.
6555         * modules/striconveh (Depends-on): Likewise.
6556         * modules/unicodeio (Depends-on): Likewise.
6557         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
6558         (iconv_t)(-1).
6559         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
6560         conversion if cd is (iconv_t)(-1).
6561         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
6562         is not possible.
6563
6564 2007-03-31  Bruno Haible  <bruno@clisp.org>
6565
6566         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
6567         work on Solaris either. Protect also second use of "autodetect_jp".
6568
6569 2007-03-31  Bruno Haible  <bruno@clisp.org>
6570
6571         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
6572         the function is not present.
6573
6574 2007-03-31  Bruno Haible  <bruno@clisp.org>
6575
6576         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
6577         the function is not present.
6578
6579 2007-03-31  Bruno Haible  <bruno@clisp.org>
6580
6581         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
6582         a bug in HP-UX iconv_open().
6583
6584 2007-03-31  Bruno Haible  <bruno@clisp.org>
6585
6586         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
6587         (Mathematics <math.h>): New section, add fpieee.
6588         (Input/output <stdio.h>): Add fseterr.
6589         (Mathematics <math.h>): New section, add printf-frexp.
6590         (Container data structures): Add sublist.
6591         (Core language properties): Add fpucw, inline.
6592         (Functions for greatest-width integer types <inttypes.h>): Add
6593         imaxabs, imaxdiv, inttypes.
6594         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
6595         isnanl-nolibm, ldexp.
6596         (Mathematics <math.h>): New section, add printf-frexpl.
6597         (Support for systems lacking POSIX:2001): Add fprintf-posix,
6598         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
6599         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
6600         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
6601         (Unicode string functions): Add unistr/u*-mbtoucr.
6602         (Java): Add javacomp-script, javaexec-script.
6603         (C#): Add csharpcomp-script, csharpexec-script.
6604         (Support for building libraries and executables): Add havelib,
6605         relocatable-*.
6606         (Support for maintaining and releasing projects): Renamed from
6607         'Support for maintaining and release projects'. Add announce-gen.
6608
6609 2007-03-31  Bruno Haible  <bruno@clisp.org>
6610
6611         * README: Talk primarily about git.
6612         (git and CVS): Renamed from CVS.
6613         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
6614         gnulib is available through git.
6615         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
6616
6617 2007-03-30  Bruno Haible  <bruno@clisp.org>
6618
6619         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
6620         * lib/poll_.h: Likewise.
6621         * lib/stat_.h: Likewise.
6622         * lib/sys_time_.h: Likewise.
6623         * lib/sysexit_.h: Likewise.
6624         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
6625         * lib/stdbool_.h: Likewise.
6626         * lib/byteswap_.h: Add double-inclusion guard.
6627
6628 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
6629
6630         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
6631
6632 2007-03-30  Karl Berry  <karl@gnu.org>
6633
6634         * config/srclist-update: double space after USA in the license
6635         substitution, since that's how it's usually (?) written.
6636
6637 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
6638
6639         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
6640         reported by Bruno Haible.
6641
6642 2007-03-29  Bruno Haible  <bruno@clisp.org>
6643
6644         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
6645         a bug in AIX iconv().
6646
6647 2007-03-29  Bruno Haible  <bruno@clisp.org>
6648
6649         * modules/ldexpl-tests: New file.
6650         * tests/test-ldexpl.c: New file.
6651
6652 2007-03-29  Bruno Haible  <bruno@clisp.org>
6653
6654         * lib/ldexpl.c: Include fpucw.h.
6655         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
6656         multiplication.
6657         * modules/ldexpl (Depends-on): Add fpucw.
6658
6659 2007-03-29  Bruno Haible  <bruno@clisp.org>
6660
6661         * modules/ldexpl: New file.
6662         * m4/ldexpl.m4: New file.
6663         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
6664         set.
6665         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
6666         REPLACE_LDEXPL.
6667         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
6668         REPLACE_LDEXPL.
6669         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
6670         gl_FUNC_LDEXPL_WORKS.
6671         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
6672         * modules/mathl (Files): Remove lib/ldexpl.c.
6673         (Depends-on): Add ldexpl.
6674
6675 2007-03-29  Bruno Haible  <bruno@clisp.org>
6676
6677         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
6678
6679 2007-03-29  Bruno Haible  <bruno@clisp.org>
6680
6681         * tests/test-striconveh.c (main): Don't assume that a direct conversion
6682         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
6683         and possibly also HP-UX.
6684         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
6685         work on AIX, IRIX, HP-UX, OSF/1.
6686         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
6687         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
6688         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
6689         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
6690         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
6691         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
6692
6693 2007-03-29  Bruno Haible  <bruno@clisp.org>
6694
6695         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
6696
6697 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
6698
6699         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
6700         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
6701
6702 2007-03-29  Eric Blake  <ebb9@byu.net>
6703
6704         * lib/acl-internal.h: Remove redundant include.
6705         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
6706         Cygwin when a file is locked.
6707
6708 2007-03-29  Bruno Haible  <bruno@clisp.org>
6709
6710         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
6711         file.
6712         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
6713
6714 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
6715
6716         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
6717         try to remove a parent directory if the child couldn't be removed
6718         (except for the first rmdir, which could fail because the child
6719         doesn't exist).  Problem reported by Jeff Blaine in
6720         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
6721
6722 2007-03-28  Bruno Haible  <bruno@clisp.org>
6723
6724         * lib/striconveh.c (utf8conv_carefully): New function.
6725         (mem_cd_iconveh_internal): Invoke it.
6726
6727 2007-03-28  Bruno Haible  <bruno@clisp.org>
6728
6729         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
6730         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
6731         input.
6732         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
6733         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
6734         unistr/u8-uctomb.
6735
6736 2007-03-28  Bruno Haible  <bruno@clisp.org>
6737
6738         * modules/unistr/u8-mbtoucr: New file.
6739         * lib/unistr/u8-mbtoucr.c: New file.
6740         * modules/unistr/u16-mbtoucr: New file.
6741         * lib/unistr/u16-mbtoucr.c: New file.
6742         * modules/unistr/u16-mbtoucr: New file.
6743         * lib/unistr/u16-mbtoucr.c: New file.
6744         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
6745
6746 2007-03-27  Simon Josefsson  <simon@josefsson.org>
6747             Bruno Haible  <bruno@clisp.org>
6748
6749         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
6750         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
6751         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
6752
6753         * m4/stdio_h.m4: Add stubs for vasprintf too.
6754
6755         * modules/stdio: Support vasprintf in sed command.
6756
6757         * modules/vasprintf: Depend on stdio for prototypes.  Remove
6758         vasprintf.h.  Add stdio module indicator.
6759
6760         * lib/stdio_.h: Declare asprintf and vasprintf, based on
6761         vasprintf.h.
6762
6763         * lib/vasprintf.h: File removed.
6764
6765         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
6766         * lib/vasprintf.c: Ditto.
6767         * lib/xvasprintf.c: Ditto.
6768         * tests/test-vasprintf-posix.c: Ditto.
6769         * tests/test-vasprintf.c: Ditto.
6770
6771 2007-03-27  Bruno Haible  <bruno@clisp.org>
6772
6773         Make vasnprintf multithread-safe.
6774         * lib/vasnprintf.c (decimal_point_char): New function.
6775         (VASNPRINTF): Use it.
6776         Suggested by Simon Josefsson.
6777
6778 2007-03-27  Eric Blake  <ebb9@byu.net>
6779
6780         Support sub-second birthtime on cygwin.
6781         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
6782         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
6783         (get_stat_birthtime): Also work with st_birthtim.
6784
6785 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
6786
6787         * lib/stat-time.h (USE_BIRTHTIME): Remove.
6788         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
6789         (get_stat_birthtime_ns): Do not try to use "spare" fields.
6790         (get_stat_birthtime_ns): Simplify compile-time tests.
6791         (get_stat_birthtime): Change the API to look like
6792         get_stat_mtime etc., except return a negative tv_nsec on error.
6793         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
6794         Don't check for "spare" fields.
6795         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
6796         or for struct stat.st_birthtime, as these tests aren't used.
6797         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
6798
6799 2007-03-27  Bruno Haible  <bruno@clisp.org>
6800
6801         * lib/stat-time.h: Include <sys/stat.h>.
6802
6803 2007-03-27  James Youngman  <jay@gnu.org>
6804
6805         * lib/stat-time.h (get_stat_birthtime): New function for
6806           retrieving st_birthtime as provided by UFS2 (hence *BSD).
6807         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
6808           and its variants.
6809         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
6810         * modules/stat-time-test: New file.
6811         * tests/test-stat-time.c: New test, devised by Bruno Haible.
6812
6813 2007-03-26  Bruno Haible  <bruno@clisp.org>
6814
6815         Better support of signalling NaNs.
6816         * lib/atanl.c: Include isnanl.h.
6817         (atanl): Perform test for NaN at the beginning of the function and
6818         through a call to isnanl.
6819         * lib/cosl.c: Include isnanl.h.
6820         (cosl): Perform test for NaN at the beginning of the function and
6821         through a call to isnanl.
6822         * lib/ldexpl.c: Include isnanl.h.
6823         (ldexpl): Perform test for NaN through a call to isnanl.
6824         * lib/logl.c: Include isnanl.h.
6825         (logl): Perform test for NaN at the beginning of the function and
6826         through a call to isnanl.
6827         * lib/sinl.c: Include isnanl.h.
6828         (sinl): Perform test for NaN at the beginning of the function and
6829         through a call to isnanl.
6830         * lib/sqrtl.c: Include isnanl.h.
6831         (sqrtl): Perform test for NaN at the beginning of the function and
6832         through a call to isnanl.
6833         * lib/tanl.c: Include isnanl.h.
6834         (tanl): Perform test for NaN at the beginning of the function and
6835         through a call to isnanl.
6836         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
6837         * modules/mathl (Depends-on): Add isnanl.
6838
6839 2007-03-26  Eric Blake  <ebb9@byu.net>
6840
6841         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
6842         regression in logic sense of previous patch.
6843
6844 2007-03-26  Bruno Haible  <bruno@clisp.org>
6845
6846         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
6847         unportable shell command "if ! ...".
6848         Reported by Ralf Wildenhues.
6849
6850 2007-03-25  Bruno Haible  <bruno@clisp.org>
6851
6852         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
6853         <sysexits.h> file, and only add EX_CONFIG.
6854         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
6855         absolute file name and whether it is sufficient. Substitute also
6856         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
6857         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
6858         ABSOLUTE_SYSEXITS_H into sysexits.h.
6859
6860 2007-03-25  Bruno Haible  <bruno@clisp.org>
6861
6862         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
6863         hints is NULL.
6864
6865 2007-03-25  Bruno Haible  <bruno@clisp.org>
6866
6867         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
6868         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
6869
6870 2007-03-25  Bruno Haible  <bruno@clisp.org>
6871
6872         * lib/vasnprintf.c: Include langinfo.h.
6873         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
6874         multithread-safe.
6875         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
6876         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
6877         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
6878         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
6879         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
6880         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
6881         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
6882         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
6883         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
6884         Reported by Simon Josefsson.
6885
6886 2007-03-25  Bruno Haible  <bruno@clisp.org>
6887
6888         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
6889         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
6890         * modules/vasnprintf (Depends-on): Add stdint.
6891
6892 2007-03-25  Bruno Haible  <bruno@clisp.org>
6893
6894         * modules/fpieee: New file.
6895         * m4/fpieee.m4: New file.
6896         * modules/isnan-nolibm (Depends-on): Add fpieee.
6897         * modules/isnanl-nolibm (Depends-on): Add fpieee.
6898         * modules/isnanl (Depends-on): Add fpieee.
6899
6900 2007-03-25  Bruno Haible  <bruno@clisp.org>
6901
6902         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
6903
6904 2007-03-25  Bruno Haible  <bruno@clisp.org>
6905
6906         Avoid test failures on IRIX 6.5.
6907         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
6908         (main): Use it.
6909         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
6910         macros.
6911         (main): Use them.
6912
6913 2007-03-25  Bruno Haible  <bruno@clisp.org>
6914
6915         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
6916         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
6917         exists but doesn't work.
6918         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
6919         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
6920         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
6921         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
6922
6923 2007-03-25  Bruno Haible  <bruno@clisp.org>
6924
6925         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
6926         returns inf. Needed on IRIX 6.5.
6927
6928 2007-03-25  Bruno Haible  <bruno@clisp.org>
6929
6930         * tests/test-frexpl.c: Include isnanl-nolibm.h.
6931         (main): Use isnanl instead of x != x idiom.
6932         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
6933
6934         * tests/test-frexp.c: Include isnan.h.
6935         (main): Use isnan instead of x != x idiom.
6936         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
6937
6938 2007-03-25  Bruno Haible  <bruno@clisp.org>
6939
6940         * tests/test-frexp.c (NaN): New function/macro.
6941         (main): Use it instead of 0.0 / 0.0.
6942         * tests/test-isnan.c (NaN): New function/macro.
6943         (main): Use it instead of 0.0 / 0.0.
6944         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
6945         (test_function): Use it instead of 0.0 / 0.0.
6946         * tests/test-vasprintf-posix.c (NaN): New function/macro.
6947         (test_function): Use it instead of 0.0 / 0.0.
6948         * tests/test-snprintf-posix.h (NaN): New function/macro.
6949         (test_function): Use it instead of 0.0 / 0.0.
6950         * tests/test-sprintf-posix.h (NaN): New function/macro.
6951         (test_function): Use it instead of 0.0 / 0.0.
6952         * tests/test-fprintf-posix.h (NaN): New function/macro.
6953         (test_function): Use it instead of 0.0 / 0.0.
6954         * tests/test-printf-posix.h (NaN): New function/macro.
6955         (test_function): Use it instead of 0.0 / 0.0.
6956
6957         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
6958
6959 2007-03-25  Bruno Haible  <bruno@clisp.org>
6960
6961         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
6962
6963 2007-03-25  Bruno Haible  <bruno@clisp.org>
6964
6965         * lib/regexec.c (merge_state_with_log): Make static.
6966
6967 2007-03-25  Bruno Haible  <bruno@clisp.org>
6968
6969         * lib/trigl.c (kernel_rem_pio2): Make static.
6970
6971 2007-03-25  Bruno Haible  <bruno@clisp.org>
6972
6973         * lib/sincosl.c (sincosl_table): Make static.
6974
6975 2007-03-25  Bruno Haible  <bruno@clisp.org>
6976
6977         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
6978         if the compiler does not support C99.
6979
6980 2007-03-25  Bruno Haible  <bruno@clisp.org>
6981
6982         * modules/time (Makefile.am): Ensure all rule action lines start with a
6983         tab.
6984
6985 2007-03-24  Bruno Haible  <bruno@clisp.org>
6986
6987         * modules/tsearch-tests: New file.
6988         * tests/test-tsearch.sh: New file.
6989         * tests/test-tsearch.c: New file, mostly copied from glibc.
6990
6991         * modules/search-tests: New file.
6992         * tests/test-search.c: New file.
6993
6994         * modules/search: New file.
6995         * lib/search_.h: New file, incorporating lib/tsearch.h.
6996         * m4/search_h.m4: New file.
6997         * lib/tsearch.h: Remove file.
6998         * lib/tsearch.c: Include search.h instead of tsearch.h.
6999         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
7000         HAVE_TSEARCH.
7001         * modules/tsearch (Files): Remove lib/tsearch.h.
7002         (Depends-on): Add search.
7003         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
7004         (Include): Change tsearch.h into search.h.
7005
7006 2007-03-24  Bruno Haible  <bruno@clisp.org>
7007
7008         * modules/fpucw: New file.
7009         * lib/fpucw.h: New file.
7010         * lib/frexp.c: Include fpucw.h.
7011         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
7012         (FUNC): Use them.
7013         * lib/printf-frexp.c: Include fpucw.h.
7014         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
7015         (FUNC): Use them.
7016         * lib/vasnprintf.c: Include fpucw.h.
7017         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
7018         'long double' calculations.
7019         * tests/test-frexpl.c: Include fpucw.h.
7020         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
7021         * tests/test-printf-frexpl.c: Include fpucw.h.
7022         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
7023         * modules/frexpl (Depends-on): Add fpucw.
7024         * modules/printf-frexpl (Depends-on): Likewise.
7025         * modules/fprintf-posix (Depends-on): Likewise.
7026         * modules/snprintf-posix (Depends-on): Likewise.
7027         * modules/sprintf-posix (Depends-on): Likewise.
7028         * modules/vasnprintf-posix (Depends-on): Likewise.
7029         * modules/vasprintf-posix (Depends-on): Likewise.
7030         * modules/vfprintf-posix (Depends-on): Likewise.
7031         * modules/vsnprintf-posix (Depends-on): Likewise.
7032         * modules/vsprintf-posix (Depends-on): Likewise.
7033         * modules/frexpl-tests (Depends-on): Likewise.
7034         * modules/printf-frexpl-tests (Depends-on): Likewise.
7035
7036 2007-03-24  Bruno Haible  <bruno@clisp.org>
7037
7038         * lib/float+.h: New file.
7039         * lib/isnan.c: Include float+.h.
7040         (SIZE): New macro.
7041         (FUNC): Compare only SIZE bytes of the value.
7042         * lib/vasnprintf.c: Include float+.h.
7043         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
7044         SIZEOF_LDBL or SIZEOF_DBL bytes.
7045         * modules/isnan-nolibm (Files): Add lib/float+.h.
7046         * modules/isnanl-nolibm (Files): Add lib/float+.h.
7047         * modules/isnanl (Files): Add lib/float+.h.
7048         * modules/vasnprintf (Files): Add lib/float+.h.
7049
7050 2007-03-24  Bruno Haible  <bruno@clisp.org>
7051
7052         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
7053         include isnanl-nolibm.h.
7054
7055 2007-03-24  Bruno Haible  <bruno@clisp.org>
7056
7057         * tests/test-read-file.c (main): Don't produce spurious output for
7058         expected situations. Make the test fail if it encountered unexpected
7059         results.
7060
7061 2007-03-24  Bruno Haible  <bruno@clisp.org>
7062
7063         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
7064         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
7065
7066 2007-03-24  Bruno Haible  <bruno@clisp.org>
7067
7068         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
7069
7070 2007-03-24  Bruno Haible  <bruno@clisp.org>
7071
7072         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
7073         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
7074
7075         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
7076         * modules/utf8-ucs4: Turn into a symbolic link to module
7077         unistr/u8-mbtouc.
7078
7079         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
7080         utf8-ucs4-unsafe.
7081         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
7082         unistr/u8-mbtouc-unsafe.
7083
7084         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
7085         * modules/utf16-ucs4: Turn into a symbolic link to module
7086         unistr/u16-mbtouc.
7087
7088         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
7089         utf16-ucs4-unsafe.
7090         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
7091         unistr/u16-mbtouc-unsafe.
7092
7093         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
7094         * modules/ucs4-utf8: Turn into a symbolic link to module
7095         unistr/u8-ubtomb.
7096
7097         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
7098         * modules/ucs4-utf16: Turn into a symbolic link to module
7099         unistr/u16-ubtomb.
7100
7101 2007-03-24  Bruno Haible  <bruno@clisp.org>
7102
7103         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
7104         Enable the function only if HAVE_INLINE.
7105         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
7106         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
7107         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
7108         Enable the function only if HAVE_INLINE.
7109         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
7110         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
7111         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
7112         Enable the function only if HAVE_INLINE.
7113         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
7114         Enable the function only if HAVE_INLINE.
7115         * modules/utf8-ucs4: Update.
7116         * modules/utf8-ucs4-unsafe: Update.
7117         * modules/utf16-ucs4: Update.
7118         * modules/utf16-ucs4-unsafe: Update.
7119         * modules/ucs4-utf8: Update.
7120         * modules/ucs4-utf16: Update.
7121
7122 2007-03-24  Bruno Haible  <bruno@clisp.org>
7123
7124         * lib/utf8-ucs4.h: Remove file.
7125         * lib/utf8-ucs4-unsafe.h: Remove file.
7126         * lib/utf16-ucs4.h: Remove file.
7127         * lib/utf16-ucs4-unsafe.h: Remove file.
7128         * lib/ucs4-utf8.h: Remove file.
7129         * lib/ucs4-utf16.h: Remove file.
7130         * lib/unistr.h: Include their previous contents.
7131         * m4/utf-ucs4.m4: Remove file.
7132         * m4/ucs4-utf.m4: Remove file.
7133         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
7134         (Depends-on): Add unistr/base.
7135         (configure.ac): Remove gl_UTF_UCS4.
7136         (Makefile.am): Update.
7137         (Include): Change to unistr.h.
7138         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
7139         (Depends-on): Add unistr/base.
7140         (configure.ac): Remove gl_UTF_UCS4.
7141         (Makefile.am): Update.
7142         (Include): Change to unistr.h.
7143         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
7144         (Depends-on): Add unistr/base.
7145         (configure.ac): Remove gl_UTF_UCS4.
7146         (Makefile.am): Update.
7147         (Include): Change to unistr.h.
7148         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
7149         (Depends-on): Add unistr/base.
7150         (configure.ac): Remove gl_UTF_UCS4.
7151         (Makefile.am): Update.
7152         (Include): Change to unistr.h.
7153         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
7154         (Depends-on): Add unistr/base.
7155         (configure.ac): Remove gl_UCS4_UTF.
7156         (Makefile.am): Update.
7157         (Include): Change to unistr.h.
7158         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
7159         (Depends-on): Add unistr/base.
7160         (configure.ac): Remove gl_UCS4_UTF.
7161         (Makefile.am): Update.
7162         (Include): Change to unistr.h.
7163         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
7164         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
7165         utf8-ucs4-unsafe.h.
7166         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
7167         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
7168         utf16-ucs4-unsafe.h.
7169         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
7170         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
7171         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
7172         * lib/unistr/u8-strchr.c: Likewise.
7173         * lib/unistr/u8-strrchr.c: Likewise.
7174         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
7175         * lib/unistr/u16-strchr.c: Likewise.
7176         * lib/unistr/u16-strrchr.c: Likewise.
7177         * lib/striconveh.c: Update.
7178         * lib/linebreak.c: Update.
7179
7180 2007-03-24  Bruno Haible  <bruno@clisp.org>
7181
7182         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
7183         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
7184
7185 2007-03-22  Bruno Haible  <bruno@clisp.org>
7186
7187         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
7188
7189 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
7190
7191         * MODULES.html.sh (File system functions): New module write-any-file.
7192         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
7193         * m4/write-any-file.m4: New files.
7194
7195 2007-03-23  Eric Blake  <ebb9@byu.net>
7196
7197         * gnulib-tool: Rearrange space-tab sequences, since some editors
7198         like to eat them.
7199
7200 2007-03-23  Eric Blake  <ebb9@byu.net>
7201
7202         * lib/version-etc.c (version_etc_va): Update license wording to
7203         be more concise.  Recommended by Richard Stallman.
7204
7205 2007-03-22  Bruno Haible  <bruno@clisp.org>
7206
7207         * lib/poll.c (MSG_PEEK): New fallback definition.
7208
7209 2007-03-22  Bruno Haible  <bruno@clisp.org>
7210
7211         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
7212         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
7213         (main): Update.
7214         Fixes a compilation error on BeOS.
7215
7216 2007-03-22  Bruno Haible  <bruno@clisp.org>
7217
7218         * modules/frexpl-tests: New file.
7219         * tests/test-frexpl.c: New file.
7220
7221         * modules/frexpl: New file.
7222         * m4/frexpl.m4: New file.
7223         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
7224         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
7225         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
7226         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
7227         (Depends-on): Add frexpl. Remove isnanl-nolibm.
7228         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
7229
7230 2007-03-22  Bruno Haible  <bruno@clisp.org>
7231
7232         * lib/frexpl.c: Share code with lib/frexp.c.
7233         * modules/mathl (Files): Add lib/frexp.c.
7234         (Depends-on): Add isnanl-nolibm.
7235
7236 2007-03-22  Bruno Haible  <bruno@clisp.org>
7237
7238         * modules/printf-frexp (Files): Add m4/frexp.m4.
7239         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
7240         only if the found frexp function actually works.
7241
7242 2007-03-22  Bruno Haible  <bruno@clisp.org>
7243
7244         * lib/frexp.c: Remove older implementation that uses divisions.
7245
7246 2007-03-21  Bruno Haible  <bruno@clisp.org>
7247
7248         * modules/frexp-tests: New file.
7249         * tests/test-frexp.c: New file.
7250
7251         * modules/frexp: New file.
7252         * lib/frexp.c: New file.
7253         * m4/frexp.m4: New file.
7254         * lib/math_.h (frexp): New declaration.
7255         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
7256         REPLACE_FREXP.
7257         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
7258
7259 2007-03-21  Bruno Haible  <bruno@clisp.org>
7260
7261         * modules/isnanl-tests: New file.
7262         * tests/test-isnanl.c: New file.
7263
7264         * modules/isnanl: New file.
7265         * lib/isnanl.h: New file.
7266         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
7267         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
7268         gl_FUNC_ISNANL_WORKS.
7269         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
7270         New macros.
7271
7272 2007-03-21  Bruno Haible  <bruno@clisp.org>
7273
7274         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
7275         lib/isnanl.h.
7276         (Include): Update.
7277         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
7278         * lib/vasnprintf.c: Update.
7279         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
7280         tests/test-isnanl.h, remove tests/test-isnanl.c.
7281         (Makefile.am): Update.
7282         * tests/test-isnanl-nolibm.c: New file.
7283         * tests/test-isnanl.h: New file.
7284         * tests/test-isnanl.c: Remove file.
7285
7286 2007-03-21  Jim Meyering  <jim@meyering.net>
7287
7288         When trying to open ".", treat ESTALE like EACCES.
7289         * lib/savewd.c (savewd_save): Resort to forking not just upon
7290         failure with EACCES, but also when errno is ESTALE.
7291
7292 2007-03-20  Bruno Haible  <bruno@clisp.org>
7293
7294         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
7295         Needed on AIX 5.1. Reported by Matthew Woehlke.
7296
7297 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
7298
7299         Suggestions by Bruno Haible:
7300         * lib/acl-internal.h: Include "gettext.h" rather than rolling
7301         our own.
7302         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
7303         * modules/acl (Depends-on): Add gettext.
7304
7305 2007-03-19  Bruno Haible  <bruno@clisp.org>
7306
7307         * modules/iconvme: Remove file.
7308         * lib/iconvme.h: Remove file.
7309         * lib/iconvme.c: Remove file.
7310         * m4/iconvme.m4: Remove file.
7311
7312 2007-03-19  Bruno Haible  <bruno@clisp.org>
7313
7314         * doc/relocatable-maint.texi: Break long shell script line.
7315         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
7316
7317 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
7318
7319         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
7320         handle file_has_acl.
7321         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
7322         * lib/acl.c: Move header inclusions and related macro defns into
7323         lib/acl-internal.h.
7324         (S_ISLNK): Remove defn, since that's now done for us.
7325         (file_has_acl): Move to lib/file-has-acl.c.
7326         Call acl_trivial if available.  This is the crucial part of the fix.
7327         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
7328         shared within the library.  Rewrite a bit, partly to make it compatible
7329         with the GNU coding style.
7330         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
7331         Remove unnecessary double-quotes.
7332         Don't test for acl_to_text; the build will catch that.
7333         Replace acl_entries if it doesn't exist and it is needed.
7334         Check for -lsec and acl_trivial (as used on Solaris 10).
7335         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
7336         lib/file-has-acl.c.
7337         (Depends-on): Add sys_stat, for S_ISLNK.
7338
7339 2007-03-19  Ben Pfaff  <blp@gnu.org>
7340
7341         * doc/gnulib.texi: Fix typos.
7342         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
7343
7344 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
7345
7346         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
7347         If size is zero here, buf must be zero.
7348
7349 2007-03-19  Simon Josefsson  <simon@josefsson.org>
7350
7351         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
7352         <bruno@clisp.org>.
7353
7354 2007-03-18  Bruno Haible  <bruno@clisp.org>
7355
7356         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
7357         Suggested by Eric Blake.
7358
7359 2007-03-18  Ben Pfaff  <blp@gnu.org>
7360
7361         * doc/relocatable.texi: Recommend using as prefix a directory
7362         that does not exist and will never be created.  Based on
7363         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
7364         and others.
7365
7366 2007-03-17  Bruno Haible  <bruno@clisp.org>
7367
7368         * lib/fchownat.c: Include lchown.h.
7369
7370 2007-03-17  Bruno Haible  <bruno@clisp.org>
7371
7372         Fix endless loop when the given allocated size was > INT_MAX.
7373         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
7374         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
7375         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
7376         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
7377         * lib/sprintf.c (sprintf): Likewise.
7378
7379 2007-03-17  Bruno Haible  <bruno@clisp.org>
7380
7381         * tests/test-argp-2.sh (func_compare): Output a context diff.
7382
7383 2007-03-17  Bruno Haible  <bruno@clisp.org>
7384
7385         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
7386         locale's decimal-point character.
7387
7388 2007-03-17  Bruno Haible  <bruno@clisp.org>
7389
7390         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
7391         before comparing it. Needed because on some platforms (e.g. x86) a
7392         'long double' occupies less bytes than sizeof (long double).
7393
7394 2007-03-17  Bruno Haible  <bruno@clisp.org>
7395
7396         * tests/test-crc.c (main): Make printf statements 64-bit clean.
7397         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
7398         * tests/test-getaddrinfo.c (simple): Likewise.
7399         * tests/test-read-file.c (main): Likewise.
7400
7401 2007-03-17  Bruno Haible  <bruno@clisp.org>
7402
7403         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
7404
7405 2007-03-17  Bruno Haible  <bruno@clisp.org>
7406
7407         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
7408         unused variable.
7409
7410 2007-03-17  Bruno Haible  <bruno@clisp.org>
7411
7412         * tests/test-c-strcasecmp.c: Include c-strcase.h.
7413         * tests/test-c-strncasecmp.c: Likewise.
7414
7415 2007-03-17  Bruno Haible  <bruno@clisp.org>
7416
7417         * modules/stdlib (Depends-on): Add unistd.
7418         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
7419         Needed for MacOS X 10.3.
7420
7421 2007-03-17  Bruno Haible  <bruno@clisp.org>
7422
7423         * lib/unistr/u-strdup.h: Include <stdlib.h>.
7424
7425 2007-03-17  Bruno Haible  <bruno@clisp.org>
7426
7427         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
7428
7429 2007-03-17  Bruno Haible  <bruno@clisp.org>
7430
7431         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
7432         to reflect files copied from gnulib (with or without modifications).
7433         Suggested by Jim Meyering.
7434
7435 2007-03-17  Eric Blake  <ebb9@byu.net>
7436
7437         * NEWS: Document stdlib change from 2007-02-18.
7438
7439 2007-03-17  Jim Meyering  <jim@meyering.net>
7440
7441         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
7442         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
7443         someone uses a name containing shell meta-characters.
7444         Reported by Alfred M. Szmidt.
7445
7446         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
7447
7448 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
7449
7450         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
7451         and copy gettext configuration files only if configure.ac contains
7452         a use of AM_GNU_GETTEXT_VERSION.
7453
7454 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
7455
7456         * build-aux/bootstrap (gnulib_name): New variable.
7457         (gnulib_tool_options): Use it.
7458
7459 2007-03-13  Simon Josefsson  <simon@josefsson.org>
7460
7461         * tests/test-des.c: Use new namespace.
7462
7463 2007-03-15  Bruno Haible  <bruno@clisp.org>
7464
7465         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
7466         Reported by James Youngman <jay@gnu.org>.
7467
7468 2007-03-15  Bruno Haible  <bruno@clisp.org>
7469
7470         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
7471         declared prototype. Needed with cc on OSF/1 5.1.
7472
7473 2007-03-15  Bruno Haible  <bruno@clisp.org>
7474
7475         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
7476         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
7477         (struct gl_list_implementation): Add dispose_fn argument to the
7478         'create_empty', 'create' methods.
7479         (struct gl_list_impl_base): Add field 'dispose_fn'.
7480         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
7481         argument.
7482         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
7483         dispose_fn argument.
7484         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
7485         dispose_fn on the dropped values.
7486         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
7487         dispose_fn argument.
7488         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
7489         dropped values.
7490         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
7491         (gl_tree_remove_node): Call dispose_fn on the dropped value.
7492         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
7493         (gl_tree_remove_node): Call dispose_fn on the dropped value.
7494         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
7495         argument.
7496         (gl_tree_list_free): Call dispose_fn on the dropped values.
7497         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
7498         the dropped values.
7499         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
7500         Add dispose_fn argument.
7501         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
7502         Call dispose_fn on the dropped values.
7503         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
7504         Add dispose_fn argument.
7505         (gl_sublist_create): Initialize the 'dispose_fn' field.
7506         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
7507         * tests/test-array_list.c (main): Update.
7508         * tests/test-carray_list.c (main): Update.
7509         * tests/test-avltree_list.c (main): Update.
7510         * tests/test-rbtree_list.c (main): Update.
7511         * tests/test-avltreehash_list.c (main): Update.
7512         * tests/test-rbtreehash_list.c (main): Update.
7513         * tests/test-linked_list.c (main): Update.
7514         * tests/test-linkedhash_list.c (main): Update.
7515         * tests/test-array_oset.c (main): Update.
7516
7517 2007-03-15  Bruno Haible  <bruno@clisp.org>
7518
7519         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
7520         (gl_oset_create_empty): Add dispose_fn argument.
7521         (struct gl_oset_implementation): Add dispose_fn argument to
7522         'create_empty' method.
7523         (struct gl_oset_impl_base): Add dispose_fn field.
7524         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
7525         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
7526         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
7527         values.
7528         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
7529         (gl_tree_oset_free): Call dispose_fn on the dropped values.
7530         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
7531         dropped value.
7532         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
7533         dropped value.
7534         * tests/test-array_oset.c (main): Update.
7535         * tests/test-avltree_oset.c (main): Update.
7536         * tests/test-rbtree_oset.c (main): Update.
7537         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
7538
7539 2007-03-13  Bruno Haible  <bruno@clisp.org>
7540
7541         * tests/test-stdbool.c (i): Update after last patch.
7542
7543 2007-03-12  Bruno Haible  <bruno@clisp.org>
7544
7545         * lib/quotearg.c: Include <wctype.h> early, before the definition of
7546         the iswprint macro. Needed on Solaris 2.5.1.
7547
7548 2007-03-12  Bruno Haible  <bruno@clisp.org>
7549
7550         * tests/test-printf-frexp.c (main): Declare x as volatile.
7551
7552 2007-03-12  Simon Josefsson  <simon@josefsson.org>
7553
7554         * doc/gnulib.texi (Build robot for gnulib): New section.
7555
7556 2007-03-12  Jim Meyering  <jim@meyering.net>
7557
7558         * build-aux/bootstrap: New file.
7559         * build-aux/bootstrap.conf: New file, from coreutils.
7560
7561 2007-03-11  Bruno Haible  <bruno@clisp.org>
7562
7563         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
7564
7565 2007-03-12  Simon Josefsson  <simon@josefsson.org>
7566
7567         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
7568         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
7569         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
7570
7571 2007-03-11  Bruno Haible  <bruno@clisp.org>
7572
7573         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
7574         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
7575
7576 2007-03-11  Bruno Haible  <bruno@clisp.org>
7577
7578         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
7579         formula. Needed for SunPRO C 5.0.
7580
7581 2007-03-11  Bruno Haible  <bruno@clisp.org>
7582
7583         * modules/long-options (Depends-on): Add getopt.
7584
7585 2007-03-11  Bruno Haible  <bruno@clisp.org>
7586
7587         * modules/modechange (Depends-on): Add stdbool.
7588
7589 2007-03-11  Bruno Haible  <bruno@clisp.org>
7590
7591         * modules/i-ring (Depends-on): Add stdbool.
7592
7593 2007-03-11  Bruno Haible  <bruno@clisp.org>
7594
7595         * modules/gc-des (Depends-on): Add stdbool.
7596
7597 2007-03-11  Bruno Haible  <bruno@clisp.org>
7598
7599         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
7600
7601 2007-03-11  Bruno Haible  <bruno@clisp.org>
7602
7603         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
7604
7605 2007-03-11  Bruno Haible  <bruno@clisp.org>
7606
7607         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
7608
7609 2007-03-11  Bruno Haible  <bruno@clisp.org>
7610
7611         * lib/vasnprintf.c (sprintf): Undefine.
7612
7613 2007-03-11  Bruno Haible  <bruno@clisp.org>
7614
7615         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
7616         initializers in SunPRO C and Compaq C compilers.
7617
7618 2007-03-11  Bruno Haible  <bruno@clisp.org>
7619
7620         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
7621         decrementing code ANSI C compliant.
7622
7623 2007-03-11  Bruno Haible  <bruno@clisp.org>
7624
7625         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
7626         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
7627
7628 2007-03-11  Bruno Haible  <bruno@clisp.org>
7629
7630         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
7631         <stdbool.h> substitute doesn't pass.
7632
7633 2007-03-11  Bruno Haible  <bruno@clisp.org>
7634
7635         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
7636
7637 2007-03-11  Bruno Haible  <bruno@clisp.org>
7638
7639         * gnulib-tool (func_create_megatestdir): Create also an autobuild
7640         script, for submission to autobuild.josefsson.org.
7641
7642 2007-03-10  Bruno Haible  <bruno@clisp.org>
7643
7644         * modules/canonicalize-lgpl-tests: New file.
7645         * tests/test-canonicalize-lgpl.sh: New file.
7646         * tests/test-canonicalize-lgpl.c: New file.
7647
7648         * modules/c-strcase-tests: New file.
7649         * tests/test-c-strcase.sh: New file.
7650         * tests/test-c-strcasecmp.c: New file.
7651         * tests/test-c-strncasecmp.c: New file.
7652
7653         * modules/atexit-tests: New file.
7654         * tests/test-atexit.sh: New file.
7655         * tests/test-atexit.c: New file.
7656
7657 2007-03-10  Bruno Haible  <bruno@clisp.org>
7658
7659         * tests/test-binary-io.sh: Use temporary filenames that are not so
7660         likely to clash with those of other tests (in a parallel make).
7661         * tests/test-binary-io.c: Likewise.
7662
7663 2007-03-10  Bruno Haible  <bruno@clisp.org>
7664
7665         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
7666         fallback; use #error instead.
7667         Suggested by Simon Josefsson.
7668
7669 2007-03-10  Bruno Haible  <bruno@clisp.org>
7670
7671         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
7672         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
7673         first and the last.
7674
7675 2007-03-10  Bruno Haible  <bruno@clisp.org>
7676
7677         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
7678
7679 2007-03-10  Bruno Haible  <bruno@clisp.org>
7680
7681         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
7682         "make distcheck".
7683         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
7684         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
7685         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
7686
7687 2007-03-10  Bruno Haible  <bruno@clisp.org>
7688
7689         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
7690         variable.
7691         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
7692         variable.
7693
7694 2007-03-09  Eric Blake  <ebb9@byu.net>
7695         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
7696
7697         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
7698         types are not being provided by gnulib.
7699         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
7700         types are supported.
7701
7702 2007-03-10  Bruno Haible  <bruno@clisp.org>
7703
7704         * lib/stdio_.h (__attribute__): New macro.
7705         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
7706         vsprintf): Specify __attribute__ __format__ for GCC.
7707         Suggested by Eric Blake.
7708
7709 2007-03-09  Bruno Haible  <bruno@clisp.org>
7710
7711         * modules/printf-posix-tests: New file.
7712         * tests/test-printf-posix.sh: New file.
7713         * tests/test-printf-posix.c: New file.
7714
7715         * modules/printf-posix: New file.
7716         * lib/printf.c: New file.
7717         * m4/printf-posix-rpl.m4: New file.
7718         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
7719         REPLACE_PRINTF.
7720         * lib/stdio_.h (printf): New declaration.
7721         (format, __format__, ____printf____, ____scanf____, ____strftime____,
7722         ____strfmon____): New macros.
7723         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
7724         REPLACE_PRINTF.
7725
7726 2007-03-09  Bruno Haible  <bruno@clisp.org>
7727
7728         * tests/test-vasnprintf-posix2.sh: New file.
7729         * tests/test-vasnprintf-posix2.c: New file.
7730         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
7731         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
7732         (Makefile.am): Activate test-vasnprintf-posix2.sh.
7733
7734         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
7735         a locale dependent decimal point, rather than always '.'.
7736
7737 2007-03-09  Eric Blake  <ebb9@byu.net>
7738
7739         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
7740         spite of platforms like Tandem/NSK that define it to -1.
7741
7742 2007-03-08  Bruno Haible  <bruno@clisp.org>
7743
7744         * modules/vprintf-posix-tests: New file.
7745         * tests/test-vprintf-posix.sh: New file.
7746         * tests/test-vprintf-posix.c: New file.
7747         * tests/test-printf-posix.h: New file.
7748
7749         * modules/vprintf-posix: New file.
7750         * lib/vprintf.c: New file.
7751         * m4/vprintf-posix.m4: New file.
7752         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
7753         REPLACE_VPRINTF.
7754         * lib/stdio_.h (vprintf): New declaration.
7755         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
7756         REPLACE_VPRINTF.
7757
7758 2007-03-08  Bruno Haible  <bruno@clisp.org>
7759
7760         * modules/fprintf-posix-tests: New file.
7761         * tests/test-fprintf-posix.sh: New file.
7762         * tests/test-fprintf-posix.c: New file.
7763
7764         * modules/fprintf-posix: New file.
7765         * lib/fprintf.c: New file.
7766         * m4/fprintf-posix.m4: New file.
7767         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
7768         REPLACE_FPRINTF.
7769         * lib/stdio_.h (fprintf): New declaration.
7770         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
7771         REPLACE_FPRINTF.
7772
7773 2007-03-08  Bruno Haible  <bruno@clisp.org>
7774
7775         * modules/vfprintf-posix-tests: New file.
7776         * tests/test-vfprintf-posix.sh: New file.
7777         * tests/test-vfprintf-posix.c: New file.
7778         * tests/test-fprintf-posix.h: New file.
7779         * tests/test-fprintf-posix.out: New file.
7780
7781         * modules/vfprintf-posix: New file.
7782         * lib/vfprintf.c: New file.
7783         * m4/vfprintf-posix.m4: New file.
7784         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
7785         REPLACE_VFPRINTF.
7786         * lib/stdio_.h (vfprintf): New declaration.
7787         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
7788         REPLACE_VFPRINTF.
7789
7790 2007-03-08  Bruno Haible  <bruno@clisp.org>
7791
7792         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
7793
7794 2007-03-08  Bruno Haible  <bruno@clisp.org>
7795
7796         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
7797         instead of 'expr' invocations.
7798         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
7799         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
7800         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
7801         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7802         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
7803         Suggested by Paul Eggert.
7804
7805 2007-03-08  Bruno Haible  <bruno@clisp.org>
7806
7807         * modules/fseterr-tests: New file.
7808         * tests/test-fseterr.c: New file.
7809
7810         * modules/fseterr: New file.
7811         * lib/fseterr.h: New file.
7812         * lib/fseterr.c: New file.
7813
7814 2007-03-08  Bruno Haible  <bruno@clisp.org>
7815
7816         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
7817         * lib/getopt_.h: Likewise.
7818         * lib/mbswidth.h: Likewise.
7819         * lib/setenv.h: Likewise.
7820         * lib/vasnprintf.h: Likewise.
7821         * lib/vasprintf.h: Likewise.
7822         * lib/verror.h: Likewise.
7823         * lib/xsetenv.h: Likewise.
7824         * lib/xvasprintf.h: Likewise.
7825
7826 2007-03-08  Jim Meyering  <jim@meyering.net>
7827
7828         * users.txt: Add parted.
7829
7830         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
7831
7832 2007-03-07  Bruno Haible  <bruno@clisp.org>
7833
7834         * m4/printf.m4: Make the shell script snippets copy&pastable.
7835
7836 2007-03-02  Bruno Haible  <bruno@clisp.org>
7837
7838         * lib/netinet_in_.h: New file.
7839         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
7840         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
7841         * modules/netinet_in (Files): Add lib/netinet_in_.h.
7842         (Depends-on): Add absolute-header.
7843         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
7844         into netinet/in.h.
7845
7846 2007-03-03  Bruno Haible  <bruno@clisp.org>
7847
7848         * lib/sys_select_.h: New file.
7849         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
7850         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
7851         * modules/sys_select (Files): Add lib/sys_select_.h.
7852         (Depends-on): Add absolute-header.
7853         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
7854         into sys/select.h.
7855
7856 2007-03-02  Bruno Haible  <bruno@clisp.org>
7857
7858         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
7859         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
7860         values.
7861         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
7862         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
7863         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
7864         * modules/sys_socket (Depends-on): Add absolute-header.
7865         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
7866         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
7867         (Include): Remove requirement of inclusion of <sys/types.h>.
7868
7869 2007-03-02  Bruno Haible  <bruno@clisp.org>
7870
7871         * lib/byteswap_.h (bswap_32): Fix formula.
7872
7873 2007-03-06  Bruno Haible  <bruno@clisp.org>
7874
7875         * modules/sprintf-posix-tests: New file.
7876         * tests/test-sprintf-posix.c: New file.
7877
7878         * modules/sprintf-posix: New file.
7879         * lib/sprintf.c: New file.
7880         * m4/sprintf-posix.m4: New file.
7881         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
7882         REPLACE_SPRINTF.
7883         * lib/stdio_.h (sprintf): New declaration.
7884         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
7885         REPLACE_SPRINTF.
7886
7887 2007-03-06  Bruno Haible  <bruno@clisp.org>
7888
7889         * modules/vsprintf-posix-tests: New file.
7890         * tests/test-vsprintf-posix.c: New file.
7891         * tests/test-sprintf-posix.h: New file.
7892
7893         * modules/vsprintf-posix: New file.
7894         * lib/vsprintf.c: New file.
7895         * m4/vsprintf-posix.m4: New file.
7896         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
7897         REPLACE_VSPRINTF.
7898         * lib/stdio_.h (vsprintf): New declaration.
7899         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
7900         REPLACE_VSPRINTF.
7901
7902 2007-03-06  Bruno Haible  <bruno@clisp.org>
7903
7904         * modules/vsnprintf (Depend-on): Remove minmax.
7905
7906 2007-03-06  Bruno Haible  <bruno@clisp.org>
7907
7908         * modules/snprintf-posix-tests: New file.
7909         * tests/test-snprintf-posix.c: New file.
7910
7911         * modules/snprintf-posix: New file.
7912         * m4/snprintf-posix.m4: New file.
7913         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
7914         gl_FUNC_SNPRINTF.
7915         (gl_FUNC_SNPRINTF): Invoke it.
7916         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
7917         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
7918         is set.
7919         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
7920
7921 2007-03-06  Bruno Haible  <bruno@clisp.org>
7922
7923         * modules/vsnprintf-posix-tests: New file.
7924         * tests/test-vsnprintf-posix.c: New file.
7925         * tests/test-snprintf-posix.h: New file.
7926
7927         * modules/vsnprintf-posix: New file.
7928         * m4/vsnprintf-posix.m4: New file.
7929         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
7930         gl_FUNC_VSNPRINTF.
7931         (gl_FUNC_VSNPRINTF): Invoke it.
7932         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
7933         * lib/stdio_.h (vsnprintf): Define as a replacement if
7934         REPLACE_VSNPRINTF is set.
7935         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
7936
7937 2007-03-06  Bruno Haible  <bruno@clisp.org>
7938
7939         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
7940         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
7941
7942 2007-03-06  Bruno Haible  <bruno@clisp.org>
7943
7944         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
7945         (asinl): Declare also if HAVE_DECL_ASINL is set.
7946         (atanl): Declare also if HAVE_DECL_ATANL is set.
7947         (ceill): Declare also if HAVE_DECL_CEILL is set.
7948         (cosl): Declare also if HAVE_DECL_COSL is set.
7949         (expl): Declare also if HAVE_DECL_EXPL is set.
7950         (floorl): Declare also if HAVE_DECL_FLOORL is set.
7951         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
7952         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
7953         (logl): Declare also if HAVE_DECL_LOGL is set.
7954         (sinl): Declare also if HAVE_DECL_SINL is set.
7955         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
7956         (tanl): Declare also if HAVE_DECL_TANL is set.
7957         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
7958         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
7959         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
7960         declaration of frexpl, ldexpl.
7961         * modules/printf-frexpl (Depends-on): Add math.
7962         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
7963
7964 2007-03-05  Bruno Haible  <bruno@clisp.org>
7965
7966         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
7967         frexpl and ldexpl are declared.
7968         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
7969
7970 2007-03-05  Bruno Haible  <bruno@clisp.org>
7971
7972         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
7973         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
7974
7975 2007-03-05  Bruno Haible  <bruno@clisp.org>
7976
7977         * lib/stdio_.h: Include <stddef.h>.
7978
7979 2007-03-05  Bruno Haible  <bruno@clisp.org>
7980
7981         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
7982
7983 2007-03-05  Bruno Haible  <bruno@clisp.org>
7984
7985         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
7986         NetBSD 4, from Ralf Wildenhues.
7987
7988 2007-03-04  Bruno Haible  <bruno@clisp.org>
7989
7990         * lib/vasprintf.h: Update #if logic for the case when the functions
7991         exist but are overridden.
7992
7993 2007-03-04  Bruno Haible  <bruno@clisp.org>
7994
7995         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
7996         implementations: glibc-2.4 and MacOS X 10.3.
7997         * tests/test-vasnprintf-posix.c (test_function): Test also the case
7998         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
7999         * tests/test-vasprintf-posix.c (test_function): Likewise.
8000
8001 2007-03-04  Bruno Haible  <bruno@clisp.org>
8002
8003         * modules/vasprintf-posix-tests: New file.
8004         * tests/test-vasprintf-posix.c: New file.
8005
8006         * modules/vasprintf-posix: New file.
8007         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
8008         defined.
8009         * m4/vasprintf-posix.m4: New file.
8010         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
8011         gl_FUNC_VASPRINTF.
8012         (gl_FUNC_VASPRINTF): Invoke it.
8013         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
8014         here.
8015         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
8016
8017 2007-03-04  Bruno Haible  <bruno@clisp.org>
8018
8019         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
8020         REPLACE_GETTIMEOFDAY.
8021         * modules/sys_time (Makefile.am): Likewise.
8022         * m4/sys_time_h.m4: Likewise.
8023         * m4/gettimeofday.m4: Likewise.
8024
8025 2007-03-04  Bruno Haible  <bruno@clisp.org>
8026
8027         * modules/vasnprintf-posix-tests: New file.
8028         * tests/test-vasnprintf-posix.c: New file.
8029
8030         * modules/vasnprintf-posix: New file.
8031         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
8032         printf-frexpl.h.
8033         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
8034         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
8035         REPLACE_VASNPRINTF is defined.
8036         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
8037         gl_FUNC_VASNPRINTF.
8038         (gl_FUNC_VASNPRINTF): Invoke it.
8039         * m4/vasnprintf-posix.m4: New file.
8040         * m4/printf.m4: New file.
8041
8042 2007-03-04  Bruno Haible  <bruno@clisp.org>
8043
8044         Compile progreloc.c only if --enable-relocatable is specified.
8045         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
8046         if --enable-relocatable was specified.
8047         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
8048         lib_SOURCES.
8049
8050 2007-03-04  Jim Meyering  <jim@meyering.net>
8051
8052         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
8053         Use it consistently, rather than enumerating errno constants.
8054
8055 2007-03-04  Bruno Haible  <bruno@clisp.org>
8056
8057         * modules/xvasprintf-tests: New file.
8058         * tests/test-xvasprintf.c: New file.
8059
8060         * modules/vasprintf-tests: New file.
8061         * tests/test-vasprintf.c: New file.
8062
8063         * modules/vasnprintf-tests: New file.
8064         * tests/test-vasnprintf.c: New file.
8065
8066         * modules/vsnprintf-tests: New file.
8067         * tests/test-vsnprintf.c: New file.
8068
8069         * modules/snprintf-tests: New file.
8070         * tests/test-snprintf.c: New file.
8071
8072 2007-03-04  Bruno Haible  <bruno@clisp.org>
8073
8074         Compile relocatable.c only if --enable-relocatable is specified.
8075         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
8076         gl_RELOCATABLE_LIBRARY.
8077         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
8078         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
8079         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
8080         gl_RELOCATABLE_LIBRARY.
8081         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
8082         (Makefile.am): Remove lib_SOURCES.
8083         * modules/relocatable-lib-lgpl (configure.ac): Invoke
8084         gl_RELOCATABLE_LIBRARY.
8085         (Makefile.am): Remove lib_SOURCES.
8086         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
8087         always.
8088         * modules/relocatable-prog-wrapper (configure.ac): Invoke
8089         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
8090
8091 2007-03-04  Bruno Haible  <bruno@clisp.org>
8092
8093         * modules/argmatch-tests: New file.
8094         * tests/test-argmatch.c: New file.
8095
8096         * tests/test-allocsa.c (main): Halve the number of loop runs.
8097
8098         * modules/alloca-opt-tests: New file.
8099         * tests/test-alloca-opt.c: New file.
8100
8101 2007-03-04  Jim Meyering  <jim@meyering.net>
8102
8103         Work around difference between Linux ACLs and Solaris 10 ZFS.
8104         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
8105         for EINVAL.
8106
8107 2007-03-03  Bruno Haible  <bruno@clisp.org>
8108
8109         * modules/relocatable-prog (Depends-on): Add back progreloc's
8110         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
8111
8112 2007-03-03  Bruno Haible  <bruno@clisp.org>
8113
8114         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
8115         * modules/relocatable-lib: New file.
8116
8117 2007-03-03  Bruno Haible  <bruno@clisp.org>
8118
8119         * modules/relocatable-prog: Renamed from modules/relocatable.
8120         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
8121
8122 2007-03-03  Bruno Haible  <bruno@clisp.org>
8123
8124         * modules/relocatable-script (Files): Add doc/relocatable.texi,
8125         m4/relocatable-lib.m4.
8126         (Depends-on): Remove 'relocatable'.
8127         (configure.ac): Add gl_RELOCATABLE_NOP.
8128
8129 2007-03-03  Bruno Haible  <bruno@clisp.org>
8130
8131         * modules/relocatable-prog-wrapper: New file.
8132         * modules/relocatable (Depends-on): Add it. Remove all other
8133         dependencies except progname.
8134         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
8135
8136         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
8137         (gl_FUNC_STRERROR): Nop.
8138         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
8139
8140         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
8141         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
8142
8143         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
8144         (gl_FUNC_READLINK): Update.
8145
8146         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
8147
8148 2007-03-03  Bruno Haible  <bruno@clisp.org>
8149
8150         * lib/xreadlink.c: Include <unistd.h> unconditionally.
8151         * modules/xreadlink (Depends-on): Add unistd.
8152         * modules/xreadlink-with-size (Depends-on): Likewise.
8153
8154 2007-03-03  Bruno Haible  <bruno@clisp.org>
8155
8156         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
8157         extracted from gt_FUNC_SETENV.
8158         (gt_FUNC_SETENV): Remove macro.
8159         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
8160         remove gt_FUNC_SETENV.
8161
8162 2007-03-03  Bruno Haible  <bruno@clisp.org>
8163
8164         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
8165         ENABLE_RELOCATABLE here.
8166         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
8167
8168 2007-03-03  Bruno Haible  <bruno@clisp.org>
8169
8170         * modules/rbtreehash-list-tests (Depends-on): Add progname.
8171         * tests/test-rbtreehash_list.c: Include progname.h.
8172         (main): Call set_program_name.
8173
8174         * modules/rbtree-oset-tests (Depends-on): Add progname.
8175         * tests/test-rbtree_oset.c: Include progname.h.
8176         (main): Call set_program_name.
8177
8178         * modules/rbtree-list-tests (Depends-on): Add progname.
8179         * tests/test-rbtree_list.c: Include progname.h.
8180         (main): Call set_program_name.
8181
8182         * modules/linked-list-tests (Depends-on): Add progname.
8183         * tests/test-linked_list.c: Include progname.h.
8184         (main): Call set_program_name.
8185
8186 2007-03-03  Bruno Haible  <bruno@clisp.org>
8187
8188         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
8189         All uses of __restrict changed to _Restrict_.
8190         * lib/glob_.h (__restrict): Remove macro.
8191
8192 2007-03-02  Bruno Haible  <bruno@clisp.org>
8193
8194         * modules/gettext (configure.ac): Require gettext infrastructure
8195         from version 0.16.1.
8196
8197 2007-03-02  Bruno Haible  <bruno@clisp.org>
8198
8199         * modules/linkedhash-list-tests (Depends-on): Add progname.
8200         * tests/test-linkedhash_list.c: Include progname.h.
8201         (main): Call set_program_name.
8202
8203         * modules/carray-list-tests (Depends-on): Add progname.
8204         * tests/test-carray_list.c: Include progname.h.
8205         (main): Call set_program_name.
8206
8207         * modules/avltreehash-list-tests (Depends-on): Add progname.
8208         * tests/test-avltreehash_list.c: Include progname.h.
8209         (main): Call set_program_name.
8210
8211         * modules/avltree-oset-tests (Depends-on): Add progname.
8212         * tests/test-avltree_oset.c: Include progname.h.
8213         (main): Call set_program_name.
8214
8215         * modules/avltree-list-tests (Depends-on): Add progname.
8216         * tests/test-avltree_list.c: Include progname.h.
8217         (main): Call set_program_name.
8218
8219         * modules/array-oset-tests (Depends-on): Add progname.
8220         * tests/test-array_oset.c: Include progname.h.
8221         (main): Call set_program_name.
8222
8223         * modules/array-list-tests (Depends-on): Add progname.
8224         * tests/test-array_list.c: Include progname.h.
8225         (main): Call set_program_name.
8226
8227         * modules/argp-tests (Depends-on): Add progname.
8228         * tests/test-argp.c: Include argp.h first. Include progname.h.
8229         (main): Call set_program_name.
8230
8231 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
8232
8233         * doc/gnulib-tool.texi (Initial import): Reword description of
8234         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
8235         limited effect even if defined after the first system include.
8236
8237 2007-03-01  Bruno Haible  <bruno@clisp.org>
8238
8239         * build-aux/config.libpath: Update to libtool-1.5.22.
8240         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8241
8242 2007-03-01  Bruno Haible  <bruno@clisp.org>
8243
8244         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
8245         foo_CFLAGS.
8246         Reported by Ralf Wildenhues.
8247
8248 2007-03-01  Bruno Haible  <bruno@clisp.org>
8249
8250         * build-aux/install-reloc: Remove object files left over by some
8251         compilers.
8252         Reported by Ralf Wildenhues.
8253
8254 2007-03-01  Bruno Haible  <bruno@clisp.org>
8255
8256         * build-aux/install-reloc: Break long lines.
8257
8258 2007-03-01  Bruno Haible  <bruno@clisp.org>
8259
8260         * doc/relocatable.texi: Document that it may not work on OpenBSD.
8261         Reported by Ralf Wildenhues.
8262
8263 2007-03-01  Bruno Haible  <bruno@clisp.org>
8264
8265         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
8266         include ordering constraints.
8267
8268 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
8269
8270         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
8271         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
8272         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
8273         as another example.
8274         * lib/time_.h: Fix misspelling.
8275         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
8276         Require gl_HEADER_TIME_H_DEFAULTS.
8277         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
8278         * m4/time_r.m4 (gl_TIME_R): Likewise.
8279         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
8280
8281 2007-03-01  Bruno Haible  <bruno@clisp.org>
8282
8283         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
8284         * m4/utimens.m4 (gl_UTIMENS): Likewise.
8285
8286 2007-03-01  Jim Meyering  <jim@meyering.net>
8287
8288         * modules/xreadlink (Maintainer): Add my name.
8289         * modules/xreadlink-with-size (Depends-on): Alphabetize.
8290
8291 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
8292             Bruno Haible  <bruno@clisp.org>
8293
8294         * build-aux/install-reloc: Compile also c-ctype.c.
8295         * build-aux/relocatable.sh.in: New file.
8296         * doc/relocatable.texi: New file.
8297         * doc/relocatable-maint.texi: New file.
8298         * doc/gnulib.texi: Include relocatable-maint.texi.
8299         * lib/progreloc.c: Include unistd.h unconditionally.
8300         * lib/relocwrapper.c: Include unistd.h unconditionally.
8301         Include c-ctype.h.
8302         (add_dotbin): Use c_tolower.
8303         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
8304         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
8305         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
8306         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
8307         to m4/relocatable-lib.m4.
8308         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
8309         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
8310         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
8311         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
8312         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
8313         * modules/relocatable: New file.
8314         * modules/relocatable-lib: New file.
8315         * modules/relocatable-script: New file.
8316
8317 2007-02-28  Bruno Haible  <bruno@clisp.org>
8318
8319         Import --enable-relocatable infrastructure.
8320         * build-aux/config.libpath: New file, from GNU gettext.
8321         * build-aux/install-reloc: New file, from GNU gettext.
8322         * build-aux/reloc-ldflags: New file, from GNU gettext.
8323         * lib/relocatable.h: New file, from GNU gettext.
8324         * lib/relocatable.c: New file, from GNU gettext.
8325         * lib/relocwrapper.c: New file, from GNU gettext.
8326         * m4/relocatable.m4: New file, from GNU gettext.
8327
8328 2007-02-28  Bruno Haible  <bruno@clisp.org>
8329
8330         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
8331
8332         * modules/xreadlink: New file, from GNU gettext with modifications.
8333         * lib/xreadlink.c: New file, from GNU gettext.
8334         * lib/xreadlink.h: Add comments.
8335         (xreadlink): New declaration.
8336
8337         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
8338         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
8339         lib/xreadlink-with-size.c.
8340         (configure.ac): Remove gl_XREADLINK invocation.
8341         (Makefile.am): Augment lib_SOURCES.
8342         * m4/xreadlink.m4: Remove file.
8343         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
8344         (xreadlink_with_size): Renamed from xreadink.
8345         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
8346         * modules/canonicalize (Depends-on): Replace xreadlink with
8347         xreadlink-with-size.
8348         * lib/canonicalize.c (canonicalize_filename_mode): Update.
8349
8350 2007-02-25  Jim Meyering  <jim@meyering.net>
8351
8352         * build-aux/announce-gen: When complaining about excess arguments,
8353         list them.
8354
8355 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
8356
8357         * README: Document signed integer overflow situation more
8358         accurately.
8359
8360 2007-02-25  Bruno Haible  <bruno@clisp.org>
8361
8362         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
8363         'a' or 'A' conversion.
8364
8365 2007-02-25  Bruno Haible  <bruno@clisp.org>
8366
8367         * modules/filename: Renamed from modules/pathname.
8368         (Files): Replace lib/pathname.h with lib/filename.h. Replace
8369         lib/concatpath.c with lib/concat-filename.c.
8370         (Makefile.am): Update.
8371         (Include): Replace pathname.h with filename.h.
8372         * lib/filename.h: Renamed from lib/pathname.h.
8373         (concatenated_filename): Renamed from concatenated_pathname.
8374         * lib/concat-filename.c: Renamed from lib/concatpath.c.
8375         (concatenated_filename): Renamed from concatenated_pathname.
8376         * lib/findprog.c: Include filename.h instead of pathname.h.
8377         (find_in_path): Update.
8378         * lib/javacomp.c: Include filename.h instead of pathname.h.
8379         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
8380         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
8381         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
8382         is_oldgcj_14_13_usable, is_javac_usable): Update.
8383         * lib/javaexec.c: Include filename.h instead of pathname.h.
8384         (execute_java_class): Update.
8385         * modules/findprog: Update.
8386         * modules/javacomp: Update.
8387         * modules/javaexec: Update.
8388         * MODULES.html.sh (File system functions): Add 'filename', remove
8389         'pathname'.
8390
8391 2007-02-25  Bruno Haible  <bruno@clisp.org>
8392
8393         * modules/printf-frexpl-tests: New file.
8394         * tests/test-printf-frexpl.c: New file.
8395
8396         * modules/printf-frexpl: New file.
8397         * lib/printf-frexpl.h: New file.
8398         * lib/printf-frexpl.c: New file.
8399         * m4/printf-frexpl.m4: New file.
8400
8401 2007-02-25  Bruno Haible  <bruno@clisp.org>
8402
8403         * modules/printf-frexp-tests: New file.
8404         * tests/test-printf-frexp.c: New file.
8405
8406         * modules/printf-frexp: New file.
8407         * lib/printf-frexp.h: New file.
8408         * lib/printf-frexp.c: New file.
8409         * m4/printf-frexp.m4: New file.
8410
8411 2007-02-25  Bruno Haible  <bruno@clisp.org>
8412
8413         Assume automake >= 1.10 for the tests.
8414         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
8415         * modules/arctwo-tests: Likewise.
8416         * modules/argp-tests: Likewise.
8417         * modules/avltree-list-tests: Likewise.
8418         * modules/avltree-oset-tests: Likewise.
8419         * modules/avltreehash-list-tests: Likewise.
8420         * modules/carray-list-tests: Likewise.
8421         * modules/crc-tests: Likewise.
8422         * modules/des-tests: Likewise.
8423         * modules/gc-arcfour-tests: Likewise.
8424         * modules/gc-arctwo-tests: Likewise.
8425         * modules/gc-des-tests: Likewise.
8426         * modules/gc-hmac-md5-tests: Likewise.
8427         * modules/gc-hmac-sha1-tests: Likewise.
8428         * modules/gc-md2-tests: Likewise.
8429         * modules/gc-md4-tests: Likewise.
8430         * modules/gc-md5-tests: Likewise.
8431         * modules/gc-pbkdf2-sha1-tests: Likewise.
8432         * modules/gc-rijndael-tests: Likewise.
8433         * modules/gc-sha1-tests: Likewise.
8434         * modules/gc-tests: Likewise.
8435         * modules/getaddrinfo-tests: Likewise.
8436         * modules/hmac-md5-tests: Likewise.
8437         * modules/hmac-sha1-tests: Likewise.
8438         * modules/linked-list-tests: Likewise.
8439         * modules/linkedhash-list-tests: Likewise.
8440         * modules/lock-tests: Likewise.
8441         * modules/md2-tests: Likewise.
8442         * modules/md4-tests: Likewise.
8443         * modules/md5-tests: Likewise.
8444         * modules/rbtree-list-tests: Likewise.
8445         * modules/rbtree-oset-tests: Likewise.
8446         * modules/rbtreehash-list-tests: Likewise.
8447         * modules/read-file-tests: Likewise.
8448         * modules/rijndael-tests: Likewise.
8449         * modules/stdint-tests: Likewise.
8450         * modules/tls-tests: Likewise.
8451
8452 2007-02-24  Bruno Haible  <bruno@clisp.org>
8453
8454         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
8455         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
8456         function; instead check whether isnan with a double argument links.
8457         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
8458         function; instead check whether isnan with a 'long double' argument
8459         links.
8460         Reported by Eric Blake <ebb9@byu.net>.
8461
8462 2007-02-24  Bruno Haible  <bruno@clisp.org>
8463
8464         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
8465         defined.
8466         * lib/isnanl.c: Remove all code. Just include isnan.c.
8467         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
8468
8469 2007-02-25  Jim Meyering  <jim@meyering.net>
8470
8471         Avoid conflicting types for 'unsetenv' on FreeBSD.
8472         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
8473         conflicting with FreeBSD's (5.0 and 6.1) function declaration
8474         in stdlib.h.
8475
8476 2007-02-24  Bruno Haible  <bruno@clisp.org>
8477
8478         * modules/isnanl-nolibm-tests: New file.
8479         * tests/test-isnanl.c: New file.
8480
8481         * modules/isnanl-nolibm: New file.
8482         * lib/isnanl.h: New file.
8483         * lib/isnanl.c: New file.
8484         * m4/isnanl.m4: New file.
8485
8486 2007-02-24  Bruno Haible  <bruno@clisp.org>
8487
8488         * modules/isnan-nolibm-tests: New file.
8489         * tests/test-isnan.c: New file.
8490
8491         * modules/isnan-nolibm: New file.
8492         * lib/isnan.h: New file.
8493         * lib/isnan.c: New file.
8494         * m4/isnan.m4: New file.
8495
8496 2007-02-24  Bruno Haible  <bruno@clisp.org>
8497
8498         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
8499         assume that an exponent fits in 20 bits.
8500
8501 2007-02-24  Jim Meyering  <jim@meyering.net>
8502
8503         * m4/regex.m4: Update the description of the configure-time option,
8504         --without-included-regex, to state accurately what the defaults are,
8505         and perhaps to give people an idea why using this option is risky.
8506
8507 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
8508
8509         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
8510         loops on small arguments.  This attempts to avoid the problem
8511         Bruno Haible reported for AIX 4.3.2 in
8512         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
8513
8514 2007-02-23  Bruno Haible  <bruno@clisp.org>
8515
8516         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
8517         Needed for help2man.
8518
8519 2007-02-23  Karl Berry  <karl@gnu.org>
8520
8521         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
8522         exists, foo.h should be cvs-ignored, not committed.
8523
8524 2007-02-23  Eric Blake  <ebb9@byu.net>
8525
8526         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
8527         * lib/stat-time.h (includes): Likewise.
8528         * lib/utimecmp.c (includes): Likewise.
8529         * lib/utimens.h (includes): Likewise.
8530         * lib/getdate.y (includes): Also include "timespec.h" for use
8531         internal to the module.
8532         * modules/utimens (Depends-on): Revert yesterday's patch.
8533         * modules/nanosleep (Depends-on): Add missing dependency.
8534
8535 2007-02-22  Bruno Haible  <bruno@clisp.org>
8536
8537         * lib/glob.c: Don't include getlogin_r.h.
8538
8539 2007-02-22  Jim Meyering  <jim@meyering.net>
8540
8541         * modules/utimens (Depends-on): Add timespec, required for
8542         utimens.h's inclusion of timespec.h.
8543
8544 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
8545
8546         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
8547         long unreadable paths in GNU/Linux.  Problem reported by Andreas
8548         Schwab in
8549         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
8550         I'll try to think of a better way to fix the Solaris problem.
8551
8552         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
8553         like glibc; on Solaris 10, it fails with errno == EINVAL.
8554         POSIX says the behavior is unspecified if the first argument is NULL,
8555         so play it safe and never pass NULL to the system getcwd.
8556
8557 2007-02-21  Jim Meyering  <jim@meyering.net>
8558
8559         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
8560         of gettimeofday.  It would conflict with the one now always
8561         provided via sys_time_.h.  Reported by Matthew Woehlke, as
8562         an IRIX 6.5 build failure.
8563
8564 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
8565
8566         Minor fixups to port to Solaris 10 with Sun C 5.8.
8567         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
8568         * modules/getcwd (Depends-on): Add dirfd.
8569         * lib/putenv.c (putenv): #undef it.
8570         (rpl_putenv): New decl.
8571         (malloc, free): Include <stdlib.h> rather than prototyping separately.
8572
8573 2007-02-20  Bruno Haible  <bruno@clisp.org>
8574
8575         * modules/stdio-tests: New file.
8576         * tests/test-stdio.c: New file.
8577
8578         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
8579         (Depends-on): Add stdio.
8580         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
8581         (Include): Use <stdio.h> instead of vsnprintf.h.
8582         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
8583         HAVE_DECL_VSNPRINTF.
8584         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
8585
8586         * modules/snprintf (Files): Remove lib/snprintf.h.
8587         (Depends-on): Add stdio.
8588         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
8589         (Include): Use <stdio.h> instead of snprintf.h.
8590         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
8591         HAVE_DECL_SNPRINTF.
8592         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
8593         * lib/getaddrinfo.c: Likewise.
8594
8595         * modules/stdio: New file.
8596         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
8597         * lib/snprintf.h: Remove file.
8598         * lib/vsnprintf.h: Remove file.
8599         * lib/.cppi-disable: Remove snprintf.h.
8600         * m4/stdio_h.m4: New file.
8601         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
8602
8603 2007-02-20  Jim Meyering  <jim@meyering.net>
8604
8605         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
8606         used by e.g., mingw.  From Bruno Haible.
8607
8608 2007-02-19  Bruno Haible  <bruno@clisp.org>
8609
8610         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
8611         warnings.
8612         Reported by Ben Pfaff <blp@cs.stanford.edu>.
8613
8614 2007-02-19  Bruno Haible  <bruno@clisp.org>
8615
8616         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
8617         from mingw users.
8618
8619 2007-02-19  Bruno Haible  <bruno@clisp.org>
8620
8621         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
8622         warnings.
8623         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
8624
8625 2007-02-19  Jim Meyering  <jim@meyering.net>
8626
8627         Don't use FD after a successful "fdopendir (fd)".
8628         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
8629         Reset it by calling dirfd on the just-obtained DIR*.
8630
8631         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
8632         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
8633
8634 2007-02-18  Bruno Haible  <bruno@clisp.org>
8635
8636         * lib/readlink.c: Include <unistd.h>.
8637         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
8638         HAVE_READLINK.
8639         * modules/readlink (Depends-on): Add unistd.
8640         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
8641         (Include): Add <unistd.h>.
8642
8643         * lib/getlogin_r.h: Remove file.
8644         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
8645         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
8646         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
8647         HAVE_DECL_GETLOGIN_R.
8648         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
8649         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
8650         (Include): Use <unistd.h> instead of getlogin_r.h.
8651
8652         * lib/getcwd.h: Remove file.
8653         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
8654         * lib/xgetcwd.c: Likewise.
8655         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
8656         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
8657         * modules/getcwd (Files): Remove lib/getcwd.h.
8658         (Depends-on): Add unistd.
8659         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
8660         (Include): Use <unistd.h> instad of getcwd.h.
8661
8662         * lib/ftruncate.c: Include <unistd.h> first.
8663         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
8664         Set HAVE_FTRUNCATE.
8665         * modules/ftruncate (Depends-on): Add unistd.
8666         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
8667
8668         * lib/fchdir.c: Include <unistd.h> first.
8669         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
8670         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
8671         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
8672         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
8673         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
8674
8675         * lib/dup2.c: Include <unistd.h> first.
8676         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
8677         HAVE_DUP2.
8678         * modules/dup2 (Depends-on): Add unistd.
8679         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
8680
8681         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
8682         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
8683         REPLACE_CHOWN. Don't define chown as a macro here.
8684         * modules/chown (Depends-on): Add unistd.
8685         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
8686
8687         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
8688         Add definition for GL_LINK_WARNING.
8689         (chown, dup2): New declarations.
8690         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
8691         link warning.
8692         (ftruncate): New declaration.
8693         (getcwd): New declaration, taken from old getcwd.h.
8694         (getlogin_r): New declaration, taken from old getlogin_r.h.
8695         (readlink): New declaration.
8696         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
8697         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
8698         (gl_PREREQ_UNISTD): Remove macro.
8699         (gl_UNISTD_MODULE_INDICATOR): New macro.
8700         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
8701         many new variables. Don't set UNISTD_H.
8702         * modules/unistd (Description): Change.
8703         (Depends-on): Add link-warning.
8704         (configure.ac): Update.
8705         (Makefile.am): Create unistd.h always. Substitute many new variables
8706         into it.
8707
8708 2007-02-18  Bruno Haible  <bruno@clisp.org>
8709
8710         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
8711         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
8712         HAVE_GETSUBOPT.
8713         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
8714         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
8715         * lib/getsubopt.h: Remove file.
8716         * modules/getsubopt (Files): Remove lib/getsubopt.h.
8717         (Depends-on): Add stdlib.
8718         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
8719         (Includes): Use <stdlib.h> instead of getsubopt.h.
8720         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
8721         Set HAVE_GETSUBOPT.
8722         * lib/getsubopt.c: Don't include getsubopt.h.
8723
8724 2007-02-18  Bruno Haible  <bruno@clisp.org>
8725
8726         * modules/fchdir (Depends-on): Add dup2.
8727
8728 2007-02-18  Bruno Haible  <bruno@clisp.org>
8729
8730         * lib/stdlib_.h: Handle glibc's special invocation convention
8731         specially.
8732
8733 2007-02-18  Bruno Haible  <bruno@clisp.org>
8734
8735         * modules/stdlib-tests: New file.
8736         * tests/test-stdlib.c: New file.
8737
8738         * modules/mkstemp (Files): Remove lib/mkstemp.h.
8739         (Depends-on): Add stdlib.
8740         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
8741         (Includes): Use <stdlib.h> instead of mkstemp.h.
8742         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
8743         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
8744         * lib/mkstemp.c: Don't include mkstemp.h.
8745         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
8746         * lib/stdlib--.h: Don't include mkstemp.h.
8747
8748         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
8749         (Depends-on): Add stdlib.
8750         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
8751         (Includes): Use <stdlib.h> instead of mkdtemp.h.
8752         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
8753         HAVE_MKDTEMP.
8754         * lib/mkdtemp.c: Don't include mkdtemp.h.
8755         * lib/clean-temp.c: Don't include mkdtemp.h.
8756
8757         * modules/exit (Files): Remove lib/exit.h.
8758         (Depends-on): Add stdlib.
8759         (Makefile.am): Remove lib_SOURCES.
8760         (Include): Use <stdlib.h> instead of exit.h.
8761         * lib/argmatch.c: Don't include exit.h.
8762         * lib/execute.c: Likewise.
8763         * lib/pagealign_alloc.c: Likewise.
8764         * lib/pipe.c: Likewise.
8765         * lib/wait-process.c: Likewise.
8766         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
8767         * lib/exitfail.c: Likewise.
8768         * lib/savewd.c: Likewise.
8769         * lib/xsetenv.c: Likewise.
8770
8771         * modules/stdlib: New file.
8772         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
8773         and extra comments about mkstemp().
8774         * lib/exit.h: Remove file.
8775         * lib/mkdtemp.h: Remove file.
8776         * lib/mkstemp.h: Remove file.
8777         * m4/stdlib_h.m4: New file.
8778         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
8779
8780 2007-02-18  Bruno Haible  <bruno@clisp.org>
8781
8782         * modules/math-tests: New file.
8783         * tests/test-math.c: New file.
8784
8785         * modules/math: New file.
8786         * modules/mathl (Files): Remove lib/mathl.h.
8787         (Depends-on): Add math.
8788         (Makefile.am): Don't mention mathl.h.
8789         (Include): Use <math.h> instead of mathl.h.
8790         * lib/math_.h: New file.
8791         * lib/mathl.h: Remove file.
8792         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
8793         mathl.h.
8794         * lib/asinl.c: Likewise.
8795         * lib/atanl.c: Likewise.
8796         * lib/ceill.c: Likewise.
8797         * lib/cosl.c: Likewise.
8798         * lib/expl.c: Likewise.
8799         * lib/floorl.c: Likewise.
8800         * lib/frexpl.c: Likewise.
8801         * lib/ldexpl.c: Likewise.
8802         * lib/logl.c: Likewise.
8803         * lib/sincosl.c: Likewise.
8804         * lib/sinl.c: Likewise.
8805         * lib/sqrtl.c: Likewise.
8806         * lib/tanl.c: Likewise.
8807         * lib/trigl.c: Likewise.
8808         * m4/math_h.m4: New file.
8809         * MODULES.html.sh (Mathematics): Add math.
8810
8811 2007-02-17  Bruno Haible  <bruno@clisp.org>
8812
8813         * modules/wctype-tests: New file.
8814         * tests/test-wctype.c: New file.
8815
8816         * modules/wchar-tests: New file.
8817         * tests/test-wchar.c: New file.
8818
8819         * modules/unistd-tests: New file.
8820         * tests/test-unistd.c: New file.
8821
8822         * modules/time-tests: New file.
8823         * tests/test-time.c: New file.
8824
8825         * modules/sysexits-tests: New file.
8826         * tests/test-sysexits.c: New file.
8827
8828         * modules/sys_time-tests: New file.
8829         * tests/test-sys_time.c: New file.
8830
8831         * modules/sys_stat-tests: New file.
8832         * tests/test-sys_stat.c: New file.
8833
8834         * modules/sys_socket-tests: New file.
8835         * tests/test-sys_socket.c: New file.
8836
8837         * modules/sys_select-tests: New file.
8838         * tests/test-sys_select.c: New file.
8839
8840         * modules/string-tests: New file.
8841         * tests/test-string.c: New file.
8842
8843         * modules/stdbool-tests: New file.
8844         * tests/test-stdbool.c: New file.
8845
8846         * modules/netinet_in-tests: New file.
8847         * tests/test-netinet_in.c: New file.
8848
8849         * modules/inttypes-tests: New file.
8850         * tests/test-inttypes.c: New file.
8851
8852         * modules/fcntl-tests: New file.
8853         * tests/test-fcntl.c: New file.
8854
8855         * modules/byteswap-tests: New file.
8856         * tests/test-byteswap.c: New file.
8857
8858         * modules/arpa_inet-tests: New file.
8859         * tests/test-arpa_inet.c: New file.
8860
8861 2007-02-17  Bruno Haible  <bruno@clisp.org>
8862
8863         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
8864         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
8865         if the corresponding module is not enabled. Emit link warnings if
8866         the function is used nevertheless.
8867         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
8868         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
8869         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
8870         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
8871         * modules/inttypes (Depends-on): Add link-warning.
8872         (Makefile.am): Copy the contents of build-aux/link-warning.h into
8873         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
8874         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
8875         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
8876         * modules/imaxdiv (configure.ac): Likewise.
8877         * modules/strtoimax (configure.ac): Likewise.
8878         * modules/strtoumax (configure.ac): Likewise.
8879
8880 2007-02-17  Bruno Haible  <bruno@clisp.org>
8881
8882         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
8883         gl_STRING_MODULE_INDICATOR_DEFAULTS.
8884         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
8885         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
8886
8887 2007-02-17  Bruno Haible  <bruno@clisp.org>
8888
8889         * modules/link-warning: New file.
8890         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
8891         * lib/string_.h (GL_LINK_WARNING): Remove definition.
8892         * modules/string (Depends-on): Add link-warning.
8893         (Makefile.am): Copy the contents of build-aux/link-warning.h into
8894         string.h.
8895         * MODULES.html.sh (Support for building libraries and executables): Add
8896         link-warning.
8897
8898 2007-02-17  Bruno Haible  <bruno@clisp.org>
8899
8900         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
8901         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
8902         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
8903         long lines.
8904
8905 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
8906             Bruno Haible  <bruno@clisp.org>
8907
8908         * modules/tmpfile: New file.
8909         * lib/tmpfile.c: New file.
8910         * m4/tmpfile.m4: New file.
8911         * MODULES.html.sh (func_all_modules): New section "Input/output".
8912
8913 2007-02-15  Bruno Haible  <bruno@clisp.org>
8914
8915         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
8916         (supports_delete_on_close): New function.
8917         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
8918
8919 2007-02-14  Bruno Haible  <bruno@clisp.org>
8920
8921         * modules/mbspcasecmp-tests: New file.
8922         * tests/test-mbspcasecmp.sh: New file.
8923         * tests/test-mbspcasecmp.c: New file.
8924
8925         New module mbspcasecmp.
8926         * modules/mbspcasecmp: New file.
8927         * lib/mbspcasecmp.c: New file.
8928         * lib/string_.h (strncasecmp): Change warning message.
8929         (mbspcasecmp): New declaration.
8930         * m4/mbspcasecmp.m4: New file.
8931         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
8932         GNULIB_MBSPCASECMP.
8933         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
8934         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
8935
8936 2007-02-14  Bruno Haible  <bruno@clisp.org>
8937
8938         * modules/mbsncasecmp-tests: New file.
8939         * tests/test-mbsncasecmp.sh: New file.
8940         * tests/test-mbsncasecmp.c: New file.
8941
8942         New module mbsncasecmp.
8943         * modules/mbsncasecmp: New file.
8944         * lib/mbsncasecmp.c: New file.
8945         * lib/string_.h (mbsncasecmp): New declaration.
8946         * m4/mbsncasecmp.m4: New file.
8947         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
8948         GNULIB_MBSNCASECMP.
8949         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
8950         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
8951
8952 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
8953
8954         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
8955         Verify that it doesn't overlap with our flags.
8956         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
8957         do not have the desired effect in multibyte locales; instead, use
8958         mbscasecmp.
8959         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
8960         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
8961         we don't require GNU fnmatch ourselves (if our users require it, they
8962         should do so explicitly).
8963
8964         Fix regex code so it doesn't rely on strcasecmp.
8965         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
8966         Otherwise, include gnulib's langinfo.h.
8967         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
8968         undesirable behavior in non-C locales.  Instead, rely on localecharset.
8969         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
8970         * modules/regex (FILES): Remove m4/codeset.m4.
8971         (Depends-on): Add localcharset.  Remove strcase.
8972
8973 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8974
8975         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
8976         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
8977
8978 2007-02-13  Bruno Haible  <bruno@clisp.org>
8979
8980         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
8981         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8982
8983 2007-02-12  Bruno Haible  <bruno@clisp.org>
8984
8985         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
8986         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
8987         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
8988         time warning rather than a link error.
8989
8990 2007-02-12  Bruno Haible  <bruno@clisp.org>
8991
8992         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
8993         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
8994         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8995
8996 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
8997
8998         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
8999         args, not 2.
9000
9001 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
9002
9003         New module 'time', so that apps can include <time.h> as per
9004         POSIX and GNU instead of separate include files like time_r.h
9005         and timegm.h.  This implementation tries out a simpler approach
9006         for replacing decls in standard include files (as compared to
9007         the string module), somewhat as an experiment.
9008
9009         * config/srclist.txt: Comment out mktime.c for now.
9010         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
9011         since it doesn't apply any more.  Use generic wording instead.
9012         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
9013         'time'.
9014         * lib/time_.h, m4/time_h.m4, modules/time: New files.
9015         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
9016         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
9017         Don't include <sys/types.h>; no longer needed since we assume C89.
9018         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
9019         * lib/strftime.c: Likewise.
9020         * lib/time_r.c: Likewise.
9021         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
9022         * lib/nanosleep.c: Include <time.h> first, to check interface.
9023         * lib/strptime.c: Likewise.
9024         * lib/time_r.c: Likewise.
9025         * lib/timegm.c: Likewise.
9026         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
9027         needed.
9028         * lib/timegm.c: Don't include timegm.h; no longer needed.
9029         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
9030         time.h now handles any problems in that area.
9031         (struct timespec, nanosleep): Remove; time.h now arranges for these.
9032         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
9033         that time.h defines struct timespec.
9034         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
9035         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
9036         handles that.
9037         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
9038         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
9039         needed.  Set REPLACE_LOCALTIME.
9040         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
9041         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
9042         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
9043         nanosleep; time_h.m4 now does that.  Don't require
9044         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
9045         module handles this now.
9046         * modules/getdate (Depends-on): Remove timespec.  Add time.
9047         * modules/nanosleep (Depends-on): Likewise.
9048         * modules/stat-time (Depends-on): Likewise.
9049         * modules/nanosleep (Include): Include time.h, not timespec.h.
9050         * modules/strptime (Files): Remove lib/strptime.h.
9051         (Depends-on): Add extensions, time.
9052         (Include): Include time.h, not strptime.h.
9053         * modules/time_r (Files): Remove lib/time_r.h.
9054         (Depends-on): Add time.
9055         (Include): Include time.h, not time_r.h.
9056         * modules/timegm: Likewise.
9057         * modules/timespec (Description): Now does timespec-related decls
9058         of our own, instead of struct timespec itself.
9059         (Depends-on): Add time; remove extensions.
9060         (Maintainer): Add self.
9061         * modules/utimecmp (Depends-on): Add time; remove timespec.
9062         * modules/utimens (Depends-on): Likewise.
9063         * modules/xnanosleep (Depends-on): Likewise.
9064
9065 2007-02-11  Bruno Haible  <bruno@clisp.org>
9066
9067         * lib/c-strstr.c: Include allocsa.h.
9068         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
9069         * lib/c-strcasestr.c: Include allocsa.h.
9070         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
9071         * lib/strcasestr.c: Include allocsa.h.
9072         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
9073         * lib/mbsstr.c: Include allocsa.h.
9074         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
9075         allocsa/freesa instead of malloc/free.
9076         * lib/mbscasestr.c: Include allocsa.h.
9077         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
9078         allocsa/freesa instead of malloc/free.
9079         * modules/c-strstr (Depends-on): Add allocsa.
9080         * modules/c-strcasestr (Depends-on): Likewise.
9081         * modules/strcasestr (Depends-on): Likewise.
9082         * modules/mbsstr (Depends-on): Likewise.
9083         * modules/mbscasestr (Depends-on): Likewise.
9084
9085 2007-02-11  Bruno Haible  <bruno@clisp.org>
9086
9087         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
9088
9089         * modules/mbsspn-tests: New file.
9090         * tests/test-mbsspn.sh: New file.
9091         * tests/test-mbsspn.c: New file.
9092
9093 2007-02-11  Bruno Haible  <bruno@clisp.org>
9094
9095         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
9096
9097         * modules/mbspbrk-tests: New file.
9098         * tests/test-mbspbrk.sh: New file.
9099         * tests/test-mbspbrk.c: New file.
9100
9101 2007-02-11  Bruno Haible  <bruno@clisp.org>
9102
9103         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
9104         unneeded cast.
9105
9106         * modules/mbscspn-tests: New file.
9107         * tests/test-mbscspn.sh: New file.
9108         * tests/test-mbscspn.c: New file.
9109
9110 2007-02-11  Bruno Haible  <bruno@clisp.org>
9111
9112         * modules/mbscasecmp-tests: New file.
9113         * tests/test-mbscasecmp.sh: New file.
9114         * tests/test-mbscasecmp.c: New file.
9115
9116 2007-02-11  Bruno Haible  <bruno@clisp.org>
9117
9118         Ensure O(n) worst-case complexity of mbscasestr.
9119         * lib/mbscasestr.c: Include stdbool.h.
9120         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
9121         functions.
9122         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
9123         the bookkeeping indicates that it's worth it.
9124         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
9125
9126         * modules/mbscasestr-tests: New file.
9127         * tests/test-mbscasestr1.c: New file.
9128         * tests/test-mbscasestr2.sh: New file.
9129         * tests/test-mbscasestr2.c: New file.
9130         * tests/test-mbscasestr3.sh: New file.
9131         * tests/test-mbscasestr3.c: New file.
9132         * tests/test-mbscasestr4.sh: New file.
9133         * tests/test-mbscasestr4.c: New file.
9134         * m4/locale-tr.m4: New file.
9135
9136 2007-02-11  Bruno Haible  <bruno@clisp.org>
9137
9138         Ensure O(n) worst-case complexity of mbsstr.
9139         * lib/mbsstr.c: Include stdbool.h.
9140         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
9141         functions.
9142         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
9143         bookkeeping indicates that it's worth it.
9144         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
9145
9146         * modules/mbsstr-tests: New file.
9147         * tests/test-mbsstr1.c: New file.
9148         * tests/test-mbsstr2.sh: New file.
9149         * tests/test-mbsstr2.c: New file.
9150         * tests/test-mbsstr3.sh: New file.
9151         * tests/test-mbsstr3.c: New file.
9152         * m4/locale-fr.m4: New file.
9153
9154 2007-02-11  Bruno Haible  <bruno@clisp.org>
9155
9156         * lib/mbsrchr.c (mbsrchr): Fix bug.
9157
9158         * modules/mbsrchr-tests: New file.
9159         * tests/test-mbsrchr.sh: New file.
9160         * tests/test-mbsrchr.c: New file.
9161
9162 2007-02-11  Bruno Haible  <bruno@clisp.org>
9163
9164         * lib/mbschr.c (mbschr): Fix bug.
9165
9166         * modules/mbschr-tests: New file.
9167         * tests/test-mbschr.sh: New file.
9168         * tests/test-mbschr.c: New file.
9169         * m4/locale-zh.m4: New file.
9170
9171 2007-02-11  Bruno Haible  <bruno@clisp.org>
9172
9173         Support for copying multibyte string iterators.
9174         * lib/mbiter.h: Include <string.h>.
9175         (mbiter_multi_copy): New function.
9176         (mbi_copy): New macro.
9177         * lib/mbuiter.h: Include <string.h>.
9178         (mbuiter_multi_copy): New function.
9179         (mbui_copy): New macro.
9180
9181 2007-02-11  Bruno Haible  <bruno@clisp.org>
9182
9183         New module mbslen.
9184         * modules/mbslen: New file.
9185         * lib/mbslen.c: New file.
9186         * lib/string_.h (mbslen): New declaration.
9187         * m4/mbslen.m4: New file.
9188         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
9189         GNULIB_MBSLEN.
9190         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
9191         * MODULES.html.sh (Internationalization functions): Add mbslen.
9192
9193 2007-02-11  Bruno Haible  <bruno@clisp.org>
9194
9195         Ensure O(n) worst-case complexity of strcasestr substitute.
9196         * lib/strcasestr.c: Include stdbool.h.
9197         (knuth_morris_pratt): New function.
9198         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
9199         bookkeeping indicates that it's worth it.
9200         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
9201
9202         * modules/strcasestr-tests: New file.
9203         * tests/test-strcasestr.c: New file.
9204
9205 2007-02-11  Bruno Haible  <bruno@clisp.org>
9206
9207         Ensure O(n) worst-case complexity of c_strcasestr.
9208         * lib/c-strcasestr.c: Include stdbool.h, string.h.
9209         (knuth_morris_pratt): New function.
9210         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
9211         the bookkeeping indicates that it's worth it.
9212         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
9213
9214         * modules/c-strcasestr-tests: New file.
9215         * tests/test-c-strcasestr.c: New file.
9216
9217 2007-02-11  Bruno Haible  <bruno@clisp.org>
9218
9219         Ensure O(n) worst-case complexity of c_strstr.
9220         * lib/c-strstr.c: Include stdbool.h, string.h.
9221         (knuth_morris_pratt): New function.
9222         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
9223         bookkeeping indicates that it's worth it.
9224         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
9225
9226         * lib/c-strstr.c: Complete rewrite for maintainability.
9227
9228         * modules/c-strstr-tests: New file.
9229         * tests/test-c-strstr.c: New file.
9230
9231 2007-02-11  Bruno Haible  <bruno@clisp.org>
9232
9233         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
9234         5.2.1 and earlier, whereby \055 was treated just like the range
9235         delimiter '-'.
9236         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
9237
9238 2007-02-08  Bruno Haible  <bruno@clisp.org>
9239
9240         * modules/regex (Depends-on): Add stdbool.
9241         Reported by Dalibor Topic <robilad@kaffe.org>.
9242
9243 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
9244
9245         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
9246         Prefer returning from main to exiting from it.
9247         Remove unnecessary parens after sizeof.
9248
9249 2007-02-05  Bruno Haible  <bruno@clisp.org>
9250
9251         New module mbssep.
9252         * modules/mbssep: New file.
9253         * lib/mbssep.c: New file.
9254         * lib/string_.h (strsep): Add a conditional link warning.
9255         (mbssep): New declaration.
9256         * m4/mbssep.m4: New file.
9257         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
9258         GNULIB_MBSSEP.
9259         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
9260         * MODULES.html.sh (Internationalization functions): Add mbssep.
9261
9262 2007-02-05  Bruno Haible  <bruno@clisp.org>
9263
9264         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
9265         Optimize search in case of 1 delimiter.
9266
9267 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
9268
9269         * lib/acl.h: Include sys/types.h before sys/acl.h.
9270
9271 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
9272
9273         Merge upstream fix for glibc bugzilla #3957:
9274
9275         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
9276
9277         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
9278         bit for RE_HAT_LISTS_NOT_NEWLINE.
9279         (build_charclass_op): Remove bogus comment.
9280
9281 2007-02-05  Simon Josefsson  <simon@josefsson.org>
9282
9283         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
9284
9285 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
9286
9287         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
9288         * lib/memmem.c [!defined _LIBC]: Include config.h.
9289
9290 2007-02-04  Bruno Haible  <bruno@clisp.org>
9291
9292         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
9293         warning message.
9294
9295 2007-02-04  Bruno Haible  <bruno@clisp.org>
9296
9297         New module mbstok_r.
9298         * modules/mbstok_r: New file.
9299         * lib/mbstok_r.c: New file.
9300         * lib/string_.h (strtok_r): Change argument names to match the
9301         comments. Add a conditional link warning.
9302         (mbstok_r): New declaration.
9303         * m4/mbstok_r.m4: New file.
9304         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
9305         GNULIB_MBSTOK_R.
9306         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
9307         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
9308
9309 2007-02-04  Bruno Haible  <bruno@clisp.org>
9310
9311         New module mbsspn.
9312         * modules/mbsspn: New file.
9313         * lib/mbsspn.c: New file.
9314         * lib/string_.h (strspn): Add a conditional link warning.
9315         (mbsspn): New declaration.
9316         * m4/mbsspn.m4: New file.
9317         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
9318         GNULIB_MBSSPN.
9319         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
9320         * MODULES.html.sh (Internationalization functions): Add mbsspn.
9321
9322 2007-02-04  Bruno Haible  <bruno@clisp.org>
9323
9324         New module mbspbrk.
9325         * modules/mbspbrk: New file.
9326         * lib/mbspbrk.c: New file.
9327         * lib/string_.h (strpbrk): Add a conditional link warning.
9328         (mbspbrk): New declaration.
9329         * m4/mbspbrk.m4: New file.
9330         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
9331         GNULIB_MBSPBRK.
9332         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
9333         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
9334
9335 2007-02-04  Bruno Haible  <bruno@clisp.org>
9336
9337         New module mbscspn.
9338         * modules/mbscspn: New file.
9339         * lib/mbscspn.c: New file.
9340         * lib/string_.h (strcspn): Add a conditional link warning.
9341         (mbscspn): New declaration.
9342         * m4/mbscspn.m4: New file.
9343         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
9344         GNULIB_MBSCSPN.
9345         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
9346         * MODULES.html.sh (Internationalization functions): Add mbscspn.
9347
9348 2007-02-04  Bruno Haible  <bruno@clisp.org>
9349
9350         New module mbscasestr, reduced goal of strcasestr.
9351         * modules/mbscasestr: New file.
9352         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
9353         (mbscasestr): Renamed from strcasestr.
9354         * lib/strcasestr.c: Don't include mbuiter.h.
9355         (strcasestr): Remove support for multibyte locales.
9356         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
9357         Change the conditional link warning.
9358         (mbscasestr): New declaration.
9359         * m4/mbscasestr.m4: New file.
9360         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
9361         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
9362         REPLACE_STRCASESTR.
9363         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
9364         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
9365         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
9366         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
9367         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
9368         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
9369         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
9370         (Depends-on): Remove mbuiter.
9371         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
9372
9373 2007-02-04  Bruno Haible  <bruno@clisp.org>
9374
9375         Simplify handling of strncasecmp.
9376         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
9377         the conditional link warning.
9378         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
9379         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
9380         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
9381         * modules/strcase (configure.ac): Don't invoke
9382         gl_STRING_MODULE_INDICATOR.
9383         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
9384
9385 2007-02-04  Bruno Haible  <bruno@clisp.org>
9386
9387         New module mbscasecmp, reduced goal of strcasecmp.
9388         * modules/mbscasecmp: New file.
9389         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
9390         (mbscasecmp): Renamed from strcasecmp.
9391         * lib/strcasecmp.c: Don't include mbuiter.h.
9392         (strcasecmp): Remove support for multibyte locales.
9393         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
9394         Change the conditional link warning.
9395         (mbscasecmp): New declaration.
9396         * m4/mbscasecmp.m4: New file.
9397         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
9398         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
9399         REPLACE_STRCASECMP.
9400         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
9401         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
9402         GNULIB_MBSCASECMP.
9403         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
9404         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
9405         * modules/strcase (Files): Remove m4/mbrtowc.m4.
9406         (Depends-on): Remove mbuiter.
9407         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
9408
9409 2007-02-04  Bruno Haible  <bruno@clisp.org>
9410
9411         New module mbsstr. Remove module strstr.
9412         * modules/mbsstr: New file.
9413         * modules/strstr: Remove file.
9414         * lib/mbsstr.c: Renamed from lib/strstr.c.
9415         (mbsstr): Renamed from strstr.
9416         * lib/string_.h (strstr): Remove declaration. Change the conditional
9417         link warning.
9418         (mbsstr): New declaration.
9419         * m4/mbsstr.m4: New file.
9420         * m4/strstr.m4: Remove file.
9421         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
9422         REPLACE_STRSTR.
9423         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
9424         Don't initialize GNULIB_STRSTR.
9425         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
9426         substitute GNULIB_STRSTR and REPLACE_STRSTR.
9427         * MODULES.html.sh (Internationalization functions): Add mbsstr.
9428         (Support for systems lacking ANSI C 89): Remove strstr.
9429
9430 2007-02-04  Bruno Haible  <bruno@clisp.org>
9431
9432         New module mbsrchr.
9433         * modules/mbsrchr: New file.
9434         * lib/mbsrchr.c: New file.
9435         * lib/string_.h (strrchr): Add a conditional link warning.
9436         (mbsrchr): New declaration.
9437         * m4/mbsrchr.m4: New file.
9438         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
9439         GNULIB_MBSRCHR.
9440         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
9441         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
9442
9443 2007-02-04  Bruno Haible  <bruno@clisp.org>
9444
9445         New module mbschr.
9446         * modules/mbschr: New file.
9447         * lib/mbschr.c: New file.
9448         * lib/string_.h (strchr): Add a conditional link warning.
9449         (mbschr): New declaration.
9450         * m4/mbschr.m4: New file.
9451         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
9452         GNULIB_MBSCHR.
9453         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
9454         * MODULES.html.sh (Internationalization functions): Add mbschr.
9455
9456 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
9457
9458         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
9459
9460         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
9461
9462 2007-02-04  Bruno Haible  <bruno@clisp.org>
9463
9464         New module description section 'configure.ac-early'.
9465         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
9466         (func_get_autoconf_early_snippet): New function.
9467         (func_import, func_create_testdir): Use it. Remove special cases for
9468         modules 'extensions' and 'lock'.
9469         * modules/extensions (configure.ac-early): Require
9470         gl_USE_SYSTEM_EXTENSIONS.
9471         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
9472
9473 2007-02-04  Bruno Haible  <bruno@clisp.org>
9474
9475         Make use of gcj-4.3's -fsource and -ftarget option.
9476         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
9477         and if so try the options -fsource and -ftarget.
9478         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
9479         source_version, ftarget_option, target_version arguments.
9480         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
9481         (is_envjavac_oldgcj_14_14_usable): Renamed from
9482         is_envjavac_gcj_14_14_usable.
9483         (is_envjavac_oldgcj_14_13_usable): Renamed from
9484         is_envjavac_gcj_14_13_usable.
9485         (is_gcj_present): Update.
9486         (is_gcj_43, is_gcj43_usable): New functions.
9487         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
9488         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
9489         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
9490         try the options -fsource and -ftarget.
9491
9492 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
9493
9494         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
9495         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
9496         larger value.
9497
9498 2007-02-03  Jim Meyering  <jim@meyering.net>
9499
9500         Give tools a better chance to allocate space for very large buffers.
9501         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
9502
9503         Make pwd and readlink work also when run with an unreadable parent dir
9504         on systems with openat support.
9505         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
9506         provided getcwd function, even when we have openat support.
9507         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
9508
9509 2007-02-02  Bruno Haible  <bruno@clisp.org>
9510
9511         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
9512         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
9513         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
9514         portability problems if one of these functions is only used on specific
9515         platforms.
9516         Reported by Paul Eggert.
9517
9518 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
9519
9520         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
9521         is causing more trouble than it's curing.
9522         * lib/regex_internal.h (__mempcpy): Remove.
9523         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
9524         (and make the code a tad smaller to boot).
9525         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
9526
9527 2007-02-02  Jim Meyering  <jim@meyering.net>
9528
9529         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
9530         section, not in the Makefile.am: one.
9531
9532 2007-02-02  Eric Blake  <ebb9@byu.net>
9533
9534         * lib/strchrnul.c: Always include config.h first.
9535
9536         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
9537         gnulib strstr is not necessary here.
9538
9539 2007-02-02  Simon Josefsson  <simon@josefsson.org>
9540
9541         * m4/socklen.m4: Fix typo.
9542
9543 2007-02-02  Eric Blake  <ebb9@byu.net>
9544
9545         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
9546         * modules/netinet_in (Makefile.am): Likewise.
9547
9548 2007-02-01  Bruno Haible  <bruno@clisp.org>
9549
9550         * lib/string_.h (GL_LINK_WARNING): New macro.
9551         (strcasecmp, strstr, strcasestr): If provided by the system,
9552         conditionally define as a macro that leads to a warning instead of to
9553         an error.
9554         (strncasecmp): Conditionally define as a macro that leads to a warning.
9555
9556 2007-02-01  Karl Berry  <karl@gnu.org>
9557
9558         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
9559
9560 2007-02-01  Bruno Haible  <bruno@clisp.org>
9561
9562         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
9563         renamings.
9564
9565 2007-02-01  Eric Blake  <ebb9@byu.net>
9566
9567         * modules/regex (Depends-on): Revert dependence on mempcpy.
9568         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
9569         module's definition of mempcpy.
9570         Reported by Paul Eggert.
9571
9572 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
9573
9574         * lib/string_.h: If the gnulib module XYZ is not present, undefine
9575         the symbol XYZ before redefining it.  This fixes a problem with
9576         programs that don't use XYZ, when compiled on systems that define
9577         XYZ to something else.
9578
9579 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
9580
9581         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
9582         occurs when "mkdir -m foo" creates a setgid directory that is (1)
9583         writeable to group or other and (2) is intended to have a special
9584         mode bit that is set or cleared.  In such a case, the directory
9585         should be neither group- nor other-writeable until the special
9586         mode bits are right.
9587
9588 2007-01-31  Eric Blake  <ebb9@byu.net>
9589
9590         * modules/mountlist (Depends-on): Add strstr.
9591
9592         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
9593         bug.
9594         * modules/string (Makefile.am): Remove redundant replacement.
9595         * modules/regex (Depends-on): Add mempcpy.
9596
9597 2007-01-31  Bruno Haible  <bruno@clisp.org>
9598
9599         New module description field 'Link'.
9600         * gnulib-tool (func_usage): Document --extract-link-directive.
9601         (sed_extract_prog): Recognize 'Link' directive.
9602         (func_get_link_directive): New function.
9603         (func_import): Show summary of link directives.
9604         Handle --extract-link-directive option.
9605         * modules/acl (Link): New section.
9606         * modules/clock-time (Link): New section.
9607         * modules/euidaccess (Link): New section.
9608         * modules/gettext (Link): New section.
9609         * modules/iconv (Link): New section.
9610         * modules/lock (Link): New section.
9611         * modules/nanosleep (Link): New section.
9612         * modules/readline (Link): New section.
9613
9614 2007-01-27  Bruno Haible  <bruno@clisp.org>
9615
9616         Enforce the use of gnulib modules for unportable <string.h> functions.
9617         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
9618         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
9619         (gl_HEADER_STRING_H_BODY): Require it.
9620         * lib/string_.h: If the gnulib module XYZ is not present, redefine
9621         the symbol XYZ to one that gives a link error.
9622         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
9623         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
9624         * modules/mempcpy (configure.ac): Likewise.
9625         * modules/memrchr (configure.ac): Likewise.
9626         * modules/stpcpy (configure.ac): Likewise.
9627         * modules/stpncpy (configure.ac): Likewise.
9628         * modules/strcase (configure.ac): Likewise.
9629         * modules/strcasestr (configure.ac): Likewise.
9630         * modules/strchrnul (configure.ac): Likewise.
9631         * modules/strdup (configure.ac): Likewise.
9632         * modules/strndup (configure.ac): Likewise.
9633         * modules/strnlen (configure.ac): Likewise.
9634         * modules/strpbrk (configure.ac): Likewise.
9635         * modules/strsep (configure.ac): Likewise.
9636         * modules/strstr (configure.ac): Likewise.
9637         * modules/strtok_r (configure.ac): Likewise.
9638
9639 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
9640
9641         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
9642
9643 2007-01-30  Jim Meyering  <jim@meyering.net>
9644
9645         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
9646
9647 2007-01-29  Bruno Haible  <bruno@clisp.org>
9648
9649         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
9650         * lib/execute.c: Likewise.
9651         * lib/pipe.c: Likewise.
9652         * lib/printf-args.h: Likewise.
9653         * lib/printf-args.c: Likewise.
9654         * lib/printf-parse.c: Likewise.
9655         * lib/vasnprintf.c: Likewise.
9656
9657 2007-01-29  Eric Blake  <ebb9@byu.net>
9658
9659         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
9660         declaration.
9661
9662 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
9663
9664         * lib/strptime.h (strptime): Use 'restrict' for args where
9665         POSIX requires this.
9666         * lib/strptime.c (strptime): Likewise.
9667         Change license notice from LGPL to GPL, since gnulib-tool will
9668         change this as needed.
9669         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
9670         defined.
9671         Include "strptime.h" first, to check interface.
9672         Do not #undef _LIBC and _NL_CURRENT.
9673         Do not include <stdlib.h>; no longer needed.
9674         Include "time_r.h" and declare ptime_locale_status
9675         only if _LIBC is not defined.
9676         (__P): Remove unused macro.
9677         (match_string): Bring back glibc version, but use it only if _LIBC
9678         is defined.
9679         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
9680         Remove unnecessary assertion and abort() call.
9681         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
9682         * m4/strptime.m4: Fix serial number comment.
9683         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
9684         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
9685         (Depends-on): Add time_r.
9686
9687 2007-01-29  Bruno Haible  <bruno@clisp.org>
9688
9689         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
9690         strptime.
9691         * modules/strptime (Depends-on): Add stdbool.
9692         * lib/strptime.h: Include <time.h> always. Add comments.
9693
9694 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
9695
9696         * modules/strptime: New file.
9697         * lib/strptime.h: New file.
9698         * lib/strptime.c: New file.
9699         * m4/strptime.m4: New file.
9700
9701 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
9702
9703         * MODULES.html.sh: New module mpsort.
9704         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
9705
9706         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
9707         a circularity problem with HP-UX ia64 reported by Bob Proulx in
9708         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
9709         All uses changed.
9710         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
9711         All uses changed.
9712         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
9713         to _Restrict_.
9714         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
9715         the parameter matches the prototype.
9716
9717 2007-01-28  Jim Meyering  <jim@meyering.net>
9718
9719         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
9720         sys/time.h here, reverting that part of the previous patch:
9721         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
9722
9723 2007-01-28  Bruno Haible  <bruno@clisp.org>
9724
9725         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
9726         value of $(SYS_TIME_H).
9727         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
9728         remove it conditionally, too. [added by Jim Meyering]
9729         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
9730         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
9731         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
9732         GETTIMEOFDAY_REPLACEMENT to 1.
9733
9734 2007-01-28  Bruno Haible  <bruno@clisp.org>
9735
9736         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
9737         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
9738         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
9739         Set UNISTD_H instead of UNISTD_H2.
9740         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
9741
9742 2007-01-28  Bruno Haible  <bruno@clisp.org>
9743
9744         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
9745         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
9746
9747 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9748
9749         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
9750         (func_create_testdir): Ensure C locale for `grep' and `tr'
9751         character ranges.
9752         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
9753         ACLOCAL_AMFLAGS parsing state machine.
9754
9755 2007-01-27  Bruno Haible  <bruno@clisp.org>
9756
9757         * modules/unistr/base: Update.
9758
9759 2007-01-27  Bruno Haible  <bruno@clisp.org>
9760
9761         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
9762         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
9763         * modules/unistr/u32-mbtouc-unsafe: Renamed from
9764         modules/unistr/u32-mbtouc.
9765         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
9766         * lib/unistr.h: Update.
9767         * lib/linebreak.c: Update.
9768         * modules/unistr/u32-mbtouc: Renamed from
9769         modules/unistr/u32-mbtouc-safe.
9770         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
9771         * lib/unistr.h: Update.
9772         * lib/unistr/u32-to-u8.c: Update.
9773         * lib/unistr/u32-to-u16.c: Update.
9774
9775 2007-01-27  Bruno Haible  <bruno@clisp.org>
9776
9777         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
9778         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
9779         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
9780         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
9781         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
9782         * modules/unistr/u16-mbtouc-unsafe: Renamed from
9783         modules/unistr/u16-mbtouc.
9784         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
9785         * lib/unistr.h: Update.
9786         * lib/linebreak.c: Update.
9787         * modules/linebreak: Update.
9788         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
9789         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
9790         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
9791         * modules/unistr/u16-mbtouc: Renamed from
9792         modules/unistr/u16-mbtouc-safe.
9793         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
9794         * lib/unistr.h: Update.
9795         * lib/unistr/u16-to-u8.c: Update.
9796         * modules/unistr/u16-to-u8: Update.
9797         * lib/unistr/u16-to-u32.c: Update.
9798         * modules/unistr/u16-to-u32: Update.
9799
9800 2007-01-27  Bruno Haible  <bruno@clisp.org>
9801
9802         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
9803         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
9804         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
9805         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
9806         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
9807         * modules/unistr/u8-mbtouc-unsafe: Renamed from
9808         modules/unistr/u8-mbtouc.
9809         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
9810         * lib/unistr.h: Update.
9811         * lib/striconveh.c: Update.
9812         * modules/striconveh: Update.
9813         * lib/linebreak.c: Update.
9814         * modules/linebreak: Update.
9815         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
9816         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
9817         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
9818         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
9819         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
9820         * lib/unistr.h: Update.
9821         * lib/striconveh.c: Update.
9822         * modules/striconveh: Update.
9823         * lib/unistr/u8-to-u16.c: Update.
9824         * modules/unistr/u8-to-u16: Update.
9825         * lib/unistr/u8-to-u32.c: Update.
9826         * modules/unistr/u8-to-u32: Update.
9827
9828 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9829
9830         Sync from Libtool.
9831         * lib/argz.c: Do not include strings.h nor memory.h, include
9832         string.h unconditionally.  Patch by Simon Josefsson.
9833
9834 2007-01-27  Bruno Haible  <bruno@clisp.org>
9835
9836         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
9837         from gl_HEADER_STRING_H_BODY.
9838         (gl_HEADER_STRING_H_BODY): Require it.
9839         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
9840         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
9841         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
9842         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
9843         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
9844         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
9845         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
9846         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
9847         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
9848         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
9849         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
9850         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
9851         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
9852         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
9853         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
9854
9855 2007-01-27  Bruno Haible  <bruno@clisp.org>
9856
9857         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
9858         check_PROGRAMS into noinst_PROGRAMS.
9859         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
9860         check_PROGRAMS in this case.
9861         (func_import): Set for_test to false.
9862         (func_create_testdir): Set for_test to true.
9863
9864 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
9865             Bruno Haible  <bruno@clisp.org>
9866
9867         * modules/strcasestr (Files): Remove lib/strcasestr.h.
9868         (Depends-on): Add string.
9869         (Includes): Use <string.h> instead of strcasestr.h.
9870         * modules/string (Makefile.am): Also substitute the value of
9871         REPLACE_STRCASESTR.
9872         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
9873         assume strcasestr is declared in <string.h> not <strings.h>. Also
9874         set REPLACE_STRCASESTR.
9875         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
9876         REPLACE_STRCASESTR.
9877         * lib/strcasestr.h: Remove file.
9878         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
9879         * lib/string_.h (strcasestr): New declaration.
9880
9881 2007-01-27  Bruno Haible  <bruno@clisp.org>
9882
9883         * lib/string_.h: Use 'extern'.
9884
9885 2007-01-27  Jim Meyering  <jim@meyering.net>
9886
9887         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
9888         of set-but-not-used local, "q".
9889
9890         * lib/mempcpy.c: Include <config.h> before <string.h>.
9891         This fixes a compilation error on HP-UX, due to the system's
9892         "restrict"-using mempcpy prototype.
9893
9894 2007-01-26  Bruno Haible  <bruno@clisp.org>
9895
9896         Small optimization.
9897         * lib/javacomp.c: Include c-strstr.h.
9898          (is_envjavac_gcj): Use c_strstr instead of strstr.
9899         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
9900
9901 2007-01-26  Bruno Haible  <bruno@clisp.org>
9902
9903         * MODULES.html.sh (Unicode string functions): Add the new modules.
9904
9905         * modules/uniconv/u32-strconv-to-locale: New file.
9906         * lib/uniconv/u32-strconv-to-locale.c: New file.
9907
9908         * modules/uniconv/u16-strconv-to-locale: New file.
9909         * lib/uniconv/u16-strconv-to-locale.c: New file.
9910
9911         * modules/uniconv/u8-strconv-to-locale: New file.
9912         * lib/uniconv/u8-strconv-to-locale.c: New file.
9913
9914         * modules/uniconv/u32-strconv-from-locale: New file.
9915         * lib/uniconv/u32-strconv-from-locale.c: New file.
9916
9917         * modules/uniconv/u16-strconv-from-locale: New file.
9918         * lib/uniconv/u16-strconv-from-locale.c: New file.
9919
9920         * modules/uniconv/u8-strconv-from-locale: New file.
9921         * lib/uniconv/u8-strconv-from-locale.c: New file.
9922
9923         * modules/uniconv/u32-strconv-to-enc: New file.
9924         * lib/uniconv/u32-strconv-to-enc.c: New file.
9925         * modules/uniconv/u32-strconv-to-enc-tests: New file.
9926         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
9927
9928         * modules/uniconv/u16-strconv-to-enc: New file.
9929         * lib/uniconv/u16-strconv-to-enc.c: New file.
9930         * lib/uniconv/u-strconv-to-enc.h: New file.
9931         * modules/uniconv/u16-strconv-to-enc-tests: New file.
9932         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
9933
9934         * modules/uniconv/u8-strconv-to-enc: New file.
9935         * lib/uniconv/u8-strconv-to-enc.c: New file.
9936         * modules/uniconv/u8-strconv-to-enc-tests: New file.
9937         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
9938
9939         * modules/uniconv/u32-strconv-from-enc: New file.
9940         * lib/uniconv/u32-strconv-from-enc.c: New file.
9941         * modules/uniconv/u32-strconv-from-enc-tests: New file.
9942         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
9943
9944         * modules/uniconv/u16-strconv-from-enc: New file.
9945         * lib/uniconv/u16-strconv-from-enc.c: New file.
9946         * modules/uniconv/u16-strconv-from-enc-tests: New file.
9947         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
9948
9949         * modules/uniconv/u8-strconv-from-enc: New file.
9950         * lib/uniconv/u8-strconv-from-enc.c: New file.
9951         * lib/uniconv/u-strconv-from-enc.h: New file.
9952         * modules/uniconv/u8-strconv-from-enc-tests: New file.
9953         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
9954
9955         * modules/uniconv/u32-conv-from-enc: New file.
9956         * lib/uniconv/u32-conv-from-enc.c: New file.
9957         * modules/uniconv/u32-conv-from-enc-tests: New file.
9958         * tests/uniconv/test-u32-conv-from-enc.c: New file.
9959
9960         * modules/uniconv/u16-conv-from-enc: New file.
9961         * lib/uniconv/u16-conv-from-enc.c: New file.
9962         * lib/uniconv/u-conv-from-enc.h: New file.
9963         * modules/uniconv/u16-conv-from-enc-tests: New file.
9964         * tests/uniconv/test-u16-conv-from-enc.c: New file.
9965
9966         * modules/uniconv/u8-conv-from-enc: New file.
9967         * lib/uniconv/u8-conv-from-enc.c: New file.
9968         * modules/uniconv/u8-conv-from-enc-tests: New file.
9969         * tests/uniconv/test-u8-conv-from-enc.c: New file.
9970
9971         * modules/uniconv/base: New file.
9972         * lib/uniconv.h: New file.
9973
9974 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
9975
9976         * doc/gnulib-tool.texi (Initial import): Update to match current
9977         behavior with strdup module.
9978         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
9979         * lib/memmem.h: Remove; all uses removed.  This is now done
9980         by <string.h>.
9981         * lib/mempcpy.h: Likewise.
9982         * lib/memrchr.h: Likewise.
9983         * lib/stpcpy.h: Likewise.
9984         * lib/stpncpy.h: Likewise.
9985         * lib/strcase.h: Likewise.
9986         * lib/strchrnul.h: Likewise.
9987         * lib/strdup.h: Likewise.
9988         * lib/strndup.h: Likewise.
9989         * lib/strnlen.h: Likewise.
9990         * lib/strpbrk.h: Likewise.
9991         * lib/strsep.h: Likewise.
9992         * lib/strstr.h: Likewise.
9993         * lib/strtok_r.h: Likewise.
9994         * lib/string_.h: New file.
9995         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
9996         Rely on <string.h> instead.
9997         * lib/canon-host.c: Likewise.
9998         * lib/chdir-long.c: Likewise.
9999         * lib/concatpath.c: Likewise.
10000         * lib/exclude.c: Likewise.
10001         * lib/fchdir.c: Likewise.
10002         * lib/getaddrinfo.c: Likewise.
10003         * lib/getcwd.c: Likewise.
10004         * lib/getsubopt.c: Likewise.
10005         * lib/glob.c: Likewise.
10006         * lib/hard-locale.c: Likewise.
10007         * lib/iconvme.c: Likewise.
10008         * lib/javacomp.c: Likewise.
10009         * lib/mempcpy.c: Likewise.
10010         * lib/memrchr.c: Likewise.
10011         * lib/regex_internal.h: Likewise.
10012         * lib/stpncpy.c: Likewise.
10013         * lib/strcasecmp.c: Likewise.
10014         * lib/strchrnul.c: Likewise.
10015         * lib/strdup.c: Likewise.
10016         * lib/striconv.c: Likewise.
10017         * lib/striconveh.c: Likewise.
10018         * lib/striconveha.c: Likewise.
10019         * lib/strncasecmp.c: Likewise.
10020         * lib/strndup.c: Likewise.
10021         * lib/strnlen.c: Likewise.
10022         * lib/strsep.c: Likewise.
10023         * lib/strstr.c: Likewise.
10024         * lib/strtok_r.c: Likewise.
10025         * lib/userspec.c: Likewise.
10026         * lib/w32spawn.h: Likewise.
10027         * lib/xstrndup.c: Likewise.
10028         * lib/mountlist.c (strstr): Remove decl.
10029         * m4/string_h.m4: New file.
10030         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
10031         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
10032         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
10033         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
10034         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
10035         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
10036         Set REPLACE_STRCASECMP if necessary.
10037         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
10038         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
10039         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
10040         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
10041         HAVE_DECL_STRDUP if necessary.
10042         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
10043         since gl_FUNC_STRNDUP does that now.
10044         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
10045         Check for decl here...
10046         (gl_PREREQ_STRNLEN): ... not here.
10047         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
10048         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
10049         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
10050         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
10051         necessary.
10052         * modules/string: New file.
10053         * modules/memmem (Files): Remove special-purpose include file.
10054         (Depends-on): Add string.
10055         (Include): Include <string.h>, not the removed file.
10056         * modules/mempcpy: Likewise.
10057         * modules/memrchr: Likewise.
10058         * modules/stpcpy: Likewise.
10059         * modules/stpncpy: Likewise.
10060         * modules/strcase: Likewise.
10061         * modules/strchrnul: Likewise.
10062         * modules/strdup: Likewise.
10063         * modules/strndup: Likewise.
10064         * modules/strnlen: Likewise.
10065         * modules/strpbrk: Likewise.
10066         * modules/strsep: Likewise.
10067         * modules/strstr: Likewise.
10068         * modules/strtok_r: Likewise.
10069         * tests/test-dirname.c: Don't include "strdup.h", since
10070         <string.h> now suffices.
10071         * tests/test-memmem.c: Don't include "memmem.h", since
10072         <string.h> now suffices.
10073
10074 2007-01-25  Bruno Haible  <bruno@clisp.org>
10075
10076         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
10077         *resultp is 0.
10078
10079         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
10080         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
10081         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
10082         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
10083
10084         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
10085         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
10086         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
10087         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
10088         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
10089         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
10090
10091 2007-01-24  Bruno Haible  <bruno@clisp.org>
10092
10093         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
10094         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
10095         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
10096         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
10097         gl_FUNC_FTS_CORE.
10098         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
10099         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
10100         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
10101         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
10102         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
10103         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
10104         gl_FUNC_FCHOWNAT.
10105         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
10106         gl_FUNC_STRFTIME.
10107         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
10108         Reported by Ralf Wildenhues.
10109
10110 2007-01-24  Bruno Haible  <bruno@clisp.org>
10111
10112         Drop AC_REQUIRE calls that are redundant with the module dependencies.
10113         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
10114         gl_GETADDRINFO.
10115         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
10116         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
10117         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
10118
10119 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
10120
10121         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
10122         Don't use 'exit'; just return from 'main'.
10123         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
10124
10125         * lib/fnmatch_.h: Readjust white space and comments to match
10126         glibc, to avoid spurious diffs.
10127
10128 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
10129
10130         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
10131         2004-12-01 change by Jakub Jelinek, since this code won't compile
10132         if !LIBC.  Problem reported by Bob Proulx.
10133
10134 2007-01-23  Bruno Haible  <bruno@clisp.org>
10135
10136         * lib/striconveh.c: Include c-strcaseeq.h.
10137         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
10138         * modules/striconveh (Depends-on): Add c-strcaseeq.
10139
10140 2007-01-23  Bruno Haible  <bruno@clisp.org>
10141
10142         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
10143
10144         * modules/c-strcaseeq: New file.
10145         * lib/c-strcaseeq.h: New file.
10146
10147         * modules/streq: New file.
10148         * lib/streq.h: New file.
10149
10150 2007-01-23  Bruno Haible  <bruno@clisp.org>
10151
10152         * modules/striconveha-tests: New file.
10153         * tests/test-striconveha.c: New file.
10154
10155         * lib/striconveha.h: Include <stdbool.h>.
10156         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
10157         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
10158         (mem_iconveha_notranslit): Renamed from mem_iconveha.
10159         (mem_iconveha): New function.
10160         (str_iconveha_notranslit): Renamed from str_iconveha.
10161         (str_iconveha): New function.
10162         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
10163         c-strcase.
10164
10165 2007-01-23  Bruno Haible  <bruno@clisp.org>
10166
10167         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
10168         encodings without forgiving before trying any encoding with handler.
10169         (str_iconveha): Try all encodings without forgiving before trying any
10170         encoding with handler.
10171
10172 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
10173
10174         Import the following changes from libc.
10175
10176         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
10177
10178         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
10179
10180         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
10181
10182         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
10183         normal_bracket label.
10184
10185         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
10186
10187         [BZ #361]
10188         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
10189         to normal_bracket after fetching the next character.
10190
10191 2007-01-22  Bruno Haible  <bruno@clisp.org>
10192
10193         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
10194         argument.
10195         * lib/striconveh.c (iconv_carefully_1): New function.
10196         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
10197         argument.
10198         (str_cd_iconveh): Update.
10199         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
10200         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
10201         * tests/test-striconveh.c (MAGIC): New macro.
10202         (new_offsets): New function.
10203         (main): Test call with and without offsets.
10204
10205 2007-01-22  Bruno Haible  <bruno@clisp.org>
10206
10207         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
10208         * modules/sys_select (Makefile.am): Likewise.
10209         * modules/sys_socket (Makefile.am): Likewise.
10210         * modules/sys_time (Makefile.am): Likewise.
10211
10212 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
10213
10214         * modules/gettimeofday (License): Change from GPL to LGPL, since
10215         gettimeofday is a library function.
10216
10217 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10218
10219         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
10220
10221 2007-01-21  Bruno Haible  <bruno@clisp.org>
10222
10223         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
10224
10225 2007-01-21  Bruno Haible  <bruno@clisp.org>
10226
10227         * modules/striconveha: New file.
10228         * lib/striconveha.h: New file.
10229         * lib/striconveha.c: New file.
10230         * MODULES.html.sh (Internationalization functions): Add striconveha.
10231         * lib/striconv.c (str_iconv): Optimize the case of an empty input
10232         string.
10233         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
10234
10235 2007-01-21  Bruno Haible  <bruno@clisp.org>
10236
10237         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
10238         * lib/striconveh.c (str_iconveh): Likewise.
10239
10240 2007-01-21  Bruno Haible  <bruno@clisp.org>
10241
10242         * lib/striconveh.h (mem_iconveh): New declaration.
10243         * lib/striconveh.c (mem_iconveh): New function.
10244         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
10245
10246 2007-01-21  Bruno Haible  <bruno@clisp.org>
10247
10248         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
10249
10250         * lib/striconveh.h (mem_cd_iconveh): Change specification.
10251         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
10252         original result buffer.
10253         (str_cd_iconveh): Update.
10254         * tests/test-striconveh.c (main): Update.
10255
10256         * lib/striconv.h (mem_cd_iconv): Change specification.
10257         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
10258         result buffer.
10259         (str_cd_iconv): Update.
10260         * tests/test-striconv.c (main): Update.
10261
10262 2007-01-21  Bruno Haible  <bruno@clisp.org>
10263
10264         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
10265
10266 2007-01-20  Jim Meyering  <jim@meyering.net>
10267
10268         * lib/userspec.c (parse_with_separator): If a user or group string
10269         starts with "+", skip the corresponding name-to-ID look-up, since
10270         such a look-up must fail: user and group names may not include "+".
10271
10272 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
10273
10274         * lib/poll.c: Include sys/time.h and time.h unconditionally,
10275         since we now assume the sys_time module.
10276         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
10277         check for sys/time.h; no longer needed.
10278         * modules/poll (Depends-on): Depend on sys_time.
10279
10280 2007-01-18  Bruno Haible  <bruno@clisp.org>
10281
10282         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
10283         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
10284
10285         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
10286         gettimeofday.
10287
10288         * tests/test-gettimeofday.c: Include <time.h>.
10289         (dummy): Remove variable.
10290
10291         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
10292         gl_HEADER_SYS_TIME_H.
10293         (gl_HEADER_SYS_TIME_H): New macro.
10294
10295         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
10296         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
10297         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
10298         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
10299         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
10300         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
10301         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
10302         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
10303         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
10304         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
10305         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
10306
10307         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
10308         last change; it caused a compilation error when cross-compiling to
10309         Cygwin.
10310
10311 2007-01-18  Jim Meyering  <jim@meyering.net>
10312
10313         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
10314         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
10315         than the race-prone "test -d sys || mkdir sys".
10316         (configure.ac): Use AC_PROG_MKDIR_P.
10317         * modules/sys_select: Likewise.
10318         * modules/sys_socket: Likewise.
10319         * modules/sys_time: Likewise.
10320
10321 2007-01-18  Eric Blake  <ebb9@byu.net>
10322
10323         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
10324         replace gettimeofday.
10325         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
10326         name, to avoid infinite recursion.
10327
10328 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
10329
10330         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
10331         module sys_time.
10332         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
10333         assume timespec.h defines struct timeval.
10334         * lib/settime.c: Likewise.
10335         * lib/utimens.c: Likewise.
10336         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
10337         since we now assume the gettimeofday module.
10338         * lib/tempname.c (__gen_tempname): Likewise.
10339         * lib/gettimeofday.h: Remove.
10340         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
10341         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
10342         Include <time.h>, for 'time()'.
10343         (localtime_buffer_addr): Also use this workaround if
10344         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
10345         to simplify the uses.  All uses changed.
10346         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
10347         that #undef is inside {}, and 'const' follows type name consistently.
10348         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
10349         (gettimeofday): Do not use the maximum possible value for
10350         tv->tv_usec, since that might break usages other than ls.c.
10351         Instead, we'll leave ls.c alone.  This undoes today's patch
10352         by Bruno.  Add a compile-time warning for 1s-clock resolution;
10353         we've never observed the problem but might as well keep the
10354         canary.
10355         * lib/nanosleep.c: Include timespec.h first, for interface check.
10356         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
10357         now assume the sys_time module.
10358         * lib/tempname.c: Likewise.
10359         * lib/timespec.h: Likewise.
10360         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
10361         needed.
10362         * lib/strftime.c: Likewise.
10363         * lib/timespec.h: Likewise.
10364         * lib/posixtm.c: Include posixtm.h first, for interface check.
10365         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
10366         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
10367         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
10368         * lib/sys_time_.h: New file.
10369         * lib/timespec.h (struct timespec): Use long int, not long.
10370         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
10371         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
10372         Remove obsolescent call to AC_HEADER_TIME.
10373         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
10374         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
10375         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
10376         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
10377         Likewise.
10378         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
10379         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
10380         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
10381         into the sys_time module.  Check for gettimeofday just once.
10382         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
10383         for gettimeofday signature to just check the signature.  Merely
10384         compile it, since linking doesn't test signature.  Improve test for
10385         whether gettimeofday.o is actually needed.
10386         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
10387         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
10388         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
10389         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
10390         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
10391         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
10392         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
10393         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
10394         than worrying about sys/time.h.
10395         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
10396         Don't bother worrying about TIME_WITH_SYS_TIME.
10397         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
10398         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
10399         * m4/sys_time_h.m4: New file.
10400         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
10401         Don't include sys/time.h.  Return from main rather than exiting.
10402         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
10403         all uses changed.
10404         * modules/gethrxtime (Depends-on): Add sys_time.
10405         * modules/gettime (Depends-on): Likewise.
10406         * modules/gettimeofday (Depends-on): Likewise.
10407         * modules/nanosleep (Depends-on): Likewise.
10408         * modules/settime (Depends-on): Likewise.
10409         * modules/tempname (Depends-on): Likewise.
10410         * modules/utimens (Depends-on): Likewise.
10411         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
10412         (Include:) Change back to <sys/time.h>.
10413         (Maintainer:) Add self.
10414         * modules/sys_time: New file.
10415         * modules/tempname (Depends-on): Add gettimeofday.
10416         * tests/test-gettimeofday.c: Include <sys/time.h>
10417         rather than gettimeofday.h.
10418
10419 2007-01-17  Bruno Haible  <bruno@clisp.org>
10420
10421         * gnulib-tool (func_get_license): Revert last patch. Instead, let
10422         the license default to GPL.
10423         (func_create_testdir): Don't complain if a module is LGPL and its
10424         tests module depends on GPLed modules.
10425
10426 2007-01-17  Bruno Haible  <bruno@clisp.org>
10427
10428         * lib/gettimeofday.c (gettimeofday): Add code for the case
10429         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
10430         maximum possible value for tv->tv_usec, rather than the minimum one.
10431
10432 2005-10-08  Martin Lambers  <marlam@marlam.de>
10433 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
10434 2007-01-16  Bruno Haible  <bruno@clisp.org>
10435
10436         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
10437         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
10438         gl_FUNC_GETTIMEOFDAY.
10439         (Include): Add gettimeofday.h.
10440         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
10441         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
10442         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
10443         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
10444         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
10445         * lib/gettimeofday.h: New file.
10446         * lib/gettimeofday.c: Include <sys/timeb.h>.
10447         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
10448         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
10449         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
10450         fall back on time().
10451
10452         * tests/test-gettimeofday.c: New file.
10453         * modules/gettimeofday-tests: New file.
10454
10455 2007-01-16  Eric Blake  <ebb9@byu.net>
10456
10457         * modules/fnmatch (Depends-on): Depend on wchar.
10458         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
10459         * m4/fnmatch.m4: Likewise.
10460         * modules/mbchar (Makefile.am): Assume <wchar.h>.
10461         * m4/mbchar.m4: Likewise.
10462         * modules/mbswidth (Depends-on): Depend on wchar.
10463         * lib/mbswidth.c: Assume <wchar.h>.
10464         * m4/mbswidth.m4: Likewise.
10465         * modules/quotearg (Depends-on): Depend on wchar.
10466         * lib/quotearg.c: Assume <wchar.h>.
10467         * m4/quotearg.m4: Likewise.
10468         * modules/regex (Depends-on): Depend on wchar.
10469         * lib/regex_internal.h: Assume <wchar.h>.
10470         * m4/regex.m4: Likewise.
10471         * modules/stdint (Depends-on): Depend on wchar.
10472         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
10473         * m4/stdint.m4: Likewise.
10474         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
10475         * modules/strftime (Depends-on): Depend on wchar.
10476         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
10477         * modules/strtol (Depends-on): Depend on wchar.
10478         * lib/strtol.c: Assume <wchar.h>.
10479         * modules/wcwidth (Depends-on): Depend on wchar.
10480         * lib/wcwidth.h: Assume <wchar.h>.
10481         * m4/wcwidth.m4: Likewise.
10482
10483 2007-01-16  Bruno Haible  <bruno@clisp.org>
10484
10485         * modules/csharpexec-script: New, created from...
10486         * modules/csharpexec: ... this.
10487
10488 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
10489
10490         * modules/javaexec-script: New, created from...
10491         * modules/javaexec: ... this.
10492
10493 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10494
10495         * modules/poll (Dependencies): Add sys_select.
10496
10497 2007-01-15  Jim Meyering  <jim@meyering.net>
10498
10499         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
10500         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
10501         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
10502         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
10503
10504 2007-01-15  Bruno Haible  <bruno@clisp.org>
10505
10506         * modules/striconveh: New file.
10507         * lib/striconveh.h: New file.
10508         * lib/striconveh.c: New file.
10509         * MODULES.html.sh (Internationalization functions): Add striconveh.
10510
10511         * modules/striconveh-tests: New file.
10512         * tests/test-striconveh.c: New file.
10513
10514 2007-01-15  Bruno Haible  <bruno@clisp.org>
10515
10516         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
10517         not from GNU libiconv or GNU libc.
10518
10519 2007-01-15  Bruno Haible  <bruno@clisp.org>
10520
10521         * doc/gnulib-intro.texi (Copyright): Explain the different license
10522         terms for module descriptions, autoconf macros, tests, documentation.
10523
10524 2007-01-14  Bruno Haible  <bruno@clisp.org>
10525
10526         * modules/striconv-tests: New file.
10527         * tests/test-striconv.c: New file.
10528
10529 2007-01-14  Bruno Haible  <bruno@clisp.org>
10530
10531         * modules/iconv-tests: New file.
10532         * tests/test-iconv.c: New file.
10533
10534 2007-01-14  Bruno Haible  <bruno@clisp.org>
10535
10536         * gnulib-tool (func_get_license): For test modules, use the license of
10537         the main module.
10538
10539 2007-01-14  Bruno Haible  <bruno@clisp.org>
10540
10541         * modules/iconv (Include): Clarify that <iconv.h> can only be included
10542         if iconv is found to exist.
10543
10544 2007-01-14  Bruno Haible  <bruno@clisp.org>
10545
10546         * modules/c-ctype-tests: New file.
10547         * tests/test-c-ctype.c: New file.
10548
10549 2007-01-14  Bruno Haible  <bruno@clisp.org>
10550
10551         * modules/binary-io-tests: New file.
10552         * tests/test-binary-io.sh: New file.
10553         * tests/test-binary-io.c: New file.
10554
10555 2007-01-14  Bruno Haible  <bruno@clisp.org>
10556
10557         * modules/array-oset-tests: New file.
10558         * tests/test-array_oset.c: New file.
10559
10560 2007-01-14  Bruno Haible  <bruno@clisp.org>
10561
10562         * modules/array-list-tests: New file.
10563         * tests/test-array_list.c: New file.
10564
10565 2007-01-14  Bruno Haible  <bruno@clisp.org>
10566
10567         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
10568         and make.
10569         Reported by Simon Josefsson in
10570         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
10571
10572 2007-01-14  Bruno Haible  <bruno@clisp.org>
10573
10574         * modules/allocsa-tests: New file.
10575         * tests/test-allocsa.c: New file.
10576
10577 2007-01-14  Bruno Haible  <bruno@clisp.org>
10578
10579         * modules/fchdir (Depends-on): Add absolute-header.
10580         * modules/unistd (Depends-on): Likewise.
10581
10582 2006-12-30  Bruno Haible  <bruno@clisp.org>
10583
10584         * modules/fchdir: New file.
10585         * modules/unistd (Files): Add lib/unistd_.h.
10586         (Makefile.am): Generate unistd.h from unistd_.h.
10587         * lib/fchdir.c: New file.
10588         * lib/dirent_.h: New file.
10589         * lib/unistd_.h: New file.
10590         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
10591         * m4/fchdir.m4: New file.
10592         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
10593         (gl_HEADER_UNISTD): Invoke it.
10594         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
10595         function.
10596         * lib/backupfile.c (opendir, closedir): Undefine.
10597         * lib/chown.c (open, close): Undefine.
10598         * lib/clean-temp.c (open, close): Undefine.
10599         * lib/copy-file.c (open, close): Undefine.
10600         * lib/execute.c (open, close): Undefine.
10601         * lib/fsusage.c (open, close): Undefine.
10602         * lib/gc-gnulib.c (open, close): Undefine.
10603         * lib/getcwd.c (opendir, closedir): Undefine.
10604         * lib/glob.c (opendir, closedir): Undefine.
10605         * lib/javacomp.c (open, close): Undefine.
10606         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
10607         * lib/openat-proc.c (open, close): Undefine.
10608         * lib/pagealign_alloc.c (open, close): Undefine.
10609         * lib/pipe.c (open, close): Undefine.
10610         * lib/progreloc.c (open, close): Undefine.
10611         * lib/savedir.c (opendir, closedir): Undefine.
10612         * lib/utime.c (open, close): Undefine.
10613         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
10614
10615 2007-01-10  Bruno Haible  <bruno@clisp.org>
10616
10617         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
10618
10619 2007-01-12  Eric Blake  <ebb9@byu.net>
10620
10621         Provide a robust <wchar.h>.  Further simplifications are now
10622         possible in other modules, but not included here.
10623         * modules/wchar: New module.
10624         * m4/wchar.m4: New file.
10625         * lib/wchar_.h: Likewise.
10626         * modules/mbchar (Depends-on): Depend on wchar, as the first use
10627         of the new module.
10628         * MODULES.html.sh (Extended multibyte and wide character utilities):
10629         New section.
10630
10631 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
10632
10633         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
10634         to a reasonable default for memory allocation.
10635         (xreadlink): Don't allocate a huge buffer, to work around a buggy
10636         file system that reports garbage st_size values for symlinks.
10637         Problem reported by Liyang Hu.
10638
10639 2007-01-11  Simon Josefsson  <simon@josefsson.org>
10640
10641         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
10642         Emacs .#* auto-save files).
10643
10644 2007-01-11  Bruno Haible  <bruno@clisp.org>
10645
10646         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
10647         directory.
10648
10649 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
10650
10651         Use @...@ consistently in lib/wctype_.h.
10652         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
10653         on it being set to 1 or 0.
10654         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
10655         go back to AC_SUBSTing it.
10656         * modules/wctype (Makefile.am): Undo previous change.
10657
10658 2007-01-10  Eric Blake  <ebb9@byu.net>
10659
10660         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
10661         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
10662         * modules/wctype (Makefile.am): Likewise.
10663         Reported by Chris McGuire.
10664
10665 2007-01-10  Jim Meyering  <jim@meyering.net>
10666
10667         fts.c: a small readability/maintainability improvement
10668         * lib/fts.c (fts_read): Make this code slightly more readable and
10669         maintainable by hoisting the "sp->fts_cur = p" assignments to
10670         immediately follow the statements that set P.  Derived from
10671         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
10672
10673 2007-01-10  Eric Blake  <ebb9@byu.net>
10674
10675         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
10676         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
10677         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10678         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
10679         Reported by Chris McGuire.
10680
10681 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10682
10683         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
10684         in sed script.
10685
10686 2007-01-09  Bruno Haible  <bruno@clisp.org>
10687
10688         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
10689         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
10690         variables.
10691         (func_module): Use them.
10692
10693 2007-01-09  Bruno Haible  <bruno@clisp.org>
10694
10695         * modules/unistr/base: New file.
10696         * lib/unistr.h: New file.
10697
10698         * modules/unistr/u8-to-u16: New file.
10699         * lib/unistr/u8-to-u16.c: New file.
10700
10701         * modules/unistr/u8-to-u32: New file.
10702         * lib/unistr/u8-to-u32.c: New file.
10703
10704         * modules/unistr/u16-to-u8: New file.
10705         * lib/unistr/u16-to-u8.c: New file.
10706
10707         * modules/unistr/u16-to-u32: New file.
10708         * lib/unistr/u16-to-u32.c: New file.
10709
10710         * modules/unistr/u32-to-u8: New file.
10711         * lib/unistr/u32-to-u8.c: New file.
10712
10713         * modules/unistr/u32-to-u16: New file.
10714         * lib/unistr/u32-to-u16.c: New file.
10715
10716         * modules/unistr/u8-check: New file.
10717         * modules/unistr/u16-check: New file.
10718         * modules/unistr/u32-check: New file.
10719         * lib/unistr/u8-check.c: New file.
10720         * lib/unistr/u16-check.c: New file.
10721         * lib/unistr/u32-check.c: New file.
10722
10723         * modules/unistr/u8-chr: New file.
10724         * modules/unistr/u16-chr: New file.
10725         * modules/unistr/u32-chr: New file.
10726         * lib/unistr/u8-chr.c: New file.
10727         * lib/unistr/u16-chr.c: New file.
10728         * lib/unistr/u32-chr.c: New file.
10729
10730         * modules/unistr/u8-cmp: New file.
10731         * modules/unistr/u16-cmp: New file.
10732         * modules/unistr/u32-cmp: New file.
10733         * lib/unistr/u8-cmp.c: New file.
10734         * lib/unistr/u16-cmp.c: New file.
10735         * lib/unistr/u32-cmp.c: New file.
10736
10737         * modules/unistr/u8-cpy: New file.
10738         * modules/unistr/u16-cpy: New file.
10739         * modules/unistr/u32-cpy: New file.
10740         * lib/unistr/u8-cpy.c: New file.
10741         * lib/unistr/u16-cpy.c: New file.
10742         * lib/unistr/u32-cpy.c: New file.
10743         * lib/unistr/u-cpy.h: New file.
10744
10745         * modules/unistr/u8-cpy-alloc: New file.
10746         * modules/unistr/u16-cpy-alloc: New file.
10747         * modules/unistr/u32-cpy-alloc: New file.
10748         * lib/unistr/u8-cpy-alloc.c: New file.
10749         * lib/unistr/u16-cpy-alloc.c: New file.
10750         * lib/unistr/u32-cpy-alloc.c: New file.
10751         * lib/unistr/u-cpy-alloc.h: New file.
10752
10753         * modules/unistr/u8-endswith: New file.
10754         * modules/unistr/u16-endswith: New file.
10755         * modules/unistr/u32-endswith: New file.
10756         * lib/unistr/u8-endswith.c: New file.
10757         * lib/unistr/u16-endswith.c: New file.
10758         * lib/unistr/u32-endswith.c: New file.
10759         * lib/unistr/u-endswith.h: New file.
10760
10761         * modules/unistr/u8-mblen: New file.
10762         * modules/unistr/u16-mblen: New file.
10763         * modules/unistr/u32-mblen: New file.
10764         * lib/unistr/u8-mblen.c: New file.
10765         * lib/unistr/u16-mblen.c: New file.
10766         * lib/unistr/u32-mblen.c: New file.
10767
10768         * modules/unistr/u8-mbtouc: New file.
10769         * modules/unistr/u16-mbtouc: New file.
10770         * modules/unistr/u32-mbtouc: New file.
10771         * lib/unistr/u8-mbtouc.c: New file.
10772         * lib/unistr/u16-mbtouc.c: New file.
10773         * lib/unistr/u32-mbtouc.c: New file.
10774
10775         * modules/unistr/u8-mbtouc-safe: New file.
10776         * modules/unistr/u16-mbtouc-safe: New file.
10777         * modules/unistr/u32-mbtouc-safe: New file.
10778         * lib/unistr/u8-mbtouc-safe.c: New file.
10779         * lib/unistr/u16-mbtouc-safe.c: New file.
10780         * lib/unistr/u32-mbtouc-safe.c: New file.
10781
10782         * modules/unistr/u8-move: New file.
10783         * modules/unistr/u16-move: New file.
10784         * modules/unistr/u32-move: New file.
10785         * lib/unistr/u8-move.c: New file.
10786         * lib/unistr/u16-move.c: New file.
10787         * lib/unistr/u32-move.c: New file.
10788         * lib/unistr/u-move.h: New file.
10789
10790         * modules/unistr/u8-next: New file.
10791         * modules/unistr/u16-next: New file.
10792         * modules/unistr/u32-next: New file.
10793         * lib/unistr/u8-next.c: New file.
10794         * lib/unistr/u16-next.c: New file.
10795         * lib/unistr/u32-next.c: New file.
10796
10797         * modules/unistr/u8-prev: New file.
10798         * modules/unistr/u16-prev: New file.
10799         * modules/unistr/u32-prev: New file.
10800         * lib/unistr/u8-prev.c: New file.
10801         * lib/unistr/u16-prev.c: New file.
10802         * lib/unistr/u32-prev.c: New file.
10803
10804         * modules/unistr/u8-set: New file.
10805         * modules/unistr/u16-set: New file.
10806         * modules/unistr/u32-set: New file.
10807         * lib/unistr/u8-set.c: New file.
10808         * lib/unistr/u16-set.c: New file.
10809         * lib/unistr/u32-set.c: New file.
10810         * lib/unistr/u-set.h: New file.
10811
10812         * modules/unistr/u8-startswith: New file.
10813         * modules/unistr/u16-startswith: New file.
10814         * modules/unistr/u32-startswith: New file.
10815         * lib/unistr/u8-startswith.c: New file.
10816         * lib/unistr/u16-startswith.c: New file.
10817         * lib/unistr/u32-startswith.c: New file.
10818         * lib/unistr/u-startswith.h: New file.
10819
10820         * modules/unistr/u8-stpcpy: New file.
10821         * modules/unistr/u16-stpcpy: New file.
10822         * modules/unistr/u32-stpcpy: New file.
10823         * lib/unistr/u8-stpcpy.c: New file.
10824         * lib/unistr/u16-stpcpy.c: New file.
10825         * lib/unistr/u32-stpcpy.c: New file.
10826         * lib/unistr/u-stpcpy.h: New file.
10827
10828         * modules/unistr/u8-stpncpy: New file.
10829         * modules/unistr/u16-stpncpy: New file.
10830         * modules/unistr/u32-stpncpy: New file.
10831         * lib/unistr/u8-stpncpy.c: New file.
10832         * lib/unistr/u16-stpncpy.c: New file.
10833         * lib/unistr/u32-stpncpy.c: New file.
10834         * lib/unistr/u-stpncpy.h: New file.
10835
10836         * modules/unistr/u8-strcat: New file.
10837         * modules/unistr/u16-strcat: New file.
10838         * modules/unistr/u32-strcat: New file.
10839         * lib/unistr/u8-strcat.c: New file.
10840         * lib/unistr/u16-strcat.c: New file.
10841         * lib/unistr/u32-strcat.c: New file.
10842         * lib/unistr/u-strcat.h: New file.
10843
10844         * modules/unistr/u8-strchr: New file.
10845         * modules/unistr/u16-strchr: New file.
10846         * modules/unistr/u32-strchr: New file.
10847         * lib/unistr/u8-strchr.c: New file.
10848         * lib/unistr/u16-strchr.c: New file.
10849         * lib/unistr/u32-strchr.c: New file.
10850
10851         * modules/unistr/u8-strcmp: New file.
10852         * modules/unistr/u16-strcmp: New file.
10853         * modules/unistr/u32-strcmp: New file.
10854         * lib/unistr/u8-strcmp.c: New file.
10855         * lib/unistr/u16-strcmp.c: New file.
10856         * lib/unistr/u32-strcmp.c: New file.
10857
10858         * modules/unistr/u8-strcpy: New file.
10859         * modules/unistr/u16-strcpy: New file.
10860         * modules/unistr/u32-strcpy: New file.
10861         * lib/unistr/u8-strcpy.c: New file.
10862         * lib/unistr/u16-strcpy.c: New file.
10863         * lib/unistr/u32-strcpy.c: New file.
10864         * lib/unistr/u-strcpy.h: New file.
10865
10866         * modules/unistr/u8-strcspn: New file.
10867         * modules/unistr/u16-strcspn: New file.
10868         * modules/unistr/u32-strcspn: New file.
10869         * lib/unistr/u8-strcspn.c: New file.
10870         * lib/unistr/u16-strcspn.c: New file.
10871         * lib/unistr/u32-strcspn.c: New file.
10872         * lib/unistr/u-strcspn.h: New file.
10873
10874         * modules/unistr/u8-strdup: New file.
10875         * modules/unistr/u16-strdup: New file.
10876         * modules/unistr/u32-strdup: New file.
10877         * lib/unistr/u8-strdup.c: New file.
10878         * lib/unistr/u16-strdup.c: New file.
10879         * lib/unistr/u32-strdup.c: New file.
10880         * lib/unistr/u-strdup.h: New file.
10881
10882         * modules/unistr/u8-strlen: New file.
10883         * modules/unistr/u16-strlen: New file.
10884         * modules/unistr/u32-strlen: New file.
10885         * lib/unistr/u8-strlen.c: New file.
10886         * lib/unistr/u16-strlen.c: New file.
10887         * lib/unistr/u32-strlen.c: New file.
10888         * lib/unistr/u-strlen.h: New file.
10889
10890         * modules/unistr/u8-strmblen: New file.
10891         * modules/unistr/u16-strmblen: New file.
10892         * modules/unistr/u32-strmblen: New file.
10893         * lib/unistr/u8-strmblen.c: New file.
10894         * lib/unistr/u16-strmblen.c: New file.
10895         * lib/unistr/u32-strmblen.c: New file.
10896
10897         * modules/unistr/u8-strmbtouc: New file.
10898         * modules/unistr/u16-strmbtouc: New file.
10899         * modules/unistr/u32-strmbtouc: New file.
10900         * lib/unistr/u8-strmbtouc.c: New file.
10901         * lib/unistr/u16-strmbtouc.c: New file.
10902         * lib/unistr/u32-strmbtouc.c: New file.
10903
10904         * modules/unistr/u8-strncat: New file.
10905         * modules/unistr/u16-strncat: New file.
10906         * modules/unistr/u32-strncat: New file.
10907         * lib/unistr/u8-strncat.c: New file.
10908         * lib/unistr/u16-strncat.c: New file.
10909         * lib/unistr/u32-strncat.c: New file.
10910         * lib/unistr/u-strncat.h: New file.
10911
10912         * modules/unistr/u8-strncmp: New file.
10913         * modules/unistr/u16-strncmp: New file.
10914         * modules/unistr/u32-strncmp: New file.
10915         * lib/unistr/u8-strncmp.c: New file.
10916         * lib/unistr/u16-strncmp.c: New file.
10917         * lib/unistr/u32-strncmp.c: New file.
10918
10919         * modules/unistr/u8-strncpy: New file.
10920         * modules/unistr/u16-strncpy: New file.
10921         * modules/unistr/u32-strncpy: New file.
10922         * lib/unistr/u8-strncpy.c: New file.
10923         * lib/unistr/u16-strncpy.c: New file.
10924         * lib/unistr/u32-strncpy.c: New file.
10925         * lib/unistr/u-strncpy.h: New file.
10926
10927         * modules/unistr/u8-strnlen: New file.
10928         * modules/unistr/u16-strnlen: New file.
10929         * modules/unistr/u32-strnlen: New file.
10930         * lib/unistr/u8-strnlen.c: New file.
10931         * lib/unistr/u16-strnlen.c: New file.
10932         * lib/unistr/u32-strnlen.c: New file.
10933         * lib/unistr/u-strnlen.h: New file.
10934
10935         * modules/unistr/u8-strpbrk: New file.
10936         * modules/unistr/u16-strpbrk: New file.
10937         * modules/unistr/u32-strpbrk: New file.
10938         * lib/unistr/u8-strpbrk.c: New file.
10939         * lib/unistr/u16-strpbrk.c: New file.
10940         * lib/unistr/u32-strpbrk.c: New file.
10941         * lib/unistr/u-strpbrk.h: New file.
10942
10943         * modules/unistr/u8-strrchr: New file.
10944         * modules/unistr/u16-strrchr: New file.
10945         * modules/unistr/u32-strrchr: New file.
10946         * lib/unistr/u8-strrchr.c: New file.
10947         * lib/unistr/u16-strrchr.c: New file.
10948         * lib/unistr/u32-strrchr.c: New file.
10949
10950         * modules/unistr/u8-strspn: New file.
10951         * modules/unistr/u16-strspn: New file.
10952         * modules/unistr/u32-strspn: New file.
10953         * lib/unistr/u8-strspn.c: New file.
10954         * lib/unistr/u16-strspn.c: New file.
10955         * lib/unistr/u32-strspn.c: New file.
10956         * lib/unistr/u-strspn.h: New file.
10957
10958         * modules/unistr/u8-strstr: New file.
10959         * modules/unistr/u16-strstr: New file.
10960         * modules/unistr/u32-strstr: New file.
10961         * lib/unistr/u8-strstr.c: New file.
10962         * lib/unistr/u16-strstr.c: New file.
10963         * lib/unistr/u32-strstr.c: New file.
10964         * lib/unistr/u-strstr.h: New file.
10965
10966         * modules/unistr/u8-strtok: New file.
10967         * modules/unistr/u16-strtok: New file.
10968         * modules/unistr/u32-strtok: New file.
10969         * lib/unistr/u8-strtok.c: New file.
10970         * lib/unistr/u16-strtok.c: New file.
10971         * lib/unistr/u32-strtok.c: New file.
10972         * lib/unistr/u-strtok.h: New file.
10973
10974         * modules/unistr/u8-uctomb: New file.
10975         * modules/unistr/u16-uctomb: New file.
10976         * modules/unistr/u32-uctomb: New file.
10977         * lib/unistr/u8-uctomb.c: New file.
10978         * lib/unistr/u16-uctomb.c: New file.
10979         * lib/unistr/u32-uctomb.c: New file.
10980
10981         * MODULES.html.sh (Unicode string functions): Add the new modules.
10982
10983 2007-01-08  Bruno Haible  <bruno@clisp.org>
10984
10985         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
10986         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
10987         subdirectories.
10988
10989 2007-01-08  Karl Berry  <karl@gnu.org>
10990
10991         * doc/error.texi: mention that main() fns must set program_name
10992         when progname is used.
10993
10994 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
10995
10996         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
10997         WCTYPE_H is empty, for the benefit of builds from non-distclean
10998         directories.  Problem reported by Eric Blake in
10999         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
11000
11001 2007-01-08  Bruno Haible  <bruno@clisp.org>
11002
11003         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
11004         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
11005         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
11006         PROVIDE_CANONICALIZE_FILENAME_MODE.
11007         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
11008
11009 2007-01-08  Bruno Haible  <bruno@clisp.org>
11010
11011         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
11012         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
11013         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
11014         * lib/fts.c: Likewise.
11015         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
11016
11017 2006-12-25  Bruno Haible  <bruno@clisp.org>
11018
11019         * modules/utf8-ucs4-safe: New file.
11020         * lib/utf8-ucs4-safe.h: New file.
11021         * lib/unistr/utf8-ucs4-safe.c: New file.
11022
11023         * modules/utf16-ucs4-safe: New file.
11024         * lib/utf16-ucs4-safe.h: New file.
11025         * lib/unistr/utf16-ucs4-safe.c: New file.
11026
11027         * MODULES.html.sh (Unicode string functions): Add the new modules.
11028
11029 2007-01-08  Bruno Haible  <bruno@clisp.org>
11030
11031         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
11032         (Depends-on): Add unitypes.
11033         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
11034         (u8_mbtouc_aux): Move out to separate file.
11035         (u8_mbtouc): Use ucs4_t, uint8_t types.
11036         * lib/unistr/utf8-ucs4.c: New file.
11037
11038         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
11039         (Depends-on): Add unitypes.
11040         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
11041         (u16_mbtouc_aux): Move out to separate file.
11042         (u16_mbtouc): Use ucs4_t, uint16_t types.
11043         * lib/unistr/utf16-ucs4.c: New file.
11044
11045         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
11046         (Depends-on): Add unitypes.
11047         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
11048         (u8_uctomb_aux): Move out to separate file.
11049         (u8_uctomb): Use ucs4_t, uint8_t types.
11050         * lib/unistr/ucs4-utf8.c: New file.
11051
11052         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
11053         (Depends-on): Add unitypes.
11054         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
11055         (u16_uctomb_aux): Move out to separate file.
11056         (u16_uctomb): Use ucs4_t, uint16_t types.
11057         * lib/unistr/ucs4-utf16.c: New file.
11058
11059 2006-12-25  Bruno Haible  <bruno@clisp.org>
11060
11061         * modules/unitypes: New file.
11062         * lib/unitypes.h: New file.
11063         * MODULES.html.sh (func_all_modules): New section "Unicode string
11064         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
11065         this section. Add unitypes.
11066
11067 2007-01-08  Bruno Haible  <bruno@clisp.org>
11068
11069         Avoid variable names that conflict with those from libtool.
11070         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
11071         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
11072         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
11073         library_names_spec to acl_library_names_spec, hardcode_* to
11074         acl_hardcode_*.
11075         Reported by Ralf Wildenhues.
11076
11077 2007-01-08  Bruno Haible  <bruno@clisp.org>
11078
11079         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
11080         definition.
11081         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
11082         definition.
11083         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
11084         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
11085         definition.
11086         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
11087         definition.
11088         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
11089         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
11090         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
11091         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
11092         definition.
11093         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
11094         definition.
11095         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
11096         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
11097         GC_USE_<algorithm>.
11098         * lib/gc-libgcrypt.c: Likewise.
11099         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
11100         * modules/gc-arctwo (configure.ac): Likewise.
11101         * modules/gc-des (configure.ac): Likewise.
11102         * modules/gc-hmac-md5 (configure.ac): Likewise.
11103         * modules/gc-hmac-sha1 (configure.ac): Likewise.
11104         * modules/gc-md2 (configure.ac): Likewise.
11105         * modules/gc-md4 (configure.ac): Likewise.
11106         * modules/gc-md5 (configure.ac): Likewise.
11107         * modules/gc-random (configure.ac): Likewise.
11108         * modules/gc-rijndael (configure.ac): Likewise.
11109         * modules/gc-sha1 (configure.ac): Likewise.
11110
11111 2007-01-08  Bruno Haible  <bruno@clisp.org>
11112
11113         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
11114         macro definition.
11115         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
11116         definition.
11117         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
11118         definition.
11119         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
11120         * modules/fcntl-safer (configure.ac): Likewise.
11121         * modules/fopen-safer (configure.ac): Likewise.
11122         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
11123         GNULIB_FWRITEERROR macro definition.
11124
11125 2007-01-08  Bruno Haible  <bruno@clisp.org>
11126
11127         * m4/gnulib-common.m4: New file.
11128         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
11129         (func_get_filelist): Add m4/gnulib-common.m4.
11130
11131 2007-01-08  Bruno Haible  <bruno@clisp.org>
11132
11133         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
11134         command.
11135
11136 2007-01-08  Jim Meyering  <jim@meyering.net>
11137
11138         Use a more robust test for a "can't happen" condition.
11139         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
11140         narrowed the st_size value.  Presuming the "can't happen" condition
11141         is true, that narrowing could conceivably convert an invalid st_size
11142         value into a valid one.  Instead, use a change based on Matthew
11143         Woehlke's original patch.
11144
11145         Slight readability improvement: use an assert-like macro
11146         in place of literal "abort ()" uses.
11147         * lib/fts.c (fts_assert): Define.
11148         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
11149         Use this macro instead of a bare 'abort'.
11150
11151 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
11152
11153         Don't worry about using IRIX 5.3's wctype.h broken definitions;
11154         simply work around them.
11155         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
11156         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
11157         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
11158         declaring.
11159         Don't bother to define as macros, since the standard doesn't require it.
11160         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
11161         longer worry about IRIX 5.3.
11162         (HAVE_WCTYPE_CTMP_BUG): Remove.
11163
11164 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
11165
11166         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
11167         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
11168         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
11169         Problems reported by Georg Schwarz for IRIX 5.3.
11170
11171         * gnulib-tool (autoconf_minversion): Take the maximum version number
11172         found, not the minimum.  Problem reported by James Youngman.
11173
11174 2007-01-03  Karl Berry  <karl@gnu.org>
11175
11176         * doc/error.texi: new file, explaining interaction with progname.
11177         * doc/gnulib.texi: include it.  Update copyright.
11178
11179 2007-01-03  Simon Josefsson  <simon@josefsson.org>
11180
11181         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
11182         AC_CANONICAL_HOST, to improve autobuild outputs.
11183
11184 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
11185             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
11186
11187         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
11188         sockets, server sockets, and other file descriptors.  Count errors
11189         to compute the return value.  Reorder the code a bit to be easier
11190         to follow.  Don't set event bits that were not requested (except
11191         POLLERR and POLLHUP).
11192
11193 2007-01-01  Bruno Haible  <bruno@clisp.org>
11194
11195         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
11196
11197 2007-01-03  Jim Meyering  <jim@meyering.net>
11198
11199         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
11200
11201 2007-01-02  Bruno Haible  <bruno@clisp.org>
11202
11203         * modules/settime (Include): Require timespec.h.
11204         * modules/nanosleep (Include): Likewise.
11205
11206 2007-01-01  Bruno Haible  <bruno@clisp.org>
11207
11208         * gnulib-tool (func_emit_copyright_notice): Bump year.
11209         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
11210
11211 2007-01-01  Bruno Haible  <bruno@clisp.org>
11212
11213         Improve support for OpenBSD.
11214         * build-aux/config.rpath (libname_spec): Export.
11215         (library_names_spec): New variable. Export.
11216         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
11217         library_names_spec from the config.rpath output. Locate shared library
11218         through the name pattern in library_names_spec.
11219
11220 2007-01-01  Eric Blake  <ebb9@byu.net>
11221
11222         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
11223
11224 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
11225
11226         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
11227         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
11228         assume the C locale, and avoid an "eval" that could cause trouble.
11229         Problem with SORT reported by Bob Proulx.
11230
11231         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
11232         Define.  Trivial patch from Henning Nielsen Lund, originally
11233         sent to bug-grep@gnu.org today.
11234
11235 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
11236
11237         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
11238         struct stat.  Problem reported by Henning Nielsen Lund.
11239         * lib/acl.c: Include acl.h first, to check interface.  Don't
11240         bother to include sys/types.h and sys/stat.h again.
11241
11242 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
11243
11244         Import the following change from libc; problem reported by
11245         Sven Verdoolaege.
11246
11247         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
11248
11249         [BZ #1373]
11250         * lib/argp.h: Remove __NTH for __argp_usage inline function.
11251
11252 2006-12-28  Jim Meyering  <jim@meyering.net>
11253
11254         * build-aux/announce-gen: Do not assume that the package
11255         builds any of tar.gz, tar.bz2, and .xdelta files.
11256         Suggestion from Simon Josefsson.
11257
11258 2006-12-28  Simon Josefsson  <simon@josefsson.org>
11259
11260         * modules/announce-gen: New file.
11261
11262 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
11263
11264         * lib/mbchar.h: Just include <wctype.h>; the wctype module
11265         handles its gotchas now.
11266         * lib/mbswidth.c: Likewise.
11267         * lib/wcwidth.h: Likewise.
11268         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
11269         and iswcntrl; the wctype module does this stuff now.
11270         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
11271         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11272         * modules/mbchar (Depends-on): Add wctype.
11273         * modules/mbswidth (Depends-on): Likewise.
11274         * modules/wcwidth (Depends-on): Likewise.
11275
11276 2006-12-27  Eric Blake  <ebb9@byu.net>
11277
11278         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
11279         module uses more than what <wctype.h> is required to provide.
11280
11281 2006-12-26  Eric Blake  <ebb9@byu.net>
11282
11283         * gnulib-tool (sed_extract_prog): Avoid space-tab.
11284
11285 2006-12-26  Eric Blake  <ebb9@byu.net>
11286
11287         * modules/absolute-header: New module.
11288         * modules/fcntl (Depends-on): Depend on it.
11289         * modules/inttypes (Depends-on): Likewise.
11290         * modules/stdint (Depends-on): Likewise.
11291         * modules/sys_stat (Depends-on): Likewise.
11292         * modules/wctype (Depends-on): Likewise.
11293         * MODULES.html.sh (Support for building libraries and
11294         executables): Document it.
11295
11296 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
11297
11298         * gnulib-tool (SED): Remove, undoing previous change.
11299         The problem was that it broke coreutils on Solaris, because
11300         "sed --posix" leaked into a makefile.
11301         (sed): New alias, if 'alias' and GNU sed.
11302
11303 2006-12-24  Jim Meyering  <jim@meyering.net>
11304
11305         Work around an fchownat bug in glibc-2.4:
11306         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
11307         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
11308         in spite of the -P option.
11309         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
11310         New macros.
11311         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
11312         * modules/openat (Files): Add lib/fchownat.c.
11313         * lib/openat.c (fchownat): Don't define here.  Move to...
11314         * lib/fchownat.c: ...this new file.
11315
11316 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
11317
11318         Fix bug reported by Bruno Haible in
11319         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
11320         where quotearg.c didn't compile on Mac OS X 10.2 because it
11321         lacks <wchar.h> and wint_t.
11322         * lib/wctype_.h (__wctype_wint_t): New type.
11323         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
11324         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
11325         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
11326         Arg is now of type __wctype_wint_t, not wint_t.
11327         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
11328         substitute HAVE_WINT_T.
11329         * modules/wctype (Files): Add m4/wint_t.m4.
11330         (wctype.h): Substitute HAVE_WINT_T.
11331
11332 2006-12-23  Bruno Haible  <bruno@clisp.org>
11333
11334         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
11335
11336 2006-12-23  Bruno Haible  <bruno@clisp.org>
11337
11338         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
11339         S_ISLNK.
11340         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
11341         mingw.
11342
11343 2006-12-22  Bruno Haible  <bruno@clisp.org>
11344
11345         * lib/copy-file.c: Include acl.h.
11346         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
11347         Close the file descriptors only after being done with copy_acl.
11348         * modules/copy-file (Depends-on): Add acl.
11349
11350 2006-12-22  Bruno Haible  <bruno@clisp.org>
11351
11352         * gnulib-tool (SED): New variable.
11353         Use $SED instead of sed everywhere.
11354
11355 2006-12-22  Bruno Haible  <bruno@clisp.org>
11356
11357         * modules/no-c++: New file.
11358         * m4/no-c++.m4: New file.
11359         * MODULES.html.sh (Support for building libraries and executables):
11360         Add no-c++.
11361
11362 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
11363
11364         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
11365         Include <limits.h>, and use its INT_MAX to rewrite the
11366         j loop so that it does not overflow 'int'.  Problem reported by
11367         Ralf Wildenhues in
11368         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
11369         Play it safe by shifting left by 1 rather than multiplying by 2,
11370         as GCC is less likely to optimize this away when the value
11371         is signed (when it assumes overflow leads to undefined behavior).
11372         Also, don't assume time_t uses two's complement.
11373
11374 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
11375
11376         * MODULES.html.sh: New module wctype.
11377         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
11378         * lib/fnmatch.c: Don't bother to include <wchar.h> before
11379         <wctype.h>, since the new wctype module should fix this.
11380         * lib/quotearg.c: Include <wctype.h> unconditionally, since
11381         the wctype module should arrange for it.
11382         * lib/regex_internal.h: Likewise.
11383         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
11384         since the wctype module should handle this now.
11385         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
11386         * modules/fnmatch (Depends-on): Add wctype.
11387         * modules/quotearg (Depends-on): Likewise.
11388         * modules/regex (Depends-on): Likewise.
11389
11390 2006-12-19  Bruno Haible  <bruno@clisp.org>
11391
11392         * lib/strdup.h [C++]: Wrap definitions in extern "C".
11393         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
11394
11395 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11396
11397         * modules/savewd (Depends-on): Fix dependency on fcntl.
11398
11399 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
11400
11401         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
11402         conforms to C99, rather than relying on the user's environment
11403         setting of STDINT_H.
11404
11405 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
11406         and Eric Blake  <ebb9@byu.net>
11407
11408         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
11409         This is more consistent with the other defines here.
11410         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
11411         Port to z/OS.  Problem reported by Paul Gilmartin.
11412         Change local vars to use gl_ prefix rather than ac_.
11413         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
11414         with other defines.
11415         * modules/double-slash-root: New module.
11416         * modules/dirname (Files): Remove m4/double-slash-root.m4.
11417         (Depends-on): Add double-slash-root.
11418         * MODULES.html.sh (File system functions): Mention new module.
11419
11420 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
11421
11422         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
11423         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
11424         This is for the benefit of gzip, which doesn't do i18n.
11425
11426 2006-12-12  Jim Meyering  <jim@meyering.net>
11427
11428         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
11429         Reported by Andreas Schwab <schwab@suse.de>.
11430
11431 2006-12-12  Bruno Haible  <bruno@clisp.org>
11432
11433         Merge these changes.
11434         2006-09-05  Bruno Haible  <bruno@clisp.org>
11435         * lib/iconvme.c (iconv_string): No need to save and restore errno when
11436         iconv_alloc succeeded.
11437         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
11438         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
11439         test for " && dest " at the end - dest is always != NULL there. Call
11440         iconv with 4xNULL arguments initially, to reset the state. Call iconv
11441         with 2xNULL arguments, also to flush the state storage. Handle the
11442         IRIX iconv behaviour. Realloc the final result, to throw away unused
11443         memory.
11444
11445 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
11446
11447         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
11448         and fchmodat unconditionally, since glibc 2.4 has them.
11449         Problem reported by Arkadiusz Miskiewicz.
11450
11451 2006-12-10  Bruno Haible  <bruno@clisp.org>
11452
11453         * gnulib-tool (func_import): Show the include files only for those
11454         modules that are copied and specified.
11455         Reported by Karl Berry.
11456
11457 2006-12-08  Jim Meyering  <jim@meyering.net>
11458
11459         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
11460         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
11461
11462         * build-aux/announce-gen: Add two new options, both optional:
11463         --bootstrap-tools=TOOL_LIST
11464               a comma-separated list of tools, e.g.,
11465               autoconf,automake,bison,gnulib
11466         --gnulib-snapshot-date=DATE
11467               if gnulib is in the bootstrap tool list,
11468               then report this as the snapshot date.
11469               If not specified, use the current date/time.
11470               If you specify a date here, be sure it's UTC.
11471
11472 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11473
11474         * tests/test-argp-2.sh: Fix test to match actual output.
11475         (func_compare): Fix sed script to be portable.
11476
11477 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
11478
11479         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
11480         workaround for this case.  It is not autoconfigured now; offhand
11481         it's hard to see how to autoconfigure it.
11482
11483 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
11484
11485         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
11486         a directory that is about to be chowned.  Such a directory's
11487         initial file permissions should permit the owner only and this
11488         should not be changed until after the chown, since the group and
11489         other bits would be incorrect if they granted permission before
11490         the chown.
11491
11492         Fix porting problem for iswctype reported by Georg Schwarz in:
11493         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
11494         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
11495         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
11496         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
11497         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
11498
11499 2006-12-03  Jim Meyering  <jim@meyering.net>
11500
11501         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
11502         p->fts_statp may not yet be defined.
11503         (fts_read): Instead, set it in the caller, once p->fts_statp is
11504         sure to be defined, and corresponds to a top-level directory.
11505         This bug made du -x fail.  Here's the coreutils test case:
11506         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
11507         Reported by Mike Frysinger.
11508
11509 2006-12-01  Jim Meyering  <jim@meyering.net>
11510
11511         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
11512         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
11513         Reported by Simon Josefsson.
11514
11515 2006-11-30  Jim Meyering  <jim@meyering.net>
11516
11517         * m4/warning.m4: Use the all-permissive copyright notice
11518         recommended by RMS (rather than LGPL).
11519         * m4/vararrays.m4: Likewise.
11520         * m4/flexmember.m4: Likewise.
11521
11522 2006-11-29  Bruno Haible  <bruno@clisp.org>
11523
11524         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
11525         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
11526         using +=.
11527         Reported by Simon Josefsson <simon@josefsson.org>.
11528
11529 2006-11-28  James Youngman <jay@gnu.org>
11530
11531         * README: Advise users that they might find the bug-gnulib@gnu.org
11532         and autotools-announce@gnu.org mailing lists useful.
11533
11534 2006-11-28  Bruno Haible  <bruno@clisp.org>
11535
11536         * m4/ptrdiff_max.m4: Remove file.
11537
11538 2006-11-21  Bruno Haible  <bruno@clisp.org>
11539
11540         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
11541         _AC_COMPUTE_INT.
11542         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
11543         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
11544         _AC_COMPUTE_INT.
11545         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
11546         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
11547         _AC_COMPUTE_INT.
11548         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
11549
11550 2006-11-28  Jim Meyering  <jim@meyering.net>
11551
11552         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
11553         warning from "gcc -Wshadow" about shadowing the builtin.
11554
11555 2006-11-27  Bruno Haible  <bruno@clisp.org>
11556
11557         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
11558         _AC_COMPUTE_INT.
11559         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
11560
11561 2006-11-27  Bruno Haible  <bruno@clisp.org>
11562             Paul Eggert  <eggert@cs.ucla.edu>
11563
11564         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
11565
11566 2006-11-26  Bruno Haible  <bruno@clisp.org>
11567
11568         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
11569         noinst_LTLIBRARIES.
11570
11571 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
11572             Bruno Haible  <bruno@clisp.org>
11573
11574         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
11575         if compiling with "gcc -ansi".
11576
11577 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
11578
11579         Fix some incompatibilities with gcc -ansi -pedantic.
11580         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
11581         if compiling pedantically with GCC, unless it's C99 or later.
11582         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
11583         it mishandles gcc -ansi -pedantic as well.
11584         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
11585         if gcc -pedantic.
11586         * lib/regexec.c (check_node_accept_bytes): Don't use auto
11587         initializers for struct if -pedantic, unless it's C99 or later.
11588
11589 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
11590
11591         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
11592         Don't close an fd more than once. Identical atimes indicate
11593         success, not failure.
11594
11595 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
11596
11597         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
11598
11599 2006-11-23  Jim Meyering  <jim@meyering.net>
11600
11601         * build-aux/announce-gen: New file.  From coreutils.
11602
11603 2006-11-22  Jim Meyering  <jim@meyering.net>
11604
11605         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
11606         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
11607         (fts_read): Use a temporary to narrow the overused st_size member
11608         before using it in a switch statement.  Reported by Matthew Woehlke.
11609
11610         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
11611         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
11612
11613 2006-11-20  Bruno Haible  <bruno@clisp.org>
11614
11615         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
11616         changequote instead of pairs of brackets.
11617         Reported by Andreas Schwab <schwab@suse.de>.
11618
11619 2006-11-21  Jim Meyering  <jim@meyering.net>
11620
11621         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
11622         so as to remain compatible with older compilers.
11623         Patch from Michael Deutschmann.
11624
11625 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
11626
11627         * MODULES.html.sh (File system functions): Add openat.
11628
11629         * lib/openat.h (rpl_fstatat): New macro, if
11630         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
11631         (fstatat): Define to rpl_fstatat under the same conditions,
11632         unless COMPILING_FSTATAT.
11633         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
11634         seems to have the bug.
11635         * lib/fstatat.c: New file.
11636         * modules/openat (Files): Add it.
11637
11638 2006-11-20  Bruno Haible  <bruno@clisp.org>
11639
11640         * Makefile: New file.
11641
11642 2006-11-20  Jim Meyering  <jim@meyering.net>
11643
11644         The beginnings of syntax-related checks for gnulib.
11645         * lib/Makefile: New file.
11646         * lib/t-idcache: New script.  Ensure that the two halves of
11647         idcache.c stay in sync.
11648
11649         * lib/idcache.c: Adjust comments in user- and group- portions to
11650         be more accurate, and to be consistent with one another.
11651
11652 2006-11-20  Jim Meyering  <jim@meyering.net>
11653
11654         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
11655         continue using the flexible array member (thus, this module performs
11656         half as many malloc calls), with the addition that...
11657         (getgroup, getuser): Consistently record a non-match via an empty
11658         "name" string, and map an empty string match to a NULL return value.
11659         * modules/idcache (Depends-on): Re-add flexmember.
11660
11661         * lib/idcache.c (getuser): Remove all uses of the register keyword.
11662         (getuidbyname, getgroup, getgidbyname): Likewise.
11663
11664         Use cleaner syntax: NULL rather than 0.
11665         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
11666
11667 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
11668
11669         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
11670         It mishandled the case where the group was missing.
11671         Problem reported by Greg Schafer.
11672         * modules/idcache: Likewise.
11673
11674 2006-11-18  Jim Meyering  <jim@meyering.net>
11675
11676         * check-module (%exempt_header): Add exception for some
11677         conditionally-included headers.
11678
11679         * modules/i-ring (Depends-on): Add verify.
11680         (License): Change to LGPL.
11681
11682 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
11683
11684         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
11685         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
11686         and inttostr.h.  Use snprintf rather than uinttostr, so that
11687         LGPLed code doesn't depend on GPLed.
11688
11689 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
11690
11691         * modules/inline (License): Change from GPL to LGPL.
11692
11693 2006-11-17  Jim Meyering  <jim@meyering.net>
11694
11695         * modules/d-type (License): Switch to LGPL.
11696
11697 2006-11-15  Bruno Haible  <bruno@clisp.org>
11698
11699         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
11700
11701 2006-11-15  Eric Blake  <ebb9@byu.net>
11702
11703         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
11704         the module dependency.
11705
11706 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11707             Bruno Haible  <bruno@clisp.org>
11708
11709         * gnulib-tool (func_create_testdir): Add license consistency check.
11710
11711 2006-11-15  Eric Blake  <ebb9@byu.net>
11712
11713         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
11714         random "(cached)" in configure output.
11715
11716 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11717
11718         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
11719         test for conforming inttypes.h is both announced and cached.
11720
11721         * MODULES.html.sh (seen_modules, seen_files): New variables.
11722         (func_module): Rewrite to use a few less gnulib-tool and sed
11723         invocations.  Avoid a couple of quadratic algorithms for ...
11724         (missed_modules, missed_files): ... these, with ...
11725         (func_append, func_tmpdir): ... these new functions, from
11726         gnulib-tool.  Analogously, install traps for cleanup.
11727
11728         * tests/test-gc.c (main): Remove unused variables.
11729         * tests/test-read-file.c: Include stdlib.h, for 'free'.
11730
11731 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
11732
11733         * modules/inttostr (License): Change to LGPL.
11734
11735 2006-11-14  Eric Blake  <ebb9@byu.net>
11736
11737         * modules/tempname (License): Change to LGPL.
11738
11739 2006-11-14  Eric Blake  <ebb9@byu.net>
11740
11741         * doc/functions.texi (Function Portability): *printf functions on
11742         Cygwin now understand all POSIX size specifiers.
11743
11744 2006-11-14  Bruno Haible  <bruno@clisp.org>
11745
11746         * modules/c-ctype (License): Change to LGPL.
11747
11748 2006-11-12  Bruno Haible  <bruno@clisp.org>
11749
11750         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
11751         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
11752         for GNOME libraries, for which the include files are installed in
11753         subdirectories of $prefix/include.
11754
11755 2006-11-12  Bruno Haible  <bruno@clisp.org>
11756
11757         * m4/lib-link.m4: Require at least autoconf-2.54.
11758         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
11759         name to underscores for the --with option.
11760
11761 2006-11-13  Bruno Haible  <bruno@clisp.org>
11762
11763         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
11764         the tests directory.
11765         Reported by Ralf Wildenhues.
11766
11767 2006-11-13  Bruno Haible  <bruno@clisp.org>
11768
11769         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
11770         (func_emit_initmacro_end): Undo the override here.
11771         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
11772         Works around the famous automake error in coreutils.
11773
11774 2006-11-13  Eric Blake  <ebb9@byu.net>
11775
11776         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
11777         element, not its node.
11778
11779 2006-11-12  Bruno Haible  <bruno@clisp.org>
11780
11781         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
11782         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
11783
11784 2006-11-12  Bruno Haible  <bruno@clisp.org>
11785
11786         * gnulib-tool: New option --local-symlink.
11787         (func_usage): Document it.
11788         (lsymbolic): New variable.
11789         (func_import, func_create_testdir): If --symlink was not specified,
11790         test whether --local-symlink was specified and the file comes from
11791         the local_gnulib_dir.
11792
11793 2006-11-12  Bruno Haible  <bruno@clisp.org>
11794
11795         * gnulib-tool (func_ln): New function.
11796         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
11797
11798 2006-11-12  Bruno Haible  <bruno@clisp.org>
11799
11800         Finish support for source files in subdirectories.
11801         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
11802         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
11803         AUTOMAKE_OPTIONS.
11804         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
11805
11806 2006-11-12  Bruno Haible  <bruno@clisp.org>
11807
11808         * gnulib-tool (func_get_automake_snippet): Synthesize also an
11809         EXTRA_lib_SOURCES augmentation.
11810         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
11811
11812 2006-11-12  Jim Meyering  <jim@meyering.net>
11813
11814         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
11815         file descriptors.  This also averts a failure on systems with
11816         native openat support when a traversed directory lacks "x" access.
11817         * lib/fts_.h: Include "i-ring.h"
11818         (struct FTS) [fts_fd_ring]: New member.
11819         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
11820         (FCHDIR): Add parentheses.
11821         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
11822         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
11823         When descending, rather than simply closing the previous
11824         fts_cwd_fd value, push that file descriptor onto the ring.
11825         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
11826         (fts_open): Initialize the new fd_ring member.
11827         (fts_close): Clear the ring.
11828         (fts_safe_changedir): When possible, use our new fd_ring to skip
11829         the diropen and fstat and dev/ino comparison that would normally
11830         accompany a virtual `chdir ("..")'.
11831
11832         * modules/fts (Depends-on): Add i-ring.
11833         * modules/i-ring: New module.
11834         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
11835         * m4/i-ring.m4: New file.
11836
11837 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11838
11839         * gnulib-tool (func_create_testdir): Fix replacement of
11840         `build-aux' in configure.ac.  Run autotools in gltests
11841         subdirectory.
11842         (func_create_testdir, func_create_megatestdir, test): There is
11843         no need for '--force' in most autotool invocations in a new
11844         tree.  Actually fail the whole test if any of the tools, or the
11845         configure or make stages fail.
11846
11847         Sync from Automake.
11848         * build-aux/gnupload: Revert last change.  Add pointer to upload
11849         instructions of the GNU Maintenance Instructions.
11850         Suggestion by Karl Berry.
11851
11852 2006-11-10  Jim Meyering  <jim@meyering.net>
11853
11854         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
11855
11856 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
11857
11858         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
11859         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
11860         (bind_textdomain_codeset) [! ENABLE_NLS]:
11861         Evaluate all the arguments.  That way, callers get compatible behavior
11862         if the arguments have side effects.  Also, it avoids some GCC
11863         diagnostics in some cases; Joel E. Denny reported problems when Bison
11864         was configured with --enable-gcc-warnigs.
11865
11866 2006-11-10  Jim Meyering  <jim@meyering.net>
11867
11868         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
11869         relevant options in CFLAGS (like -O, -fno-inline) are taken into
11870         account.
11871
11872 2006-11-10  Jim Meyering  <jim@meyering.net>
11873
11874         * modules/inline: New file/module.
11875         * modules/xalloc (Files): Remove m4/inline.m4.
11876         (Depends-on): Add inline, instead.
11877         * modules/oset: Likewise.
11878         * modules/list: Likewise.
11879
11880 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
11881
11882         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
11883         Problem reported by Matthew Woehlke.
11884
11885 2006-11-09  Bruno Haible  <bruno@clisp.org>
11886
11887         * lib/tempname.c (gen_tempname): Remove variant that invokes
11888         __gen_tempname.
11889         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
11890         __gen_tempname.
11891
11892 2006-11-08  Bruno Haible  <bruno@clisp.org>
11893
11894         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
11895         to 'yes' instead of 'cross-compiling'.
11896
11897 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
11898
11899         * lib/quotearg.h (quotearg_free): New decl.
11900         * lib/quotearg.c (quotearg_free): New function.
11901         (slot0, nslots, slotvec0, slotvec):
11902         Now file-scope so that quotearg_free can get at them.
11903
11904 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11905
11906         Sync from Automake.
11907         * build-aux/gnupload: Add missing 'gnu' to example URL.
11908         Report by Karl Berry.
11909
11910 2006-11-08  Bruno Haible  <bruno@clisp.org>
11911
11912         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
11913         Suggested by Paul Eggert.
11914
11915 2006-11-08  Jim Meyering  <jim@meyering.net>
11916
11917         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
11918         It's already included if !_LIBC.
11919         (fts_safe_changedir): Add a comment.
11920
11921 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
11922
11923         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
11924         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
11925         Matthew Woehlke.
11926
11927         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
11928         definitions up, to avoid colliding with change below.
11929         (static_inline) [HAVE_INLINE]: New macro.
11930         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
11931         Provide extern decls when !HAVE_INLINE.  Do not define unless
11932         static_inline is defined, either by us or by xmalloc.c.  Use
11933         static_inline rather than static inline.
11934         (XCALLOC): Optimize sizeof(T) = 1 case.
11935         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
11936
11937 2006-11-07  Bruno Haible  <bruno@clisp.org>
11938
11939         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
11940         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
11941         AC_C_INLINE.
11942         * modules/xalloc (Files): Add m4/inline.m4.
11943
11944 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11945
11946         * README: Fix typo.
11947         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
11948         (Miscellanous Notes): ...from this.
11949
11950 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
11951
11952         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
11953         Mention that offsetof should be used instead of sizeof.
11954         From Bruno Haible.
11955
11956 2006-11-07  Bruno Haible  <bruno@clisp.org>
11957
11958         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
11959
11960 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
11961
11962         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
11963         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
11964         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
11965         (gl_tree_add_before, gl_tree_add_after):
11966         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
11967         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
11968         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
11969         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
11970         (gl_linked_add_after, gl_linked_add_at): Likewise.
11971         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
11972         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
11973         (gl_tree_add_before, gl_tree_add_after): Likewise.
11974         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
11975         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
11976         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
11977
11978 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11979
11980         * lib/gl_oset.h: Use C comment style, not C++ comment style.
11981
11982 2006-11-06  Bruno Haible  <bruno@clisp.org>
11983
11984         * m4/inline.m4: New file.
11985         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
11986         * modules/list (Files): Add m4/inline.m4.
11987         * modules/oset (Files): Likewise.
11988
11989 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
11990
11991         * lib/idcache.c: Include <stddef.h>, for offsetof.
11992         (struct userid.name): Change from char * to a flexible array member.
11993         All uses changed.
11994         * modules/idcache (Depends-on): Add flexmember.
11995
11996         * MODULES.html.sh (Core language properties): New module flexmember.
11997         * modules/flexmember, m4/flexmember.m4: New files.
11998
11999         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
12000         inline functions that are identical with the old xnmalloc_inline,
12001         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
12002         that we can avoid some unnecessary integer multiplications and
12003         divisions in the common case where the element size is known at
12004         compile time.
12005         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
12006         needed.
12007         (xnboundedmalloc): Remove.
12008         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
12009         arguments, for consistency with rest of this header.
12010         (xcharalloc): Rewrite using XNMALLOC.
12011         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
12012         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
12013         versions have been moved to lib/xalloc.h and renamed to be the
12014         non-*_inline versions.
12015         (xmalloc, xrealloc): Implement without reference to the xnmalloc
12016         and xnrealloc functions, since those functions are now inline and
12017         now call us.
12018         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
12019         renaming described above.
12020         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
12021         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
12022         captures the dependency in AC_C_INLINE.
12023
12024         New module canonicalize-lgpl, proposed by Charles Wilson in
12025         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
12026         with a few small changes afterwards.
12027         * MODULES.html.sh (File system functions): New module
12028         canonicalize-lgpl.
12029         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
12030         and canonicalize_file_name.
12031         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
12032         * modules/canonicalize-lgpl: New files.
12033
12034 2006-11-05  Bruno Haible  <bruno@clisp.org>
12035
12036         * gnulib-tool (func_import, func_create_testdir): Create directories
12037         also for files in subdirectories of lib/.
12038
12039 2006-11-05  Bruno Haible  <bruno@clisp.org>
12040
12041         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
12042         ANSI C compliant.
12043
12044 2006-11-03  Bruno Haible  <bruno@clisp.org>
12045
12046         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
12047         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
12048         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
12049         (xnboundedmalloc): New inline function.
12050         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
12051         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
12052         xmalloc.
12053         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
12054         xmalloc.
12055         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
12056         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
12057         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
12058         xmalloc.
12059         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
12060         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
12061         xmalloc.
12062         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
12063         gl_tree_add_after): Use XMALLOC instead of xmalloc.
12064         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
12065         xmalloc.
12066         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
12067         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
12068         gl_tree_add_after): Use XMALLOC instead of xmalloc.
12069         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
12070         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
12071         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
12072         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
12073
12074 2006-11-03  Bruno Haible  <bruno@clisp.org>
12075
12076         * lib/c-ctype.h [C++]: Define functions without name mangling.
12077         * lib/fwriteerror.h [C++]: Likewise.
12078         * lib/gcd.h [C++]: Likewise.
12079         * lib/linebreak.h [C++]: Likewise.
12080
12081 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
12082
12083         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
12084         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
12085         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
12086         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
12087         Check for functions and headers just once.
12088         Check for declaration of canonicalize_file_name.
12089         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
12090
12091 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
12092
12093         * gnulib-tool (func_import): Fix typo in actioncmd.
12094
12095 2006-11-02  Bruno Haible  <bruno@clisp.org>
12096
12097         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
12098         newline sequence in the Makefile.am snippet as a space, like "make"
12099         does.
12100         Reported by Roger Persson <perrog@gmail.com>.
12101
12102 2006-11-01  Bruno Haible  <bruno@clisp.org>
12103
12104         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
12105         already declared in <string.h>.
12106         * lib/strcase.h (strncasecmp): Don't declare it if yes.
12107
12108 2006-11-01  Bruno Haible  <bruno@clisp.org>
12109
12110         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
12111         * lib/strcase.h: Include <string.h>.
12112         (strcasecmp): Define to rpl_strcasecmp here.
12113
12114 2006-11-01  Bruno Haible  <bruno@clisp.org>
12115
12116         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
12117
12118 2006-11-01  Eric Blake  <ebb9@byu.net>
12119
12120         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
12121
12122         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
12123
12124 2006-10-29  Bruno Haible  <bruno@clisp.org>
12125
12126         Make it compile in C++ mode.
12127         * lib/full-write.c (full_rw): Add a cast.
12128
12129 2006-11-01  Bruno Haible  <bruno@clisp.org>
12130
12131         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
12132         be POSIX compliant.
12133         Reported by Roger Persson <perrog@gmail.com>.
12134
12135 2006-11-01  Eric Blake  <ebb9@byu.net>
12136
12137         * lib/getopt_.h: Fix comments.
12138
12139 2006-10-31  Eric Blake  <ebb9@byu.net>
12140
12141         * modules/tmpdir (Depends-on): Add sys_stat.
12142         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
12143         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
12144         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
12145         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
12146         tempname.
12147
12148 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
12149
12150         Avoid some C++ diagnostics reported by Bruno Haible.
12151         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
12152         xmalloc.
12153         (quotearg_alloc): Use xcharalloc rather than xmalloc.
12154         (struct slotvec): Move to top level.
12155         (quotearg_n_options): Rewrite to avoid xmalloc.
12156         * lib/xalloc.h (xcharalloc): New function.
12157         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
12158         [defined __cplusplus]: Add function template that provides result
12159         type propagation.  This part of the change is from Bruno Haible.
12160
12161 2006-10-29  Bruno Haible  <bruno@clisp.org>
12162
12163         Make it compile in C++ mode.
12164         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
12165         * lib/strnlen1.c (strnlen1): Cast memchr result.
12166         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
12167         * lib/clean-temp.c (string_equals, string_hash): Add casts.
12168         (create_temp_dir): Rename local variable 'template'.
12169         (compile_csharp_using_sscli): Add cast.
12170         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
12171         * lib/findprog.c (find_in_path): Likewise.
12172         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
12173         * lib/wait-process.c (register_slave_subprocess): Likewise.
12174
12175 2006-10-22  Bruno Haible  <bruno@clisp.org>
12176
12177         * modules/tsearch: New file.
12178         * lib/tsearch.h: New file.
12179         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
12180         * m4/tsearch.m4: New file.
12181         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
12182
12183 2006-10-29  Eric Blake  <ebb9@byu.net>
12184
12185         * lib/arcfour.c: Assume config.h.
12186         * lib/arctwo.c: Likewise.
12187         * lib/base64.c: Likewise.
12188         * lib/check-version.c: Likewise.
12189         * lib/crc.c: Likewise.
12190         * lib/des.c: Likewise.
12191         * lib/gc-gnulib.c: Likewise.
12192         * lib/gc-libgcrypt.c: Likewise.
12193         * lib/gc-pbkdf2-sha1.c: Likewise.
12194         * lib/getaddrinfo.c: Likewise.
12195         * lib/getdelim.c: Likewise.
12196         * lib/getline.c: Likewise.
12197         * lib/hmac-md5.c: Likewise.
12198         * lib/hmac-sha1.c: Likewise.
12199         * lib/iconvme.c: Likewise.
12200         * lib/md2.c: Likewise.
12201         * lib/md4.c: Likewise.
12202         * lib/memxor.c: Likewise.
12203         * lib/read-file.c: Likewise.
12204         * lib/readline.c: Likewise.
12205         * lib/rijndael-alg-fst.c: Likewise.
12206         * lib/rijndael-api-fst.c: Likewise.
12207         * lib/xgetdomainname.c: Likewise.
12208
12209 2006-10-28  Eric Blake  <ebb9@byu.net>
12210
12211         * lib/xstrndup.c: Assume config.h.
12212
12213 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
12214
12215         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
12216         stat-macros.h is now for our own macros, whereas stat_h is for
12217         macros in the <sys/stat.h> name space.
12218         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
12219         (STAT_MACROS_H): Remove.
12220         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
12221         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
12222         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
12223         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
12224         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
12225         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
12226         Move these macros to ...
12227         * lib/stat_.h: here.  Don't include stat-macros.h.
12228         * lib/canonicalize.c: Don't include stat-macros.h.
12229         * lib/chown.c: Likewise.
12230         * lib/euidaccess.c: Likewise.
12231         * lib/file-type.c: Likewise.
12232         * lib/filemode.c: Likewise.
12233         * lib/glob.c: Likewise.
12234         * lib/isapipe.c: Likewise.
12235         * lib/lchown.c: Likewise.
12236         * lib/lstat.c: Likewise.
12237         * lib/mkdir-p.c: Likewise.
12238         * lib/rmdir.c: Likewise.
12239         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
12240         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
12241         unless mkdir isn't declared, to speed up 'configure'.
12242         Always create sys/stat.h, since it's unlikely any real sys/stat.h
12243         would define all the S_* symbols.
12244         * modules/canonicalize (Depends-on):
12245         Depend on sys_stat, not stat-macros.
12246         * modules/chown: Likewise.
12247         * modules/euidaccess: Likewise.
12248         * modules/filemode: Likewise.
12249         * modules/file-type: Likewise.
12250         * modules/glob: Likewise.
12251         * modules/isapipe: Likewise.
12252         * modules/lchown: Likewise.
12253         * modules/lstat: Likewise.
12254         * modules/mkancesdirs: Likewise.
12255         * modules/rmdir: Likewise.
12256         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
12257         * modules/modechange: Likewise.
12258         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
12259         (configure.ac): Remove gl_STAT_MACROS.
12260         * modules/sys_stat (Depends-on): Remove stat-macros.
12261
12262 2006-10-27  Bruno Haible  <bruno@clisp.org>
12263
12264         * m4/signed.m4: Remove file.
12265         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
12266         invocation.
12267         * modules/vasnprintf (Files): Remove m4/signed.m4.
12268
12269 2006-10-27  Bruno Haible  <bruno@clisp.org>
12270
12271         Update to GNU gettext 0.16.
12272         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
12273         m4/inttypes-h.m4, m4/signed.m4.
12274         * m4/gettext.m4: Update to GNU gettext 0.16.
12275         * m4/intl.m4: New file, from GNU gettext.
12276         * m4/intldir.m4: New file, from GNU gettext.
12277         * config/srclist.txt: Update
12278
12279 2006-10-27  Eric Blake  <ebb9@byu.net>
12280
12281         * MODULES.html.sh: Document tempname.
12282         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
12283         dependencies.
12284         (Files): Move lib/tempname.c...
12285         * modules/tempname: ...to this new module.
12286         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
12287         (gl_PREREQ_TEMPNAME): Move...
12288         * m4/tempname.m4: ...to this new file.
12289         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
12290         * modules/sys_stat (Depends-on): Add stat-macros.
12291         * lib/stat_.h (includes): Pick up stat macros.
12292         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
12293         if stat macros are broken.
12294         * lib/tempname.c (includes): No need to include "stat-macros.h".
12295         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
12296         (direxists, __path_search) [!_LIBC]: Don't compile these in
12297         gnulib; the tmpdir module covers that.
12298         * lib/tempname.h: New file.
12299
12300 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
12301
12302         * COPYING: Explain how gnulib-tool converts licence headers.
12303         Almost all wording by Eric Blake.
12304
12305 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
12306
12307         * lib/mbchar.h (is_basic_table): Make read-only.
12308         * lib/mbchar.c (is_basic_table): Likewise.
12309         Reported by John Darrington.
12310
12311 2006-10-25  Bruno Haible  <bruno@clisp.org>
12312
12313         * lib/progname.h (set_program_name): Undefine before defining.
12314
12315 2006-10-25  Bruno Haible  <bruno@clisp.org>
12316
12317         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
12318         false for non-gcc C++ compilers.
12319         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
12320
12321 2006-10-24  Bruno Haible  <bruno@clisp.org>
12322
12323         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
12324         iconv implementations like Irix iconv.
12325
12326 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
12327
12328         * modules/vararrays: New file.
12329         * m4/vararrays.m4: New file, taken from diffutils.
12330         * MODULES.html.sh: New module vararrays.
12331
12332 2006-10-24  Karl Berry  <karl@gnu.org>
12333
12334         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
12335         Don't call GNU Unix.
12336
12337 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12338
12339         * users.txt: Add Libtool.
12340
12341         Sync from Libtool:
12342
12343         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
12344
12345         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
12346         to gnulib's policy of including config.h unconditionally.
12347
12348 2006-10-24  Bruno Haible  <bruno@clisp.org>
12349
12350         * modules/wcwidth (Files): Add m4/wint_t.m4.
12351         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
12352         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
12353
12354 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
12355
12356         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
12357         to pacify GCC with some -W flags enabled.  Problem reported by
12358         Bruno Haible.
12359
12360 2006-10-24  Jim Meyering  <jim@meyering.net>
12361
12362         * MODULES.html.sh: Remove uinttostr.  It's not a module.
12363         Reported by Karl Berry.
12364
12365 2006-10-23  Bruno Haible  <bruno@clisp.org>
12366
12367         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
12368
12369 2006-10-24  Bruno Haible  <bruno@clisp.org>
12370
12371         * lib/gl_list.h: Use C comment style, not C++ comment style.
12372
12373 2006-10-23  Eric Blake  <ebb9@byu.net>
12374
12375         * lib/getaddrinfo.c (includes): Add missing include.
12376
12377 2006-10-23  Bruno Haible  <bruno@clisp.org>
12378             Paul Eggert  <eggert@cs.ucla.edu>
12379
12380         Ability to rename obstack_free.
12381         * lib/obstack.h (__obstack_free): New macro. Declare instead of
12382         obstack_free.
12383         (obstack_free): Invoke the __obstack_free macro.
12384         * lib/obstack.c (obstack_free): Use __obstack_free macro.
12385
12386 2006-10-23  Bruno Haible  <bruno@clisp.org>
12387             Paul Eggert  <eggert@cs.ucla.edu>
12388
12389         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
12390         __argc, __argv from the declaration. (They are defined as macros on
12391         mingw.)
12392
12393 2006-10-22  Bruno Haible  <bruno@clisp.org>
12394
12395         * doc/gnulib-intro.texi: New file.
12396         * doc/gnulib.texi: Include it.
12397
12398 2006-10-21  Bruno Haible  <bruno@clisp.org>
12399
12400         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
12401         "Introduction", "Miscellanous Notes", "Particular Modules".
12402
12403 2006-10-21  Bruno Haible  <bruno@clisp.org>
12404
12405         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
12406         Change mostlyclean-local rule to avoid sh syntax error from bash
12407         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
12408
12409 2006-10-23  Jim Meyering  <jim@meyering.net>
12410
12411         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
12412         in place of snprintf.
12413
12414         * modules/inttostr (Files): Add lib/uinttostr.c.
12415         * lib/uinttostr.c (inttostr): New file/function.
12416         * lib/inttostr.h (uinttostr): Declare.
12417         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
12418         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
12419         Add uinttostr.
12420         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
12421
12422 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
12423
12424         * lib/canonicalize.c (ELOOP): Define if not already defined.
12425         Problem reported by Bruno Haible in
12426         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
12427
12428 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
12429
12430         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
12431         Problem reported by Perry Smith and Ville Laurikari.
12432
12433         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
12434         uses.
12435
12436 2006-10-19  Bruno Haible  <bruno@clisp.org>
12437
12438         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
12439         for mingw.
12440
12441 2006-10-19  Bruno Haible  <bruno@clisp.org>
12442
12443         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
12444         Needed for mingw.
12445
12446 2006-10-19  Bruno Haible  <bruno@clisp.org>
12447
12448         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
12449
12450 2006-10-19  Bruno Haible  <bruno@clisp.org>
12451
12452         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
12453         it.
12454
12455 2006-10-19  Bruno Haible  <bruno@clisp.org>
12456
12457         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
12458         invocation.
12459
12460 2006-10-19  Bruno Haible  <bruno@clisp.org>
12461
12462         * gnulib-tool (func_create_testdir): Don't include ftruncate and
12463         mountlist by default.
12464
12465 2006-10-16  Bruno Haible  <bruno@clisp.org>
12466
12467         * lib/c-strstr.c: Include c-strstr.h.
12468
12469 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
12470
12471         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
12472         in a slash.
12473
12474 2006-10-18  Bruno Haible  <bruno@clisp.org>
12475
12476         * lib/lock.h [C++]: Wrap definitions in extern "C".
12477
12478 2006-10-18  Bruno Haible  <bruno@clisp.org>
12479
12480         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
12481         gl_LIBOBJS list.
12482
12483 2006-10-18  Bruno Haible  <bruno@clisp.org>
12484
12485         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
12486
12487 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
12488
12489         * lib/xstrtol.h: Include gettext.h.
12490         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
12491         Problem reported by Eric Blake.
12492         * modules/xstrtol (Depends-on): Add gettext-h.
12493
12494 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
12495
12496         * lib/strftime.c (advance): New macro.
12497         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
12498         incomplete type, so you can't add 0 to it.  Problem and patch
12499         reported by Eelco Dolstra for dietlibc.
12500
12501 2006-10-18  Jim Meyering  <jim@meyering.net>
12502
12503         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
12504         type for a local, and rename it: s/up/user_proc/.
12505
12506 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
12507
12508         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
12509         READ_UTMP_USER_PROCESS.
12510         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
12511
12512 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
12513
12514         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
12515         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
12516
12517 2006-10-17  Eric Blake  <ebb9@byu.net>
12518
12519         * lib/sigprocmask.c (sigprocmask): Fix typo.
12520
12521         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
12522
12523         * modules/clean-temp (Makefile.am): Don't add to make output...
12524         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
12525         config.h.
12526
12527 2006-10-17  Bruno Haible  <bruno@clisp.org>
12528
12529         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
12530         differently if DEFAULT_TEXT_DOMAIN is set.
12531
12532 2006-10-16  Bruno Haible  <bruno@clisp.org>
12533
12534         * lib/clean-temp.c: Include fwriteerror.h.
12535
12536 2006-10-16  Bruno Haible  <bruno@clisp.org>
12537
12538         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
12539
12540 2006-10-16  Bruno Haible  <bruno@clisp.org>
12541
12542         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
12543         * lib/sigprocmask.h: Include <sys/types.h>.
12544         (sigset_t): Use the system's definition if present.
12545
12546 2006-10-17  Eric Blake  <ebb9@byu.net>
12547
12548         * lib/xvasprintf.c (includes): Assume config.h.
12549         * lib/xasprintf.c (includes): Likewise.
12550
12551 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
12552
12553         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
12554         at least as wide as intmax_t.
12555
12556 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
12557
12558         (Imported from Automake.)
12559         * build-aux/gnupload: Update to version 1.1 of directive file.
12560
12561 2006-10-16  Eric Blake  <ebb9@byu.net>
12562
12563         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
12564         match Automake 1.10a.
12565
12566 2006-10-14  Bruno Haible  <bruno@clisp.org>
12567
12568         * modules/sigprocmask: New file.
12569         * lib/sigprocmask.h: New file.
12570         * lib/sigprocmask.c: New file.
12571         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
12572         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
12573         request sigprocmask.o.
12574         (gl_PREREQ_SIGPROCMASK): New macro.
12575         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
12576         (Depends-on): Add sigprocmask.
12577         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
12578         gt_SIGNALBLOCKING. Test for 'raise' only once.
12579         * lib/fatal-signal.c: Include sigprocmask.h.
12580         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
12581         unblock_fatal_signals): Define always.
12582         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
12583         sigprocmask.
12584
12585 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
12586
12587         Sync from Automake.
12588         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
12589         which incorrectly sets the mode of an existing destination
12590         directory.  In some cases the unpatched install-sh could do the
12591         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
12592         system.  We hope this is rare in practice, but it's clearly worth
12593         fixing.  Problem reported by Alex Unleashed in
12594         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
12595         Also, don't bother to check for -m bugs unless we're using -m;
12596         suggested by Stepan Kasal.
12597
12598 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12599
12600         Sync from Automake.
12601         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
12602         `-c' flag, so they appear at the same position as in %FASTDEP%
12603         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
12604         which ignores unknown options only after the first non-option.
12605         Bug report against M4 by Nelson H. F. Beebe.
12606
12607 2006-10-13  Jim Meyering  <jim@meyering.net>
12608
12609         Fix a bug in yesterday's change.
12610         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
12611         p->fts_statp->st_dev would be used uninitialized.
12612         Ensures that we always call fts_stat on the very first entry.
12613         Miklos Szeredi reported that find -xdev stopped working.
12614
12615 2006-10-12  Bruno Haible  <bruno@clisp.org>
12616
12617         * gnulib-tool (func_get_automake_snippet): Append an automatically
12618         computed EXTRA_DIST augmentation.
12619         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
12620         * modules/alloca-opt (Makefile.am): Likewise.
12621         * modules/allocsa (Makefile.am): Likewise.
12622         * modules/arcfour (Makefile.am): Likewise.
12623         * modules/arctwo (Makefile.am): Likewise.
12624         * modules/argmatch (Makefile.am): Likewise.
12625         * modules/argz (Makefile.am): Likewise.
12626         * modules/atexit (Makefile.am): Likewise.
12627         * modules/backupfile (Makefile.am): Likewise.
12628         * modules/byteswap (Makefile.am): Likewise.
12629         * modules/c-strtod (Makefile.am): Likewise.
12630         * modules/c-strtold (Makefile.am): Likewise.
12631         * modules/calloc (Makefile.am): Likewise.
12632         * modules/canon-host (Makefile.am): Likewise.
12633         * modules/canonicalize (Makefile.am): Likewise.
12634         * modules/chdir-long (Makefile.am): Likewise.
12635         * modules/chdir-safer (Makefile.am): Likewise.
12636         * modules/check-version (Makefile.am): Likewise.
12637         * modules/chown (Makefile.am): Likewise.
12638         * modules/cloexec (Makefile.am): Likewise.
12639         * modules/close-stream (Makefile.am): Likewise.
12640         * modules/closeout (Makefile.am): Likewise.
12641         * modules/crc (Makefile.am): Likewise.
12642         * modules/csharpexec (Makefile.am): Likewise.
12643         * modules/cycle-check (Makefile.am): Likewise.
12644         * modules/des (Makefile.am): Likewise.
12645         * modules/dev-ino (Makefile.am): Likewise.
12646         * modules/dirfd (Makefile.am): Likewise.
12647         * modules/dirname (Makefile.am): Likewise.
12648         * modules/dup2 (Makefile.am): Likewise.
12649         * modules/eealloc (Makefile.am): Likewise.
12650         * modules/error (Makefile.am): Likewise.
12651         * modules/euidaccess (Makefile.am): Likewise.
12652         * modules/exclude (Makefile.am): Likewise.
12653         * modules/exitfail (Makefile.am): Likewise.
12654         * modules/fcntl-safer (Makefile.am): Likewise.
12655         * modules/fcntl (Makefile.am): Likewise.
12656         * modules/file-type (Makefile.am): Likewise.
12657         * modules/fileblocks (Makefile.am): Likewise.
12658         * modules/filemode (Makefile.am): Likewise.
12659         * modules/filenamecat (Makefile.am): Likewise.
12660         * modules/fnmatch (Makefile.am): Likewise.
12661         * modules/fopen-safer (Makefile.am): Likewise.
12662         * modules/fpending (Makefile.am): Likewise.
12663         * modules/fprintftime (Makefile.am): Likewise.
12664         * modules/free (Makefile.am): Likewise.
12665         * modules/fsusage (Makefile.am): Likewise.
12666         * modules/ftruncate (Makefile.am): Likewise.
12667         * modules/fts (Makefile.am): Likewise.
12668         * modules/gc-arcfour (Makefile.am): Likewise.
12669         * modules/gc-des (Makefile.am): Likewise.
12670         * modules/gc-hmac-md5 (Makefile.am): Likewise.
12671         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
12672         * modules/gc-md4 (Makefile.am): Likewise.
12673         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
12674         * modules/gc-sha1 (Makefile.am): Likewise.
12675         * modules/gc (Makefile.am): Likewise.
12676         * modules/getaddrinfo (Makefile.am): Likewise.
12677         * modules/getcwd (Makefile.am): Likewise.
12678         * modules/getdelim (Makefile.am): Likewise.
12679         * modules/getdomainname (Makefile.am): Likewise.
12680         * modules/getgroups (Makefile.am): Likewise.
12681         * modules/gethostname (Makefile.am): Likewise.
12682         * modules/gethrxtime (Makefile.am): Likewise.
12683         * modules/getline (Makefile.am): Likewise.
12684         * modules/getloadavg (Makefile.am): Likewise.
12685         * modules/getlogin_r (Makefile.am): Likewise.
12686         * modules/getndelim2 (Makefile.am): Likewise.
12687         * modules/getopt (Makefile.am): Likewise.
12688         * modules/getpagesize (Makefile.am): Likewise.
12689         * modules/getpass-gnu (Makefile.am): Likewise.
12690         * modules/getpass (Makefile.am): Likewise.
12691         * modules/getsubopt (Makefile.am): Likewise.
12692         * modules/gettime (Makefile.am): Likewise.
12693         * modules/gettimeofday (Makefile.am): Likewise.
12694         * modules/getugroups (Makefile.am): Likewise.
12695         * modules/getusershell (Makefile.am): Likewise.
12696         * modules/glob (Makefile.am): Likewise.
12697         * modules/group-member (Makefile.am): Likewise.
12698         * modules/hard-locale (Makefile.am): Likewise.
12699         * modules/hash (Makefile.am): Likewise.
12700         * modules/hmac-md5 (Makefile.am): Likewise.
12701         * modules/hmac-sha1 (Makefile.am): Likewise.
12702         * modules/human (Makefile.am): Likewise.
12703         * modules/idcache (Makefile.am): Likewise.
12704         * modules/imaxabs (Makefile.am): Likewise.
12705         * modules/imaxdiv (Makefile.am): Likewise.
12706         * modules/inet_ntop (Makefile.am): Likewise.
12707         * modules/inet_pton (Makefile.am): Likewise.
12708         * modules/intprops (Makefile.am): Likewise.
12709         * modules/inttostr (Makefile.am): Likewise.
12710         * modules/inttypes (Makefile.am): Likewise.
12711         * modules/isapipe (Makefile.am): Likewise.
12712         * modules/javaversion (Makefile.am): Likewise.
12713         * modules/lchmod (Makefile.am): Likewise.
12714         * modules/lchown (Makefile.am): Likewise.
12715         * modules/localcharset (Makefile.am): Likewise.
12716         * modules/long-options (Makefile.am): Likewise.
12717         * modules/lstat (Makefile.am): Likewise.
12718         * modules/malloc (Makefile.am): Likewise.
12719         * modules/mathl (Makefile.am): Likewise.
12720         * modules/mbchar (Makefile.am): Likewise.
12721         * modules/md2 (Makefile.am): Likewise.
12722         * modules/md4 (Makefile.am): Likewise.
12723         * modules/md5 (Makefile.am): Likewise.
12724         * modules/memcasecmp (Makefile.am): Likewise.
12725         * modules/memchr (Makefile.am): Likewise.
12726         * modules/memcmp (Makefile.am): Likewise.
12727         * modules/memcoll (Makefile.am): Likewise.
12728         * modules/memcpy (Makefile.am): Likewise.
12729         * modules/memmem (Makefile.am): Likewise.
12730         * modules/memmove (Makefile.am): Likewise.
12731         * modules/mempcpy (Makefile.am): Likewise.
12732         * modules/memrchr (Makefile.am): Likewise.
12733         * modules/memset (Makefile.am): Likewise.
12734         * modules/memxor (Makefile.am): Likewise.
12735         * modules/mkancesdirs (Makefile.am): Likewise.
12736         * modules/mkdir-p (Makefile.am): Likewise.
12737         * modules/mkdir (Makefile.am): Likewise.
12738         * modules/mkdtemp (Makefile.am): Likewise.
12739         * modules/mkstemp (Makefile.am): Likewise.
12740         * modules/mktime (Makefile.am): Likewise.
12741         * modules/modechange (Makefile.am): Likewise.
12742         * modules/mountlist (Makefile.am): Likewise.
12743         * modules/nanosleep (Makefile.am): Likewise.
12744         * modules/obstack (Makefile.am): Likewise.
12745         * modules/openat (Makefile.am): Likewise.
12746         * modules/pagealign_alloc (Makefile.am): Likewise.
12747         * modules/pathmax (Makefile.am): Likewise.
12748         * modules/physmem (Makefile.am): Likewise.
12749         * modules/poll (Makefile.am): Likewise.
12750         * modules/posixtm (Makefile.am): Likewise.
12751         * modules/posixver (Makefile.am): Likewise.
12752         * modules/putenv (Makefile.am): Likewise.
12753         * modules/quote (Makefile.am): Likewise.
12754         * modules/quotearg (Makefile.am): Likewise.
12755         * modules/raise (Makefile.am): Likewise.
12756         * modules/read-file (Makefile.am): Likewise.
12757         * modules/readline (Makefile.am): Likewise.
12758         * modules/readlink (Makefile.am): Likewise.
12759         * modules/readtokens (Makefile.am): Likewise.
12760         * modules/readutmp (Makefile.am): Likewise.
12761         * modules/realloc (Makefile.am): Likewise.
12762         * modules/regex (Makefile.am): Likewise.
12763         * modules/rename-dest-slash (Makefile.am): Likewise.
12764         * modules/rename (Makefile.am): Likewise.
12765         * modules/rijndael (Makefile.am): Likewise.
12766         * modules/rmdir (Makefile.am): Likewise.
12767         * modules/rpmatch (Makefile.am): Likewise.
12768         * modules/safe-read (Makefile.am): Likewise.
12769         * modules/safe-write (Makefile.am): Likewise.
12770         * modules/same-inode (Makefile.am): Likewise.
12771         * modules/same (Makefile.am): Likewise.
12772         * modules/save-cwd (Makefile.am): Likewise.
12773         * modules/savedir (Makefile.am): Likewise.
12774         * modules/setenv (Makefile.am): Likewise.
12775         * modules/settime (Makefile.am): Likewise.
12776         * modules/sha1 (Makefile.am): Likewise.
12777         * modules/sig2str (Makefile.am): Likewise.
12778         * modules/snprintf (Makefile.am): Likewise.
12779         * modules/stat-macros (Makefile.am): Likewise.
12780         * modules/stat-time (Makefile.am): Likewise.
12781         * modules/stdbool (Makefile.am): Likewise.
12782         * modules/stdint (Makefile.am): Likewise.
12783         * modules/stdlib-safer (Makefile.am): Likewise.
12784         * modules/stpcpy (Makefile.am): Likewise.
12785         * modules/stpncpy (Makefile.am): Likewise.
12786         * modules/strcase (Makefile.am): Likewise.
12787         * modules/strcasestr (Makefile.am): Likewise.
12788         * modules/strchrnul (Makefile.am): Likewise.
12789         * modules/strcspn (Makefile.am): Likewise.
12790         * modules/strdup (Makefile.am): Likewise.
12791         * modules/strerror (Makefile.am): Likewise.
12792         * modules/strftime (Makefile.am): Likewise.
12793         * modules/strndup (Makefile.am): Likewise.
12794         * modules/strnlen (Makefile.am): Likewise.
12795         * modules/strpbrk (Makefile.am): Likewise.
12796         * modules/strsep (Makefile.am): Likewise.
12797         * modules/strstr (Makefile.am): Likewise.
12798         * modules/strtod (Makefile.am): Likewise.
12799         * modules/strtoimax (Makefile.am): Likewise.
12800         * modules/strtok_r (Makefile.am): Likewise.
12801         * modules/strtol (Makefile.am): Likewise.
12802         * modules/strtoll (Makefile.am): Likewise.
12803         * modules/strtoul (Makefile.am): Likewise.
12804         * modules/strtoull (Makefile.am): Likewise.
12805         * modules/strtoumax (Makefile.am): Likewise.
12806         * modules/strverscmp (Makefile.am): Likewise.
12807         * modules/sys_socket (Makefile.am): Likewise.
12808         * modules/sys_stat (Makefile.am): Likewise.
12809         * modules/sysexits (Makefile.am): Likewise.
12810         * modules/time_r (Makefile.am): Likewise.
12811         * modules/timegm (Makefile.am): Likewise.
12812         * modules/timespec (Makefile.am): Likewise.
12813         * modules/tmpfile-safer (Makefile.am): Likewise.
12814         * modules/trim (Makefile.am): Likewise.
12815         * modules/unistd-safer (Makefile.am): Likewise.
12816         * modules/unlinkdir (Makefile.am): Likewise.
12817         * modules/unlocked-io (Makefile.am): Likewise.
12818         * modules/userspec (Makefile.am): Likewise.
12819         * modules/utime (Makefile.am): Likewise.
12820         * modules/utimecmp (Makefile.am): Likewise.
12821         * modules/utimens (Makefile.am): Likewise.
12822         * modules/vasnprintf (Makefile.am): Likewise.
12823         * modules/vasprintf (Makefile.am): Likewise.
12824         * modules/vsnprintf (Makefile.am): Likewise.
12825         * modules/xalloc (Makefile.am): Likewise.
12826         * modules/xgetcwd (Makefile.am): Likewise.
12827         * modules/xnanosleep (Makefile.am): Likewise.
12828         * modules/xreadlink (Makefile.am): Likewise.
12829         * modules/xstrtod (Makefile.am): Likewise.
12830         * modules/xstrtol (Makefile.am): Likewise.
12831         * modules/xstrtold (Makefile.am): Likewise.
12832         * modules/yesno (Makefile.am): Likewise.
12833         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
12834
12835 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
12836
12837         * modules/error (Makefile.am): Distribute files through
12838         EXTRA_DIST, not lib_SOURCES.
12839
12840 2006-10-12  Eric Blake  <ebb9@byu.net>
12841
12842         * modules/error (Makefile.am): Distribute files in /lib.
12843         * modules/obstack (Makefile.am): Likewise.
12844
12845 2006-10-12  Bruno Haible  <bruno@clisp.org>
12846
12847         * modules/acl (Makefile.am): Distribute all files in lib/ through
12848         EXTRA_DIST.
12849         * modules/arcfour (Makefile.am): Likewise.
12850         * modules/arctwo (Makefile.am): Likewise.
12851         * modules/argmatch (Makefile.am): Likewise.
12852         * modules/argz (Makefile.am): Likewise.
12853         * modules/atexit (Makefile.am): Likewise.
12854         * modules/backupfile (Makefile.am): Likewise.
12855         * modules/c-strtod (Makefile.am): Likewise.
12856         * modules/c-strtold (Makefile.am): Likewise.
12857         * modules/calloc (Makefile.am): Likewise.
12858         * modules/canon-host (Makefile.am): Likewise.
12859         * modules/canonicalize (Makefile.am): Likewise.
12860         * modules/chdir-long (Makefile.am): Likewise.
12861         * modules/chdir-safer (Makefile.am): Likewise.
12862         * modules/check-version (Makefile.am): Likewise.
12863         * modules/chown (Makefile.am): Likewise.
12864         * modules/cloexec (Makefile.am): Likewise.
12865         * modules/close-stream (Makefile.am): Likewise.
12866         * modules/closeout (Makefile.am): Likewise.
12867         * modules/crc (Makefile.am): Likewise.
12868         * modules/cycle-check (Makefile.am): Likewise.
12869         * modules/des (Makefile.am): Likewise.
12870         * modules/dirfd (Makefile.am): Likewise.
12871         * modules/dirname (Makefile.am): Likewise.
12872         * modules/dup2 (Makefile.am): Likewise.
12873         * modules/euidaccess (Makefile.am): Likewise.
12874         * modules/exclude (Makefile.am): Likewise.
12875         * modules/exitfail (Makefile.am): Likewise.
12876         * modules/fcntl-safer (Makefile.am): Likewise.
12877         * modules/file-type (Makefile.am): Likewise.
12878         * modules/fileblocks (Makefile.am): Likewise.
12879         * modules/filemode (Makefile.am): Likewise.
12880         * modules/filenamecat (Makefile.am): Likewise.
12881         * modules/fnmatch (Makefile.am): Likewise.
12882         * modules/fopen-safer (Makefile.am): Likewise.
12883         * modules/fpending (Makefile.am): Likewise.
12884         * modules/fprintftime (Makefile.am): Likewise.
12885         * modules/free (Makefile.am): Likewise.
12886         * modules/fsusage (Makefile.am): Likewise.
12887         * modules/ftruncate (Makefile.am): Likewise.
12888         * modules/fts (Makefile.am): Likewise.
12889         * modules/gc (Makefile.am): Likewise.
12890         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
12891         * modules/getaddrinfo (Makefile.am): Likewise.
12892         * modules/getcwd (Makefile.am): Likewise.
12893         * modules/getdelim (Makefile.am): Likewise.
12894         * modules/getdomainname (Makefile.am): Likewise.
12895         * modules/getgroups (Makefile.am): Likewise.
12896         * modules/gethostname (Makefile.am): Likewise.
12897         * modules/gethrxtime (Makefile.am): Likewise.
12898         * modules/getline (Makefile.am): Likewise.
12899         * modules/getloadavg (Makefile.am): Likewise.
12900         * modules/getlogin_r (Makefile.am): Likewise.
12901         * modules/getopt (Makefile.am): Likewise.
12902         * modules/getpass (Makefile.am): Likewise.
12903         * modules/getpass-gnu (Makefile.am): Likewise.
12904         * modules/getsubopt (Makefile.am): Likewise.
12905         * modules/gettime (Makefile.am): Likewise.
12906         * modules/gettimeofday (Makefile.am): Likewise.
12907         * modules/getugroups (Makefile.am): Likewise.
12908         * modules/getusershell (Makefile.am): Likewise.
12909         * modules/glob (Makefile.am): Likewise.
12910         * modules/group-member (Makefile.am): Likewise.
12911         * modules/hard-locale (Makefile.am): Likewise.
12912         * modules/hash (Makefile.am): Likewise.
12913         * modules/hmac-md5 (Makefile.am): Likewise.
12914         * modules/hmac-sha1 (Makefile.am): Likewise.
12915         * modules/human (Makefile.am): Likewise.
12916         * modules/idcache (Makefile.am): Likewise.
12917         * modules/imaxabs (Makefile.am): Likewise.
12918         * modules/imaxdiv (Makefile.am): Likewise.
12919         * modules/inet_ntop (Makefile.am): Likewise.
12920         * modules/inet_pton (Makefile.am): Likewise.
12921         * modules/inttostr (Makefile.am): Likewise.
12922         * modules/isapipe (Makefile.am): Likewise.
12923         * modules/lchown (Makefile.am): Likewise.
12924         * modules/long-options (Makefile.am): Likewise.
12925         * modules/lstat (Makefile.am): Likewise.
12926         * modules/malloc (Makefile.am): Likewise.
12927         * modules/mathl (Makefile.am): Likewise.
12928         * modules/mbchar (Makefile.am): Likewise.
12929         * modules/md2 (Makefile.am): Likewise.
12930         * modules/md4 (Makefile.am): Likewise.
12931         * modules/md5 (Makefile.am): Likewise.
12932         * modules/memcasecmp (Makefile.am): Likewise.
12933         * modules/memchr (Makefile.am): Likewise.
12934         * modules/memcmp (Makefile.am): Likewise.
12935         * modules/memcoll (Makefile.am): Likewise.
12936         * modules/memcpy (Makefile.am): Likewise.
12937         * modules/memmem (Makefile.am): Likewise.
12938         * modules/memmove (Makefile.am): Likewise.
12939         * modules/mempcpy (Makefile.am): Likewise.
12940         * modules/memrchr (Makefile.am): Likewise.
12941         * modules/memset (Makefile.am): Likewise.
12942         * modules/memxor (Makefile.am): Likewise.
12943         * modules/mkancesdirs (Makefile.am): Likewise.
12944         * modules/mkdir (Makefile.am): Likewise.
12945         * modules/mkdir-p (Makefile.am): Likewise.
12946         * modules/mkdtemp (Makefile.am): Likewise.
12947         * modules/mkstemp (Makefile.am): Likewise.
12948         * modules/mktime (Makefile.am): Likewise.
12949         * modules/modechange (Makefile.am): Likewise.
12950         * modules/mountlist (Makefile.am): Likewise.
12951         * modules/nanosleep (Makefile.am): Likewise.
12952         * modules/openat (Makefile.am): Likewise.
12953         * modules/pagealign_alloc (Makefile.am): Likewise.
12954         * modules/physmem (Makefile.am): Likewise.
12955         * modules/poll (Makefile.am): Likewise.
12956         * modules/posixtm (Makefile.am): Likewise.
12957         * modules/posixver (Makefile.am): Likewise.
12958         * modules/putenv (Makefile.am): Likewise.
12959         * modules/quote (Makefile.am): Likewise.
12960         * modules/quotearg (Makefile.am): Likewise.
12961         * modules/raise (Makefile.am): Likewise.
12962         * modules/read-file (Makefile.am): Likewise.
12963         * modules/readline (Makefile.am): Likewise.
12964         * modules/readlink (Makefile.am): Likewise.
12965         * modules/readtokens (Makefile.am): Likewise.
12966         * modules/readutmp (Makefile.am): Likewise.
12967         * modules/realloc (Makefile.am): Likewise.
12968         * modules/regex (Makefile.am): Likewise.
12969         * modules/rename (Makefile.am): Likewise.
12970         * modules/rename-dest-slash (Makefile.am): Likewise.
12971         * modules/rijndael (Makefile.am): Likewise.
12972         * modules/rmdir (Makefile.am): Likewise.
12973         * modules/rpmatch (Makefile.am): Likewise.
12974         * modules/safe-read (Makefile.am): Likewise.
12975         * modules/safe-write (Makefile.am): Likewise.
12976         * modules/same (Makefile.am): Likewise.
12977         * modules/save-cwd (Makefile.am): Likewise.
12978         * modules/savedir (Makefile.am): Likewise.
12979         * modules/setenv (Makefile.am): Likewise.
12980         * modules/settime (Makefile.am): Likewise.
12981         * modules/sha1 (Makefile.am): Likewise.
12982         * modules/sig2str (Makefile.am): Likewise.
12983         * modules/snprintf (Makefile.am): Likewise.
12984         * modules/stdlib-safer (Makefile.am): Likewise.
12985         * modules/stpcpy (Makefile.am): Likewise.
12986         * modules/stpncpy (Makefile.am): Likewise.
12987         * modules/strcase (Makefile.am): Likewise.
12988         * modules/strcasestr (Makefile.am): Likewise.
12989         * modules/strchrnul (Makefile.am): Likewise.
12990         * modules/strcspn (Makefile.am): Likewise.
12991         * modules/strdup (Makefile.am): Likewise.
12992         * modules/strerror (Makefile.am): Likewise.
12993         * modules/strftime (Makefile.am): Likewise.
12994         * modules/strndup (Makefile.am): Likewise.
12995         * modules/strnlen (Makefile.am): Likewise.
12996         * modules/strpbrk (Makefile.am): Likewise.
12997         * modules/strsep (Makefile.am): Likewise.
12998         * modules/strstr (Makefile.am): Likewise.
12999         * modules/strtod (Makefile.am): Likewise.
13000         * modules/strtoimax (Makefile.am): Likewise.
13001         * modules/strtok_r (Makefile.am): Likewise.
13002         * modules/strtol (Makefile.am): Likewise.
13003         * modules/strtoll (Makefile.am): Likewise.
13004         * modules/strtoul (Makefile.am): Likewise.
13005         * modules/strtoull (Makefile.am): Likewise.
13006         * modules/strtoumax (Makefile.am): Likewise.
13007         * modules/strverscmp (Makefile.am): Likewise.
13008         * modules/time_r (Makefile.am): Likewise.
13009         * modules/timegm (Makefile.am): Likewise.
13010         * modules/tmpfile-safer (Makefile.am): Likewise.
13011         * modules/unistd-safer (Makefile.am): Likewise.
13012         * modules/unlinkdir (Makefile.am): Likewise.
13013         * modules/userspec (Makefile.am): Likewise.
13014         * modules/utime (Makefile.am): Likewise.
13015         * modules/utimecmp (Makefile.am): Likewise.
13016         * modules/utimens (Makefile.am): Likewise.
13017         * modules/vasnprintf (Makefile.am): Likewise.
13018         * modules/vasprintf (Makefile.am): Likewise.
13019         * modules/vsnprintf (Makefile.am): Likewise.
13020         * modules/xalloc (Makefile.am): Likewise.
13021         * modules/xgetcwd (Makefile.am): Likewise.
13022         * modules/xnanosleep (Makefile.am): Likewise.
13023         * modules/xreadlink (Makefile.am): Likewise.
13024         * modules/xstrtod (Makefile.am): Likewise.
13025         * modules/xstrtol (Makefile.am): Likewise.
13026         * modules/xstrtold (Makefile.am): Likewise.
13027         * modules/yesno (Makefile.am): Likewise.
13028
13029 2006-10-12  Jim Meyering  <jim@meyering.net>
13030
13031         * m4/getloadavg.m4: Revert the change below.
13032
13033         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
13034         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
13035         fail with a symlink, which is what coreutils' ./bootstrap now
13036         creates by default.
13037
13038 2006-10-12  Bruno Haible  <bruno@clisp.org>
13039
13040         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
13041         mingw.
13042         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
13043         MSVC and mingw explicitly.
13044
13045 2006-10-11  Simon Josefsson  <jas@extundo.com>
13046             Bruno Haible  <bruno@clisp.org>
13047
13048         Add support for multiple gnulib-tool invocations in the scope of a
13049         single configure.ac file.
13050         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
13051         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
13052         with the same contents as the _LIBADD variable.
13053         (func_emit_initmacro_start, func_emit_initmacro_end,
13054         func_emit_initmacro_done): New functions.
13055         (func_import, func_create_testdir): Invoke them. Allow the identifiers
13056         gl_LIBOBJS and gl_LTLIBOBJS.
13057
13058 2006-10-11  Bruno Haible  <bruno@clisp.org>
13059
13060         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
13061         (func_create_testdir): Don't create po/Makefile.am, don't invoke
13062         autoreconf. Instead, invoke autopoint explicitly but move back the
13063         *.m4 files from gnulib.
13064
13065 2006-10-11  Bruno Haible  <bruno@clisp.org>
13066
13067         * gnulib-tool (func_usage): Make module names after --create-testdir
13068         optional.
13069         (func_create_testdir): If no module was specified, use nearly all
13070         modules.
13071
13072 2006-10-12  Jim Meyering  <jim@meyering.net>
13073
13074         Big performance improvement for fts-based tools that use FTS_NOSTAT.
13075         Avoid spurious inode-mismatch problems on non-POSIX file systems.
13076         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
13077         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
13078         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
13079         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
13080         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
13081         (fts_set_stat_required): New function.
13082         (fts_open): Defer the calls to fts_stat, if possible or requested.
13083         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
13084         into fts_stat itself.
13085         (fts_read): Perform any required (deferred) fts_stat call.
13086         (fts_build): Likewise, for the directory we're about to open and read.
13087         In the readdir loop, carefully decide whether each entry will require
13088         an eventual call to fts_stat, using dirent.d_type info if available.
13089         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
13090         a command line argument into this function.  Update all callers.
13091         Map a return value of FTS_DOT to FTS_D for a command line argument.
13092         * modules/fts (Depends-on): Add d-type.  Alphabetize.
13093         Thanks to Miklos Szeredi for his tenacity and for the initial
13094         bug report about "find" failing on a FUSE-based file system.
13095
13096         * lib/fts.c (fts_open): Use consistent indentation.
13097
13098 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
13099
13100         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
13101         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
13102         reported by Jim Meyering.  All uses of cache variables renamed
13103         to match Autoconf's.
13104         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
13105         the other one.
13106
13107         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
13108         Fix misspelling in diagnostic.
13109
13110 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
13111
13112         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
13113         defined.  Problem reported by Matthew Woehlke.
13114
13115         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
13116         Add support for Tandem NonStop R series.
13117         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
13118         Use new macro.
13119
13120         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
13121         (has_trailing_slash): Omit size arg; all callers changed.
13122         Omit 'inline', since it doesn't help performance and we'd
13123         need to configure it.
13124         Don't count //, ///, etc. as having a trailing slash.
13125         As a side effect, this removes a C99ism reported by Matthew Woehlke.
13126         (rpl_rename_dest_slash): On failure, use rename's errno rather
13127         than (in some cases) an incorrect or junk errno.
13128         Simplify code by removing need to compute length; this does
13129         cause it to make two passes instead of one over the file name,
13130         but it's worth it.
13131
13132         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
13133         change, since Autoconf's version may no longer be appropriate now
13134         that we are using CVS Autoconf's version.  Add support for Tandem.
13135
13136 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
13137             Bruno Haible  <bruno@clisp.org>
13138
13139         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
13140         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
13141         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
13142         gl_AC_TYPE_LONG_LONG.
13143
13144         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
13145         instead of HAVE_LONG_LONG.
13146         * lib/printf-args.c (printf_fetchargs): Likewise.
13147         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
13148         * lib/vasnprintf.c (VASNPRINTF): Likewise.
13149         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
13150         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
13151         gl_AC_TYPE_LONG_LONG.
13152
13153 2006-10-11  Bruno Haible  <bruno@clisp.org>
13154
13155         * m4/longlong.m4: Add comments.
13156         * m4/ulonglong.m4: Likewise.
13157
13158 2006-10-10  Bruno Haible  <bruno@clisp.org>
13159
13160         Make it possible to #define stpcpy, strdup to aliases.
13161         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
13162         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
13163
13164 2006-10-10  Bruno Haible  <bruno@clisp.org>
13165
13166         Make it possible to #define gcd to an alias.
13167         * lib/gcd.c: Include config.h.
13168
13169 2006-10-10  Bruno Haible  <bruno@clisp.org>
13170
13171         Make it possible to #define c_isascii to an alias.
13172         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
13173         defined. Undefine the macros before defining them, to avoid gcc
13174         warnings.
13175         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
13176         define NO_C_CTYPE_MACROS early.
13177
13178 2006-10-10  Bruno Haible  <bruno@clisp.org>
13179
13180         Make it possible to #define set_program_name to an alias.
13181         * lib/progname.c: Don't undefine set_program_name; instead, undefine
13182         ENABLE_RELOCATABLE early.
13183
13184 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
13185
13186         Port to Tandem NSK OSS, which has 64-bit signed int but at most
13187         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
13188         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
13189         More generally, don't assume that 64-bit signed int is available
13190         if unsigned int is, and vice versa.
13191         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
13192         unsigned symbols, not on their signed counterparts.
13193         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
13194         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
13195         (UINT64_C, UINTMAX_C):
13196         Likewise.
13197         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
13198         unsigned counterparts.
13199         (Have_long_long, Unsigned): New macros.
13200         (Int): Renamed from INT.
13201         (strtoimax): Use the new macros.
13202         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
13203         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
13204         * modules/inttypes (inttypes.h): Substitute
13205         HAVE_UNSIGNED_LONG_LONG_INT.
13206         * modules/stdint (stdint.h): Likewise.
13207         (Files): Add m4/ulonglong.m4.
13208
13209 2006-10-10  Bruno Haible  <bruno@clisp.org>
13210
13211         Fix a gcc -Wshadow warning.
13212         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
13213         to 'bucket'.
13214         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
13215         gl_linked_indexof_from_to): Likewise.
13216         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
13217         Likewise.
13218         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
13219         Likewise.
13220         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
13221         Reported by Eric Blake.
13222
13223 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
13224
13225         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
13226         for NetBSD.  Problem reported by Bruno Haible.
13227
13228 2006-10-09  Jim Meyering  <jim@meyering.net>
13229
13230         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
13231         Patch from Bruno Haible.
13232
13233 2006-10-09  Jim Meyering  <jim@meyering.net>
13234
13235         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
13236         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
13237         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
13238
13239 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
13240
13241         Don't include <config.h> twice; this doesn't work in some cases,
13242         e.g., when config.h has "#define intmax_t long long int" and
13243         we include <config.h>, <inttypes.h>, <config.h> in that order.
13244         Problem reported by Matthew Woehlke in:
13245         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
13246         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
13247         * lib/fts-cycle.c: Don't include config.h.
13248         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
13249         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
13250         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
13251         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
13252         inttypes.h.
13253         * lib/xstrtoumax.c: Likewise.
13254         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
13255         __strtol and the like, so that this module is more like its siblings.
13256         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
13257         Remove; no longer needed now that we assume gnulib inttypes.h.
13258
13259 2006-10-08  Bruno Haible  <bruno@clisp.org>
13260
13261         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
13262         option.
13263
13264 2006-10-07  Jim Meyering  <jim@meyering.net>
13265
13266         * modules/inttypes (inttypes.h): Revert what seems to have been
13267         an inadvertent part of today's change: use "|", not "/" in the
13268         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
13269
13270 2006-10-07  Bruno Haible  <bruno@clisp.org>
13271
13272         * modules/sublist: New file.
13273
13274 2006-10-07  Bruno Haible  <bruno@clisp.org>
13275
13276         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
13277         * modules/argz (argz.h): Likewise.
13278         * modules/arpa_inet (arpa/inet.h): Likewise.
13279         * modules/byteswap (byteswap.h): Likewise.
13280         * modules/configmake (configmake.h): Likewise.
13281         * modules/fcntl (fcntl.h): Likewise.
13282         * modules/fnmatch (fnmatch.h): Likewise.
13283         * modules/getopt (getopt.h): Likewise.
13284         * modules/glob (glob.h): Likewise.
13285         * modules/inttypes (inttypes.h): Likewise.
13286         * modules/netinet_in (netinet/in.h): Likewise.
13287         * modules/poll (poll.h): Likewise.
13288         * modules/stdbool (stdbool.h): Likewise.
13289         * modules/stdint (stdint.h): Likewise.
13290         * modules/sys_select (sys/select.h): Likewise.
13291         * modules/sys_socket (sys/socket.h): Likewise.
13292         * modules/sys_stat (sys/stat.h): Likewise.
13293         * modules/sysexits (sysexits.h): Likewise.
13294         * modules/unistd (unistd.h): Likewise.
13295         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13296         Add a "DO NOT EDIT" comment to the generated file.
13297         (func_import): Likewise for gnulib-comp.m4.
13298
13299 2006-10-07  Bruno Haible  <bruno@clisp.org>
13300
13301         * lib/gl_sublist.h: New file.
13302         * lib/gl_sublist.c: New file.
13303
13304 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
13305
13306         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
13307         name (relative to the original working directory) and the file
13308         name component (relative to the temporary working directory).  All
13309         callers changed.
13310         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
13311         * lib/mkdir-p.c (make_dir_parents): Likewise.
13312         * lib/mkdir-p.h (make_dir_parents): Likewise.
13313
13314 2006-10-06  Eric Blake  <ebb9@byu.net>
13315
13316         Define several macros for use by the clean-temp module.
13317         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
13318         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
13319         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
13320
13321         * lib/clean-temp.h (close_stream_temp): New declaration.
13322         * lib/clean-temp.c (includes): Pull in headers according to what
13323         other modules are in use.
13324         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
13325
13326 2006-10-06  Bruno Haible  <bruno@clisp.org>
13327
13328         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
13329         instead of fopen, fwriteerror.
13330
13331 2006-10-06  Bruno Haible  <bruno@clisp.org>
13332
13333         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
13334         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
13335         int.
13336         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
13337         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
13338         Return an error indicator.
13339         Suggested by Eric Blake.
13340
13341 2006-10-06  Bruno Haible  <bruno@clisp.org>
13342
13343         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
13344         Reported by Eric Blake.
13345
13346 2006-10-06  Bruno Haible  <bruno@clisp.org>
13347
13348         * modules/closeout (Description): Mention stderr too.
13349
13350 2006-10-06  Bruno Haible  <bruno@clisp.org>
13351         and Paul Eggert  <eggert@cs.ucla.edu>
13352
13353         * lib/closeout.c (close_stdout): Also close stderr.
13354         * lib/closeout.h: Update comment.
13355
13356 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
13357
13358         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
13359         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
13360         * lib/dirchownmod.c: Include lchown.h.
13361         * lib/lchown.c: Don't include files that lchown.h now includes.
13362         Don't declare chown, since lchown.h now does that.
13363         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
13364         (lchown): Define to rpl_chown if lchown is declared but
13365         does not exist.  Declare using a prototype if lchown is not
13366         declared.  Add a copyright notice.
13367         * lib/mkstemp.h: Include <unistd.h>.
13368         * lib/openat.c: Include lchown.h.
13369
13370         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
13371         we now test for that separately.
13372         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
13373         rather than O_NOFOLLOW, when testing whether it's possible to
13374         avoid a race condition reliably.
13375         * lib/savewd.c (savewd_chdir): Likewise.
13376
13377         Remove macros that are no longer needed now that stdint.h is
13378         reliable.
13379         * lib/fsusage.c (UINTMAX_MAX): Remove.
13380         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
13381         * lib/utimecmp.c (SIZE_MAX): Remove.
13382
13383         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
13384
13385         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
13386         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
13387         O_NOATIME works.
13388
13389 2006-10-05  Bruno Haible  <bruno@clisp.org>
13390
13391         * lib/gl_list.h (gl_sortedlist_search_from_to,
13392         gl_sortedlist_indexof_from_to): New declarations.
13393         (gl_list_implementation): New fields sortedlist_search_from_to,
13394         sortedlist_indexof_from_to.
13395         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
13396         inline functions.
13397         * lib/gl_list.c (gl_sortedlist_search_from_to,
13398         gl_sortedlist_indexof_from_to): New functions.
13399         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
13400         function.
13401         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
13402         (gl_array_sortedlist_search_from_to): New function.
13403         (gl_array_list_implementation): Update.
13404         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
13405         function.
13406         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
13407         (gl_carray_sortedlist_search_from_to): New function.
13408         (gl_carray_list_implementation): Update.
13409         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
13410         gl_linked_sortedlist_indexof_from_to): New functions.
13411         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
13412         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
13413         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
13414         gl_tree_sortedlist_indexof_from_to): New functions.
13415         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
13416         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
13417         Update.
13418         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
13419         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
13420         Update.
13421
13422 2006-10-05  Bruno Haible  <bruno@clisp.org>
13423
13424         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
13425         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
13426         (struct gl_list_implementation): Add fields search_from_to,
13427         indexof_from_to. Remove fields search, indexof.
13428         (gl_list_search): Use the search_from_to method.
13429         (gl_list_search_from, gl_list_search_from_to): New functions.
13430         (gl_list_indexof): Use the indexof_from_to method.
13431         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
13432         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
13433         (gl_list_search_from, gl_list_search_from_to): New functions.
13434         (gl_list_indexof): Use the indexof_from_to method.
13435         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
13436         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
13437         gl_array_indexof. Add start_index, end_index arguments.
13438         (gl_array_search_from_to): Renamed from gl_array_search. Add
13439         start_index, end_index arguments.
13440         (gl_array_remove, gl_array_list_implementation): Update.
13441         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
13442         gl_carray_indexof. Add start_index, end_index arguments.
13443         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
13444         start_index, end_index arguments.
13445         (gl_carray_remove, gl_carray_list_implementation): Update.
13446         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
13447         gl_linked_search. Add start_index, end_index arguments.
13448         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
13449         start_index, end_index arguments.
13450         (gl_linked_remove): Update.
13451         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
13452         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
13453         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
13454         field to 'size_t'.
13455         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
13456         gl_tree_search. Add start_index, end_index arguments.
13457         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
13458         start_index, end_index arguments.
13459         (gl_tree_remove): Update.
13460         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
13461         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
13462         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
13463         function.
13464         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
13465         gl_tree_search. Add start_index, end_index arguments.
13466         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
13467         start_index, end_index arguments.
13468         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
13469         Update.
13470         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
13471
13472 2006-10-05  Bruno Haible  <bruno@clisp.org>
13473
13474         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
13475
13476         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
13477         fwriteerror_temp): New declarations.
13478         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
13479         (descriptors): New variable.
13480         (cleanup): First, close the descriptors.
13481         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
13482         fclose_temp, fwriteerror_temp): New functions.
13483
13484 2006-10-04  Jim Meyering  <jim@meyering.net>
13485
13486         * lib/fts.c (fts_open): Tiny comment change.
13487
13488 2006-10-04  Bruno Haible  <bruno@clisp.org>
13489
13490         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
13491         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
13492         gl_LOCK_BODY.
13493         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
13494         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
13495         gl_LOCK_EARLY_BODY.
13496         (gl_LOCK): Require gl_LOCK_BODY.
13497
13498 2006-10-04  Bruno Haible  <bruno@clisp.org>
13499
13500         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
13501         (gl_oset_search_atleast): New declaration.
13502         (struct gl_oset_implementation): Add field 'search_atleast'.
13503         (gl_oset_search_atleast): New inline function.
13504         * lib/gl_oset.c (gl_oset_search_atleast): New function.
13505         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
13506         (gl_array_oset_implementation): Update.
13507         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
13508         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
13509         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
13510
13511 2006-10-04  Bruno Haible  <bruno@clisp.org>
13512
13513         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
13514
13515 2006-10-03  Bruno Haible  <bruno@clisp.org>
13516
13517         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
13518         from gl_avltreehash_list_implementation.
13519
13520 2006-10-03  Bruno Haible  <bruno@clisp.org>
13521
13522         * lib/gl_oset.c (gl_oset_add): Fix return type.
13523
13524 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
13525
13526         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
13527
13528 2006-10-02  Eric Blake  <ebb9@byu.net>
13529
13530         * modules/strnlen (Depends-on): Add extensions.
13531
13532 2006-10-02  Eric Blake  <ebb9@byu.net>
13533
13534         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
13535         definition in 2.60+.
13536
13537 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
13538
13539         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
13540         checks.
13541
13542 2006-10-02  Bruno Haible  <bruno@clisp.org>
13543
13544         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
13545         to the AUTOMAKE_OPTIONS.
13546         Reported by Jim Meyering.
13547
13548 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
13549
13550         Work around bug in Solaris 10 /proc file system:
13551         /proc/self/fd/NNN/.. isn't the parent directory of
13552         the directory whose file descriptor is NNN.  This needs to
13553         be worked around at run time, not compile time, since a
13554         program might be built on Solaris 8, where things work, and
13555         run on Solaris 10.
13556         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
13557         to use the following interface instead:
13558         (OPENAT_BUFFER_SIZE): New macro.
13559         (openat_proc_name): New function.
13560         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
13561         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
13562         Likewise.
13563         * lib/openat-proc.c: New file.
13564         * modules/openat (Files): Add lib/openat-proc.c.
13565         (Depends-on): Add same-inode, stdbool.
13566         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
13567
13568 2006-09-29  Bruno Haible  <bruno@clisp.org>
13569
13570         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
13571         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
13572         argument. Set stdout_closed before testing for ferror, not after.
13573         (fwriteerror, fwriteerror_no_ebadf): New functions.
13574
13575 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13576
13577         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
13578
13579 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
13580
13581         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
13582         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
13583
13584 2006-09-28  Jim Meyering  <jim@meyering.net>
13585
13586         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
13587         Include <unistd.h>.
13588
13589 2006-09-28  Bruno Haible  <bruno@clisp.org>
13590
13591         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
13592         * modules/linkedhash-list (Depends-on): Likewise.
13593         * modules/rbtreehash-list (Depends-on): Likewise.
13594
13595 2006-09-28  Bruno Haible  <bruno@clisp.org>
13596
13597         * lib/strndup.h: Simplify the redefinition of strndup.
13598         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
13599         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
13600
13601 2006-09-28  Bruno Haible  <bruno@clisp.org>
13602
13603         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
13604         * lib/gl_linkedhash_list.c: Likewise.
13605         * lib/gl_rbtreehash_list.c: Likewise.
13606
13607 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
13608
13609         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
13610         getaddrinfo.
13611
13612         * lib/__fpending.h: Don't include <stdio_ext.h> unless
13613         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
13614         it causes <stdio_ext.h> to cause a compile-time error.
13615         Problem reported by Nelson H. F. Beebe.
13616         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
13617         of HAVE_DECL___PENDING.
13618
13619         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
13620         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
13621         declaration.
13622
13623 2006-09-27  Jim Meyering  <jim@meyering.net>
13624
13625         This file could end up with a definition for a function
13626         named __strndup, rather than rpl_strndup on a system with
13627         incomplete weak_alias support.
13628         * lib/strndup.c (strndup): Rename from __strndup.
13629         Remove #defines that used to map __strndup to strndup.
13630         Don't use K&R prototypes.
13631         Remove LIBC-related code, since this file is not sync'd with glibc.
13632         * lib/strndup.h: Revamp, accordingly.
13633         * m4/strndup.m4: Modernize.
13634
13635 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
13636
13637         * modules/savewd (Depends-on): Add 'raise'.
13638         * lib/savewd.c: Include <signal.h>, for 'raise'.
13639
13640 2006-09-26  Jim Meyering  <jim@meyering.net>
13641
13642         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
13643         when we detect Darwin 8.7.0's acl_get_file bug.
13644         Rearrange to perform the new (below) run-test while $LIBS
13645         contains any acl-related library.  Set USE_ACL at the end.
13646         (gl_ACL_GET_FILE): New function.
13647
13648 2006-09-26  Eric Blake  <ebb9@byu.net>
13649
13650         * lib/verror.c: Include <config.h> unconditionally.
13651
13652 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
13653
13654         * modules/clock-time (Maintainer): Add self.
13655         * modules/getlogin_r (Depends-on): Add extensions.
13656
13657 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13658
13659         * modules/clock-time: New module.
13660         * modules/nanosleep (Depends-on): Add clock-time.
13661         * modules/gethrxtime (Depends-on): Likewise.
13662         * modules/gettime (Depends-on): Likewise.
13663         * modules/settime (Depends-on): Likewise.
13664
13665         * modules/fts-lgpl: Depend on openat.
13666         * modules/mkancesdirs: Depend on savewd.
13667         * modules/mkdir-p: Likewise.
13668
13669 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13670
13671         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
13672
13673         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
13674         `gl_have_arbitrary_file_name_length_limit' to
13675         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
13676         actually works between configure runs.
13677
13678 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13679             Bruno Haible  <bruno@clisp.org>
13680
13681         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
13682
13683 2006-09-25  Jim Meyering  <jim@meyering.net>
13684
13685         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
13686         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
13687
13688 2006-09-25  Eric Blake  <ebb9@byu.net>
13689
13690         * gnulib-tool (func_import, func_create_testdir): Fix typos in
13691         exec's in 2006-09-18 patch when shuffling fds.
13692
13693 2006-09-25  Bruno Haible  <bruno@clisp.org>
13694
13695         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
13696         Reported by Jim Meyering.
13697
13698 2006-09-24  Jim Meyering  <jim@meyering.net>
13699
13700         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
13701         compare a pointer against a literal "0".  That caused failures with
13702         at least HP-UX's hpcc.
13703
13704 2006-09-22  Simon Josefsson  <jas@extundo.com>
13705
13706         * modules/gc-sha1:
13707         * modules/gc-md4:
13708         * modules/gc-hmac-sha1:
13709         * modules/gc-hmac-md5:
13710         * modules/gc-des:
13711         * modules/gc-arcfour: Distribute more files.
13712
13713 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13714
13715         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
13716         (gl_linked_iterator_from_to): Initialize struct completely.
13717         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
13718         (gl_tree_iterator_from_to): Likewise
13719         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
13720         * lib/gl_array_list.c [lint] (gl_array_iterator)
13721         (gl_array_iterator_from_to): Likewise.
13722         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
13723         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
13724         (gl_carray_iterator_from_to): Likewise.
13725
13726         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
13727         * lib/md4.c (md4_process_block): Remove unused variable.
13728         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
13729         parentheses for clarity.
13730
13731 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13732
13733         * modules/bison-i18n (Depends-on): Add gettext.
13734
13735 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13736
13737         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
13738         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
13739         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
13740         also add missing comma that caused broken test.
13741         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
13742         stdlib.h, for `abort'.
13743         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
13744         variables.
13745         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
13746         include unistd.h if present, for `rmdir'.
13747         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
13748         variables.
13749         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
13750         in the process include standard headers for prototypes.
13751         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
13752         gets declared on GNU/Linux.
13753         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
13754         unistd.h, for `rmdir'.
13755         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
13756
13757         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
13758         always true.
13759         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
13760
13761         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
13762
13763 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13764
13765         * gnulib-tool (func_version): Create output all at once.  This
13766         may help avoid triggering unnecessary SIGPIPEs, and at any
13767         rate it doesn't hurt.
13768
13769 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13770             Bruno Haible  <bruno@clisp.org>
13771
13772         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
13773         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
13774         * m4/signed.m4 (bh_C_SIGNED): Likewise.
13775
13776         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
13777         (gl_FUNC_VASPRINTF): Invoke it.
13778
13779 2006-09-22  Bruno Haible  <bruno@clisp.org>
13780
13781         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
13782         getloadavg.c as first argument.
13783
13784 2006-09-22  Bruno Haible  <bruno@clisp.org>
13785
13786         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
13787         at the beginning of the gl_INIT macro.
13788         * modules/getloadavg (configure.ac): Pass $gl_source_base to
13789         gl_GETLOADAVG.
13790
13791 2006-09-22  Bruno Haible  <bruno@clisp.org>
13792
13793         * gnulib-tool (func_create_megatestdir): Don't include the config-h
13794         module.
13795         Suggested by Ralf Wildenhues.
13796
13797 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
13798
13799         Import this patch from libc:
13800
13801         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
13802
13803         * lib/regex_internal.c (re_string_reconstruct): Handle
13804         offset < pstr->valid_raw_len && pstr->offsets_needed case.
13805         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
13806         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
13807         re_string_context_at.
13808
13809         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
13810         now requires it.
13811         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
13812         gl_REGEX now does it for us.
13813         (gl_REGEX): Add test taken from
13814         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
13815
13816         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
13817         Check that large offsets work.  Modernize Autoconf usages.
13818         Prefer "yes" to mean a good thing rather than a bad.
13819         Don't put "#define mkstemp" in config.h, as this might interfere
13820         with standard system headers that "#define mkstemp mkstemp64".
13821
13822         * modules/mkstemp (Depends-on): Add extensions, so that
13823         mkstemp is visible on some platforms.
13824         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
13825         (Include): Change to "mkstemp.h" from <stdlib.h>.
13826         (Files): Add mkstemp.h.
13827
13828         * lib/mkstemp.h: New file, since some standard headers
13829         #define mkstemp.
13830         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
13831         Include "mkstemp.h".
13832         Make the _LIBC code resemble glibc original more,
13833         e.g., use K&R style.
13834         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
13835         (mkstemp): Remove, since mkstemp.h does this for us.
13836         * lib/stdlib--.h: Include mkstemp.h.
13837
13838         Import this patch from libc:
13839
13840         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
13841
13842         * lib/tempname.c (__gen_tempname): Change attempts_min
13843         into a macro.  Use preprocessor to decide how to initialize
13844         attempts [Coverity CID 67].
13845
13846 2006-09-20  Bruno Haible  <bruno@clisp.org>
13847
13848         * lib/mkdtemp.c: Import from libc.
13849         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
13850                 * sysdeps/posix/tempname.c (__gen_tempname): Change
13851                 attempts_min into a macro.  Use preprocessor to decide how to
13852                 initialize attempts [Coverity CID 67].
13853         2001-11-27  Paul Eggert  <eggert@twinsun.com>
13854                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
13855                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
13856
13857 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13858
13859         * gnulib-tool (func_exit): New function, to allow to pass the
13860         exit status portably through the trap.  Use everywhere.
13861         (--help, --version): Signal a write error.
13862         (trap): catch SIGPIPE, for write errors.
13863         Exit at the end of the trap, with the correct exit status.
13864
13865 2006-09-19  Karl Berry  <karl@gnu.org>
13866
13867         * doc/gnulib.texi: note about the license texinfo files.
13868
13869 2006-09-19  Eric Blake  <ebb9@byu.net>
13870
13871         * gnulib-tool: Avoid space-tab.
13872
13873 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
13874
13875         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
13876         that prevented coreutils 6.1 from building.  Problem reported
13877         by Petter Reinholdtsen.
13878
13879 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
13880
13881         * gnulib-tool (avoidlist): Fix typo that broke options like
13882         --avoid=lock that are used by coreutils bootstrap.
13883
13884 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
13885
13886         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
13887         more systematically.
13888
13889 2006-09-18  Jim Meyering  <jim@meyering.net>
13890
13891         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
13892
13893 2006-09-18  Bruno Haible  <bruno@clisp.org>
13894
13895         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
13896
13897 2006-09-18  Bruno Haible  <bruno@clisp.org>
13898
13899         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
13900         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
13901         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
13902         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
13903         * m4/gettext.m4: Require autoconf >= 2.52.
13904         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
13905         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
13906         of gl_cv_header_inttypes_h.
13907
13908 2006-09-18  Bruno Haible  <bruno@clisp.org>
13909
13910         * lib/javaversion.c: Include configmake.h.
13911
13912 2006-09-18  Bruno Haible  <bruno@clisp.org>
13913
13914         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
13915         avoid that the while loops be executed in a subshell.
13916
13917 2006-09-18  Bruno Haible  <bruno@clisp.org>
13918
13919         * MODULES.html.sh (func_module): Break long lines.
13920         Suggested by Bruce Korb <bkorb@gnu.org>.
13921
13922 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13923
13924         Speed up by a factor of 1.12.
13925         * gnulib-tool (nl): New variable.
13926         (func_import): Rewrite include directive extraction to only read each
13927         directive once.
13928
13929 2006-09-17  Bruno Haible  <bruno@clisp.org>
13930
13931         * modules/javaversion (Makefile.am): Remove DEFS setting.
13932         (Depends-on): Add configmake, for PKGDATADIR definition.
13933
13934 2006-09-17  Bruno Haible  <bruno@clisp.org>
13935
13936         * gnulib-tool (func_create_testdir): Rewrite all files at once.
13937
13938 2006-09-17  Bruno Haible  <bruno@clisp.org>
13939
13940         * gnulib-tool (func_append): New function, stolen from libtool.m4.
13941         (func_modules_transitive_closure, func_modules_add_dummy,
13942         func_modules_to_filelist, func_import, func_create_testdir,
13943         func_create_megatestdir, ...): Use it wherever possible.
13944         Suggested by Ralf Wildenhues.
13945
13946 2006-09-16  Karl Berry  <karl@gnu.org>
13947
13948         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
13949         to avoid sectioning errors.
13950         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
13951         [ifinfo]: blank line after @center-ed titles.
13952         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
13953         Spell FSF address consistently with others.
13954         (These changes approved by rms.)
13955
13956 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13957
13958         Speed up by a factor of 1.61.
13959         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
13960         already checked module names again.
13961
13962 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13963
13964         Speed up by a factor of 1.13.
13965         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
13966         for new_files, and the input to func_add_or_update.
13967
13968 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13969
13970         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
13971         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
13972
13973 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
13974
13975         * modules/mkancesdirs (Depends-on): Add fcntl.
13976         * modules/savewd: New file.
13977         * MODULES.html.sh (File system functions): Add savewd.
13978
13979         * modules/configmake (Makefile.am): Add support for the
13980         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
13981
13982 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
13983
13984         * m4/savewd.m4: New file.
13985
13986 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
13987
13988         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
13989         (dirchownmod): New arg FD.  All callers changed.
13990         Use FD rather than opening the directory ourself, as opening is
13991         now the caller's responsibility.
13992         * lib/dirchownmod.h: Likewise.
13993         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
13994         hosts that require <sys/types.h> before <sys/stat.h>.  Include
13995         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
13996         (test_dir): Remove.
13997         (mkancesdirs): Return length of prefix of FILE that has already
13998         been made, or -2 if there is a child doing the work.  Redo
13999         algorithm so that it is O(N) rather than O(N**2).  Optimize away
14000         ".", and treat ".." specially since it might stray back into
14001         already-created areas.  Use a subprocess if necessary.  New arg
14002         WD; all users changed.  MAKE_DIR function should now return 1
14003         if it creates a directory that is not readable.  Return -2 if
14004         a child process is spun off.
14005         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
14006         Adjust signature to match code.
14007         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
14008         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
14009         all users changed.
14010         * lib/savewd.c, lib/savewd.h: New files.
14011
14012 2006-09-15  Jim Meyering  <jim@meyering.net>
14013
14014         * modules/rename-dest-slash: New module.
14015         * MODULES.html.sh (posix_compat): Add it here.
14016
14017         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
14018
14019 2006-09-15  Jim Meyering  <jim@meyering.net>
14020
14021         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
14022         file.
14023
14024         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
14025
14026 2006-09-15  Jim Meyering  <jim@meyering.net>
14027
14028         * lib/rename-dest-slash.c (has_trailing_slash): Use
14029         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
14030         (rpl_rename_dest_slash): Perform the cheaper trailing slash
14031         test before testing whether SRC is a directory.
14032         Suggestions from Bruno Haible.
14033
14034         Avoid a warning about an unused variable.
14035         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
14036         into the #ifdef block where it's used.
14037
14038         * lib/rename-dest-slash.c: New file.
14039
14040 2006-09-14  Bruno Haible  <bruno@clisp.org>
14041
14042         * lib/allocsa.c: Include <config.h> unconditionally.
14043         * lib/asnprintf.c: Likewise.
14044         * lib/asprintf.c: Likewise.
14045         * lib/c-strcasecmp.c: Likewise.
14046         * lib/c-strcasestr.c: Likewise.
14047         * lib/c-strncasecmp.c: Likewise.
14048         * lib/c-strstr.c: Likewise.
14049         * lib/classpath.c: Likewise.
14050         * lib/clean-temp.c: Likewise.
14051         * lib/concatpath.c: Likewise.
14052         * lib/copy-file.c: Likewise.
14053         * lib/csharpcomp.c: Likewise.
14054         * lib/csharpexec.c: Likewise.
14055         * lib/execute.c: Likewise.
14056         * lib/fatal-signal.c: Likewise.
14057         * lib/findprog.c: Likewise.
14058         * lib/fwriteerror.c: Likewise.
14059         * lib/gl_array_list.c: Likewise.
14060         * lib/gl_array_oset.c: Likewise.
14061         * lib/gl_avltree_list.c: Likewise.
14062         * lib/gl_avltree_oset.c: Likewise.
14063         * lib/gl_avltreehash_list.c: Likewise.
14064         * lib/gl_carray_list.c: Likewise.
14065         * lib/gl_linked_list.c: Likewise.
14066         * lib/gl_linkedhash_list.c: Likewise.
14067         * lib/gl_list.c: Likewise.
14068         * lib/gl_oset.c: Likewise.
14069         * lib/gl_rbtree_list.c: Likewise.
14070         * lib/gl_rbtree_oset.c: Likewise.
14071         * lib/gl_rbtreehash_list.c: Likewise.
14072         * lib/imaxabs.c: Likewise.
14073         * lib/imaxdiv.c: Likewise.
14074         * lib/javacomp.c: Likewise.
14075         * lib/javaexec.c: Likewise.
14076         * lib/javaversion.c: Likewise.
14077         * lib/linebreak.c: Likewise.
14078         * lib/localcharset.c: Likewise.
14079         * lib/lock.c: Likewise.
14080         * lib/mbchar.c: Likewise.
14081         * lib/mbswidth.c: Likewise.
14082         * lib/mkdtemp.c: Likewise.
14083         * lib/pipe.c: Likewise.
14084         * lib/printf-args.c: Likewise.
14085         * lib/printf-parse.c: Likewise.
14086         * lib/progname.c: Likewise.
14087         * lib/progreloc.c: Likewise.
14088         * lib/readlink.c: Likewise.
14089         * lib/sh-quote.c: Likewise.
14090         * lib/stpcpy.c: Likewise.
14091         * lib/stpncpy.c: Likewise.
14092         * lib/strcasecmp.c: Likewise.
14093         * lib/strcasestr.c: Likewise.
14094         * lib/strcspn.c: Likewise.
14095         * lib/striconv.c: Likewise.
14096         * lib/strncasecmp.c: Likewise.
14097         * lib/strnlen1.c: Likewise.
14098         * lib/strstr.c: Likewise.
14099         * lib/strtok_r.c: Likewise.
14100         * lib/tls.c: Likewise.
14101         * lib/tmpdir.c: Likewise.
14102         * lib/unicodeio.c: Likewise.
14103         * lib/unsetenv.c: Likewise.
14104         * lib/vasnprintf.c: Likewise.
14105         * lib/vasprintf.c: Likewise.
14106         * lib/wait-process.c: Likewise.
14107         * lib/xallocsa.c: Likewise.
14108         * lib/xsetenv.c: Likewise.
14109         * lib/xstriconv.c: Likewise.
14110
14111 2006-09-13  Simon Josefsson  <jas@extundo.com>
14112
14113         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
14114         that internally, suggested by Ralf Wildenhues
14115         <Ralf.Wildenhues@gmx.de>.
14116
14117 2006-09-13  Simon Josefsson  <jas@extundo.com>
14118
14119         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
14120         @LIBOBJS@.
14121         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14122
14123 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
14124
14125         * lib/_fpending.c: Include <config.h> unconditionally, since we no
14126         longer worry about uses that don't define HAVE_CONFIG_H.
14127         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
14128         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
14129         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
14130         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
14131         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
14132         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
14133         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
14134         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
14135         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
14136         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
14137         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
14138         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
14139         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
14140         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
14141         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
14142         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
14143         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
14144         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
14145         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
14146         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
14147         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
14148         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
14149         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
14150         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
14151         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
14152         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
14153         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
14154         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
14155         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
14156         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
14157         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
14158         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
14159         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
14160         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
14161         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
14162         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
14163         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
14164         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
14165         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
14166         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
14167         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
14168         Likewise.
14169
14170 2006-09-13  Eric Blake  <ebb9@byu.net>
14171
14172         * lib/getopt.c: Fix typo in last commit.
14173
14174 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
14175
14176         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
14177         dgettext.
14178
14179 2006-09-12  Jim Meyering  <jim@meyering.net>
14180
14181         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
14182         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
14183         Reported by Nelson H. F. Beebe.
14184
14185 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
14186
14187         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
14188         program_invocation_name and program_invocation_short_name are
14189         initialized.
14190         * lib/argp-namefrob.h: Move declarations of program_invocation_name
14191         and program_invocation_short_name to argp.h, so they are visible
14192         to user programs.
14193         * lib/argp.h: Likewise
14194
14195 2006-09-10  Bruno Haible  <bruno@clisp.org>
14196
14197         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
14198         m4/inttypes_h.m4, m4/uintmax_t.m4.
14199
14200 2006-09-10  Bruno Haible  <bruno@clisp.org>
14201
14202         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
14203         gl_AC_TYPE_UINTMAX_T.
14204
14205 2006-09-10  Bruno Haible  <bruno@clisp.org>
14206
14207         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
14208
14209 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
14210
14211         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
14212         convention.  Text proposed by Bruno Haible.
14213         (struct argp_option): Document the use of N_() wrappers.
14214
14215         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
14216         '\v', and translate the two parts separately, instead of feeding
14217         the whole string to gettext.  This allows to exclude
14218         '\v' from the strings visible to the translator by writing doc
14219         strings as N_("..") "\v" N_("..").
14220
14221 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
14222
14223         * config/srclist.txt: Undo latest change; the bug was fixed.
14224
14225 2006-09-09  Bruno Haible  <bruno@clisp.org>
14226
14227         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
14228         assignments if building a library without libtool.
14229         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
14230         in func_emit_lib_Makefile_am.
14231         (func_import): When building a static library libfoo.a, arrange to
14232         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
14233         (func_create_testdir): Likewise.
14234         * modules/gc (configure.ac, Makefile.am): If building statically,
14235         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
14236         * modules/iconvme (configure.ac, Makefile.am): Likewise.
14237         * modules/striconv (configure.ac, Makefile.am): Likewise.
14238         Based on a suggestion by Ralf Wildenhues.
14239
14240 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
14241
14242         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
14243         Check for unistd.h too, since Autoconf doesn't assume POSIX.
14244         Also:
14245
14246         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
14247         Add year_2050_test to catch glibc bug 2821
14248         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
14249
14250         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
14251         Prefer #ifdef to #if.
14252
14253         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
14254         Return from 'main' instead of calling 'exit'.
14255
14256 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
14257
14258         * lib/mktime.c (guess_time_tm): Fix bug where mktime
14259         returned the maximum time_t value rather than (time_t) -1.
14260         Problem originally reported by William Bardwell
14261         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
14262
14263         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
14264         Moved to here ...
14265         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
14266         ... from here.
14267
14268 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
14269
14270         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
14271         2821 is fixed.
14272
14273 2006-09-08  Jim Meyering  <jim@meyering.net>
14274
14275         Don't make generated files read-only.  That would bother too many
14276         people.  However, do retain the ability to work when targets are
14277         read-only: remove the destination and temporary files before writing
14278         them (when generated via sed or echo), or by using the -f option for
14279         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
14280         * modules/alloca-opt, modules/argz, modules/arpa_inet:
14281         * modules/byteswap, modules/configmake, modules/fcntl:
14282         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
14283         * modules/localcharset, modules/netinet_in, modules/poll:
14284         * modules/stdbool, modules/stdint, modules/sys_select:
14285         * modules/sys_socket, modules/sys_stat, modules/sysexits:
14286
14287 2006-09-08  Jim Meyering  <jim@meyering.net>
14288
14289         Avoid new build failure on FreeBSD 6.0.
14290         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
14291         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
14292         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
14293
14294 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14295
14296         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
14297
14298 2006-09-07  Jim Meyering  <jim@meyering.net>
14299
14300         Fix global typo in last change: use chmod u-w, not chmod u-x.
14301         Spotted by Paul Eggert and Bruce Korb.
14302         * modules/alloca-opt, modules/argz, modules/arpa_inet:
14303         * modules/byteswap, modules/configmake, modules/fcntl:
14304         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
14305         * modules/localcharset, modules/netinet_in, modules/poll:
14306         * modules/stdbool, modules/stdint, modules/sys_select:
14307         * modules/sys_socket, modules/sys_stat, modules/sysexits:
14308
14309 2006-09-06  Jim Meyering  <jim@meyering.net>
14310
14311         Make generated files be read-only.
14312         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
14313         Ensure that each generated file is now read-only.
14314         * modules/argz: Likewise.
14315         * modules/arpa_inet: Likewise.
14316         * modules/byteswap: Likewise.
14317         * modules/configmake: Likewise.
14318         * modules/fcntl: Likewise.
14319         * modules/fnmatch: Likewise.
14320         * modules/getopt: Likewise.
14321         * modules/glob: Likewise.
14322         * modules/inttypes: Likewise.
14323         * modules/netinet_in: Likewise.
14324         * modules/poll: Likewise.
14325         * modules/stdbool: Likewise.
14326         * modules/stdint: Likewise.
14327         * modules/sys_select: Likewise.
14328         * modules/sys_socket: Likewise.
14329         * modules/sys_stat: Likewise.
14330         * modules/sysexits: Likewise.
14331         * modules/localcharset: Same as above, but continue using temporary
14332         file named "t-$@" (why different?) rather than the "$@-t" used
14333         everywhere else.
14334
14335         * modules/sysexits (Makefile.am): Replace literal occurrences
14336         of "sysexit.h" more readable, and more consistent, "$@".
14337
14338 2006-09-06  Bruno Haible  <bruno@clisp.org>
14339
14340         * modules/striconv: New file.
14341         * modules/xstriconv: New file.
14342         * MODULES.html.sh (Internationalization functions): Add striconv,
14343         xstriconv.
14344
14345 2006-09-06  Bruno Haible  <bruno@clisp.org>
14346
14347         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
14348         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
14349         not using libtool correctly.
14350
14351 2006-09-06  Bruno Haible  <bruno@clisp.org>
14352
14353         * lib/striconv.h: New file.
14354         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
14355         iconvstring.c.
14356         * lib/xstriconv.h: New file.
14357         * lib/xstriconv.c: New file.
14358
14359 2006-09-06  Bruno Haible  <bruno@clisp.org>
14360
14361         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
14362         lib_..._LDFLAGS.
14363
14364 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14365
14366         * lib/argz_.h: Sync from Libtool.
14367
14368         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
14369                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14370
14371         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
14372
14373 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
14374
14375         * modules/trim: New file.
14376
14377 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
14378
14379         * lib/trim.h: New file.
14380         * lib/trim.c: New file.
14381
14382 2006-09-05  Bruno Haible  <bruno@clisp.org>
14383
14384         * MODULES.html.sh (String handling): Add trim.
14385
14386 2006-09-04  Karl Berry  <karl@gnu.org>
14387
14388         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
14389         until next release.
14390
14391 2006-09-03  Bruno Haible  <bruno@clisp.org>
14392
14393         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
14394         correctly.
14395
14396 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
14397
14398         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
14399         not gl_GETLOADAVG.  Omit unneeded semicolons.
14400         Problems reported by Ralf Wildenhues in
14401         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
14402         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
14403         at the end, which is the usual gnulib style.
14404
14405         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
14406         of doing all the work ourselves.
14407         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
14408         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
14409
14410 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
14411
14412         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
14413         Problem reported by Ralf Wildenhues in
14414         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
14415
14416         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
14417         HAVE_STRUCT_STATFS_F_FSTYPENAME.
14418
14419 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
14420
14421         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
14422         yesterday's patch by changing test -n to test -z.
14423
14424 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
14425
14426         * modules/getloadavg (Files): Add m4/getloadavg.m4.
14427         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
14428         the former is now obsolescent.
14429
14430         * modules/chdir-long (Depends-on): Add fcntl.
14431
14432 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
14433
14434         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
14435         obsolescent, and programs should use gnulib instead.
14436         * m4/getloadavg.m4: New file, with contents taken from Autoconf
14437         but with prefixes changed.
14438
14439 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
14440
14441         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
14442         or stdbool.h, because they might not exist while configuring.
14443
14444         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
14445         Don't include unistd.h or limits.h; not needed, since chdir-long.h
14446         does that for us.
14447         (O_DIRECTORY): Remove.
14448
14449 2006-08-31  Eric Blake  <ebb9@byu.net>
14450
14451         * gnulib-tool: Don't let emacs change spaces to TAB.
14452
14453 2006-08-31  Bruno Haible  <bruno@clisp.org>
14454
14455         * gnulib-tool: When calling func_import more than once, do it in a
14456         subshell.
14457         Reported by Eric Blake <ebb9@byu.net>.
14458
14459 2006-08-31  Bruno Haible  <bruno@clisp.org>
14460
14461         * gnulib-tool (nl): Remove variable.
14462         (sed_transform_lib_file): Use more robust test for config-h module.
14463         (func_import): Fix typo in 2006-08-25 patch.
14464
14465 2006-08-31  Bruno Haible  <bruno@clisp.org>
14466
14467         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
14468         specified, augment Makefile.am variables instead of assigning them.
14469
14470 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
14471
14472         Work around a bug in both the Linux and SunOS 64-bit kernels:
14473         nanosleep mishandles sleeps for longer than 2**31 seconds.
14474         Problem reported by Frank v Waveren in
14475         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
14476         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
14477         Check for nanosleep bug.
14478         (LIB_NANOSLEEP): Append clock_gettime library if needed.
14479
14480 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
14481
14482         Work around a bug in both the Linux and SunOS 64-bit kernels:
14483         nanosleep mishandles sleeps for longer than 2**31 seconds.
14484         Problem reported by Frank v Waveren in
14485         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
14486         * lib/nanosleep.c (BILLION): New constant.
14487         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
14488         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
14489         implementation.
14490
14491 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
14492
14493         * modules/nanosleep (Depends-on): Add gettime.
14494
14495 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
14496         and Simon Josefsson  <jas@extundo.com>
14497         and Oskar Liljeblad  <oskar@osk.mine.nu>
14498
14499         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
14500         * gnulib-tool (func_import): New license type 'unmodifiable license
14501         text'.
14502         * modules/fdl: Use it.  Longer description.
14503         * module/gpl, module/lgpl: New files.
14504
14505 2006-08-30  Jim Meyering  <jim@meyering.net>
14506
14507         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
14508         shadowing the parameter.
14509
14510 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14511
14512         Sync from Libtool:
14513
14514         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14515
14516         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
14517         sharing with gnulib.  Report by Eric Blake.
14518
14519 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
14520
14521         * modules/isapipe: New file.
14522         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
14523
14524 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
14525
14526         * modules/configmake (Makefile.am): Add a comment, and omit
14527         the CONFIGMAKE_ prefix from generated macro names.  Suggested
14528         by Bruno Haible.
14529
14530 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
14531
14532         * m4/isapipe.m4: New file.
14533
14534 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
14535
14536         * lib/isapipe.c, lib/isapipe.h: New files.
14537
14538 2006-08-29  Jim Meyering  <jim@meyering.net>
14539
14540         * modules/configmake (Makefile.am): Make configmake.h depend on
14541         Makefile.  Otherwise, a stale configmake.h could hang around.
14542
14543 2006-08-29  Eric Blake  <ebb9@byu.net>
14544
14545         * lib/error.c (error_at_line, print_errno_message): Match libc, after
14546         resolution of upstream bug 3044.
14547
14548 2006-08-29  Bruno Haible  <bruno@clisp.org>
14549
14550         * modules/localcharset (Depends-on): Add configmake.
14551         (Makefile.am): Remove setting of LIBDIR through DEFS.
14552
14553 2006-08-29  Bruno Haible  <bruno@clisp.org>
14554
14555         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
14556         defined.
14557
14558 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
14559
14560         * modules/fcntl: New file.
14561         * modules/chdir-safer (Depends-on): Add fcntl.
14562         * modules/fts: Likewise.
14563         * modules/mkdir-p: Likewise.
14564
14565         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
14566         This undoes the most recent change, since we're now addressing the
14567         problem in a different way.
14568
14569         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
14570         into output, since the output might be called Makefile.am even
14571         if $makefile_name is something different.
14572         (func_import): Use $makefile_am rather than
14573         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
14574         empty.
14575
14576         * modules/inttypes (Files): Add m4/inttypes-h.m4.
14577
14578 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
14579
14580         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
14581         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
14582         recent change to stdint.m4, since we're now addressing the problem in a
14583         different way.
14584
14585 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
14586
14587         * m4/fcntl_h.m4: New file.
14588
14589 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
14590
14591         * lib/fcntl_.h: New file.
14592         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
14593         the fcntl module.
14594         * lib/dirchownmod.c: Likewise.
14595         * lib/fts.c: Likewise.
14596
14597         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
14598         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
14599         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
14600         just before including <inttypes.h>, to avoid circular inclusion.
14601
14602 2006-08-28  Jim Meyering  <jim@meyering.net>
14603
14604         * doc/visibility.texi: Actually read and correct the grammar of the
14605         sentence affected by yesterday's change.
14606
14607 2006-08-28  Eric Blake  <ebb9@byu.net>
14608
14609         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
14610         needs wrapper.
14611
14612 2006-08-28  Eric Blake  <ebb9@byu.net>
14613
14614         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
14615
14616 2006-08-28  Eric Blake  <ebb9@byu.net>
14617
14618         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
14619
14620 2006-08-28  Bruno Haible  <bruno@clisp.org>
14621
14622         * modules/c-strstr: New file, from GNU gettext.
14623         * MODULES.html.sh (String handling): Add c-strstr.
14624
14625 2006-08-28  Bruno Haible  <bruno@clisp.org>
14626
14627         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
14628         macros.
14629         Reported by Eric Blake.
14630
14631 2006-08-28  Bruno Haible  <bruno@clisp.org>
14632
14633         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
14634         (VASNPRINTF): Return a string of length > INT_MAX without failing.
14635         * lib/vasprintf.c: Include errno.h, limits.h.
14636         (EOVERFLOW): New fallback definition.
14637         (vasprintf): Test here whether the string length is > INT_MAX.
14638         * lib/vsnprintf.c: Include errno.h, limits.h.
14639         (EOVERFLOW): New fallback definition.
14640         (vsnprintf): Fix bug when generated string was too long for the buffer.
14641         Test here whether the string length is > INT_MAX.
14642
14643 2006-08-28  Bruno Haible  <bruno@clisp.org>
14644
14645         * lib/inttypes_.h (SCNX*): Remove definitions.
14646         Reported by Eric Blake.
14647
14648 2006-08-28  Bruno Haible  <bruno@clisp.org>
14649
14650         * lib/c-strstr.h: New file, from GNU gettext.
14651         * lib/c-strstr.c: New file, from GNU gettext.
14652
14653 2006-08-28  Bruno Haible  <bruno@clisp.org>
14654
14655         * gnulib-tool: Reorder some statements.
14656
14657 2006-08-28  Bruno Haible  <bruno@clisp.org>
14658
14659         * gnulib-tool: New option --makefile-name.
14660         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
14661         $makefile_name.
14662         (func_import): Write $makefile_name to the cache file, and read it from
14663         there unless explicitly specified. Use $makefile_name as file name
14664         instead of Makefile.am. Adjust the recommendations accordingly.
14665
14666 2006-08-28  Bruno Haible  <bruno@clisp.org>
14667
14668         * gnulib-tool (func_verify_module): Check against misapplying patch.
14669
14670 2006-08-28  Bruno Haible  <bruno@clisp.org>
14671
14672         * gnulib-tool (func_relativize, func_relconcat): New functions.
14673         Give an error if --local-dir is given with --update.
14674         Remove trailing slashes from $local_gnulib_dir.
14675         (func_import): Store the relativized $local_gnulib_dir in
14676         gnulib-cache.m4, and read it from there if not specified explicitly.
14677
14678 2006-08-28  Bruno Haible  <bruno@clisp.org>
14679
14680         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
14681         is the current directory. Respect also $local_gnulib_dir.
14682
14683 2006-08-28  Bruno Haible  <bruno@clisp.org>
14684             Simon Josefsson  <jas@extundo.com>
14685
14686         BeOS portability.
14687         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
14688
14689 2006-08-27  Jim Meyering  <jim@meyering.net>
14690
14691         * doc/visibility.texi: Remove duplicate word: "pointer".
14692
14693 2006-08-26  Bruno Haible  <bruno@clisp.org>
14694
14695         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
14696         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
14697         (Makefile.am): Create inttypes.h from inttypes_.h.
14698         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
14699
14700         * modules/imaxabs: New file.
14701
14702         * modules/imaxdiv: New file.
14703
14704 2006-08-26  Bruno Haible  <bruno@clisp.org>
14705
14706         * m4/inttypes.m4: New file.
14707         * m4/_inttypes_h.m4: Remove file.
14708         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
14709         PRI_MACROS_BROKEN.
14710         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
14711
14712         * m4/imaxabs.m4: New file.
14713
14714         * m4/imaxdiv.m4: New file.
14715
14716 2006-08-26  Bruno Haible  <bruno@clisp.org>
14717
14718         * lib/inttypes_.h: New file.
14719         * lib/inttypes.h: Remove file.
14720         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
14721
14722         * lib/imaxabs.c: New file.
14723
14724         * lib/imaxdiv.c: New file.
14725
14726 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
14727
14728         New config-h module, so that "make" output needn't be cluttered
14729         by -DHAVE_CONFIG_H.
14730         * MODULES.html.sh (Support for building libraries and executables):
14731         Add config-h.
14732         * modules/config-h: New file.
14733         * gnulib-tool (nl, sed_transform_lib_file): New vars.
14734         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
14735         the config-h module is used.
14736
14737         New configmake module, so that "make" output needn't be cluttered
14738         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
14739         * MODULES.html.sh (Support for building libraries and executables):
14740         Add configmake.
14741         * modules/configmake: New file.
14742
14743 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
14744
14745         * m4/config-h.m4: New file.
14746
14747 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
14748
14749         * config/srclist.txt: Add elisp-comp.
14750
14751 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
14752
14753         * MODULES.html.sh (Support for building libraries and executables):
14754         Add elisp-comp.
14755         * build-aux/elisp-comp: New file.
14756         * modules/elisp-comp: New file.
14757
14758 2006-08-24  Bruno Haible  <bruno@clisp.org>
14759
14760         * gnulib-tool (func_create_testdir): Use non-default values of
14761         sourcebase and m4base.
14762
14763 2006-08-24  Bruno Haible  <bruno@clisp.org>
14764
14765         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
14766         HTML structure.
14767
14768 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
14769
14770         * modules/openat (Depends-on): Add lchown.
14771
14772 2006-08-23  Bruno Haible  <bruno@clisp.org>
14773
14774         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
14775         of gl_LOCK_EARLY instead of gl_LOCK.
14776
14777 2006-08-23  Bruno Haible  <bruno@clisp.org>
14778
14779         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
14780         on OSF/1 to no.
14781         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
14782
14783 2006-08-23  Bruno Haible  <bruno@clisp.org>
14784
14785         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
14786         as unusable.
14787
14788         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
14789         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
14790         (gl_LOCK): New macro.
14791
14792 2006-08-22  Simon Josefsson  <jas@extundo.com>
14793
14794         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
14795         to md5 module.
14796
14797 2006-08-22  Simon Josefsson  <jas@extundo.com>
14798
14799         * MODULES.html.sh: Add "Support for maintaining and release
14800         projects".
14801
14802         * build-aux/gnupload: New file, from coreutils.
14803
14804 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
14805
14806         Avoid the need for AC_LIBSOURCES in m4 macros.
14807         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
14808         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
14809         * modules/check-version (EXTRA_DIST): Add check-version.h.
14810         * modules/crc (EXTRA_DIST): Add crc.h.
14811         * modules/des (EXTRA_DIST): Add des.h.
14812         * modules/gc (EXTRA_DIST): Add gc.h.
14813         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
14814         * modules/getline (EXTRA_DIST): Add getline.h.
14815         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
14816         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
14817         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
14818         * modules/md2 (EXTRA_DIST): Add md2.h.
14819         * modules/md4 (EXTRA_DIST): Add md4.h.
14820         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
14821         * modules/read-file (EXTRA_DIST): Add read-file.h.
14822         * modules/readline (EXTRA_DIST): Add readline.h.
14823         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
14824         rijndael-api-fst.h.
14825
14826 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
14827
14828         * m4/rijndael.m4 (gl_ARCFOUR):
14829         * m4/arctwo.m4 (gl_ARCTWO):
14830         * m4/check-version.m4 (gl_CHECK_VERSION):
14831         * m4/crc.m4 (gl_CRC):
14832         * m4/des.m4 (gl_DES):
14833         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
14834         * m4/gc.m4 (gl_GC):
14835         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
14836         * m4/getline.m4 (gl_FUNC_GETLINE):
14837         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
14838         * m4/hmac-md5.m4 (gl_HMAC_MD5):
14839         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
14840         * m4/md2.m4 (gl_MD2):
14841         * m4/md4.m4 (gl_MD4):
14842         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
14843         * m4/read-file.m4 (gl_FUNC_READ_FILE):
14844         * m4/readline.m4 (gl_FUNC_READLINE):
14845         * m4/rijndael.m4 (gl_RIJNDAEL):
14846         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
14847         to get the necessary .h files and whatnot.
14848
14849 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
14850
14851         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
14852         gnulib rather than the other way around.
14853         * config/srclistvars.sh (COREUTILS): Remove.
14854
14855 2006-08-22  Jim Meyering  <jim@meyering.net>
14856
14857         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
14858
14859         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
14860
14861 2006-08-22  Eric Blake  <ebb9@byu.net>
14862
14863         * modules/regexprops-generic: New file.
14864         * MODULES.html.sh (Support for building documentation): List it.
14865
14866 2006-08-22  Eric Blake  <ebb9@byu.net>
14867
14868         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
14869         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
14870         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
14871         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
14872
14873 2006-08-22  Bruno Haible  <bruno@clisp.org>
14874
14875         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
14876         and lib_LTLIBRARIES like the other lib_* variables.
14877
14878 2006-08-22  Bruno Haible  <bruno@clisp.org>
14879
14880         * build-aux/x-to-1.in: New file, from GNU gettext.
14881
14882 2006-08-22  Bruno Haible  <bruno@clisp.org>
14883
14884         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
14885         <utmpx.h> exists.
14886
14887 2006-08-22  Bruno Haible  <bruno@clisp.org>
14888
14889         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
14890         <utmpx.h> exists.
14891
14892 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
14893
14894         BeOS portability.
14895         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
14896         exist.
14897         Problem reported by Bruno Haible.
14898
14899 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
14900
14901         Avoid the need for AC_LIBSOURCES in m4 macros.
14902         * modules/acl (EXTRA_DIST): Add acl.h.
14903         * modules/argmatch (Files): Add m4/argmatch.m4.
14904         (configure.ac): Add gl_ARGMATCH.
14905         (EXTRA_DIST): Renamed from lib_SOURCES, for
14906         consistency with the other modules.  Remove argmatch.c.
14907         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
14908         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
14909         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
14910         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
14911         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
14912         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
14913         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
14914         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
14915         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
14916         * modules/closeout (EXTRA_DIST): Add closeout.h.
14917         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
14918         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
14919         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
14920         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
14921         dirname.h; remove basename.c and stripslash.c.
14922         * modules/exclude (EXTRA_DIST): Add exclude.h.
14923         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
14924         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
14925         * modules/file-type (EXTRA_DIST): Add file-type.h.
14926         * modules/filemode (EXTRA_DIST): Add filemode.h.
14927         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
14928         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
14929         * modules/fpending (EXTRA_DIST): Add __fpending.h.
14930         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
14931         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
14932         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
14933         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
14934         * modules/getdate (EXTRA_DIST): Add getdate.c.
14935         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
14936         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
14937         * modules/getpass (EXTRA_DIST): Add getpass.h.
14938         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
14939         * modules/group-member (EXTRA_DIST): Add group-member.h.
14940         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
14941         * modules/hash (EXTRA_DIST): Add hash.h.
14942         * modules/human (EXTRA_DIST): Add human.h.
14943         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
14944         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
14945         * modules/lchown (EXTRA_DIST): Add lchown.h.
14946         * modules/long-options (EXTRA_DIST): Add long-options.h.
14947         * modules/lstat (EXTRA_DIST): Add lstat.h.
14948         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
14949         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
14950         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
14951         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
14952         * modules/memxor (EXTRA_DIST): Add memxor.h.
14953         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
14954         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
14955         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
14956         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
14957         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
14958         * modules/physmem (EXTRA_DIST): Add physmem.h.
14959         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
14960         * modules/posixver (EXTRA_DIST): Add posixver.h.
14961         * modules/quote (EXTRA_DIST): Add quote.h.
14962         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
14963         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
14964         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
14965         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
14966         regex_internal.h regexec.c.
14967         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
14968         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
14969         * modules/same (EXTRA_DIST): Add same.h.
14970         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
14971         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
14972         * modules/savedir (EXTRA_DIST): Add savedir.h.
14973         * modules/sha1 (EXTRA_DIST): Add sha1.h.
14974         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
14975         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
14976         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
14977         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
14978         * modules/strdup (EXTRA_DIST): Add strdup.h.
14979         * modules/strftime (EXTRA_DIST): Add strftime.h.
14980         * modules/strndup (EXTRA_DIST): Add strndup.h.
14981         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
14982         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
14983         * modules/time_r (EXTRA_DIST): Add time_r.h.
14984         * modules/timespec (EXTRA_DIST): Add timespec.h.
14985         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
14986         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
14987         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
14988         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
14989         * modules/userspec (EXTRA_DIST): Add userspec.h.
14990         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
14991         * modules/utimens (EXTRA_DIST): Add utimens.h.
14992         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
14993         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
14994         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
14995         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
14996         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
14997         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
14998         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
14999         * modules/yesno (EXTRA_DIST): Add yesno.h.
15000
15001 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
15002
15003         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
15004
15005         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
15006         * m4/dev-ino.m4, same-inode.m4: Remove.
15007
15008         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
15009         * m4/acl.m4 (AC_FUNC_ACL):
15010         * m4/backupfile.m4 (gl_BACKUPFILE):
15011         * m4/c-strtod.m4 (gl_C99_STRTOLD):
15012         * m4/canon-host.m4 (gl_CANON_HOST):
15013         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
15014         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
15015         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
15016         * m4/cloexec.m4 (gl_CLOEXEC):
15017         * m4/close-stream.m4 (gl_CLOSE_STREAM):
15018         * m4/closeout.m4 (gl_CLOSEOUT):
15019         * m4/dirfd.m4 (gl_FUNC_DIRFD):
15020         * m4/dirname.m4 (gl_DIRNAME):
15021         * m4/exclude.m4 (gl_EXCLUDE):
15022         * m4/exitfail.m4 (gl_EXITFAIL):
15023         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
15024         * m4/file-type.m4 (gl_FILE_TYPE):
15025         * m4/filemode.m4 (gl_FILEMODE):
15026         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
15027         * m4/fpending.m4 (gl_FUNC_FPENDING):
15028         * m4/fprintftime.m4 (gl_FPRINTFTIME):
15029         * m4/fts.m4 (gl_FUNC_FTS):
15030         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
15031         * m4/getdate.m4 (gl_GETDATE):
15032         * m4/gethrxtime.m4 (gl_GETHRXTIME):
15033         * m4/getpagesize.m4 (gl_GETPAGESIZE):
15034         * m4/getpass.m4 (gl_FUNC_GETPASS):
15035         * m4/gettime.m4 (gl_GETTIME):
15036         * m4/getugroups.m4 (gl_GETUGROUPS):
15037         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
15038         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
15039         * m4/hard-locale.m4 (gl_HARD_LOCALE):
15040         * m4/hash.m4 (gl_HASH):
15041         * m4/idcache.m4 (gl_IDCACHE):
15042         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
15043         * m4/lchown.m4 (gl_FUNC_LCHOWN):
15044         * m4/long-options.m4 (gl_LONG_OPTIONS):
15045         * m4/lstat.m4 (gl_FUNC_LSTAT):
15046         * m4/md5.m4 (gl_MD5):
15047         * m4/memcasecmp.m4 (gl_MEMCASECMP):
15048         * m4/memcoll.m4 (gl_MEMCOLL):
15049         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
15050         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
15051         * m4/memxor.m4 (gl_MEMXOR):
15052         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
15053         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
15054         * m4/modechange.m4 (gl_MODECHANGE):
15055         * m4/mountlist.m4 (gl_MOUNTLIST):
15056         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
15057         * m4/openat.m4 (gl_FUNC_OPENAT):
15058         * m4/pathmax.m4 (gl_PATHMAX):
15059         * m4/physmem.m4 (gl_PHYSMEM):
15060         * m4/posixtm.m4 (gl_POSIXTM):
15061         * m4/posixver.m4 (gl_POSIXVER):
15062         * m4/quote.m4 (gl_QUOTE):
15063         * m4/quotearg.m4 (gl_QUOTEARG):
15064         * m4/readtokens.m4 (gl_READTOKENS):
15065         * m4/readutmp.m4 (gl_READUTMP):
15066         * m4/regex.m4 (gl_REGEX):
15067         * m4/safe-read.m4 (gl_SAFE_READ):
15068         * m4/safe-write.m4 (gl_SAFE_WRITE):
15069         * m4/same.m4 (gl_SAME):
15070         * m4/save-cwd.m4 (gl_SAVE_CWD):
15071         * m4/savedir.m4 (gl_SAVEDIR):
15072         * m4/settime.m4 (gl_SETTIME):
15073         * m4/sha1.m4 (gl_SHA1):
15074         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
15075         * m4/stat-macros.m4 (gl_STAT_MACROS):
15076         * m4/stat-time.m4 (gl_STAT_TIME):
15077         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
15078         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
15079         * m4/strdup.m4 (gl_FUNC_STRDUP):
15080         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
15081         * m4/strndup.m4 (gl_FUNC_STRNDUP):
15082         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
15083         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
15084         * m4/time_r.m4 (gl_TIME_R):
15085         * m4/timespec.m4 (gl_TIMESPEC):
15086         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
15087         * m4/unlinkdir.m4 (gl_UNLINKDIR):
15088         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
15089         * m4/userspec.m4 (gl_USERSPEC):
15090         * m4/utimecmp.m4 (gl_UTIMECMP):
15091         * m4/utimens.m4 (gl_UTIMENS):
15092         * m4/xalloc.m4 (gl_XALLOC):
15093         * m4/xgetcwd.m4 (gl_XGETCWD):
15094         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
15095         * m4/xreadlink.m4 (gl_XREADLINK):
15096         * m4/xstrtod.m4 (gl_XSTRTOD):
15097         * m4/yesno.m4 (gl_YESNO):
15098         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
15099         to get the necessary .h files and whatnot.
15100
15101 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
15102             Bruno Haible  <bruno@clisp.org>
15103
15104         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
15105         /bin/sh understanding of '!' conditional negation.
15106
15107 2006-08-21  Jim Meyering  <jim@meyering.net>
15108
15109         * modules/openat (Depends-on): Really alphabetize.
15110
15111         * modules/acl (Depends-on): Add error and quote.
15112
15113         * check-module (find_included_lib_files): Add at-func.c to the
15114         ok-to-include-more-than-once white list.
15115
15116         * modules/openat (Depends-on): Add lstat.  Alphabetize.
15117
15118 2006-08-21  Bruno Haible  <bruno@clisp.org>
15119
15120         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
15121         Emit a pkgdata_DATA variable only if some snippets add contents to it.
15122         Reported by Martin Lambers <marlam@marlam.de>.
15123
15124 2006-08-21  Bruno Haible  <bruno@clisp.org>
15125
15126         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
15127         specify an installation location, don't emit a noinst_LIBRARIES or
15128         noinst_LTLIBRARIES assignment.
15129
15130 2006-08-21  Bruno Haible  <bruno@clisp.org>
15131
15132         BeOS portability.
15133         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
15134         BeOS has mbrtowc() but no <wctype.h>.
15135
15136 2006-08-21  Bruno Haible  <bruno@clisp.org>
15137
15138         BeOS portability.
15139         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
15140         exist.
15141
15142 2006-08-21  Bruno Haible  <bruno@clisp.org>
15143
15144         BeOS portability.
15145         * lib/mbchar.h: Include <wctype.h> only if it exists.
15146
15147 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
15148
15149         Remove files that are no longer needed by their respective modules.
15150         * m4/obstack.m4: Remove.
15151         * m4/strerror_r.m4: Remove.
15152         * m4/uint32_t.m4: Remove.
15153         * m4/uintptr_t.m4: Remove.
15154         * m4/ullong_max.m4: Remove.
15155         * m4/xstrtoimax.m4: Remove.
15156         * m4/xstrtoumax.m4: Remove.
15157
15158         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
15159         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
15160         dependencies now capture this.
15161
15162         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
15163         Do not use AC_LIBSOURCES, since gnulib modules now do this.
15164         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
15165         * m4/human.m4 (gl_HUMAN): Likewise.
15166         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
15167         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
15168
15169         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
15170
15171         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
15172         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
15173         stdint.
15174         * m4/human.m4 (gl_HUMAN): Likewise.
15175         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
15176         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
15177         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
15178         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
15179         * m4/xstrtol (gl_XSTRTOL): Likewise.
15180
15181         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
15182         AC_TYPE_LONG_LONG_INT.
15183         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
15184         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
15185         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
15186         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
15187
15188         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
15189         on stdbool.
15190
15191         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
15192         (gl_PREREQ_XSTRTOUL): Remove.
15193
15194         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
15195
15196         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
15197         mode.
15198
15199 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
15200
15201         Add and change modules to make it easier for coreutils to use
15202         gnulib-tool.
15203         * modules/backupfile (Files): Remove m4/d-ino.m4.
15204         (Depends-on): Add d-ino.
15205         * modules/cycle-check (Depends-on): Add stdint.
15206         (lib_SOURCES): Add cycle-check.h.
15207         * modules/d-ino: New module.
15208         * modules/d-type: New module.
15209         * modules/error (Files): Remove m4/strerror_r.m4.
15210         * modules/filemode (Files): Add m4/st_dm_mode.m4.
15211         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
15212         m4/inttypes_h.m4, m4/uintmax_t.m4.
15213         (Depends-on): Add stdint.
15214         (lib_SOURCES): Add fsusage.h.
15215         * modules/getcwd (Files): Remove d-ino.m4.
15216         (Depends-on): Add d-ino.
15217         * modules/getndelim2 (Depends-on): Add stdint.
15218         * modules/glob (Files): Remove m4/d-type.m4.
15219         (Depends-on): Add d-type.
15220         * modules/host-os: New module.
15221         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
15222         m4/inttypes_h.m4, m4/uintmax_t.m4.
15223         * Depends-on: Add stdint.
15224         (lib_SOURCES): Add human.h.
15225         * modules/inttostr (Files): Remove m4/intmax_t.m4,
15226         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
15227         m4/uintmax_t.m4, m4/ulonglong.m4.
15228         (Depends-on): Add stdint.
15229         (EXTRA_DIST): Add inttostr.h.
15230         * modules/lchmod: New module.
15231         * modules/link-follow: New module.
15232         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
15233         (Depends-on): Add lchmod.
15234         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
15235         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
15236         (Depends-on): Add stdint.
15237         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
15238         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
15239         (Depends-on): Add stdint.
15240         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
15241         * modules/perl: New module.
15242         * modules/regex (Depends-on): Add stdint.
15243         * modules/rmdir-errno: New module.
15244         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
15245         m4/intmax_t.m4.
15246         (Depends-on): Add stdint.
15247         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
15248         m4/uintmax_t.m4.
15249         (Depends-on): Add stdint.
15250         * modules/unlink-busy: New module.
15251         * modules/utimecmp (Depends-on): Add stdint.
15252         * modules/uptime: New module.
15253         * modules/winsz-ioctl: New module.
15254         * modules/winsz-termios: New module.
15255         * modules/xnanosleep (Depends-on): Add nanosleep.
15256         * modules/ullong_max: Remove.
15257         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
15258         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
15259         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
15260         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
15261         (Depends-on): Add inttypes.
15262         (lib_SOURCES): Add xstrtol.h.
15263         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
15264         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
15265         * MODULES.html.sh: Move 'assert' into the assert section.
15266         Move 'dummy' into the linking section.
15267         Remove ullong_max.
15268         Add section for compatibility checks for POSIX:2001 functions,
15269         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
15270         winsz-ioctl, and winsz-termios into it.
15271         Add lchmod.
15272         Add top-level Misc section and put host-os, perl, and uptime
15273         into it.
15274
15275 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
15276
15277         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
15278         now assume the stdint module.  Do not include inttypes.h.
15279         * lib/fsusage.h: Likewise.
15280         * lib/getndelim2.c: Likewise.
15281         * lib/human.h: Likewise.
15282         * lib/inttostr.h: Likewise.
15283         * lib/obstack.c: Likewise.
15284         * lib/regex_internal.h: Likewise.
15285         * lib/tempname.c: Likewise.
15286         * lib/utimecmp.c: Likewise.
15287         * lib/xstrtol.h: Likewise.
15288
15289         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
15290
15291         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
15292         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
15293         * lib/xtime.h: Likewise.
15294
15295 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
15296
15297         * modules/openat (Files): Add lib/fchmodat.c.
15298         Fixes problem reported by Jay Youngman.
15299
15300 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
15301
15302         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
15303         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
15304
15305 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
15306             Bruno Haible  <bruno@clisp.org>
15307
15308         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
15309         and is a script that invokes bison. Tighten the code. Add comments.
15310
15311 2006-08-18  Jim Meyering  <jim@meyering.net>
15312
15313         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
15314         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
15315         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
15316         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
15317
15318 2006-08-18  Bruno Haible  <bruno@clisp.org>
15319
15320         * modules/bison-i18n: New file.
15321         * MODULES.html.sh (Internationalization functions): Add it.
15322
15323 2006-08-18  Bruno Haible  <bruno@clisp.org>
15324
15325         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
15326         sys/statvfs.h. When getmntinfo was found, check its declaration and
15327         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
15328
15329 2006-08-18  Bruno Haible  <bruno@clisp.org>
15330
15331         * m4/bison-i18n.m4: New file, from bison.
15332
15333 2006-08-18  Bruno Haible  <bruno@clisp.org>
15334
15335         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
15336         (ME_DUMMY): Treat "kernfs" as a dummy.
15337         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
15338
15339 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
15340
15341         Update from coreutils.
15342
15343         2006-08-15  Jim Meyering  <jim@meyering.net>
15344
15345         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
15346
15347         2006-01-17  Jim Meyering  <jim@meyering.net>
15348
15349         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
15350
15351         2006-01-11  Jim Meyering  <jim@meyering.net>
15352
15353         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
15354         Check for the lchmod function.
15355
15356 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
15357
15358         Update from coreutils.
15359
15360         * lib/__fpending.h: Add copyright notice.
15361         * lib/fprintftime.h: Likewise.
15362         * lib/savedir.c: Use (C) in copyright notice.
15363         * lib/savedir.h: Likewise.
15364
15365         2006-08-15  Jim Meyering  <jim@meyering.net>
15366
15367         * lib/at-func.c: New file, with the logic of all emulated at-functions.
15368         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
15369         in support of the EXPECTED_ERRNO macro.
15370         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
15371         definitions.  Instead, define the appropriate symbols and include
15372         "at-func.c".
15373         * lib/mkdirat.c (mkdirat): Likewise.
15374         * lib/fchmodat.c (fchmodat): Likewise.
15375         (ENOSYS): Remove definition.
15376         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
15377         it.  Don't include "unistd--.h" -- it wasn't ever used.
15378
15379         2006-01-17  Jim Meyering  <jim@meyering.net>
15380
15381         Rewrite fts.c not to change the current working directory,
15382         by using openat, fstatat, fdopendir, etc..
15383
15384         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
15385         (HAVE_OPENAT_SUPPORT): Define.
15386         [_LIBC] (fchdir): Don't undef or define; no longer used.
15387         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
15388         Now, this `function' always succeeds, and consumes its file descriptor
15389         parameter -- so callers must not close such FDs.  Update callers.
15390         (diropen_fd, opendirat, cwd_advance_fd): New functions.
15391         (diropen): Add parameter, SP.  Adjust all callers.
15392         Implement using diropen_fd, rather than open.
15393         (fts_open): Initialize new member, fts_cwd_fd.
15394         Remove fts_rft-setting code.
15395         (fts_close): Close fts_cwd_fd, if necessary.
15396         (__opendir2): Define in terms of opendir or opendirat,
15397         depending on whether the FST_NOCHDIR flag is set.
15398         (fts_build): Since fts_safe_changedir consumes its FD, and since
15399         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
15400         and close the dup'd file descriptor upon failure.
15401         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
15402         (fts_safe_changedir): Tweak semantics to reflect that this function
15403         now calls cwd_advance_fd and hence consumes its FD argument.
15404         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
15405         [struct FTS] (fts_rft): Remove now-unused member.
15406         [struct FTS] (fts_cycle.state): Improve comment.
15407
15408         * lib/openat.c (openat_needs_fchdir): New function.
15409         * lib/openat.h (openat_needs_fchdir): Declare it.
15410
15411 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
15412
15413         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
15414         Problem and fix reported by Pádraig Brady in
15415         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
15416
15417 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
15418
15419         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
15420
15421 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
15422
15423         * lib/memcoll.c (memcoll): Optimize for the common case where the
15424         arguments are bytewise equal.
15425
15426 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
15427
15428         * doc/regexprops-generic.texi: Add a copyright notice.
15429
15430 2006-08-15  Bruno Haible  <bruno@clisp.org>
15431
15432         * modules/tmpdir (License): Change to LGPL.
15433
15434 2006-08-15  Bruno Haible  <bruno@clisp.org>
15435
15436         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
15437         module.
15438
15439 2006-08-14  Simon Josefsson  <jas@extundo.com>
15440
15441         * config/srclist.txt: Add gnupload.
15442
15443 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
15444
15445         Change copyright notice from LGPL 2 to GPL 2, since that's the
15446         standard form used in the gnulib repository.
15447         * tests/test-lock.c: Likewise.
15448         * tests/test-stdint.c: Likewise.
15449         * tests/test-tls.c: Likewise.
15450
15451         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
15452         prelude-manager.  User shorter URLs for GNU projects, without '?'.
15453         Add copyright notice.
15454
15455         * check-module: Add copyright notice.  Output a copyright
15456         notice if "--version" is specified.
15457         * modules/COPYING: New file.
15458         * tests/test-getaddrinfo.c: Add copyright notice.
15459         * tests/test-verify.c: Likewise.
15460
15461 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
15462
15463         Change copyright notice from LGPL 2 to GPL 2, since that's the
15464         standard form used in the gnulib repository.
15465         * lib/lock.c: LGPL -> GPL.
15466         * lib/lock.h: Likewise.
15467         * lib/strnlen1.c: Likewise.
15468         * lib/strnlen1.h: Likewise.
15469         * lib/tls.c: Likewise.
15470         * lib/tls.h: Likewise.
15471         * lib/tmpdir.c: Likewise.
15472
15473         * lib/TODO: Remove; this belongs only in coreutils.
15474
15475 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
15476
15477         Add copyright notices to long-enough files that lack them, since
15478         otherwise the files aren't clearly free.  Use the same notice that
15479         getdate.texi already uses.
15480         * doc/alloca-opt.texi: Add copyright notice.
15481         * doc/alloca.texi: Likewise.
15482         * doc/ctime.texi: Likewise.
15483         * doc/functions.texi: Likewise.
15484         * doc/gcd.texi: Likewise.
15485         * doc/gnulib-tool.texi: Likewise.
15486         * doc/inet_ntoa.texi: Likewise.
15487         * doc/visibility.texi: Likewise.
15488
15489         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
15490         * doc/quote.texi: Add copyright notice.
15491
15492         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
15493         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
15494         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
15495         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
15496         is now obsolete, and give a pointer to the Sun list.
15497         Add copyright notice.
15498
15499 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
15500
15501         * config/srclistvars.sh: Add copyright notice.
15502
15503 2006-08-14  Eric Blake  <ebb9@byu.net>
15504
15505         Import the following change from libc:
15506
15507         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
15508
15509         Upstream bug 2997.
15510         * lib/misc/error.c: Add space between program name and message if file
15511         name is missing.
15512
15513 2006-08-12  Karl Berry  <karl@gnu.org>
15514
15515         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
15516         remove, these originate in gnulib now.
15517
15518 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15519
15520         * doc/Makefile (standards.info standards.html standards.dvi):
15521         Also depend on make-stds.texi.
15522
15523 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
15524
15525         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
15526         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
15527
15528         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
15529         in wchar_t.  Problem reported by Eric Blake.
15530
15531         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
15532         LEN is smaller than SIZE.  Suggested by Bruno Haible.
15533         Also, help the compiler to keep LEN in a register.
15534
15535 2006-08-11  Eric Blake  <ebb9@byu.net>
15536
15537         * users.txt: Sort.  Add tar.
15538
15539 2006-08-11  Bruno Haible  <bruno@clisp.org>
15540
15541         * users.txt: New file.
15542
15543 2006-08-11  Bruno Haible  <bruno@clisp.org>
15544
15545         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
15546         before <wchar.h>. Needed for OSF/1 and BSD/OS.
15547
15548 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
15549
15550         * modules/snprintf (Depends-on): Remove minmax.
15551         (Maintainer): Add self and Bruno.
15552
15553 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
15554
15555         * lib/.cppi-disable: Add snprintf.h, socket_.h.
15556         * lib/snprintf.c: Include <errno.h> and <limits.h>.
15557         (EOVERFLOW): Define if the system does not.
15558         Do not include "minmax.h"; it wasn't used.
15559         (snprintf): Don't assume size_t promotes to an unsigned type.
15560         Fix bug when generated string was too long for the buffer: the
15561         buffer's contents are supposed to be the initial prefix of the
15562         output.  Don't assume vasnprintf returns EOVERFLOW if the size
15563         exceeds INT_MAX; do the check ourselves.
15564
15565         Import the following changes from libc:
15566
15567         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
15568
15569         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
15570         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
15571         set wc to the byte which couldn't be converted.
15572         (re_string_reconstruct): Don't clear valid_raw_len before calling
15573         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
15574         tip_context using re_string_context_at.
15575
15576         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
15577
15578         * lib/posix/regex.h: g++ still cannot handled [restrict].
15579
15580         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
15581
15582         * lib/posix/regex.h: Remove special handling for VMS.
15583
15584 2006-08-10  Jim Meyering  <jim@meyering.net>
15585
15586         * modules/same-inode: New module.
15587         * modules/dev-ino: New module.
15588         * modules/cycle-check: Depend on these modules, rather than simply
15589         including their .h files.
15590         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
15591         required via m4/cycle-check.m4.
15592         * modules/same: Depend on new same-inode module, rather than
15593         including same-inode.h.
15594         * modules/chdir-safer: New file.
15595
15596         * modules/chown (Depends-on): Add stat-macros.
15597
15598 2006-08-10  Jim Meyering  <jim@meyering.net>
15599
15600         * m4/cycle-check.m4: New file.
15601         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
15602         * m4/dev-ino.m4, m4/same-inode.m4: New files.
15603
15604 2006-08-10  Eric Blake  <ebb9@byu.net>
15605
15606         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
15607         in from original proposal.
15608
15609 2006-08-10  Eric Blake  <ebb9@byu.net>
15610         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15611
15612         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
15613         namespace.
15614
15615 2006-08-10  Bruno Haible  <bruno@clisp.org>
15616
15617         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
15618         as well.
15619
15620 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
15621
15622         Sync from coreutils.
15623
15624         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
15625
15626         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
15627         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
15628
15629 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
15630
15631         * modules/restrict: Remove; no longer needed now that we assume
15632         Autoconf 2.59 or later.
15633         * MODULES.html.sh: Remove 'restrict'.
15634         * modules/argp (Depends-on): Remove 'restrict'.
15635         * modules/base64 (Depends-on): Likewise.
15636         * modules/gc (Depends-on): Likewise.
15637         * modules/getaddrinfo (Depends-on): Likewise.
15638         * modules/glob (Depends-on): Likewise.
15639         * modules/inet_ntop (Depends-on): Likewise.
15640         * modules/inet_pton (Depends-on): Likewise.
15641         * modules/memxor (Depends-on): Likewise.
15642         * modules/regex (Depends-on): Likewise.
15643         * modules/strtok_r (Depends-on): Likewise.
15644         * modules/time_r (Depends-on): Likewise.
15645
15646 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
15647
15648         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
15649         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
15650         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
15651         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
15652         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
15653         * m4/memxor.m4 (gl_MEMXOR): Likewise.
15654         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
15655         gl_C_RESTRICT replaced by AC_C_RESTRICT.
15656
15657         Merge from coreutils.
15658         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
15659         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
15660         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
15661         * m4/time_r.m4 (gl_TIME_R): Likewise.
15662
15663 2006-08-09  Karl Berry  <karl@gnu.org>
15664
15665         * config/srclist.txt: no more gettext-tools, per Bruno.
15666
15667 2006-08-08  Eric Blake  <ebb9@byu.net>
15668
15669         * modules/verror: New module.
15670         * MODULES.html.sh: Document it.
15671
15672 2006-08-08  Eric Blake  <ebb9@byu.net>
15673
15674         * lib/verror.h, lib/verror.c: New files.
15675
15676 2006-08-08  Eric Blake  <ebb9@byu.net>
15677
15678         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
15679         verror_at_line output complies with GNU Coding Standards even when
15680         file is NULL.
15681
15682 2006-08-07  Bruno Haible  <bruno@clisp.org>
15683
15684         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
15685         versions of AIX.
15686         Reported by Ralf Wildenhues.
15687
15688 2006-08-07  Bruno Haible  <bruno@clisp.org>
15689
15690         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
15691         in an AC_DEFUN. Needed so that the autoconf snippets can use
15692         AC_REQUIRE.
15693
15694 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15695
15696         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
15697         Initialize pkgdata_DATA.
15698         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
15699         overriding it.
15700
15701 2006-08-06  Eric Blake  <ebb9@byu.net>
15702
15703         * lib/error.h: Fold in some upstream changes from glibc.
15704         * lib/error.c: Likewise.
15705
15706 2006-08-04  Bruno Haible  <bruno@clisp.org>
15707
15708         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
15709         Make the mostlyclean-local rule depend on mostlyclean-generic.
15710         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
15711
15712 2006-07-31  Bruno Haible  <bruno@clisp.org>
15713
15714         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
15715         <stdlib.h>, <string.h>.
15716
15717 2006-07-30  Bruno Haible  <bruno@clisp.org>
15718
15719         * modules/readlink (License): Change to LGPL.
15720
15721 2006-07-30  Bruno Haible  <bruno@clisp.org>
15722
15723         * modules/javaversion (Makefile.am): Distribute javaversion.java and
15724         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
15725         set PKGDATADIR to point to it.
15726
15727 2006-07-30  Bruno Haible  <bruno@clisp.org>
15728
15729         * modules/csharpexec (configure.ac): Comment out macro invocation.
15730         * modules/javaexec (configure.ac): Likewise.
15731         * modules/javacomp-script (configure.ac): Likewise.
15732
15733         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
15734
15735 2006-07-30  Bruno Haible  <bruno@clisp.org>
15736
15737         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
15738         linked-list.
15739
15740 2006-07-30  Bruno Haible  <bruno@clisp.org>
15741
15742         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
15743
15744 2006-07-30  Bruno Haible  <bruno@clisp.org>
15745
15746         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
15747         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
15748         get removed.
15749
15750 2006-07-29  Bruno Haible  <bruno@clisp.org>
15751
15752         Make it possible for gnulib-tool to work with locally modified or
15753         augmented gnulib repositories.
15754         * gnulib-tool (func_usage): Document --local-dir option.
15755         (local_gnulib_dir): New variable.
15756         Handle --local-dir option.
15757         (func_lookup_file): New function.
15758         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
15759         (func_get_description, func_get_filelist, func_get_description,
15760         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
15761         func_get_automake_snippet, func_get_include_directive,
15762         func_get_license, func_get_maintainer): Use func_lookup_file.
15763         (func_import, func_create_testdir): Use func_lookup_file.
15764
15765 2006-07-29  Bruno Haible  <bruno@clisp.org>
15766
15767         * modules/setenv (Depends-on): Add unistd.
15768
15769 2006-07-29  Bruno Haible  <bruno@clisp.org>
15770
15771         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
15772
15773 2006-07-29  Bruno Haible  <bruno@clisp.org>
15774
15775         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
15776
15777 2006-07-29  Bruno Haible  <bruno@clisp.org>
15778
15779         * gnulib-tool (import, update): If there is no Makefile.am, look at
15780         aclocal.m4, instead of bailing out.
15781
15782 2006-07-29  Bruno Haible  <bruno@clisp.org>
15783
15784         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
15785         Categorize the options by when they are useful.
15786
15787 2006-07-29  Bruno Haible  <bruno@clisp.org>
15788
15789         * gnulib-tool (func_usage): Document option --no-libtool.
15790         Handle option --no-libtool.
15791         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
15792         for changed semantics of $libtool variable.
15793         (func_import): Likewise. If libtool is not used, show this through
15794         an option --no-libtool.
15795         (func_create_testdir): Update.
15796
15797 2006-07-29  Bruno Haible  <bruno@clisp.org>
15798
15799         * gnulib-tool (func_import): Extend error message about missing
15800         --doc-base.
15801
15802 2006-07-29  Bruno Haible  <bruno@clisp.org>
15803
15804         * gnulib-tool (func_import): Don't create the $docbase directory if
15805         there is no file to store there.
15806
15807 2006-07-29  Bruno Haible  <bruno@clisp.org>
15808
15809         * gnulib-tool (autoconf_minversion): If a --dir option is given and
15810         relevant, look for configure.ac there, not in the current directory.
15811         Also use a simple search for AC_PREREQ, not "autoconf --trace".
15812
15813 2006-07-29  Bruno Haible  <bruno@clisp.org>
15814
15815         * gnulib-tool (SORT): New variable.
15816         (func_usage): Undocument --assume-autoconf option.
15817         Remove --assume-autoconf option handling.
15818         (autoconf_minversion): Determine from the contents of configure.ac.
15819         (func_import): Remove autoconf_minversion handling.
15820         Suggested by Eric Blake.
15821
15822 2006-07-29  Bruno Haible  <bruno@clisp.org>
15823
15824         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
15825
15826 2006-07-29  Bruno Haible  <bruno@clisp.org>
15827
15828         * config/srclist.txt (*setenv.[ch]): Remove rules.
15829
15830 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
15831
15832         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
15833
15834 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
15835
15836         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
15837         arpa/inet.h.
15838
15839 2006-07-28  Simon Josefsson  <jas@extundo.com>
15840
15841         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
15842         * modules/inet_pton (Depends-on): Likewise.
15843
15844 2006-07-28  Simon Josefsson  <jas@extundo.com>
15845
15846         * m4/netinet_in_h.m4: New file.
15847
15848 2006-07-28  Simon Josefsson  <jas@extundo.com>
15849
15850         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
15851         #include's.
15852
15853 2006-07-28  Simon Josefsson  <jas@extundo.com>
15854
15855         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
15856         #include's.
15857
15858 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
15859
15860         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
15861         setgid on directories only if they set these bits.
15862         * lib/modechange.h: Remove obsolete comment about masks.
15863
15864 2006-07-28  Eric Blake  <ebb9@byu.net>
15865
15866         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
15867         macro expansion.
15868
15869 2006-07-28  Bruno Haible  <bruno@clisp.org>
15870
15871         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
15872
15873 2006-07-28  Bruno Haible  <bruno@clisp.org>
15874
15875         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
15876
15877 2006-07-28  Bruno Haible  <bruno@clisp.org>
15878
15879         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
15880         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
15881         Define fallbacks.
15882         Avoids link error on FreeBSD 4.x.
15883         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
15884
15885         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
15886         encoding.
15887         * lib/mbswidth.c (iswcntrl): Likewise.
15888
15889 2006-07-27  Bruno Haible  <bruno@clisp.org>
15890
15891         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
15892         test.
15893
15894 2006-07-27  Bruno Haible  <bruno@clisp.org>
15895
15896         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
15897         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
15898         defined.
15899
15900 2006-07-26  Eric Blake  <ebb9@byu.net>
15901
15902         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
15903
15904 2006-07-26  Eric Blake  <ebb9@byu.net>
15905
15906         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
15907         like mingw that lack mkstemp.
15908         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
15909         avoid compilation warning on mingw.
15910
15911 2006-07-26  Bruno Haible  <bruno@clisp.org>
15912
15913         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
15914         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
15915         INT_FAST*_MIN, INTPTR_MIN.
15916
15917 2006-07-25  Bruno Haible  <bruno@clisp.org>
15918
15919         * modules/version-etc (Depends-on): Add stdarg.
15920
15921 2006-07-25  Bruno Haible  <bruno@clisp.org>
15922
15923         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
15924         complex commands.
15925
15926 2006-07-25  Bruno Haible  <bruno@clisp.org>
15927
15928         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
15929         defined in <stdarg.h> or config.h.
15930
15931 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
15932
15933         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
15934         (gl_STDIO_SAFER): Remove.
15935
15936 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
15937
15938         * MODULES.html.sh (File stream based Input/Output):
15939         Add fopen-safer, tmpfile-safer; remove stdio-safer.
15940         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
15941         * modules/fopen-safer, modules/tmpfile-safer: New files.
15942         * modules/stdio-safer: Remove.
15943
15944 2006-07-24  Bruno Haible  <bruno@clisp.org>
15945
15946         * modules/tmpdir: New file.
15947         * MODULES.html.sh (File system functions): Add it.
15948
15949 2006-07-24  Bruno Haible  <bruno@clisp.org>
15950
15951         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
15952         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
15953
15954 2006-07-24  Bruno Haible  <bruno@clisp.org>
15955
15956         * modules/clean-temp: New file.
15957
15958 2006-07-24  Bruno Haible  <bruno@clisp.org>
15959
15960         * m4/tmpdir.m4: New file, from GNU gettext.
15961
15962 2006-07-24  Bruno Haible  <bruno@clisp.org>
15963
15964         * lib/tmpdir.h: New file, from GNU gettext.
15965         * lib/tmpdir.c: New file, from GNU gettext.
15966
15967 2006-07-24  Bruno Haible  <bruno@clisp.org>
15968
15969         * lib/clean-temp.h: New file, from GNU gettext.
15970         * lib/clean-temp.c: New file, from GNU gettext.
15971
15972 2006-07-23  Eric Blake  <ebb9@byu.net>
15973
15974         * modules/stdio-safer (Files): Add tmpfile-safer.c.
15975         (Depends-on): Add binary-io.
15976
15977 2006-07-23  Eric Blake  <ebb9@byu.net>
15978
15979         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
15980
15981 2006-07-23  Eric Blake  <ebb9@byu.net>
15982
15983         * lib/tmpfile-safer.c: New file.
15984         * lib/stdio-safer.h (fopen_safer): Add prototype.
15985         * lib/stdio--.h (tmpfile): Make safer.
15986
15987 2006-07-23  Bruno Haible  <bruno@clisp.org>
15988
15989         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
15990         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
15991         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
15992         gl_linked_remove_at): Use it.
15993
15994 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
15995         and Simon Josefsson <jas@extundo.com>
15996
15997         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
15998
15999         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
16000
16001 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
16002
16003         * modules/close-stream: New file.
16004         * modules/closeout (Description): Make it clear that it exits
16005         with a diagnostic on error.
16006         (Depends-on): Add close-stream.  Remove fpending, stdbool.
16007         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
16008
16009 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
16010
16011         * m4/close-stream.m4: New file.
16012
16013 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
16014
16015         * lib/close-stream.c, lib/close-stream.h: New files.
16016
16017 2006-07-22  Bruno Haible  <bruno@clisp.org>
16018
16019         Merge from GNU gettext 0.15.
16020
16021         2006-05-01  Bruno Haible  <bruno@clisp.org>
16022
16023                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
16024
16025         2006-07-22  Bruno Haible  <bruno@clisp.org>
16026
16027                 * modules/javaversion: New file.
16028                 * MODULES.html.sh (Java): Add javaversion.
16029
16030         2006-03-12  Bruno Haible  <bruno@clisp.org>
16031
16032                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
16033
16034         2005-12-04  Bruno Haible  <bruno@clisp.org>
16035
16036                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
16037                 (untested).
16038
16039         2006-06-21  Bruno Haible  <bruno@clisp.org>
16040
16041                 Avoid warnings from recent versions of mcs.
16042                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
16043                 -o, -L, -r any more. Use options documented since mcs-1.0
16044                 instead. Similarly for -g.
16045
16046         2005-12-04  Bruno Haible  <bruno@clisp.org>
16047
16048                 * build-aux/csharpcomp.sh.in: Suffix for resources is
16049                 .resources, not .resource.
16050
16051         2005-07-09  Bruno Haible  <bruno@clisp.org>
16052
16053                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
16054                 add a .dll suffix.
16055                 Reported by Mark Junker <mjscod@gmx.de>.
16056
16057         2006-07-22  Bruno Haible  <bruno@clisp.org>
16058
16059                 * modules/gettext: Upgrade to gettext-0.15.
16060                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
16061                 m4/visibility.m4.
16062                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
16063
16064 2006-07-22  Bruno Haible  <bruno@clisp.org>
16065
16066         Merge from GNU gettext 0.15.
16067
16068         2006-03-25  Bruno Haible  <bruno@clisp.org>
16069
16070                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
16071
16072         2006-07-21  Bruno Haible  <bruno@clisp.org>
16073
16074                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
16075                 "1.1".
16076
16077         2006-05-09  Bruno Haible  <bruno@clisp.org>
16078
16079                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
16080                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
16081                 for the conftestver execution.
16082
16083         2006-05-01  Bruno Haible  <bruno@clisp.org>
16084
16085                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
16086                 optional target-version argument. Verify that the compiler
16087                 groks source of the specified source-version, or add -source
16088                 option as necessary. Verify that the compiler produces
16089                 bytecode in the specified target-version, or add -target and
16090                 -source options as necessary. Make the result of the test
16091                 available as variable CONF_JAVAC. Also log error output in
16092                 config.log.
16093
16094         2006-03-11  Bruno Haible  <bruno@clisp.org>
16095
16096                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
16097
16098         2006-05-09  Bruno Haible  <bruno@clisp.org>
16099
16100                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
16101                 CLASSPATH_SEPARATOR to a semicolon.
16102
16103         2006-03-12  Bruno Haible  <bruno@clisp.org>
16104
16105                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
16106                 available as variable CONF_JAVA, for subsequent autoconf
16107                 tests. Also log error output in config.log.
16108
16109         2006-07-19  Bruno Haible  <bruno@clisp.org>
16110
16111                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
16112                 that getline works on glibc2 systems. Needed to avoid trouble
16113                 in relocatable.c.
16114                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
16115
16116         2005-12-04  Bruno Haible  <bruno@clisp.org>
16117
16118                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
16119                 launcher (untested).
16120
16121         2005-12-04  Bruno Haible  <bruno@clisp.org>
16122
16123                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
16124
16125         2006-07-22  Bruno Haible  <bruno@clisp.org>
16126
16127                 * gettext.m4: Update from GNU gettext-0.15.
16128                 * nls.m4: Likewise.
16129                 * po.m4: Likewise.
16130                 * inttypes-pri.m4: Likewise.
16131                 * inttypes-h.m4: Renamed from inttypes.m4.
16132                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
16133
16134 2006-07-22  Bruno Haible  <bruno@clisp.org>
16135
16136         Merge from GNU gettext 0.15.
16137
16138         2005-07-05  Bruno Haible  <bruno@clisp.org>
16139
16140                 * printf-args.c (printf_fetchargs): Work around broken
16141                 definition of wint_t on mingw.
16142
16143         2005-02-12  Bruno Haible  <bruno@clisp.org>
16144
16145                 * xallocsa.h: Add extern "C" for C++.
16146
16147         2006-05-17  Bruno Haible  <bruno@clisp.org>
16148
16149                 Cygwin portability.
16150                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
16151
16152         2006-04-30  Bruno Haible  <bruno@clisp.org>
16153
16154                 * progreloc.c: Include <mach-o/dyld.h> if available.
16155                 (find_executable): Use _NSGetExecutablePath when possible.
16156
16157         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
16158
16159                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
16160                 function.
16161
16162         2005-12-29  Bruno Haible  <bruno@clisp.org>
16163
16164                 * progreloc.c (set_program_name_and_installdir): Fix
16165                 compilation error.
16166
16167         2005-12-04  Bruno Haible  <bruno@clisp.org>
16168
16169                 Cygwin portability.
16170                 * progreloc.c: Include <windows.h> also on Cygwin.
16171                 (find_executable): Add support for Cygwin.
16172                 (set_program_name_and_installdir): Handle also platforms with
16173                 nonempty EXEEXT.
16174
16175         2006-07-11  Bruno Haible  <bruno@clisp.org>
16176
16177                 * javacomp.c: Fix a comment.
16178                 Reported by Jim Meyering.
16179
16180         2006-04-30  Bruno Haible  <bruno@clisp.org>
16181
16182                 * javacomp.h (compile_java_class): Add source_version,
16183                 target_version arguments.
16184                 * javacomp.c: Rewritten to choose only a compiler that
16185                 respects the specified source_version and target_version.
16186
16187         2006-06-27  Bruno Haible  <bruno@clisp.org>
16188
16189                 Assume correct S_ISDIR macro.
16190                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
16191
16192         2006-07-22  Bruno Haible  <bruno@clisp.org>
16193
16194                 * javaversion.h: New file, from GNU gettext.
16195                 * javaversion.c: New file, from GNU gettext.
16196                 * javaversion.java: New file, from GNU gettext.
16197                 * javaversion.class: New file, from GNU gettext.
16198
16199         2006-05-17  Bruno Haible  <bruno@clisp.org>
16200
16201                 Cygwin portability.
16202                 * javaexec.c (execute_java_class): Test for jview program
16203                 also on Cygwin.
16204
16205         2006-04-09  Bruno Haible  <bruno@clisp.org>
16206
16207                 * fatal-signal.c: Don't include string.h.
16208                 (at_fatal_signal): Use a copying loop instead of memcpy.
16209
16210         2005-12-04  Bruno Haible  <bruno@clisp.org>
16211
16212                 * csharpexec.c: Add support for 'clix' launcher (untested).
16213                 (execute_csharp_using_sscli): New function.
16214                 (execute_csharp_program): Call it.
16215
16216         2006-06-21  Bruno Haible  <bruno@clisp.org>
16217
16218                 Avoid warnings from recent versions of mcs.
16219                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
16220                 -o, -L, -r any more. Use options documented since mcs-1.0
16221                 instead. Similarly for -g.
16222
16223         2005-07-09  Bruno Haible  <bruno@clisp.org>
16224
16225                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
16226                 add a .dll suffix.
16227                 Reported by Mark Junker <mjscod@gmx.de>.
16228
16229         2006-06-17  Bruno Haible  <bruno@clisp.org>
16230
16231                 * config.charset: Update for NetBSD 3.0.
16232
16233         2006-05-17  Bruno Haible  <bruno@clisp.org>
16234
16235                 Cygwin portability.
16236                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
16237
16238         2006-05-16  Bruno Haible  <bruno@clisp.org>
16239
16240                 * localcharset.c [CYGWIN]: Include <windows.h>.
16241                 (get_charset_aliases): For Cygwin, return the same CPxxx
16242                 aliases list as under WIN32.
16243                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
16244                 the environment variables. Fall back to GetACP().
16245
16246         2006-04-05  Bruno Haible  <bruno@clisp.org>
16247
16248                 * config.charset: Update Juan Manuel Guerrero's address.
16249
16250         2005-02-12  Bruno Haible  <bruno@clisp.org>
16251
16252                 * allocsa.h: Add extern "C" for C++.
16253
16254         2005-02-10  Bruno Haible  <bruno@clisp.org>
16255
16256                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
16257                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
16258
16259         2006-07-22  Bruno Haible  <bruno@clisp.org>
16260
16261                 * gettext.h: Update to GNU gettext-0.15.
16262
16263 2006-07-22  Bruno Haible  <bruno@clisp.org>
16264
16265         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
16266         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
16267         lib-prefix.m4, longdouble.m4, ssize_t.m4.
16268
16269 2006-07-21  Eric Blake  <ebb9@byu.net>
16270
16271         * modules/stdlib-safer: New file.
16272         * MODULES.html.sh (File stream based Input/Output): Add
16273         stdlib-safer.
16274
16275 2006-07-21  Eric Blake  <ebb9@byu.net>
16276
16277         * lib/stdlib-safer.h: New file from coreutils, required by
16278         stdlib--.h.
16279
16280 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
16281
16282         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
16283
16284 2006-07-20  Bruno Haible  <bruno@clisp.org>
16285
16286         * gnulib-tool: Recognize new option --assume-autoconf.
16287         (autoconf_minversion): New variable.
16288         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
16289
16290 2006-07-20  Bruno Haible  <bruno@clisp.org>
16291
16292         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
16293
16294 2006-07-19  Derek R. Price  <derek@ximbiot.com>
16295
16296         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
16297         Reindent and repaginate.
16298
16299 2006-07-19  Derek Price  <derek@ximbiot.com>
16300
16301         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
16302         Correct grammar.
16303
16304 2006-07-17  Bruno Haible  <bruno@clisp.org>
16305
16306         * modules/list: New file.
16307         * modules/array-list: New file.
16308         * modules/carray-list, modules/carray-list-tests: New files.
16309         * modules/linked-list, modules/linked-list-tests: New files.
16310         * modules/avltree-list, modules/avltree-list-tests: New files.
16311         * modules/rbtree-list, modules/rbtree-list-tests: New files.
16312         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
16313         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
16314         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
16315         * modules/oset: New file.
16316         * modules/array-oset: New file.
16317         * modules/avltree-oset, modules/avltree-oset-tests: New files.
16318         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
16319         * tests/test-carray_list.c: New file.
16320         * tests/test-linked_list.c: New file.
16321         * tests/test-avltree_list.c: New file.
16322         * tests/test-rbtree_list.c: New file.
16323         * tests/test-linkedhash_list.c: New file.
16324         * tests/test-avltreehash_list.c: New file.
16325         * tests/test-rbtreehash_list.c: New file.
16326         * tests/test-avltree_oset.c: New file.
16327         * tests/test-rbtree_oset.c: New file.
16328         * MODULES.html.sh (Container data structures): New section.
16329
16330 2006-07-17  Bruno Haible  <bruno@clisp.org>
16331
16332         * m4/gl_list.m4: New file.
16333
16334 2006-07-17  Bruno Haible  <bruno@clisp.org>
16335
16336         * lib/gl_list.h: New file.
16337         * lib/gl_list.c: New file.
16338         * lib/gl_array_list.h: New file.
16339         * lib/gl_array_list.c: New file.
16340         * lib/gl_carray_list.h: New file.
16341         * lib/gl_carray_list.c: New file.
16342         * lib/gl_linked_list.h: New file.
16343         * lib/gl_linked_list.c: New file.
16344         * lib/gl_anylinked_list1.h: New file.
16345         * lib/gl_anylinked_list2.h: New file.
16346         * lib/gl_avltree_list.h: New file.
16347         * lib/gl_avltree_list.c: New file.
16348         * lib/gl_anyavltree_list1.h: New file.
16349         * lib/gl_anyavltree_list2.h: New file.
16350         * lib/gl_rbtree_list.h: New file.
16351         * lib/gl_rbtree_list.c: New file.
16352         * lib/gl_anyrbtree_list1.h: New file.
16353         * lib/gl_anyrbtree_list2.h: New file.
16354         * lib/gl_anytree_list1.h: New file.
16355         * lib/gl_anytree_list2.h: New file.
16356         * lib/gl_linkedhash_list.h: New file.
16357         * lib/gl_linkedhash_list.c: New file.
16358         * lib/gl_anyhash_list1.h: New file.
16359         * lib/gl_anyhash_list2.h: New file.
16360         * lib/gl_avltreehash_list.h: New file.
16361         * lib/gl_avltreehash_list.c: New file.
16362         * lib/gl_rbtreehash_list.h: New file.
16363         * lib/gl_rbtreehash_list.c: New file.
16364         * lib/gl_anytreehash_list1.h: New file.
16365         * lib/gl_anytreehash_list2.h: New file.
16366
16367         * lib/gl_oset.h: New file.
16368         * lib/gl_oset.c: New file.
16369         * lib/gl_array_oset.h: New file.
16370         * lib/gl_array_oset.c: New file.
16371         * lib/gl_avltree_oset.h: New file.
16372         * lib/gl_avltree_oset.c: New file.
16373         * lib/gl_rbtree_oset.h: New file.
16374         * lib/gl_rbtree_oset.c: New file.
16375         * lib/gl_anytree_oset.h: New file.
16376
16377 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
16378
16379         * m4/mkancesdirs.m4: New file.
16380         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
16381         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
16382         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
16383         it.
16384
16385 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
16386
16387         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
16388         * lib/mkancesdirs.h: New files.
16389         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
16390         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
16391         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
16392         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
16393         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
16394         callers changed.  Revamp internals significantly, by not
16395         attempting to create directories that are temporarily more
16396         permissive than the final results.  Do not attempt to use
16397         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
16398         This removes some race conditions, fixes some bugs, and simplifies
16399         things.  Use new dirchownmod function to do owner and mode changes.
16400         * lib/mkdir-p.h: Likewise.
16401         * lib/modechange.c (octal_to_mode): New function.
16402         (struct mode_change): New member mentioned.
16403         (make_node_op_equals): New arg mentioned.  All callers changed.
16404         (mode_compile): Keep track of which mode bits the user has explicitly
16405         mentioned.
16406         (mode_adjust): New arg DIR, so that we implement the X op correctly.
16407         New arg PMODE_BITS, to keep track of which mode bits the user
16408         mentioned; it treats S_ISUID and S_ISGID speciall.
16409         All callers changed.
16410         * lib/modechange.h: Likewise.
16411
16412 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
16413
16414         * MODULES.html.sh: Add mkancestors.
16415         * modules/mkancesdirs: New module.
16416         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
16417         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
16418         The chdir-safer and afs files are now orphans; I'll remove them
16419         unless someone speaks up.
16420         Add lib/dirchownmod.c, lib/dirchownmod.h.
16421         (Depends-on): Remove alloca, chown, save-cwd, dirname.
16422         Add lchown, mkancesdirs.
16423         (Maintainer): Add self.
16424
16425 2006-07-15  Karl Berry  <karl@gnu.org>
16426
16427         * gnulib-tool: help message wording/arrangement.
16428
16429 2006-07-14  Simon Josefsson  <jas@extundo.com>
16430
16431         * doc/gnulib.texi (Libtool and Windows): New section.
16432
16433 2006-07-12  Simon Josefsson  <jas@extundo.com>
16434
16435         * modules/gendocs (License): Fix license, approved by Karl.
16436
16437 2006-07-12  Eric Blake  <ebb9@byu.net>
16438
16439         * MODULES.html.sh: Add gendocs.
16440
16441 2006-07-11  Eric Blake  <ebb9@byu.net>
16442
16443         * modules/fdl: New module, to install doc/fdl.texi.
16444         * MODULES.html.sh: Add new section for documentation modules.
16445         * gnulib-tool: Avoid space-tab.
16446         (--doc-base): New option, to manage files from doc.
16447
16448 2006-07-11  Eric Blake  <ebb9@byu.net>
16449
16450         * m4/absolute-header.m4: Fix comments to match recent change.
16451
16452 2006-07-11  Eric Blake  <ebb9@byu.net>
16453
16454         * gnulib-tool: List --doc-base before --tests-base.
16455
16456 2006-07-11  Derek R. Price  <derek@ximbiot.com>
16457
16458         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
16459
16460 2006-07-11  Bruno Haible  <bruno@clisp.org>
16461
16462         * README: Mention where to put documentation.
16463
16464 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16465
16466         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
16467
16468 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
16469
16470         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
16471         to stdint.m4.
16472
16473 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
16474
16475         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
16476         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
16477         "no/such/file/stdint.h" when there is no such file, so that
16478         the resulting C code can be parsed by dodgy compilers.
16479         Problems reported by Bob Proulx.
16480
16481 2006-07-10  Derek R. Price  <derek@ximbiot.com>
16482
16483         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
16484         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
16485         macros into the GNU _D_EXACT_NAMLEN.
16486         * lib/savedir.c:  Likewise.
16487         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
16488
16489 2006-07-10  Derek R. Price  <derek@ximbiot.com>
16490         and Paul Eggert  <eggert@cs.ucla.edu>
16491
16492         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
16493         * m4/savedir.m4:
16494         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
16495         macros into the GNU _D_EXACT_NAMLEN.
16496
16497 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
16498
16499         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
16500         around the absolute name, to work around a problem with the HP-UX
16501         11.23 native C compiler, reported by Bob Proulx.
16502
16503 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
16504
16505         * doc/maintain.texi, make-stds.texi: Sync from
16506         <http://savannah.gnu.org/projects/gnustandards>.
16507
16508 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
16509
16510         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
16511
16512 2006-07-09  Jim Meyering  <jim@meyering.net>
16513
16514         * m4/glob.m4: Remove a doubled word in a comment.
16515
16516 2006-07-09  Jim Meyering  <jim@meyering.net>
16517
16518         * lib/argp-pv.c: Remove a doubled word in a comment.
16519         * lib/check-version.c (check_version): Likewise.
16520         * lib/javacomp.c (compile_java_class): Likewise.
16521
16522 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
16523
16524         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
16525         for the benefit of people using Autoconf 2.60.  If you want to
16526         support older Autoconf versions you can copy m4/onceonly_2_57.m4
16527         (or m4/onceonly.m4, if pre-2.57) manually.
16528
16529 2006-07-08  Jim Meyering  <jim@meyering.net>
16530
16531         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
16532         comment.
16533         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
16534         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
16535         comment.
16536
16537 2006-07-08  Jim Meyering  <jim@meyering.net>
16538
16539         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
16540
16541 2006-07-07  Simon Josefsson  <jas@extundo.com>
16542
16543         * tests/test-crc.c: Change expected crc value, the test vector
16544         were probably computed using the old broken crc.c?
16545
16546 2006-07-06  Simon Josefsson  <jas@extundo.com>
16547
16548         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
16549         now the canonical place for the M4 file).
16550
16551         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
16552         from the sys_socket dependency now.
16553
16554         * modules/inet_pton (Files): Ditto.
16555
16556         * modules/inet_ntop (Files): Ditto.
16557
16558 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
16559
16560         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
16561         not gl_PREREQ_GETUSERSHELL.
16562
16563 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16564
16565         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
16566         with only one argument, for Autoconf 2.60.
16567         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
16568         expand to nothing, so add a shell command to avoid syntax error.
16569         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
16570
16571 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16572
16573         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
16574
16575 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
16576
16577         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
16578         no longer needed.  Check for isblank decl.
16579         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
16580         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
16581         of existence.
16582
16583 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
16584
16585         * lib/getloadavg.c: Use __VMS, not VMS.
16586         * lib/getopt.c: Likewise.
16587         * lib/getpagesize.h: Likewise.
16588         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
16589         and probably does not work.
16590
16591 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
16592
16593         * lib/.cppi-disable: Add wcwidth.
16594         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
16595         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
16596         (ISGRAPH): Remove.  All uses changed to isgraph.
16597         (FOLD) [!defined _LIBC]: Remove special case.
16598         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
16599         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
16600         HAVE_ISBLANK.
16601         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
16602         case.
16603
16604 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
16605
16606         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
16607         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
16608         brackets.  Other minor changes to suppress some compiler
16609         warnings.
16610
16611 2006-07-06  Derek R. Price  <derek@ximbiot.com>
16612         and Paul Eggert  <eggert@cs.ucla.edu>
16613
16614         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
16615         of invoking obsolescent AC_HEADER_DIRENT macro.
16616         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
16617         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
16618         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
16619         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
16620         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
16621         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
16622         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
16623         * m4/readdir.m4: Remove; no longer needed.
16624
16625 2006-07-06  Derek R. Price  <derek@ximbiot.com>
16626         and Paul Eggert  <eggert@cs.ucla.edu>
16627
16628         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
16629         Don't worry about this obsolete case any more.
16630         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
16631         directories.
16632         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
16633         worry about this obsolete case any more.
16634         * lib/fts.c: Likewise.
16635         * lib/getcwd.c: Likewise.
16636         * lib/glob.h: Likewise.
16637         * lib/savedir.c: Likewise.
16638
16639 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
16640
16641         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
16642         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
16643         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
16644         needed.
16645         All uses removed.
16646         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
16647         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
16648         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
16649         needed.
16650         * m4/getdate.m4 (gl_GETDATE): Likewise.
16651         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
16652         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
16653         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
16654         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
16655         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
16656         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
16657         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
16658         needed.
16659
16660 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
16661
16662         * lib/memcasecmp.c: Include <limits.h>.
16663         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
16664         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
16665         Don't assume isdigit succeeds only on '0' through '9'.
16666
16667 2006-07-05  Eric Blake  <ebb9@byu.net>
16668
16669         * modules/getaddrinfo (Depends-on): Add snprintf.
16670
16671 2006-07-05  Eric Blake  <ebb9@byu.net>
16672
16673         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
16674         to avoid 'header present but could not be compiled' on cygwin.
16675
16676 2006-07-05  Eric Blake  <ebb9@byu.net>
16677
16678         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
16679         missing from netdb.h.
16680         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
16681
16682 2006-07-05  Derek R. Price  <derek@ximbiot.com>
16683
16684         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
16685         no longer needed.
16686         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
16687         * m4/getdate.m4 (gl_GETDATE): Likewise.
16688         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
16689         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
16690         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
16691         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
16692         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
16693
16694 2006-07-05  Derek R. Price  <derek@ximbiot.com>
16695
16696         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
16697         All uses of is_space replaced by isspace.
16698         * lib/exit.h: Don't talk about STDC_HEADERS.
16699         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
16700         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
16701         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
16702         replaced by isprint etc.
16703         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
16704         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
16705         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
16706         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
16707         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
16708         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
16709
16710 2006-07-05  Bruno Haible  <bruno@clisp.org>
16711
16712         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
16713         the function exists, before testing against AIX.
16714         Reported by Martin Lambers <marlam@marlam.de>.
16715
16716 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
16717
16718         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
16719         From Mark D. Baushke.
16720
16721 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
16722
16723         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
16724         to the absolute name, not just one, to bypass Sun C 5.8's
16725         "warning: #include of /usr/include/... may be non-portable".
16726
16727 2006-07-04  Eric Blake  <ebb9@byu.net>
16728
16729         * modules/dirname-tests: New test module.
16730         * tests/test-dirname.c: New file, replacing dirname.c
16731         TEST_DIRNAME section that was recently deleted.
16732
16733 2006-07-04  Bruno Haible  <bruno@clisp.org>
16734
16735         Assume ANSI C header files and <ctype.h> functions.
16736         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
16737         (mbsnwidth): Use isprint, iscntrl instead.
16738
16739 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
16740
16741         Merge from coreutils.
16742         * MODULES.html.sh: Add xstrtold.
16743         * modules/xstrtold: New file.
16744         * modules/cycle-check (Files): Add lib/same-inode.h.
16745         * modules/dirname (Files): Add m4/double-slash-root.m4.
16746         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
16747         * modules/mkdir-p (Files): Add lib/same-inode.h.
16748         * modules/same (Files): Add lib/same-inode.h.
16749
16750 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
16751
16752         * m4/absolute-header.m4: Renamed from full-header-path.m4.
16753         This is to keep the terminology clean; POSIX talks about
16754         "absolute pathnames", not "full pathnames", but the GNU
16755         Coding Standards say to use "path" for something else;
16756         so use "absolute" to keep both sides happy.
16757         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
16758         Set gl_absolute_header, not gl_full_header_path.
16759         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
16760         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
16761         All uses changed.
16762
16763         Merge from coreutils.
16764
16765         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
16766
16767         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
16768         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
16769         want to require the building of c-strtod.o.
16770         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
16771         needs -lm directly.
16772         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
16773
16774         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
16775
16776         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
16777         --as-needed option if available.  Problem reported by Albert Chin in
16778         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
16779         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
16780         cc merely issues a bunch of annoying warnings for --as-needed
16781         (this problem was reported by Bob Proulx).  Also, try linking with
16782         -lm to detect a bug in binutils 2.16 (this problem was reported
16783         by Ralf Wildenhues).
16784
16785         2006-06-18  Jim Meyering  <jim@meyering.net>
16786
16787         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
16788         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
16789         macro.
16790         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
16791         also check for glibc-2.4's abort-inducing bug.
16792
16793         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
16794         Low-probability clean-up should be to use rmdir to get rid of
16795         the just-created directory, not unlink.
16796
16797         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
16798         configure fail, and request a bug report to inform us about it.
16799         Add a comment that, barring reports to the contrary, in 2007 we'll
16800         assume ftruncate is universally available.
16801
16802         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
16803
16804         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
16805
16806         2006-03-12  Jim Meyering  <jim@meyering.net>
16807
16808         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
16809         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
16810         * m4/same.m4 (gl_SAME): Likewise.
16811         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
16812
16813         2006-03-11  Eric Blake  <ebb9@byu.net>
16814
16815         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
16816         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
16817         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
16818         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
16819
16820 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
16821
16822         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
16823         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
16824         reported by Mark D. Baushke, one in
16825         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
16826
16827         Merge from coreutils.
16828
16829         * lib/.cppi-disable: Add stdint_.h.
16830         * lib/.cvsignore: Add stdint.h.
16831
16832         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
16833
16834         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
16835         both double and long double versions.
16836         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
16837         * lib/xstrtold.c: New file.
16838         * lib/xstrtod.h (xstrtold): New decl.
16839
16840         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
16841
16842         * lib/filemode.c (setst): Remove.
16843         (strmode): Rewrite to avoid setst.  This makes the code shorter,
16844         (arguably) clearer, and the generated code is a bit smaller on my
16845         Debian GNU/Linux stable x86 host.
16846
16847         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
16848
16849         * lib/filemode.c: Include "filemode.h" first, to test the interface.
16850         Assume that filemode.h includes sys/types.h and sys/stat.h.
16851         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
16852         (ftypelet): Reorder to put common cases first, for efficiency.
16853         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
16854         to do 'M'.
16855         (strmode): Renamed from mode_string, and now stores 12 bytes instead
16856         of 10, for compatibility with FreeBSD.  All callers changed.
16857         (filemodestring): Now stores 12 bytes instead of 10, and sets file
16858         types that can't be deduced solely from st_mode.  First arg is now a
16859         const pointer.
16860         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
16861         (strmode): Renamed from mode_string.
16862         (filemodestring): New decl.
16863         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
16864         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
16865         needed.
16866         (S_ISPORT, S_ISWHT): New macros, if not already defined.
16867
16868         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
16869
16870         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
16871         fsusage.h now does that.  Include fsusage.h first, to test interface.
16872         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
16873         at most one method (the old code could have generated decls that
16874         didn't conform to C89, not that this was ever exercised).
16875         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
16876
16877         2006-03-19  Jim Meyering  <jim@meyering.net>
16878
16879         Work even in a chroot where d_ino values for entries in "/"
16880         don't match the stat.st_ino values for the same names.
16881         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
16882         number, iterate through all entries again, using lstat instead.
16883         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
16884         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
16885
16886         * lib/getcwd.c (__getcwd): Clarify a comment.
16887         Use memcpy in place of a call to strcpy.
16888
16889         2006-03-12  Jim Meyering  <jim@meyering.net>
16890
16891         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
16892         matches that of the current directory (which we're about to chdir ".."
16893         out of), then save the dev-ino of the parent, instead.
16894
16895         * lib/same-inode.h (SAME_INODE): New file/macro.
16896         * lib/chdir-safer.c (SAME_INODE): Remove definition.
16897         Include "same-inode.h", instead.
16898         * lib/same.c: Likewise.
16899         * lib/cycle-check.h: Include "same-inode.h".
16900         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
16901         * lib/cycle-check.c (SAME_INODE): Remove definition.
16902         * lib/root-dev-ino.h: Include "same-inode.h".
16903
16904         2006-03-11  Eric Blake  <ebb9@byu.net>
16905
16906         * lib/same.c (same_name): s/base_name/last_component/
16907         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
16908         * lib/filenamecat.c (file_name_concat): Likewise.
16909
16910         2006-03-11  Eric Blake  <ebb9@byu.net>,
16911                     Paul Eggert  <eggert@cs.ucla.edu>
16912
16913         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
16914         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
16915         drive prefix.
16916         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
16917         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
16918         (last_component): New method.
16919         * lib/dirname.c (dir_len): Determine when drive letters need a
16920         subsequent slash.  Preserve // when it is special.
16921         (dir_name): Don't append dot when drive letter is absolute.
16922         [TEST_DIRNAME]: Move into a full-blown gnulib test.
16923         * lib/basename.c (base_name): New semantics - malloc the result.
16924         Preserve // when it is special.  Preserve relative files that look
16925         like drive letters.
16926         (base_len): Preserve // when it is special.
16927         (last_component): New method, similar to old base_name semantics.
16928         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
16929         base_name.  Strip redundant slashes from ///.
16930
16931 2006-07-03  Jim Meyering  <jim@meyering.net>
16932
16933         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
16934         macro is used before the first cycle_check call.
16935
16936 2006-07-03  Eric Blake  <ebb9@byu.net>
16937
16938         * modules/dirname (Depends-on): Add xstrndup.
16939
16940 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
16941
16942         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
16943         test cases, so that config.log is a bit easier to follow.
16944
16945 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
16946
16947         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
16948         both are 64 bits, since this seems to be the tradition, and this
16949         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
16950         we ever run into a host that prefers long long to long in this
16951         case, we'll need another configure-time test.  Problem reported by
16952         Jim Meyering.
16953
16954 2006-07-02  Eric Blake  <ebb9@byu.net>
16955
16956         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
16957
16958 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
16959
16960         * modules/inttypes (Depends-on): No longer depends on stdint.
16961         * modules/stdint (Description): Say more about assumptions.
16962         Say that the fast types might differ.  Say macros are used.
16963         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
16964         (Makefile.am): Revise list of substituted symbols to match
16965         new stdint.m4.
16966         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
16967         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
16968         * tests/test-stdint.c (verify_same_types)
16969         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
16970         the code conforms to C99/C89.
16971         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
16972         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
16973
16974 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
16975
16976         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
16977         but fix a bug, by requiring at least 64 bits.
16978         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
16979         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
16980         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
16981         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
16982
16983         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
16984         changes.  Make 2.59 a prerequisite.  Check and substitute for
16985         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
16986         inttypes.h.  Do not use special include files; just use the
16987         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
16988         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
16989         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
16990         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
16991         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
16992         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
16993         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
16994         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
16995         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
16996         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
16997         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
16998         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
16999         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
17000         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
17001         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
17002         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
17003         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
17004         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
17005         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
17006         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
17007         WINT_MAX.  Check for C99 conformance more strictly, by detecting
17008         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
17009         not check for things that C99 does not require, e.g., int8_t.  If
17010         a test isn't needed unless <stdint.h> isn't working, and is
17011         unlikely to be needed for any other reason, then don't do it
17012         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
17013         size_t, since we assume C89 freestanding at least.  Do not check
17014         for sig_atomic_t, wchar_t, or wint_t, since the code now does
17015         the right thing even if the types are not defined.  Instead use:
17016         (gl_STDINT_TYPE_PROPERTIES): New macro.
17017         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
17018         testing whether <sys/types.h> clashes, as Autoconf does this for
17019         us now.  All uses removed.
17020         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
17021         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
17022         (gl_CHECK_TYPE_SAME):
17023         Remove; no longer needed.
17024         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
17025         exists, since we'll return 0 anyway in that case.
17026         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
17027
17028 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
17029
17030         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
17031         possible collision with system files.
17032         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
17033         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
17034         WCHAR_MIN and WCHAR_MAX in this case.
17035         (<stddef.h>): Do not include; no longer needed.
17036         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
17037         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
17038         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
17039         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
17040         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
17041         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
17042         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
17043         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
17044         !defined(__c99))]: Include in this case too, since it's harmless
17045         now.
17046         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
17047         dangerous to do so.
17048         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
17049         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
17050         (_STDINT_MIN, _STDINT_MAX): New macros.
17051         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
17052         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
17053         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
17054         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
17055         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
17056         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
17057         macros, not typedefs; this simplifies things quite a bit.
17058         Use long int for all types narrower than int64_t.
17059         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
17060         Define in terms of long long int or int64_t or long int,
17061         not int64_t or int32_t.  This saves some compile-time testing.
17062         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
17063         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
17064         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
17065         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
17066         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
17067         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
17068         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
17069         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
17070         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
17071         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
17072         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
17073         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
17074         undef any previous version and define our own version, for
17075         simplicity and consistency with the new macros for types.
17076         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
17077         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
17078         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
17079         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
17080         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
17081         @WINT_T_SUFFIX@ to keep things simple here.
17082         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
17083         Simplify by assuming typical 8/16/32/64 host, since we're
17084         already doing that elsewhere anyway.
17085         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
17086         and assume long long int is 64 bits if available.  This
17087         speeds up 'configure'.
17088
17089 2006-07-01  Eric Blake  <ebb9@byu.net>
17090
17091         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
17092         Reported by Andreas Buening.
17093
17094 2006-07-01  Eric Blake  <ebb9@byu.net>
17095
17096         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
17097
17098 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
17099
17100         * lib/getaddrinfo.c: fixed typo
17101
17102 2006-06-29  Jim Meyering  <jim@meyering.net>
17103
17104         * modules/strftime (Maintainer): Add my name, since with the
17105         FPRINTFTIME changes strftime.c has forked from glibc.
17106
17107 2006-06-29  Eric Blake  <ebb9@byu.net>
17108
17109         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
17110
17111 2006-06-29  Eric Blake  <ebb9@byu.net>
17112
17113         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
17114
17115 2006-06-29  Eric Blake  <ebb9@byu.net>
17116
17117         * lib/stat_.h: New file.
17118
17119 2006-06-29  Eric Blake  <ebb9@byu.net>
17120
17121         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
17122         unused static function.
17123
17124 2006-06-29  Eric Blake  <ebb9@byu.net>
17125
17126         * doc/functions.texi (Function Portability): Document missing lstat
17127         on mingw.
17128
17129 2006-06-29  Eric Blake  <ebb9@byu.net>
17130
17131         * MODULES.html.sh: Add sys_stat.
17132         * modules/sys_stat: New module.
17133         * modules/mkstemp (Depends-on): Add sys_stat.
17134
17135 2006-06-29  Derek R. Price  <derek@ximbiot.com>
17136
17137         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
17138
17139 2006-06-29  Derek R. Price  <derek@ximbiot.com>
17140
17141         * m4/c-bs-a.m4: Removed.
17142
17143 2006-06-29  Derek R. Price  <derek@ximbiot.com>
17144
17145         * lib/strftime.c: Assume strftime() exists.
17146
17147 2006-06-29  Derek Price  <derek@ximbiot.com>
17148
17149         * modules/c-bs-a: Removed - \a is C89.
17150         * MODULES.html.sh: Remove c-bs-a.
17151
17152 2006-06-29  Bruno Haible  <bruno@clisp.org>
17153
17154         * modules/wcwidth (License): Change to LGPL.
17155
17156 2006-06-28  Simon Josefsson  <jas@extundo.com>
17157
17158         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
17159         on _WIN32.
17160
17161         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
17162         getnameinfo.
17163
17164 2006-06-28  Simon Josefsson  <jas@extundo.com>
17165
17166         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
17167
17168 2006-06-28  Simon Josefsson  <jas@extundo.com>
17169
17170         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
17171         functions there.  It will succeed on Windows XP, but on Windows
17172         2000 and (presumably) earlier, it will fail, and use the internal
17173         re-implementation.
17174         (use_win32_p): New function.
17175         (getaddrinfo): Use strtoul on servname, to support numeric ports.
17176         Support AI_NUMERICSERV to disable getservbyname.
17177         (getnameinfo): New function, only supports
17178         NI_NUMERICHOST|NI_NUMERICSERV for now.
17179
17180         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
17181         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
17182         getnameinfo.
17183
17184 2006-06-28  Eric Blake  <ebb9@byu.net>
17185
17186         * modules/wcwidth: New file.
17187         * modules/mbchar (Depends-on): Add wcwidth.
17188         * modules/mbswidth (Depends-on): Add wcwidth.
17189         * MODULES.html.sh: Add wcwidth.
17190
17191 2006-06-28  Eric Blake  <ebb9@byu.net>
17192
17193         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
17194         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
17195
17196 2006-06-28  Eric Blake  <ebb9@byu.net>
17197
17198         * lib/xvasprintf.h: Fix comments.
17199
17200 2006-06-28  Eric Blake  <ebb9@byu.net>
17201
17202         * lib/mbchar.h (wcwidth): Include wcwidth.h.
17203         * lib/mbswidth.c (wcwidth): Move from here...
17204         * lib/wcwidth.h: ...to this new file.
17205
17206 2006-06-28  Derek R. Price  <derek@ximbiot.com>
17207
17208         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
17209
17210         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
17211         it's obsolete.
17212         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
17213
17214 2006-06-28  Derek R. Price  <derek@ximbiot.com>
17215
17216         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
17217         Autoconf 2.60 says this stuff was obsolete.
17218
17219 2006-06-28  Bruno Haible  <bruno@clisp.org>
17220
17221         * modules/wcwidth (Files): Add m4/wchar_t.m4.
17222
17223 2006-06-28  Bruno Haible  <bruno@clisp.org>
17224
17225         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
17226         gt_TYPE_WCHAR_T.
17227
17228 2006-06-28  Bruno Haible  <bruno@clisp.org>
17229
17230         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
17231         declaration for wcwidth.
17232         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
17233
17234 2006-06-28  Bruno Haible  <bruno@clisp.org>
17235
17236         * lib/mkdtemp.c [MINGW]: Include <io.h>.
17237         (mkdir): Define using _mkdir.
17238
17239 2006-06-28  Bruno Haible  <bruno@clisp.org>
17240
17241         * lib/getaddrinfo.h: Fix POSIX URL.
17242         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
17243         _WIN32.
17244         (use_win32_p): Make static.
17245         (getaddrinfo): Reject service name if it is empty or does not consist
17246         solely of decimal digits, or if its value is > 65535.
17247         (getnameinfo): Remove useless casts.
17248
17249 2006-06-27  Simon Josefsson  <jas@extundo.com>
17250
17251         * modules/sys_select: New file, suggested by Bruno Haible, Paul
17252         Eggert and Martin Lambers.
17253
17254 2006-06-27  Simon Josefsson  <jas@extundo.com>
17255
17256         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
17257         Eggert and Martin Lambers.
17258
17259 2006-06-27  Bruno Haible  <bruno@clisp.org>
17260
17261         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
17262         result to 0, not to empty.
17263         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
17264
17265 2006-06-27  Bruno Haible  <bruno@clisp.org>
17266
17267         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
17268
17269 2006-06-26  Simon Josefsson  <jas@extundo.com>
17270
17271         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
17272         present.
17273
17274 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
17275
17276         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
17277         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
17278         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
17279
17280 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
17281
17282         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
17283
17284 2006-06-26  Bruno Haible  <bruno@clisp.org>
17285
17286         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
17287
17288 2006-06-26  Bruno Haible  <bruno@clisp.org>
17289
17290         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
17291
17292 2006-06-26  Bruno Haible  <bruno@clisp.org>
17293
17294         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
17295         SGI C compiler in pre-C99 mode.
17296         Suggested by Mark D. Baushke and Larry Jones.
17297
17298 2006-06-26  Bruno Haible  <bruno@clisp.org>
17299
17300         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
17301         WCHAR_MAX.
17302         Reported by Mark D. Baushke and Larry Jones.
17303
17304 2006-06-26  Bruno Haible  <bruno@clisp.org>
17305
17306         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
17307         in pre-C99 mode.
17308         Suggested by Mark D. Baushke and Larry Jones.
17309
17310 2006-06-23  Simon Josefsson  <jas@extundo.com>
17311             Bruno Haible  <bruno@clisp.org>
17312
17313         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
17314         Emit mostlyclean-local rule.
17315         (func_emit_tests_Makefile_am): Likewise.
17316         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
17317
17318 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
17319
17320         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
17321
17322 2006-06-23  Bruno Haible  <bruno@clisp.org>
17323
17324         * tests/test-stdint.c: Update to match ISO C 99 Technical
17325         Corrigendum 1.
17326
17327 2006-06-23  Bruno Haible  <bruno@clisp.org>
17328
17329         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
17330
17331 2006-06-23  Bruno Haible  <bruno@clisp.org>
17332
17333         * lib/stdint_.h: Treat IRIX like OpenBSD.
17334
17335 2006-06-23  Bruno Haible  <bruno@clisp.org>
17336
17337         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
17338         ISO C 99 Technical Corrigendum 1.
17339
17340 2006-06-22  Simon Josefsson  <jas@extundo.com>
17341
17342         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
17343         MinGW.
17344
17345 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
17346
17347         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
17348         needed.  Some compiler complained about some of them.  Problem reported
17349         by Larry Jones in
17350         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
17351
17352 2006-06-21  Simon Josefsson  <jas@extundo.com>
17353
17354         * tests/test-getaddrinfo.c: New file.
17355
17356         * modules/getaddrinfo-tests: New file.
17357
17358         * MODULES.html.sh: Add inet_pton.
17359
17360         * modules/inet_pton: New file.
17361
17362 2006-06-21  Simon Josefsson  <jas@extundo.com>
17363
17364         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
17365         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
17366         of using the (limited) gnulib implementation on Windows XP.
17367
17368         * m4/inet_pton.m4: New file.
17369
17370 2006-06-21  Simon Josefsson  <jas@extundo.com>
17371
17372         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
17373         variable.
17374
17375         * lib/socket_.h: Don't define WINVER.
17376
17377         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
17378         slightly modified to work in gnulib.
17379
17380 2006-06-21  Simon Josefsson  <jas@extundo.com>
17381
17382         * doc/gnulib.texi (Windows sockets): Add.
17383
17384 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
17385
17386         * lib/read-file.c (fread_file): Start with buffer allocation of
17387         0 bytes rather than 1 byte; this simplifies the code.
17388         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
17389         code to free buffer and save/restore errno.
17390         (internal_read_file): Remove unused local.
17391
17392 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
17393
17394         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
17395         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
17396         Problem reported by Denis Excoffier in
17397         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
17398
17399 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17400
17401         * modules/sys_socket, modules/socklen: Include sys/types since
17402         FreeBSD 4.x's sys/socket.h needs it.
17403
17404 2006-06-19  Simon Josefsson  <jas@extundo.com>
17405
17406         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
17407
17408 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
17409
17410         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
17411
17412 2006-06-19  Bruno Haible  <bruno@clisp.org>
17413
17414         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
17415         and FULL_PATH_INTTYPES_H in angle brackets.
17416         Reported by Mark D. Baushke <mdb@gnu.org>.
17417
17418 2006-06-17  Eric Blake  <ebb9@byu.net>
17419
17420         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
17421         errno.
17422
17423 2006-06-17  Bruno Haible  <bruno@clisp.org>
17424
17425         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
17426         <sys/inttypes.h>.
17427
17428 2006-06-17  Bruno Haible  <bruno@clisp.org>
17429
17430         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
17431         whether errno is declared. Assume <errno.h> declares errno.
17432
17433 2006-06-17  Bruno Haible  <bruno@clisp.org>
17434
17435         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
17436
17437 2006-06-17  Bruno Haible  <bruno@clisp.org>
17438
17439         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
17440         problem on Solaris 2.5.1.
17441
17442 2006-06-16  Eric Blake  <ebb9@byu.net>
17443
17444         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
17445         * lib/unicodeio.c [!defined errno]: Likewise.
17446         * lib/strtol.c [!defined errno]: Likewise.
17447         * lib/strtod.c [!defined errno]: Likewise.
17448
17449 2006-06-15  Eric Blake  <ebb9@byu.net>
17450
17451         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
17452
17453 2006-06-15  Eric Blake  <ebb9@byu.net>
17454
17455         * config/srclist.txt (ssize_t.m4): Lose sync.
17456
17457 2006-06-15  Bruno Haible  <bruno@clisp.org>
17458
17459         * modules/stdint (Files): Include m4/full-header-path.m4,
17460         m4/size_max.m4, m4/wchar_t.m4.
17461         (Makefile.am): Many more substitutions.
17462         * modules/stdint-tests: New file.
17463         * tests/test-stdint.c: New file.
17464
17465 2006-06-15  Bruno Haible  <bruno@clisp.org>
17466
17467         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
17468         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
17469         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
17470         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
17471         gl_CHECK_TYPE_SAME): New macros.
17472
17473 2006-06-15  Bruno Haible  <bruno@clisp.org>
17474
17475         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
17476
17477 2006-06-15  Bruno Haible  <bruno@clisp.org>
17478
17479         * lib/stdint_.h: Rewritten to be fully auto-configured.
17480         Fixes bug on HP-UX/IA64.
17481
17482 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
17483
17484         * lib/getdate.y (__attribute__): Don't define if already defined.
17485         Problem reported by Larry Jones.
17486         * lib/utimens.c (__attribute__): Likewise.
17487
17488 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
17489
17490         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
17491         reported by Andreas Schwab.
17492
17493 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17494             Bruno Haible  <bruno@clisp.org>
17495
17496         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
17497         check for the declaration of strnlen and a run test that exposes the
17498         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
17499         rpl_strndup.
17500
17501 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17502             Bruno Haible  <bruno@clisp.org>
17503
17504         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
17505
17506 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17507
17508         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
17509         compile test, for Tru64 4.0D.
17510
17511 2006-05-28  Karl Berry  <karl@gnu.org>
17512
17513         * config/srclist.txt (printf-args.c): lose sync.
17514
17515 2006-05-26  Martin Lambers  <marlam@marlam.de>
17516
17517         * lib/getpass.c: Updates the test for the native W32 API, and adds
17518         missing includes, thus fixing compilation warnings.
17519
17520 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
17521
17522         * lib/exclude.c (exclude_fnmatch): New function.
17523         (excluded_file_name): Call exclude_fnmatch.
17524         * lib/exclude.h (excluded_file_name): New prototype
17525
17526 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
17527
17528         * lib/tempname.c (small_open, large_open): New macros.
17529         (__open, __open64) [!_LIBC]: Remove.
17530         (__gen_tempname): Use small_open and large_open instead of __open
17531         and __open64.  This fixes a portability bug on HP-UX 11.11i
17532         reported by Simon Wing-Tang in
17533         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
17534
17535 2006-05-24  Bruno Haible  <bruno@clisp.org>
17536
17537         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
17538         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
17539         Reported by Thorsten Maerz <torte@netztorte.de> via
17540         Aaron Stone <aaron@serendipity.cx>.
17541
17542 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
17543
17544         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
17545         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
17546         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
17547         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
17548         not really conditional on the cache.
17549         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
17550
17551 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
17552
17553         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
17554         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
17555         (my_usleep): Don't mishandle maximum value.
17556
17557 2006-05-19  Jim Meyering  <jim@meyering.net>
17558
17559         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
17560
17561 2006-05-17  Bruno Haible  <bruno@clisp.org>
17562
17563         Cygwin portability.
17564         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
17565
17566 2006-05-17  Bruno Haible  <bruno@clisp.org>
17567
17568         * lib/stdint_.h: Fix recognition of Cygwin.
17569
17570 2006-05-15  Bruno Haible  <bruno@clisp.org>
17571
17572         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
17573         on libtool patch by Ralf Wildenhues.
17574
17575 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
17576
17577         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
17578         test for C99 conformance; (bool) 0.5 is an integer constant
17579         expression, but (bool) -0.5 is not.  Problem reported by Fedor
17580         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
17581
17582 2006-05-11  Simon Josefsson  <jas@extundo.com>
17583
17584         * m4/xvasprintf.m4: Fix obvious typo.
17585
17586 2006-05-11  Jim Meyering  <jim@meyering.net>
17587
17588         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
17589         James Lemley.
17590
17591 2006-05-10  Simon Josefsson  <jas@extundo.com>
17592
17593         * lib/md4.c: Typo fix, update copyright years.
17594         (K1, K2): Don't use L because it turn computations into 64-bit on
17595         64-bit platforms.
17596
17597 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
17598
17599         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
17600         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
17601         unwanted sign propagation, e.g., on hosts with 64-bit int.
17602         There still are some problems with reeelly weird theoretical hosts
17603         (e.g., 33-bit int) but it's not worth worrying about now.
17604         * lib/sha1.c (rol): Likewise.
17605         (K1, K2, K3, K4): Remove unnecessary L suffix.
17606
17607 2006-05-10  Bruno Haible  <bruno@clisp.org>
17608
17609         * lib/des.c: Cast to avoid warnings.
17610
17611 2006-05-09  Bruno Haible  <bruno@clisp.org>
17612
17613         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
17614         (Depends-on): Depend also on xsize, stdarg.
17615         (configure.ac): Add gl_XVASPRINTF.
17616
17617 2006-05-09  Bruno Haible  <bruno@clisp.org>
17618
17619         * m4/xvasprintf.m4: New file.
17620
17621 2006-05-09  Bruno Haible  <bruno@clisp.org>
17622
17623         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
17624         (EOVERFLOW): Define fallback value.
17625         (xstrcat): New function.
17626         (xvasprintf): Recognize the special case of a string concatenation.
17627
17628 2006-05-08  Eric Blake  <ebb9@byu.net>
17629
17630         * gnulib-tool (func_version): Base copyright year on CVS date.
17631         (func_emit_copyright_notice): New function.
17632         (func_emit_lib_Makefile_am): Use it.
17633         (func_emit_tests_Makefile_am): Likewise.
17634         (func_import): Likewise.
17635
17636 2006-05-08  Bruno Haible  <bruno@clisp.org>
17637
17638         * modules/stdarg: New file.
17639         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
17640
17641 2006-05-08  Bruno Haible  <bruno@clisp.org>
17642
17643         * m4/stdarg.m4: New file, from GNU gettext.
17644
17645 2006-05-08  Bruno Haible  <bruno@clisp.org>
17646
17647         * config/srclist.txt (build-aux/config.rpath): different from latest
17648         release.
17649
17650 2006-05-08  Bruno Haible  <bruno@clisp.org>
17651
17652         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
17653
17654 2006-05-05  Jim Meyering  <jim@meyering.net>
17655
17656         * m4/warning.m4: New file, derived from bison's file by the same name.
17657
17658 2006-05-03  Bruno Haible  <bruno@clisp.org>
17659
17660         * lib/stdint_.h: Shorter URL.
17661         * lib/inttypes.h: Likewise.
17662
17663 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
17664
17665         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
17666
17667 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
17668
17669         * lib/verify.h: Document the internals better.  Most of this change
17670         was written by Bruno Haible.
17671
17672 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
17673
17674         * doc/verify.texi: New file, partly based on a proposal by
17675         Bruno Haible.
17676
17677 2006-05-02  Bruno Haible  <bruno@clisp.org>
17678
17679         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
17680         test from here...
17681         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
17682
17683 2006-04-29  Bruno Haible  <bruno@clisp.org>
17684
17685         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
17686         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
17687
17688 2006-04-29  Bruno Haible  <bruno@clisp.org>
17689
17690         * gnulib-tool: Make --update option actually work.
17691
17692 2006-04-29  Bruno Haible  <bruno@clisp.org>
17693
17694         * doc/gcd.texi: New file.
17695         * doc/gnulib.texi: Include it.
17696
17697 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
17698
17699         * lib/getdate.y (get_date): When adding relative date, start with the
17700         initial time, not with the result of the first mktime call.
17701
17702 2006-04-25  Bruno Haible  <bruno@clisp.org>
17703
17704         * gnulib-tool (func_import): Output the include directives in three
17705         blocks, sorted separately.
17706         Reported by Ben Pfaff <blp@cs.stanford.edu>.
17707
17708 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
17709
17710         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
17711         to define main with arguments, for C++.  Reported by Eric Blake.
17712         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
17713         Prefer 'int main ()' to 'int main (void)', for C++.
17714         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
17715         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
17716         for 'main', for C99 and C++.
17717
17718 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
17719
17720         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
17721         Don't assume that exit status -1 is valid.
17722         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
17723         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
17724         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
17725         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
17726         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
17727         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
17728         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
17729         functions can be used without declaring them, or that you can
17730         exit with status -1.
17731         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
17732
17733 2006-04-24  Karl Berry  <karl@gnu.org>
17734
17735         * config/srclist.txt (longdouble.m4): sync lost.
17736
17737 2006-04-24  Eric Blake  <ebb9@byu.net>
17738
17739         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
17740
17741 2006-04-24  Bruno Haible  <bruno@clisp.org>
17742
17743         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
17744         poll() implementation in AIX.
17745         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17746
17747 2006-04-24  Bruno Haible  <bruno@clisp.org>
17748
17749         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
17750         assigned exactly once.
17751
17752 2006-04-23  Claudio Fontana  <claudio@gnu.org>
17753             Bruno Haible  <bruno@clisp.org>
17754
17755         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
17756         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
17757         for AM_CPPFLAGS.
17758
17759 2006-04-23  Bruno Haible  <bruno@clisp.org>
17760
17761         * modules/copy-file: Depend on unistd.
17762         * modules/execute: Likewise.
17763         * modules/fatal-signal: Likewise.
17764         * modules/findprog: Likewise.
17765         * modules/mkdtemp : Likewise.
17766         * modules/pipe: Likewise.
17767         * modules/wait-process: Likewise.
17768
17769 2006-04-23  Bruno Haible  <bruno@clisp.org>
17770
17771         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
17772         condition was already detected.
17773         Reported by Ben Pfaff <blp@cs.stanford.edu>.
17774
17775 2006-04-23  Bruno Haible  <bruno@clisp.org>
17776
17777         * lib/copy-file.c: Include <unistd.h> unconditionally.
17778         * lib/execute.c: Likewise.
17779         * lib/fatal-signal.c: Likewise.
17780         * lib/findprog.c: Likewise.
17781         * lib/mkdtemp.c: Likewise.
17782         * lib/pipe.h: Likewise.
17783         * lib/pipe.c: Likewise.
17784         * lib/wait-process.h: Likewise.
17785
17786 2006-04-23  Bruno Haible  <bruno@clisp.org>
17787
17788         * gnulib-tool (func_usage): Fix --import description. Document
17789         --update.
17790         (func_import): Create temporary file in a temporary directory, if
17791         --dry-run is specified. Silence errors from 'grep' when there are no
17792         m4 files in $m4dir.
17793         (func_create_testdir): Silence errors from 'grep' when there are no
17794         m4 files in $m4dir.
17795         Reported by Karl Berry <karl@freefriends.org>.
17796
17797 2006-04-20  Bruno Haible  <bruno@clisp.org>
17798
17799         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
17800         one argument, so that the code will be portable to Autoconf 2.60.
17801         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
17802         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
17803         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
17804
17805 2006-04-19  Derek Price  <derek@ximbiot.com>
17806             Eric Blake  <ebb9@byu.net>
17807
17808         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
17809         rather than "/full/path.h".  Update comment to match.  Shorten &
17810         generalize m4_translit call via AS_TR_CPP.
17811
17812 2006-04-19  Derek Price  <derek@ximbiot.com>
17813             Eric Blake  <ebb9@byu.net>
17814
17815         * lib/inttypes.h: Correct grammar in comment.
17816
17817 2006-04-18  Derek Price  <derek@ximbiot.com>
17818             Paul Eggert  <eggert@cs.ucla.edu>
17819
17820         * modules/inttypes: New file.
17821         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
17822
17823 2006-04-18  Derek Price  <derek@ximbiot.com>
17824             Paul Eggert  <eggert@cs.ucla.edu>
17825
17826         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
17827         New files.
17828
17829 2006-04-18  Derek Price  <derek@ximbiot.com>
17830             Paul Eggert  <eggert@cs.ucla.edu>
17831
17832         * lib/inttypes.h: New file.
17833         * lib/strtoimax.c: Assume <inttypes.h>.
17834
17835 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
17836
17837         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
17838         isn't mounted.  Problem reported by Kir Kolyshkin.
17839
17840 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
17841
17842         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
17843         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
17844         Derek R. Price.
17845         * lib/regex.h (RE_DUP_MAX): Update comment to match current
17846         implementation.
17847
17848 2006-04-12  Eric Blake  <ebb9@byu.net>
17849
17850         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
17851         is now done automatically by the corresponding Autoconf macro.
17852
17853 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
17854
17855         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
17856         time_r.h.
17857
17858 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
17859
17860         Merge regex changes from libc, removing some of our
17861         POSIX-conformance changes that were rejected and redoing them in a
17862         less-intrusive way.
17863
17864         * lib/regcomp.c (re_compile_internal, init_dfa):
17865         Length arg is now size_t, not Idx.  All uses changed.
17866         (peek_token): Forward decl now says internal_function.
17867         (__re_error_msgid, __re_error_msgid_idx):
17868         Now static rather than extern with attribute_hidden.
17869         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
17870         For some reason libc prefers K&R style defns for external functions.
17871         (regerror) [!defined _LIBC]: Likewise.
17872         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
17873         (seek_collating_symbol_entry, lookup_collation_sequence_value):
17874         (build_range_exp, build_collating_symbol):
17875         Use K&R-style defn.
17876         (re_compile_fastmap): Use '\0' to memset, not 0.
17877         (utf8_sb_map): Make the calculations more obvious.
17878         (init_dfa, parse_bracket_exp, build_charclass_op):
17879         Call calloc and cast result, as glibc does.
17880         (init_word_char, fetch_token, peek_token, peek_token_bracket):
17881         (build_range_exp, build_collating_symbol):
17882         Now internal functions.
17883
17884         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
17885
17886         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
17887         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
17888         Don't depend on VMS; depend on __VMS instead, for POSIX
17889         namespace cleanness.
17890         (regoff_t): Define to ssize_t, not long int.
17891
17892         Remove the REG_ macros named below.  Instead, make the old names
17893         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
17894         __USE_GNU_REGEX.
17895         (REG_BACKSLASH_ESCAPE_IN_LISTS):
17896         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
17897         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
17898         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
17899         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
17900         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
17901         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
17902         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
17903         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
17904         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
17905         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
17906         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
17907         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
17908         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
17909         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
17910         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
17911         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
17912         (REG_NREGS):
17913         Remove.  All uses replaced by the old RE_* names.
17914         (RE_BACKSLASH_ESCAPE_IN_LISTS):
17915         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
17916         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
17917         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
17918         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
17919         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
17920         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
17921         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
17922         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
17923         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
17924         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
17925         Don't bother having these macros be independent of each others'
17926         values, since they no longer exist in the POSIX name space.
17927
17928         Rename the following member names back to their old names,
17929         unless !__USE_GNU_REGEX.  All uses changed back.
17930         (buffer): Renamed from re_buffer.
17931         (allocated): Renamed from re_allocated.
17932         (used): Renamed from re_used.
17933         (syntax): Renamed from re_syntax.
17934         (fastmap): Renamed from re_fastmap.
17935         (translate): Renamed from re_translate.
17936         (can_be_null): Renamed from re_can_be_null.
17937         (regs_allocated): Renamed from re_regs_allocated.
17938         (fastmap_accurate): Renamed from re_fastmap_accurate.
17939         (no_sub): Renamed from re_no_sub.
17940         (not_bol): Renamed from re_not_bol.
17941         (not_eol): Renamed from re_not_eol.
17942         (newline_anchor): Renamed from re_newline_anchor.
17943         (num_regs): Renamed from rm_num_regs.
17944         (start): Renamed from rm_start.
17945         (end): Renamed from rm_end.
17946
17947         (free_state): Move up a bit.
17948
17949         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
17950         #define to be empty.
17951         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
17952         when that is what is intended.
17953         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
17954         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
17955         (MAX): New macro.
17956         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
17957         All uses changed back to re_malloc, etc.  It's now the caller's
17958         responsibility to check for overflow; all callers changed.
17959         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
17960         (re_x2nrealloc): Remove.
17961         (free_state): Remove decl.
17962
17963         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
17964         (re_set_registers, re_exec):
17965         Use K&R-style defn.
17966
17967         2006-01-31  Roland McGrath  <roland@redhat.com>
17968
17969         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
17970         Reported by Mike Frysinger <vapier@gentoo.org>.
17971
17972         2006-01-15  Andreas Jaeger  <aj@suse.de>
17973
17974         [BZ #1950]
17975         * lib/regex_internal.c (re_string_reconstruct): Adjust for
17976         build_wcs_upper_buffer change.
17977         (build_wcs_upper_buffer): Change return type.
17978
17979         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
17980
17981         * lib/regex_internal.h: Include <stdint.h> if available.
17982
17983         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
17984
17985         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
17986
17987         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
17988
17989         * lib/regcomp.c: Adjust for changed secondary hash function.
17990
17991         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
17992
17993         * lib/regex.h: Pretty printing.
17994         Clean up namespace a bit.
17995
17996         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
17997
17998         * lib/regexec.c (update_cur_sifted_state, check_arrival,
17999         check_arrival_add_next_nodes): Avoid using uninitialized variable.
18000
18001         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
18002                     Ulrich Drepper  <drepper@redhat.com>
18003
18004         [BZ #1302]
18005         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
18006         changed.
18007         (bitset_word_t): Renamed from bitset_word.  All uses changed.
18008
18009         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
18010
18011         [BZ #281]
18012         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
18013         * lib/regcomp.c: Remove unnecessary uses of
18014         unsigned RE_TRANSLATE_TYPE.
18015         * lib/regex_internal.h: Likewise.
18016         * lib/regex_internal.c: Likewise.
18017         * lib/regexec.c: Likewise.
18018         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
18019
18020         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
18021
18022         * lib/regexec.c (find_recover_state): Remove unnecessary
18023         initialization.
18024         (transit_state_bkref): Make DFA a const pointer.
18025         (get_subexp): Likewise.
18026         (check_arrival): Likewise.
18027         (update_cur_sifted_state): Likewise.
18028         (re_search_internal): Likewise.
18029         (prune_impossible_nodes): Likewise.
18030         (acquire_init_state_context): Likewise.
18031         (proceed_next_node): Likewise.
18032         (set_regs): Likewise.
18033         (free_fail_stack_return): Likewise.
18034         (check_arrival_expand_ecl): Mark DFA parameter as const.
18035         (check_arrival_expand_ecl_sub): Likewise.
18036         (check_subexp_limits): Likewise.
18037         (sub_epsilon_src_nodes):  Likewise.
18038         (add_epsilon_src_nodes):  Likewise.
18039         (merge_state_array): Likewise.
18040         (update_regs): Likewise.
18041         (build_trtable): Likewise.
18042         (sift_states_backward): Mark MCTX parameter as const.
18043         (build_sifted_states): Likewise.
18044         (update_cur_sifted_state): Likewise.
18045         (sift_states_mkref): Likewise.
18046         (check_arrival_expand_ecl): Mark eclosure as const.
18047         (check_dst_limits_calc_pos_1): Likewise.
18048         * lib/regex_internal.h (re_match_context_t): Make dfa a const
18049         pointer.
18050
18051         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
18052
18053         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
18054         (transit_state_sb): Likewise.
18055         (transit_state_mb): Likewise.
18056         (sift_states_iter_mb): Likewise.
18057         (check_arrival_add_next_nodes): Likewise.
18058         (check_node_accept_bytes): Change first parameter to pointer-to-const.
18059         [_LIBC] (re_search_2_stub): Use mempcpy.
18060
18061         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
18062         mbrtowc for very simple UTF-8 case.
18063
18064         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
18065         a pointer-to-const.
18066         (re_acquire_state_context): Likewise.
18067         * lib/regex_internal.h: Adjust prototypes.
18068
18069         * lib/regex.c: Prevent using C++ compilers.
18070
18071         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
18072         (re_acquire_state_context): Likewise.
18073
18074 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
18075
18076         * modules/regex (Depends-on): Add ssize_t.
18077
18078 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
18079
18080         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
18081         translation table.
18082
18083 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
18084
18085         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
18086
18087 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
18088             Bruno Haible  <bruno@clisp.org>
18089
18090         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
18091         <sys/types.h> and <inttypes.h>.
18092
18093 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18094
18095         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
18096         `__error_t_defined', so argp.h will not typedef the former.
18097
18098 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
18099
18100         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
18101         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
18102         glibc names.  Even if glibc is changed to conform to POSIX, the
18103         traditional names will be available anyway, since regex depends on
18104         the extensions module.  Also, fix a longstanding typo in the
18105         implementation of Spencer ERE test #75 from grep 2.3.  Problems
18106         reported by Emanuele Giaquinta.  Also, change sense of cached
18107         variable, so that the message makes sense.
18108
18109 2006-03-24  Simon Josefsson  <jas@extundo.com>
18110
18111         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
18112         including some doc fixes.
18113         (base64_encode_alloc): Fix +1 bug on allocation failures.
18114
18115 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18116
18117         * lib/base64.c (base64_encode): Do not read past end of array with
18118         unsanitized input on systems with CHAR_BIT > 8.
18119
18120 2006-03-24  Eric Blake  <ebb9@byu.net>
18121
18122         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
18123
18124 2006-03-22  Karl Berry  <karl@gnu.org>
18125
18126         * config/srclist.txt (*setenv.[ch]): get from coreutils.
18127         * config/srclistvars.sh (COREUTILS): new var.
18128
18129 2006-03-17  Jim Meyering  <jim@meyering.net>
18130
18131         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
18132         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
18133
18134 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
18135
18136         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
18137         no longer needs it.  Instead, check that regoff_t is as least
18138         as wide as ptrdiff_t.
18139
18140         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
18141         so that our regex.h stays compatible with the installed regex.
18142         This is helpful for installers who configure --without-included-regex.
18143         Problem reported by Emanuele Giaquinta.
18144
18145 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
18146
18147         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
18148         Typedef to long int, not to off_, as POSIX will likely change
18149         in that direction.
18150
18151 2006-03-15  Eric Blake  <ebb9@byu.net>
18152
18153         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
18154
18155 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
18156
18157         * lib/argp-help.c (validate_uparams): Fix typo
18158         * lib/argp-parse.c (argp_default_options): Consistently begin help
18159         messages with a lowercase letter.
18160
18161 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
18162
18163         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
18164         overrun buffers and shouldn't be used (much as gets shouldn't be
18165         used).
18166         * lib/time_r.c (asctime_r, ctime_r): Likewise.
18167
18168 2006-03-08  Simon Josefsson  <jas@extundo.com>
18169
18170         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
18171         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18172
18173 2006-03-08  Simon Josefsson  <jas@extundo.com>
18174
18175         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
18176         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18177
18178 2006-03-08  Simon Josefsson  <jas@extundo.com>
18179
18180         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
18181         signal that configure disabled the device.
18182
18183 2006-03-08  Simon Josefsson  <jas@extundo.com>
18184
18185         * build-aux/maint.mk: Fix refresh-po, to handle no translated
18186         languages.
18187
18188 2006-03-07  Simon Josefsson  <jas@extundo.com>
18189
18190         * modules/getopt (Depends-on): Add unistd.
18191
18192         * modules/unistd: New file.
18193
18194 2006-03-07  Simon Josefsson  <jas@extundo.com>
18195
18196         * modules/gc-random: New file.
18197
18198 2006-03-07  Simon Josefsson  <jas@extundo.com>
18199
18200         * m4/unistd_h.m4: New file.
18201
18202 2006-03-07  Simon Josefsson  <jas@extundo.com>
18203
18204         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
18205         test to be side-effect free by storing the result in the cache
18206         variable gl_cv_lib_readline, and moving the assignment of
18207         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
18208         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18209
18210 2006-03-07  Simon Josefsson  <jas@extundo.com>
18211
18212         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
18213         error on missing devices (the functions will return an error).
18214
18215         * m4/gc.m4: Move random stuff to gc-random.m4
18216
18217 2006-03-07  Simon Josefsson  <jas@extundo.com>
18218
18219         * lib/unistd_.h: New file.
18220
18221 2006-03-07  Simon Josefsson  <jas@extundo.com>
18222
18223         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
18224
18225 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
18226
18227         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
18228         Problem reported by Juan Manuel Guerrero.
18229
18230 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
18231
18232         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
18233         the unistd module.
18234         * lib/getlogin_r.c: Likewise.
18235         * lib/getlogin_r.h: Likewise.
18236         * lib/glob.c: Likewise.
18237         * lib/pagealign_alloc.c: Likewise.
18238         * lib/unistd_.h: Remove; no longer needed.
18239
18240 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
18241
18242         * MODULES.html.sh (Support for systems lacking POSIX:2001):
18243         Add unistd.
18244         * modules/c-stack (Depends-on): Add unistd.
18245         * modules/getlogin_r: Likewise.
18246         * modules/glob: Likewise.
18247         * modules/pagealign_alloc: Likewise.
18248         * modules/unistd (Files): Remove lib/unistd_.h.
18249         (EXTRA_DIST): Remove.
18250         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
18251         need unistd_.h.
18252         (MOSTLYCLEANFILES): Remove unistd.h-t.
18253
18254 2006-03-03  Simon Josefsson  <jas@extundo.com>
18255
18256         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
18257
18258 2006-03-03  Simon Josefsson  <jas@extundo.com>
18259
18260         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
18261         libidn and bison.
18262
18263 2006-03-03  Simon Josefsson  <jas@extundo.com>
18264
18265         * build-aux/maint.mk: Add indent target.
18266
18267 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
18268
18269         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
18270         our replacement poll.h in any case, to avoid a differing
18271         declaration from a system header.  Seen on AIX.
18272
18273 2006-03-01  Simon Josefsson  <jas@extundo.com>
18274
18275         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
18276         <kasal@ucw.cz>.
18277
18278 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
18279
18280         * modules/gettime (Depends-on): Add extensions module.
18281         * modules/nanosleep (Depends-on): Likewise.
18282         * modules/settime (Depends-on): Likewise.
18283
18284 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
18285
18286         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
18287         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
18288         pedantically.
18289         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18290         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
18291
18292         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
18293         not "==".  Reported by Ralf Wildenhues.
18294
18295 2006-03-01  Karl Berry  <karl@gnu.org>
18296
18297         * doc/Copyright/request-*: new files, synced from gnuorg.
18298
18299 2006-03-01  Karl Berry  <karl@gnu.org>
18300
18301         * config/srclist.txt (Copyright/*): new entries.
18302
18303 2006-02-28  Simon Josefsson  <jas@extundo.com>
18304
18305         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
18306
18307 2006-02-27  Simon Josefsson  <jas@extundo.com>
18308
18309         * lib/base64.h: Indent #define's.  From Jim Meyering
18310         <jim@meyering.net>.
18311
18312 2006-02-27  Jim Meyering  <jim@meyering.net>
18313
18314         Revert the change of 2006-02-24, so these files can continue
18315         to be sync'd from gettext.
18316         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
18317         of `config.h'.
18318
18319 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
18320
18321         * modules/intprops: New file.
18322         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
18323         Add intprops.
18324         * modules/getloadavg (Files): Remove lib/intprops.h.
18325         (Depends-on): Add intprops.
18326         * modules/human: Likewise.
18327         * modules/inttostr: Likewise.
18328         * modules/openat: Likewise.
18329         * modules/sig2str: Likewise.
18330         * modules/userspec: Likewise.
18331         * modules/utimecmp: Likewise.
18332         * modules/xnanosleep: Likewise.
18333         * modules/xstrtol: Likewise.
18334
18335 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
18336
18337         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
18338         * modules/lock-tests (TESTS): Use $(EXEEXT).
18339         * modules/tls-tests: Likewise.
18340         * modules/argp-tests: Likewise.
18341         (check_PROGRAMS): New var, replacing...
18342         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
18343
18344 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18345
18346         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
18347         `config.h'.
18348
18349 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
18350
18351         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
18352
18353 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18354
18355         Sync from coreutils.
18356         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
18357         gl_CHDIR_SAFER.
18358
18359 2006-02-22  Jim Meyering  <jim@meyering.net>
18360
18361         Sync from coreutils.
18362         * m4/chdir-safer.m4: New file.
18363
18364 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
18365
18366         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
18367         AT_FDCWD exceeds INT_MAX.
18368         * lib/openat.h (AT_FDCWD): Likewise.
18369
18370 2006-02-17  Eric Blake  <address@hidden>
18371
18372         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
18373
18374 2006-02-16  Simon Josefsson  <jas@extundo.com>
18375
18376         * modules/getaddrinfo (Depends-on): Add sys_socket.
18377
18378 2006-02-15  Simon Josefsson  <jas@extundo.com>
18379
18380         * build-aux/maint.mk: Add dsyntax-check rule.
18381
18382 2006-02-15  Eric Blake  <ebb9@byu.net>
18383
18384         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
18385         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
18386         'present but cannot compile' warnings on cygwin.
18387         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
18388         use ws2tcpip.h if sys/socket.h works.
18389         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
18390         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
18391
18392 2006-02-14  Simon Josefsson  <jas@extundo.com>
18393
18394         * modules/maintainer-makefile (Files): Rename.
18395
18396         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
18397         and (the local) Makefile.cfg to maint-cfg.mk.
18398
18399         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
18400         to the latter.
18401
18402         * modules/maintainer-makefile: New module.
18403
18404         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
18405         severaly stripped to make it possible to build it up from scratch
18406         with reliable tests.
18407
18408         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
18409         fixes to permit overriding the default actions when configure and
18410         makefile are not available.
18411
18412 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
18413
18414         Sync from coreutils.
18415         * modules/lstat (Depends-on): Don't depend on xalloc.
18416         (License): Change from GPL to LGPL, since this is now simply a
18417         replacement for a libc function.
18418
18419 2006-02-14  Jim Meyering  <jim@meyering.net>
18420
18421         Sync from coreutils.
18422
18423         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
18424         failure on deficient systems, and simplify gnulib lgpl dependencies.
18425         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
18426         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
18427
18428         * lib/xalloc-die.c: Remove unused definition of N_.
18429
18430 2006-02-14  Jim Meyering  <jim@meyering.net>
18431
18432         Sync from coreutils.
18433         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
18434         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
18435         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
18436         double-quote uses of that variable, to accommodate the rare case in
18437         which getmntent is available in none of the libraries checked.  This
18438         happens at least on FreeBSD 5.0.
18439
18440 2006-02-13  Simon Josefsson  <jas@extundo.com>
18441
18442         * gnulib-tool (Usage): Fix --import, from
18443         karl@freefriends.org (Karl Berry).
18444
18445 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
18446
18447         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
18448
18449 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
18450
18451         * lib/argp-namefrob.h: Restore changes accidentally lost during the
18452         "autoupdate" on 2005-12-12.
18453
18454 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
18455
18456         * modules/closeout (Depends-on): Remove atexit.
18457
18458 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
18459
18460         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
18461         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
18462
18463 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
18464
18465         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
18466         __EXTENSIONS__ if this causes compilation to fail.  Problem
18467         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
18468         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
18469
18470 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
18471
18472         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
18473         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
18474         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
18475         All uses changed.
18476
18477 2006-01-26  Simon Josefsson  <jas@extundo.com>
18478
18479         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
18480         prototype is visible on mingw32.
18481
18482         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
18483         for mingw32.
18484
18485         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
18486         mingw32).
18487
18488 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
18489
18490         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
18491         attempt to open for write; this always fails, at least on POSIX
18492         hosts.  This reinstates the 2006-01-09 change, which was
18493         inadvertently removed.
18494
18495 2006-01-26  Bruno Haible  <bruno@clisp.org>
18496
18497         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
18498         Reported by Paul Eggert.
18499
18500 2006-01-26  Bruno Haible  <bruno@clisp.org>
18501             Paul Eggert  <eggert@cs.ucla.edu>
18502
18503         * lib/stdbool_.h (_Bool)
18504         [(! (defined __cplusplus || defined __BEOS__)
18505           && !defined __GNUC__
18506           && !(defined __HP_cc || defined __xlc__
18507                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
18508                || defined __sgi))]:
18509         #define to signed char in these cases too; this simplifies
18510         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
18511         etc., separately) and makes it more conservative.
18512
18513 2006-01-25  Simon Josefsson  <jas@extundo.com>
18514
18515         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
18516         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
18517         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
18518
18519 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
18520
18521         * lib/argp-namefrob.h: Bugfix. Remove stray #
18522
18523 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
18524
18525         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
18526         so that we test the test.
18527         Check for yet another HP-UX cc bug involving *bool |= bool.
18528
18529 2006-01-25  Karl Berry  <karl@gnu.org>
18530
18531         * config/srclist.txt (vasnprintf.c): sync lost.
18532
18533 2006-01-25  Jim Meyering  <jim@meyering.net>
18534
18535         Sync from the stable (b5) branch of coreutils:
18536
18537         * lib/fts.c (fts_children): Don't let close() clobber errno from
18538         failed fchdir().
18539
18540         * lib/fts.c (fts_stat): When following a symlink-to-directory,
18541         don't necessarily interpret stat-fails+lstat-succeeds as indicating
18542         a dangling symlink.  That can also happen at least for ELOOP.
18543         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
18544         FYI, this bug predates the inclusion of fts.c in coreutils.
18545
18546         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
18547         in their own block, so pre-c99 compilers don't object.
18548
18549         Avoid the double-free (first in fts_read, second in fts_close) that
18550         would occur when an `active' directory is made inaccessible (e.g.,
18551         via chmod a-x) during a traversal.
18552         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
18553         before returning.  Reproduce this failure by
18554         mkdir -p a/b; cd a; chmod a-x . b
18555         Reported by Stavros Passas.
18556
18557 2006-01-25  Jim Meyering  <jim@meyering.net>
18558
18559         * lib/fileblocks.c: Remove more useless parentheses.
18560         * lib/readutmp.h: Likewise.
18561
18562 2006-01-25  Bruno Haible  <bruno@clisp.org>
18563
18564         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
18565         warnings.
18566         Reported by Paul Eggert.
18567
18568 2006-01-25  Bruno Haible  <bruno@clisp.org>
18569
18570         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
18571         rid of a trap command. For Solaris sh.
18572         Reported by Mark D. Baushke <mdb@gnu.org>.
18573
18574 2006-01-24  Simon Josefsson  <jas@extundo.com>
18575
18576         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
18577         Bruno.
18578
18579 2006-01-24  Karl Berry  <karl@gnu.org>
18580
18581         * config/srclist.txt (argp-namefrob.h): sync lost.
18582
18583 2006-01-24  Jim Meyering  <jim@meyering.net>
18584
18585         * modules/openat (Files): Add lib/intprops.h.
18586         From Mark D. Baushke.
18587
18588 2006-01-24  Jim Meyering  <jim@meyering.net>
18589
18590         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
18591         Reported by Mark D. Baushke.
18592
18593 2006-01-24  Jim Meyering  <jim@meyering.net>
18594
18595         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
18596
18597 2006-01-24  Bruno Haible  <bruno@clisp.org>
18598
18599         * modules/strnlen (Maintainer): Change from glibc to all.
18600
18601 2006-01-24  Bruno Haible  <bruno@clisp.org>
18602
18603         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
18604         Patch by Paul Eggert.
18605
18606 2006-01-24  Bruno Haible  <bruno@clisp.org>
18607
18608         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
18609         already has it.
18610         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
18611         2005-11-26.
18612
18613         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
18614         'signed char' to avoid problems with the built-in _Bool type.
18615         Reported by Paul Eggert on 2005-11-26.
18616
18617 2006-01-24  Bruno Haible  <bruno@clisp.org>
18618
18619         * gnulib-tool (func_import): Avoid constructing complicated sed
18620         expressions inside backquote.
18621         Report and solution by Mark D. Baushke <mdb@gnu.org>.
18622
18623 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
18624
18625         These changes imported from libc.
18626         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
18627         test and two separate function calls.
18628         * lib/strndup.c (__strndup): Add libc_hidden_def.
18629
18630 2006-01-23  Simon Josefsson  <jas@extundo.com>
18631
18632         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
18633         Remove the test_*_SOURCES variable: automake infers it by default.
18634         * modules/tls-tests: Likewise.
18635
18636 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
18637
18638         Work around porting bugs reported by Dieter in
18639         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
18640         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
18641         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
18642         Include "getopt.h" first, to check interface.
18643         (getenv): Declare only if defined HAVE_DECL_GETENV &&
18644         !HAVE_DECL_GETENV.
18645         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
18646         (__strndup): Revert to K&R-style function dfns, the glibc style.
18647         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
18648         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
18649         Include strnlen.h first, to get prototype properly.
18650         (strnlen): Renamed from __strnlen.
18651         Remove weak alias.
18652
18653 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
18654
18655         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
18656
18657 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
18658
18659         * config/srclist.txt: Adjust to reflect glibc reorganization.
18660         This affects only comments.
18661
18662 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
18663
18664          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
18665          Reported by Bruce Korb <bkorb@gnu.org>.
18666
18667 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
18668
18669         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
18670         to pacify gcc -Wswitch-default.
18671
18672 2006-01-22  Bruno Haible  <bruno@clisp.org>
18673
18674         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
18675         temporary buffer for sprintf, take into account the precision also
18676         for 'd', 'i', 'u', 'o', 'x', 'X'.
18677
18678 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
18679
18680         * modules/argp-tests: New module
18681         * tests/test-argp.c: New file
18682         * tests/test-argp-2.sh: New file
18683
18684 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
18685
18686         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
18687         (__argp_base_name): Removed
18688         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
18689         typo.
18690         (__argp_base_name): Provide macro definition or extern declaration
18691         depending on the configuration
18692
18693 2006-01-20  Simon Josefsson  <jas@extundo.com>
18694
18695         * modules/inet_ntop (Depends-on): Depend on sys_socket.
18696
18697 2006-01-20  Simon Josefsson  <jas@extundo.com>
18698
18699         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
18700
18701 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
18702
18703         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
18704         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
18705         Suggested by Bruno Haible.
18706
18707 2006-01-20  Karl Berry  <karl@gnu.org>
18708
18709         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
18710         until changes propagate, I guess.
18711
18712 2006-01-19  Simon Josefsson  <jas@extundo.com>
18713
18714         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
18715
18716 2006-01-19  Simon Josefsson  <jas@extundo.com>
18717
18718         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
18719
18720 2006-01-19  Simon Josefsson  <jas@extundo.com>
18721
18722         * gnulib-tool: Set check_PROGRAMS.
18723
18724         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
18725         modules/des-tests, modules/gc-arcfour-tests,
18726         modules/gc-arctwo-tests, modules/gc-des-tests,
18727         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
18728         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
18729         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
18730         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
18731         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
18732         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
18733         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
18734         test_*_SOURCES.
18735
18736 2006-01-18  Simon Josefsson  <jas@extundo.com>
18737
18738         * modules/socklen (Depends-on): Depend on sys_socket.
18739
18740 2006-01-18  Simon Josefsson  <jas@extundo.com>
18741
18742         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
18743         modules/des-tests, modules/gc-arcfour-tests,
18744         modules/gc-arctwo-tests, modules/gc-des-tests,
18745         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
18746         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
18747         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
18748         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
18749         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
18750         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
18751         $(EXEEXT) to automake TESTS variable, for mingw32.
18752
18753 2006-01-17  Simon Josefsson  <jas@extundo.com>
18754
18755         * modules/socklen (Include): Need sys/socket.h.
18756
18757 2006-01-17  Bruno Haible  <bruno@clisp.org>
18758
18759         * modules/ssize_t (Include): Add <sys/types.h>.
18760
18761 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
18762
18763         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
18764         it's not portable and it doesn't work with cross-compiles.
18765         Problem reported by Bruno Haible.  Fix missing-$ typo in
18766         'test "gl_cv_ignore_unused_libraries" ...' that prevented
18767         -zignore from being used with Sun's C compiler.
18768
18769 2006-01-12  Simon Josefsson  <jas@extundo.com>
18770
18771         * lib/base64.c: Fix warning, reported by Bruno Haible
18772         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
18773
18774 2006-01-12  Bruno Haible  <bruno@clisp.org>
18775
18776         * modules/ldd: New file.
18777         * build-aux/ldd.sh.in: New file.
18778         * MODULES.html.sh (Support for building libraries and executables): Add
18779         ldd.
18780
18781 2006-01-12  Bruno Haible  <bruno@clisp.org>
18782
18783         * m4/ldd.m4: New file.
18784
18785 2006-01-12  Bruno Haible  <bruno@clisp.org>
18786
18787         * gnulib-tool (func_import, func_create_testdir): Don't go into an
18788         endless loop while replacing $auxdir with build-aux.
18789
18790 2006-01-11  Simon Josefsson  <jas@extundo.com>
18791
18792         * lib/stdint_.h (SIZE_MAX): Add missing (.
18793
18794 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
18795
18796         Sync from coreutils.
18797         * lib/md5.c: Fix commentary typos.
18798         (alignof, UNALIGNED_P): No need for a GCC-specific version.
18799         * lib/md5.h (__attribute__): Remove; unused.
18800         * lib/sha1.c: Fix commentary to match md5 better.
18801         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
18802         so that we don't need to worry about alignment.  All uses changed.
18803         This merges the 2005-10-28 md5 change into sha1.
18804
18805 2006-01-11  Jim Meyering  <jim@meyering.net>
18806
18807         Sync from coreutils.
18808         * lib/md5.c (OP): Fix spacing.
18809
18810 2006-01-11  Bruno Haible  <bruno@clisp.org>
18811
18812         Ensure automatic ordering between gl_LOCK and gl_ARGP.
18813         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
18814         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
18815
18816 2006-01-11  Bruno Haible  <bruno@clisp.org>
18817
18818         Ensure automatic ordering between gl_LOCK and gl_ARGP.
18819         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
18820         the "early" section as well.
18821
18822 2006-01-11  Bruno Haible  <bruno@clisp.org>
18823
18824         Avoid "ar: no archive members specified" error on MacOS X.
18825         * gnulib-tool (func_modules_add_dummy): New function.
18826         (func_import, func_create_testdir): Invoke it.
18827
18828 2006-01-11  Bruno Haible  <bruno@clisp.org>
18829
18830         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
18831         with $auxdir in AC_CONFIG_FILES statements.
18832
18833 2006-01-11  Bruno Haible  <bruno@clisp.org>
18834
18835         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18836         Initialize also noinst_HEADERS to empty.
18837
18838 2006-01-11  Bruno Haible  <bruno@clisp.org>
18839
18840         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
18841         variables.
18842         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
18843         autoreconf.
18844
18845 2006-01-11  Bruno Haible  <bruno@clisp.org>
18846
18847         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
18848         overridable by the user.
18849         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18850
18851 2006-01-10  Simon Josefsson  <jas@extundo.com>
18852
18853         * modules/sys_socket: New file.
18854
18855 2006-01-10  Simon Josefsson  <jas@extundo.com>
18856
18857         * m4/sys_socket_h.m4: New file.
18858
18859 2006-01-10  Simon Josefsson  <jas@extundo.com>
18860
18861         * lib/socket_.h: New file.
18862
18863 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
18864
18865         * modules/readutmp (Maintainer): Add myself.
18866
18867 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
18868
18869         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
18870         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
18871         People who are still concerned with buggy memcmp implementations
18872         can invoke gl_FUNC_MEMCMP themselves.
18873
18874 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
18875
18876         * lib/regex_internal.h (BITSET_WORD_BITS):
18877         Work around a bug in 64-bit PGC (before version 6.1-2), where the
18878         preprocessor mishandles large unsigned values as if they were signed.
18879         Problem reported by Claudio Fontana in
18880         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
18881
18882 2006-01-10  Jim Meyering  <jim@meyering.net>
18883
18884         Avoid the double-free (first in fts_read, second in fts_close) that
18885         would occur when an `active' directory is made inaccessible (e.g.,
18886         via chmod a-x) during a traversal.
18887         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
18888         before returning.  Reproduce this failure by
18889         mkdir -p a/b; cd a; chmod a-x . b
18890         Reported by Stavros Passas.
18891
18892         Sync from coreutils.
18893         * lib/sha1.c: Tweak grammar in a comment.
18894
18895 2006-01-10  Jim Meyering  <jim@meyering.net>
18896
18897         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
18898         Patch by Joerg Sonnenberger.
18899
18900 2006-01-10  Bruno Haible  <bruno@clisp.org>
18901
18902         * modules/readutmp: Depend on module free.
18903         * modules/strtok_r: Depend on module restrict.
18904
18905 2006-01-10  Bruno Haible  <bruno@clisp.org>
18906
18907         * modules/gettext (configure.ac): Add an invocation of
18908         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
18909
18910 2006-01-10  Bruno Haible  <bruno@clisp.org>
18911
18912         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
18913         Reported by Werner Lemberg <wl@gnu.org>.
18914
18915 2006-01-10  Bruno Haible  <bruno@clisp.org>
18916
18917         * lib/localcharset.c: Update from GNU gettext.
18918
18919 2006-01-10  Bruno Haible  <bruno@clisp.org>
18920
18921         * lib/argp.h (__const): Remove macro. Use const instead.
18922         * lib/argp-fmtstream.h (__const): Likewise.
18923         * lib/glob_.h (__const): Remove macro.
18924         * lib/glob-libc.h: Use const instead of __const.
18925
18926 2006-01-10  Bruno Haible  <bruno@clisp.org>
18927
18928         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
18929         variable.
18930         Needed to avoid an automake error regarding the 'gettext' module.
18931
18932 2006-01-09  Simon Josefsson  <jas@extundo.com>
18933
18934         * modules/inet_ntop (Depends-on): Add restrict.
18935
18936 2006-01-09  Simon Josefsson  <jas@extundo.com>
18937
18938         * modules/gc-rijndael-tests (License): Put under LGPL.
18939
18940         * modules/gc-des-tests (License): Likewise.
18941
18942         * modules/gc-arcfour-tests (License): Likewise.
18943
18944         * modules/gc-arctwo-tests (License): Likewise.
18945
18946         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
18947
18948         * modules/gc-hmac-sha1-tests (Files): Likewise.
18949
18950         * modules/gc-hmac-md5-tests (License): Likewise.
18951
18952         * modules/gc-sha1-tests (License): Likewise.
18953
18954         * modules/gc-md5-tests (License): Likewise.
18955
18956         * modules/gc-md4-tests (License): Likewise.
18957
18958         * modules/gc-md2-tests (License): Likewise.
18959
18960         * modules/gc-tests (License): Likewise.
18961
18962         * modules/des-tests (License): Likewise.
18963
18964         * modules/md4-tests (License): Likewise.
18965
18966         * modules/md2-tests (License): Likewise.
18967
18968 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
18969
18970         Sync from coreutils:
18971
18972         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
18973         * modules/lib-ignore: New file.
18974         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
18975         chdir-safer.m4, lchmod.m4.
18976         * modules/openat: Add mkdirat.c, openat-priv.h.
18977
18978 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
18979
18980         Sync from coreutils.
18981         * m4/lib-ignore.m4: New file.
18982         * m4/lchmod.m4: New file.
18983
18984 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
18985
18986         Sync from coreutils.
18987         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
18988         for write access: POSIX says that must fail.
18989         * lib/fts.c (diropen): Likewise.
18990         * lib/save-cwd.c (save_cwd): Likewise.
18991         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
18992         well, for minor improvements on hosts that lack O_DIRECTORY.
18993         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
18994         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
18995         Fall back on chown if open failed with EACCES.
18996
18997         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
18998         Report an error at compile-time if only a 1-second nominal clock
18999         resolution is found.
19000
19001         * lib/lchmod.h: New file.
19002         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
19003         (make_dir_parents): Use lchown rather than chown, and
19004         lchmod rather than chmod.
19005
19006         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
19007         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
19008         "proc" reported by n0dalus.
19009
19010         * lib/mountlist.c: Include <limits.h>.
19011         (dev_from_mount_options)
19012         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
19013         New function.  It no longer assumes "dev=" has the System V meaning
19014         on Linux (since it doesn't).  It also parses "dev=" more carefully.
19015         (read_file_system_list)
19016         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
19017         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
19018         dev= in that case.
19019
19020         * lib/posixtm.h (PDS_PRE_2000): New macro.
19021         * lib/posixtm.c (year): Arg is now syntax_bits rather than
19022         allow_century.  All usages changed.  Reject dates outside the range
19023         1969-1999 if PDS_PRE_2000 is used.
19024
19025 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
19026
19027         Sync from coreutils.
19028         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
19029         (Time of day items): Mention the possibility of leap seconds.
19030         Problem reported by Dr. David Alan Gilbert.
19031
19032 2006-01-09  Jim Meyering  <jim@meyering.net>
19033
19034         Sync from coreutils.
19035
19036         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
19037
19038         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
19039
19040         * lib/modechange.c (mode_compile): Reject an invalid mode string
19041         that starts with an octal digit.  From Andreas Gruenbacher.
19042
19043         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
19044         and dup to open_safer and dup_safer, respectively.
19045         (openat_permissive): Fix typo in comment.
19046
19047         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
19048         "gettext.h"; either no longer needed or are guaranteed by openat.h.
19049         (_): Remove; no longer needed.
19050         (openat): Renamed from rpl_openat; no need for rpl_openat
19051         since openat.h renames openat for us.
19052         Replace most of the body with a call to openat_permissive,
19053         to avoid duplicate code.
19054         Port to (probably hypothetical) environments were mode_t is
19055         wider than int.
19056         (openat_permissive): Require mode arg, so that we can check
19057         types better.  Put it just after flags.  Change cwd failure
19058         indicator from pointer-to-bool to pointer-to-errno-value.
19059         All callers changed.
19060         Invoke openat_save_fail and/or openat_restore_fail if
19061         cwd_errno is null, so that openat can call us.
19062         (openat_permissive, fdopendir, fstatat, unlinkat):
19063         Simplify errno handling to avoid some duplicate code,
19064         as it's OK to set errno on success.
19065         * lib/openat.h: Revamp code so that function macros depend on
19066         __OPENAT_PREFIX only, not also on AT_FDCWD.
19067         (openat_ro): Remove.  Caller changed to use openat_permissive.
19068         (openat_permissive): Now a macro, if not a function.
19069         (openat_restore_fail, openat_save_fail): Now always functions,
19070         since mkdirat needs them even if __OPENAT_PREFIX is defined.
19071
19072         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
19073         and openat.c.
19074         * lib/mkdirat.c: Include openat-priv.h.
19075         Remove definitions of macros defined therein.
19076         * lib/openat.c: Likewise.
19077
19078         * lib/mkdirat.c (mkdirat): New file and function.
19079         * lib/openat.h (mkdirat): Declare.
19080
19081         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
19082
19083         * lib/openat.h (openat_permissive): Declare.
19084         (openat_ro): Define.
19085
19086         * lib/openat.c (EXPECTED_ERRNO): New macro.
19087         (openat_permissive): New function -- used in remove.c rewrite.
19088         (all functions): Set errno just before returning, only if there
19089         was an actual failure.
19090         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
19091
19092         Emulate openat-family functions using Linux's procfs, if possible.
19093         Idea and some code based on Ulrich Drepper's glibc changes.
19094
19095         * lib/openat.c: (BUILD_PROC_NAME): New macro.
19096         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
19097         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
19098         before falling back on save_cwd and restore_cwd.
19099         (fdopendir, fstatat, unlinkat): Likewise.
19100
19101         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
19102         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
19103
19104         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
19105         as second argument to va_arg.  Otherwise, some versions of gcc
19106         warn that `if this code is reached, the program will abort'.
19107
19108 2006-01-09  Jim Meyering  <jim@meyering.net>
19109
19110         Sync from coreutils.
19111         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
19112         Require openat-priv.h.
19113
19114 2006-01-09  Bruno Haible  <bruno@clisp.org>
19115
19116         * modules/strnlen (Include): Use strnlen.h.
19117
19118 2006-01-09  Bruno Haible  <bruno@clisp.org>
19119
19120         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
19121
19122 2006-01-09  Bruno Haible  <bruno@clisp.org>
19123
19124         * lib/sysexit_.h (EX_OK): New macro.
19125         Suggested by Martin Lambers <marlam@marlam.de>.
19126
19127 2006-01-09  Bruno Haible  <bruno@clisp.org>
19128
19129         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
19130         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
19131
19132 2006-01-09  Bruno Haible  <bruno@clisp.org>
19133
19134         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
19135         numbers.
19136
19137 2006-01-09  Bruno Haible  <bruno@clisp.org>
19138
19139         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
19140         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
19141         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
19142         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
19143
19144 2006-01-09  Bruno Haible  <bruno@clisp.org>
19145
19146         * build-aux/javacomp.sh.in: New file, moved from lib/.
19147         * modules/javacomp-script (Files): Update.
19148         (configure.ac): Add AC_CONFIG_FILES invocation.
19149         (EXTRA_DIST): Remove variable.
19150
19151         * build-aux/javaexec.sh.in: New file, moved from lib/.
19152         * modules/javaexec (Files): Update.
19153         (configure.ac): Add AC_CONFIG_FILES invocation.
19154         (EXTRA_DIST): Remove javaexec.sh.in.
19155
19156         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
19157         * modules/csharpcomp-script (Files): Update.
19158         (configure.ac): Add AC_CONFIG_FILES invocation.
19159         (EXTRA_DIST): Remove variable.
19160
19161         * build-aux/csharpexec.sh.in: New file, moved from lib/.
19162         * modules/csharpexec (Files): Update.
19163         (configure.ac): Add AC_CONFIG_FILES invocation.
19164         (EXTRA_DIST): Remove csharpexec.sh.in.
19165
19166 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
19167
19168         Sync from coreutils.
19169
19170         Add POSIX ACL support
19171         * lib/acl.h (copy_acl, set_acl): Add declarations.
19172         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
19173         systems other than Linux.
19174         (chmod_or_fchmod): New function: use fchmod when possible,
19175         and chmod otherwise.
19176         (file_has_acl): Add a POSIX ACL implementation, with a
19177         Linux-specific subcase.
19178         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
19179         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
19180         acls are unsupported.
19181         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
19182         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
19183         are unsupported.
19184
19185 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
19186
19187         Sync from coreutils.
19188         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
19189
19190 2006-01-07  Bruno Haible  <bruno@clisp.org>
19191
19192         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
19193         gl_EARLY.
19194
19195 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
19196
19197         * lib/strftime.c (tzname): Don't declare if it is already #defined.
19198         Problem reported for Mingw by Mark Junker.
19199
19200 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
19201
19202         * README: Gnulib normally doesn't generate a tarball.
19203
19204 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
19205
19206         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
19207         long int, not int, for nanosecond counts, so that people who are
19208         used to POSIX struct timespec won't be surprised.  Reported by Jim
19209         Meyering.
19210
19211 2005-12-28  Bruno Haible  <bruno@clisp.org>
19212
19213         * build-aux/config.rpath: Update from GNU gettext.
19214
19215 2005-12-16  Jim Meyering  <jim@meyering.net>
19216
19217         * modules/fprintftime: New module.
19218         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
19219
19220 2005-12-16  Jim Meyering  <jim@meyering.net>
19221
19222         * m4/fprintftime.m4: New file.
19223
19224 2005-12-16  Jim Meyering  <jim@meyering.net>
19225
19226         * lib/fprintftime.c, lib/fprintftime.h: New files.
19227
19228 2005-12-15  Simon Josefsson  <jas@extundo.com>
19229
19230         * modules/socklen (configure.ac): Fix M4 macro name, to align with
19231         new m4/socklen.m4.
19232
19233 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
19234
19235         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
19236         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
19237
19238 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
19239
19240         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
19241         * lib/argp-help.c (fill_in_uparams): Check if the constructed
19242         struct uparams is valid. Fall back to the default values if it is
19243         not.
19244
19245 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
19246
19247         * modules/argp (Files): Add argp-pin.c
19248         (Depends-on): dirname
19249         (lib_SOURCES): Add argp-pin.c
19250
19251 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
19252
19253         * m4/argp.m4:  Check if program_invocation_name and
19254         program_invocation_short_name are declared and define appropriate
19255         macros if they are not.
19256
19257 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
19258
19259         * lib/argp-help.c (__argp_base_name): New function
19260         (__argp_short_program_name): Rewrite using __argp_base_name
19261         * lib/argp-namefrob.h: Define program_invocation_name and
19262         program_invocation_short_name if requested
19263         (__argp_base_name): Add prototype
19264         * lib/argp-parse.c (argp_def): Use gettext wrappers
19265         (argp_default_parser): Use __argp_base_name
19266         * lib/argp-pin.c: New file. Defines program_invocation_name and
19267         program_invocation_short_name on systems that lack them.
19268
19269 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
19270
19271         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
19272         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
19273         porting problem reported by Georg Schwarz in
19274         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
19275
19276 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
19277
19278         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
19279         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
19280         porting problem reported by Georg Schwarz in
19281         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
19282
19283 2005-12-05  Bruno Haible  <bruno@clisp.org>
19284
19285         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
19286         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
19287         Reported by Mark Junker <mjscod@gmx.de>.
19288
19289 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
19290
19291         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
19292         Use implementation from Albert Chin, with some
19293         comments/corrections by Stepan Kasal and myself.
19294
19295 2005-12-02  Bruno Haible  <bruno@clisp.org>
19296
19297         * gnulib-tool (func_import): Accept GPLed build tool modules when
19298         --lgpl is given.
19299         * modules/csharpcomp-script: New file.
19300         * modules/csharpcomp: Depend on it.
19301         * modules/javacomp-script: New file.
19302         * modules/javacomp: Depend on it.
19303         Suggested by Simon Josefsson.
19304
19305 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
19306
19307         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
19308         statement, to work around an HP-UX 10.20 compiler bug reported by
19309         Peter O'Gorman.
19310
19311 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
19312
19313         * modules/savedir (Depends-on): Add openat.
19314
19315 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
19316
19317         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
19318         (uintmax_t) [defined uintmax_t]: Do not declare.
19319         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
19320         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
19321         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
19322         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
19323         sake of portability to weird hosts that C allows (though we don't
19324         know of any practical examples).
19325
19326         * lib/savedir.h (fdsavedir): New decl.
19327         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
19328         contains most of the former guts of savedir.
19329         (savedir): Use savedirstream.
19330         Include "openat.h".
19331
19332 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
19333
19334         * modules/obstack (Files): Add m4/ulonglong.m4.
19335         Problem reported by Davide Angelocola.
19336
19337 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
19338
19339         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
19340         coreutils no longer futzes with rounding modes.
19341
19342 2005-11-14  Jim Meyering  <jim@meyering.net>
19343
19344         * lib/mkstemp-safer.c: Include <config.h>, required for possible
19345         replacement of mkstemp.
19346
19347 2005-11-10  Simon Josefsson  <jas@extundo.com>
19348
19349         * lib/readline.c: Remove EOL.
19350
19351 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
19352
19353         * modules/gethrxtime (Depends-on): Add gettime.
19354
19355 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
19356
19357         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
19358         or gettimeofday; no longer needed.
19359
19360 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
19361
19362         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
19363         time business.
19364         (gethrxtime) [! (HAVE_NANOUPTIME
19365         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
19366         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
19367         our own approximation.
19368
19369 2005-11-08  Eric Blake  <ebb9@byu.net>
19370
19371         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
19372
19373 2005-11-08  Eric Blake  <ebb9@byu.net>
19374
19375         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
19376
19377 2005-11-04  Bruno Haible  <bruno@clisp.org>
19378
19379         * gnulib-tool: Implement --update mode.
19380
19381 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
19382
19383         Fix porting problem reported by Theodoros V. Kalamatianos.
19384         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
19385         Don't assume that futimes failing means we must fail.
19386
19387 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
19388
19389         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
19390         variables to suggest the intended function of the PATH_MAX check.
19391
19392 2005-10-30  Kean Johnston  <jkj@sco.com>
19393
19394         Trivial changes to support SCO systems.
19395         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
19396         as PATH_MAX.
19397         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
19398         where __ptr is null when no I/O is pending.
19399
19400 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
19401
19402         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
19403         leave errno alone.  Problem reported by Dmitry V. Levin.
19404
19405 2005-10-28  Simon Josefsson  <jas@extundo.com>
19406
19407         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
19408         Test more.
19409
19410         * tests/test-gc-md2.c, tests/test-md2.c: New files.
19411
19412         * modules/md2, modules/md2-tests: New files.
19413
19414 2005-10-28  Simon Josefsson  <jas@extundo.com>
19415
19416         * m4/inet_ntop.m4: More tests.
19417
19418         * m4/gc-md2.m4, md2.m4: New file.
19419
19420 2005-10-28  Simon Josefsson  <jas@extundo.com>
19421
19422         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
19423         "restrict" keywords, as per POSIX.  Protect the function
19424         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
19425         Don't use K&R prototypes.  Check the sprintf return values.
19426         Re-define EAFNOSUPPORT if not present.  Indent.
19427
19428         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
19429         suggested by Bruno Haible <bruno@clisp.org>.
19430
19431         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
19432
19433         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
19434
19435         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
19436         libgcrypt).
19437
19438         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
19439
19440         * lib/md2.h, lib/md2.c: New files.
19441
19442 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
19443
19444         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
19445         errno alone.  Problem reported by Frederic Jolliton.
19446
19447 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
19448
19449         * modules/verify (License): Change from GPL to LGPL.  This is a
19450         tiny module and there are apparently near-equivalents that are
19451         under the BSD license.
19452
19453 2005-10-24  Simon Josefsson  <jas@extundo.com>
19454
19455         * modules/sha1: Relicense to LGPL.
19456
19457 2005-10-24  Simon Josefsson  <jas@extundo.com>
19458
19459         * lib/md4.h: Shrink buffer size, now that we changed the type.
19460
19461 2005-10-23  Simon Josefsson  <jas@extundo.com>
19462
19463         * gnulib-tool (func_import): Fix --tests-base.
19464
19465 2005-10-22  Simon Josefsson  <jas@extundo.com>
19466
19467         * modules/arcfour (Depends-on): Need stdint.
19468
19469 2005-10-22  Simon Josefsson  <jas@extundo.com>
19470
19471         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
19472         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
19473
19474 2005-10-22  Simon Josefsson  <jas@extundo.com>
19475
19476         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
19477         suggested by Bruno Haible <bruno@clisp.org>.
19478
19479 2005-10-22  Simon Josefsson  <jas@extundo.com>
19480
19481         * lib/crc.h: Include stddef.h, for size_t.
19482
19483 2005-10-22  Simon Josefsson  <jas@extundo.com>
19484
19485         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
19486         arcfour_context struct (simplify test vector testing in GNU
19487         Shishi).
19488
19489 2005-10-21  Simon Josefsson  <jas@extundo.com>
19490
19491         * modules/des, modules/des-tests: New files.
19492
19493         * modules/gc-des, modules/gc-des-tests: New files.
19494
19495         * tests/test-des.c, tests/test-gc-des.c: New file.
19496
19497 2005-10-21  Simon Josefsson  <jas@extundo.com>
19498
19499         * modules/arctwo, modules/arctwo-tests: New files.
19500
19501         * tests/test-arctwo.c: New file.
19502
19503         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
19504
19505         * tests/test-gc-arctwo.c: New file.
19506
19507 2005-10-21  Simon Josefsson  <jas@extundo.com>
19508
19509         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
19510         Bruno Haible <bruno@clisp.org>.
19511
19512         * m4/gc-des.m4: New file.
19513
19514 2005-10-21  Simon Josefsson  <jas@extundo.com>
19515
19516         * m4/arctwo.m4: New file.
19517
19518         * m4/gc-arctwo.m4: New file.
19519
19520 2005-10-21  Simon Josefsson  <jas@extundo.com>
19521
19522         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
19523         block.
19524
19525 2005-10-21  Simon Josefsson  <jas@extundo.com>
19526
19527         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
19528         <bruno@clisp.org>.
19529
19530         * lib/hmac-sha1.c (hmac_sha1): Likewise.
19531
19532         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
19533         Bruno Haible <bruno@clisp.org>.
19534
19535         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
19536         <bruno@clisp.org>.
19537
19538 2005-10-21  Simon Josefsson  <jas@extundo.com>
19539
19540         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
19541
19542 2005-10-21  Simon Josefsson  <jas@extundo.com>
19543
19544         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
19545
19546 2005-10-21  Simon Josefsson  <jas@extundo.com>
19547
19548         * lib/des.h, lib/des.c: New files.
19549
19550         * lib/gc-gnulib.c: Support DES.c
19551
19552 2005-10-21  Simon Josefsson  <jas@extundo.com>
19553
19554         * lib/arctwo.h, lib/arctwo.c: New files.
19555
19556         * lib/gc-gnulib.c: Support ARCTWO.
19557
19558 2005-10-21  Simon Josefsson  <jas@extundo.com>
19559
19560         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
19561         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19562
19563 2005-10-21  Simon Josefsson  <jas@extundo.com>
19564
19565         * gnulib-tool (func_import, func_create_testdir): Define automake
19566         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
19567         Makefile.am snippet),
19568         suggested by Bruno Haible <bruno@clisp.org>.
19569
19570         * modules/gc (Makefile.am): Use it.
19571
19572 2005-10-21  Bruno Haible  <bruno@clisp.org>
19573
19574         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
19575         patch.
19576
19577 2005-10-19  Simon Josefsson  <jas@extundo.com>
19578
19579         * tests/test-gc-rijndael.c: New file.
19580
19581         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
19582
19583 2005-10-19  Simon Josefsson  <jas@extundo.com>
19584
19585         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
19586         interface too.
19587
19588 2005-10-19  Simon Josefsson  <jas@extundo.com>
19589
19590         * tests/test-gc-arcfour.c: New file.
19591
19592         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
19593
19594 2005-10-19  Simon Josefsson  <jas@extundo.com>
19595
19596         * modules/gc-md4, modules/gc-md4-tests: New file.
19597
19598         * tests/test-gc-md4.c: New file.
19599
19600 2005-10-19  Simon Josefsson  <jas@extundo.com>
19601
19602         * m4/gc-md4.m4: New file.
19603
19604 2005-10-19  Simon Josefsson  <jas@extundo.com>
19605
19606         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
19607         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
19608         <kasal@ucw.cz>.
19609
19610 2005-10-19  Simon Josefsson  <jas@extundo.com>
19611
19612         * m4/gc-arcfour.m4: New file.
19613
19614         * m4/gc-rijndael.m4: New file.
19615
19616 2005-10-19  Simon Josefsson  <jas@extundo.com>
19617
19618         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
19619
19620 2005-10-19  Simon Josefsson  <jas@extundo.com>
19621
19622         * lib/gc-gnulib.c: Support ARCFOUR.
19623
19624 2005-10-19  Simon Josefsson  <jas@extundo.com>
19625
19626         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
19627         support.
19628
19629         * lib/gc.h: Add ECB enum type.
19630
19631         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
19632
19633 2005-10-18  Simon Josefsson  <jas@extundo.com>
19634
19635         * tests/test-md5.c: New file.
19636
19637         * modules/md5-tests: New file.
19638
19639 2005-10-18  Simon Josefsson  <jas@extundo.com>
19640
19641         * tests/test-md4.c: New file.
19642
19643         * modules/md4, modules/md4-tests: New files.
19644
19645 2005-10-18  Simon Josefsson  <jas@extundo.com>
19646
19647         * m4/md4.m4: New file.
19648
19649 2005-10-18  Simon Josefsson  <jas@extundo.com>
19650
19651         * lib/md4.h, lib/md4.c: New files, based on md5.?.
19652
19653 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
19654
19655         * gnulib-tool (func_create_testdir): Omit the second check whether
19656         BUILT_SOURCES in nonempty.
19657
19658 2005-10-17  Simon Josefsson  <jas@extundo.com>
19659
19660         * tests/test-rijndael.c: New file.
19661
19662 2005-10-17  Simon Josefsson  <jas@extundo.com>
19663
19664         * modules/sha1: Depend on stdint instead of md5.
19665
19666         * modules/md5: Depend on stdint, remove uint32_t.
19667
19668 2005-10-17  Simon Josefsson  <jas@extundo.com>
19669
19670         * modules/gc-sha1-tests: New file.
19671
19672         * tests/test-gc-sha1.c: New file.
19673
19674 2005-10-17  Simon Josefsson  <jas@extundo.com>
19675
19676         * m4/md5.m4: Remove call to uint32_t.m4.
19677
19678 2005-10-17  Simon Josefsson  <jas@extundo.com>
19679
19680         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
19681
19682         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
19683         md5.h.
19684
19685         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
19686
19687         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
19688
19689 2005-10-17  Simon Josefsson  <jas@extundo.com>
19690
19691         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
19692
19693 2005-10-17  Simon Josefsson  <jas@extundo.com>
19694
19695         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
19696
19697 2005-10-17  Simon Josefsson  <jas@extundo.com>
19698
19699         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
19700
19701         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
19702
19703 2005-10-17  Bruno Haible  <bruno@clisp.org>
19704
19705         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
19706         that it can also be used in a test.
19707
19708 2005-10-16  Bruno Haible  <bruno@clisp.org>
19709
19710         * gnulib-tool (func_emit_tests_Makefile_am): Also define
19711         TESTS_ENVIRONMENT, so that individual tests can augment it.
19712
19713         * gnulib-tool (func_create_testdir): Use an intermediate target for
19714         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
19715         macros, like $(ALLOCA_H), which cannot be passed through the command
19716         line.
19717
19718 2005-10-15  Simon Josefsson  <jas@extundo.com>
19719
19720         * modules/rijndael-tests: New file.
19721
19722         * modules/rijndael: New file.
19723
19724 2005-10-15  Simon Josefsson  <jas@extundo.com>
19725
19726         * m4/rijndael.m4: New file.
19727
19728 2005-10-15  Simon Josefsson  <jas@extundo.com>
19729
19730         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
19731
19732         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
19733
19734 2005-10-14  Simon Josefsson  <jas@extundo.com>
19735
19736         * tests/test-arcfour.c: New file.
19737
19738         * modules/arcfour, modules/arcfour-tests: New files.
19739
19740 2005-10-14  Simon Josefsson  <jas@extundo.com>
19741
19742         * m4/arcfour.m4: New file.
19743
19744 2005-10-14  Simon Josefsson  <jas@extundo.com>
19745
19746         * lib/arcfour.h, lib/arcfour.c: New files.
19747
19748 2005-10-14  Roland McGrath  <roland@redhat.com>
19749
19750         Import from libc.  [BZ #1331]
19751         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
19752         macro argument.
19753         Reported by Matej Vela <vela@debian.org>.
19754
19755 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
19756
19757         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
19758         include <wchar.h>; no longer needed.
19759
19760 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
19761
19762         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
19763
19764 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
19765         and  Ulrich Drepper  <drepper@redhat.com>
19766
19767         Import from libc.
19768         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
19769         instead of inline stream orientation test and two separate
19770         function calls.  Pay no attention to USE_IN_LIBIO.
19771
19772 2005-10-13  Simon Josefsson  <jas@extundo.com>
19773
19774         * modules/gc-hmac-md5-tests: New file.
19775
19776         * tests/test-gc-hmac-sha1.c: New file.
19777
19778         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
19779
19780         * modules/gc-hmac-md5-tests: New file.
19781
19782         * tests/test-gc-md5.c: New file.
19783
19784         * modules/gc-md5-tests: New file.
19785
19786 2005-10-13  Simon Josefsson  <jas@extundo.com>
19787
19788         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
19789         Move memory allocation outside of loop.
19790
19791 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
19792
19793         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
19794         intermediate directory is in a read-only file system.  Problem
19795         reported by Eric Blake.
19796
19797 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
19798
19799         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
19800
19801 2005-10-12  Simon Josefsson  <jas@extundo.com>
19802
19803         * tests/test-hmac-sha1.c: New file.
19804
19805         * modules/hmac-sha1-tests: New file.
19806
19807         * modules/hmac-sha1: New file.
19808
19809 2005-10-12  Simon Josefsson  <jas@extundo.com>
19810
19811         * modules/gc-sha1: New file.
19812
19813 2005-10-12  Simon Josefsson  <jas@extundo.com>
19814
19815         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
19816
19817         * tests/test-gc-pbkdf2-sha1.c: New file.
19818
19819 2005-10-12  Simon Josefsson  <jas@extundo.com>
19820
19821         * modules/gc-md5, modules/gc-hmac-md5: New files.
19822
19823         * modules/gc (Files): Remove md5, memxor and hmac files.
19824
19825 2005-10-12  Simon Josefsson  <jas@extundo.com>
19826
19827         * m4/gc-pbkdf2-sha1.m4: New file.
19828
19829         * m4/gc-hmac-sha1.m4: New file.
19830
19831         * m4/gc-sha1: New file.
19832
19833         * m4/hmac-sha1.m4: New file.
19834
19835 2005-10-12  Simon Josefsson  <jas@extundo.com>
19836
19837         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
19838
19839         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
19840
19841 2005-10-12  Simon Josefsson  <jas@extundo.com>
19842
19843         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
19844         suggested by Bruno Haible <bruno@clisp.org>.
19845
19846 2005-10-12  Simon Josefsson  <jas@extundo.com>
19847
19848         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
19849
19850 2005-10-12  Simon Josefsson  <jas@extundo.com>
19851
19852         * lib/gc-pbkdf2-sha1.c: New file.
19853
19854         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
19855
19856 2005-10-12  Simon Josefsson  <jas@extundo.com>
19857
19858         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
19859
19860         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
19861
19862 2005-10-12  Simon Josefsson  <jas@extundo.com>
19863
19864         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
19865         GC_USE_HMAC_MD5, respectively.
19866
19867         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
19868         (gc_md5): Fix typo.
19869
19870         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
19871
19872         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
19873
19874         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
19875
19876 2005-10-12  Bruno Haible  <bruno@clisp.org>
19877
19878         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
19879         Reported by Stepan Kasal <kasal@ucw.cz>.
19880
19881 2005-10-11  Simon Josefsson  <jas@extundo.com>
19882
19883         * tests/test-crc.c: New file.
19884
19885         * modules/crc, modules/crc-tests: New files.
19886
19887 2005-10-11  Simon Josefsson  <jas@extundo.com>
19888
19889         * m4/crc.m4: New file.
19890
19891 2005-10-11  Simon Josefsson  <jas@extundo.com>
19892
19893         * lib/gc.h: Add gc_hash and gc_hash_buffer.
19894
19895         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
19896
19897         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
19898
19899 2005-10-11  Simon Josefsson  <jas@extundo.com>
19900
19901         * lib/crc.h, lib/crc.c: New files.
19902
19903         * lib/gc.h (gc_hash_buffer): Add doc.
19904
19905 2005-10-11  Bruno Haible  <bruno@clisp.org>
19906
19907         * modules/c-strcasestr: New file.
19908         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
19909
19910 2005-10-11  Bruno Haible  <bruno@clisp.org>
19911
19912         * modules/c-strcase: New file.
19913         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
19914
19915 2005-10-11  Bruno Haible  <bruno@clisp.org>
19916
19917         * lib/strcasecmp.c: Include limits.h.
19918         (strcasecmp): Avoid integer overflow on exotic platforms.
19919         * lib/strncasecmp.c: Include limits.h.
19920         (strncasecmp): Avoid integer overflow on exotic platforms.
19921         Reported by Paul Eggert.
19922
19923 2005-10-11  Bruno Haible  <bruno@clisp.org>
19924
19925         * lib/c-strcasestr.h: New file, from GNU gettext.
19926         * lib/c-strcasestr.c: New file, from GNU gettext.
19927
19928 2005-10-11  Bruno Haible  <bruno@clisp.org>
19929
19930         * lib/c-strcase.h: New file, from GNU gettext.
19931         * lib/c-strcasecmp.c: New file, from GNU gettext.
19932         * lib/c-strncasecmp.c: New file, from GNU gettext.
19933
19934 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
19935
19936         * modules/mempcpy (License): GPL -> LGPL.
19937         * modules/strchrnul (License): Likewise.
19938         * modules/sysexits (License): Likewise.
19939
19940 2005-10-08  Simon Josefsson  <jas@extundo.com>
19941
19942         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
19943
19944 2005-10-07  Simon Josefsson  <jas@extundo.com>
19945
19946         * m4/memxor.m4: Remove gl_C_RESTRICT call.
19947
19948 2005-10-06  Simon Josefsson  <jas@extundo.com>
19949
19950         * tests/test-hmac-md5.c: New file.
19951
19952         * modules/hmac-md5-tests: New file.
19953
19954         * modules/hmac-md5: New file.
19955
19956 2005-10-06  Simon Josefsson  <jas@extundo.com>
19957
19958         * m4/hmac-md5.m4: New file.
19959
19960         * m4/memxor.m4: Require gl_C_RESTRICT.
19961
19962 2005-10-06  Simon Josefsson  <jas@extundo.com>
19963
19964         * lib/memxor.c (memxor): Avoid casts and warnings.
19965
19966 2005-10-06  Simon Josefsson  <jas@extundo.com>
19967
19968         * lib/hmac-md5.c: New file.
19969
19970         * lib/hmac.h: New file.
19971
19972 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
19973
19974         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
19975         promotes to int, not unsigned int, to catch the AIX 5.3
19976         compiler bug.
19977
19978 2005-10-05  Simon Josefsson  <jas@extundo.com>
19979
19980         * modules/memxor: New file.
19981
19982         * modules/iconv (Files): Move config.rpath to havelib, it is used
19983         there.
19984
19985         * modules/havelib (Files): Add config.rpath.
19986
19987 2005-10-05  Simon Josefsson  <jas@extundo.com>
19988
19989         * m4/memxor.m4: New file.
19990
19991 2005-10-05  Simon Josefsson  <jas@extundo.com>
19992
19993         * lib/memxor.c (memxor): Fix compiler error.
19994
19995         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
19996         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
19997
19998         * lib/memxor.h, lib/memxor.c: New files.
19999
20000         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
20001         we assume all systems have it, suggested by Jim Meyering
20002         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
20003         any systems lack sys/socket.h; mingw32 is known to lack it, but we
20004         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
20005         same reasons.
20006
20007 2005-10-05  Simon Josefsson  <jas@extundo.com>
20008
20009         * config/srclist.txt: Add glibc bug 1423 for md5.h.
20010
20011 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
20012
20013         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
20014         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
20015         needed, since the source code now assumes these .h files.
20016
20017 2005-10-05  Derek Price  <derek@ximbiot.com>
20018
20019         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
20020
20021 2005-10-05  Bruno Haible  <bruno@clisp.org>
20022
20023         * modules/stdint (License): Change to LGPL.
20024
20025 2005-10-04  Simon Josefsson  <jas@extundo.com>
20026
20027         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
20028         D. Baushke" <mdb@gnu.org>.
20029
20030 2005-10-04  Bruno Haible  <bruno@clisp.org>
20031
20032         * lib/verify.h (verify_true): Provide alternative definition for C++.
20033
20034 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
20035
20036         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
20037         (SSIZE_MAX): New macro, if not already defined.
20038         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
20039         than 2 GiB.
20040
20041 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
20042
20043         Sync from coreutils.
20044         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
20045         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
20046         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
20047         ULLONG_MAX doesn't work with 2.7.2.1.
20048
20049 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
20050
20051         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
20052         From Ben Pfaff.
20053
20054         * modules/exclude (Depends-on): Depend on verify.
20055         * modules/strtoimax (Depends-on): Likewise.
20056         * modules/utimecmp (Depends-on): Likewise.
20057
20058 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
20059
20060         * lib/exclude.c: Include verify.h.
20061         (verify): Remove.  All callers changed to use verify.h's version.
20062         * lib/strtoimax.c: Likewise.
20063         * lib/utimecmp.c: Likewis.e
20064
20065         Sync from coreutils.
20066         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
20067         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
20068         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
20069         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
20070         bother returning ENOSYS if settimeofday or stime fails; just let
20071         them return whatever errno they want to return.
20072         * lib/utimens.c: Include unistd.h, for dup2.
20073         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
20074         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
20075
20076 2005-10-02  Jim Meyering  <jim@meyering.net>
20077
20078         Sync from coreutils.
20079         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
20080         from glibc-2.2.5 that fails for read-only files.
20081
20082 2005-10-02  Jim Meyering  <jim@meyering.net>
20083
20084         Sync from coreutils.
20085         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
20086         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
20087         `#if HAVE_CONFIG_H'.
20088         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
20089         Remove AT_FDCWD test.
20090         Do not consume the fd unless successful.
20091         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
20092         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
20093         block, so that we don't even try to compile it if settimeofday is
20094         available.  This works around a compilation failure on OSF1 V5.1,
20095         due to stime requiring a `long int*' while tv_sec is `int'.
20096
20097 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
20098
20099         Sync from coreutils.
20100         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
20101         against `yes', rather than just testing for nonempty.
20102
20103 2005-10-01  Simon Josefsson  <jas@extundo.com>
20104
20105         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
20106         and Darwin.
20107
20108         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
20109         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
20110         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
20111         freeaddrinfo and gai_strerror are declared by the POSIX headers.
20112         Check if struct addrinfo is declared.
20113
20114 2005-10-01  Simon Josefsson  <jas@extundo.com>
20115
20116         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
20117         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
20118         AI_* and EAI_* definitions.  Protect function declarations.
20119
20120 2005-10-01  Jim Meyering  <jim@meyering.net>
20121
20122         Sync from coreutils.
20123
20124         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
20125         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
20126         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
20127         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
20128         in the inet and nsl libraries.  Required on Solaris 5.7.
20129
20130 2005-10-01  Jim Meyering  <jim@meyering.net>
20131
20132         Sync from coreutils.
20133         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
20134         in the inet and nsl libraries.  Required on Solaris 5.7.
20135
20136 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
20137
20138         * lib/getdelim.c (getdelim): Remove unused variables.
20139
20140 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
20141
20142         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
20143         so that the code works even with ancient cpp.  Portability problem
20144         with GCC 2.7.2.1 reported by Thomas M.Ott.
20145
20146 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
20147
20148         * modules/regex (Depends-on): Add strcase.
20149
20150         * modules/gethostname (Licence): Change from GPL to LGPL, since
20151         gethostname.c is a trivial implementation of a standard library
20152         function.
20153         * modules/poll (License): Change from GPL to LGPL, since it's
20154         derived from LGPL code.
20155
20156 2005-09-27  Jim Meyering  <jim@meyering.net>
20157
20158         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
20159         HAVE_CONFIG_H.
20160
20161         * lib/intprops.h (signed_type_or_expr__): Define.
20162         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
20163         for unsigned types.
20164
20165 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
20166
20167         * lib/verify.h (verify_expr): Remove, replacing with:
20168         (verify_true): New macro that returns true instead of void.
20169         (verify_type__): Remove.
20170         (verify): Use verify_true rather than verify_type__.
20171
20172 2005-09-26  Bruno Haible  <bruno@clisp.org>
20173
20174         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
20175         is necessary.
20176         (lib_SOURCES): Remove mbchar.c.
20177         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
20178         (Files): Add m4/mbrtowc.m4.
20179         * modules/mbiter: Likewise.
20180         * modules/mbuiter: Likewise.
20181
20182 2005-09-26  Bruno Haible  <bruno@clisp.org>
20183
20184         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
20185         compile mbchar.c if they are not both present.
20186         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
20187         * m4/mbiter.m4 (gl_MBITER): Likewise.
20188         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
20189         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
20190         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
20191
20192 2005-09-25  Jim Meyering  <jim@meyering.net>
20193
20194         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
20195         also uses socklen_t.
20196
20197 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
20198
20199         * lib/utimens.c (ENOSYS): Define if not already defined.
20200         (futimens): Support having a null PATH if the file descriptor
20201         is nonnegative.
20202
20203         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
20204         Remove.
20205         (__attribute): Define to empty unless GCC 3.1 or later.
20206         This works around a core dump on OpenBSD 3.4, which has GCC
20207         2.95.3, which dumps core when given __attribute__(()).  It also
20208         simplifies other tests, since we really don't want to bother with
20209         worrying about which ancient version of GCC supported what.
20210         Original problem reported by Yoann Vandoorselaere, with part of
20211         the fix suggested by Derek Price.
20212
20213 2005-09-24  Jim Meyering  <jim@meyering.net>
20214
20215         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
20216         so we can once again use a positive bitfield width of 1 -- now we
20217         don't have to explain why we were using a bitfield width of 2.
20218
20219 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
20220
20221         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
20222         and similarly for the other external symbols.  Problem reported
20223         by James Gallager.
20224
20225         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
20226         bug reported by Jim Meyering.
20227
20228         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
20229         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
20230         not needed, since socklen is a prerequisite module.
20231
20232 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
20233
20234         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
20235         Problem reported by Eric Blake.
20236         (getaddrinfo): Initialize se so that it's not garbage.
20237         Redo internal storage allocation so that it doesn't make unportable
20238         assumptions about alignment.
20239         Fix a memory leak.
20240
20241         * lib/utimens.c (futimens): Use futimesat if available.
20242         Prefer it to futimes since it doesn't have the futimes bug.
20243
20244         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
20245         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
20246         Instead, declare a function that returns a pointer to an array,
20247         and use verify_type__ to declare the size of the array.
20248         Problem and germ of a solution reported by Bruno Haible.
20249         (verify_type__): Use 2, not 1, for bitfield size, to avoid
20250         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
20251
20252 2005-09-23  Jim Meyering  <jim@meyering.net>
20253
20254         Sync from coreutils.
20255         Correct build failure (socklen_t not defined) on at least
20256         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
20257         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
20258
20259 2005-09-23  Jim Meyering  <jim@meyering.net>
20260
20261         * modules/getaddrinfo (Depends-on): Add socklen.
20262
20263 2005-09-23  Bruno Haible  <bruno@clisp.org>
20264
20265         * tests/test-verify.c: New file.
20266
20267 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
20268
20269         Sync from coreutils.
20270
20271         * modules/argmatch (Depends-on): Add verify.
20272         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
20273         unistd-safer.
20274         * modules/save-cwd (Depends-on): Likewise.
20275
20276         * modules/openat (Files): Add lib/openat-die.c.
20277         (Depends-on): Remove error, exitfail.
20278         Add dirname.
20279
20280         * modules/verify: New file.
20281         * MODULES.html.sh (Diagnostics <assert.h>): New section,
20282         with "verify" module.
20283
20284 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
20285
20286         Sync from coreutils.
20287
20288         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
20289         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
20290         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
20291         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
20292         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
20293         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
20294         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
20295         Don't bother checking for string.h, stdlib.h, unistd.h.
20296         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
20297         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
20298         module's job.
20299         * m4/jm-macros.m4 (gl_MACROS): Likewise.
20300         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
20301
20302         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
20303         (gl_GETDATE): Use it.
20304
20305         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
20306
20307 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
20308
20309         Sync from coreutils.
20310
20311         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
20312         stat-time.h.
20313         * lib/argmatch.h: Include verify.h
20314         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
20315         (ARGMATCH_ASSERT): Remove; unused.
20316         * lib/canonicalize.c: Assume STDC_HEADERS.
20317         * lib/exclude.c: Include "strcase.h".
20318         * lib/regex_internal.h [!defined _LIBC]: Likewise.
20319         * lib/getusershell.c: Include stdio--.h rather than stdio.h
20320         and stdio-safer.h.
20321         (getusershell): Call fopen, not fopen_safer.
20322         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
20323         Do not include unistd-safer.h.
20324         (save_cwd): Don't call fd_safer; no longer needed
20325         now that we include fcntl--.h.
20326
20327         * lib/getdate.y (relative_time): New type.
20328         (RELATIVE_TIME_0): New constant.
20329         (parser_control): Use relative_time instead of doing it ourselves.
20330         (%union): Add new relative_time rel member.
20331         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
20332         Now typeless.
20333         (relunit, relunit_snumber): Now of type rel.
20334         (zone, rel, relunit, get_date): Adjust to above changes.
20335
20336         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
20337         Do not include unistd-safer.h.
20338         (getloadavg): Don't call fd_safer; no longer needed
20339         now that we include fcntl--.h.
20340
20341         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
20342         (make_dir_parents): Treat ENOSYS like EEXIST.
20343
20344         Improve quality of diagnostics on restore_cwd failure.
20345         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
20346         (make_dir_parents): Last arg is now int * (for errno), not bool *.
20347         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
20348         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
20349         each time through the loop.  Do not diagnose restore_cwd failure;
20350         that is the caller's job (and perhaps the caller does not care).
20351
20352         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
20353         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
20354         If the file already exists but is not a directory, don't bother
20355         to try to make its parents.
20356         Close potential file descriptor leak if we can't chdir("/") (!).
20357         Don't always return true if chdir($PWD) fails; return true only
20358         if the requested action was done successfully (except for the
20359         chdir($PWD)).
20360         Don't log final directory unless we actually made it.
20361         Refactor to avoid duplicate code to fix up permissions.
20362         Don't attempt to fix up parent permissions if chdir($PWD) fails.
20363
20364         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
20365         to make it a bit faster and (I hope) clearer.
20366         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
20367         Fix bug in formats like %2N.
20368
20369         * lib/verify.h: New file.
20370
20371 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
20372
20373         Sync from coreutils.
20374         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
20375
20376 2005-09-22  Jim Meyering  <jim@meyering.net>
20377
20378         Sync from coreutils.
20379
20380         * m4/lstat.m4 (gl_FUNC_LSTAT):
20381         Use AC_LIBSOURCES to require lstat.c and lstat.h.
20382         Remove obsolete comment.
20383         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
20384         * m4/xstrtod.m4: Likewise.
20385
20386         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
20387
20388 2005-09-22  Jim Meyering  <jim@meyering.net>
20389
20390         Sync from coreutils.
20391
20392         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
20393
20394         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
20395         the .tm_year member, since otherwise gcc-4.0 would now warn about
20396         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
20397
20398         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
20399         order to avoid an unsuppressible warning from gcc on 64-bit systems.
20400
20401         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
20402         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
20403         when run in a time zone for which daylight savings time is in effect
20404         for the starting date.
20405
20406         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
20407         stop us from restricting permissions of just-created absolute-named
20408         directories.
20409         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
20410         to restore initial working directory.
20411         * lib/mkdir-p.c (make_dir_parents): New parameter:
20412         different_working_dir, to tell caller if/when we change the working
20413         directory and are unable to return to the initial one.
20414         * lib/mkdir-p.h (make_dir_parents): Update prototype.
20415         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
20416         `return false'.  This fixes a bug introduced on 2004-07-30.
20417
20418         * lib/openat.c (fdopendir): Be sure to close the supplied
20419         file descriptor before returning.  This makes our replacement
20420         implementation a little closer to Solaris's, where fdopendir
20421         ties the file descriptor to the returned DIR* pointer.
20422         * lib/openat.c (unlinkat): New function.
20423         * lib/openat.h (unlinkat): Add prototype.
20424         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
20425         (openat_restore_fail): Rename from openat_restore_die.
20426         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
20427
20428         Provide an alternative to exiting immediately upon save_cwd or
20429         restore_cwd failure.  Now, an application can arrange e.g.,
20430         to perform a longjump in that case.
20431         * lib/openat.c: Include dirname.h.
20432         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
20433         (rpl_openat, fdopendir, fstatat): Call openat_save_die
20434         and openat_restore_die rather than calling error directly.
20435         Don't include "error.h" or "exitfail.h"; they're no longer needed.
20436
20437         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
20438         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
20439         define.
20440
20441         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
20442         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
20443                             int utc, int nanoseconds);
20444         Background:
20445         date should not have to allocate a megabyte of virtual memory to
20446         handle a format argument like +%1048575T.  When implemented with
20447         strftime, it must allocate such a buffer, use strftime to fill it
20448         in, print it, then free it.
20449         With fprintftime, it simply prints everything and exits.
20450         With no need for memory allocation, that's one fewer way to fail.
20451         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
20452         optional field width, not before, so we accept %9:z, not %:9z.
20453         (my_strftime): Be sure to use L_('x') for literals.
20454
20455         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
20456         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
20457         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
20458         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
20459         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
20460         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
20461         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
20462         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
20463         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
20464         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
20465         * lib/xgethostname.c, lib/xreadlink.c:
20466         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
20467
20468         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
20469         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
20470         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
20471         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
20472         and don't include <sys/file.h>).
20473
20474 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
20475
20476         Sync from coreutils.
20477
20478         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
20479         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
20480         [!LDAV_DONE]: Avoid unused variable warning.
20481
20482 2005-09-21  Bruno Haible  <bruno@clisp.org>
20483
20484         * lib/unicodeio.h (unicode_to_mb): New declaration.
20485
20486 2005-09-20  Derek Price  <derek@ximbiot.com>
20487
20488         * lib/getaddrinfo.c: Don't include <netdb.h> included from
20489         getaddrinfo.h.
20490
20491 2005-09-20  Bruno Haible  <bruno@clisp.org>
20492
20493         * gnulib-tool: Remove trailing slashes from the values specified for
20494         --source-base, --m4-base, --tests-base, --aux-dir.
20495         Suggested by Simon Josefsson <jas@extundo.com>.
20496
20497 2005-09-20  Bruno Haible  <bruno@clisp.org>
20498
20499         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
20500         func_modules_to_filelist, func_import, func_create_testdir): Make all
20501         sorting results locale-independent, so that gnulib-cache.m4 doesn't
20502         change when gnulib-tool is invoked in a different locale.
20503
20504 2005-09-19  Simon Josefsson  <jas@extundo.com>
20505
20506         * m4/socklen.m4: Fix typo.
20507
20508 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20509
20510         Use a consistent style for including <config.h>.
20511         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
20512         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
20513         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
20514         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
20515         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
20516         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
20517         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
20518         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
20519         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
20520         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
20521         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
20522         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
20523         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
20524         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
20525         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
20526         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
20527         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
20528         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
20529         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
20530         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
20531         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
20532         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
20533         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
20534         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
20535         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
20536         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
20537         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
20538         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
20539         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
20540         lib/xstrtoumax.c, lib/yesno.c:
20541         Standardize inclusion of config.h.
20542         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
20543         lib/inttostr.h:  Removed inclusion of config.h from header files.
20544         * lib/inttostr.c:  Adjusted in-tree users.
20545         * lib/timespec.h: Remove superfluous warning to include config.h.
20546         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
20547         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
20548         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
20549         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
20550         config.h with HAVE_CONFIG_H.
20551
20552 2005-09-19  Jim Meyering  <jim@meyering.net>
20553
20554         * modules/pathmax (License): Change to LGPL.
20555
20556 2005-09-19  Derek Price  <derek@ximbiot.com>
20557
20558         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
20559
20560 2005-09-19  Bruno Haible  <bruno@clisp.org>
20561
20562         * gnulib-tool (import): Provide default for --tests-base.
20563
20564 2005-09-19  Bruno Haible  <bruno@clisp.org>
20565
20566         * doc/quote.texi: New file, extracted from gnulib.texi.
20567         * doc/ctime.texi: New file, extracted from gnulib.texi.
20568         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
20569         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
20570         * doc/gnulib.texi: Include them.
20571
20572 2005-09-18  Bruno Haible  <bruno@clisp.org>
20573
20574         Portability fix.
20575         * gnulib-tool (func_readlink): New function.
20576         (func_ln_if_changed): Use it.
20577
20578 2005-09-18  Bruno Haible  <bruno@clisp.org>
20579
20580         * gnulib-tool: Support --with-tests also with --import.
20581         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
20582         (func_import): Use variables $testsbase and $inctests. Emit a
20583         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
20584         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
20585         SUBDIRS += $testsdir.
20586         (func_create_testdir): Update.
20587
20588 2005-09-18  Bruno Haible  <bruno@clisp.org>
20589
20590         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
20591         instead of $dry_run.
20592         (func_cp_if_changed, func_mv_if_changed): Remove functions.
20593         (func_ln_if_changed): Don't handle dry-run here.
20594         (func_import): In dry-run mode, detect more precisely which actions
20595         would be performed, and don't use "...ing" verbs.
20596
20597 2005-09-18  Bruno Haible  <bruno@clisp.org>
20598
20599         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
20600         (func_import): Use join on two temporary files instead of three nested
20601         loops, in order to determine which files are new or old.
20602
20603 2005-09-18  Bruno Haible  <bruno@clisp.org>
20604
20605         * gnulib-tool (func_import): Comment out code that spits out the
20606         new files with --dry-run.
20607
20608 2005-09-18  Bruno Haible  <bruno@clisp.org>
20609
20610         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
20611
20612 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
20613
20614         * lib/stat-time.h: New file.
20615         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
20616         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
20617         in a different way.
20618         (timespec_cmp): New function.
20619         * lib/utimecmp.c: Include stat-time.h.
20620         (SYSCALL_RESOLUTION): Depend on whether various struct stat
20621         members exist, not on the obsolescent ST_MTIM_NSEC.
20622         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
20623
20624 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
20625
20626         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
20627
20628 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
20629
20630         * MODULES.html.sh (File system functions): Add stat-time.
20631         * modules/stat-time: New file.
20632         * modules/timespec (Files): Remove m4/st_mtim.m4; this
20633         is now done in a different way, by the stat-time module.
20634         * modules/utimecmp (Depends-on): Add stat-time.
20635
20636 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
20637
20638         * m4/st_mtim.m4: Remove.  Superseded by...
20639         * m4/stat-time.m4: New file.
20640         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
20641         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
20642
20643 2005-09-15  Derek Price  <derek@ximbiot.com>
20644
20645         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
20646
20647 2005-09-15  Derek Price  <derek@ximbiot.com>
20648
20649         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
20650         * lib/regex_internal.c: Ditto, using this...
20651         (__GNUC_PREREQ): ...new macro.
20652         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
20653         using...
20654         (__GNUC_PREREQ): ...this new macro.
20655
20656         * lib/strstr.h: Include string.h. Define strstr as a macro here.
20657
20658 2005-09-15  Derek Price  <derek@ximbiot.com>
20659             Paul Eggert  <eggert@cs.ucla.edu>
20660
20661         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
20662         changes, consolidating in...
20663         * lib/regex_internal.h: ...this file.
20664
20665 2005-09-13  Jim Meyering  <jim@meyering.net>
20666
20667         * lib/canon-host.c: Filter through gnu indent and reword comments
20668         slightly.
20669         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
20670
20671 2005-09-13  Derek Price  <derek@ximbiot.com>
20672
20673         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
20674         failure.
20675         Reported by Jim Meyering  <jim@meyering.net>.
20676
20677 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
20678
20679         * lib/base64.c: Typo.
20680         (base64_encode): Put b64str in initialized data section.
20681
20682 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
20683
20684         Merge glibc and coreutils changes into gnulib, plus a few
20685         extra fixes.
20686         * lib/md5.c: Use #error rather than a string.
20687         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
20688         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
20689         (__attribute__): Define to empty for non recent-GCC.
20690         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
20691         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
20692         Renamed from their non-__ counterparts, with new macros replacing
20693         them if not _LIBC.  Add __THROW attribute.
20694         (rol): Remove.
20695         (struct md5_ctx): Align buffer if using GCC.
20696         * lib/sha1.h (struct sha1_ctx): Likewise.
20697         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
20698         The old name was backwards.
20699         (NOTSWAP): Remove; not used.
20700         (rol): New macro, moved here from md5.h.
20701         (sha1_process_block): Remove a FIXME that doesn't make sense.
20702
20703 2005-09-12  Derek Price  <derek@ximbiot.com>
20704
20705         Return usable errors from canon-host.
20706         * lib/canon-host.h: New file.
20707         * lib/canon-host.c (canon_host): Wrap...
20708         (canon_host_r): ...this new function, which now relies exclusively on
20709         getaddrinfo.
20710         (ch_strerror): New function.
20711         (last_cherror): New global.
20712         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
20713         interface.
20714         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
20715         void *.
20716         (freeaddrinfo): Free ai->ai_canonname when set.
20717
20718 2005-09-12  Derek Price  <derek@ximbiot.com>
20719
20720         Make canon-host require getaddrinfo.
20721         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
20722         AC_LIBSOURCE canon-host.h.  Call...
20723         (gl_PREREQ_CANON_HOST): ...this new function, which requires
20724         gl_GETADDRINFO.
20725         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
20726
20727 2005-09-12  Derek Price  <derek@ximbiot.com>
20728
20729         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
20730         LGPL.
20731         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
20732
20733 2005-09-12  Derek Price  <derek@ximbiot.com>
20734
20735         * lib/gai_strerror.c: Include config.h when available.  Include
20736         getaddrinfo.h before other headers to test interface.
20737         Reported by Larry Jones <lawrence.jones@ugs.com>.
20738
20739 2005-09-12  Derek Price  <derek@ximbiot.com>
20740             Paul Eggert  <eggert@cs.ucla.edu>
20741
20742         * modules/glob (Files): Add glob-libc.h.
20743
20744 2005-09-12  Derek Price  <derek@ximbiot.com>
20745             Paul Eggert  <eggert@cs.ucla.edu>
20746
20747         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
20748         glob_.h, glob-libc.h.
20749         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
20750
20751 2005-09-12  Derek Price  <derek@ximbiot.com>
20752             Paul Eggert  <eggert@cs.ucla.edu>
20753
20754         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
20755         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
20756         protecting things that should be done only in gnulib contexts.
20757         * lib/glob_.h: New file, containing only the glob things needed for
20758         gnulib.
20759         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
20760         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
20761         (glob, globfree, glob_pattern_p): Now defined simply in terms of
20762         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
20763         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
20764         and to respect the namespace rules better.
20765
20766 2005-09-08  Simon Josefsson  <jas@extundo.com>
20767
20768         * modules/socklen: New file.
20769
20770 2005-09-08  Simon Josefsson  <jas@extundo.com>
20771
20772         * m4/socklen.m4: New file.
20773
20774 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
20775
20776         * modules/utimens (Files): Add m4/utimbuf.m4, since
20777         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
20778         Reported by Sergey Poznyakoff.
20779
20780 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
20781
20782         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
20783         definitions, since that's the preferred style in glibc.
20784         Fix a minor spacing issue, and update copyright notice to match
20785         glibc's.
20786
20787 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
20788
20789         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
20790
20791 2005-09-06  Simon Josefsson  <jas@extundo.com>
20792
20793         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
20794         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
20795
20796 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
20797
20798         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
20799         warning.
20800
20801 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
20802
20803         * config/srclist.txt: Add glibc bug 1302.
20804
20805 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
20806
20807         Change bitset word type from unsigned int to unsigned long int,
20808         as this has better performance on typical 64-bit hosts.
20809         Port bitset code to hosts with unusual word sizes.
20810         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
20811         (build_collating_symbol):
20812         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
20813         argument is a bitset.  This is merely a style issue, but it makes
20814         it clearer that an entire array is expected.
20815         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
20816         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
20817         Port to the case where bitset_word is not the same as unsigned int.
20818         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
20819         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
20820         Likewise.
20821         * lib/regexec.c (check_dst_limits_calc_pos_1,
20822         check_subexp_matching_top):
20823         (build_trtable, group_nodes_into_DFAstates):
20824         Likewise.
20825         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
20826         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
20827         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
20828         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
20829         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
20830         * lib/regcomp.c (optimize_subexps, lower_subexp):
20831         Work even if bitset_word has holes in its bitwise representation.
20832         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
20833         * lib/regexec.c (check_dst_limits_calc_pos_1,
20834         check_subexp_matching_top):
20835         Likewise.
20836         * lib/regex_internal.c (re_string_reconstruct):
20837         Don't assume UCHAR_MAX == 255.
20838         * lib/regex_internal.h (bitset_set_all): Likewise.
20839         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
20840         All uses changed.
20841         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
20842         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
20843         All uses changed.
20844         (BITSET_WORD_MAX): New macro.
20845         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
20846         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
20847         (bitset_empty, bitset_copy):
20848         Prefer sizeof (bitset) to multiplying it out ourselves.
20849         (bitset_not_merge): Remove; unused.
20850         (bitset_contain): Return bool, not unsigned int with one bit on.
20851         All callers changed.
20852         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
20853         alignment than re_node_set; do this by defining a new internal
20854         type struct dests_alloc and using it to allocate memory.
20855
20856 2005-09-05  Bruno Haible  <bruno@clisp.org>
20857
20858         * gnulib-tool (func_import): Fix comparison in handling of symbolic
20859         links.
20860
20861 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
20862
20863         * modules/size_max (Makefile.am): Add size_max.h
20864
20865 2005-09-04  Derek Price  <derek@ximbiot.com>
20866
20867         * gnulib-tool (func_import): Fix reversed $symbolic logic.
20868
20869 2005-09-03  Simon Josefsson  <jas@extundo.com>
20870
20871         * gnulib-tool: Fix typo.
20872
20873 2005-09-03  Simon Josefsson  <jas@extundo.com>
20874
20875         * config/srclist.txt: Add glibc bug 1293.
20876
20877 2005-09-03  Derek Price  <derek@ximbiot.com>
20878
20879         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
20880         From Larry Jones <lawrence.jones@ugs.com>.
20881
20882 2005-09-02  Simon Josefsson  <jas@extundo.com>
20883
20884         * modules/socklen: New file.
20885
20886 2005-09-02  Simon Josefsson  <jas@extundo.com>
20887
20888         * modules/havelib: New module.
20889
20890         * modules/gettext, modules/iconv, modules/lock, modules/readline:
20891         Use havelib.
20892
20893 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20894
20895         Check for arithmetic overflow when calculating sizes, to prevent
20896         some buffer-overflow issues.  These patches are conservative, in the
20897         sense that when I couldn't determine whether an overflow was possible,
20898         I inserted a run-time check.
20899         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
20900         macros.
20901         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
20902         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
20903         (re_xnrealloc, re_x2nrealloc): New inline functions.
20904         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
20905         parse_bracket_exp):
20906         (build_equiv_class, build_charclass): Check for arithmetic overflow
20907         in size expression calculations.
20908         * lib/regex_internal.c (re_string_realloc_buffers):
20909         (build_wcs_upper_buffer, re_node_set_add_intersect):
20910         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
20911         (re_dfa_add_node, register_state): Likewise.
20912         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
20913         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
20914         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
20915         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
20916
20917 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20918
20919         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
20920         m4/ulonglong.m4.  Problem reported by Martin Lambers.
20921
20922 2005-09-02  Bruno Haible  <bruno@clisp.org>
20923
20924         Support for lib vs. lib64 distinction on biarch platforms.
20925         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
20926         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
20927         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
20928
20929 2005-09-02  Bruno Haible  <bruno@clisp.org>
20930
20931         * gnulib-tool (import): In the other first-use case, provide defaults
20932         as well.
20933
20934 2005-09-02  Bruno Haible  <bruno@clisp.org>
20935
20936         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
20937         patches not yet found in the latest gettext release.
20938
20939 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
20940
20941         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
20942         to avoid a collision with bits/local_lim.h in glibc.
20943         All uses changed.  Problem reported by Dmitry V. Levin in
20944         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
20945
20946         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
20947         bugs in int versus size_t comparisons.
20948         (re_string_context_at): Fix bug where the code assumed that
20949         Idx is signed.
20950
20951         Use bool where appropriate.
20952         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
20953         All callers changed.
20954         (calc_eclosure_iter): Likewise, for ROOT arg.
20955         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
20956         (build_charclass_op): Likewise, for NON_MATCH arg.
20957         * lib/regex_internal.c (re_string_allocate, re_string_construct):
20958         (re_string_construct_common): Likewise, for ICASE arg.
20959         * lib/regexec.c (re_search_2_stub, re_search_stub):
20960         Likewise, for RET_LEN arg.
20961         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
20962         (set_regs): Likewise, for FL_BACKTRACK arg.
20963         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
20964         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
20965         (calc_eclosure_iter, parse_bracket_exp):
20966         Use bool for internal variables that are booleans.
20967         * lib/regexec.c (re_search_internal, check_matching,
20968         proceed_next_node):
20969         (set_regs, build_sifted_states, sift_states_bkref):
20970         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
20971         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
20972         (find_collation_sequence_value):
20973         Likewise.
20974         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
20975         (re_node_set_compare):
20976         Return bool, not int. All callers changed.
20977         * lib/regexec.c (check_halt_node_context, check_dst_limits):
20978         (build_trtable, check_node_accept): Likewise.
20979         * lib/regex_internal.h: Include stdbool.h.
20980
20981         Fix bugs uncovered when converting to bool.
20982         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
20983         failure instead of charging ahead blindly.
20984         * lib/regex_internal.c (register_state): Likewise.
20985         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
20986         for freeing internal storage.
20987         (group_nodes_into_DFA_states): Use unsigned int, not int, for
20988         bitset pieces used as boolean, to avoid undefined behavior
20989         on hosts that do int overflow checking.
20990
20991 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
20992
20993         * config/srclist.txt: Add glibc bugs 1285-1287.
20994
20995 2005-09-01  Jim Meyering  <jim@meyering.net>
20996
20997         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
20998         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
20999         Require gl_STAT_MACROS, too.
21000
21001 2005-09-01  Bruno Haible  <bruno@clisp.org>
21002
21003         * gnulib-tool (import): In the first-use case, provide defaults.
21004
21005 2005-09-01  Bruno Haible  <bruno@clisp.org>
21006
21007         * gnulib-tool (func_import): Remove the .tmp files.
21008
21009 2005-09-01  Bruno Haible  <bruno@clisp.org>
21010
21011         * gnulib-tool (func_import): Fix handling of symbolic links.
21012
21013 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
21014
21015         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
21016         old glibc regex code mishandles strings longer than 2**31 bytes.
21017         This patch fixes this when the regex code is used in gnulib
21018         (i.e., outside glibc).
21019
21020         This patch should not affect the use of the regex code inside
21021         glibc.  No doubt this problem also needs to be handled for glibc
21022         as well, but the result will be an incompatible change to the
21023         glibc ABI, and the old ABI will have to be supported too.  That
21024         can be the the subject for another patch.
21025
21026         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
21027         governing whether the rest of this patch is active.  By default,
21028         the macro is disabled and the patch has no effect.
21029         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
21030         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
21031         (struct re_pattern_buffer, re_search, re_search_2, re_match):
21032         (re_match_2, re_set_registers): Use the new types.
21033         * lib/regex_internal.h (Idx, re_hashval_t): New types.
21034         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
21035         New macros.
21036         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
21037         (re_string_context_at, bin_tree_t, re_dfastate_t):
21038         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
21039         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
21040         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
21041         (re_string_char_size_at, re_string_wchar_at):
21042         (re_string_elem_size_at):
21043         Use the new types and macros to port to 64-bit hosts.
21044         Use unsigned types for internal values, so that the code
21045         mostly works even for arrays larger than SSIZE_MAX.
21046         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
21047         (search_duplicated_node, calc_eclosure_iter, fetch_number):
21048         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
21049         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
21050         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
21051         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
21052         (calc_inveclosure, parse_dup_op, build_range_exp):
21053         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
21054         (fetch_number, create_token_tree, mark_opt_subexp):
21055         Likewise.
21056         * lib/regex_internal.c (re_string_construct_common,
21057         create_ci_newstate):
21058         (create_cd_newstate, re_string_allocate, re_string_construct):
21059         (re_string_realloc_buffers, build_wcs_upper_buffer):
21060         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
21061         (re_string_reconstruct, re_string_peek_byte_case):
21062         (re_string_fetch_byte_case, re_string_context_at):
21063         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
21064         (re_node_set_init_copy, re_node_set_add_intersect):
21065         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
21066         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
21067         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
21068         (re_acquire_state, re_acquire_state_context, register_state):
21069         Likewise.
21070         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
21071         search_cur_bkref_entry):
21072         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
21073         (re_search_internal, re_search_2_stub, re_search_stub)
21074         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
21075         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
21076         (update_cur_sifted_state, check_dst_limits):
21077         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
21078         (check_subexp_limits, sift_states_bkref, merge_state_array):
21079         (check_subexp_matching_top, get_subexp, get_subexp_sub):
21080         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
21081         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
21082         (expand_bkref_cache, check_node_accept_bytes):
21083         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
21084         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
21085         (acquire_init_state_context, check_halt_node_context):
21086         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
21087         (sift_states_backward, clean_state_log_if_needed):
21088         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
21089         (find_recover_state, transit_state_sb, transit_state_mb):
21090         (transit_state_bkref, build_trtable, match_ctx_clean):
21091         Likewise.
21092         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
21093         to work around an assumption that REG_MISSING is negative.
21094
21095         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
21096         (seek_collating_symbol_entry) [defined _LIBC]:
21097         (lookup_collation_sequence_value) [defined _LIBC]:
21098         (build_range_exp, build_collating_symbol) [defined _LIBC]:
21099         Use prototypes rather than old-style function definitions.
21100         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
21101         (transit_state_sb) [0]:
21102         (find_collation_sequence_value) [defined _LIBC]: Likewise.
21103
21104         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
21105         rm_eo.
21106
21107         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
21108         (optimize_subexps, lower_subexp):
21109         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
21110         since the signed shift might overflow.  Use 1u<<31 instead.
21111         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
21112         Likewise.
21113         * lib/regexec.c (check_dst_limits_calc_pos_1,
21114         check_subexp_matching_top): Likewise.
21115
21116         * lib/regcomp.c (optimize_subexps, lower_subexp):
21117         Use CHAR_BIT rather than 8, for clarity.
21118         * lib/regexec.c (check_dst_limits_calc_pos_1):
21119         (check_subexp_matching_top): Likewise.
21120         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
21121         have to worry about portability issues when shifting it left.
21122         Remove no-longer-needed test for table_size > 0.
21123         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
21124         in a word, as the resulting behavior is undefined.
21125         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
21126         in one case, a <= should have been an <, and in another case the
21127         whole test was missing.
21128         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
21129         the standard name CHAR_BIT.
21130         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
21131         this is not true on one's complement and signed-magnitude hosts.
21132
21133         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
21134         next_last_offset.
21135         (struct re_dfa_t): Remove unused member states_alloc.
21136         * lib/regcomp.c (init_dfa): Don't initialize unused members.
21137
21138 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
21139
21140         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
21141         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
21142         and large-file glibc and in 32-bit large-file Solaris.
21143
21144 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
21145
21146         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
21147         lengths fit in regoff_t; this isn't true if regoff_t is the same
21148         width as size_t.
21149         * lib/regex.c (re_search_internal): 5th arg is LAST_START
21150         (= START + RANGE) instead of RANGE.  This avoids overflow
21151         problems when regoff_t is the same width as size_t.
21152         All callers changed.
21153         (re_search_2_stub): Check for overflow when adding the
21154         sizes of the two strings.
21155         (re_search_stub): Check for overflow when adding START
21156         to RANGE; if it occurs, substitute the extreme value.
21157
21158 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
21159
21160         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
21161
21162 2005-08-31  Jim Meyering  <jim@meyering.net>
21163
21164         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
21165         a pointer-to-const.
21166         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
21167         (register_state): Likewise.
21168         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
21169         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
21170         (group_nodes_into_DFAstates): Likewise.
21171
21172 2005-08-31  Jim Meyering  <jim@meyering.net>
21173
21174         * check-module: Add a FIXME comment.
21175
21176 2005-08-31  Eric Blake  <ebb9@byu.net>
21177
21178         * modules/unistd-safer (Files): Add unistd--.h.
21179         * modules/stdio-safer (Files): Add stdio--.h.
21180
21181 2005-08-31  Derek Price  <derek@ximbiot.com>
21182
21183         * lib/getdelim.c (getdelim): Return EOF on EOF.
21184         Reported by Larry Jones <lawrence.jones@ugs.com>.
21185
21186 2005-08-31  Bruno Haible  <bruno@clisp.org>
21187
21188         Avoid unnecessary diffs in the generated lib/Makefile.am.
21189         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
21190         the generated files.
21191         (func_import): Don't set cmd.
21192
21193 2005-08-31  Bruno Haible  <bruno@clisp.org>
21194
21195         * lib/strstr.c: Include <stddef.h>, for NULL.
21196         * lib/strcasestr.c: Likewise.
21197         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21198
21199 2005-08-31  Bruno Haible  <bruno@clisp.org>
21200
21201         * gnulib-tool: New option --macro-prefix.
21202         (func_import): Use macro_prefix.
21203         (import): Handle option --macro-prefix.
21204
21205 2005-08-31  Bruno Haible  <bruno@clisp.org>
21206
21207         * gnulib-tool (import): Rename most ac_* variables to cached_*.
21208         Also use new variables cached_lgpl, cached_libtool.
21209
21210 2005-08-31  Bruno Haible  <bruno@clisp.org>
21211
21212         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
21213         always instantiating them.
21214
21215 2005-08-31  Bruno Haible  <bruno@clisp.org>
21216
21217         * gnulib-tool (func_import): Read the previous cached settings
21218         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
21219         earlier added by gnulib but are now dropped. Warn when a gnulib file
21220         overwrites a non-gnulib file.
21221
21222 2005-08-31  Bruno Haible  <bruno@clisp.org>
21223
21224         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
21225         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
21226         projects that don't keep autogenerated files in CVS. Put into
21227         actioncmd only the specified modules, not the transitive closure.
21228
21229 2005-08-31  Bruno Haible  <bruno@clisp.org>
21230
21231         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
21232         Create directories that shall be filled.
21233         (import): Don't look for gl_* macros in configure.ac. Recurse across
21234         all directories containing a gnulib-cache.m4 files, if meaningful.
21235
21236 2005-08-31  Bruno Haible  <bruno@clisp.org>
21237
21238         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
21239         (import): Set seen_libtool when we see gl_LIBTOOL.
21240
21241 2005-08-31  Bruno Haible  <bruno@clisp.org>
21242
21243         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
21244         declaration macro definitions from generated gnulib.m4.
21245
21246 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
21247
21248         * lib/iconvme.h: Add prototype for iconv_alloc.
21249
21250 2005-08-29  Simon Josefsson  <jas@extundo.com>
21251
21252         * lib/iconvme.c: Fix errno.
21253
21254 2005-08-29  Bruno Haible  <bruno@clisp.org>
21255
21256         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
21257         that it works when the directory contains spaces.
21258
21259 2005-08-29  Bruno Haible  <bruno@clisp.org>
21260
21261         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
21262
21263 2005-08-29  Bruno Haible  <bruno@clisp.org>
21264
21265         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
21266         Emit more advice.
21267
21268 2005-08-29  Bruno Haible  <bruno@clisp.org>
21269         and Stepan Kasal  <kasal@ucw.cz>
21270
21271         * check-module: If more parameters are given, check each of them
21272         separately; add more exceptions, as noted by Jim Meyering.
21273         (check_module): New procedure.
21274         (%exempt_header): Now contains all exceptions.
21275
21276 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
21277
21278         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
21279
21280 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
21281
21282         * lib/iconvme.c: Split iconv_string into iconv_alloc.
21283
21284 2005-08-28  Bruno Haible  <bruno@clisp.org>
21285
21286         * m4/gnulib-tool.m4: New file.
21287
21288 2005-08-27  Jim Meyering  <jim@meyering.net>
21289
21290         * modules/unistd-safer (Files): Add pipe-safer.c.
21291         * modules/fcntl-safer (Files): Add creat-safer.c.
21292
21293 2005-08-27  Jim Meyering  <jim@meyering.net>
21294
21295         * m4/stdlib-safer.m4: New file.  From coreutils.
21296         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
21297         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
21298         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
21299         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
21300         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
21301
21302 2005-08-27  Jim Meyering  <jim@meyering.net>
21303
21304         * lib/fopen-safer.c: Merge minor changes from coreutils.
21305         * lib/dup-safer.c: Likewise.
21306         * lib/fd-safer.c: Likewise.
21307
21308         Merge from coreutils.
21309         * lib/stdio--.h: New file.
21310         * lib/stdlib--.h: New file.
21311         * lib/mkstemp-safer.c: New file.
21312
21313         GNU tar needs these.
21314         * lib/pipe-safer.c: New file.
21315         * lib/creat-safer.c: New file.
21316         * lib/fcntl--.h (creat): Define to creat_safer.
21317         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
21318         * lib/unistd--.h (pipe): Define to pipe_safer.
21319         * lib/unistd-safer.h: Declare pipe_safer.
21320
21321 2005-08-26  Simon Josefsson  <jas@extundo.com>
21322
21323         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
21324         Haible <bruno@clisp.org>.
21325
21326 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
21327
21328         * lib/regex_internal.h: Remove all references to
21329         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
21330         or better.
21331         (bitset_not, bitset_merge, bitset_not_merge):
21332         (bitset_mask, re_string_allocate, re_string_construct):
21333         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
21334         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
21335         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
21336         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
21337         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
21338         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
21339         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
21340         (re_acquire_state_context):
21341         Remove unnecessary forward decls.
21342         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
21343         Put __attribute at function definition,
21344         now that the function decl has been removed.
21345         * lib/regex_internal.c (re_string_peek_byte_case):
21346         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
21347         Likewise.
21348
21349 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
21350
21351         * m4/regex.m4: Add AC_PREREQ(2.50).
21352         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
21353
21354 2005-08-25  Simon Josefsson  <jas@extundo.com>
21355
21356         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
21357         __fsetlocking.
21358
21359 2005-08-25  Simon Josefsson  <jas@extundo.com>
21360
21361         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
21362         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
21363         GLIBC specific code.
21364
21365 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
21366
21367         Make regex safe for g++.  This fixes one real bug (an "err"
21368         that should have been "*err").  g++ problem reported by
21369         Sam Steingold.
21370         * lib/regex_internal.h (re_calloc): New macro, consistent with
21371         re_malloc etc.  All callers of calloc changed to use re_calloc.
21372         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
21373         not int.  All callers changed.
21374         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
21375         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
21376         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
21377         (find_recover_state): Change "err" to "*err"; this fixes what
21378         appears to be a real bug.
21379         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
21380         versus int.
21381
21382 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
21383
21384         * modules/regex (Depends-on): Add malloc, since the code
21385         assumes that !malloc(0) means failure.
21386
21387 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
21388
21389         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
21390
21391         alloca modernization/simplification for regex.
21392         * lib/regex.c: Remove portability cruft for alloca.  This no longer
21393         needs to be at the start of the file, and can be moved into
21394         regex_internal.h and simplified.
21395         * lib/regex_internal.h: Include <alloca.h>.
21396         (__libc_use_alloca) [!defined _LIBC]: New macro.
21397         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
21398         now works outside glibc.
21399
21400 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
21401
21402         * config/srclist.txt: Add glibc bugs 1241, 1245.
21403
21404 2005-08-25  Jim Meyering  <jim@meyering.net>
21405
21406         * lib/open-safer.c: Include <config.h>.
21407         Otherwise, we'd lose LARGEFILE support in any file using
21408         e.g. "fcntl--.h"
21409
21410 2005-08-25  Bruno Haible  <bruno@clisp.org>
21411
21412         * m4/minmax.m4: Require autoconf 2.52.
21413         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
21414         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
21415         alternatives of translit over the alphabet.
21416         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
21417
21418 2005-08-24  Simon Josefsson  <jas@extundo.com>
21419
21420         * tests/test-getpass.c: New file.
21421
21422 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21423
21424         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
21425         for GNU regex features.
21426
21427 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21428
21429         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
21430         * lib/regex.h (regerror): Likewise.
21431
21432         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
21433         requires this.  (The code never needed it.)
21434
21435         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
21436         All uses of recently-renamed identifiers changed to use the new,
21437         POSIX-compliant names.  The code will build and run just fine
21438         without these changes, but it's better to eat our own dog food
21439         and use the standard-conforming names.
21440
21441         * lib/regex.h: Fix a multitude of POSIX name space violations.
21442         These changes have an effect only for programs that define
21443         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
21444         do not change anything for programs compiled in the normal way.
21445         Also, there is no effect on the ABI.
21446
21447         (_REGEX_SOURCE): New macro.
21448         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
21449         defined and _GNU_SOURCE is not; this fixes a name space violation.
21450
21451         Rename the following macros to obey POSIX requirements.
21452         The old names are still visible as macros if _REGEX_SOURCE is defined.
21453         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
21454         RE_BACKSLASH_ESCAPE_IN_LISTS.
21455         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
21456         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
21457         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
21458         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
21459         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
21460         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
21461         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
21462         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
21463         (REG_INTERVALS): renamed from RE_INTERVALS.
21464         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
21465         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
21466         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
21467         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
21468         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
21469         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
21470         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
21471         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
21472         RE_UNMATCHED_RIGHT_PAREN_ORD.
21473         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
21474         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
21475         (REG_DEBUG): renamed from RE_DEBUG.
21476         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
21477         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
21478         unusual, since we can't clash with the POSIX REG_ICASE.
21479         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
21480         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
21481         (REG_NO_SUB): renamed from RE_NO_SUB.
21482         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
21483         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
21484         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
21485         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
21486         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
21487         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
21488         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
21489         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
21490         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
21491         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
21492         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
21493         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
21494         RE_SYNTAX_POSIX_MINIMAL_BASIC.
21495         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
21496         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
21497         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
21498         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
21499         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
21500         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
21501         (REG_FIXED): Renamed from REGS_FIXED.
21502         (REG_NREGS): Renamed from RE_NREGS.
21503
21504         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
21505         of other REG_* macros, since POSIX says the user is allowed to
21506         #undef these macros selectively.
21507
21508         (reg_errcode_t): Update comment stating what other tables need
21509         to be consistent.
21510
21511         Rename the following enum values to obey POSIX requirements.
21512         The old names are still visible as macros.
21513         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
21514         is not defined, since GNU is supposed to be a superset of POSIX as
21515         much as possible, and since we want reg_errcode_t to be a signed
21516         type for implementation consistency.
21517         (_REG_NOERROR): Renamed from REG_NOERROR.
21518         (_REG_NOMATCH): Renamed from REG_NOMATCH.
21519         (_REG_BADPAT): Renamed from REG_BADPAT.
21520         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
21521         (_REG_ECTYPE): Renamed from REG_ECTYPE.
21522         (_REG_EESCAPE): Renamed from REG_EESCAPE.
21523         (_REG_ESUBREG): Renamed from REG_ESUBREG.
21524         (_REG_EBRACK): Renamed from REG_EBRACK.
21525         (_REG_EPAREN): Renamed from REG_EPAREN.
21526         (_REG_EBRACE): Renamed from REG_EBRACE.
21527         (_REG_BADBR): Renamed from REG_BADBR.
21528         (_REG_ERANGE): Renamed from REG_ERANGE.
21529         (_REG_ESPACE): Renamed from REG_ESPACE.
21530         (_REG_BADRPT): Renamed from REG_BADRPT.
21531         (_REG_EEND): Renamed from REG_EEND.
21532         (_REG_ESIZE): Renamed from REG_ESIZE.
21533         (_REG_ERPAREN): Renamed from REG_ERPAREN.
21534         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
21535         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
21536         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
21537         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
21538
21539         (_REG_RE_NAME, _REG_RM_NAME): New macros.
21540         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
21541         changed.  But support the old name if the new one is not defined
21542         and if _REGEX_SOURCE.
21543
21544         Change the following member names in struct re_pattern_buffer.
21545         The old names are still supported if !_REGEX_SOURCE.
21546         The new names are always supported, regardless of _REGEX_SOURCE.
21547         (re_buffer): Renamed from buffer.
21548         (re_allocated): Renamed from allocated.
21549         (re_used): Renamed from used.
21550         (re_syntax): Renamed from syntax.
21551         (re_fastmap): Renamed from fastmap.
21552         (re_translate): Renamed from translate.
21553         (re_can_be_null): Renamed from can_be_null.
21554         (re_regs_allocated): Renamed from regs_allocated.
21555         (re_fastmap_accurate): Renamed from fastmap_accurate.
21556         (re_no_sub): Renamed from no_sub.
21557         (re_not_bol): Renamed from not_bol.
21558         (re_not_eol): Renamed from not_eol.
21559         (re_newline_anchor): Renamed from newline_anchor.
21560
21561         Change the following member names in struct re_registers.
21562         The old names are still supported if !_REGEX_SOURCE.
21563         The new names are always supported, regardless of _REGEX_SOURCE.
21564         (rm_num_regs): Renamed from num_regs.
21565         (rm_start): Renamed from start.
21566         (rm_end): Renamed from end.
21567
21568         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
21569         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
21570         Prepend __ to parameter names.
21571
21572         Undo yesterday's changes.
21573
21574 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21575
21576         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
21577         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
21578         lib/regex.c.
21579
21580 2005-08-24  Jim Meyering  <jim@meyering.net>
21581
21582         Sync from coreutils.
21583         * m4/fcntl-safer.m4: New file.
21584
21585         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
21586         and object files for this module.
21587
21588 2005-08-24  Jim Meyering  <jim@meyering.net>
21589
21590         Sync from coreutils.
21591         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
21592
21593 2005-08-24  Jim Meyering  <jim@meyering.net>
21594
21595         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
21596         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
21597
21598 2005-08-24  Jim Meyering  <jim@meyering.net>
21599
21600         * modules/fcntl-safer: New module.
21601         * modules/fts (Depends-on): Add fcntl-safer.
21602         * MODULES.html.sh (File descriptor based Input/Output):
21603         Add fcntl-safer.
21604
21605 2005-08-24  Bruno Haible  <bruno@clisp.org>
21606
21607         Support for unit test modules.
21608         * modules/README: Mention tests modules.
21609         * modules/TEMPLATE-TESTS: New file.
21610         * gnulib-tool: New options --extract-tests-module, --with-tests and
21611         --tests-base (unused for the moment).
21612         (testsbase, inctests): New variables.
21613         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
21614         (func_verify_module): Exclude TEMPLATE-TESTS.
21615         (func_verify_nontests_module, func_verify_tests_module): New functions.
21616         (func_get_dependencies): Add implicit dependency for tests modules.
21617         (func_get_tests_module): New function.
21618         (func_modules_transitive_closure): When --with-tests was specified,
21619         include the unit tests as well, unless explicitly avoided.
21620         (func_emit_lib_Makefile_am): Ignore the tests modules here.
21621         (func_emit_tests_Makefile_am): New function.
21622         (func_create_testdir): When --with-tests was specified, emit a
21623         tests/ directory.
21624         * MODULES.html.sh (Future developments): Update.
21625
21626 2005-08-24  Bruno Haible  <bruno@clisp.org>
21627
21628         * modules/tls-tests: New file.
21629         * tests/test-tls.c: New file, from GNU gettext.
21630
21631 2005-08-24  Bruno Haible  <bruno@clisp.org>
21632
21633         * modules/lock-tests: New file.
21634         * tests/test-lock.c: New file, from GNU gettext.
21635
21636 2005-08-24  Bruno Haible  <bruno@clisp.org>
21637
21638         * lib/lock.h: Add multiple inclusion guard.
21639         * lib/tls.h: Add multiple inclusion guard.
21640
21641 2005-08-24  Bruno Haible  <bruno@clisp.org>
21642
21643         * gnulib-tool: Add support for the --aux-dir option to
21644         --create-testdir, --create-megatestdir, --test, --megatest.
21645         (func_create_testdir, func_create_megatestdir): Optionally emit a
21646         AC_CONFIG_AUX_DIR directive.
21647         (create-testdir, create-megatestdir, test, megatest): Provide a
21648         default value for $auxdir.
21649
21650 2005-08-24  Bruno Haible  <bruno@clisp.org>
21651
21652         * gnulib-tool (import): Use compound statement instead of subshell
21653         where possible.
21654
21655 2005-08-24  Bruno Haible  <bruno@clisp.org>
21656
21657         * gnulib-tool (import): Change --aux-dir default to "build-aux".
21658
21659 2005-08-24  Bruno Haible  <bruno@clisp.org>
21660
21661         * gnulib-tool (func_version): Update.
21662
21663 2005-08-24  Bruno Haible  <bruno@clisp.org>
21664
21665         * gnulib-tool (func_import, func_create_testdir,
21666         func_create_megatestdir): Quote all autoconf macro arguments.
21667
21668 2005-08-24  Bruno Haible  <bruno@clisp.org>
21669
21670         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
21671         option --force, because --force causes the aclocal.m4 of each
21672         subdirectory to be newer than the corresponding config.h.in.
21673
21674 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
21675
21676         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
21677         All contents moved to gl_REGEX.
21678         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
21679         assume that it does.
21680
21681 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
21682
21683         * lib/regex.h (REG_NOSYS)
21684         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
21685         Define, since POSIX requires it as of 2001.
21686         (_REG_ENOSYS)
21687         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
21688         New private symbol, used to keep the enum signed in all cases.
21689         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
21690         Youngman in
21691         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
21692
21693         * lib/regex_internal.c (re_string_skip_chars, register_state):
21694         (calc_state_hash):
21695         Remove forward decls; no longer needed now that we use prototypes.
21696         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
21697         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
21698         (clean_state_log_if_needed): Likewise.
21699
21700 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
21701
21702         * config/srclist.txt: Add glibc bugs 1231-1233.
21703
21704 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
21705
21706         Fix problems reported by Sam Steingold in
21707         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
21708         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
21709         assumed that reg_errcode_t is a signed type, which is not
21710         necessarily true if _XOPEN_SOURCE is not defined.
21711         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
21712         since some compilers warn about it otherwise.
21713
21714 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
21715
21716         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
21717         (init_word_char, create_initial_state, duplicate_node_closure):
21718         (fetch_token, peek_token_bracket, build_range_exp):
21719         (build_collating_symbol): Remove forward decls; no longer needed
21720         now that we use prototypes.
21721
21722         * lib/regcomp.c:
21723         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
21724         (re_compile_fastmap_iter, regcomp, regerror, regfree):
21725         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
21726         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
21727         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
21728         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
21729         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
21730         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
21731         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
21732         (build_range_exp, build_collating_symbol, parse_bracket_exp):
21733         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
21734         (build_charclass, build_charclass_op, fetch_number, create_tree):
21735         (create_token_tree, mark_opt_subexp, duplicate_tree):
21736         Use prototypes rather than old-style definitions.
21737
21738         * lib/regex_internal.c:
21739         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
21740         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
21741         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
21742         (re_string_reconstruct, re_string_peek_byte_case):
21743         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
21744         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
21745         (re_node_set_init_copy, re_node_set_add_intersect):
21746         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
21747         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
21748         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
21749         (re_acquire_state, re_acquire_state_context, register_state):
21750         (create_ci_newstate, create_cd_newstate, free_state):
21751         Likewise.
21752         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
21753         re_search_2):
21754         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
21755         (re_search_internal, prune_impossible_nodes):
21756         (acquire_init_state_context, check_matching, static):
21757         (check_halt_node_context, check_halt_state_context, proceed_next_node):
21758         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
21759         (update_regs, sift_states_backward, build_sifted_states):
21760         (clean_state_log_if_needed, merge_state_array):
21761         (update_cur_sifted_state, add_epsilon_src_nodes):
21762         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
21763         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
21764         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
21765         (find_recover_state, check_subexp_matching_top, transit_state_mb):
21766         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
21767         (check_arrival, check_arrival_add_next_nodes):
21768         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
21769         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
21770         (check_node_accept_bytes, check_node_accept, extend_buffers):
21771         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
21772         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
21773         (sift_ctx_init):
21774         Likewise.
21775
21776         * lib/regex_internal.h:
21777         (re_string_allocate, re_string_construct, re_string_reconstruct):
21778         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
21779         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
21780         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
21781         (re_string_context_at, re_string_peek_byte_case):
21782         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
21783         is defined, since we now use prototypes always.
21784
21785         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
21786         C89 or better.  All uses removed.
21787
21788 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
21789
21790         * config/srclist.txt: Add glibc bugs 1220-1227.
21791
21792 2005-08-20  Jim Meyering  <jim@meyering.net>
21793
21794         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
21795         of unused local, dfa.
21796
21797 2005-08-20  Bruno Haible  <bruno@clisp.org>
21798
21799         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
21800
21801 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
21802
21803         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
21804         (re_node_set_insert_last, re_dfa_add_node):
21805         Rename local variables to avoid GCC shadowing warnings.
21806
21807 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
21808
21809         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
21810         [defined lint]: Suppress bogus uninitialized-variable warnings.
21811
21812         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
21813         and let the caller return REG_ESPACE if out of space.  This
21814         removes an uninitialied-variable warning with GCC 4.0.1, and also
21815         avoids taking the address of a local variable.  All callers
21816         changed.
21817
21818 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
21819
21820         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
21821         $LIBCSRC/posix/regexec.c.
21822         Add glibc bug 1217 for regcomp.c.
21823
21824 2005-08-19  Jim Meyering  <jim@meyering.net>
21825
21826         * lib/regexec.c (proceed_next_node): Redo local variables to
21827         avoid GCC shadowing warnings.
21828
21829 2005-08-18  Bruno Haible  <bruno@clisp.org>
21830
21831         * lib/strstr.c (strstr): Fix return value in multibyte case.
21832         * lib/strcasestr.c (strcasestr): Likewise.
21833
21834 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
21835
21836         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
21837
21838 2005-08-17  Jim Meyering  <jim@meyering.net>
21839
21840         Make the %s format (seconds since the epoch) work for a negative
21841         number and when used with a zero-padded field width, e.g. %015s.
21842
21843         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
21844         label so that it precedes the code to set `digits'.  Otherwise,
21845         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
21846         print `00-22'.  Now, it prints `-0022', as it should.
21847
21848 2005-08-17  Bruno Haible  <bruno@clisp.org>
21849
21850         * modules/strstr (Files): Add m4/mbrtowc.m4.
21851         (Depends-on): Add mbuiter.
21852
21853 2005-08-17  Bruno Haible  <bruno@clisp.org>
21854
21855         * modules/strcasestr: New file.
21856         * MODULES.html.sh (String handling, based on ANSI C 89): Add
21857         strcasestr.
21858
21859 2005-08-17  Bruno Haible  <bruno@clisp.org>
21860
21861         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
21862
21863 2005-08-17  Bruno Haible  <bruno@clisp.org>
21864
21865         * modules/mbuiter: New file.
21866         * MODULES.html.sh (Extended multibyte and wide character utilities):
21867         Add mbuiter.
21868
21869 2005-08-17  Bruno Haible  <bruno@clisp.org>
21870
21871         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
21872         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
21873
21874 2005-08-17  Bruno Haible  <bruno@clisp.org>
21875
21876         * m4/strcasestr.m4: New file.
21877
21878 2005-08-17  Bruno Haible  <bruno@clisp.org>
21879
21880         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
21881         * lib/strstr.c: Completely rewritten, with multibyte locale support.
21882
21883 2005-08-17  Bruno Haible  <bruno@clisp.org>
21884
21885         * lib/strcasestr.h: New file.
21886         * lib/strcasestr.c: New file.
21887
21888 2005-08-17  Bruno Haible  <bruno@clisp.org>
21889
21890         * lib/strcasecmp.c: Use mbuiter.h.
21891
21892 2005-08-17  Bruno Haible  <bruno@clisp.org>
21893
21894         * lib/mbuiter.h: New file.
21895
21896 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
21897
21898         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
21899         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
21900         and gl_GETOPT are both invoked via different paths (as happens
21901         with GNU tar CVS because it uses both argp and getopt), the former
21902         wins.
21903
21904 2005-08-16  Bruno Haible  <bruno@clisp.org>
21905
21906         * modules/tls: New file.
21907         * MODULES.html.sh (Multithreading): Add tls.
21908
21909 2005-08-16  Bruno Haible  <bruno@clisp.org>
21910
21911         * modules/strnlen1: New file.
21912         * MODULES.html.sh (String handling): Add strnlen1.
21913
21914 2005-08-16  Bruno Haible  <bruno@clisp.org>
21915
21916         * modules/strcase (Files): Add m4/mbrtowc.m4.
21917         (Depends-on): Add strnlen1, mbchar.
21918
21919 2005-08-16  Bruno Haible  <bruno@clisp.org>
21920
21921         * modules/mbiter: New file.
21922         * MODULES.html.sh (Extended multibyte and wide character utilities):
21923         Add mbiter.
21924
21925 2005-08-16  Bruno Haible  <bruno@clisp.org>
21926
21927         * modules/mbfile: New file.
21928         * MODULES.html.sh (Extended multibyte and wide character utilities):
21929         Add mbfile.
21930
21931 2005-08-16  Bruno Haible  <bruno@clisp.org>
21932
21933         * modules/mbchar: New file.
21934         * MODULES.html.sh (Extended multibyte and wide character utilities):
21935         New section.
21936
21937 2005-08-16  Bruno Haible  <bruno@clisp.org>
21938
21939         * m4/tls.m4: New file, from GNU gettext.
21940
21941 2005-08-16  Bruno Haible  <bruno@clisp.org>
21942
21943         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
21944         always.
21945         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
21946
21947 2005-08-16  Bruno Haible  <bruno@clisp.org>
21948
21949         * m4/mbiter.m4: New file.
21950
21951 2005-08-16  Bruno Haible  <bruno@clisp.org>
21952
21953         * m4/mbfile.m4: New file.
21954
21955 2005-08-16  Bruno Haible  <bruno@clisp.org>
21956
21957         * m4/mbchar.m4: New file.
21958
21959 2005-08-16  Bruno Haible  <bruno@clisp.org>
21960
21961         * lib/tls.h: New file, from GNU gettext.
21962         * lib/tls.c: New file, from GNU gettext.
21963
21964 2005-08-16  Bruno Haible  <bruno@clisp.org>
21965
21966         * lib/strnlen1.h: New file.
21967         * lib/strnlen1.c: New file.
21968
21969 2005-08-16  Bruno Haible  <bruno@clisp.org>
21970
21971         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
21972         (mbi_init): Update.
21973         (mbi_avail, mbi_advance): Let the iteration end before the terminating
21974         NUL byte, not after it.
21975
21976 2005-08-16  Bruno Haible  <bruno@clisp.org>
21977
21978         * lib/strcase.h (strcasecmp): Add note in comments.
21979         * lib/strncasecmp.c: Use code from strcasecmp.c.
21980         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
21981         (strcasecmp): Work correctly in multibyte locales.
21982
21983 2005-08-16  Bruno Haible  <bruno@clisp.org>
21984
21985         * lib/mbiter.h: New file.
21986
21987 2005-08-16  Bruno Haible  <bruno@clisp.org>
21988
21989         * lib/mbfile.h: New file.
21990
21991 2005-08-16  Bruno Haible  <bruno@clisp.org>
21992
21993         * lib/mbchar.h: New file.
21994         * lib/mbchar.c: New file.
21995
21996 2005-08-16  Bruno Haible  <bruno@clisp.org>
21997
21998         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
21999         the valid ones. Makes the comparison operations transitive:
22000         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
22001         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
22002
22003 2005-08-15  Simon Josefsson  <jas@extundo.com>
22004
22005         * modules/ssize_t (License): Change to 'unlimited'.
22006
22007         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
22008
22009 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
22010
22011         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
22012         Add comments for each pending glibc patch.
22013
22014 2005-08-15  Bruno Haible  <bruno@clisp.org>
22015
22016         * lib/regex.h (__restrict_arr): Don't define to __restrict if
22017         __cplusplus is defined.
22018
22019 2005-08-14  Jim Meyering  <jim@meyering.net>
22020
22021         Sync from coreutils.
22022
22023         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
22024         Use the hash-table-based cycle-detection code not just when
22025         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
22026         Reported by James Youngman in
22027         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
22028         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
22029         FTS_TIGHT_CYCLE_CHECK.
22030         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
22031         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
22032         once again.
22033         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
22034         * lib/fts.c (fd_safer): Remove decl.
22035         Include fcntl--.h rather than unistd-safer.h
22036         (fts_safe_changedir): Don't call fd_safer; no longer needed
22037         now that we include fcntl--.h.
22038
22039 2005-08-12  Simon Josefsson  <jas@extundo.com>
22040
22041         * modules/getndelim2: Use ssize_t module.
22042         * modules/getnline: Likewise.
22043         * modules/safe-read: Likewise.
22044         * modules/xreadlink: Likewise.
22045
22046         * modules/ssize_t: New file.
22047
22048 2005-08-12  Simon Josefsson  <jas@extundo.com>
22049
22050         * m4/readline.m4: Look for termcap, curses or ncurses if required.
22051
22052 2005-08-12  Simon Josefsson  <jas@extundo.com>
22053
22054         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22055         ssize_t.
22056
22057 2005-08-12  Simon Josefsson  <jas@extundo.com>
22058
22059         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
22060         readline, getdelim and check_version.
22061         (Support for systems lacking ISO C 99: Sizes of integer types):
22062         Add size_max.
22063
22064 2005-08-12  Bruno Haible  <bruno@clisp.org>
22065
22066         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
22067
22068 2005-08-11  Simon Josefsson  <jas@extundo.com>
22069
22070         * modules/readline: New file.
22071
22072         * modules/strnlen (Files): Add strnlen.h.
22073
22074 2005-08-11  Simon Josefsson  <jas@extundo.com>
22075
22076         * m4/readline.m4: New file.
22077
22078 2005-08-11  Simon Josefsson  <jas@extundo.com>
22079
22080         * lib/readline.h, readline.c: New file.
22081
22082 2005-08-11  Simon Josefsson  <jas@extundo.com>
22083
22084         * doc/gnulib.texi (Initial import, Finishing touches): Mention
22085         gl_AVOID.
22086
22087 2005-08-11  Bruno Haible  <bruno@clisp.org>
22088
22089         * lib/strnlen.h (strnlen): Change parameter name to match comment.
22090
22091 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
22092
22093         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
22094
22095 2005-08-10  Simon Josefsson  <jas@extundo.com>
22096
22097         * tests/test-iconvme.c: New file.
22098
22099 2005-08-10  Simon Josefsson  <jas@extundo.com>
22100
22101         * m4/strnlen.m4: New file.
22102
22103         * m4/strndup.m4: Don't check for strnlen declaration, done in
22104         strnlen.m4.
22105
22106 2005-08-10  Simon Josefsson  <jas@extundo.com>
22107
22108         * lib/strndup.c: Use strnlen.h.
22109
22110         * lib/strnlen.h: New file.
22111
22112 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
22113
22114         * README: Typos.
22115
22116 2005-08-02  Simon Josefsson  <jas@extundo.com>
22117
22118         * modules/readline: New file.
22119
22120 2005-08-02  Simon Josefsson  <jas@extundo.com>
22121
22122         * modules/getdelim: New file.
22123
22124         * modules/getline: Rewrite, don't use getndelim2.
22125
22126 2005-08-02  Simon Josefsson  <jas@extundo.com>
22127
22128         * m4/getline.m4: Separate out getdelim stuff into separate module.
22129
22130         * m4/getdelim.m4: New file.
22131
22132 2005-08-02  Simon Josefsson  <jas@extundo.com>
22133
22134         * lib/getline.h, getline.c: Rewrite.
22135
22136         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
22137
22138 2005-07-31  Bruno Haible  <bruno@clisp.org>
22139
22140         * lib/lock.h (gl_lock_initializer): New macro.
22141         (gl_lock_define_initialized): Use it.
22142         (gl_rwlock_initializer): New macro.
22143         (gl_rwlock_define_initialized): Use it.
22144         (gl_recursive_lock_initializer): New macro.
22145         (gl_recursive_lock_define_initialized): Use it.
22146
22147 2005-07-30  Karl Berry  <karl@gnu.org>
22148
22149         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
22150         Report from Ben Pfaff, regarding getopt.
22151
22152 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
22153
22154         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
22155         normal way.
22156         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
22157         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
22158         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
22159         (gl_GETOPT): Use the new macros.  Most of the implementation
22160         is moved to the new macros.  This is for programs like Emacs
22161         that don't want all the functionality of gl_GETOPT.
22162
22163 2005-07-26  Bruno Haible  <bruno@clisp.org>
22164
22165         * m4/lock.m4: Update from GNU gettext.
22166
22167 2005-07-26  Bruno Haible  <bruno@clisp.org>
22168
22169         * lib/lock.h: Update from GNU gettext.
22170         * lib/lock.c: Update from GNU gettext.
22171
22172 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
22173
22174         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
22175         obsolescent AC_TRY_RUN.  Include the default includes files, for
22176         'exit'.
22177
22178 2005-07-24  Bruno Haible  <bruno@clisp.org>
22179
22180         * modules/visibility: New file.
22181         * MODULES.html.sh (Misc): Add visibility.
22182
22183 2005-07-24  Bruno Haible  <bruno@clisp.org>
22184
22185         * m4/visibility.m4: New file.
22186
22187 2005-07-24  Bruno Haible  <bruno@clisp.org>
22188
22189         * doc/visibility.texi: New file.
22190
22191 2005-07-22  Bruno Haible  <bruno@clisp.org>
22192
22193         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
22194         $(ALLOCA_H), redundant through BUILT_SOURCES.
22195         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
22196         redundant through BUILT_SOURCES.
22197         * modules/byteswap (Makefile.am): Remove explicit dependency on
22198         $(BYTESWAP_H), redundant through BUILT_SOURCES.
22199         * modules/fnmatch (Makefile.am): Remove explicit dependency on
22200         $(FNMATCH_H), redundant through BUILT_SOURCES.
22201         * modules/getopt (Makefile.am): Remove explicit dependency on
22202         $(GETOPT_H), redundant through BUILT_SOURCES.
22203         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
22204         redundant through BUILT_SOURCES.
22205         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
22206         redundant through BUILT_SOURCES.
22207         * modules/stdbool (Makefile.am): Remove explicit dependency on
22208         $(STDBOOL_H), redundant through BUILT_SOURCES.
22209         * modules/stdint (Makefile.am): Remove explicit dependency on
22210         $(STDINT_H), redundant through BUILT_SOURCES.
22211         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
22212         Remove explicit dependency on $(SYSEXITS_H).
22213         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
22214
22215 2005-07-18  Simon Josefsson  <jas@extundo.com>
22216
22217         * lib/check-version.c (check_version): Accept identical versions too.
22218
22219 2005-07-18  Bruno Haible  <bruno@clisp.org>
22220
22221         * modules/lock: New file.
22222         * MODULES.html.sh (Multithreading): New section.
22223
22224 2005-07-18  Bruno Haible  <bruno@clisp.org>
22225
22226         * m4/lock.m4: New file, from GNU gettext.
22227
22228 2005-07-18  Bruno Haible  <bruno@clisp.org>
22229
22230         * lib/lock.h: New file, from GNU gettext.
22231         * lib/lock.c: New file, from GNU gettext.
22232
22233 2005-07-18  Bruno Haible  <bruno@clisp.org>
22234
22235         * lib/lock.h (gl_once_t): New type.
22236         (gl_once_define, gl_once): New macros.
22237         * lib/lock.c (fresh_once): New variable.
22238         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
22239         functions.
22240
22241 2005-07-16  Simon Josefsson  <jas@extundo.com>
22242
22243         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
22244         workaround, suggested by Bruno.
22245
22246 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
22247
22248         * modules/xalloc (Depends-on): Add xalloc-die.
22249         * modules/xvasprintf (Depends-on): Add xalloc-die.
22250
22251 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
22252
22253         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
22254         with a minor change.
22255
22256 2005-07-15  Bruno Haible  <bruno@clisp.org>
22257
22258         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
22259         When using lib/poll.c, define poll as rpl_poll.
22260
22261 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
22262
22263         * modules/argp (Depends-on): Remove unlocked-io.
22264
22265 2005-07-14  Derek Price  <derek@ximbiot.com>
22266
22267         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
22268         for glob symlink bug.
22269
22270 2005-07-14  Bruno Haible  <bruno@clisp.org>
22271
22272         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
22273         Instead, test for *_unlocked function declarations directly.
22274
22275 2005-07-11  Simon Josefsson  <jas@extundo.com>
22276
22277         * modules/size_max: New file.
22278
22279         * modules/xsize: Depend on size_max module for size_max.m4.
22280
22281 2005-07-11  Simon Josefsson  <jas@extundo.com>
22282
22283         * lib/size_max.h: New file.
22284
22285 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
22286
22287         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
22288         copyright symbol and the year.
22289         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
22290         (version_etc_va): Use parameterized copyright notice.
22291         Reword to conform to the current GNU coding standards.
22292
22293 2005-07-11  Karl Berry  <karl@gnu.org>
22294
22295         * doc/gnulib.texi (Quoting): new node.
22296         (Initial import): more info, from Patrice.
22297
22298 2005-07-11  Bruno Haible  <bruno@clisp.org>
22299
22300         * gnulib-tool (func_usage): Document option --avoid.
22301         (Command line options): Handle --avoid.
22302         (func_acceptable): New function.
22303         (func_modules_transitive_closure): Use it.
22304
22305 2005-07-11  Bruno Haible  <bruno@clisp.org>
22306
22307         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
22308         Reported by Jim Meyering.
22309
22310 2005-07-10  Bruno Haible  <bruno@clisp.org>
22311
22312         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
22313         Needed when size_t is smaller than 'unsigned int'.
22314         Reported by Paul Eggert.
22315
22316 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
22317
22318         * modules/argp (Depends-on): Add unlocked-io
22319
22320 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
22321
22322         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
22323         block of defines.
22324
22325 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
22326
22327         * config/srclist.txt: Comment out regcomp.c, since we have a porting
22328         fix now.
22329
22330 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
22331         and Paul Eggert  <eggert@cs.ucla.edu>
22332
22333         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
22334         in wint_t, not wchar_t.  Remove now-unnecessary cast.
22335
22336 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
22337
22338         * modules/regex (Files): Add lib/regex_internal.c,
22339         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
22340         (Depends-on): Add extensions.
22341         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
22342
22343 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
22344
22345         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
22346         pathconf.
22347         * m4/same.m4 (gl_SAME): Likewise.
22348         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
22349
22350         * m4/regex.m4: Adjust to new libc regex implementation.
22351         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
22352         all the .c and .h parts of (the new) regex.
22353         Quote the m4 stuff better.
22354         Check for RE_ICASE bug of old gnulib.
22355         Check for REG_STARTEND of recent libc.
22356         Rename local variables from jm_* to gl_*.
22357         Quote operand of "test -f".
22358         Say "recent enough" version of libc, not "version 2".
22359         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
22360         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
22361         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
22362         Remove check for btowc, isascii.
22363         Require AM_LANGINFO_CODESET.
22364
22365 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
22366
22367         * lib/regex.c, regex.h: Sync from libc.
22368         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
22369         * lib/regexec.c:
22370         New files, synced from libc, except that regex_internal.h
22371         currently has a small porting fix.
22372
22373 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
22374
22375         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
22376         regex_internal.c, regexec.c.
22377         Add regex_internal.h too, but as a comment, since the libc version
22378         is currently broken in gnulib mode.
22379
22380 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
22381
22382         Support programs like Emacs that use gnulib but not gettext.
22383         * MODULES.html.sh (Internationalization functions): Add gettext-h.
22384         * modules/gettext-h: New file.
22385         * modules/gettext (Files): Remove lib/gettext.h.
22386         (Depends-on): Add gettext-h.
22387         (Makefile.am): Remove lib_SOURCES.
22388         * modules/argmatch, modules/c-stack, modules/closeout:
22389         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
22390         * modules/execute, modules/file-type, modules/getaddrinfo:
22391         * modules/getopt, modules/human, modules/javacomp:
22392         * modules/javaexec, modules/mkdir-p, modules/obstack:
22393         * modules/openat, modules/pagealign_alloc, modules/pipe:
22394         * modules/quotearg, modules/regex, modules/rpmatch:
22395         * modules/unicodeio, modules/userspec, modules/version-etc:
22396         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
22397         * modules/xsetenv:
22398         Depend on gettext-h, not gettext.
22399
22400 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
22401
22402         * gnulib-tool (func_import): Add support for 'public domain' license.
22403         * modules/alloca, modules/atexit, modules/memmove:
22404         Now public domain, not GPL.
22405         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
22406         * modules/realloc, modules/strerror, modules/strtod:
22407         Now LGPL, not GPL.
22408
22409 2005-07-05  Bruno Haible  <bruno@clisp.org>
22410
22411         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
22412         autoconf CVS. Needed for mingw.
22413
22414 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
22415
22416         Remove the dependency of the strftime module on the tzset module.
22417         * modules/strftime (Depends-on): Remove dependency on tzset.
22418
22419 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
22420
22421         Remove the dependency of the strftime module on the tzset module.
22422         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
22423         gl_FUNC_TZSET_CLOBBER.
22424
22425 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
22426
22427         Remove the dependency of the strftime module on the tzset module.
22428         * lib/strftime.c (my_strftime)
22429         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
22430         Copy the input structure, to work around some of the bug with
22431         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
22432         Solaris releases, you should also use the tzset module, but we won't
22433         require it as a dependency any more since we don't want LGPLed code
22434         to depend on GPLed code.
22435
22436 2005-07-02  Jim Meyering  <jim@meyering.net>
22437
22438         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
22439         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
22440         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
22441         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
22442
22443 2005-07-02  Jim Meyering  <jim@meyering.net>
22444
22445         * lib/backupfile.c (backup_args): Change a `0' to NULL.
22446
22447 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
22448
22449         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
22450         declares only 'struct timespec;' (!).
22451
22452 2005-07-01  Jim Meyering  <jim@meyering.net>
22453
22454         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
22455         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
22456         * lib/save-cwd.c, tempname.c:
22457         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
22458         and don't include <sys/file.h>).
22459
22460 2005-06-29  Jim Meyering  <jim@meyering.net>
22461
22462         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
22463         type name.  Use the variable name instead.
22464         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
22465         Likewise.
22466
22467 2005-06-28  Simon Josefsson  <jas@extundo.com>
22468
22469         * modules/check-version (Files): Add check-version.m4.
22470
22471 2005-06-28  Simon Josefsson  <jas@extundo.com>
22472
22473         * m4/check-version.m4: New file, suggested by Jim Meyering
22474         <jim@meyering.net>.
22475
22476 2005-06-28  Simon Josefsson  <jas@extundo.com>
22477
22478         * lib/check-version.h, lib/check-version.c: New files.
22479
22480 2005-06-28  Simon Josefsson  <jas@extundo.com>
22481
22482         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
22483         collision with global variable.  Better indentation.  Don't
22484         increment buffer pointer beyond buffer end.  Based on comments
22485         from Paul Eggert <eggert@cs.ucla.edu>.
22486
22487         * lib/base64.h: Indent.
22488
22489 2005-06-28  Simon Josefsson  <jas@extundo.com>
22490
22491         * doc/gnulib.texi (Library version handling): New section.
22492
22493 2005-06-28  Jim Meyering  <jim@meyering.net>
22494
22495         * check-module (find_included_lib_files): Hard-code another
22496         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
22497         but modules/fts-lgpl (correctly) does not list those files.
22498
22499         * modules/canonicalize (Files): Add lib/pathmax.h.
22500
22501 2005-06-25  Simon Josefsson  <jas@extundo.com>
22502
22503         * modules/check-version: New file.
22504
22505 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
22506
22507         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
22508         initializer of struct addrinfo, as an indication that we don't
22509         care how many members the structure has.
22510
22511 2005-06-24  Derek Price  <derek@ximbiot.com>
22512         and Bruno Haible  <bruno@clisp.org>
22513
22514         Remove stat module & update lstat.
22515         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
22516         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
22517         * m4/stat.m4: Remove this file.
22518
22519 2005-06-24  Derek Price  <derek@ximbiot.com>
22520         and Bruno Haible  <bruno@clisp.org>
22521
22522         Remove stat module & update lstat.
22523         * lib/stat.c: Remove this file...
22524         (slash_aware_lstat): ...moving this content and its support...
22525         * lib/lstat.c (rpl_lstat): ...into here.
22526         * lib/lstat.h: New file.
22527
22528 2005-06-24  Derek Price  <derek@ximbiot.com>
22529         and Bruno Haible  <bruno@clisp.org>
22530
22531         Remove stat module & update lstat.
22532         * config/srclist.txt (libc sources): Remove stat.
22533
22534 2005-06-24  Derek Price  <derek@ximbiot.com>
22535         and Bruno Haible  <bruno@clisp.org>
22536
22537         Remove stat module & update lstat.
22538         * MODULES.html.sh (stat): Remove.
22539         * MODULES.html: Regenerated.
22540         * modules/lstat (Description): Correct function name.
22541         (Files): Add "lstat.h".
22542         (Depends-on): Remove stat, add xalloc, stat-macros.
22543         * modules/stat: Remove this file.
22544         (Include): Add "lstat.h", remove <sys/stat.h>.
22545
22546 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
22547
22548         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
22549         (ranged_convert): Don't save conversion in a temporary struct.
22550         This causes a warning with GCC 4.0.0, and anyway in the typical
22551         case it's not worth the extra 100 bytes or so of code.
22552         (ranged_convert, __mktime_internal): When calling a function via a
22553         pointer P, use P () rather than (*P) (), as we now assume C89 or
22554         better.
22555
22556 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
22557
22558         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
22559         "who -r" failed to give output.  Problem reported by Tim Waugh.
22560
22561         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
22562         (xcalloc): Use it to avoid needless tests.
22563         Problem reported by Jim Meyering.
22564
22565 2005-06-20  Derek Price  <derek@ximbiot.com>
22566
22567         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
22568         unnecessary for Autoconfs > 2.59c.
22569
22570 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
22571
22572         * lib/argp.h (__option_is_short): Check upper limit of
22573         __key. Isprint() requires its argument to have the value
22574         of an unsigned char or EOF.
22575
22576 2005-06-16  Jim Meyering  <jim@meyering.net>
22577
22578         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
22579         when either N or S is zero.
22580
22581 2005-06-16  Derek Price  <derek@ximbiot.com>
22582
22583         * m4/bison.m4: Declare YACC & YFLAGS precious.
22584
22585 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
22586
22587         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
22588         multibyte string or pattern, fall back on unibyte matching.
22589         Problem reported by James Youngman.
22590
22591 2005-06-08  Bruno Haible  <bruno@clisp.org>
22592
22593         * modules/csharpcomp: New file.
22594         * MODULES.html.sh (C#): Add csharpcomp.
22595
22596 2005-06-08  Bruno Haible  <bruno@clisp.org>
22597
22598         * m4/csharpcomp.m4: New file, from GNU gettext.
22599
22600 2005-06-08  Bruno Haible  <bruno@clisp.org>
22601
22602         * lib/csharpcomp.h: New file, from GNU gettext.
22603         * lib/csharpcomp.c: New file, from GNU gettext.
22604         * lib/csharpcomp.sh.in: New file, from GNU gettext.
22605
22606 2005-06-08  Bruno Haible  <bruno@clisp.org>
22607
22608         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
22609         warning on mingw.
22610
22611 2005-06-07  Derek Price  <derek@ximbiot.com>
22612
22613         Sync from CVS.
22614         * lib/glob_.h: Indent nested #ifdef.
22615
22616 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
22617
22618         Sync from coreutils.
22619         Use "file name" when talking about file names, instead of "filename"
22620         or "path", as per the GNU coding standards.
22621         * lib/mkdir-p.c: Renamed from makepath.c.
22622         (make_dir_parents): Renamed from make_path.  All callers changed.
22623         * lib/mkdir-p.h: Likewise.  All includers changed.
22624         * lib/filenamecat.c: Renamed from path-concat.c.
22625         (file_name_concat): Renamed from path_concat.  All callers changed.
22626         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
22627         * lib/filenamecat.h: Likewise.  All includers changed.
22628         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
22629         in comments or local variable names.
22630         * lib/basename.c: Likewise.
22631         * lib/canonicalize.c, canonicalize.h: Likewise.
22632         * lib/dirname.c, dirname.h: Likewise.
22633         * lib/euidaccess.c: Likewise.
22634         * lib/exclude.c: Likewise
22635         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
22636         * lib/fsusage.c, fsuage.h: Likewise.
22637         * lib/fts.c, fts_.h: Likewise.
22638         * lib/getcwd.c: Likewise.
22639         * lib/getloadavg.c: Likewise.
22640         * lib/mkstemp.c: Likewise.
22641         * lib/mountlist.c, mountlist.h: Likewise.
22642         * lib/openat.c, openat.h: Likewise.
22643         * lib/readlink-stub.c: Likewise.
22644         * lib/readutmp.c, readutmp.h: Likewise.
22645         * lib/rename.c: Likewise.
22646         * lib/rmdir.c: Likewise.
22647         * lib/same.c: Likewise.
22648         * lib/savedir.c: Likewise.
22649         * lib/stripslash.c: Likewise.
22650         * lib/tempname.c: Likewise.
22651         * lib/xreadlink.c: Likewise.
22652         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
22653         All uses changed.
22654         * lib/exclude.h: Likewise.
22655
22656         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
22657         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
22658         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
22659         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
22660         * lib/pathmax.h: Include <limits.h> unconditionally, since other
22661         files have been getting away with it for years (MORE/BSD 4.3
22662         is extinct now).
22663         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
22664         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
22665
22666         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
22667         Define to 256, not 255, as per modern POSIX.
22668
22669 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
22670
22671         Sync from coreutils.
22672         Use "file name" when talking about file names, instead of "filename"
22673         or "path", as per the GNU coding standards.
22674         * MODULES.html.sh: mkdir-p renamed from makepath.
22675         filenamecat renamed from path-concat.
22676         * modules/filenamecat: Renamed from modules/path-concat.
22677         (Files): filenamecat.h and filenamecat.c renamed from
22678         path-concat.h and path-concat.c.
22679         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
22680         (Include): filenamecat.h, not path-concat.h.
22681         * modules/mkdir-p: Renamed from modules/makepath.
22682         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
22683         makepath.c.
22684         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
22685         (Include): mkdir-p.h, not makepath.h.
22686
22687 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
22688
22689         Sync from coreutils.
22690         * m4/mkdir-p.m4: Renamed from makepath.m4.
22691         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
22692         Rename files from makepath.c to mkdir-p.c, and from
22693         makepath.h to mkdir-p.h.
22694         * m4/filenamecat.m4: Renamed from path-concat.m4.
22695         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
22696         Rename files from path-concat.c to filenamecat.c,
22697         and from path-concat.h to filenamecat.h.
22698         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
22699         "file name" in local variables or comments.
22700         * m4/rename.m4: Likewise.
22701
22702 2005-06-01  Bruno Haible  <bruno@clisp.org>
22703
22704         * modules/csharpexec: New file.
22705         * MODULES.html.sh (C#): New section.
22706
22707 2005-06-01  Bruno Haible  <bruno@clisp.org>
22708
22709         * m4/csharp.m4: New file, from GNU gettext.
22710         * m4/csharpexec.m4: New file, from GNU gettext.
22711
22712 2005-06-01  Bruno Haible  <bruno@clisp.org>
22713
22714         * lib/csharpexec.h: New file, from GNU gettext.
22715         * lib/csharpexec.c: New file, from GNU gettext.
22716         * lib/csharpexec.sh.in: New file, from GNU gettext.
22717
22718 2005-05-31  Derek Price  <derek@ximbiot.com>
22719             Paul Eggert  <eggert@cs.ucla.edu>
22720
22721         Sync from cvs.
22722         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
22723
22724 2005-05-31  Derek Price  <derek@ximbiot.com>
22725             Paul Eggert  <eggert@cs.ucla.edu>
22726
22727         Sync from cvs.
22728         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
22729
22730 2005-05-29  Derek Price  <derek@ximbiot.com>
22731
22732         * config/srclist.txt (glob_.h, glob.c): Add these files.
22733
22734 2005-05-29  Derek Price  <derek@ximbiot.com>
22735
22736         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
22737         * modules/glob: New file.
22738         * modules/getlogin_r: Add link to POSIX spec in description.
22739
22740 2005-05-29  Derek Price  <derek@ximbiot.com>
22741             Paul Eggert  <eggert@cs.ucla.edu>
22742
22743         * m4/glob.m4: New file.
22744
22745 2005-05-29  Derek Price  <derek@ximbiot.com>
22746             Paul Eggert  <eggert@cs.ucla.edu>
22747
22748         * lib/glob_.h, lib/glob.c: New files.
22749
22750 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
22751
22752         * modules/fts (Files): Remove m4/inttypes-pri.m4.
22753         * modules/fts-lgpl (Depends-on): Remove gettext.
22754
22755 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
22756
22757         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
22758         and don't require gt_INTTYPES_PRI.
22759
22760 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
22761
22762         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
22763
22764         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
22765         the configuration hassle isn't worth it.
22766         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
22767         (LONGEST_MODIFIER, PRIuMAX): Remove.
22768
22769 2005-05-27  Bruno Haible  <bruno@clisp.org>
22770
22771         * lib/getlogin_r.h: Remove second include of <stddef.h>.
22772
22773 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
22774
22775         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
22776         _POSIX_PTHREAD_SEMANTICS for Solaris.
22777
22778 2005-05-25  Derek Price  <derek@ximbiot.com>
22779
22780         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
22781
22782 2005-05-25  Derek Price  <derek@ximbiot.com>
22783             Paul Eggert  <eggert@cs.ucla.edu>
22784
22785         * modules/getlogin_r, m4/getlogin_r.m4: New files.
22786         * lib/getlogin_r.c, getlogin_r.h: New files.
22787
22788 2005-05-25  Bruno Haible  <bruno@clisp.org>
22789             Derek Price  <derek@ximbiot.com>
22790
22791         * lib/getlogin_r.h: Simplify API documentation.
22792
22793 2005-05-23  Derek Price  <derek@ximbiot.com>
22794
22795         * modules/minmax (Files): Add m4/minmax.m4.
22796         (configure.ac): Add gl_MINMAX.
22797
22798 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
22799
22800         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
22801         so that unistd-safer.h (GPL'ed code) need not be included.
22802
22803 2005-05-22  Bruno Haible  <bruno@clisp.org>
22804
22805         * m4/minmax.m4: New file.
22806         Based on a patch by Derek Price <derek@ximbiot.com>.
22807
22808 2005-05-22  Bruno Haible  <bruno@clisp.org>
22809
22810         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
22811         (INT64_MIN): Fix definition.
22812         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
22813
22814         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
22815         NEED_SIGNED_INT_TYPES.
22816
22817         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
22818         HAVE_SYSTEM_INTTYPES.
22819
22820 2005-05-22  Bruno Haible  <bruno@clisp.org>
22821
22822         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
22823         Also include <sys/param.h> if it defines MIN, MAX.
22824         Based on a patch by Derek Price <derek@ximbiot.com>.
22825
22826 2005-05-21  Jim Meyering  <jim@meyering.net>
22827
22828         * modules/fts (Files): Add m4/inttypes-pri.m4.
22829         (Depends-on): Add lstat and remove gettext.  Alphabetize.
22830
22831 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
22832
22833         New fts module.
22834         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
22835         (setup_dir, free_dir): New functions.
22836         (enter_dir, leave_dir): Define trivial
22837         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
22838         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
22839         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
22840         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
22841         Move to fts-cycle.c.
22842         (fts_open): Use setup_dir.
22843         (fts_close): Use free_dir.
22844         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
22845         This adds a label and some gotos, but the alternatives were messier.
22846         Check for memory allocation failure when entering a dir.
22847         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
22848         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
22849         (FTS): New member fts_cycle, that is a union that contains the
22850         old active_dir_ht and cycle_state.  All uses changed to mention
22851         fts_cycle.ht and fts_cycle.state.
22852         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
22853         fts.c, with the following changes:
22854         (setup_dir, free_dir): New functions.
22855         (enter_dir): Now returns bool.  Return true if successful, false
22856         if memory exhausted.  All callers changed.
22857         Do not bother partly cleaning up on
22858         memory allocation failure; that is free_dir's job.
22859         However, free ad if hash_insert fails, to avoid memory leak.
22860         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
22861         fts->fts_options to see which union member to use.
22862
22863 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
22864
22865         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
22866         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
22867
22868 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
22869
22870         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
22871
22872 2005-05-20  Jim Meyering  <jim@meyering.net>
22873
22874         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
22875         Now a macro, to pacify GCC.
22876
22877 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
22878
22879         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
22880         of -1.
22881
22882 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
22883
22884         * lib/chown.c (rpl_chown): Return -1 on failure.
22885
22886 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
22887
22888         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
22889         Don't check for stddef.h.
22890         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
22891         don't use its results.
22892         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
22893         since we include them unconditionally.  Don't require
22894         AM_STDBOOL_H, since stdbool is a prerequisite.
22895         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
22896         since we assume C89 or better.
22897         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
22898         as we don't use their results.
22899         Don't check for fchdir, memmove, memset, strrchr, as we use
22900         them unconditionally.
22901         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
22902         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
22903
22904 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
22905
22906         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
22907         Include <stddef.h> unconditionally, since we assume C89 now.
22908         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
22909         * lib/fts.c: Include fts_.h first, to check interface.
22910         Do not include intprops.h; no longer needed.
22911         Include cycle-check.h and hash.h, since fts_.h no longer does.
22912         Remove unnecessary casts of closedir to void.
22913         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
22914         decide whether to decrement nlinks.
22915         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
22916         (FTS): Use struct hash_table * instead of Hash_table, so that
22917         we no longer need to include hash.h here.
22918
22919 2005-05-18  Jim Meyering  <jim@meyering.net>
22920
22921         * modules/dirfd (License): Change to LGPL.  Most of the code
22922         is already in the public domain.
22923
22924 2005-05-18  Jim Meyering  <jim@meyering.net>
22925
22926         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
22927         Reported by Yoann Vandoorselaere.
22928
22929 2005-05-17  Jim Meyering  <jim@meyering.net>
22930
22931         * m4/fts.m4: New file, from coreutils.
22932
22933 2005-05-17  Jim Meyering  <jim@meyering.net>
22934
22935         * lib/fts.c, lib/fts_.h: New files, from coreutils.
22936
22937 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
22938
22939         Sync from coreutils.
22940         * m4/unlinkdir.m4: New file.
22941
22942 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
22943
22944         Sync from coreutils.
22945         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
22946         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
22947         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
22948         White space changes only.
22949         * lib/makepath.c (make_path): Port to hosts where leading "//" is
22950         special.
22951         * lib/yesno.c: Include getline.h, not ctype.h.
22952         (yesno): Don't remove leading white space; POSIX doesn't allow it.
22953         Use getline to remove arbitrary restriction on response length.
22954
22955 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
22956
22957         * config/srclist-update: Spell out "Street" in FSF postal
22958         mail address; this is the style the FSF seems to prefer.
22959
22960         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
22961         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
22962         this updates FSF postal mail address.
22963
22964         Sync from coreutils.
22965         * modules/unlinkdir: New file.
22966         * modules/yesno (Depends-on): Add getline.
22967         * MODULES.html.sh (File system functions): Add unlinkdir.
22968
22969 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
22970
22971         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
22972         lib/strsep.h:
22973         Change the initial comment to refer to GPL, not LGPL.
22974         gnulib-tool will change it to LGPL as needed.
22975
22976         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
22977         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
22978         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
22979         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
22980         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
22981         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
22982         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
22983         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
22984         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
22985         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
22986         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
22987         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
22988         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
22989         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
22990         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
22991         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
22992         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
22993         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
22994         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
22995         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
22996         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
22997         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
22998         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
22999         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
23000         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
23001         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
23002         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
23003         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
23004         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
23005         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
23006         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
23007         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
23008         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
23009         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
23010         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
23011         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
23012         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
23013         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
23014         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
23015         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
23016         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
23017         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
23018         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
23019         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
23020         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
23021         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
23022         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
23023         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
23024         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
23025         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
23026         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
23027         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
23028         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
23029         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
23030         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
23031         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
23032         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
23033         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
23034         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
23035         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
23036         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
23037         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
23038         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
23039         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
23040         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
23041         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
23042         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
23043         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
23044         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
23045         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
23046         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
23047         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
23048         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
23049         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
23050         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
23051         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
23052         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
23053         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
23054         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
23055         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
23056         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
23057         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
23058         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
23059         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
23060         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
23061         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
23062         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
23063         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
23064         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
23065         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
23066         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
23067         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
23068         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
23069         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
23070         lib/yesno.c, lib/yesno.h:
23071         Update FSF postal mail address.
23072
23073 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
23074
23075         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
23076         tests/test-memmem.c, tests/test-stpncpy.c:
23077         Update FSF postal mail address.
23078
23079 2005-05-13  Bruno Haible  <bruno@clisp.org>
23080
23081         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
23082         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
23083         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
23084         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
23085         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
23086         Add support for 64-bit integers in the MSVC compiler.
23087
23088 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
23089
23090         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
23091
23092 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
23093
23094         * gnulib-tool (func_import): Sort and uniquify recommended includes.
23095
23096 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
23097
23098         * doc/getdate.texi (General date syntax): Don't say that date
23099         date --iso-8601=ns generates acceptable dates; it doesn't yet.
23100         Problem reported by Nic Ferrier.
23101
23102 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23103
23104         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
23105         specified in ai_socktype. Fix invalid ai_protocol
23106         check. ai_protocol is usually set to 0 or depending on
23107         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
23108         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
23109         ai_socktype / ai_protocol in the returned addrinfo structure.
23110
23111 2005-05-10  Simon Josefsson  <jas@extundo.com>
23112
23113         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
23114         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
23115
23116 2005-05-10  Karl Berry  <karl@gnu.org>
23117
23118         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
23119         (from http://www.gnu.org/licenses).
23120         * doc/COPYING.LIB: also rename to COPYING.LESSER.
23121         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
23122         fdl.texi suffices.
23123
23124 2005-05-10  Karl Berry  <karl@gnu.org>
23125
23126         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
23127         (COPYING.DOC): remove.
23128
23129         * config/srclist-update: new FSF address.
23130
23131 2005-05-10  Derek Price  <derek@ximbiot.com>
23132
23133         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
23134         possible.
23135
23136 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23137             Bruno Haible  <bruno@clisp.org>
23138
23139         * modules/inet_ntop: New file.
23140         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
23141         inet_ntop.
23142
23143 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23144             Bruno Haible  <bruno@clisp.org>
23145
23146         * m4/inet_ntop.m4: New file.
23147
23148 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23149             Bruno Haible  <bruno@clisp.org>
23150
23151         * lib/inet_ntop.h: New file.
23152         * lib/inet_ntop.c: New file, from glibc with modifications.
23153
23154 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
23155
23156         * modules/time_r (License): Change to LGPL.
23157         * modules/extensions (License): Change to LGPL.  Actually,
23158         the license is more permissive than that, but currently gnulib-tool
23159         doesn't know how to handle more-permissive licenses.
23160
23161         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
23162         Problem reported by Dave Love.
23163
23164 2005-05-08  Jim Meyering  <jim@meyering.net>
23165
23166         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
23167         blank.
23168
23169 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
23170
23171         * modules/argmatch (Depends-on): Add stdbool.
23172         * modules/backupfile (Depends-on): Likewise.
23173         * modules/chdir-long (Depends-on): Likewise.
23174         * modules/closeout (Depends-on): Likewise.
23175         * modules/cycle-check (Depends-on): Likewise.
23176         * modules/dirname (Depends-on): Likewise.
23177         * modules/fnmatch (Depends-on): Likewise.
23178         * modules/fsusage (Depends-on): Likewise.
23179         * modules/fwriteerror (Depends-on): Likewise.
23180         * modules/getcwd (Depends-on): Likewise.
23181         * modules/getloadavg (Depends-on): Likewise.
23182         * modules/hard-locale (Depends-on): Likewise.
23183         * modules/makepath (Depends-on): Likewise.
23184         * modules/mountlist (Depends-on): Likewise.
23185         * modules/nanosleep (Depends-on): Likewise.
23186         * modules/posixtm (Depends-on): Likewise.
23187         * modules/quotearg (Depends-on): Likewise.
23188         * modules/readtokens (Depends-on): Likewise.
23189         * modules/readtokens0 (Depends-on): Likewise.
23190         * modules/readutmp (Depends-on): Likewise.
23191         * modules/save-cwd (Depends-on): Likewise.
23192         * modules/strftime (Depends-on): Likewise.
23193         * modules/userspec (Depends-on): Likewise.
23194         * modules/utimecmp (Depends-on): Likewise.
23195         * modules/xgetcwd (Depends-on): Likewise.
23196         * modules/xnanosleep (Depends-on): Likewise.
23197         * modules/xstrtod (Depends-on): Likewise.
23198         * modules/yesno (Depends-on): Likewise.
23199
23200 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
23201
23202         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
23203         needless checks.
23204
23205 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
23206
23207         Merge from coreutils.  Among other things,
23208         add bulletproofing for cases where stdin, stdout, or stderr are closed.
23209         * lib/fd-safer.c: New file.
23210         * lib/fcntl-safer.h, open-safer.c: Remove.
23211         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
23212         * lib/dup-safer.c: Include unistd-safer.h first.
23213         Don't include errno.h.
23214         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
23215         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
23216         * lib/file-type.c: Rely on file-type.h change.
23217         * lib/getloadavg.c: Include unistd-safer.h.
23218         (getloadavg): Use safer open.
23219         * lib/getusershell.c: Include "stdio-safer.h".
23220         (getusershell): Use safer fopen.
23221         * lib/long-options.c (long_options): Use NULL rather than 0.
23222         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
23223         'free'.
23224         * lib/modechange.c: Likewise.
23225         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
23226         (MODE_DONE): New constant.
23227         (struct mode_change): Remove 'next' member.
23228         (make_node_op_equals): New function; like the old one of the
23229         same name, except it allocates an array.
23230         (mode_compile, mode_create_from_ref): Use it.
23231         (mode_compile): Allocate result as an array, not a linked list.
23232         Parse octal string ourself, so that we catch mistakes like "+0".
23233         (mode_adjust): Arg is an array, not a linked list.
23234         * lib/modechange.c: Include stat-macros.h, xalloc.h.
23235         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
23236         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
23237         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
23238         Remove.  This is now stat-macros.h's job.
23239         (talloc): Remove.  All callers replaced by xalloc, so that
23240         our invokers don't have to worry about reporting memory failures.
23241         (make_node_op_equals): Remove.
23242         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
23243         New constants.
23244         (struct mode_change): Moved here from modechange.h.
23245         (mode_append_entry): Remove.
23246         (mode_compile): Remove MASKED_OPS arg, since it encouraged
23247         apps to have incorrect behavior.  Use simpler algorithm for head
23248         and tail.  Don't futz with umask; that's now the job of mode_adjust.
23249         Detect more invalid usages rather than having somewhat-random behavior.
23250         Don't insert an "a=" action, as that leads to incorrect behavior.
23251         (mode_compile, mode_create_from_ref): Return NULL on error instead
23252         of an enum, since now there's only one way to have an error.  All
23253         callers changed.
23254         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
23255         at the correct time.  Simplify calculation of "+u" and its ilk.
23256         Don't mishandle "+X".
23257         (mode_free): Remove "register" and localize decls.
23258         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
23259         (struct mode_change): Move to modechange.c; callers don't
23260         need to see this stuff.
23261         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
23262         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
23263         (mode_change, mode_adjust): Reflect the new signatures noted above.
23264         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
23265         that might redefine system include files.
23266         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
23267         (my_usleep): Use NULL rather than (void *) 0.
23268         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
23269         Use siginterrupt to specify that system calls should be interrupted.
23270         (rpl_nanosleep): Move initialization of suspended closer to call of
23271         my_usleep.
23272         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
23273         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
23274         (desirable_utmp_entry): New function.
23275         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
23276         using x2nrealloc, to simplify logic.
23277         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
23278         size calculation.  Do not assume utmp file is a regular file.
23279         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
23280         (READ_UTMP_CHECK_PIDS): New constant.
23281         * lib/save-cwd.c: Include unistd-safer.h.
23282         (save_cwd): Use fd_safer.
23283         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
23284         [!_LIBC] Include "stat-macros.h" instead.
23285         * lib/unistd-safer.h (fd_safer): New decl.
23286
23287 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
23288
23289         * modules/getloadavg (Depends-on): Add unistd-safer.
23290         * modules/getusershell (Depends-on): Add stdio-safer.
23291         * modules/lstat (Depends-on): Remove xalloc.
23292         * modules/mkstemp (Depends-on): Add stat-macros.
23293         * modules/modechange (Depends-on): Remove xstrtol.
23294         Add stat-macros, xalloc.
23295         * modules/save-cwd (Depends-on): Add unistd-safer.
23296         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
23297         * modules/unistd-safer (Files): Add lib/fd-safer.c
23298         (Makefile.am): Remove lib_SOURCES.
23299
23300         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
23301         Remove fcntl-safer; unistd-safer supersedes it.
23302
23303 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
23304
23305         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
23306         AC_HEADER_STAT.
23307         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
23308         (gl_PREREQ_CHOWN): Remove.
23309         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
23310         it.  Don't require AC_HEADER_STAT.
23311         (gl_PREREQ_LSTAT): Remove.
23312         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
23313         Don't require AC_HEADER_STAT.
23314         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
23315         (gl_PREREQ_RMDIR): Remove.
23316         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
23317         mention stat-macros.h or AC_HEADER_STAT, since we'll make
23318         the stat-macros module a prerequisite.
23319         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
23320         * m4/filemode.m4 (gl_FILEMODE): Likewise.
23321         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
23322         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
23323         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
23324         variable names.
23325         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
23326         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
23327         variable prefixes.
23328         * m4/fcntl-safer.m4: Remove.
23329         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
23330         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
23331         Invoke gl_PREREQ_FD_SAFER.
23332         (gl_PREREQ_FD_SAFER): New macro.
23333         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
23334         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
23335         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
23336         Remove duplicate call to AC_LIBOBJ(readutmp).
23337         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
23338
23339         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
23340         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
23341
23342 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
23343
23344         * MODULES.html.sh (Misc): Add byteswap.
23345
23346 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
23347
23348         * modules/getcwd (Depends-on): Add extensions.
23349         * modules/openat (Depends-on): Likewise.
23350
23351 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
23352
23353         * modules/byteswap: New file.
23354
23355 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
23356
23357         * m4/byteswap.m4: New file.
23358
23359 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
23360
23361         * lib/byteswap_.h: New file.
23362
23363 2005-04-25  Karl Berry  <karl@gnu.org>
23364
23365         * m4/gettext.m4: Update from GNU gettext 0.14.4.
23366
23367 2005-04-25  Albert Chin  <china@thewrittenword.com>
23368
23369         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
23370         Toolkit C bug.
23371
23372 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
23373
23374         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
23375         (func_ln_if_changed) Remove forcibly for no error message
23376         in case file does not exist.
23377
23378 2005-04-19  Simon Josefsson  <jas@extundo.com>
23379
23380         * gnulib-tool (Options): Make --symlink mean --symbolic.
23381
23382 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
23383
23384         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
23385
23386 2005-04-16  Simon Josefsson  <jas@extundo.com>
23387
23388         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
23389
23390 2005-04-15  Simon Josefsson  <jas@extundo.com>
23391
23392         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
23393
23394 2005-04-15  Simon Josefsson  <jas@extundo.com>
23395
23396         * gnulib-tool: Rename --symlink to --symbolic.
23397
23398 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
23399
23400         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
23401         symbolic links to files instead of copying/moving.  Add --aux-dir,
23402         specifying directory relative --dir where auxiliary build tools
23403         are placed.
23404
23405 2005-04-14  Bruno Haible  <bruno@clisp.org>
23406
23407         * modules/allocsa (License): Change to LGPL.
23408         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
23409
23410 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
23411
23412         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
23413         that "UTC +1 second" continues to work.  Problem reported
23414         by Dmitry V. Levin.
23415         (relunit_snumber): New rule.
23416         (relunit): Use it.
23417
23418 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
23419
23420         * lib/getdate.y (universal_time_zone_table): New constant.
23421         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
23422         universal_time_zone_table.
23423         (lookup_zone): Prefer universal_time_zone_table to
23424         local_time_zone_table, so that "GMT" time stamps are allowed in
23425         London during the summer.  Problem reported by Ian Abbott.
23426
23427 2005-04-12  Jim Meyering  <jim@meyering.net>
23428
23429         * lib/human.c (humblock): Set *options even when returning due to
23430         xstrtoumax conversion failure.  Thanks to a used-uninitialized
23431         warning from gcc-4.
23432
23433 2005-04-09  Jim Meyering  <jim@meyering.net>
23434
23435         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
23436         -Wuninitialized: initialize tm0.tm_year.
23437
23438 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
23439
23440         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
23441         count, since there's no maximum.  All uses changed.
23442         Add member dsts_seen.
23443         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
23444         not being INT_MAX.
23445         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
23446         Use pc_rels_seen to decide whther a date is absolute.
23447
23448         * lib/getdate.y (number): Don't overwrite year.
23449         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
23450         check.
23451
23452 2005-04-02  Simon Josefsson  <jas@extundo.com>
23453
23454         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
23455         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
23456
23457 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
23458
23459         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
23460         where no absolute path name can be longer than PATH_MAX.
23461
23462 2005-03-27  Jim Meyering  <jim@meyering.net>
23463
23464         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
23465
23466 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
23467
23468         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
23469         "one's complement" -> "ones' complement" in comment, as per Knuth.
23470         "value of type" -> "type or expression" in comment.
23471         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
23472
23473 2005-03-26  Jim Meyering  <jim@meyering.net>
23474
23475         Comment nits.
23476         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
23477         Correct typos: s/or/of/.
23478
23479 2005-03-26  Jim Meyering  <jim@meyering.net>
23480
23481         * modules/check-include-files: Move to ../ and rename to...
23482         * check-module: ...this.
23483
23484 2005-03-25  Jim Meyering  <jim@meyering.net>
23485
23486         * modules/xvasprintf (Files): Add xalloc.h.
23487
23488 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
23489
23490         * modules/gettext (Files): config/config.rpath ->
23491         build-aux/config.rpath
23492         * modules/iconv (Files): Likewise.
23493         Problem reported by Oskar Liljeblad.
23494
23495 2005-03-23  Jim Meyering  <jim@meyering.net>
23496
23497         * modules/check-include-files: New script to check for
23498         missing dependencies, multiple includes, etc.
23499
23500         * modules/c-strtold (Depends-on): Add xalloc.
23501         * modules/c-strtod (Depends-on): Add xalloc.
23502         * modules/hash (Depends-on): Add xalloc.
23503         (Files): Remove lib/xalloc.h.
23504
23505         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
23506         * modules/userspec (Files): Add lib/inttostr.h.
23507
23508 2005-03-23  Jim Meyering  <jim@meyering.net>
23509
23510         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
23511
23512 2005-03-22  Jim Meyering  <jim@meyering.net>
23513
23514         * modules/stat-macros: New module.
23515         * modules/canonicalize, modules/euidaccess, modules/file-type,
23516         * modules/filemode, modules/lchown, modules/makepath,
23517         * modules/rmdir, modules/stat: Depend on new stat-macros module
23518         rather than listing lib/stat-macros.h manually.
23519         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
23520
23521 2005-03-22  Jim Meyering  <jim@meyering.net>
23522
23523         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
23524
23525 2005-03-22  Bruno Haible  <bruno@clisp.org>
23526
23527         * config/srclist.txt: Replace target directory 'config' with
23528         'build-aux'.
23529         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
23530         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
23531         ../build-aux/.
23532
23533 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
23534
23535         * modules/chdir-long (Depends-on): Add mempcpy.
23536
23537         * modules/acl, modules/backupfile, modules/c-strtod,
23538         modules/c-strtold, modules/canon-host, modules/canonicalize,
23539         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
23540         modules/exclude, modules/exitfail, modules/file-type,
23541         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
23542         modules/getdate, modules/getline, modules/getpagesize,
23543         modules/getpass, modules/getugroups, modules/group-member,
23544         modules/hard-locale, modules/hash, modules/human, modules/idcache,
23545         modules/inttostr, modules/long-options, modules/makepath,
23546         modules/md5, modules/memcasecmp, modules/memcoll,
23547         modules/modechange, modules/mountlist, modules/path-concat,
23548         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
23549         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
23550         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
23551         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
23552         modules/strftime, modules/strndup, modules/strverscmp,
23553         modules/timespec, modules/unlocked-io, modules/userspec,
23554         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
23555         modules/yesno:
23556         Remove lib_SOURCES line from Makefile.am section, as this is now
23557         done automatically by the corresponding Autoconf macro.
23558
23559 2005-03-21  Jim Meyering  <jim@meyering.net>
23560
23561         Changes imported from coreutils.
23562
23563         * lib/cycle-check.c: Don't include xalloc.h.
23564
23565         * lib/path-concat.c: Don't include assert.h.
23566         (path_concat): Remove assertion that would have triggered
23567         for ABASE starting with more than one slash.
23568         Reported by Andreas Schwab.
23569
23570         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
23571         properly when ABASE is an absolute file name.
23572         Correct the description of this function.
23573         Include <assert.h>.
23574         Add an assertion and a test driver.
23575         This fixes a bug introduced on 2004-07-02.
23576         Andreas Schwab reported the resulting failure of cp --parents:
23577         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
23578
23579 2005-03-21  Jim Meyering  <jim@meyering.net>
23580
23581         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
23582         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
23583
23584 2005-03-21  Jim Meyering  <jim@meyering.net>
23585         and  Paul Eggert  <eggert@cs.ucla.edu>
23586
23587         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
23588         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
23589         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
23590         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
23591         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
23592         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
23593         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
23594         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
23595         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
23596         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
23597         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
23598         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
23599         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
23600         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
23601         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
23602         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
23603         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
23604         for these modules.
23605
23606 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
23607
23608         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
23609         (which shouldn't happen), generate nothing instead of returning 0
23610         immediately, so that nstrftime (NULL, ...) doesn't return 0.
23611
23612 2005-03-16  Bruno Haible  <bruno@clisp.org>
23613
23614         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
23615         HAVE_LONGLONG_64BIT.
23616
23617 2005-03-16  Bruno Haible  <bruno@clisp.org>
23618
23619         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
23620         HAVE_LONGLONG_64BIT.
23621
23622 2005-03-16  Bruno Haible  <bruno@clisp.org>
23623
23624         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
23625         HAVE_LONGLONG_64BIT.
23626
23627 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
23628
23629         * lib/strftime.c (my_strftime): Prepend space to format so that we can
23630         reliably distinguish strftime failure from empty output on POSIX
23631         hosts.
23632
23633 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
23634
23635         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
23636         (iconv_string): Don't guess a size-zero buffer, as that might cause
23637         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
23638         result would be 'too large', where 'too large' is (heuristically)
23639         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
23640         overflow concerns.  This will prevent some unwanted malloc failures
23641         when the inputs are very large.
23642
23643 2005-03-15  Karl Berry  <karl@gnu.org>
23644
23645         * config/srclist.txt (config.rpath): from gettext.
23646         * config/config.rpath: update.
23647
23648 2005-03-15  Bruno Haible  <bruno@clisp.org>
23649
23650         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
23651         to 'negate'.
23652
23653         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
23654         variable.
23655
23656         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
23657         results.
23658
23659 2005-03-14  Simon Josefsson  <jas@extundo.com>
23660
23661         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
23662         <fx@gnu.org>.
23663
23664 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
23665
23666         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
23667         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
23668         intprops.h.
23669         * lib/strtol.c: Likewise.
23670
23671 2005-03-14  Jim Meyering  <jim@meyering.net>
23672
23673         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
23674         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
23675         to be nonzero so that we (and caller) can detect the difference
23676         between a valid zero-length expansion and an error return, even
23677         when the underlying strftime fails before writing anything into
23678         that location.
23679
23680 2005-03-14  Bruno Haible  <bruno@clisp.org>
23681
23682         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
23683         Update from GNU gettext 0.14.3.
23684
23685 2005-03-10  Jim Meyering  <jim@meyering.net>
23686
23687         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
23688
23689 2005-03-10  Jim Meyering  <jim@meyering.net>
23690
23691         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
23692         so that this module works on systems without fchdir.
23693
23694 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
23695
23696         Factor int-properties macros into a single file, except for
23697         glibc-related files.
23698         * lib/intprops.h: New file.
23699         * lib/getloadavg.c: Include it instead of limits.h.
23700         (INT_STRLEN_BOUND): Remove.
23701         * lib/human.c: Include intprops.h.
23702         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
23703         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
23704         302/1000.
23705         * lib/inttostr.h: Include intprops.h instead of limits.h.
23706         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
23707         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
23708         for consistency with intprops.h.
23709         (time_t_is_integer, twos_complement_arithmetic): Use them.
23710         * lib/sig2str.h: Include <signal.h>, intprops.h.
23711         (INT_STRLEN_BOUND): Remove.
23712         * lib/strftime.c (TYPE_SIGNED): Remove.
23713         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
23714         * lib/strtol.c: Adjust comments to match intprops.h.
23715         * lib/userspec.c: Include intprops.h.
23716         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
23717         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
23718         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
23719         instead of rolling our own expressions.
23720         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
23721
23722         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
23723         instead of int.
23724         (my_strftime): Do not mishandle years close to INT_MAX, by doing
23725         the right thing even if adding 1900 would overflow.  Similarly
23726         for tm_mon + 1 and tm_yday + 1.
23727         Make %Y always equivalent to %C%y, and similarly for %G and %g.
23728         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
23729         (DO_SIGNED_NUMBER): New macro.
23730         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
23731
23732 2005-03-07  Bruno Haible  <bruno@clisp.org>
23733
23734         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
23735
23736 2005-03-07  Bruno Haible  <bruno@clisp.org>
23737
23738         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
23739
23740 2005-03-04  Derek R. Price  <derek@ximbiot.com>
23741
23742         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
23743         (func_import): Only replace files via --import when they have actually
23744         changed.
23745
23746 2005-03-03  Derek R. Price  <derek@ximbiot.com>
23747
23748         * m4/mmap-anon.m4: New file.
23749         * m4/pagealign_alloc.m4: New file.
23750
23751 2005-03-03  Derek R. Price  <derek@ximbiot.com>
23752             Bruno Haible  <bruno@clisp.org>
23753
23754         * modules/pagealign_alloc: New file.
23755         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
23756
23757 2005-03-03  Derek R. Price  <derek@ximbiot.com>
23758             Bruno Haible  <bruno@clisp.org>
23759
23760         * lib/pagealign_alloc.h: New file.
23761         * lib/pagealign_alloc.c: New file.
23762
23763 2005-03-03  Bruno Haible  <bruno@clisp.org>
23764
23765         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
23766         Use an all-permissive copyright notice, recommended by RMS.
23767
23768 2005-03-02  Bruno Haible  <bruno@clisp.org>
23769
23770         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
23771         of AIX, the replacement has to be done only after <string.h> is
23772         included, therefore not in config.h. stpncpy.h does the replacement,
23773         and stpncpy.c uses it.
23774
23775 2005-03-02  Bruno Haible  <bruno@clisp.org>
23776
23777         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
23778         stpncpy.c uses it.
23779
23780 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
23781
23782         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
23783         The workaround isn't strictly needed for POSIX conformance, and
23784         it's too much of a pain to configure and maintain.  We'll ask
23785         people to fix their kernels instead.
23786         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
23787         (NANOSLEEP_BUG_WORKAROUND): Remove.
23788         (xnanosleep): Remove the workaround.
23789
23790 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
23791
23792         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
23793         Reported by Derek Price.
23794         (Include): Add "timespec.h".
23795
23796         * modules/xnanosleep (Depends-on): Remove gethrxtime.
23797
23798 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
23799
23800         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
23801         to detect nanosleep bug.
23802
23803 2005-03-01  Bruno Haible  <bruno@clisp.org>
23804
23805         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
23806
23807 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
23808
23809         * modules/gethrxtime: New file.
23810         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
23811         (Depends-on): Add gethrxtime.
23812         (configure.ac): Add gl_XNANOSLEEP.
23813         (Makefile.am): Remove lib_SOURCES line.
23814
23815 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
23816
23817         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
23818         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
23819
23820 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
23821
23822         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
23823         * lib/timespec.h (gettime): Return void, since it always
23824         succeeds now.  All uses changed.
23825         * lib/gettime.c (gettime) Likewise.
23826         [HAVE_NANOTIME]: Prefer nanotime.
23827         Assume gettimeofday succeeds, as POSIX requires.
23828         Assime time () succeeds, since other code already does.
23829         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
23830         (timespec_subtract): Remove.
23831         (NANOSLEEP_BUG_WORKAROUND): New constant.
23832         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
23833         things considerably.  Use it only on GNU/Linux hosts, since the
23834         workaround shouldn't be needed elsewhere.
23835
23836 2005-02-24  Bruno Haible  <bruno@clisp.org>
23837
23838         * modules/gettext (Files): Add m4/glibc2.m4.
23839
23840 2005-02-24  Bruno Haible  <bruno@clisp.org>
23841
23842         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
23843         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
23844         * m4/progtest.m4:
23845         Update from GNU gettext 0.14.2.
23846         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
23847
23848 2005-02-24  Bruno Haible  <bruno@clisp.org>
23849
23850         * lib/localcharset.c: Update from GNU gettext 0.14.2.
23851         * lib/config.charset: Update from GNU gettext 0.14.2.
23852
23853 2005-02-24  Bruno Haible  <bruno@clisp.org>
23854
23855         * lib/gettext.h: Update from GNU gettext 0.14.2.
23856
23857 2005-02-23  Simon Josefsson  <jas@extundo.com>
23858
23859         * m4/iconvme.m4: New file.
23860
23861 2005-02-23  Jim Meyering  <jim@meyering.net>
23862
23863         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
23864         change.
23865         Thanks to Bruno Haible for catching it.
23866
23867 2005-02-22  Simon Josefsson  <jas@extundo.com>
23868
23869         * modules/iconvme: New file.
23870
23871         * MODULES.html.sh: Add iconvme.
23872
23873 2005-02-22  Simon Josefsson  <jas@extundo.com>
23874
23875         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
23876
23877 2005-02-22  Simon Josefsson  <jas@extundo.com>
23878
23879         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
23880
23881 2005-02-22  Jim Meyering  <jim@meyering.net>
23882
23883         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
23884         s/ifndef/ifdef/.
23885
23886 2005-02-20  Neil Conway  <neilc@samurai.com>
23887
23888         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
23889         returned by OSX/Darwin if the specified buffer is not large
23890         enough for the hostname.
23891
23892 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
23893
23894         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
23895         pass it to _help, otherwise the latter coredumps trying to
23896         dereference state.root_argp.
23897
23898 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
23899
23900         * modules/chdir-long (Depends-on): Add memrchr.
23901         * modules/memrchr (Files): Add lib/memrchr.h.
23902         (Include): "memrchr.h".
23903
23904 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
23905
23906         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
23907
23908 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
23909
23910         * lib/memrchr.h: New file.
23911         * lib/chdir-long.c: Include it.
23912         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
23913         Don't bother including stddef.h.
23914
23915 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
23916
23917         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
23918         inclusion.
23919         Include <sys/types.h>, for dev_t.
23920         (ME_DUMMY, ME_REMOTE): Move from here....
23921         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
23922         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
23923         Dmitry V. Levin.
23924         Include mountlist.h first, to test the interface.
23925
23926 2005-01-29  Bruno Haible  <bruno@clisp.org>
23927
23928         * lib/progname.c (program_name): Initialize.
23929         Needed when linking statically on MacOS X.
23930
23931 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
23932
23933         Sync from coreutils.
23934         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
23935         (Depends-on): Add c-strtod.
23936         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
23937
23938 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
23939
23940         Sync from coreutils.
23941         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
23942
23943         Remove files that are specific to coreutils.
23944         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
23945
23946 2005-01-28  Bruno Haible  <bruno@clisp.org>
23947
23948         * modules/javacomp: New file.
23949         * MODULES.html.sh (Java): Add javacomp.
23950
23951 2005-01-28  Bruno Haible  <bruno@clisp.org>
23952
23953         * m4/javacomp.m4: New file, from GNU gettext.
23954
23955 2005-01-28  Bruno Haible  <bruno@clisp.org>
23956
23957         * lib/javacomp.sh.in: New file, from GNU gettext.
23958         * lib/javacomp.h: New file, from GNU gettext.
23959         * lib/javacomp.c: New file, from GNU gettext.
23960
23961 2005-01-26  Simon Josefsson  <jas@extundo.com>
23962
23963         * lib/gai_strerror.c: Use GPL in header.
23964
23965 2005-01-26  Bruno Haible  <bruno@clisp.org>
23966
23967         * modules/javaexec: New file.
23968         * MODULES.html.sh (Java): Add javaexec.
23969
23970 2005-01-26  Bruno Haible  <bruno@clisp.org>
23971
23972         * m4/javaexec.m4: New file, from GNU gettext.
23973
23974 2005-01-26  Bruno Haible  <bruno@clisp.org>
23975
23976         * lib/javaexec.sh.in: New file, from GNU gettext.
23977         * lib/javaexec.h: New file, from GNU gettext.
23978         * lib/javaexec.c: New file, from GNU gettext.
23979
23980 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
23981
23982         * modules/lchown (Depends-on): Remove lchown.h
23983
23984 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
23985
23986         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
23987         must be defined if the header file was not found, in order
23988         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
23989
23990 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
23991
23992         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
23993         initializers for struct pentry_state.
23994         (__argp_error): Check return value of __asprintf
23995         (__argp_failure): Translate error message
23996
23997         * lib/argp-parse.c: Removed braces around the expansion of N_()
23998
23999 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24000
24001         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
24002         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
24003         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
24004         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
24005         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
24006         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
24007         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
24008         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
24009         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
24010         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
24011         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
24012         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
24013         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
24014         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
24015         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
24016         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
24017         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
24018         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
24019         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
24020         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
24021         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
24022         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
24023         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
24024         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
24025         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
24026         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
24027         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
24028         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
24029         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
24030         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
24031         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
24032         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
24033         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
24034         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
24035         xstrtol.m4, xstrtoumax.m4, yesno.m4:
24036         Use an all-permissive copyright notice, recommended by RMS.
24037
24038 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
24039
24040         * modules/chdir-long (Depends-on): Remove mempcpy.
24041
24042 2005-01-21  Jim Meyering  <jim@meyering.net>
24043
24044         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
24045         same value as for Solaris 9.
24046
24047         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
24048         component length.  This included changing the parameter to be
24049         of type `char *' rather than `char const *'.
24050         * lib/chdir-long.h (chdir_long): Update prototype.
24051
24052         * lib/openat.c (fdopendir, fstatat): New functions.
24053         * lib/openat.h: Include headers required for use of DIR and struct
24054         stat.
24055         [AT_SYMLINK_NOFOLLOW]: Define.
24056         (fdopendir, fstatat): Add prototypes.
24057
24058 2005-01-21  Bruno Haible  <bruno@clisp.org>
24059
24060         * modules/classpath: New file.
24061         * MODULES.html.sh (Java): Add classpath.
24062
24063 2005-01-21  Bruno Haible  <bruno@clisp.org>
24064
24065         * lib/classpath.h: New file, from GNU gettext.
24066         * lib/classpath.c: New file, from GNU gettext.
24067
24068 2005-01-20  Simon Josefsson  <jas@extundo.com>
24069
24070         * modules/version-etc-fsf: New file.
24071
24072 2005-01-20  Simon Josefsson  <jas@extundo.com>
24073
24074         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
24075         * lib/version-etc.c: Remove version_etc_copyright.
24076         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
24077         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
24078
24079 2005-01-20  Simon Josefsson  <jas@extundo.com>
24080
24081         * lib/base64.h (isbase64): Add.
24082
24083         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
24084         using a unsigned prototype, don't inline.
24085         (base64_decode): Use it.
24086
24087 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
24088
24089         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
24090         it.
24091
24092 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
24093
24094         * lib/save-cwd.c (save_cwd): Remove code to support the case
24095         where fchdir is missing or flaky.
24096
24097 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
24098
24099         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
24100
24101 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
24102
24103         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
24104         AC_LIBSOURCES now does this.
24105         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
24106         with new ullong_max module.
24107
24108 2005-01-19  Bruno Haible  <bruno@clisp.org>
24109
24110         * modules/sh-quote: New file.
24111         * MODULES.html.sh (Executing programs): Add sh-quote.
24112
24113 2005-01-19  Bruno Haible  <bruno@clisp.org>
24114
24115         * lib/sh-quote.h: New file, from GNU gettext.
24116         * lib/sh-quote.c: New file, from GNU gettext.
24117
24118 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
24119
24120         Merge from coreutils.
24121         * m4/ullong_max.m4: New file.
24122         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
24123         (gl_MACROS): Assume localeconv exists.
24124
24125 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
24126
24127         Merge changes from coreutils, as described below in several
24128         changelogs dated today.
24129
24130         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
24131         (O_DIRECTORY): Remove; not needed here, since "." must be
24132         a directory.  All uses removed.
24133         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
24134         universal on Suns, and we also need to test for IRIX.
24135         Revamp code to use 'if' rather than '#if'.
24136         Avoid unnecessary comparison of cwd->desc to 0.
24137
24138         * lib/utimens.c (futimens): Robustify the previous patch, by checking
24139         for known valid error numbers rather than observed invalid ones.
24140
24141 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
24142
24143         * modules/ullong_max: New file.
24144
24145         * modules/chdir-long, modules/openat: New files.
24146         * modules/save-cwd (Depends-on): Depend on chdir-long.
24147         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
24148
24149 2005-01-18  Jim Meyering  <jim@meyering.net>
24150
24151         Merge from coreutils.
24152         * m4/chdir-long.m4, m4/openat.m4: New files.
24153         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
24154         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
24155         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
24156         is sane and DOES follow symlinks.  Besides, testing 20 different
24157         systems found no broken chown implementations.
24158         Prompted by a change in rsync's copy of this macro.
24159         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
24160
24161         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
24162
24163         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
24164         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
24165         NULL-means-set-to-current-time semantics.
24166         Remove temporary file immediately, rather than waiting
24167         for configure's at-exit trap code to do it.
24168
24169 2005-01-18  Jim Meyering  <jim@meyering.net>
24170
24171         * lib/version-etc.c (version_etc_copyright): Update copyright date.
24172
24173         * lib/utimens.c (futimens): Account for the fact that futimes
24174         can also fail with errno == ENOSYS or errno == ENOENT.
24175         Patch from Dmitry V. Levin.
24176
24177         Change the name of the robust chdir function from chdir to chdir_long.
24178         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
24179         (restore_cwd): Use chdir_long, not chdir.
24180         * lib/chdir-long.c: Renamed from chdir.c.
24181         * lib/chdir-long.h: Renamed from chdir.h.
24182         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
24183         Hurd.
24184
24185 2005-01-18  Bruno Haible  <bruno@clisp.org>
24186
24187         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
24188         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
24189         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
24190         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
24191         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
24192         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
24193         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
24194         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
24195         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
24196         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
24197         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
24198         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
24199         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
24200         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
24201         Use an all-permissive copyright notice, recommended by RMS.
24202
24203 2005-01-18  Bob Proulx  <bob@proulx.com>
24204
24205         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
24206         simplify offsetof() macro construct to avoid compile failure with
24207         native HP-UX 11.0 ANSI C compiler.
24208
24209 2005-01-17  Bruno Haible  <bruno@clisp.org>
24210
24211         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
24212         redundant because stpncpy.m4 takes care of it.
24213
24214 2005-01-17  Bruno Haible  <bruno@clisp.org>
24215
24216         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
24217
24218 2005-01-17  Bruno Haible  <bruno@clisp.org>
24219
24220         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
24221         used.
24222
24223 2005-01-17  Bruno Haible  <bruno@clisp.org>
24224
24225         * lib/fwriteerror.h (fwriteerror): Change specification to include
24226         fclose.
24227         * lib/fwriteerror.c: Include <stdbool.h>.
24228         (fwriteerror): At the end, close the file stream. Record whether
24229         stdout was already closed.
24230
24231 2005-01-17  Bruno Haible  <bruno@clisp.org>
24232
24233         * lib/execute.c (environ): Declare if needed.
24234         * lib/pipe.c (environ): Likewise.
24235         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
24236
24237 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
24238
24239         * modules/argp: Depend on vsnprintf
24240
24241 2005-01-10  Jim Meyering  <jim@meyering.net>
24242
24243         * modules/closeout (Depends-on): Add atexit.
24244
24245 2005-01-06  Bruno Haible  <bruno@clisp.org>
24246
24247         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
24248
24249 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
24250
24251         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
24252         definitions to be after all include files, to avoid collisions.
24253         Problem reported by Bob Proulx.
24254
24255 2005-01-04  Jim Meyering  <jim@meyering.net>
24256
24257         Changes imported from coreutils.
24258         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
24259         as the mkstemp template, use a temporary directory and an
24260         8.3-friendly template to avoid trouble on systems like DJGPP.
24261         Reported by Juan M. Guerrero via Stepan Kasal.
24262         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
24263         close. Remove the temporary directory right away, rather than waiting
24264         for configure's at-exit trap code to do it.
24265         Suggestion from Stepan Kasal.
24266
24267 2005-01-01  Simon Josefsson  <jas@extundo.com>
24268
24269         * gnulib-tool: Print #include directives when --import'ing.
24270
24271 2004-12-28  Simon Josefsson  <jas@extundo.com>
24272
24273         * tests/test-base64.c: Include required header files.  Remove
24274         unused variables.
24275
24276 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
24277
24278         * modules/error (Depends-on): Remove gettext.
24279
24280 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
24281
24282         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
24283         not needed.  This removes a dependency on the gettext module.
24284         [defined _LIBC]: Do not include <libintl.h>; not needed.
24285
24286 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
24287
24288         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
24289         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
24290
24291 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
24292
24293         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
24294         HAVE_DECL_STRTOLD.
24295
24296 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
24297
24298         * modules/getdate (Depends-on): Remove alloca-opt.
24299
24300 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
24301
24302         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
24303
24304 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
24305
24306         * lib/argp-parse.c: Include <stddef.h>.
24307         (alignof, alignto): New macros.
24308         (parser_init): Don't assume that void * is aligned sufficiently
24309         for struct option.
24310
24311         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
24312         need to extend the stack.
24313         (YYINITDEPTH): New macro, so that the initial stack isn't overly
24314         large.
24315
24316 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
24317
24318         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
24319
24320 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
24321
24322         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
24323         (2004-10-24) change.  Apparently this was a false alarm.
24324
24325         * modules/getdate: Depend on alloca-opt, not alloca.
24326
24327 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
24328
24329         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
24330         Remove now-obsolete comment about AIX.
24331         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
24332         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
24333         (YYMAXDEPTH): New macro.
24334
24335 2004-12-18  Simon Josefsson  <jas@extundo.com>
24336
24337         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
24338
24339 2004-12-18  Bruno Haible  <bruno@clisp.org>
24340
24341         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
24342
24343 2004-12-18  Bruno Haible  <bruno@clisp.org>
24344
24345         * lib/fatal-signal.c (fatal_signals): Make non-const.
24346         (init_fatal_signals): New function.
24347         (uninstall_handlers, install_handlers): Ignore signals that were set to
24348         SIG_IGN.
24349         (at_fatal_signal): Call init_fatal_signals.
24350         (init_fatal_signal_set): Likewise. Ignore signals that were set to
24351         SIG_IGN.
24352         Reported by Paul Eggert.
24353
24354 2004-12-18  Bruno Haible  <bruno@clisp.org>
24355
24356         * doc/alloca.texi: New file.
24357         * doc/alloca-opt.texi: New file.
24358
24359 2004-12-17  Jim Meyering  <jim@meyering.net>
24360
24361         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
24362         Otherwise, install-sh could exit with improper exit status when
24363         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
24364
24365 2004-12-16  Simon Josefsson  <jas@extundo.com>
24366
24367         * tests/test-base64.c: Add license.
24368
24369 2004-12-15  Stepan Kasal  <address@hidden>
24370
24371         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
24372
24373 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
24374
24375         * modules/getcwd (Files): Add m4/d-ino.m4.
24376         Suggested by Mark D. Baushke.
24377
24378 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
24379
24380         * lib/getdate.y (textint): New member "negative".
24381         (time_zone_hhmm): New function.
24382         Expect 14 shift-reduce conflicts, not 13.
24383         (o_colon_minutes): New rule.
24384         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
24385         (yylex): Set the "negative" member of signed numbers.
24386
24387 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
24388
24389         * doc/getdate.texi (Time of day items, Time zone items):
24390         Describe new formats +00:00, UTC+00:00.
24391
24392 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
24393
24394         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
24395         spurious "-l"s.  Problem reported by Stepan Kasal.
24396
24397 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
24398
24399         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
24400         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
24401
24402 2004-12-04  Simon Josefsson  <jas@extundo.com>
24403
24404         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
24405         Vandoorselaere <yoann@prelude-ids.org>.
24406
24407 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
24408
24409         Changes imported from coreutils.
24410         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
24411         exist.
24412         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
24413
24414 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
24415
24416         Changes imported from coreutils.
24417         * lib/hard-locale.c: Assume <locale.h> exists.
24418         Include "strdup.h".
24419         (GLIBC_VERSION): New macro.
24420         (hard_locale): Assume setlocale exists.
24421         Rewrite to avoid #ifdef.
24422         Use strdup rather than malloc + strcpy.
24423         * lib/human.c: Assume <locale.h> exists.
24424         (human_readable): Assume localeconv exists.
24425
24426 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
24427
24428         * modules/hard-locale (Depends-on): Add strdup.
24429
24430 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
24431
24432         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
24433         convert T2, not T.  (Imported from libc.)
24434
24435 2004-11-30  Simon Josefsson  <jas@extundo.com>
24436
24437         * modules/restrict (License): Change to LGPL.
24438
24439 2004-11-30  Simon Josefsson  <jas@extundo.com>
24440
24441         * m4/restrict.m4: Add copyright and copying conditions.
24442
24443 2004-11-30  Simon Josefsson  <jas@extundo.com>
24444
24445         * m4/base64.m4: New file.
24446
24447 2004-11-30  Simon Josefsson  <jas@extundo.com>
24448
24449         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
24450         base64.
24451
24452         * tests/test-base64.c: New file.
24453
24454         * modules/base64: New file.
24455
24456 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
24457
24458         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
24459         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
24460
24461         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
24462
24463 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
24464
24465         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
24466         (__getcwd.c): Don't restore errno; glibc doesn't.
24467         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
24468         first, falling back to our code only if its results look suspicious.
24469         Ensure that the resulting buffer is only as large as necessary.
24470
24471         * lib/readutmp.c: Include readutmp.h first.
24472         Include <errno.h>, since readutmp.h no longer does that.
24473         * lib/readutmp.h: Don't include <errno.h>,
24474         <sys/param.h>, <time.h>; not needed to establish interface.
24475         (errno): Remove decl.
24476         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
24477         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
24478         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
24479
24480 2004-11-28  Simon Josefsson  <jas@extundo.com>
24481
24482         * lib/base64.h, base64.c: New file.
24483
24484 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
24485
24486         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
24487
24488 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
24489
24490         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
24491         (Depends-on): Remove pathmax, same.  Add mempcpy.
24492         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
24493         (Makefile.am): Append getcwd.h to lib_SOURCES.
24494         (Include): Add getcwd.h.
24495         (Maintainer): Change from Jim Meyering to "all, glibc",
24496         since getdate now uses intended-for-glibc code.
24497         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
24498         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
24499
24500 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
24501
24502         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
24503         HP's ANSI C compiler.
24504         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
24505         Declaring int functions causes warnings on some modern systems and
24506         shouldn't be needed to compile on ancient ones.
24507         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
24508         defined.
24509
24510         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
24511         with the following changes.
24512         (__set_errno): Parenthesize properly.
24513         Include <stdbool.h>.
24514         (MIN, MAX, MATCHING_INO): New macros.
24515         (__getcwd): Define with prototype, not K&R form.
24516         Use heuristics to allocate default buffer on stack if possible.
24517         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
24518         behavior, and to avoid the PATH_MAX limit when computing
24519         ../../../../...
24520         Use MATCHING_INO to compare inode number to file.
24521         Check for arithmetic overflow in size calculations.
24522         Fix bug in reallocation of dot array that caused getcwd to fail
24523         on directories nested deeper than 75.
24524         Be more careful about saving errno on error.
24525         Do not use realloc; use only free+malloc, as this is a bit
24526         more flexible and avoids a needless copy operation.
24527         Do not inspect st_dev and st_ino for symbolic links; POSIX
24528         doesn't specify the latter.
24529         Check for closedir errors.
24530         Avoid needless casts.
24531         Use "#ifdef weak_alias" around weak_alias, to be like other
24532         glibc code.
24533         The following changes to getcwd.c have effect only when used in
24534         gnulib; they have no effect inside glibc proper.
24535         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
24536         as alloca isn't used.
24537         (alloca, __alloca): Likewise.
24538         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
24539         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
24540         unconditionally, as gnulib assumes C89 or better.
24541         Do not include <sys/param.h>.
24542         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
24543         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
24544         better.
24545         (NULL) [!defined NULL]: Remove; we assume C89 or better.
24546         Include <dirent.h> in a way that is compatible with modern Autoconf.
24547         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
24548         New macros, if not already defined.
24549         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
24550         Use "_LIBC", not "defined _LIBC", for consistency.
24551         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
24552         a mempcpy module.
24553         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
24554         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
24555         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
24556         credit only to Jim Meyering and adjust the copyright dates.
24557         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
24558         <stdlib.h>, <unistd.h>, "pathmax.h".
24559         Instead, include "xgetcwd.h" (first) and "getcwd.h".
24560         (INITIAL_BUFFER_SIZE): Remove.
24561         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
24562
24563 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
24564
24565         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
24566         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
24567         Use the _ONCE methods, for efficiency.
24568         Check for fcntl.h.  In test program, include <errno.h>
24569         and <fcntl.h> if available.  Remove old K&R cruft from
24570         test program.  Check for common errors in GNU/Linux,
24571         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
24572         don't do AC_LIBOBJ, as that's getcwd.m4's job.
24573         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
24574         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
24575         name accordingly.
24576         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
24577         accommodate new getcwd.c.
24578         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
24579         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
24580         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
24581         that's all we need now.
24582
24583 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
24584
24585         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
24586         argp-parse.c depends on getopt internals, that means we should
24587         always use our getopt, to be on the safe side.
24588         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
24589         order not to spoil the result of an eventual previous invocation
24590         of gl_GETOPT_SUBSTITUTE.
24591
24592 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
24593
24594         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
24595         redefinition warnings. To avoid them, include the defines
24596         in `#if !defined __need_getopt ... #endif'. The only place
24597         where __getopt_argv_const is used is in definitions
24598         of getopt_long and getopt_long_only below, which are as well
24599         protected by `#ifndef __need_getopt'.
24600         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
24601         __need_getopt after including <stdio.h> and <unistd.h> These
24602         headers might have defined it.
24603
24604 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
24605
24606         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
24607
24608 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
24609
24610         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
24611         (futimens): New function, which uses futimes if available.
24612         (futimens, utimens): Support timespec==NULL, with same semantics
24613         as utime and utimens.
24614         * lib/utimens.h (futimens): New decl.
24615
24616 2004-11-23  Jim Meyering  <jim@meyering.net>
24617
24618         * lib/getopt_.h: Remove trailing blanks.
24619
24620 2004-11-23  Jim Meyering  <jim@meyering.net>
24621
24622         * lib/__fpending.c: Add comment.
24623
24624 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
24625
24626         * modules/canonicalize (Depends-on): Add xreadlink.
24627         Problem reported by James Youngman.
24628
24629 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
24630
24631         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
24632         New macros.
24633         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
24634         optopt): Use them instead of invoking ## directly; otherwise, the
24635         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
24636
24637 2004-11-19  Bruno Haible  <bruno@clisp.org>
24638
24639         * lib/strtok_r.c: Move comments from here...
24640         * lib/strtok_r.h: ... to here.
24641
24642 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
24643
24644         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
24645         implementations that mishandle size_t overflow.
24646
24647 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
24648
24649         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
24650         might fail.  Problem reported by Yoann Vandoorselaere.
24651         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
24652         implementations that mishandle size_t overflow.
24653
24654 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
24655
24656         * modules/canon-host (Depends-on): Add strdup.
24657
24658 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
24659
24660         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
24661
24662 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
24663
24664         * lib/canon-host.c: Include "strdup.h".
24665         (canon_host): Use getaddrinfo if available, so that IPv6 works.
24666         Use strdup instead of malloc/strcpy to duplicate strings.
24667
24668         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
24669         (human_space_before_unit): New constant.
24670         * lib/human.c (human_readable): Support it.
24671
24672         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
24673         (xgetcwd): Set errno correctly when failing.
24674         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
24675         the failure is actually due to a PATH_MAX problem.
24676
24677         Further getopt changes to make it more likely that glibc will
24678         buy the changes back.
24679         * lib/getopt.c (POSIXLY_CORRECT): New constant.
24680         (getopt): Use it, so to preserve glibc semantic
24681         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
24682         when compiling for libc.
24683         * lib/getopt_.h (__getopt_argv_const): Bring it back.
24684         (getopt_long, getopt_long_only): Use it.
24685
24686         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
24687         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
24688         (getopt): Argv is now char * const *, as per standard.
24689         (_getopt_internal_r, _getopt_internal): Argv is now char **,
24690         not char *__getopt_argv_const *.
24691         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
24692         _getopt_long_only_r): Likewise.
24693         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
24694         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
24695         _getopt_long_r, _getopt_long_only_r): Likewise.
24696         * lib/getopt_.h (__getopt_argv_const): Remove.
24697         (getopt): Argv is now char * const *, as per standard.
24698
24699         * lib/getdate.y (tORDINAL): New token.
24700         (day, relunit): Allow it for relative times.
24701         (relative_time_table): Use tORDINAL for ordinals.
24702
24703 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
24704
24705         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
24706         Document that "second" isn't allowed as an ordinal number.
24707
24708 2004-11-16  Jim Meyering  <jim@meyering.net>
24709
24710         * modules/closeout (Depends-on): Add fpending.
24711
24712 2004-11-15  Jim Meyering  <jim@meyering.net>
24713
24714         * lib/closeout.c: Include "__fpending.h" once again.
24715         Include <stdbool.h>.
24716         (close_stdout): Don't fail just because stdout was closed initially,
24717         since some programs don't write to stdout in the normal course of
24718         operation (other than --version and --help), and we don't want this
24719         function to make e.g. `touch file >&-' fail.
24720         But do fail if it was closed and someone has tried to write to it.
24721         E.g., `printf foo >&-' must fail.
24722
24723 2004-11-13  Jim Meyering  <jim@meyering.net>
24724
24725         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
24726
24727 2004-11-12  Simon Josefsson  <jas@extundo.com>
24728
24729         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
24730         small doc fix is still pending.
24731
24732 2004-11-11  Simon Josefsson  <jas@extundo.com>
24733
24734         * modules/strtok_r: New file.
24735
24736         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
24737         strtok_r.
24738
24739 2004-11-11  Simon Josefsson  <jas@extundo.com>
24740
24741         * m4/strtok_r.m4: New file.
24742
24743         * m4/getopt.m4: Replace opterr.
24744
24745 2004-11-11  Simon Josefsson  <jas@extundo.com>
24746
24747         * lib/strtok_r.h, strtok_r.c: New file.
24748
24749 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
24750
24751         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
24752         of replacing opterr, getopt, etc.  This should handle the
24753         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
24754
24755 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
24756
24757         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
24758         we can stop lying to compilers about the constness of argv when we
24759         are compiled outside glibc.
24760         (getopt, getopt_long, getopt_long_only): Use it.
24761         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
24762         _getopt_internal, getopt): Likewise.
24763         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
24764         _getopt_long_only_r): Likewise.
24765         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
24766         _getopt_long_r, _getopt_long_only_r): Likewise.
24767
24768         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
24769         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
24770         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
24771         the other external symbols.
24772         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
24773         declaration, since the above renaming now works around collisions.
24774
24775 2004-11-11  Jim Meyering  <jim@meyering.net>
24776
24777         * lib/linebreak.c: Remove trailing blanks.
24778         * lib/alloca_.h: Likewise.
24779         * lib/acosl.c: Likewise.
24780         * lib/euidaccess.c: Likewise.
24781         * lib/allocsa.h: Likewise.
24782
24783 2004-11-10  Simon Josefsson  <jas@extundo.com>
24784
24785         * m4/getaddrinfo.m4: New file.
24786
24787 2004-11-10  Simon Josefsson  <jas@extundo.com>
24788
24789         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
24790
24791 2004-11-10  Simon Josefsson  <jas@extundo.com>
24792
24793         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
24794         getaddrinfo.
24795
24796         * modules/getaddrinfo: New file.
24797
24798 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
24799
24800         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
24801
24802 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
24803
24804         * lib/mktime.c (SHR): New macro, which is a portable
24805         substitute for >> that should work even on Crays.
24806         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
24807         Problem reported by Mark D. Baushke in
24808         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
24809         * lib/getdate.y (SHR): Likewise.
24810         (tm_diff): Use it.
24811         * lib/strftime.c (SHR): Likewise.
24812         (tm_diff): Use it.
24813         * lib/quotearg.c (struct quoting_options): Use unsigned int for
24814         quote_these_too, so that right shifts are well defined.  All uses
24815         changed.
24816
24817 2004-11-10  Jim Meyering  <jim@meyering.net>
24818
24819         Ensure that no close failure goes unreported.
24820         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
24821         return early when it seems there's nothing to flush.
24822         Don't include __fpending.h.
24823
24824 2004-11-10  Jim Meyering  <jim@meyering.net>
24825
24826         * modules/closeout (Depends-on): Remove fpending.
24827
24828 2004-11-10  Jim Meyering  <jim@meyering.net>
24829
24830         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
24831
24832 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
24833
24834         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
24835         gl_FUNC_STRFTIME.
24836         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
24837         and AC_REQUIRE when possible, to avoid duplicate checks.
24838         Check for <wchar.h>.
24839
24840 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
24841
24842         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
24843
24844 2004-11-09  Bruno Haible  <bruno@clisp.org>
24845
24846         * m4/sockpfaf.m4: New file.
24847
24848 2004-11-05  Bruno Haible  <bruno@clisp.org>
24849
24850         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
24851         Reported by Mark D. Baushke <mdb@cvshome.org>.
24852
24853 2004-11-04  Bruno Haible  <bruno@clisp.org>
24854
24855         2004-09-11  Bruno Haible  <bruno@clisp.org>
24856                 * allocsa.valgrind: New file.
24857         2004-02-06  Bruno Haible  <bruno@clisp.org>
24858                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
24859                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
24860                 Reported by Christopher Seip <chris.seip@hp.com>.
24861
24862 2004-11-04  Bruno Haible  <bruno@clisp.org>
24863
24864         * modules/allocsa (Files): Add lib/allocsa.valgrind.
24865         (Makefile.am): Distribute it.
24866
24867 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
24868
24869         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
24870         with errno == ERANGE if the buffer is too small.
24871         Problem reported by Mark D. Baushke.
24872
24873 2004-11-03  Albert Chin  <china@thewrittenword.com>
24874             Paul Eggert  <eggert@cs.ucla.edu>
24875
24876         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
24877         equivalent, substitute $ac_type for equivalent type rather than
24878         blindly using uint32_t *always* which won't work if uint32_t is not
24879         available.  Define _UINT32_T to work around typedef of uint32_t if
24880         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
24881         2.5.1.
24882
24883 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
24884
24885         * m4/jm-macros.m4: Sync from coreutils.
24886         (gl_MACROS): Check for mbrlen, for pathchk.
24887         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
24888
24889 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
24890
24891         * lib/xreadlink.c (MAXSIZE): New macro.
24892         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
24893         size does not exceed MAXSIZE.  Avoid cast.
24894         As suggested by Mark D. Baushke in
24895         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
24896         if readlink fails with buffer size just under MAXSIZE, try again
24897         with MAXSIZE.
24898
24899 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
24900
24901         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
24902
24903 2004-11-02  Derek R. Price  <derek@ximbiot.com>
24904         and  Paul Eggert  <eggert@cs.ucla.edu>
24905
24906         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
24907         (get_date): Overparenthesize to avoid GCC warning.
24908
24909 2004-11-02  Bruno Haible  <bruno@clisp.org>
24910
24911         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
24912         returns void.
24913
24914 2004-11-02  Bruno Haible  <bruno@clisp.org>
24915
24916         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
24917         function returns void.
24918
24919 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
24920
24921         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
24922         fflush_unlocked, flockfile, funlockfile, funlockfile,
24923         fputs_unlocked, putc_unlocked.
24924
24925 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
24926
24927         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
24928         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
24929         already declared.
24930
24931 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
24932
24933         * modules/getdate (Files): Add doc/getdate.texi.
24934         (Depends-on): Add setenv, xalloc.
24935
24936 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
24937
24938         * lib/getdate.y: Add support for TZ="foo" within a date string.
24939         Fix some bugs near time_t boundaries.  Reject dates with
24940         out-of-range components, e.g., "Sept 31".
24941         Include <stdlib.h>, "setenv.h", "xalloc.h".
24942         (ISDIGIT_LOCALE): Remove; unused.
24943         Note that the TZ and time functions used here are not reentrant.
24944         (mktime_ok, get_tz): New functions.
24945         (TZBUFSIZE): New constant.
24946         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
24947         This requires that we sometimes generate our own TZ="XXX..." setting.
24948
24949 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
24950
24951         * doc/getdate.texi: New file, from coreutils with modifications for
24952         the new TZ parsing.
24953
24954 2004-10-27  Derek R. Price  <derek@ximbiot.com>
24955
24956         * lib/mktime.c (not_equal_tm): Remove redundant check.
24957
24958 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
24959
24960         * modules/regex (lib_SOURCES): Add regex.c.
24961         Reported by James Youngman in
24962         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
24963
24964 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
24965
24966         * lib/getdate.y: Use Bison 1.875 features, and some minor
24967         code cleanups.  This change does not affect semantics.
24968         Don't include <stdlib.h>; no longer needed.
24969         Don't include unlocked-io.h; only the "#if TEST" code uses
24970         stdio, and performance isn't crucial there.
24971         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
24972         Bison 1.875 features as described below.
24973         All uses of "PC." replaced by "pc->".
24974         (YYSTYPE): Add a forward declaration.
24975         (yylex, yyerror): Use full prototypes in forward decls.
24976         Use "%pure-parser" rather than obsolescent "%pure_parser".
24977         Use %parse-param and %lex-param instead of obsolescent
24978         YYPARSE_PARAM and YYLEX_PARAM.
24979         (meridian_table, month_and_day_table, time_units_table,
24980         relative_time_table, time_zone_table, military_table,
24981         lookup_zone, lookup_word, get_date):
24982         Use NULL instead of 0 where appropriate.
24983         (to_hour): Avoid abort (), to avoid a dependency on
24984         stdlib.h.
24985         (yyerror, yylex): Now accepts parser_control * arg.
24986         (main) [TEST]: Use '\0' rather than 0 for char.
24987
24988 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
24989
24990         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
24991
24992 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
24993
24994         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
24995         It's now the caller's responsibility to handle the case where
24996         !HAVE_GETPAGESIZE && !defined getpagesize.
24997
24998         * lib/mktime.c (leapyear): Arg is long int, not int.
24999
25000 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
25001
25002         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
25003
25004 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
25005
25006         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
25007         missing.  Problem reported by James Youngman.
25008
25009 2004-10-16  Simon Josefsson  <jas@extundo.com>
25010
25011         * gnulib-tool: Fix comments.  Fix parse problem.
25012         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
25013
25014 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
25015
25016         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
25017         implementation of getopt_long.  Problem reported by Alexander Taler in:
25018         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
25019
25020 2004-10-15  Bruno Haible  <bruno@clisp.org>
25021
25022         * gnulib-tool: Untabify. Initialize supplied_libname.
25023         (func_usage): More homogenous output.
25024         (func_modules_transitive_closure, func_modules_to_filelist,
25025         func_emit_lib_Makefile_am): New functions.
25026         (func_import): New function, extracted from big case statement. Use
25027         func_get_license, func_modules_transitive_closure,
25028         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
25029         opt_lgpl. Don't use test -a, as it's not portable.
25030         (func_create_testdir): Use func_modules_transitive_closure,
25031         func_modules_to_filelist, func_emit_lib_Makefile_am.
25032
25033 2004-10-15  Bruno Haible  <bruno@clisp.org>
25034
25035         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
25036
25037 2004-10-15  Bruno Haible  <bruno@clisp.org>
25038
25039         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
25040         the portions belonging to each module.
25041         Suggested by Derek Robert Price <derek@ximbiot.com>.
25042
25043 2004-10-12  Simon Josefsson  <jas@extundo.com>
25044
25045         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
25046         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
25047         to real functions.
25048
25049 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
25050
25051         * modules/vsnprintf: New file.
25052
25053 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
25054
25055         * m4/vsnprintf.m4: New file.
25056
25057 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
25058
25059         * lib/vsnprintf.h: New file.
25060         * lib/vsnprintf.c: New file.
25061
25062 2004-10-11  Bruno Haible  <bruno@clisp.org>
25063
25064         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
25065         vsnprintf.
25066
25067 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
25068
25069         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
25070
25071 2004-10-07  Bruno Haible  <bruno@clisp.org>
25072
25073         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
25074         fits into the provided buffer.
25075
25076 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
25077
25078         * lib/diacrit.c, diacrit.h: Add GPL notice.
25079
25080         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
25081         notice.
25082         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
25083         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
25084         This avoids a potential constant-folding bug.
25085
25086 2004-10-05  Bruno Haible  <bruno@clisp.org>
25087
25088         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
25089         for the declaration of strsep.
25090
25091 2004-10-05  Bruno Haible  <bruno@clisp.org>
25092
25093         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
25094
25095 2004-10-04  Simon Josefsson  <jas@extundo.com>
25096
25097         * modules/memmem: New file.
25098         * tests/test-memmem.c: New file.
25099         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
25100
25101 2004-10-04  Simon Josefsson  <jas@extundo.com>
25102
25103         * m4/memmem.m4: New file.
25104
25105 2004-10-04  Simon Josefsson  <jas@extundo.com>
25106
25107         * lib/memmem.h: New file.
25108         * lib/memmem.c: New file, taken from glibc.
25109
25110 2004-10-04  Simon Josefsson  <jas@extundo.com>
25111
25112         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
25113         '#ifdef USE_UNLOCKED_IO'.
25114
25115 2004-10-04  Simon Josefsson  <jas@extundo.com>
25116
25117         * config/srclist.txt: Add memmem from glibc.
25118
25119 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
25120
25121         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
25122
25123         * modules/argmatch, modules/argp, modules/closeout, modules/error,
25124         modules/exclude, modules/getdate, modules/getline,
25125         modules/getndelim2, modules/getpass, modules/getpass-gnu,
25126         modules/getusershell, modules/linebuffer, modules/md5,
25127         modules/mountlist, modules/posixtm, modules/readtokens,
25128         modules/readutmp, modules/regex, modules/sha1,
25129         modules/version-etc, modules/yesno:
25130         Remove dependency on unlocked-io.
25131
25132 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
25133
25134         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
25135
25136         * m4/unlocked-io.m4: Add copyright notice.
25137         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
25138
25139 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
25140
25141         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
25142         * lib/xmalloc.c (xmemdup): Likewise.
25143         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
25144         XFREE): Remove these long-obsolescent macros.
25145         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
25146         * lib/xstrdup.c: Remove.
25147
25148         * lib/regex.c (re_comp): Cast gettext return value to char *,
25149         Problem reported by Martin Neitzel via Mark D. Baushke.
25150
25151 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
25152
25153         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
25154         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
25155         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
25156         regex.c, sha1.c, version-etc.c, yesno.c:
25157         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
25158         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
25159         the includer's responsibility.
25160
25161         Sync from coreutils.
25162
25163         * lib/modechange.c (mode_compile): Don't decrement a pointer that
25164         points to the start of a string, as the C Standard says the
25165         resulting behavior is undefined.
25166
25167         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
25168         simple -> simple_backups, numbered_existing ->
25169         numbered_existing_backups, numbered -> numbered_backups
25170         to avoid shadowing problems.  All uses changed.
25171         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
25172         * lib/backupfile.c (check_extension, numbered_backup):
25173         Rename locals to avoid shadowing 'basename'.
25174         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
25175         once.
25176
25177         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
25178         * lib/.cvsignore: Add getopt.h.
25179
25180 2004-10-04  Bruno Haible  <bruno@clisp.org>
25181
25182         * modules/README: New file.
25183         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
25184         not a module.
25185
25186 2004-10-02  Jim Meyering  <jim@meyering.net>
25187
25188         * lib/dirfd.h, getpagesize.h: Add copyright notice.
25189
25190 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
25191
25192         * modules/strsep: New file.
25193
25194 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
25195
25196         * m4/strsep.m4: New file.
25197
25198 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
25199
25200         * lib/strsep.h: New file.
25201         * lib/strsep.c: New file.
25202
25203 2004-10-01  Simon Josefsson  <jas@extundo.com>
25204
25205         * lib/snprintf.c (snprintf): Handle size==0.
25206
25207 2004-10-01  Simon Josefsson  <jas@extundo.com>
25208             Bruno Haible  <bruno@clisp.org>
25209
25210         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
25211         (snprintf): Declare 'args'.
25212
25213 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
25214
25215         * lib/snprintf.c: Remove comments as to why each header is needed.
25216
25217 2004-10-01  Bruno Haible  <bruno@clisp.org>
25218
25219         * MODULES.html.sh: Add strsep.
25220
25221 2004-09-30  Simon Josefsson  <jas@extundo.com>
25222
25223         * modules/snprintf: New file.
25224
25225 2004-09-30  Simon Josefsson  <jas@extundo.com>
25226
25227         * m4/snprintf.m4: New file.
25228
25229 2004-09-30  Simon Josefsson  <jas@extundo.com>
25230
25231         * lib/snprintf.h, lib/snprintf.c: New files.
25232
25233 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
25234
25235         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
25236         (hol_entry_help): Never translate an empty string.
25237         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
25238         * lib/argp.h (OPTION_NO_TRANS): New option.
25239
25240 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
25241
25242         * modules/argp (Maintainer): Replace Simon Josefsson
25243         by Sergey Poznyakoff.
25244
25245 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
25246
25247         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
25248         changes merged back into glibc.
25249
25250 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
25251
25252         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
25253
25254 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
25255
25256         * lib/xvasprintf.c: Include xalloc.h.
25257         (xvasprintf): Use xalloc_die, not xmalloc_die.
25258
25259 2004-09-29  Bruno Haible  <bruno@clisp.org>
25260
25261         * modules/alloca-opt: New file, derived from modules/alloca.
25262         * modules/allocsa: Depend on alloca-opt instead of alloca.
25263         * modules/setenv: Likewise.
25264         * modules/vasnprintf: Likewise.
25265         * MODULES.html.sh: Add alloca-opt.
25266
25267 2004-09-28  Simon Josefsson  <jas@extundo.com>
25268
25269         * gnulib-tool: New parameter --lgpl, to asseert that modules are
25270         LGPL, and to replace license template from GPL to LGPL.
25271
25272 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
25273
25274         * modules/dummy: Change license to LGPL.
25275
25276 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
25277
25278         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
25279
25280 2004-09-24  Simon Josefsson  <jas@extundo.com>
25281
25282         * modules/minmax (License): Change from GPL to LGPL.
25283
25284 2004-09-23  Simon Josefsson  <jas@extundo.com>
25285
25286         * gnulib-tool (--import): Typo.
25287
25288 2004-09-23  Simon Josefsson  <jas@extundo.com>
25289
25290         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
25291
25292 2004-09-22  Bruno Haible  <bruno@clisp.org>
25293
25294         * modules/*: Add 'License' field.
25295         * gnulib-tool: Accept --extract-license option.
25296         (func_get_license): New function.
25297
25298 2004-09-21  Bruno Haible  <bruno@clisp.org>
25299
25300         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
25301         Reported by Simon Josefsson.
25302
25303 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
25304
25305         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
25306         gl_AC_TYPE_LONG_LONG.
25307
25308 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
25309
25310         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
25311
25312 2004-09-18  Simon Josefsson  <jas@extundo.com>
25313         and  Paul Eggert  <eggert@cs.ucla.edu>
25314
25315         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
25316         calls with autoreconf.  Define GL_LIB.
25317
25318 2004-09-14  Karl Berry  <karl@gnu.org>
25319
25320         * config/srclist.txt: unsync setenv.c, sigh.
25321
25322 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25323
25324         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
25325         Problem reported by Bruno Haible in:
25326         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
25327
25328 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25329
25330         * config/srclist.txt: Comment out argp-pvh.c.
25331
25332 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
25333
25334         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
25335         in case some system header has #define'd it.  Problem reported by
25336         Soeren D. Schulze in
25337         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
25338
25339 2004-09-09  Karl Berry  <karl@gnu.org>
25340
25341         * regex.[ch]: delete from the root.  These were supposed to be
25342                 synced with emacs cvs, but this has not happened for about
25343                 a year, and anyway nothing else uses emacs regex.[ch].
25344                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
25345                 lib/regex[.ch] is untouched.
25346
25347 2004-09-09  Bruno Haible  <bruno@clisp.org>
25348
25349         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
25350
25351 2004-09-09  Bruno Haible  <bruno@clisp.org>
25352
25353         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
25354         modifications.
25355         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
25356
25357 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
25358
25359         * modules/xvasprintf: New file.
25360         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
25361
25362 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
25363
25364         * lib/xvasprintf.h: New file.
25365         * lib/xvasprintf.c: New file.
25366         * lib/xasprintf.c: New file.
25367
25368 2004-09-08  Bruno Haible  <bruno@clisp.org>
25369
25370         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
25371
25372 2004-09-08  Bruno Haible  <bruno@clisp.org>
25373
25374         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
25375         length is > INT_MAX.
25376         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
25377         more.
25378
25379 2004-09-08  Bruno Haible  <bruno@clisp.org>
25380
25381         * lib/stdint_.h: New file, taken from GNU clisp.
25382
25383 2004-09-08  Bruno Haible  <bruno@clisp.org>
25384             Oskar Liljeblad  <oskar@osk.mine.nu>
25385
25386         * modules/stdint: New file.
25387         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
25388
25389 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
25390
25391         Import from coreutils.
25392         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
25393         strings on unbounded length.  alloca's performance benefits aren't
25394         that important here.
25395         (V_STRDUP): Remove.
25396         (parse_with_separator): New function, with most of the internals
25397         of the old parse_user_spec.  Allow user to omit both user and group,
25398         for compatibility with FreeBSD.
25399         Clone only the user name, not the entire spec.
25400         Do not set *uid, *gid unless entirely successful.
25401         Avoid memory leak in some failing cases.
25402         Fix regression for USER.GROUP reported by Dmitry V. Levin in
25403         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
25404         (parse_user_spec): Rewrite to use parse_with_separator.
25405
25406 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
25407
25408         * modules/userspec: Don't depend on alloca.
25409
25410 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
25411
25412         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
25413
25414 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
25415
25416         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
25417         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
25418         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
25419
25420 2004-08-16  Simon Josefsson  <jas@extundo.com>
25421
25422         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
25423         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
25424         Add --dry-run for --import.
25425         Let user provided command line parameters override configure.ac
25426         settings.
25427
25428 2004-08-12  Simon Josefsson  <jas@extundo.com>
25429
25430         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
25431         as discussed with Paul Eggert in threads rooted at
25432         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
25433         and
25434         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
25435         Before, the test was empty, and relied on ELIDE_CODE in source
25436         code.)
25437         (gl_PREREQ_GETOPT): New macro.
25438         (gl_GETOPT): Use them.
25439
25440 2004-08-12  Simon Josefsson  <jas@extundo.com>
25441
25442         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
25443         * lib/getopt_.h: Renamed from getopt.h.
25444
25445 2004-08-12  Simon Josefsson  <jas@extundo.com>
25446
25447         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
25448         Change default library name from libfoo to libgnu.
25449         Now, if you have a configure.ac that says:
25450                 gl_SOURCE_BASE(gl)
25451                 gl_M4_BASE(gl/m4)
25452                 gl_MODULES(error getopt etcetera)
25453                 gl_INIT
25454         you can import all you need by running:
25455                 ../gnulib/gnulib-tool --import
25456
25457         * modules/getopt (Files): Rename getopt.h to getopt_.h.
25458         (Makefile.am): Rewrite, use logic from argz.
25459         (Include): Use <getopt.h> instead of "getopt.h".
25460
25461 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
25462
25463         * modules/argp (Files): Add m4/unlocked-io.m4.
25464         (Depends-on): Add extensions.
25465
25466 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
25467
25468         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
25469         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
25470         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
25471         Check for program_invocation_name, program_invocation_short_name,
25472         flockfile, funlockfile, features.h, _getopt_long_only_r.
25473
25474 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
25475
25476         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
25477         its complicated substitute.
25478         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
25479         and program_invocation_name.
25480         (__argp_basename) [!_LIBC]: Remove; the only use was
25481         replaced by its body.
25482         (__argp_short_program_name): Change condition from
25483         !defined __argp_short_program_name to
25484         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
25485         to match argp-namefrob.h.
25486         (__argp_failure): Don't assume strerror_r returns char *.
25487         * lib/argp-parse.c (N_): Define unconditionally.
25488         (argp_default_options): Fill out initializers with 0 to avoid
25489         gcc warnings.
25490
25491 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
25492
25493         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
25494         getopt1.c.
25495
25496 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
25497
25498         Merge from coreutils.
25499
25500         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
25501
25502         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
25503         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
25504
25505 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
25506
25507         Merge from coreutils.
25508
25509         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
25510         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
25511         for Reliant Unix 5.43.
25512
25513         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
25514         (union fooround): Use uintmax_t, not long int.
25515         The rest is a merge from libc:
25516         [defined _LIBC]: Include <shlib-compat.h>.
25517         (_obstack) [defined _LIBC]: Remove after 2.3.4.
25518
25519         * lib/settime.c (settime): Recode to avoid warning with
25520         Sun Forte C 6U2.
25521
25522         * lib/strverscmp.c: Convert to UTF-8.
25523
25524 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
25525
25526         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
25527         m4/uintmax_t.m4.
25528
25529 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
25530
25531         * modules/xalloc-die: New file.
25532         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
25533
25534         * modules/md5 (Files): Add m4/uint32_t.m4.
25535         * modules/sha1: Renamed from modules/sha.
25536         (Files):
25537         Rename lib/sha.h to lib/sha1.h.
25538         Rename lib/sha.c to lib/sha1.c.
25539         Rename m4/sha.m4 to m4/sha1.m4.
25540         (lib_SOURCES): Likewise.
25541         (configure.ac): Rename gl_SHA to gl_SHA1.
25542         (Include): sha.h -> sha1.h.
25543
25544 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
25545
25546         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
25547         * m4/sha1.m4: Renamed from sha.m4.
25548         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
25549
25550 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
25551
25552         * lib/obstack.h (obstack_empty_p):
25553         Don't assume that chunk->contents is suitably aligned.
25554         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
25555         Likewise. Problem reported by Benno in
25556         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
25557
25558         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
25559         readable.  This could be improved further but it'd take some work.
25560
25561 2004-08-08  Simon Josefsson  <jas@extundo.com>
25562
25563         * modules/xgethostname (Depends-on): Remove exit and error (not
25564         used).
25565
25566         * modules/getpass-gnu: Add getpass.h.
25567         (Depends-on): Add stdbool.
25568         * modules/getpass: Add getpass.h.
25569
25570 2004-08-08  Simon Josefsson  <jas@extundo.com>
25571
25572         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
25573         Check getpass declaration.
25574
25575 2004-08-08  Simon Josefsson  <jas@extundo.com>
25576
25577         * lib/xgethostname.c: Don't include error.h (not used).
25578
25579         * lib/getpass.h: Add.
25580         * lib/getpass.c: Include getpass.h first.
25581
25582 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
25583
25584         * lib/xalloc-die.c: New file.
25585         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
25586         All uses removed.
25587         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
25588         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
25589         xalloc-die.c.
25590         (_, N_, xalloc_die): Move to xalloc-die.c.
25591         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
25592         so that we needn't mess with xalloc_msg_memory_exhausted.
25593
25594         * lib/sha1.h: Renamed from sha.h.
25595         (SHA1_H): Renamed from _SHA_H.
25596         (sha1_ctx): Renamed from sha_ctx.
25597         (sha1_init_ctx): Renamed from sha_init_ctx.
25598         (sha1_process_block): Renamed from sha_process_block.
25599         (sha1_process_bytes): Renamed from sha_process_bytes.
25600         (sha1_finish_ctx): Renamed from sha_finish_ctx.
25601         (sha1_read_ctx): Renamed from sha_read_ctx.
25602         (sha1_stream): Renamed from sha_stream.
25603         (sha1_buffer): Renamed from sha_buffer.
25604         * lib/sha1.c: Likewise; renamed from sha.c.
25605         Do not include <sys/types.h>.
25606         Include <stddef.h> rather than <stdlib.h>.
25607
25608 2004-08-08  Bruno Haible  <bruno@clisp.org>
25609
25610         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
25611         FILESYSTEM_PREFIX_LEN.
25612         * lib/progreloc.c: Likewise.
25613         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
25614
25615 2004-08-06  Simon Josefsson  <jas@extundo.com>
25616
25617         * modules/progname (Depends-on): Don't depend on stdbool.
25618
25619 2004-08-06  Simon Josefsson  <jas@extundo.com>
25620
25621         * modules/getsubopt: New file.
25622         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
25623         getsubopt.
25624
25625 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
25626
25627         More merge from coreutils.
25628
25629         * m4/utimens.m4, m4/utimecmp.m4: New files.
25630         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
25631         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
25632         prereq.m4, sha.m4: Import changes from coreutils.
25633
25634 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
25635
25636         More merge from coreutils.
25637         * modules/raise, modules/readtokens0, modules/utimens:
25638         * modules/utimecmp, module/xnanosleep: New files.
25639         * modules/strftime: Add lib/strftime.h.
25640         Change include from <time.h> to "strftime.h".
25641         * modules/yesno: Add lib/yesno.h.
25642         * modules/backupfile: Remove lib/addext.c.
25643         * modules/euidaccess: Add stat-macros.h.
25644         * modules/canonicalize, modules/euidaccess,
25645         modules/filemode, modules/lchown, modules/makepath,
25646         modules/rmdir, modules/stat: Likewise.
25647
25648 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
25649
25650         Merge from tar.
25651         * lib/argp-help.c (make_hol, hol_append): Don't assume that
25652         SIZE_MAX is a valid preprocessor constant.
25653         (__argp_basename): Change from "#ifndef _LIBC"
25654         to "#ifndef __argp_short_program_name", so that
25655         we don't compile these functions for tar.
25656
25657         More merges from coreutils.
25658         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
25659         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
25660         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
25661         * lib/addext.c: Remove; no longer needed.
25662         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
25663         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
25664         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
25665         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
25666         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
25667         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
25668         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
25669         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
25670         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
25671         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
25672         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
25673         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
25674         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
25675         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
25676         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
25677         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
25678         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
25679         Import changes from coreutils.
25680
25681 2004-08-05  Simon Josefsson  <jas@extundo.com>
25682
25683         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
25684
25685 2004-08-05  Simon Josefsson  <jas@extundo.com>
25686
25687         * m4/getsubopt.m4: New file.
25688
25689 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
25690
25691         Merge from coreutils.
25692
25693         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
25694         * m4/getcwd-path-max.m4: New files.
25695
25696         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
25697         FILESYSTEM_PREFIX_LEN ->
25698         FILE_SYSTEM_PREFIX_LEN.
25699         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
25700         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
25701         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
25702         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
25703
25704         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
25705         prerequisite modules now handle the DOS stuff.
25706         Don't check for unistd.h.
25707
25708 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
25709
25710         Merge from coreutils.
25711
25712         * lib/.gdb-history: Remove; this doesn't belong here.
25713
25714         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
25715         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
25716         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
25717         * lib/getcwd.c: New files.
25718
25719         * lib/dirname.h: Include <stdbool.h>.
25720         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
25721         for consistency with POSIX terminology.  All uses changed.
25722         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
25723         (strip_trailing_slashes): Use bool for booleans.
25724         * lib/stripslash.c (strip_trailing_slashes): Likewise.
25725
25726         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
25727         sometimes returns a positive errno value even when it succeeds.
25728         (print_errno_message) [!LIBC]: Fall back on strerror if
25729         __strerror_r fails.
25730
25731         * lib/path-concat.c (mempcpy): Don't define if a system header defines
25732         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
25733         (longest_relative_suffix): New function.
25734         (path_concat): Use it.  Assume first argument is not NULL.
25735         Port to DOS.  Omit redundant separators.
25736         Report an error instead of returning NULL.
25737         Use mempcpy instead of memcpy.
25738         (xpath_concat): Remove: not declared or used.
25739
25740         * lib/same.h: Include <stdbool.h>
25741         (same_name): Return bool, not int.
25742         * lib/same.c (same_name): Likewise.
25743         (errno): Don't declare; we assume C89 or better now.
25744
25745         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
25746         if not already defined.
25747
25748         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
25749         * lib/dup-safer.c (errno): Likewise.
25750
25751 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
25752
25753         Merge from coreutils.
25754         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
25755         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
25756         * modules/path-concat: Don't depend on strdup.
25757
25758 2004-08-03  Simon Josefsson  <jas@extundo.com>
25759
25760         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
25761         * lib/progname.h: Don't include stdbool.h.
25762
25763 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
25764
25765         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
25766         * MODULES.html.sh (func_all_modules): Remove fatal.
25767
25768 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
25769
25770         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
25771
25772 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
25773
25774         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
25775         working.
25776
25777 2004-08-02  Simon Josefsson  <jas@extundo.com>
25778
25779         * lib/getsubopt.h: New file, with comments from Bruno Haible.
25780         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
25781         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
25782
25783 2004-08-01  Simon Josefsson  <jas@extundo.com>
25784
25785         * lib/xgetdomainname.c: Include stdlib.h, for free().
25786
25787 2004-07-19  Bruno Haible  <bruno@clisp.org>
25788
25789         * MODULES.html.sh (func_all_modules): Add dummy.
25790
25791 2004-07-16  Simon Josefsson  <jas@extundo.com>
25792
25793         * modules/dummy: New file.
25794
25795 2004-07-16  Simon Josefsson  <jas@extundo.com>
25796
25797         * lib/dummy.c: New file.
25798
25799 2004-07-16  Bruno Haible  <bruno@clisp.org>
25800
25801         * lib/backupfile.h: Add extern "C" for C++.
25802         * lib/closeout.h: Likewise.
25803         * lib/copy-file.h: Likewise.
25804         * lib/findprog.h: Likewise.
25805         * lib/full-write.h: Likewise.
25806         * lib/pathname.h: Likewise.
25807         * lib/progname.h: Likewise.
25808         * lib/stpcpy.h: Likewise.
25809         * lib/stpncpy.h: Likewise.
25810         * lib/strcase.h: Likewise.
25811         * lib/strstr.h: Likewise.
25812         * lib/xalloc.h: Likewise.
25813
25814         * lib/mbswidth.h: Add extern "C" for C++.
25815         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
25816
25817 2004-07-13  Robert Millan  <robertmh@gnu.org>
25818
25819         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
25820
25821 2004-07-09  Simon Josefsson  <jas@extundo.com>
25822
25823         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
25824         failed without this.)
25825
25826 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
25827
25828         * modules/chown (Files): Add lib/fchown-stub.c, since
25829         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
25830
25831 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
25832
25833         * lib/fchown-stub.c: New file.
25834
25835 2004-06-24  Jim Meyering  <jim@meyering.net>
25836
25837         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
25838
25839 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
25840
25841         * modules/argz: Omit "#include".
25842
25843         * MODULES.html.sh (func_all_modules): Add calloc, to match
25844         2004-06-01 addition of calloc module.
25845
25846 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
25847
25848         * m4/argz.m4: New file, which is autoupdated from libtool.
25849
25850 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
25851
25852         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
25853         libtool.
25854
25855 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
25856
25857         * config/srclist-update: Don't insist on "USA." before the
25858         close-comment, as libtool omits the period and puts the */ on a
25859         separate line.
25860         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
25861         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
25862
25863 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
25864
25865         * modules/argz: New file.
25866         * MODULES.html.sh (func_all_modules): Add argz.
25867
25868 2004-06-12  Jim Meyering  <jim@meyering.net>
25869         and  Paul Eggert  <eggert@cs.ucla.edu>
25870
25871         * modules/hash (Files): Add lib/xalloc.h.
25872         * modules/pipe (Depends-on): Add wait-process.
25873         * modules/stat (Depends-on): Add xalloc.
25874         * modules/userspec (Files): Add lib/userspec.h.
25875         * modules/xstrto
25876
25877         Upgrade from gettext-0.13.
25878         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
25879         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
25880         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
25881
25882 2004-06-10  Jim Meyering  <jim@meyering.net>
25883
25884         * lib/calloc.c: New file.
25885
25886 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
25887
25888         * lib/getdate.y (yylex): Allow space between sign and number.
25889         Problem reported by Dan Jacobson.
25890
25891 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
25892
25893         Merge from coreutils CVS.
25894
25895         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
25896         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
25897         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
25898         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
25899         xstrtol.m4: Fix copyright date and/or serial number.
25900
25901         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
25902         See if we need an fchown replacement.
25903         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
25904         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
25905         and use the replacement function if we detect either defect.
25906
25907         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
25908         gl_UTIMECMP.
25909
25910 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
25911         and  Jim Meyering  <jim@meyering.net>
25912
25913         Merge from coreutils CVS.
25914
25915         * lib/stat-macros.h: New file, with contents from file-type.h
25916         and coreutils' system.h.
25917         * lib/file-type.c: Include "stat-macros.h".
25918         * lib/file-type.h (file_type): Move all macro definitions to new file,
25919         stat-macros.h.
25920
25921         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
25922         Wrap old code with this conditional.
25923         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
25924         function that does not dereference symlinks.
25925         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
25926
25927         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
25928         dependency problems.
25929         (xreadlink): Accept new arg SIZE, for efficiency.
25930         All decls and uses changed.
25931         * lib/xreadlink.h: Include <stddef.h>, for size_t.
25932
25933         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
25934         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
25935
25936         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
25937         sysexits.h.
25938
25939 2004-06-01  Jim Meyering  <jim@meyering.net>
25940
25941         * m4/calloc.m4: New file.
25942
25943 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
25944
25945         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
25946         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
25947         Also, fix a typo in a diagnostic.
25948
25949 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
25950
25951         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
25952         or AC_FUNC_REALLOC.
25953
25954 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
25955
25956         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
25957         macros to be defined.
25958         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
25959         the allocator returns NULL because the requested size is zero.
25960
25961 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
25962
25963         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
25964         var.  Add comment explaining why libc still defines it.  This
25965         merges the following patch from glibc:
25966         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
25967
25968 2004-05-20  Andreas Schwab  <schwab@suse.de>
25969
25970         * m4/free.m4: Replace free if it not known to work, not the other
25971         way round.
25972
25973 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
25974
25975         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
25976         present in glibc since revision 1.1 of this file.
25977         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
25978         obstack_alignment_mask, obstack_alloc, obstack_base,
25979         obstack_blank, obstack_blank_fast, obstack_chunk_size,
25980         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
25981         obstack_grow0, obstack_init, obstack_int_grow,
25982         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
25983         obstack_next_free, obstack_object_size, obstack_ptr_grow,
25984         obstack_ptr_grow_fast, obstack_room): Remove declarations of
25985         nonexistent functions.
25986
25987 2004-05-18  Karl Berry  <karl@gnu.org>
25988
25989         * config/srclist.txt: break link for vasnprintf.c.
25990
25991 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
25992
25993         Port obstack to the AS/400, where pointers are 16 bytes wide and
25994         you cannot cast an integer to a valid pointer.  This patch is
25995         currently waiting to be integrated into glibc; see
25996         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
25997
25998         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
25999         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
26000         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
26001         (struct obstack): temp member is now a union of a pointer and
26002         an integer, instead of an integer.  All integer uses changed.
26003         This does not affect the physical layout of struct obstack,
26004         except on hosts (like the AS/400) where the size or alignment of
26005         void * is greater than that of ptrdiff_t.
26006         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
26007         __STDC__)]: Store temporary in pointer member of union, not
26008         integer member.
26009         * lib/obstack.c: Include <stddef.h>, for offsetof.
26010         (struct fooalign): Remove; it doesn't need a name.
26011         (union fooround): Change double to long double, and add void *.
26012         (DEFAULT_ALIGNMENT): Use offsetof to compute.
26013         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
26014         not a macro.  Hence the values are always int; so remove all
26015         casts-to-int in uses.
26016
26017 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
26018
26019         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
26020         we can get this patch merged into glibc.
26021
26022 2004-05-17  Derek R. Price  <derek@ximbiot.com>
26023             Paul Eggert  <eggert@cs.ucla.edu>
26024
26025         * m4/argp: Depend on alloca.
26026
26027 2004-05-17  Derek R. Price  <derek@ximbiot.com>
26028             Paul Eggert  <eggert@cs.ucla.edu>
26029
26030         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
26031         freecoding.
26032
26033 2004-05-17  Bruno Haible  <bruno@clisp.org>
26034
26035         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
26036         precision that consists of a '.' followed by an empty digit string.
26037         Patch by Tor Lillqvist <tml@iki.fi>.
26038
26039 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
26040
26041         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
26042         for backward compatibility with older code.  We need our own
26043         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
26044         it under some other name, and our alloca.h will define it.
26045
26046 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
26047             Derek Price  <derek@ximbiot.com>
26048
26049         * lib/alloca.c: Include <alloca.h>, to get our interface.
26050         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
26051         include <alloca.h> first.  Use C89 prototype for alloca; this
26052         requires including <stddef.h> for size_t.  Use extern "C" if C++.
26053         Use #elif for simplicity, since we can assume C89 now.
26054         Don't try to source the system alloca.h since it will not be found
26055         and to prevent recursively including its replacement.
26056         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
26057         * lib/regex.c: Likewise.
26058
26059 2004-05-16  Derek Price  <derek@ximbiot.com>
26060             Paul Eggert  <eggert@cs.ucla.edu>
26061
26062         getline cleanup.  This changes the getndelim2 API: both order of
26063         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
26064         no delimiter).
26065
26066         * lib/getline.c: Don't include stddef.h or stdio.h, since our
26067         interface does that.
26068         (getline): Always use getdelim, so that we don't have two
26069         copies of this code.
26070         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
26071         if available.
26072         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
26073         (GETNDELIM2_MAXIMUM): New macro.
26074         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
26075         instead of the old practice of delim2==0.  All callers changed.
26076         Return -1 on overflow, instead of returning junk.
26077         Do not set *linesize unless allocation succeeds.
26078         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
26079         that we include sys/types.h.
26080         * lib/getnline.h: Likewise.
26081         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
26082         (getndelim2): Reorder arguments.
26083         * lib/getnline.c (getnline, getndelim):
26084         Don't discard the NMAX argument.
26085         (getnline): Invoke getndelim, to avoid code duplication.
26086         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
26087         of (size_t) -1 by callers of the getnline family.
26088
26089 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
26090
26091         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
26092         Check for gettimeofday.
26093         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
26094         Check for settimeofday, stime.
26095
26096 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
26097
26098         * lib/nanosleep.c (suspended): Change its type from int to
26099         sig_atomic_t volatile.
26100         (first_call): Make it private to rpl_nanosleep, and have it
26101         be zero initially as that's a bit faster.
26102         (my_usleep): Round up fractional times instead of truncating them,
26103         as this is the usual meaning for 'sleep'.
26104
26105         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
26106         doesn't work.
26107         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
26108         (ENOSYS): Define if not defined.
26109         (settime): Fall back on stime if it exists and settimeofday fails.
26110         But don't bother with fallbacks if a method fails with errno == EPERM.
26111
26112 2004-05-11  Jim Meyering  <jim@meyering.net>
26113
26114         Prior to this change, the save_cwd caller required read access to the
26115         current directory on most systems (ones with the fchdir function).
26116
26117         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
26118         fails, try write-only, and finally, resort to using xgetcwd.
26119
26120 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
26121
26122         * lib/obstack.c, obstack.h: Import changes from libc.
26123
26124 2004-04-28  Bruno Haible  <bruno@clisp.org>
26125
26126         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
26127         also implicitly appends .exe to executables.
26128         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
26129         accepts Windows pathnames.
26130         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
26131         Treat Cygwin like Windows, since it now accepts Windows pathnames.
26132         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
26133         Treat Cygwin like Windows, since it now accepts Windows pathnames.
26134         Reported by Derek Robert Price <derek@ximbiot.com>.
26135
26136 2004-04-21  Karl Berry  <karl@gnu.org>
26137
26138         * config/srclist.txt (localcharset.c): break sync.
26139
26140 2004-04-20  Paul Eggert  <eggert@twinsun.com>
26141
26142         * m4/host-os.m4: Add a copyright notice.
26143
26144 2004-04-20  Jim Meyering  <jim@meyering.net>
26145
26146         Change UTILS_ to gl_ in AC_DEFINE'd names.
26147         Change utils_- and jm_-prefixed variables, too.
26148         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
26149         UTILS_FUNC_MKDIR_TRAILING_SLASH.
26150         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
26151
26152         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
26153         Don't emit trailing blanks.
26154         Also rename jm_-prefixed variables to have gl_ prefix.
26155
26156         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
26157         Also rename jm_-prefixed variables to have gl_ prefix.
26158
26159         * m4/jm-macros.m4: Reflect the renamings.
26160         * m4/prereq.m4: Likewise.
26161
26162 2004-04-20  Jim Meyering  <jim@meyering.net>
26163
26164         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
26165         memory.
26166
26167 2004-04-20  Jim Meyering  <jim@meyering.net>
26168             Bruno Haible  <bruno@clisp.org>
26169
26170         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
26171         memory when realloc fails.
26172
26173 2004-04-19  Jim Meyering  <jim@meyering.net>
26174
26175         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
26176         now that readutmp.c may call `free (0)'.
26177
26178 2004-04-19  Bruno Haible  <bruno@clisp.org>
26179
26180         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
26181         * m4/inttypes_h.m4: Likewise.
26182         * m4/stdint_h.m4: Likewise.
26183         * m4/intmax_t.m4: Likewise.
26184         * m4/uintmax_t.m4: Likewise.
26185
26186 2004-04-18  Jim Meyering  <jim@meyering.net>
26187
26188         * m4/prereq.m4: Don't forbid jm_ prefix.
26189
26190         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
26191         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
26192         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
26193         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
26194         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
26195         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
26196         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
26197         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
26198         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
26199         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
26200         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
26201         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
26202         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
26203         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
26204         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
26205         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
26206         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
26207         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
26208         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
26209
26210 2004-04-18  Jim Meyering  <jim@meyering.net>
26211
26212         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
26213         failure, don't leak memory and do call END_UTMP_ENT.
26214
26215 2004-04-16  Jim Meyering  <jim@meyering.net>
26216
26217         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
26218         coreutils' stat program.
26219         (gl_PREREQ): Don't require jm_PREREQ_STAT.
26220
26221 2004-04-11  Paul Eggert  <eggert@twinsun.com>
26222
26223         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
26224         C89.
26225         (CHAR_BIT): Remove, since we assume C89.
26226         Include <stdint.h> if available, as per current Autoconf CVS advice.
26227
26228 2004-03-31  Jim Meyering  <jim@meyering.net>
26229
26230         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
26231         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
26232         * m4/xalloc.m4: Likewise.
26233
26234 2004-03-30  Paul Eggert  <eggert@twinsun.com>
26235
26236         Merge from coreutils.
26237
26238         * m4/inttostr.m4: New file.
26239         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
26240         Require AM_STDBOOL_H and gl_TIMESPEC instead.
26241         Require gl_CLOCK_TIME.
26242         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
26243
26244 2004-03-30  Paul Eggert  <eggert@twinsun.com>
26245
26246         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
26247         not bool, to be more consistent with Unix conventions.
26248         Suggested by Bruno Haible.
26249
26250         Merge from coreutils.
26251
26252         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
26253         * lib/umaxtostr.c: New files.
26254
26255         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
26256         the usual <time.h> dance.
26257         (get_date): Change signature to support fractional time stamps.
26258         All callers changed.
26259         * lib/getdate.y: Include "getdate.h" first, as we can now
26260         assume C89 and don't need to worry about 'const'.
26261         Similarly, include "unlocked-io.h" near start, not in middle.
26262         Include <limits.h>.
26263         (textint.value): Use long int rather than int.
26264         (textint.digits): Use size_t rather than int.
26265         (BILLION, LOG10_BILLION): New constants.
26266         (parser_control): New member rel_ns.  Members day_ordinal,
26267         time_zone, month, day, hour, minutes, rel_year, rel_month,
26268         rel_day, rel_hour, rel_minutes, rel_seconds
26269         are now long int, not int.  Member seconds is now struct timespec,
26270         not int.  New member timespec_seen.  Members dates_seen, days_seen,
26271         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
26272         not int.
26273         (%union.intval): Now long int, not int.
26274         New member timespec.
26275         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
26276         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
26277         (spec): Now is a timespec or an item list.
26278         (timespec, items): New nonterminals.
26279         (time, rel, relunit, number, get_date):
26280         Add support for fractional seconds.
26281         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
26282         (gmtime, localtime, mktime): Remove decls; not needed with C89.
26283         (to_hour): First arg is now long int, not int.
26284         (to_year): Returns long int, not int.
26285         Don't treat year -70 like 70.
26286         (tm_diff): Returns long int, not int.
26287         (lookup_word): Use bool instead of int when appropriate.
26288         (yylex): Use size_t for count, not int.
26289         Detect overflow when parsing large integer constants.
26290         Add support for fractions.
26291         (get_date): Make pointers 'const' if possible.
26292         Use more-portable code to detect integer overflow.
26293         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
26294         Don't use ctime; it's not reliable if the year has >4 digits.
26295
26296         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
26297         This is for compatibility with BSD.
26298
26299         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
26300         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
26301         From coreutils' system.h.
26302
26303         * lib/userspec.c: Don't include "posixver.h".
26304         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
26305         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
26306         compatible extension.  Simplify code by removing a boolean int
26307         that was always nonzero if a string was nonnull.
26308
26309 2004-03-30  Jim Meyering  <jim@meyering.net>
26310
26311         Merge from coreutils.
26312
26313         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
26314         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
26315         on some systems one must include <grp.h> before it.
26316         Reported by Christian Krackowizer.
26317
26318 2004-03-30  Jim Meyering  <jim@meyering.net>
26319
26320         Merge from coreutils.
26321
26322         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
26323
26324         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
26325         an empty input stream.
26326
26327         * lib/readtokens.c: Include <stdbool.h>.
26328         (readtoken): Use `size_t' rather than int/long.
26329         All callers adjusted.
26330         Use `bool' rather than `int' where appropriate.
26331         Use memset rather than an explicit loop.
26332         Use x2nrealloc rather than xrealloc.
26333         Allow the use of `\0' as a delimiter.
26334         (readtokens): Likewise.
26335         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
26336
26337 2004-03-30  Jim Meyering  <jim@meyering.net>
26338
26339         * m4/realloc.m4: Remove file, since now it does no more than
26340         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
26341         the `configure.ac' section of module/realloc.
26342         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
26343
26344 2004-03-30  Bruno Haible  <bruno@clisp.org>
26345
26346         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
26347         nonnull.
26348
26349 2004-03-29  Paul Eggert  <eggert@twinsun.com>
26350
26351         Merge changes to getloadavg.c from coreutils and Emacs.
26352
26353         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
26354         Define to an expression, not to the empty string.
26355         Include cloexec.h and xalloc.h.
26356         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
26357         Use set_cloexec_flag rather than rolling our own.
26358         * lib/cloexec.c, lib/cloexec.h: New files.
26359
26360 2004-03-29  Paul Eggert  <eggert@twinsun.com>
26361
26362         * m4/cloexec.m4: New file.
26363
26364 2004-03-18  Paul Eggert  <eggert@twinsun.com>
26365
26366         * lib/getopt.h: Sync with libc CVS.
26367
26368 2004-03-18  Paul Eggert  <eggert@twinsun.com>
26369             Bruno Haible  <bruno@clisp.org>
26370
26371         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
26372         mbswidth.
26373
26374 2004-03-18  Paul Eggert  <eggert@twinsun.com>
26375             Bruno Haible  <bruno@clisp.org>
26376
26377         * lib/mbswidth.h: Include <wchar.h> only if
26378         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
26379         <wchar.h>.
26380         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
26381
26382 2004-03-09  Paul Eggert  <eggert@twinsun.com>
26383
26384         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
26385         Sync with libc CVS.
26386         * lib/getopt_int.h: New file, also synced from libc.
26387
26388 2004-03-09  Paul Eggert  <eggert@twinsun.com>
26389
26390         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
26391         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
26392         Bring back getopt.c, getopt.h, getopt1.c.
26393
26394 2004-03-07  Paul Eggert  <eggert@twinsun.com>
26395
26396         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
26397         All uses changed.  Check for sa_sigaction member; this fixes
26398         a bug first reported by Jason Andrade in
26399         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
26400
26401 2004-03-07  Paul Eggert  <eggert@twinsun.com>
26402
26403         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
26404         '#if' expressions.  Unlike the code it replaces, it does not
26405         depend on (defined _SC_PAGESIZE).  However, it does depend on
26406         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
26407         first reported by Jason Andrade in
26408         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
26409
26410 2004-02-25  Simon Josefsson  <jas@extundo.com>
26411
26412         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
26413
26414 2004-02-25  Simon Josefsson  <jas@extundo.com>
26415
26416         * lib/strdup.h: New file.
26417         * lib/strdup.c: Include it.
26418         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
26419         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
26420
26421 2004-02-23  Karl Berry  <karl@gnu.org>
26422
26423         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
26424         (from fencepost.gnu.org:/gd/gnuorg).
26425
26426 2004-02-23  Karl Berry  <karl@gnu.org>
26427
26428         * config/srclistvars.sh (GNUORG) [karl]: redefine.
26429         * config/srclist.txt: add maintain/standards documents.
26430
26431 2004-02-18  Bruno Haible  <bruno@clisp.org>
26432
26433         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
26434         Reported by Derek Robert Price <derek@ximbiot.com>.
26435
26436 2004-02-16  Karl Berry  <karl@gnu.org>
26437
26438         * config/mkinstalldirs, install-sh: update from automake.
26439
26440 2004-02-06  Karl Berry  <karl@gnu.org>
26441
26442         * m4/po.m4: update from gettext 0.14.1.
26443
26444 2004-02-06  Karl Berry  <karl@gnu.org>
26445
26446         * lib/config.charset: update from gettext 0.14.1.
26447
26448 2004-02-05  Paul Eggert  <eggert@twinsun.com>
26449
26450         Add comments and code, prompted by suggestions from Bruno Haible
26451         for sh-quote.
26452         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
26453         describing the enum quoting_style values.
26454         * lib/quotearg.c (quotearg_alloc): New function.
26455         (quotearg_buffer_restyled): Treat lone { and } as special.
26456         Treat = as special.  Work around bug with older shells
26457         that "see" a '\' that is really the 2nd byte of a multibyte char.
26458         Quote empty string with shell_quoting_style.
26459
26460 2004-02-03  Bruno Haible  <bruno@clisp.org>
26461
26462         * m4/pipe.m4: New file, from GNU gettext.
26463
26464 2004-02-03  Bruno Haible  <bruno@clisp.org>
26465
26466         * lib/pipe.h: New file, from GNU gettext.
26467         * lib/pipe.c: New file, from GNU gettext.
26468
26469 2004-01-27  Bruno Haible  <bruno@clisp.org>
26470
26471         * m4/execute.m4: New file, from GNU gettext.
26472
26473 2004-01-27  Bruno Haible  <bruno@clisp.org>
26474
26475         * lib/execute.h: New file, from GNU gettext.
26476         * lib/execute.c: New file, from GNU gettext.
26477         * lib/w32spawn.h: New file, from GNU gettext.
26478
26479 2004-01-24  Paul Eggert  <eggert@twinsun.com>
26480
26481         Merge from diffutils.
26482
26483         * lib/file-type.c (file_type): Add typed memory objects.
26484         * lib/file-type.h (S_TYPEISTMO): New macro.
26485
26486         * lib/c-stack.h (c_stack_action): Remove argv argument.
26487         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
26488         (die): Don't calculate message unless segv_action returns.
26489         (get_stack_location, min_address_from_argv, max_address_from_argv,
26490         volatile stack_base, volatile_stack_size): Remove.
26491         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
26492         that every segmentation violation is a stack overflow.  (Ouch!)
26493         See Debian bug 136249 (still outstanding) for more info about why
26494         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
26495
26496 2004-01-24  Paul Eggert  <eggert@twinsun.com>
26497
26498         Exit-status fix from coreutils.
26499
26500         Use exit_failure consistently in place of EXIT_FAILURE,
26501         so that program exit statuses are consistent on failure.
26502
26503         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
26504         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
26505         * lib/argmatch.h: Comment fix to match the above.
26506         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
26507         Now a macro referring to exit_failure, instead of a separate
26508         variable.  Include "exitfail.h" to get it.
26509         * lib/xstrtol.h: Include "exitfail.h".
26510         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
26511
26512         * lib/long-options.c (parse_long_options): Use prototype
26513         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
26514         for clarity.
26515
26516 2004-01-21  Jim Meyering  <jim@meyering.net>
26517
26518         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
26519         so as not to conflict with a different-sized __mktime_internal
26520         function in GNU libc.
26521         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
26522         Problem building statically-linked `ls' reported by Michael Brunnbauer.
26523
26524 2004-01-20  Karl Berry  <karl@gnu.org>
26525
26526         * config/config.guess: update from config.
26527
26528         * config/srclistvars.sh: GNUWWWLICENSES for karl.
26529
26530 2004-01-20  Bruno Haible  <bruno@clisp.org>
26531
26532         Safer stack allocation.
26533         * lib/setenv.c: Include allocsa.h.
26534         (alloca): Remove fallback definition.
26535         (freea): Remove macro.
26536         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
26537         instead of freea.
26538
26539 2004-01-20  Bruno Haible  <bruno@clisp.org>
26540
26541         * m4/eealloc.m4: New file, from GNU gettext.
26542
26543 2004-01-20  Bruno Haible  <bruno@clisp.org>
26544
26545         * m4/allocsa.m4: New file, from GNU gettext.
26546
26547 2004-01-20  Bruno Haible  <bruno@clisp.org>
26548
26549         * lib/xallocsa.h: New file, from GNU gettext.
26550         * lib/xallocsa.c: New file, from GNU gettext.
26551
26552 2004-01-20  Bruno Haible  <bruno@clisp.org>
26553
26554         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
26555
26556 2004-01-20  Bruno Haible  <bruno@clisp.org>
26557
26558         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
26559         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
26560         specially.
26561
26562 2004-01-20  Bruno Haible  <bruno@clisp.org>
26563
26564         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
26565         patch.
26566
26567 2004-01-20  Bruno Haible  <bruno@clisp.org>
26568
26569         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
26570
26571 2004-01-20  Bruno Haible  <bruno@clisp.org>
26572
26573         * lib/eealloc.h: New file.
26574
26575 2004-01-20  Bruno Haible  <bruno@clisp.org>
26576
26577         * lib/binary-io.h: Avoid warnings on Cygwin.
26578
26579 2004-01-20  Bruno Haible  <bruno@clisp.org>
26580
26581         * lib/allocsa.h: New file, from GNU gettext.
26582         * lib/allocsa.c: New file, from GNU gettext.
26583
26584 2004-01-18  Karl Berry  <karl@gnu.org>
26585
26586         * doc/gpl.texi, doc/lgpl.texi: new files.
26587
26588 2004-01-18  Karl Berry  <karl@gnu.org>
26589
26590         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
26591         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
26592
26593 2004-01-15  Paul Eggert  <eggert@twinsun.com>
26594
26595         Merge from coreutils.
26596
26597         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
26598         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
26599         (gl_DEFAULT_POSIX2_VERSION): Move
26600         the documentation from 'configure' into 'config.hin',
26601         so that 'configure --help' isn't burdened by it and
26602         we don't have to worry about its formatting there.
26603         Reword the documentation so that it's more succinct
26604         and can be run together into a single paragraph.
26605         * m4/same.m4 (gl_SAME): Check for pathconf.
26606
26607 2004-01-15  Paul Eggert  <eggert@twinsun.com>
26608
26609         Merge from coreutils.
26610
26611         * lib/posixver.c: Include posixver.h.
26612
26613         * lib/same.c: Include <stdbool.h>, <limits.h>.
26614         (_POSIX_NAME_MAX): Define if not defined.
26615         (MIN): New macro.
26616         (same_name): If file names are silently truncated, report
26617         that the file names are the same if they are the same after
26618         the silent truncation.
26619
26620         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
26621         conversion function.
26622         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
26623         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
26624         longer needed.
26625
26626 2004-01-15  Jim Meyering  <jim@meyering.net>
26627
26628         Merge from coreutils.
26629
26630         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
26631         if no library is required.
26632         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
26633         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
26634         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
26635         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
26636         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
26637         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
26638         value, $ac_cv_search_crypt, if it's "none required".
26639         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
26640         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
26641         not gl_FUNC_GETLOADAVG.
26642         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
26643         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
26644
26645 2004-01-15  Jim Meyering  <jim@meyering.net>
26646
26647         Merge from coreutils.
26648
26649         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
26650         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
26651         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
26652
26653         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
26654         optional configure-time default.
26655
26656         * lib/version-etc.c (version_etc_copyright): Update copyright date.
26657
26658         * lib/xreadlink.c (xreadlink): Correct outdated comment.
26659
26660 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
26661
26662         Merge from coreutils.
26663
26664         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
26665         value, $ac_cv_search_nanosleep, if it's "none required".
26666
26667 2004-01-14  Paul Eggert  <eggert@twinsun.com>
26668
26669         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
26670         with like-named macro in fnmatch.c.
26671         (EXT): Use an internal constant instead.
26672
26673         Merge fnmatch patches from glibc.
26674         * lib/fnmatch.c (mbsinit): Remove define.
26675         Add libc_hidden_ver (__fnmatch, fnmatch).
26676         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
26677         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
26678
26679 2004-01-14  Karl Berry  <karl@gnu.org>
26680
26681         * config/install-sh: update from automake.
26682
26683 2004-01-13  Karl Berry  <karl@gnu.org>
26684
26685         * config/install-sh: update from automake.
26686
26687 2004-01-09  Karl Berry  <karl@gnu.org>
26688
26689         * config/install-sh: update from automake.
26690
26691 2004-01-05  Karl Berry  <karl@gnu.org>
26692
26693         * config/config.{sub,guess}: update from config.
26694
26695 2003-12-31  Karl Berry  <karl@gnu.org>
26696
26697         * config/depcomp: update from automake.
26698
26699 2003-12-14  Karl Berry  <karl@gnu.org>
26700
26701         * lib/config.charset: update from gettext-runtime.
26702
26703 2003-12-03  Paul Eggert  <eggert@twinsun.com>
26704
26705         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
26706         Bug reported by Alfred M. Szmidt.
26707
26708 2003-12-03  Bruno Haible  <bruno@clisp.org>
26709
26710         * m4/gettext.m4: Upgrade from gettext-0.13.
26711         * m4/po.m4: Upgrade from gettext-0.13.
26712         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
26713         * m4/intmax.m4: New file, from gettext-0.13.
26714         * m4/printf-posix.m4: New file, from gettext-0.13.
26715
26716 2003-11-29  Karl Berry  <karl@gnu.org>
26717
26718         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
26719
26720 2003-11-25  Paul Eggert  <eggert@twinsun.com>
26721             Bruno Haible  <bruno@clisp.org>
26722
26723         * lib/printf-parse.h: Don't include sys/types.h.
26724         (ARG_NONE): New macro.
26725         (char_directive): Change type of *arg_index fields to size_t.
26726         * lib/printf-parse.c: Don't include sys/types.h.
26727         (SSIZE_MAX): Remove macro.
26728         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
26729         Remove unnecessary overflow check.
26730         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
26731         fields.
26732
26733 2003-11-25  Bruno Haible  <bruno@clisp.org>
26734
26735         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
26736
26737 2003-11-25  Bruno Haible  <bruno@clisp.org>
26738
26739         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
26740         gt_TYPE_SSIZE_T.
26741
26742 2003-11-24  Paul Eggert  <eggert@twinsun.com>
26743
26744         * modules/alloca: Remove dependency on xalloc.
26745
26746 2003-11-24  Paul Eggert  <eggert@twinsun.com>
26747
26748         * lib/alloca.c: Remove dependency on xalloc module.
26749         (xalloc_die): Remove.
26750         (memory_full) [!defined emacs]: New macro.
26751         [!defined emacs]: Don't include xalloc.h.
26752         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
26753         address arithmetic overflows.  Change datatypes a bit to avoid
26754         unnecessary casts.
26755
26756 2003-11-22  Jim Meyering  <jim@meyering.net>
26757
26758         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
26759         s/size/size_t/.
26760
26761 2003-11-21  Karl Berry  <karl@gnu.org>
26762
26763         * config/config.{sub,guess}: update from config.
26764
26765 2003-11-18  Karl Berry  <karl@gnu.org>
26766
26767         * config/config.{sub,guess}: update from config.
26768
26769         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
26770
26771 2003-11-17  Paul Eggert  <eggert@twinsun.com>
26772
26773         * README: Mention that S+T cannot overflow if S is the size of
26774         an existing object and T is sufficiently small.
26775
26776 2003-11-17  Jim Meyering  <jim@meyering.net>
26777
26778         On systems without utime and without a utimes function capable of
26779         dealing with a NULL struct utimbuf* argument, this utime replacement
26780         could -- in unusual circumstances -- leak a file descriptor.
26781         * lib/utime.c: Include <unistd.h> and <errno.h>.
26782         (utime_null): Be sure to close `fd' and to preserve errno.
26783         Reported by Geoff Collyer via Arnold Robbins.
26784
26785 2003-11-17  Bruno Haible  <bruno@clisp.org>
26786
26787         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
26788         (Depends-on): Add xsize.
26789
26790 2003-11-17  Bruno Haible  <bruno@clisp.org>
26791
26792         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
26793
26794 2003-11-17  Bruno Haible  <bruno@clisp.org>
26795
26796         * lib/vasnprintf.c (alloca): Remove fallback definition.
26797         (freea): Remove definition.
26798         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
26799         Reported by Paul Eggert.
26800
26801 2003-11-16  Paul Eggert  <eggert@twinsun.com>
26802             Bruno Haible  <bruno@clisp.org>
26803
26804         Protect against address arithmetic overflow.
26805         * lib/printf-args.h: Include stddef.h.
26806         (arguments): Change type of field 'count' to size_t.
26807         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
26808         'unsigned int' where appropriate.
26809         * lib/printf-parse.h: Include sys/types.h.
26810         (char_directive): Change type of *arg_index fields to ssize_t.
26811         (char_directives): Change type of fields 'count', max_*_length to
26812         size_t.
26813         * lib/printf-parse.c: Include sys/types.h and xsize.h.
26814         (SSIZE_MAX): Define fallback value.
26815         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
26816         instead of 'int' where appropriate. Check a_allocated, d_allocated
26817         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
26818         * lib/vasnprintf.c: Include xsize.h.
26819         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
26820         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
26821         overflow. Avoid wraparound when converting a width or precision from
26822         decimal to binary.
26823
26824 2003-11-16  Bruno Haible  <bruno@clisp.org>
26825
26826         Update from GNU gettext.
26827         * lib/printf-parse.c: Generalize to it can be compiled for wide
26828         strings.
26829         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
26830         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
26831         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
26832         SNPRINTF): New macros.
26833         Don't include <alloca.h> if the file is used inside libintl.
26834         (local_wcslen): New function, for Solaris 2.5.1.
26835         (VASNPRINTF): Use it instead of wcslen.
26836
26837 2003-11-16  Bruno Haible  <bruno@clisp.org>
26838
26839         * lib/xsize.h (xmax): New function.
26840         (xsum, xsum3, xsum4): Declare as "pure" functions.
26841
26842 2003-11-12  Paul Eggert  <eggert@twinsun.com>
26843
26844         * modules/xalloc (Files): Undo latest change, since xalloc.h
26845         no longer needs SIZE_MAX or PTRDIFF_MAX.
26846
26847 2003-11-12  Paul Eggert  <eggert@twinsun.com>
26848
26849         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
26850         gl_PTRDIFF_MAX.
26851
26852 2003-11-12  Paul Eggert  <eggert@twinsun.com>
26853
26854         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
26855         "return", to pacify some unknown compiler.  Problem reported
26856         by Joerg Schilling.
26857
26858 2003-11-12  Paul Eggert  <eggert@twinsun.com>
26859
26860         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
26861         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
26862         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
26863         heuristic is just as accurate as far as we know, and it removes a
26864         dependency on size_max.m4 and ptrdiff_max.m4.
26865
26866 2003-11-11  Bruno Haible  <bruno@clisp.org>
26867
26868         * modules/xsize (Files): Add m4/size_max.m4.
26869         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
26870
26871 2003-11-11  Bruno Haible  <bruno@clisp.org>
26872
26873         * m4/size_max.m4: New file.
26874         * m4/ptrdiff_max.m4: New file.
26875         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
26876         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
26877         (gl_XALLOC): Invoke it.
26878
26879 2003-11-11  Bruno Haible  <bruno@clisp.org>
26880
26881         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
26882         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
26883         defined.
26884
26885 2003-11-10  Paul Eggert  <eggert@twinsun.com>
26886
26887         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
26888         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
26889         rejected some allocations of exactly SIZE_MAX - 2 bytes.
26890         From Bruno Haible.
26891         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
26892         not (size_t) -1, since it's defined here.
26893
26894 2003-11-09  Karl Berry  <karl@gnu.org>
26895
26896         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
26897
26898 2003-11-06  Paul Eggert  <eggert@twinsun.com>
26899
26900         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
26901         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
26902         Reject sizes of exactly SIZE_MAX bytes.
26903         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
26904         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
26905
26906 2003-11-05  Bruno Haible  <bruno@clisp.org>
26907
26908         * lib/xsize.h: Include limits.h, to avoid a possible collision with
26909         SIZE_MAX defined in <limits.h> on Solaris.
26910
26911 2003-11-04  Jim Meyering  <jim@meyering.net>
26912
26913         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
26914         variable names, rather than @VAR@.
26915         * modules/poll: Likewise.
26916
26917 2003-11-04  Bruno Haible  <bruno@clisp.org>
26918
26919         * modules/xsize: New file.
26920         * modules/linebreak: Depend on xsize.
26921         * MODULES.html.sh (func_all_modules): Add xsize.
26922
26923 2003-11-04  Bruno Haible  <bruno@clisp.org>
26924
26925         * m4/xsize.m4: New file.
26926
26927 2003-11-04  Bruno Haible  <bruno@clisp.org>
26928
26929         * lib/xsize.h: New file.
26930         * lib/linebreak.c: Include xsize.h.
26931         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
26932         argument for overflow.
26933         Suggested by Paul Eggert.
26934
26935 2003-11-03  Karl Berry  <karl@gnu.org>
26936
26937         * config/config.{guess,sub}: update from config.
26938
26939 2003-11-03  Jim Meyering  <jim@meyering.net>
26940
26941         * modules/userspec (lib_SOURCES): Add userspec.h.
26942         (Include): Add "userspec.h".
26943         Improve description.
26944
26945 2003-11-03  Jim Meyering  <jim@meyering.net>
26946
26947         * lib/userspec.c: Include "userspec.h".
26948         * lib/userspec.h: New file.
26949
26950 2003-11-03  Bruno Haible  <bruno@clisp.org>
26951
26952         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
26953
26954 2003-11-03  Bruno Haible  <bruno@clisp.org>
26955
26956         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
26957         available, to avoid (extremely rare) race condition.
26958         Suggested by Paul Eggert.
26959
26960 2003-11-02  Karl Berry  <karl@gnu.org>
26961
26962         * config/srclist.txt (vasprintf.c): sync broken, sigh.
26963
26964 2003-10-31  Paul Eggert  <eggert@twinsun.com>
26965
26966         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
26967         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
26968         (read_filesystem_list): Set and use me_type_malloced.
26969         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
26970         whatever the type happens to be), for brevity and consistency.
26971         Check for size calculation overflow on Alphas running OSF/1.
26972
26973 2003-10-31  Jim Meyering  <jim@meyering.net>
26974
26975         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
26976
26977         * lib/linebuffer.c: Include <string.h> for declaration of memset.
26978
26979 2003-10-30  Paul Eggert  <eggert@twinsun.com>
26980             Bruno Haible  <bruno@clisp.org>
26981
26982         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
26983         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
26984
26985 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
26986
26987         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
26988         netbsd*-gnu*.  Suggested by Robert Millan.
26989
26990 2003-10-29  Paul Eggert  <eggert@twinsun.com>
26991
26992         * modules/group-member: Depend on stdbool.
26993
26994 2003-10-29  Paul Eggert  <eggert@twinsun.com>
26995
26996         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
26997
26998 2003-10-29  Paul Eggert  <eggert@twinsun.com>
26999
27000         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
27001         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
27002         after the 'gnu' in these cases.  This fixes some bugs in the
27003         previous change, and is based on suggestions by Robert Millan.
27004
27005 2003-10-29  Paul Eggert  <eggert@twinsun.com>
27006
27007         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
27008         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
27009         no longer needed.
27010         * lib/quotearg.c (quotearg_n_options): Use it.
27011         * lib/group-member.c: Include <stdbool.h>.
27012         (free_group_info): Arg is now const *; don't free arg.
27013         (get_group_info): Now returns bool and accepts struct group_info *,
27014         rather than returning a malloc'ed struct group_info *.
27015         All uses changed.  Check for overflow in internal size calculation.
27016
27017         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
27018         rather than xmalloc/xrealloc.
27019         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
27020         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
27021         conformance bug: the old code used a pointer after freeing the
27022         storage that it addressed.
27023         * lib/hash.c (hash_initialize): Simplify the code by using
27024         xalloc_oversized rather than doing it by hand.
27025         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
27026         the buffer preserved.  Use free and xmalloc instead.
27027         * lib/quotearg.c (quotearg_n_options): Likewise.
27028         Use a simpler test for size overflow.  Don't use xalloc_oversized
27029         because unsigned int might be wider than size_t (!); this suggests
27030         that we should switch from unsigned int to size_t for slot numbers.
27031
27032 2003-10-28  Paul Eggert  <eggert@twinsun.com>
27033
27034         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
27035         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
27036         NetBSD kernels.  Requested by Richard Stallman.
27037
27038 2003-10-27  Paul Eggert  <eggert@twinsun.com>
27039
27040         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
27041         to allocate the returned structure.  Do not allocate a subarray,
27042         as x2nrealloc will do that.
27043         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
27044         instead of xnrealloc.
27045         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
27046
27047 2003-10-27  Bruno Haible  <bruno@clisp.org>
27048
27049         * lib/stdbool_.h: Better support for BeOS.
27050
27051 2003-10-26  Paul Eggert  <eggert@twinsun.com>
27052
27053         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
27054         now uses inline.
27055
27056 2003-10-26  Paul Eggert  <eggert@twinsun.com>
27057
27058         * lib/xalloc.h (xalloc_oversized): New static inline function, for
27059         callers that want to do their own size-overflow checking.  Include
27060         <stdbool.h>, since xalloc_oversized returns bool.
27061         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
27062         to use xalloc_oversized.
27063
27064         Add two functions x2realloc, x2nrealloc, for programs that grow
27065         arrays dynamically by doubling their sizes.
27066         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
27067         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
27068         New functions.
27069
27070         Port to C99 semantics for 'inline' of external functions.
27071         Bug reported by Bruno Haible.
27072         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
27073         with the old contents of xnmalloc.
27074         (xnmalloc, xmalloc): Use it.
27075         (xnrealloc_inline): New static inline function,
27076         with the old contents of xnrealloc.
27077         (xnrealloc, xrealloc): Use it.
27078
27079         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
27080         that.
27081
27082 2003-10-26  Karl Berry  <karl@gnu.org>
27083
27084         * config/srclist.txt (COPYING.DOC): no longer available from
27085         /gd/gnuorg; don't know where the ultimate source is.
27086
27087 2003-10-25  Paul Eggert  <eggert@twinsun.com>
27088
27089         Fix several address-calculation bugs in the hash modules,
27090         plus some minor code cleanup.
27091
27092         * lib/hash.h: Include <stdbool.h>, for bool.
27093         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
27094         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
27095         hash_get_n_entries, hash_get_max_bucket_length,
27096         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
27097         hash_rehash): Use size_t rather than unsigned.
27098         * lib/hash.c (struct hash_table, hash_get_n_buckets,
27099         hash_get_n_buckets_used, hash_get_n_entries,
27100         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
27101         hash_get_entries, hash_do_for_each, hash_string, is_prime,
27102         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
27103         Likewise.
27104         (SIZE_MAX): Define if not defined.
27105         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
27106         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
27107         hash_print):
27108         Use const * when possible.
27109         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
27110         (check_tuning): Fix bug: if tuning parameters were very close to
27111         0 or 1, rounding errors could have caused subscript violations.
27112         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
27113         (hash_initialize): Add 'fail:' label
27114         to free table and return NULL, and use it to simplify code.
27115         Use calloc rather than clearing the storage ourself.
27116         (hash_initialize, hash_rehash): Check for arithmetic overflow in
27117         buffer size calculations.
27118         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
27119         Include <stddef.h>, for size_t.
27120         * lib/hash-pjw.c (hash_pjw): Likewise.
27121         Switch to method described by Bruno Haible.
27122         Include <limits.h>, for CHAR_BIT.
27123         (SIZE_BITS): New macro.
27124
27125 2003-10-23  Paul Eggert  <eggert@twinsun.com>
27126
27127         * m4/getline.m4 (AM_FUNC_GETLINE):
27128         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
27129         hosts.  Problem reported by Derek Robert Price in
27130         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
27131         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
27132         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
27133
27134 2003-10-21  Paul Eggert  <eggert@twinsun.com>
27135
27136         * lib/getndelim2.c (getndelim2): When size calculation overflows,
27137         ceiling the allocation at NMAX bytes rather than silently
27138         discarding input bytes before NMAX is reached.  This makes
27139         a difference only if NMAX exceeds SIZE_MAX / 2.
27140
27141         * lib/obstack.c: Merge from glibc.
27142         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
27143         Add libc_hidden_def (_obstack_newchunk).
27144         (_obstack_free) [! defined _LIBC]: Remove.
27145         [defined _LIBC]: Make a strong alias from obstack_free, rather than
27146         a clone of the function body.
27147         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
27148         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
27149
27150         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
27151         glibc.
27152         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
27153         arg to memcpy.
27154
27155         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
27156         (obstack_ptr_grow_fast, obstack_int_grow_fast):
27157         Don't use lvalue casts, as GCC plans to remove support for them
27158         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
27159         was also present in the non-GCC version, indicating that this
27160         code had always been buggy and had never been widely used.
27161         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
27162         Use the fast variant of each macro, rather than copying the
27163         definiens of the fast variant; that way, we'll be more likely to
27164         catch future bugs in the fast variants.
27165
27166 2003-10-20  Bruno Haible  <bruno@clisp.org>
27167
27168         * modules/wait-process: New file.
27169         * MODULES.html.sh (func_all_modules): Add wait-process.
27170
27171 2003-10-20  Bruno Haible  <bruno@clisp.org>
27172
27173         * m4/wait-process.m4: New file.
27174
27175 2003-10-20  Bruno Haible  <bruno@clisp.org>
27176
27177         * lib/wait-process.h: New file, from GNU gettext.
27178         * lib/wait-process.c: New file, from GNU gettext.
27179
27180 2003-10-19  Jim Meyering  <jim@meyering.net>
27181
27182         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
27183         HPUX 10.20.
27184
27185 2003-10-18  Karl Berry  <karl@gnu.org>
27186
27187         * config/config.guess: update from config.
27188
27189 2003-10-16  Paul Eggert  <eggert@twinsun.com>
27190
27191         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
27192         (getgroups): First arg is int, not size_t.
27193         Don't let 'free' mangle errno.
27194
27195 2003-10-16  Paul Eggert  <eggert@twinsun.com>
27196
27197         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
27198
27199 2003-10-16  Karl Berry  <karl@gnu.org>
27200
27201         * config/config.{guess,sub}: update from config.
27202
27203 2003-10-16  Jim Meyering  <jim@meyering.net>
27204
27205         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
27206         memcpy.
27207
27208 2003-10-15  Paul Eggert  <eggert@twinsun.com>
27209
27210         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
27211         (SIZE_MAX): Remove.
27212         (new_exclude, add_exclude_file): Initial size no longer needs to
27213         be a power of 2.
27214         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
27215         our own address arithmetic overflow checking.
27216
27217         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
27218         (fnmatch): Do not alloca more than 2000 wide characters;
27219         instead, use malloc for large buffers.
27220         Check for address arithmetic overflow, and return -1
27221         with errno set to ENOMEM in that case.
27222         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
27223         (NEW_PATTERN): Do not alloca more than 8000 bytes;
27224         instead, return -1.  Check for address arithmetic overflow.
27225
27226 2003-10-14  Paul Eggert  <eggert@twinsun.com>
27227
27228         Handle invalid suffixes and overflow independently, so that
27229         callers can treat them independently as needed.  Fix some bugs in
27230         suffix handling, e.g., "100k@" was not diagnosed as an invalid
27231         suffix for a human-readable blocksize.  The major caller-visible
27232         change is the addition of a new
27233         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
27234         that both overflow and suffix chars were found.
27235
27236         * lib/human.c (humblock): Don't check separately for invalid suffix
27237         char; that is xstrtoumax's job (now that its bug is fixed).
27238         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
27239         INTMAX_MAX]: New macros.
27240         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
27241         TYPE_MAXIMUM): New macros.
27242         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
27243         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
27244         if overflow occurs, as it's what __strtol does and it's more useful
27245         in practice.
27246         (__xstrtol): If __strtol reports some error other than ERANGE,
27247         reflect it to the caller as LONGINT_INVALID.  If it reports
27248         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
27249         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
27250         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
27251         value.
27252         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
27253         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
27254         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
27255         [defined UINTMAX_MAX]: New macros.
27256
27257 2003-10-14  Bruno Haible  <bruno@clisp.org>
27258
27259         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
27260
27261 2003-10-14  Bruno Haible  <bruno@clisp.org>
27262
27263         * m4/sig_atomic_t: New file, from GNU gettext.
27264         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
27265
27266 2003-10-14  Bruno Haible  <bruno@clisp.org>
27267
27268         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
27269         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
27270         Also use volatile where needed.
27271
27272 2003-10-12  Paul Eggert  <eggert@twinsun.com>
27273
27274         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
27275         Change maintainer from Bruno Haible to 'all'.
27276
27277 2003-10-12  Paul Eggert  <eggert@twinsun.com>
27278
27279         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
27280
27281 2003-10-12  Paul Eggert  <eggert@twinsun.com>
27282
27283         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
27284         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
27285         and define in terms of the other primitives.
27286         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
27287         (SIZE_MAX): Define if not already defined.
27288         (array_size_overflow): New function.
27289         (xalloc_die): Abort instead of exiting if 'error' returns.
27290         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
27291         (xmalloc, xrealloc): Use them.
27292         (xcalloc): Check for address arithmetic overflow.
27293         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
27294         a bit faster than strcpy.
27295
27296 2003-10-10  Simon Josefsson  <jas@extundo.com>
27297
27298         * modules/argp (Depends-on): Add restrict and strcase.
27299
27300 2003-10-10  Simon Josefsson  <jas@extundo.com>
27301
27302         * m4/argp.m4: Add AC_C_INLINE.
27303
27304 2003-10-08  Paul Eggert  <eggert@twinsun.com>
27305
27306         Merge getpass from libc, plus a few fixes.
27307
27308         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
27309         Include <stdbool.h>.
27310         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
27311         __fsetlocking to empty.
27312         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
27313         do include <bits/libc-lock.h>.
27314         Do not include <fcntl.h>; not needed.
27315         [_LIBC]: Include <wchar.h>.
27316         (NOTCANCEL_MODE): New macro.
27317         (flockfile, funlockfile) [_LIBC]: New macros.
27318         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
27319         [!_LIBC]: New macros.
27320         (call_fclose): New function.
27321         (getpass): Use it.  Save tty stream separately; this simplifies the
27322         code and makes it more reliable if stdin happens to equal stdout.
27323         Invoke __fsetlocking on tty.
27324         Handle thread cancellation if needed.
27325         Namespace cleanup (use __tcgetattr, __getline).
27326         Use bool for Booleans.
27327         [USE_IN_LIBIO]: Handle wide streams.
27328         [!_LIBC]: Unconditionally do the fseek, since we don't know what
27329         stream might go where.
27330
27331         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
27332         doesn't have to include <stdio.h> before us.
27333         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
27334         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
27335         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
27336         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
27337         if not declared, so that we can use getpass.c code from libc without
27338         rewriting it.
27339         (flockfile, ftrylockfile, funlockfile): New macros.
27340
27341 2003-10-08  Paul Eggert  <eggert@twinsun.com>
27342
27343         * modules/getpass: Depend on stdbool.
27344
27345 2003-10-08  Paul Eggert  <eggert@twinsun.com>
27346
27347         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
27348
27349 2003-10-07  Karl Berry  <karl@gnu.org>
27350
27351         * config/config.{guess,sub}: update from config.
27352
27353 2003-10-06  Jim Meyering  <jim@meyering.net>
27354             Bruno Haible  <bruno@clisp.org>
27355
27356         This lets translators provide better translations for the
27357         "Written by ..." part of --version output.
27358         * lib/version-etc.h: Include stdarg.h.
27359         (version_etc_copyright): Declare as readonly.
27360         (version_etc): Make this function variadic with a NULL-terminated list
27361         of author name strings.
27362         (version_etc_va): New declaration.
27363         * lib/version-etc.c: Include stdarg.h, stdlib.h.
27364         (version_etc_copyright): Declare as readonly.
27365         (version_etc_va): New function. Provide a different translatable string
27366         for each possible number of authors < 10. Abbreviate when there are 10
27367         authors or more.
27368         (version_etc): Make this function variadic. Call version_etc_va.
27369         Suggestion from Gary V. Vaughan.
27370
27371         * lib/long-options.h (parse_long_options): Change prototype: the
27372         authors string is moved to the end and becomes variadic.
27373         * lib/long-options.c: Include stdarg.h.
27374         (parse_long_options): Make this function variadic, too.
27375         Call version_etc_va, not version_etc.
27376
27377 2003-10-06  Bruno Haible  <bruno@clisp.org>
27378
27379         * modules/version-etc-2: Remove file.
27380         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
27381
27382 2003-10-06  Bruno Haible  <bruno@clisp.org>
27383
27384         * modules/fatal-signal: New file.
27385         * MODULES.html.sh (func_all_modules): Add fatal-signal.
27386
27387 2003-10-06  Bruno Haible  <bruno@clisp.org>
27388
27389         * m4/fatal-signal.m4: New file.
27390         * m4/signalblocking.m4: New file, from GNU gettext.
27391
27392 2003-10-06  Bruno Haible  <bruno@clisp.org>
27393
27394         * lib/version-etc-2.h: Remove file.
27395         * lib/version-etc-2.c: Remove file.
27396
27397 2003-10-06  Bruno Haible  <bruno@clisp.org>
27398
27399         * lib/fatal-signal.h: New file, from GNU gettext.
27400         * lib/fatal-signal.c: New file, from GNU gettext.
27401
27402 2003-10-05  Paul Eggert  <eggert@twinsun.com>
27403
27404         * README: Rework advice for preventing empty .o files.
27405         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
27406         not <sys/types.h>.
27407
27408 2003-10-04  Karl Berry  <karl@gnu.org>
27409
27410         * lib/argp*: update from libc.
27411
27412 2003-10-04  Karl Berry  <karl@gnu.org>
27413
27414         * config/config.{guess,sub}: update from config.
27415
27416 2003-10-02  Bruno Haible  <bruno@clisp.org>
27417
27418         * modules/lchown (Include): Add lchown.h.
27419         * modules/time_r (Include): Use "..." syntax.
27420         * modules/xgetdomainname (Include): Add xgetdomainname.h.
27421
27422 2003-10-01  Simon Josefsson  <jas@extundo.com>
27423
27424         * MODULES.html.sh (func_all_modules): Move gethostname from section
27425         'based on' to section 'lacking' POSIX:2001.
27426
27427 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
27428
27429         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
27430         to output mode on the same stream.
27431
27432 2003-09-29  Paul Eggert  <eggert@twinsun.com>
27433
27434         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
27435         Fix arg typo in previous patch.
27436
27437 2003-09-28  Jim Meyering  <jim@meyering.net>
27438
27439         * lib/error.c: Correct cpp indentation.
27440
27441 2003-09-27  Paul Eggert  <eggert@twinsun.com>
27442
27443         * modules/free: New file.
27444
27445 2003-09-27  Paul Eggert  <eggert@twinsun.com>
27446
27447         * m4/free.m4: New file.
27448
27449 2003-09-27  Paul Eggert  <eggert@twinsun.com>
27450
27451         * lib/minmax.h (MIN, MAX)
27452         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
27453         Omit the special code that used __typeof__, since we worry that
27454         it could be more trouble than it's worth.  See:
27455         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
27456         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
27457
27458         * lib/free.c: New file.
27459
27460 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
27461
27462         Trivial fixes to Makefile.am parts of module listings.
27463         * modules/strstr: Append strstr.h to lib_SOURCES.
27464         * modules/strcase: Likewise, for strcase.h.
27465
27466 2003-09-27  Karl Berry  <karl@gnu.org>
27467
27468         * config/mkinstalldirs: update from automake.
27469
27470 2003-09-26  Paul Eggert  <eggert@twinsun.com>
27471
27472         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
27473         (error_tail): Do not loop, reallocating temporary buffer, since
27474         the output cannot contain more wide characters than the input
27475         contains bytes, the size must be big enough already.  This avoids
27476         one potential size overflow calculation.  Check for size overflow
27477         when calculating temporary buffer size.  Free temporary buffer
27478         when done, if it was allocated with malloc; this plugs a memory
27479         leak.  Remove casts from void * to pointers, that are no longer
27480         needed now that we're assuming C89 or better.
27481
27482         Merge error changes from glibc.
27483
27484         * lib/error.c, error.h: Update copyright notice header to match glibc.
27485         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
27486         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
27487         Disable cancellation while printing error.
27488         * lib/error.h: Prepend __ to parameter names.
27489
27490 2003-09-26  Jim Meyering  <jim@meyering.net>
27491
27492         * lib/error.c (error_tail): Move some declarations
27493         into inner scope where the local variables are used.
27494
27495 2003-09-26  Bruno Haible  <bruno@clisp.org>
27496
27497         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
27498         stpncpy().
27499         Don't define stpncpy through config.h; it's now done through stpncpy.h.
27500
27501 2003-09-26  Bruno Haible  <bruno@clisp.org>
27502
27503         * lib/stpncpy.h (gnu_stpncpy): New declaration.
27504         (stpncpy): Define as alias for gnu_stpncpy.
27505         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
27506
27507 2003-09-25  Simon Josefsson  <jas@extundo.com>
27508
27509         * lib/xgetdomainname.h: New file.
27510         * lib/xgetdomainname.c: New file.
27511
27512 2003-09-25  Simon Josefsson  <jas@extundo.com>
27513             Bruno Haible  <bruno@clisp.org>
27514
27515         * modules/getdomainname: New file.
27516         * modules/xgetdomainname: New file.
27517         * MODULES.html.sh (func_all_modules): Add getdomainname,
27518         xgetdomainname.
27519
27520 2003-09-25  Simon Josefsson  <jas@extundo.com>
27521             Bruno Haible  <bruno@clisp.org>
27522
27523         * m4/getdomainname.m4: New file.
27524
27525 2003-09-25  Simon Josefsson  <jas@extundo.com>
27526             Bruno Haible  <bruno@clisp.org>
27527
27528         * lib/getdomainname.h: New file.
27529         * lib/getdomainname.c: New file.
27530
27531 2003-09-25  Karl Berry  <karl@gnu.org>
27532
27533         * lib/argp-fmtstream.c, argp-help.c: update from libc.
27534
27535 2003-09-25  Karl Berry  <karl@gnu.org>
27536
27537         * config/install-sh: update from automake.
27538
27539 2003-09-25  Bruno Haible  <bruno@clisp.org>
27540
27541         * modules/version-etc-2: New file, from modules/version-etc with
27542         modifications.
27543         * MODULES.html.sh (func_all_modules): Add version-etc-2.
27544
27545 2003-09-25  Bruno Haible  <bruno@clisp.org>
27546
27547         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
27548         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
27549
27550 2003-09-24  Simon Josefsson  <jas@extundo.com>
27551
27552         * modules/xgethostname: Add xgethostname.h.
27553
27554 2003-09-24  Paul Eggert  <eggert@twinsun.com>
27555
27556         * lib/linebuffer.c (freebuffer): Don't free the argument, just
27557         the buffer associated with the argument.  Bug reported by
27558         Simon Josefsson.
27559
27560 2003-09-24  Paul Eggert  <eggert@twinsun.com>
27561
27562         * README: Document assumptions that 'int' is at least 32 bits
27563         wide, that integer arithmetic is 2's complement without overflow,
27564         that there are no holes in integer values, that adding sizes of
27565         two nonoverlapping objects can't overflow, and that all-bits-zero
27566         yields scalar zero.  Fix spelling and capitalization typos.
27567
27568 2003-09-19  Karl Berry  <karl@gnu.org>
27569
27570         * lib/argp.h: update from libc.
27571
27572 2003-09-17  Paul Eggert  <eggert@twinsun.com>
27573
27574         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
27575         to avoid spurious warnings like "AC_RUN_IFELSE was called before
27576         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
27577
27578 2003-09-17  Paul Eggert  <eggert@twinsun.com>
27579
27580         * gnulib-tool: Use "test -h", not "test -L", for portability
27581         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
27582         (tags_regexp): Remove, since \| doesn't conform to POSIX.
27583         (sed_extract_prog): Issue s commands one-by-one, rather than
27584         using \| in one s command.
27585
27586 2003-09-16  Paul Eggert  <eggert@twinsun.com>
27587
27588         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
27589         input error, instead of returning NULL the next time we are called
27590         (and therefore losing track of errno).
27591
27592 2003-09-16  Bruno Haible  <bruno@clisp.org>
27593
27594         * gnulib-tool (func_create_testdir): Warn about duplicated
27595         dependencies.
27596
27597 2003-09-15  Paul Eggert  <eggert@twinsun.com>
27598
27599         * modules/argmatch, modules/fatal, modules/obstack,
27600         modules/xalloc, modules/xgethostname: Sort dependencies by
27601         importance, not alphabetically.
27602
27603 2003-09-15  Paul Eggert  <eggert@twinsun.com>
27604
27605         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
27606         fails, so that the caller gets the proper errno.
27607
27608         * lib/readutmp.c (read_utmp): Likewise.
27609         Check for fstat error.  Close stream and free storage
27610         when failing.
27611
27612 2003-09-14  Karl Berry  <karl@gnu.org>
27613
27614         * config/srclist.txt (strdup.c): disable for c89 changes.
27615
27616 2003-09-14  Jim Meyering  <jim@meyering.net>
27617
27618         * lib/getloadavg.c: Correct cpp indentation.
27619         * lib/strdup.c: Likewise.
27620         * lib/vasnprintf.c: Likewise.
27621
27622 2003-09-14  Bruno Haible  <bruno@clisp.org>
27623
27624         * modules/fwriteerror: New file.
27625         * MODULES.html.sh (func_all_modules): Add fwriteerror.
27626
27627 2003-09-14  Bruno Haible  <bruno@clisp.org>
27628
27629         * lib/fwriteerror.h: New file.
27630         * lib/fwriteerror.c: New file.
27631
27632 2003-09-12  Paul Eggert  <eggert@twinsun.com>
27633
27634         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
27635         modules/xgethostname, modules/xalloc: Depend on exit.
27636
27637 2003-09-12  Paul Eggert  <eggert@twinsun.com>
27638
27639         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
27640
27641         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
27642         and AC_MINIX, too, so that their extensions are available.
27643
27644         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
27645         This macro has been superseded by gl_BACKUPFILE.
27646
27647         More patches to assume C89 or better.
27648
27649         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
27650
27651         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
27652         unconditionally.
27653         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
27654         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
27655         Include <string.h>, <stdlib.h> unconditionally.
27656         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
27657         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
27658         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
27659         headers or for string.h.
27660         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
27661         or strtoul.
27662
27663         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
27664         headers.
27665         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
27666         * m4/userspec.m4 (gl_USERSPEC): Likewise.
27667         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
27668         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
27669         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
27670         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
27671         memcpy, memset.
27672         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
27673         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
27674         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
27675         strtol.
27676         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
27677         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
27678         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
27679         strtoul.
27680
27681 2003-09-12  Paul Eggert  <eggert@twinsun.com>
27682
27683         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
27684         * lib/obstack.c [!defined _LIBC]: Likewise.
27685         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
27686         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
27687         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
27688
27689         More changes to assume C89 or better.
27690
27691         * lib/error.c (error_tail): Assume vprintf.
27692
27693         * lib/argmatch.c (getenv): Remove decl.
27694         * lib/progreloc.c (get_full_program_name): Define via prototype.
27695         * lib/setenv.c (clearenv): Likewise.
27696         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
27697         needed.
27698         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
27699         (malloc, memcpy): Remove decls.
27700         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
27701         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
27702         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
27703         (memcpy): Remove macro.
27704         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
27705         (__P): Remove.  All uses removed.
27706         (PTR): Remove.  All uses changed to void *.
27707         (CHAR_BIT, NULL): Remove.
27708         (spaces, zeros, memset_space, memset_zero)
27709         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
27710         Remove.
27711         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
27712         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
27713         Define with prototype.
27714         Remove now-unnecessary prototype decl.
27715         (extra_args_spec): Assume ANSI C.  All uses changed.
27716         (extra_args_spec_iso): Remove.
27717         (my_strftime, emacs_strftimeu): Define via prototype.
27718         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
27719         unconditionally.
27720         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
27721         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
27722         (strtoul, strtol): Remove decls.
27723         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
27724         LONG_MAX): Remove.
27725         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
27726         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
27727         (LOCALE_PARAM_PROTO): New macro.
27728         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
27729         (INTERNAL (strtol), strtol): Define with a prototype.
27730         (PARAMS): Remove.  All uses removed.
27731         * lib/tempname.c: Include <string.h> unconditionally.
27732         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
27733         * lib/xgethostname.c (main): Define with a prototype.
27734         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
27735         Include <stdlib.h> unconditionally.
27736         (calloc, malloc, realloc, free): Remove decls.
27737         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
27738         Include <stdlib.h> unconditionally.  Sort include file names.
27739         (strtod): Remove.
27740         (xstrtod): Define with a prototype.
27741         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
27742         (strtol, strtoul): Remove decls.
27743
27744 2003-09-11  Paul Eggert  <eggert@twinsun.com>
27745
27746         More patches to assume C89 or better.
27747         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
27748         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
27749         string.h, memchr, STDC_HEADERS.
27750
27751 2003-09-11  Paul Eggert  <eggert@twinsun.com>
27752
27753         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
27754         Include <stdlib.h>, <string.h> unconditionally.
27755         Remove now-unnecessary cast to char *.
27756         * lib/strnlen.c: Include <string.h> unconditionally.
27757         * lib/yesno.c (yesno): Define with a prototype.
27758
27759 2003-09-11  Bruno Haible  <bruno@clisp.org>
27760
27761         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
27762
27763 2003-09-10  Jim Meyering  <jim@meyering.net>
27764
27765         * lib/error.c: Correct indentation of cpp directives.
27766
27767 2003-09-10  Bruno Haible  <bruno@clisp.org>
27768
27769         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
27770         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
27771         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
27772         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
27773         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
27774         <stdlib.h> and <string.h> checks.
27775         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
27776         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
27777
27778 2003-09-10  Bruno Haible  <bruno@clisp.org>
27779
27780         * lib/strcspn.c: Include <string.h> unconditionally.
27781         * lib/strpbrk.c: Include <string.h> unconditionally.
27782         * lib/strstr.c: Include <string.h> unconditionally.
27783         * lib/unicodeio.c: Include <string.h> unconditionally.
27784         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
27785         * lib/unsetenv.c: Likewise.
27786         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
27787         * lib/yesno.c: Include <stdlib.h> unconditionally.
27788         (rpmatch): Add prototype.
27789
27790 2003-09-09  Paul Eggert  <eggert@twinsun.com>
27791
27792         More patches to assume C89 or better.
27793         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
27794         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
27795         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
27796         or for string.h.
27797         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
27798         stdlib.h.
27799         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
27800         C headers.
27801         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
27802         string.h.
27803         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
27804         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
27805         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
27806         or for string.h.
27807         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
27808         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
27809         C headers.
27810         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
27811         memcpy.
27812         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
27813         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
27814         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
27815         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
27816         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
27817         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
27818         string.h, free.
27819         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
27820         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
27821         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
27822         C headers, or for string.h.
27823         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
27824         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
27825         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
27826         headers, memory.h, stdlib.h, string.h, strings.h.
27827         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
27828         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
27829         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
27830         strchr.
27831         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
27832         headers, memory.h, string.h.
27833         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
27834         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
27835         free.
27836         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
27837         headers.
27838         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
27839         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
27840         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
27841         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
27842         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
27843
27844 2003-09-09  Paul Eggert  <eggert@twinsun.com>
27845
27846         More K&R removal.
27847
27848         * lib/acosl.c (main): Use a prototype.
27849         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
27850         tanl.c: Likewise.
27851
27852         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
27853
27854         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
27855         (getopt, etopt_long, getopt_long_only, _getopt_internal)
27856         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
27857         with a prototype.
27858         * lib/getopt.c (const): Remove macro.
27859         Include <string.h> unconditionally.
27860         (my_index): Remove; all uses changed to strchr.
27861         (strlen): Remove decl.
27862         (exchange): Remove forward decl; no longer needed.
27863         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
27864         Define with prototype.
27865         * lib/getopt1.c (const): Remove macro.
27866         (getopt_long, getopt_long_only, main): Define with prototype.
27867
27868         * lib/getugroups.c: Include <string.h> unconditionally.
27869
27870         * lib/getusershell.c: Include <stdlib.h> unconditionally.
27871         (getusershell, setusershell, endusershell, readname, main):
27872         Define with prototypes.
27873
27874         * lib/group-member.c: Include group-member.h first.
27875         Include <stdlib.h> unconditionally.
27876
27877         * lib/hard-locale.c: Include hard-locale.h first.
27878         Include <stdlib.h>, <string.h> unconditionally.
27879
27880         * lib/hash.c (free, malloc): Remove decls.
27881         Include <stdlib.h> unconditionally.
27882
27883         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
27884         (getenv): Do not declare.
27885
27886         * lib/idcache.c: Include <string.h> unconditionally.
27887
27888         * lib/long-options.c: Include long-options.h first, to test interface.
27889         Include <stdlib.h> unconditionally.
27890
27891         * lib/makepath.c: Include makepath.h first, to test interface.
27892         Include <stdlib.h> and <string.h> unconditionally.
27893
27894         * lib/linebuffer.c: Include <stdlib.h>.
27895         (free): Remove decl.
27896
27897         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
27898         stddef.h. rpl_malloc returns void *, not char *.
27899         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
27900         prototype.
27901
27902         * lib/md5.h: Include <limits.h> unconditionally.
27903         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
27904         (__P): Remove; all uses removed.
27905         * lib/md5.c: Include "md5.h" first.
27906         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
27907         md5_buffer, md5_process_bytes, md5_process_block):
27908         Define with prototypes.
27909         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
27910         * lib/sha.c: Include "sha.h" first.
27911         Include <stdlib.h>, <string.h> unconditionally.
27912
27913         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
27914         * lib/memcmp.c (__ptr_t): Likewise.
27915         * lib/memrchr.c (__ptr_t): Likewise.
27916         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
27917         Include <string.h> unconditionally.
27918         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
27919         * lib/memchr.c: Include <stdlib.h> unconditionally.
27920         * lib/memchr.c (LONG_MAX): Remove.
27921         * lib/memrchr.c (LONG_MAX): Likewise.
27922         * lib/memchr.c (__memchr): Define via a prototype.
27923         * lib/memrchr.c (__memrchr): Likewise.
27924         * lib/memcmp.c (__P): Remove, and remove all uses.
27925         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
27926         Remove forward decls; no longer needed.
27927         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
27928         Use types required by C89 in prototype.
27929
27930         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
27931         * lib/savedir.c: Likewise.
27932         * lib/mkdir.c (free): Remove decl.
27933         * lib/rmdir.c (rmdir): Define with a prototype.
27934         * lib/savedir.c: Include savedir.h first, to test interface.
27935
27936         * lib/mktime.c (STDC_HEADERS): Remove.
27937         Include <stdlib.h>, <string.h> unconditionally.
27938
27939         * lib/modechange.c: Include <stdlib.h> unconditionally.
27940         (malloc): Remove decl.
27941
27942         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
27943         (free): Remove decl.
27944
27945         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
27946         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
27947         (This type really should be intptr_t, but that's a C99ism.)
27948         (_obstack_memcpy): Remove: all uses changed to memcpy.
27949         Include <string.h> unconditionally.
27950         (struct obstack): Assume __STDC__ for types of members
27951         chunkfun, freefun, extra_arg.
27952         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
27953         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
27954         obstack_begin, obstack_specify_allocation,
27955         obstack_specify_allocation_with_arg, obstack_chunkfun,
27956         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
27957         Remove unprototyped decls and the macros that use them.
27958         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
27959         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
27960         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
27961         (defined __STDC__ && __STDC__)]:
27962         Remove nonprototyped code.
27963         Include <stdlib.h> unconditionally.
27964         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
27965         _obstack_allocated_p, _obstack_free, obstack_free,
27966         _obstack_memory_used, print_and_abort):
27967         Define using prototypes.
27968         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
27969         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
27970         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
27971         obstack_next_free, obstack_object_size, obstack_room) [0]:
27972         Remove unused, unprototyped code.
27973
27974         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
27975
27976         * lib/physmem.c (physmem_total, physmem_available, main): Define
27977         with prototypes.
27978
27979         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
27980         (main): Define with a prototype.
27981
27982         * lib/posixver.c (getenv): Remove decl.
27983
27984         * lib/putenv.c (malloc): Returns void *, not char *.
27985         Include <string.h> unconditionally.
27986         (strchr, memcpy, NULL): Do not define.
27987
27988         * lib/readtokens.c: Include readtokens.h first, to test interface.
27989         Include <stdlib.h>, <string.h> unconditionally.
27990         (init_tokenbuffer): Define with a prototype.
27991
27992         * lib/regex.c (PARAMS): Remove.  All uses removed.
27993         All uses of _RE_ARGS removed, too.
27994         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
27995         unconditionally.
27996         (bzero): Assume memset exists.
27997         (memcmp, memcpy, NULL): Remove.
27998         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
27999         char, or assignments to local vars of type signed char.
28000         (init_syntax_once, PREFIX(extract_number_and_incr),
28001         PREFIX(print_partial_compiled_pattern),
28002         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
28003         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
28004         PREFIX(regex_grow_registers), PREFIX(regex_compile),
28005         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
28006         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
28007         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
28008         wcs_compile_range, byte_compile_range, truncate_wchar,
28009         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
28010         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
28011         count_mbs_length, wcs_re_match_2_internal,
28012         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
28013         PREFIX(alt_match_null_string_p),
28014         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
28015         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
28016         regfree, PREFIX(extract_number)): Define with prototype.  Remove
28017         now-unnecessary declaration, if any.
28018         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
28019         regcomp, regexec):
28020         Remove now-unnecessary casts among pointer types.
28021         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
28022
28023         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
28024         (free): Remove decl.
28025
28026         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
28027
28028         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
28029         (free): Remove decl.
28030
28031         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
28032         * lib/xgetcwd.c: Likewise.
28033
28034         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
28035         (free): Remove decl.
28036
28037         * lib/strchrnul.c (strchrnul): Define with a prototype.
28038         Fix bug: c_in was not converted to char before searching.
28039
28040         The following changes are not K&R related:
28041
28042         * lib/group-member.h: Include <sys/types.h>, so that this file is
28043         self-contained.
28044         * lib/makepath.h: Likewise.
28045
28046         * lib/getusershell.c (readname, default_index, line_size, readname):
28047         Use size_t, not int, for sizes.
28048         (readname): If the size overflows, report an error instead of
28049         looping forever.
28050
28051 2003-09-09  Paul Eggert  <eggert@twinsun.com>
28052
28053         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
28054         libc.
28055
28056 2003-09-09  Paul Eggert  <eggert@twinsun.com>
28057
28058         * README: New section: portability guidelines.
28059
28060 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
28061
28062         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
28063         C89 spec.
28064
28065 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
28066
28067         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
28068
28069 2003-09-08  Paul Eggert  <eggert@twinsun.com>
28070
28071         Assume C89 or better; remove K&R cruft.
28072         A few of these changes were first proposed by Derek Robert Price
28073         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
28074
28075         * lib/addext.c: Include <string.h> unconditionally.
28076         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
28077         Don't declare getenv or malloc.
28078
28079         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
28080         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
28081         (NULL): Remove.
28082         (find_stack_direction, alloca): Use prototypes.
28083
28084         * lib/atexit.c (atexit): Define using a prototype.
28085
28086         * lib/basename.c, dirname.c, stripslash.c:
28087         Include <string.h> unconditionally.
28088
28089         * lib/bcopy.c: Include <stddef.h>.
28090         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
28091
28092         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
28093
28094         * lib/error.h (error, error_at_line, error_print_progname)
28095         [! (defined (__STDC__) && __STDC__)]: Remove decls.
28096         * lib/error.c: Include error.h first, to check interface.
28097         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
28098         (VA_START): Remove; all uses changeed to va_start.
28099         (exit, strerror): Remove decls.
28100         (error_print_progname): Prototype uncondionally.
28101         Don't include <errno.h>; no longer needed.
28102         (private_strerror): Remove.
28103         (error_tail): Always define.
28104         (error, error_at_line): Assume C89 or better; always use prototypes.
28105         * lib/fatal.c: Include "fatal.h" first, to test interface.
28106         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
28107         (VA_START): Remove; all uses changed to va_start.
28108         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
28109         this case.
28110         (exit): Remove decl.
28111         (fatal): Prototype unconditionally.  Assume va_start works.
28112         Abort at end, to pacify gcc.
28113
28114         * lib/euidaccess.c (main): Define with a prototype.
28115
28116         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
28117
28118         * lib/exitfail.c: Include <stdlib.h> unconditionally.
28119
28120         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
28121         prototypes.
28122         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
28123         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
28124         (getenv): Remove decl.
28125         (fnmatch): Define using a prototype.
28126         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
28127         (FCT): Define using a prototype.
28128
28129         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
28130
28131         * lib/gethostname.c: Include <stddef.h>.
28132         (gethostname): Define with prototype.  Length is size_t, not int.
28133
28134 2003-09-08  Paul Eggert  <eggert@twinsun.com>
28135
28136         Assume C89 or better; remove K&R cruft.
28137         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
28138         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
28139         string.h, getenv, malloc.
28140         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
28141         headers.
28142         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
28143         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
28144         do not check for strerror.
28145         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
28146         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
28147         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
28148         do not check for doprnt or vprintf.
28149         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
28150         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
28151
28152 2003-09-08  Paul Eggert  <eggert@twinsun.com>
28153
28154         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
28155         getversion.c should have been removed then, but was accidentally
28156         preserved.
28157
28158         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
28159         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
28160
28161 2003-09-08  Karl Berry  <karl@gnu.org>
28162
28163         * config/config.sub, config.guess, srclistvars.sh: update from savannah
28164                 config, forget about prep.
28165
28166         * config/depcomp, missing: update from automake.
28167
28168 2003-09-07  Paul Eggert  <eggert@twinsun.com>
28169
28170         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
28171         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
28172
28173 2003-09-07  Paul Eggert  <eggert@twinsun.com>
28174
28175         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
28176         copy_tm_result.  Bug reported by Simon Josefsson in
28177         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
28178
28179 2003-09-06  Paul Eggert  <eggert@twinsun.com>
28180
28181         * m4/time_r.m4: New file.
28182         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
28183         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
28184         is. Check for timegm declaration.
28185         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
28186         Do not check for gmtime_r.
28187         Replace mktime if __mktime_internal does not exist and if mktime
28188         hasn't been replaced already.
28189
28190 2003-09-06  Paul Eggert  <eggert@twinsun.com>
28191
28192         * lib/time_r.c, lib/time_r.h: New files.
28193
28194         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
28195         __localtime_r.
28196         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
28197         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
28198
28199         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
28200         __gmtime_r.
28201         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
28202         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
28203         Include <time_r.h>.
28204
28205         * lib/timegm.c: Switch to glibc implementation, with the following
28206         changes:
28207         [defined HAVE_CONFIG_H]: Include <config.h>.
28208         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
28209         (__mktime_internal) [!defined _LIBC]: New decl.
28210         (__gmtime_r) [!defined _LIBC]: New macro and function.
28211         (timegm): Use a prototype, since gnulib assumes C89.
28212         Do not bother declaring tmp to be const, as it's not really usefu.
28213         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
28214         (timegm): Declare only if HAVE_DECL_TIMEGM.
28215
28216 2003-09-06  Paul Eggert  <eggert@twinsun.com>
28217
28218         * MODULES.html.sh (func_all_modules): Add time_r.
28219         * modules/time_r: New file.
28220         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
28221         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
28222
28223 2003-09-03  Paul Eggert  <eggert@twinsun.com>
28224
28225         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
28226         Bug reported by Lute Kamstra in
28227         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
28228
28229         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
28230         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
28231         course with correspondingly smaller numbers for tomorrow and
28232         yesterday.  From Tadayoshi Funaba.  Originally installed into
28233         sh-utils on 1999-08-07, but the patch got lost (I guess during the
28234         coreutils merge?).
28235
28236 2003-08-31  Simon Josefsson  <jas@extundo.com>
28237
28238         * modules/timegm: New file.
28239         * MODULES.html.sh (func_all_modules): Add timegm.
28240
28241 2003-08-31  Simon Josefsson  <jas@extundo.com>
28242
28243         * m4/timegm.m4: New file.
28244
28245 2003-08-31  Simon Josefsson  <jas@extundo.com>
28246
28247         * lib/timegm.h: New file.
28248         * lib/timegm.c: New file.  Based on
28249         wget-1.8.2/src/http.c:mktime_from_utc.
28250
28251 2003-08-31  Karl Berry  <karl@gnu.org>
28252
28253         * lib/argp.h: update from libc.
28254
28255 2003-08-28  Bruno Haible  <bruno@clisp.org>
28256
28257         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
28258         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
28259         followed by '#define fnmatch fnmatch_posix' gives an error.
28260
28261 2003-08-28  Bruno Haible  <bruno@clisp.org>
28262
28263         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
28264         warning on QNX, which defines O_BINARY to 000000.
28265
28266 2003-08-27  Jim Meyering  <jim@meyering.net>
28267
28268         * m4/mkstemp.m4: Require that the system mkstemp be able to create
28269         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
28270         would fail after 32.  Reported by Danny Levinson.  Details here:
28271         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
28272
28273 2003-08-24  Bruno Haible  <bruno@clisp.org>
28274
28275         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
28276         MSVC7 <stdio.h> is included later.
28277
28278 2003-08-22  Simon Josefsson  <jas@extundo.com>
28279
28280         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
28281
28282 2003-08-20  Karl Berry  <karl@gnu.org>
28283
28284         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
28285
28286 2003-08-20  Bruno Haible  <bruno@clisp.org>
28287
28288         * modules/progname: New file.
28289         * MODULES.html.sh (func_all_modules): Add progname.
28290
28291 2003-08-20  Bruno Haible  <bruno@clisp.org>
28292
28293         * lib/progname.h: New file, from GNU gettext.
28294         * lib/progname.c: New file, from GNU gettext.
28295         * lib/progreloc.c: New file, from GNU gettext.
28296
28297 2003-08-19  Jim Meyering  <jim@meyering.net>
28298
28299         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
28300         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
28301
28302 2003-08-19  Bruno Haible  <bruno@clisp.org>
28303
28304         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
28305         more.
28306
28307 2003-08-19  Bruno Haible  <bruno@clisp.org>
28308
28309         * lib/xstrdup.c: Assume <string.h> exists.
28310
28311 2003-08-18  Paul Eggert  <eggert@twinsun.com>
28312
28313         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
28314         in makefile rules.
28315
28316 2003-08-18  Jim Meyering  <jim@meyering.net>
28317
28318         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
28319         * m4/lib-ld.m4: Likewise.
28320
28321 2003-08-18  Jim Meyering  <jim@meyering.net>
28322
28323         * lib/setenv.h: Indent nested cpp directive.
28324         * lib/vasnprintf.c: Remove trailing blanks.
28325
28326 2003-08-17  Simon Josefsson  <jas@extundo.com>
28327
28328         * modules/xstrndup: New file.
28329         * MODULES.html.sh (func_all_modules): Add xstrndup.
28330
28331 2003-08-17  Simon Josefsson  <jas@extundo.com>
28332
28333         * modules/argp: Fix autoconf macro name. Add more dependencies.
28334
28335 2003-08-17  Simon Josefsson  <jas@extundo.com>
28336
28337         * m4/xstrndup.m4: New file.
28338
28339 2003-08-17  Simon Josefsson  <jas@extundo.com>
28340
28341         * m4/argp.m4: New file.
28342
28343 2003-08-17  Simon Josefsson  <jas@extundo.com>
28344             Bruno Haible  <bruno@clisp.org>
28345
28346         * lib/xstrndup.h: New file.
28347         * lib/xstrndup.c: New file.
28348
28349 2003-08-17  Bruno Haible  <bruno@clisp.org>
28350
28351         * modules/strndup (Files, Include): Add lib/strndup.h.
28352
28353 2003-08-17  Bruno Haible  <bruno@clisp.org>
28354
28355         * modules/euidaccess (Files): Add lib/euidaccess.h.
28356
28357 2003-08-17  Bruno Haible  <bruno@clisp.org>
28358
28359         * lib/strndup.h: New file.
28360
28361 2003-08-17  Bruno Haible  <bruno@clisp.org>
28362
28363         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
28364         like AC_GNU_SOURCE.
28365         * modules/extensions (configure.ac): Comment out the invocation of
28366         gl_USE_SYSTEM_EXTENSIONS.
28367
28368 2003-08-16  Paul Eggert  <eggert@twinsun.com>
28369
28370         Merges from coreutils, etc.
28371         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
28372         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
28373         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
28374         fixing a typo.
28375         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
28376         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
28377
28378 2003-08-16  Paul Eggert  <eggert@twinsun.com>
28379
28380         Document merge from coreutils.
28381         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
28382         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
28383         * modules/utime: Add m4/utimes-null.m4.
28384
28385 2003-08-16  Paul Eggert  <eggert@twinsun.com>
28386
28387         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
28388         space, undoing this 2003-08-12 change:
28389         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
28390
28391 2003-08-16  Paul Eggert  <eggert@twinsun.com>
28392
28393         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
28394         strtoul.c from libc, undoing this 2003-08-12 change:
28395         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
28396
28397 2003-08-16  Jim Meyering  <jim@meyering.net>
28398
28399         Merges from coreutils.
28400         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
28401         prefix.  Adjust cache variables similarly.  Create 500 rather than
28402         just 300 files, to exercise bug on Darwin6.5, too.
28403         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
28404         $missing_dir.
28405         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
28406         AM_SYS_POSIX_TERMIOS.
28407         Reported by mkc@mathdogs.com.
28408         Also change use of $am_cv_sys_posix_termios
28409         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
28410         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
28411         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
28412         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
28413         in /proc/mounts until it finds one with matching device number.  This
28414         is unnecessary when the FILE argument *is* a mount point.  No stat call
28415         is necessary in that case.  So, disable the statvfs-testing code on
28416         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
28417         as RedHat bug# 84846.
28418         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
28419         to 1MB, so as not to render systems with no stack size limit (e.g.,
28420         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
28421         Include <unistd.h>.  On some systems,
28422         it is required for the definition of _SC_PAGESIZE.
28423
28424 2003-08-16  Jim Meyering  <jim@meyering.net>
28425
28426         Merge from coreutils.
28427         * lib/xstrtoimax.c: #else #if -> #elif.
28428         * lib/xstrtoumax.c: Likewise.
28429
28430 2003-08-16  Jim Meyering  <jim@meyering.net>
28431
28432         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
28433         * m4/utimes.m4: Removed.
28434         * m4/utimes-null.m4: Renamed from utimes.m4.
28435
28436         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
28437         to 1MB, so as not to render systems with no stack size limit (e.g.,
28438         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
28439         Include <unistd.h>.  On some systems,
28440         it is required for the definition of _SC_PAGESIZE.
28441
28442 2003-08-16  Jim Meyering  <jim@meyering.net>
28443         and Paul Eggert  <eggert@cs.ucla.edu>
28444
28445         Merges from coreutils, etc.
28446
28447         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
28448         using the latest version from cvs.  This avoids problems with #line
28449         directives using a vendor (Sun) compiler.
28450         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
28451         Don't set GETGROUPS_LIB here; now it's
28452         done via getgroups.m4's wrapper function.
28453         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
28454         rather than just in sh-util/configure.in, so that the
28455         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
28456         same.
28457         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
28458         AC_FUNC_GETLOADAVG where to find getloadavg.c.
28459         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
28460         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
28461         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
28462         Remove code that is now done by the newly-required macros.
28463         Append $(EXEEXT) to DF_PROG.
28464         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
28465         Do not invoke or require the following here,
28466         since prereq.m4 or some gnulib .m4 now does this for us:
28467         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
28468         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
28469         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
28470         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
28471         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
28472         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
28473         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
28474         AC_FUNC_OBSTACK.
28475         Do not replace the following functions, as this is now the job
28476         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
28477         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
28478         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
28479         atexit getpass, strdup, getpagesize.
28480         Replace 'raise'.
28481         Do not check for the following functions, as this is now the job
28482         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
28483         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
28484         setregid.
28485         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
28486         Check for sys/sysctl.h.
28487         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
28488         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
28489         of checking for ssize_t ourselves.
28490
28491         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
28492         Require every macro that gnulib/modules/* suggests for us.
28493         (jm_PREREQ_ADDEXT): New macro.
28494         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
28495         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
28496
28497         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
28498         (gl_PHYSMEM): Use it.
28499         Also check for `table' function.
28500         Check for new headers and functions.
28501         Add check for sys/sysmp.h.
28502         With suggestions from Kaveh Ghazi.
28503         Ignore headers that are present but cannot be compiled.  This
28504         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
28505         C 5.4.
28506
28507 2003-08-15  Paul Eggert  <eggert@twinsun.com>
28508
28509         Document merge from coreutils.
28510         * modules/userspec: Depend on posixver.
28511         * modules/strftime: Depend on tzset.
28512
28513 2003-08-15  Paul Eggert  <eggert@twinsun.com>
28514
28515         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
28516         rather than tab, after '#' in shell-script copyright notices.
28517         Suggested by Bruno Haible.
28518
28519 2003-08-15  Paul Eggert  <eggert@twinsun.com>
28520
28521         * config/srclist-update: Use three spaces, rather than tab, after '#'
28522         in shell-script copyright notices.  Suggested by Bruno Haible.
28523         Remove unnecessary parenthesization in regular expression.
28524
28525 2003-08-15  Jim Meyering  <jim@meyering.net>
28526
28527         Merge from coreutils.
28528         * lib/xgethostname.c: Include <stdlib.h>.
28529         (xghostname): Don't exit for anything other than memory-related
28530         failure; just return NULL.
28531         * lib/userspec.c: Include "posixver.h".
28532         (parse_user_spec): Accept `.' as a separator only
28533         in pre-POSIX-200112 mode.
28534         * lib/strtoimax.c: Use #elif rather than #else #if.
28535         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
28536         Remove function, now that we can rely on a working tzset function.
28537         [!_LIBC]: Ensure that the required autoconf test has been run.
28538         [!defined _NL_CURRENT && HAVE_STRFTIME]:
28539         Use underlying_strftime for %r.
28540         * lib/sha.c: Merge in some clean-up and optimization changes from
28541         glibc.
28542         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
28543         Ensure that it is a multiple of 64.
28544         Rearrange loop exit tests so as to avoid performing an
28545         additional fread after encountering an error or EOF.
28546         * lib/realloc.c: Update copyright date.
28547
28548 2003-08-15  Jim Meyering  <jim@meyering.net>
28549         and Paul Eggert  <eggert@twinsun.com>
28550
28551         Merge from coreutils.
28552         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
28553         member but strut utmpx does not.  Needed for AIX 4.3.3.
28554         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
28555
28556 2003-08-15  Jim Meyering  <jim@meyering.net>
28557         and Paul Eggert  <eggert@cs.ucla.edu>
28558
28559         Merges from coreutils, etc.
28560         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
28561         Require gl_FUNC_TZSET_CLOBBER.
28562         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
28563         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
28564         members.
28565
28566 2003-08-14  Paul Eggert  <eggert@twinsun.com>
28567
28568         Help the merge from coreutils.
28569         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
28570         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
28571         * m4/tzset.m4: Use it too.
28572
28573 2003-08-14  Paul Eggert  <eggert@twinsun.com>
28574
28575         * modules/tzset: New file.
28576
28577 2003-08-14  Jim Meyering  <jim@meyering.net>
28578
28579         Merges from coreutils.
28580         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
28581         variable names, rather than @FNMATCH_H@.
28582         * modules/alloca: Likewise for $(ALLOCA_H).
28583
28584         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
28585         the three copies of the literal target, `fnmatch.h'.
28586         * modules/alloca (alloca.h): Likewise.
28587
28588 2003-08-14  Jim Meyering  <jim@meyering.net>
28589
28590         Merge from coreutils.
28591         * m4/tzset.m4: New file.
28592         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
28593         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
28594         otherwise, AIX 5.1 systems would end up using the latter.
28595         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
28596         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
28597         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
28598         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
28599
28600 2003-08-14  Jim Meyering  <jim@meyering.net>
28601
28602         Merge from coreutils.
28603         * lib/obstack.h: Whitespace changes.
28604         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
28605         and xcalloc return values.
28606         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
28607         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
28608         hang on OSF/1 5.1 for DIR on both local and remote file systems.
28609         Reported by (and fix confirmed by) Nelson H. F. Beebe.
28610         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
28611         error from mntctl.
28612         Use mntctl's return value to drive the entry-processing loop, since
28613         we can't rely on the value of the vmt_length member in the last
28614         entry.  On some systems doing so could result in exhausting
28615         virtual memory.  Based in part on a patch from Mike Jetzer.
28616
28617 2003-08-14  Jim Meyering  <jim@meyering.net>
28618         and Paul Eggert  <eggert@twinsun.com>
28619
28620         Merges from coreutils, plus other fixes.
28621         * lib/physmem.c: Merge in portability changes from gcc/libiberty
28622         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
28623         for credits and details.  Thanks to Kaveh Ghazi for helping
28624         to keep these files in sync.
28625         (ARRAY_SIZE): Define it.
28626         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
28627         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
28628         (memcasecmp): Don't assume size_t fits in unsigned int.
28629         Remove casts and duplicate code.
28630         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
28631         (memcpy): Remove definition.
28632         Merge in some clean-up and optimization changes from glibc.
28633         [BLOCKSIZE]: Move definition to top of file.
28634         Ensure that it is a multiple of 64.
28635         Rearrange loop exit tests so as to avoid performing an
28636         additional fread after encountering an error or EOF.
28637         * lib/md5.h (md5_uintptr): Define.
28638         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
28639         return to the initial working directory.  Preserve errno
28640         for caller.
28641         * lib/idcache.c: Include "xalloc.h".
28642         (xmalloc, xrealloc): Remove decls.
28643         (getuser): Remove casts no longer required in C89.
28644         * lib/human.c: Include stdio.h, for sprintf.
28645         * lib/group-member.c: Include "xalloc.h".
28646         (xmalloc, xrealloc): Remove decls.
28647         (get_group_info): Remove casts no longer required in C89.
28648         * lib/getusershell.c (readname): Remove casts no longer required in
28649         C89.
28650         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
28651         * lib/getline.c: Whitespace fix, from coreutils.
28652
28653 2003-08-13  Paul Eggert  <eggert@twinsun.com>
28654
28655         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
28656         Check for isascii.
28657
28658         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
28659         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
28660         Undo previous (whitespace-only) change.
28661
28662 2003-08-13  Paul Eggert  <eggert@twinsun.com>
28663
28664         * lib/exclude.c: Include <ctype.h>
28665         (IN_CTYPE_DOMAIN): New macro.
28666         (is_space): New fn.
28667         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
28668         and empty lines.
28669
28670         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
28671         Undo previous (whitespace-only) change.
28672
28673 2003-08-13  Paul Eggert  <eggert@twinsun.com>
28674
28675         * config/srclist-update: Change update back to the old behavior,
28676         leaving whitespace alone.  Use one 'sed' command rather than a
28677         pipeline.
28678         (fixlicense): Now a variable, not a function.
28679         (remove_trailing_blanks): Remove.
28680         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
28681         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
28682         Undo previous (whitespace-only) change.
28683
28684 2003-08-12  Paul Eggert  <eggert@twinsun.com>
28685
28686         Merge from coreutils.
28687         * modules/euidaccess: Add lib_SOURCES, include for new
28688         file euidaccess.h
28689
28690 2003-08-12  Paul Eggert  <eggert@twinsun.com>
28691
28692         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
28693         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
28694         Normalize leading white space and remove trailing white space.
28695
28696         Merge from coreutils
28697         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
28698
28699         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
28700         0.12.1.  These files are now being upgraded automatically by
28701         ../config/srclist-update.
28702
28703 2003-08-12  Paul Eggert  <eggert@twinsun.com>
28704
28705         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
28706         Normalize leading white space and remove trailing white space.
28707         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
28708         notice, as per ../config/srclist-update.
28709
28710         Merge from coreutils.
28711         * lib/euidaccess.h: New file.
28712         * lib/euidaccess.c: Include it.
28713         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
28714         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
28715         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
28716
28717 2003-08-12  Paul Eggert  <eggert@twinsun.com>
28718
28719         * config/srclist-update: Add copyright notice.
28720         (remove_id_lines, remove_trailing_blanks): New constants.
28721         (fixfile): Use them to normalize spacing a bit in copied files.
28722         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
28723         Normalize leading white space and remove trailing white space.
28724
28725         * config/texinfo.tex: Sync with texinfo.
28726
28727         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
28728         strtoul.c from libc, to merge coreutils whitespace changes.
28729
28730         * config/srclist.txt: Get the following m4 files from gettext:
28731         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
28732         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
28733         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
28734         wint_t.m4.
28735
28736 2003-08-12  Karl Berry  <karl@gnu.org>
28737
28738         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
28739         been made.
28740
28741 2003-08-11  Paul Eggert  <eggert@twinsun.com>
28742
28743         * modules/gnu-source, m4/gnu-source.m4:
28744         Remove; we're assuming Autoconf 2.54 or later now.
28745         Suggested by Bruno Haible.
28746         * MODULES.html.sh (func_all_modules): Remove gnu-source.
28747
28748 2003-08-11  Bruno Haible  <bruno@clisp.org>
28749
28750         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
28751
28752 2003-08-11  Bruno Haible  <bruno@clisp.org>
28753
28754         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
28755         (vasnprintf): Use it instead of wcslen.
28756
28757 2003-08-11  Bruno Haible  <bruno@clisp.org>
28758
28759         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
28760         value to ensure that _Bool promotes to int. Use #define for _Bool when
28761         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
28762
28763 2003-08-10  Karl Berry  <karl@gnu.org>
28764
28765         * lib/regex.h: update from libc (whitespace fix).
28766
28767 2003-08-09  Paul Eggert  <eggert@twinsun.com>
28768
28769         Merge some files from coreutils.  These changes were
28770         originally made by Jim Meyering.
28771         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
28772         many older Unixes require this.
28773         * lib/alloca.c (alloca): Remove cast to argument of free;
28774         no longer needed in C89.
28775         * lib/alloca_.h, regex.h: Fix white space to match
28776         what GNU indent does.
28777
28778 2003-08-09  Paul Eggert  <eggert@twinsun.com>
28779
28780         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
28781         apparently Emacs's Unicode mode got confused before my 2003-08-05
28782         checkin.
28783
28784 2003-08-08  Paul Eggert  <eggert@twinsun.com>
28785
28786         * m4/extensions.m4: New file.
28787         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
28788         Require gl_USE_SYSTEM_EXTENSIONS.
28789         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
28790         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
28791
28792 2003-08-08  Paul Eggert  <eggert@twinsun.com>
28793
28794         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
28795         * modules/extensions, modules/gnu-source: New files.
28796         * modules/timespec, modules/unlocked-io: Depend on extensions.
28797
28798 2003-08-07  Paul Eggert  <eggert@twinsun.com>
28799
28800         * modules/restrict: New file.
28801         * MODULES.html.sh (func_all_modules): Add restrict.
28802         * modules/regex: Depend on restrict.
28803
28804 2003-08-07  Paul Eggert  <eggert@twinsun.com>
28805
28806         * m4/restrict.m4: New file.
28807         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
28808
28809 2003-08-07  Bruno Haible  <bruno@clisp.org>
28810
28811         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
28812         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
28813
28814 2003-08-07  Bruno Haible  <bruno@clisp.org>
28815
28816         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
28817         makes the module 'getndelim2' compatible with the module 'getline'.
28818
28819 2003-08-05  Paul Eggert  <eggert@twinsun.com>
28820
28821         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
28822         byte with "\201" to avoid glitches when editing that source file
28823         with multi-gnome-terminal.
28824
28825 2003-08-05  Paul Eggert  <eggert@twinsun.com>
28826
28827         * lib/bumpalloc.h: Remove.
28828
28829 2003-08-05  Paul Eggert  <eggert@twinsun.com>
28830
28831         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
28832         * modules/bumpalloc: Remove.
28833
28834 2003-08-04  Paul Eggert  <eggert@twinsun.com>
28835
28836         * lib/getloadavg.c: Change copyright notice and spacing to conform to
28837         GNU coding style.
28838
28839         Merge from coreutils.
28840         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
28841         1. From glibc.
28842         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
28843         from Karl Berry, implemented by Jim Meyering.
28844         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
28845         from Dmitry V. Levin.
28846         Remove anachronistic cast of xrealloc.
28847         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
28848         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
28849         type. Otherwise, it wouldn't compile with at least /bin/cc on
28850         ymp-cray-unicos9.0.2.X.
28851         Combine two mostly-identical uses of alloca into one.
28852         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
28853
28854 2003-08-04  Dave Love  <d.love@dl.ac.uk>
28855
28856         [From Emacs.]
28857
28858         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
28859         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
28860         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
28861         obsolete NLIST_NAME_UNION.
28862         [__GNU__]: Undef BSD and FSCALE.
28863         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
28864
28865 2003-08-03  Paul Eggert  <eggert@twinsun.com>
28866
28867         * lib/stdbool_.h (_Bool): Make it signed char, instead of
28868         an enum type, so that it's guaranteed to promote to int.  See:
28869         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
28870
28871 2003-08-03  Karl Berry  <karl@gnu.org>
28872
28873         * config/depcomp: update from automake.
28874
28875 2003-07-31  Paul Eggert  <eggert@twinsun.com>
28876
28877         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
28878         (strerror): Don't assume that a printable int fits in 14 bytes.
28879
28880 2003-07-31  Bruno Haible  <bruno@clisp.org>
28881
28882         * modules/getpass-gnu: New file.
28883         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
28884
28885 2003-07-31  Bruno Haible  <bruno@clisp.org>
28886
28887         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
28888
28889 2003-07-24  Karl Berry  <karl@gnu.org>
28890
28891         * config/missing: update from automake.
28892
28893 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
28894             Bruno Haible  <bruno@clisp.org>
28895
28896         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
28897         * lib/getline.c (getline, getdelim): Likewise.
28898         Remove _GNU_SOURCE define; now it's defined in config.h through
28899         m4/getline.m4.
28900
28901 2003-07-23  Karl Berry  <karl@gnu.org>
28902
28903         * config/config.sub: update from prep.
28904
28905 2003-07-22  Paul Eggert  <eggert@twinsun.com>
28906
28907         * modules/xalloc (Depends-on): Add exitfail.
28908         * modules/xmemcoll: Likewise.
28909
28910 2003-07-22  Paul Eggert  <eggert@twinsun.com>
28911
28912         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
28913         over-parenthesization in macros.
28914
28915         Sync with coreutils.
28916
28917         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
28918         required by C99.
28919
28920         Use `exit_failure' for xalloc and xmemcoll instead of their own
28921         private exit-failure variables.
28922         * lib/xalloc.h (xalloc_exit_failure): Remove.
28923         * lib/xmalloc.c: Likewise.  Include exitfail.h.
28924         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
28925         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
28926         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
28927         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
28928
28929 2003-07-20  Jim Meyering  <jim@meyering.net>
28930
28931         * modules/closeout (Depends-on): Add exitfail.
28932         Suggestion from Bruno Haible.
28933
28934 2003-07-19  Karl Berry  <karl@gnu.org>
28935
28936         * config/config.sub: update from prep.
28937
28938 2003-07-18  Paul Eggert  <eggert@twinsun.com>
28939
28940         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
28941         Remove.
28942         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
28943         to test that it can stand by itself.  Include "exitfail.h".
28944         Clients should set exit_failure instead.
28945         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
28946
28947 2003-07-18  Bruno Haible  <bruno@clisp.org>
28948
28949         * modules/getndelim2: New file.
28950         * modules/getline: Share files with module getndelim2.
28951         * modules/getnline: Depend on getndelim2 instead of sharing files with
28952         it. Add getnline.c to lib_SOURCES.
28953         * MODULES.html.sh (func_all_modules): Add getndelim2.
28954
28955 2003-07-18  Bruno Haible  <bruno@clisp.org>
28956
28957         * m4/getndelim2.m4: New file.
28958         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
28959         invoke gl_PREREQ_GETNDELIM2.
28960         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
28961         gl_PREREQ_GETNDELIM2.
28962         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
28963         gl_GETNDELIM2.
28964
28965 2003-07-18  Bruno Haible  <bruno@clisp.org>
28966
28967         * lib/getndelim2.h: New file.
28968         * lib/getndelim2.c: Make into a module of its own. Include config.h,
28969         getndelim2.h.
28970         (getndelim2): Make non-static. Change return type to ssize_t.
28971         * lib/getline.h: Change argument names.
28972         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
28973         * lib/getnline.c: Include getndelim2.h.
28974
28975 2003-07-18  Andreas Schwab  <schwab@suse.de>
28976
28977         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
28978
28979 2003-07-17  Karl Berry  <karl@gnu.org>
28980
28981         * config/config.sub: update from prep.
28982
28983 2003-07-17  Bruno Haible  <bruno@clisp.org>
28984
28985         * modules/getnline: New file.
28986         * modules/getline: Add lib/getndelim2.c to source file list.
28987         * MODULES.html.sh (func_all_modules): Add getnline.
28988
28989 2003-07-17  Bruno Haible  <bruno@clisp.org>
28990
28991         * m4/getnline.m4: New file.
28992
28993 2003-07-17  Bruno Haible  <bruno@clisp.org>
28994
28995         * m4/Makefile.am.in: Remove file.
28996         * m4/Makefile.am: Remove file.
28997         * m4/Makefile.in: Remove file.
28998
28999 2003-07-17  Bruno Haible  <bruno@clisp.org>
29000
29001         * lib/getnline.h: New file.
29002         * lib/getnline.c: New file.
29003         * lib/getndelim2.c: New file, extracted from getline.c.
29004         (getndelim2): Renamed from getdelim2, with added nmax argument.
29005         * lib/getline.c: Include getndelim2.c.
29006         (getdelim2): Moved out to getndelim2.c.
29007         (getline, getdelim): Update.
29008
29009 2003-07-17  Bruno Haible  <bruno@clisp.org>
29010
29011         * lib/Makefile.am: Remove file.
29012         * lib/Makefile.in: Remove file.
29013
29014 2003-07-17  Bruno Haible  <bruno@clisp.org>
29015
29016         * configure.in: Remove file.
29017         * Makefile.in: Remove file.
29018
29019 2003-07-17  Bruno Haible  <bruno@clisp.org>
29020
29021         * MODULES.html.sh: Put the </BODY> right before </HTML>.
29022
29023 2003-07-16  Karl Berry  <karl@gnu.org>
29024
29025         * config/srclist-update: was running fixlicense twice, which caused
29026                 texinfo.tex to be nullified for some reason.  Simplify,
29027                 $gplsrc is no longer needed as far as I can see?
29028
29029 2003-07-16  Jim Meyering  <jim@meyering.net>
29030
29031         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
29032
29033 2003-07-15  Paul Eggert  <eggert@twinsun.com>
29034
29035         * config/srclist.txt: Get the following files from gettext-runtime/intl
29036         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
29037         ref-del.sin.  From Bruno Haible.
29038         * config/srclist-update (fixfile): Change grep pattern again, since the
29039         previous fix didn't work (there was another trailing $).  Use
29040         '[$]' to escape the $s.
29041
29042 2003-07-15  Karl Berry  <karl@gnu.org>
29043
29044         * lib/vasnprintf.c: update from gettext.
29045
29046 2003-07-15  Karl Berry  <karl@gnu.org>
29047
29048         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
29049         gets expanded when surrounded by '$'.
29050
29051 2003-07-15  Jim Meyering  <jim@meyering.net>
29052
29053         * modules/save-cwd: Don't depend on error.  From Derek Price.
29054
29055 2003-07-15  Jim Meyering  <jim@meyering.net>
29056
29057         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
29058
29059 2003-07-14  Simon Josefsson  <jas@extundo.com>
29060
29061         * modules/mempcpy: New file.
29062         * MODULES.html.sh (func_all_modules): Add mempcpy.
29063
29064 2003-07-14  Simon Josefsson  <jas@extundo.com>
29065
29066         * m4/mempcpy.m4: New file.
29067
29068 2003-07-14  Simon Josefsson  <jas@extundo.com>
29069
29070         * lib/mempcpy.h: New file.
29071         * lib/mempcpy.c: New file.
29072
29073 2003-07-14  Paul Eggert  <eggert@twinsun.com>
29074
29075         * modules/getdate, modules/posixtm: Depend on mktime.
29076
29077 2003-07-14  Paul Eggert  <eggert@twinsun.com>
29078
29079         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
29080         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
29081         unicodeio.c, unicodeio.h, unlocked-io.h:
29082         Switch from LGPL to GPL.
29083
29084 2003-07-14  Paul Eggert  <eggert@twinsun.com>
29085
29086         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
29087         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
29088         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
29089         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
29090         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
29091         updated automatically by ../config/srclist-update.  This changes
29092         their license from LPGL to GPL.
29093
29094 2003-07-14  Paul Eggert  <eggert@twinsun.com>
29095
29096         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
29097         assumed to refer to the root of the most recent stable gettext version.
29098         * config/srclistvars.sh: Add defaults for eggert.
29099         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
29100         Match "This program" as well as "The program".  This is needed
29101         for gettext.
29102
29103 2003-07-14  Jim Meyering  <jim@meyering.net>
29104
29105         Don't emit diagnostics.  Let callers do that.
29106         * lib/save-cwd.c: Don't include "error.h".
29107         (save_cwd): Don't call error.  Ensure that errno is valid
29108         when returning nonzero.
29109
29110         * lib/save-cwd.h (restore_cwd): Update prototype.
29111         * lib/save-cwd.c (restore_cwd): Remove two parameters.
29112         Simplify.  Don't call error upon failure.  Let callers do that.
29113         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
29114         when auditing is enabled.  But don't bother updating the #if.
29115
29116 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
29117
29118         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
29119         it breaks C++ compilation.
29120         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
29121
29122 2003-07-10  Simon Josefsson  <jas@extundo.com>
29123
29124         * modules/strchrnul (Makefile.am): Add strchrnul.h.
29125
29126 2003-07-10  Jim Meyering  <jim@meyering.net>
29127
29128         * m4/clock_time.m4: Remove trailing blank.
29129         * m4/intmax_t.m4: Likewise.
29130
29131 2003-07-10  Jim Meyering  <jim@meyering.net>
29132
29133         * lib/vasnprintf.c: Remove trailing blanks.
29134         Make cpp indentation consistent.
29135
29136 2003-07-09  Paul Eggert  <eggert@twinsun.com>
29137
29138         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
29139         posixver.c, strftime.c, strnlen.c, strverscmp.c:
29140         Switch from LGPL to GPL.
29141
29142 2003-07-09  Paul Eggert  <eggert@twinsun.com>
29143
29144         * config/srclist.txt: Sort sublists.  Add
29145         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
29146         that differ from gnulib for one reason or another; we'd like this list
29147         to be smaller but for now let's document what we have.
29148
29149 2003-07-08  Paul Eggert  <eggert@twinsun.com>
29150
29151         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
29152         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
29153         and sweeter "eval x=$x".
29154         * config/srclist.txt: Get lib/argp* from glibc.
29155
29156 2003-07-07  Paul Eggert  <eggert@twinsun.com>
29157
29158         * lib/mktime.c: Fix some boundary cases and remove need for floating
29159         point.
29160
29161         Issue a compile-time diagnostic if time_t is floating point, or if
29162         two's complement arithmetic is not in effect, or if arithmetic
29163         right shift does not propagate the sign.  These assumptions were
29164         all in the original code but they weren't checked.
29165
29166         (TIME_T_MIDPOINT, verify): New macros.
29167         (__isleap): Remove; it has integer overflow problems.
29168         (leapyear): New function, without those problems.
29169         (ydhms_tm_diff): Remove; splitting into two parts.
29170         (ydhms_diff): New function, containing the arithmetic part of
29171         the old ydhms_tm_diff function.  Issue a compile-time
29172         diagnostic if we are not using C99 integer division.
29173         Avoid casts when possible.
29174         (guess_time_tm): New function, containing the checking part of
29175         the old ydhms_tm_diff function.  Return the new value, rather than
29176         the difference between it and the old.  Accept a new argument T
29177         so that *T specifies the old value.  Check for overflow in the result.
29178
29179         (__mktime_internal): Use a time_t offset, not a long int offset.
29180         This undoes the 2003-06-04 change, which is no longer needed now
29181         that we have better overflow checking.
29182         (localtime_offset): Likewise.
29183
29184         (__mktime_internal): Avoid harmful overflow on hosts where time_t
29185         and long are 64-bit but int is only 32-bit.
29186         (ydhms_diff): Use long int to store year1 and yday1.
29187         Issue a compile-time diagnostic if long int is not wide enough.
29188
29189         (__mktime_internal): Use long int to store adjusted year and yday.
29190         Use plain C rather than preprocessor commands, if that doesn't
29191         affect efficiency.
29192         Check for overflow (and try to repair) after each probe
29193         rather than checking only at the very end.  This avoids some bugs
29194         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
29195         does not equal GMT offset at maximum time).
29196         Use integer to check for overflow rather than floating point; this
29197         is more portable to non-IEEE hosts, and is a tad faster.
29198         When we detect that we are oscillating between two values,
29199         don't check whether tm_isdst has the requested value, since
29200         we already know the answer.  When tm_isdst has the wrong value,
29201         use a different heuristic to find the right one, based on the
29202         extreme values actually observed in practice in tz2003a,
29203         rather than the (overly optimistic) "previous 3 calendar quarters".
29204
29205         (not_equal_tm, print_tm, check_result): Use "const T" rather than
29206         "T const" to accommodate glibc style.
29207         (check_result): Use less-confusing report format.  "long" -> "long int.
29208         (main): Likewise.
29209         Don't loop if the iteration overflows time_t.
29210         Allow a negative step in the iteration.
29211
29212 2003-07-06  Karl Berry  <karl@gnu.org>
29213
29214         * config/depcomp: update from automake.
29215         * config/config.sub: update from prep.
29216
29217 2003-07-03  Karl Berry  <karl@gnu.org>
29218
29219         * config/config.guess: update from prep.
29220
29221 2003-07-01  Paul Eggert  <eggert@twinsun.com>
29222
29223         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
29224         xreadlink.c now includes it unconditionally.
29225
29226 2003-07-01  Paul Eggert  <eggert@twinsun.com>
29227
29228         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
29229         having it depend on HAVE_SYS_TYPES_H.
29230
29231 2003-07-01  Bruno Haible  <bruno@clisp.org>
29232
29233         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
29234         <sys/types.h> should be sufficient.
29235         Reported by Paul Eggert.
29236
29237 2003-06-26  Karl Berry  <karl@gnu.org>
29238
29239         * config/depcomp: update from automake.
29240
29241 2003-06-26  Bruno Haible  <bruno@clisp.org>
29242
29243         * modules/human: Depend on module stdbool.
29244
29245 2003-06-25  Bruno Haible  <bruno@clisp.org>
29246
29247         * modules/readlink: New file.
29248         * modules/xreadlink: Depend on it.
29249         * MODULES.html.sh (func_all_modules): Add readlink.
29250
29251 2003-06-25  Bruno Haible  <bruno@clisp.org>
29252
29253         * m4/readlink.m4: New file.
29254
29255 2003-06-25  Bruno Haible  <bruno@clisp.org>
29256
29257         * lib/readlink.c: New file.
29258
29259 2003-06-22  Karl Berry  <karl@gnu.org>
29260
29261         * config/srclist.txt: update mkinstalldirs from automake.
29262         * config/mkinstalldirs: update.
29263
29264 2003-06-22  Bruno Haible  <bruno@clisp.org>
29265
29266         Portability to mingw32.
29267         * m4/ssize_t.m4: New file, from GNU gettext.
29268         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
29269         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
29270
29271 2003-06-22  Bruno Haible  <bruno@clisp.org>
29272
29273         * modules/safe-read: Add m4/ssize_t.m4.
29274         * modules/xreadlink: Add m4/ssize_t.m4.
29275
29276 2003-06-20  Bruno Haible  <bruno@clisp.org>
29277
29278         Assume C89, so PARAMS isn't needed.
29279         * lib/unicodeio.h (PARAMS): Remove.
29280         * lib/unicodeio.c: Don't use PARAMS.
29281
29282 2003-06-18  Karl Berry  <karl@gnu.org>
29283
29284         * config/config.{guess,sub}: update from prep.
29285
29286 2003-06-18  Jim Meyering  <jim@meyering.net>
29287
29288         Merge changes from coreutils.
29289         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
29290         Remove explicit declarations of xmalloc and realloc.
29291         Include xalloc.h.
29292         (read_utmp): Remove anachronistic cast of xmalloc.
29293
29294 2003-06-17  Paul Eggert  <eggert@twinsun.com>
29295
29296         Assume C89, so PARAMS isn't needed.
29297         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
29298         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
29299         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
29300         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
29301         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
29302         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
29303         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
29304         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
29305         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
29306         lib/xstrtod.h, lib/xstrtol.h: Likewise.
29307         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
29308         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
29309         no longer needed. Anyway, config.h should always be included before any
29310         other file.
29311
29312 2003-06-11  Simon Josefsson  <jas@extundo.com>
29313
29314         * modules/sysexits: New file.
29315         * MODULES.html.sh (func_all_modules): Add sysexits.
29316
29317 2003-06-11  Simon Josefsson  <jas@extundo.com>
29318
29319         * lib/sysexit_.h: New file.
29320
29321 2003-06-11  Derek Price  <derek@ximbiot.com>
29322
29323         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
29324         necessary.
29325
29326 2003-06-11  Bruno Haible  <bruno@clisp.org>
29327
29328         * m4/sysexits.m4: New file.
29329
29330 2003-06-10  Simon Josefsson  <jas@extundo.com>
29331
29332         * lib/argp.h: New file, from glibc.
29333         * lib/argp-ba.c: New file, from glibc.
29334         * lib/argp-eexst.c: New file, from glibc.
29335         * lib/argp-fmtstream.c: New file, from glibc.
29336         * lib/argp-fmtstream.h: New file, from glibc.
29337         * lib/argp-fs-xinl.c: New file, from glibc.
29338         * lib/argp-help.c: New file, from glibc.
29339         * lib/argp-namefrob.h: New file, from glibc.
29340         * lib/argp-parse.c: New file, from glibc.
29341         * lib/argp-pv.c: New file, from glibc.
29342         * lib/argp-pvh.c: New file, from glibc.
29343         * lib/argp-xinl.c: New file, from glibc.
29344
29345 2003-06-10  Simon Josefsson  <jas@extundo.com>
29346
29347         * modules/strchrnul: New file.
29348
29349 2003-06-10  Simon Josefsson  <jas@extundo.com>
29350
29351         * modules/argp: New file.
29352
29353 2003-06-10  Simon Josefsson  <jas@extundo.com>
29354
29355         * m4/strchrnul.m4: New file.
29356
29357 2003-06-10  Simon Josefsson  <jas@extundo.com>
29358
29359         * lib/strchrnul.h: New file.
29360         * lib/strchrnul.c: New file.
29361
29362 2003-06-10  Bruno Haible  <bruno@clisp.org>
29363
29364         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
29365
29366 2003-06-07  Karl Berry  <karl@gnu.org>
29367
29368         * config/config.{guess,sub}: update from prep.
29369
29370 2003-06-07  Jim Meyering  <jim@meyering.net>
29371
29372         * modules/strtod: Use $(...) notation, not @...@ for
29373         AC_REPLACE'd variables.
29374         * modules/localcharset: Likewise.
29375
29376 2003-06-07  Jim Meyering  <jim@meyering.net>
29377
29378         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
29379         in place of my name in the copyright comment.
29380         Remove definition and uses of __P.
29381
29382         From coreutils.
29383         * lib/stat.c: Don't declare xmalloc explicitly.
29384         Instead, include "xalloc.h".
29385         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
29386         xrealloc, and xcalloc return values.
29387         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
29388         Improve comment.
29389         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
29390
29391 2003-06-07  Bruno Haible  <bruno@clisp.org>
29392
29393         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
29394         avoid AC_CONFIG_LINKS.
29395         * modules/fnmatch (Makefile.am): Use explicit creation rule for
29396         fnmatch.h, to avoid AC_CONFIG_LINKS.
29397         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
29398
29399 2003-06-07  Bruno Haible  <bruno@clisp.org>
29400
29401         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
29402         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
29403         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
29404         directory.
29405         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
29406         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
29407         directory.
29408
29409 2003-06-06  Jim Meyering  <jim@meyering.net>
29410
29411         Merge from coreutils.
29412         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
29413         Consolidate declarations and initializations of *_base* locals.
29414
29415         Merge from coreutils.
29416         This avoids a core dump on systems without GNU putenv,
29417         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
29418         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
29419         (unsetenv): New static function, from GNU libc.
29420         (rpl_putenv): Use it.
29421
29422         * lib/modechange.c: Remove trailing blanks.
29423
29424         Merge from coreutils.
29425         * lib/fsusage.c: Remove declaration of statfs.
29426         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
29427
29428         * lib/posixtm.c: Include <stdbool.h> unconditionally.
29429
29430 2003-06-06  Jim Meyering  <jim@meyering.net>
29431
29432         * lib/stdbool_.h: Renamed from stdbool.h.in.
29433
29434 2003-06-06  Jim Meyering  <jim@meyering.net>
29435             Bruno Haible  <bruno@clisp.org>
29436
29437         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
29438         Adjust Makefile.am snippet not to redirect directly to target.
29439         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
29440
29441 2003-06-05  Paul Eggert  <eggert@twinsun.com>
29442
29443         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
29444         mismatch, look in future quarters as well as past.  This fixes a
29445         bug when processing fall-backwards gaps immediately after a long
29446         period of daylight-saving time.
29447
29448         * lib/mktime.c: Assume freestanding C89 or better.
29449         (HAVE_LIMITS_H): Remove.  Assume it's 1.
29450         (__P): Remove; not used.
29451         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
29452         (mktime, not_equal_tm, print_tm, check_result,
29453         main): Use prototypes.  Use const * where appropriate.
29454         (main): Fix typo in testing code that uncovered by above changes.
29455         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
29456
29457 2003-06-04  Paul Eggert  <eggert@twinsun.com>
29458
29459         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
29460         locale.h, localeconv.  This merges changes from coreutils.
29461
29462         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
29463         It can be removed after the next Autoconf is released.
29464         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
29465         needed.
29466
29467 2003-06-04  Paul Eggert  <eggert@twinsun.com>
29468
29469         * lib/mktime.c: Fix Debian bug 177940
29470         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
29471         (localtime_offset): Now long int, not time_t, because we want it
29472         to be guaranteed to be signed.  All uses changed.
29473         (__mktime_internal): If overflow would occur when adding offset,
29474         don't add it.
29475
29476         Merge 'human' changes from coreutils.  Rewrite to support
29477         locale-specific notations like thousands separators.
29478         * lib/human.c: Simplify authorship notice.
29479         Include human.h immediately after config.h.
29480         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
29481         <limits.h>: Do not include, since human.h does.
29482         (SIZE_MAX, UINTMAX_MAX): New macros.
29483         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
29484         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
29485         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
29486         (power_letter): Renamed from suffixes.
29487         (generate_suffix_backwards): Remove.
29488         (adjust_value): Now takes int style (because of human.h changes)
29489         and long double value (for greater precision on some platforms).
29490         (group_number): New function.
29491         (human_readable): Use it.  Use integer options, not enum.
29492         Put the options before the sizes in the arg list.
29493         Support all the new options.
29494         The old human_readable function has been removed;
29495         use inttostr.h instead.
29496         (human_readable, default_block_size, humblock):
29497         Use uintmax_t, not int, for block sizes.
29498         (human_readable_inexact, block_size_types): Remove.
29499         (block_size_opts): New constant.
29500         (human_options): Renamed from human_block_size, with new signature
29501         that allows block sizes up to UINTMAX_MAX.  All callers changed.
29502         * lib/human.h: Add copyright and authorship notice.
29503         Include <limits.h> and <stdbool.h> unconditionally.
29504         (PARAMS): Remove.  All uses removed.
29505         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
29506         (enum human_inexact_style): Remove tag; now a nameless enum.
29507         (human_floor, human_ceiling, human_round_to_even): Now have
29508         values 2, 0, 1 rather than -1, 1, 0.
29509         (human_group_digits, human_suppress_point_zero, human_autoscale,
29510         human_base_1024, human_SI, human_B): New constants.
29511         (human_readable_inexact, human_block_size): Remove.
29512         (human_readable): Size args are now uintmax_t, not int.
29513         (human_options): New decl.
29514
29515         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
29516         unnecessary now that we assume C89 or better.  This change
29517         imported from coreutils.
29518
29519         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
29520         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
29521         in the 2003-05-30 sync from glibc.
29522
29523         .h files should stand alone, but we shouldn't include <sys/types.h>
29524         if we can get away with just <stddef.h>.
29525
29526         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
29527         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
29528         rather than <sys/types.h>, as we merely need size_t.
29529         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
29530         to get size_t.
29531         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
29532         Include <stdio.h>, to get FILE.
29533         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
29534         memcasecmp.h has included <stddef.h> and all we need is size_t.
29535         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
29536         our interface, instead of including <sys/types.h>
29537
29538 2003-06-04  Paul Eggert  <eggert@twinsun.com>
29539
29540         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
29541         now, as glibc mktime is buggy on non-glibc systems.
29542
29543 2003-06-03  Karl Berry  <karl@gnu.org>
29544
29545         * config/config.sub: update from prep.
29546
29547 2003-06-02  Paul Eggert  <eggert@twinsun.com>
29548
29549         [from coreutils]
29550         Fix some minor time-related bugs with POSIX time arguments.
29551         Some valid time stamps were being rejected (notably -1, and
29552         time stamps before 1900 on 64-bit hosts).  And some invalid
29553         time stamps were being accepted, e.g. September 31.
29554
29555         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
29556         that we can return (time_t) -1 successfully.
29557         * lib/posixtm.c: Likewise.
29558         [HAVE_STDBOOL_H]: Include <stdbool.h>.
29559         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
29560         (t): Remove static var.
29561         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
29562         of static var.  All uses changed.
29563         (year): Do not reject years before 1900; they can occur with
29564         64-bit time_t.
29565         (posix_time_parse): Do not check for out-of-range components;
29566         that is now the caller's responsibility, since our checks were
29567         only approximations.
29568         (posixtime): Use mktime to check for out-of-range components,
29569         since it knows them exactly.
29570         If mktime returns (time_t) -1, check whether an error actually occurred
29571         by invoking localtime on -1.
29572         (main) [TEST_POSIXTIME]: Check for input data errors, and report
29573         posixtime failures better.
29574         Improve the test data (in comments only).
29575
29576 2003-06-02  Karl Berry  <karl@gnu.org>
29577
29578         * config/mkinstalldirs (version): new variable.
29579         (--version): new option.
29580         (usage): improve message.
29581
29582 2003-05-30  Karl Berry  <karl@gnu.org>
29583
29584         * lib/mktime.c: update from libc.
29585
29586 2003-05-30  Bruno Haible  <bruno@clisp.org>
29587
29588         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
29589         * config/config.rpath: Upgrade to gettext-0.12.1.
29590
29591 2003-05-30  Bruno Haible  <bruno@clisp.org>
29592
29593         * m4/gettext.m4: Upgrade to gettext-0.12.1.
29594         * m4/nls.m4: New file, from gettext-0.12.1.
29595         * m4/po.m4: New file, from gettext-0.12.1.
29596         * m4/progtest.m4: Upgrade to gettext-0.12.1.
29597
29598 2003-05-30  Bruno Haible  <bruno@clisp.org>
29599
29600         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
29601         * lib/localcharset.h: Likewise.
29602         * lib/localcharset.c: Likewise.
29603
29604 2003-05-29  Karl Berry  <karl@gnu.org>
29605
29606         * config/config.rpath: update from gettext.
29607
29608 2003-05-28  Paul Eggert  <eggert@twinsun.com>
29609
29610         Assume the headers required for C89 freestanding compilers.
29611         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
29612         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
29613         * m4/human.m4 (gl_HUMAN): Likewise.
29614         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
29615         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
29616         * m4/userspec.m4 (gl_USERSPEC): Likewise.
29617         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
29618         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
29619         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
29620
29621 2003-05-28  Paul Eggert  <eggert@twinsun.com>
29622
29623         Assume the headers required for C89 freestanding compilers.
29624         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
29625         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
29626         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
29627         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
29628         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
29629         define, since <limits.h> is guaranteed to do that.
29630         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
29631         * lib/exclude.c: Include <stdbool.h> unconditionally.
29632         * lib/tempname.c: Include <stddef.h> unconditionally.
29633         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
29634         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
29635         <stddef.h> does that.
29636         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
29637         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
29638         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
29639         needed.
29640         * lib/xstrtol.c: Likewise.
29641         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
29642         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
29643
29644         * lib/addext.c (addext): Use assignment rather than cast, to avoid
29645         warnings on some platforms.
29646
29647         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
29648         arbitrarily.
29649
29650 2003-05-26  Jim Meyering  <jim@meyering.net>
29651
29652         Merge in a change from coreutils:
29653         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
29654         that is guaranteed to be `no'.  Use `no_such_member' to indicate
29655         that condition, rather than `-1' which is slightly misleading.
29656         Change the name of the cache variable to have the gl_ prefix.
29657         Prompted by a patch from Richard Dawe for DJGPP.
29658
29659 2003-05-24  Karl Berry  <karl@gnu.org>
29660
29661         * config/config.guess: update from prep.
29662
29663 2003-05-22  Karl Berry  <karl@gnu.org>
29664
29665         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
29666
29667 2003-05-20  Karl Berry  <karl@gnu.org>
29668
29669         * config/config.guess: update from prep.
29670
29671 2003-05-18  Karl Berry  <karl@gnu.org>
29672
29673         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
29674         might actually be set by the user.
29675
29676         * config/depcomp, install-sh, mdate-sh: update from automake.
29677
29678 2003-05-17  Bruno Haible  <bruno@clisp.org>
29679
29680         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
29681         invalid expansion for AC_EGREP_CPP.
29682         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
29683         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
29684         Suggested by Akim Demaille <akim@epita.fr> in
29685         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
29686
29687 2003-05-12  Jim Meyering  <jim@meyering.net>
29688
29689         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
29690         the space-padded-by-default conversion specifiers, %e, %k, %l.
29691
29692 2003-05-12  Bruno Haible  <bruno@clisp.org>
29693
29694         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
29695         the string is longer than 4 KB.
29696
29697 2003-05-11  Karl Berry  <karl@gnu.org>
29698
29699         * config/config.{guess,sub}: update from prep.
29700
29701 2003-05-09  Bruno Haible  <bruno@clisp.org>
29702
29703         * modules/error: Add m4/strerror_r.m4 to file list.
29704
29705 2003-05-03  Bruno Haible  <bruno@clisp.org>
29706
29707         Upgrade to Unicode-4.0.
29708         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
29709         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
29710         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
29711         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
29712         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
29713         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
29714         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
29715         Change width of U+E0100..U+E01EF from 1 to 0.
29716
29717 2003-04-25  Jim Meyering  <jim@meyering.net>
29718
29719         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
29720         of type size_t, not int.
29721
29722 2003-04-25  Bruno Haible  <bruno@clisp.org>
29723
29724         * lib/copy-file.c: Include <stddef.h>, for size_t.
29725
29726 2003-04-21  Paul Eggert  <eggert@twinsun.com>
29727
29728         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
29729         code which expansion is under static control.  Patch imported from
29730         Akim Demaille's patch to Bison; see
29731         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
29732
29733 2003-04-14  Bruno Haible  <bruno@clisp.org>
29734
29735         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
29736
29737 2003-04-11  Jim Meyering  <jim@meyering.net>
29738
29739         Merge changes from Coreutils.
29740
29741         2003-03-22  Jim Meyering  <jim@meyering.net>
29742
29743         * lib/strftime.c (widen): Cast alloca return value to proper type.
29744
29745         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
29746
29747         From GNU libc.
29748         * lib/strftime.c (my_strftime): Handle very large width
29749         specifications for numeric values correctly.  Improve checks for
29750         overflow.
29751
29752         2003-01-19  Jim Meyering  <jim@meyering.net>
29753
29754         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
29755         definitions.
29756         (nl_get_alt_digit) [! defined my_strftime]: Define.
29757         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
29758         _nl_get_alt_digit and _nl_get_walt_digit.
29759
29760         * lib/strftime.c (my_strftime): Merge in locale-related changes from
29761         libc. These changes have no effect outside of _LIBC.
29762
29763 2003-04-10  Bruno Haible  <bruno@clisp.org>
29764
29765         * modules/findprog: New file.
29766         * MODULES.html.sh (func_all_modules): Add it.
29767
29768 2003-04-10  Bruno Haible  <bruno@clisp.org>
29769
29770         * m4/findprog.m4: New file.
29771         * m4/eaccess.m4: New file.
29772
29773 2003-04-10  Bruno Haible  <bruno@clisp.org>
29774
29775         * lib/findprog.h: New file, from GNU gettext.
29776         * lib/findprog.c: New file, from GNU gettext.
29777
29778 2003-04-05  Jim Meyering  <jim@meyering.net>
29779
29780         Merge changes from Coreutils.
29781
29782         * lib/exclude.h (PARAMS): Remove definition and uses.
29783         * lib/exclude.c: Remove uses of `PARAMS'.
29784
29785         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
29786         Add test-cases for DOS filenames. Declare program_name.
29787         (main): Set up program_name.  Patch by Rich Dawe.
29788
29789         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
29790         error from mntctl.
29791         Use mntctl's return value to drive the entry-processing loop, since
29792         we can't rely on the value of the vmt_length member in the last
29793         entry.  On some systems doing so could result in exhausting
29794         virtual memory.  Based in part on a patch from Mike Jetzer.
29795
29796 2003-04-04  Bruno Haible  <bruno@clisp.org>
29797
29798         * modules/linebreak: New file.
29799         * MODULES.html.sh (func_all_modules): Add it.
29800
29801 2003-04-04  Bruno Haible  <bruno@clisp.org>
29802
29803         * m4/linebreak.m4: New file.
29804
29805 2003-04-04  Bruno Haible  <bruno@clisp.org>
29806
29807         * lib/linebreak.h: New file, from GNU gettext.
29808         * lib/linebreak.c: New file, from GNU gettext with slight
29809         modifications.
29810         * lib/lbrkprop.h: New file, from GNU gettext.
29811
29812 2003-04-03  Bruno Haible  <bruno@clisp.org>
29813
29814         * modules/utf8-ucs4: New file.
29815         * modules/utf16-ucs4: New file.
29816         * modules/ucs4-utf8: New file.
29817         * modules/ucs4-utf16: New file.
29818         * MODULES.html.sh (func_all_modules): Add them.
29819
29820 2003-04-03  Bruno Haible  <bruno@clisp.org>
29821
29822         * m4/utf-ucs4.m4: New file.
29823         * m4/ucs4-utf.m4: New file.
29824
29825 2003-04-03  Bruno Haible  <bruno@clisp.org>
29826
29827         * lib/utf8-ucs4.h: New file, from GNU gettext.
29828         * lib/utf16-ucs4.h: New file, from GNU gettext.
29829         * lib/ucs4-utf8.h: New file, from GNU gettext.
29830         * lib/ucs4-utf16.h: New file, from GNU gettext.
29831
29832 2003-04-02  Bruno Haible  <bruno@clisp.org>
29833
29834         * modules/binary-io: New file.
29835         * MODULES.html.sh (func_all_modules): Add it.
29836
29837 2003-04-02  Bruno Haible  <bruno@clisp.org>
29838
29839         * lib/binary-io.h: New file, from GNU gettext.
29840
29841 2003-04-01  Bruno Haible  <bruno@clisp.org>
29842
29843         * modules/pathname: New file.
29844         * MODULES.html.sh (func_all_modules): Add it.
29845
29846 2003-04-01  Bruno Haible  <bruno@clisp.org>
29847
29848         * lib/pathname.h: New file, from GNU gettext.
29849         * lib/concatpath.c: New file, from GNU gettext.
29850
29851 2003-03-30  Bruno Haible  <bruno@clisp.org>
29852
29853         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
29854
29855 2003-03-30  Bruno Haible  <bruno@clisp.org>
29856
29857         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
29858         function chown() doesn't exist.
29859
29860 2003-03-28  Bruno Haible  <bruno@clisp.org>
29861
29862         * modules/copy-file: New file.
29863         * MODULES.html.sh (func_all_modules): Add it.
29864
29865 2003-03-28  Bruno Haible  <bruno@clisp.org>
29866
29867         * m4/copy-file.m4: New file.
29868
29869 2003-03-28  Bruno Haible  <bruno@clisp.org>
29870
29871         * lib/copy-file.h: New file, from GNU gettext.
29872         * lib/copy-file.c: New file, from GNU gettext.
29873
29874 2003-03-18  Jim Meyering  <jim@meyering.net>
29875
29876         * lib/quote.c (quote_n): Fix typo in comment.
29877
29878 2003-03-18  Bruno Haible  <bruno@clisp.org>
29879
29880         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
29881         checking.
29882         * m4/onceonly_2_57.m4: Likewise.
29883
29884 2003-03-17  Bruno Haible  <bruno@clisp.org>
29885
29886         * m4/onceonly.m4: Require autoconf 2.54 or newer.
29887         (m4_quote): Remove macro.
29888         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
29889
29890 2003-03-14  Jim Meyering  <jim@meyering.net>
29891
29892         Merge changes from Coreutils.
29893         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
29894         to be const, in order to avoid warnings.
29895         (obstack_room): Likewise.
29896         (obstack_empty_p): Likewise.
29897
29898 2003-03-14  Bruno Haible  <bruno@clisp.org>
29899
29900         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
29901         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
29902
29903 2003-03-13  Paul Eggert  <eggert@twinsun.com>
29904
29905         Merge changes from Bison.
29906         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
29907         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
29908         when compiling Bison 1.875's `bitset bset = obstack_alloc
29909         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
29910         * lib/hash.c: Include <stdbool.h> unconditionally.
29911
29912 2003-03-13  Paul Eggert  <eggert@twinsun.com>
29913
29914         * m4/onceonly.m4 (m4_quote): New macro.
29915         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
29916         Quote AC_FOREACH variable-expansions properly.
29917
29918 2003-03-13  Paul Eggert  <eggert@twinsun.com>
29919
29920         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
29921
29922 2003-03-09  Paul Eggert  <eggert@twinsun.com>
29923
29924         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
29925         Reported by Bruce Becker; see:
29926         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
29927
29928 2003-03-03  Paul Eggert  <eggert@twinsun.com>
29929             Bruno Haible  <bruno@clisp.org>
29930
29931         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
29932         Reported by John Hughes, see
29933         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
29934
29935 2003-02-20  Bruno Haible  <bruno@clisp.org>
29936
29937         * MODULES.html.sh (func_all_modules): Add poll.
29938
29939 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
29940
29941         * modules/poll: New file.
29942
29943 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
29944
29945         * lib/poll_.h: New file.
29946         * lib/poll.c: New file.
29947
29948 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
29949
29950         * m4/poll.m4: New file.
29951
29952 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
29953
29954         * modules/mathl: New file.
29955
29956 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
29957
29958         * lib/mathl.h: New file.
29959         * lib/acosl.c: New file.
29960         * lib/asinl.c: New file.
29961         * lib/atanl.c: New file.
29962         * lib/ceill.c: New file.
29963         * lib/cosl.c: New file.
29964         * lib/expl.c: New file.
29965         * lib/floorl.c: New file.
29966         * lib/frexpl.c: New file.
29967         * lib/ldexpl.c: New file.
29968         * lib/logl.c: New file.
29969         * lib/sincosl.c: New file.
29970         * lib/sinl.c: New file.
29971         * lib/sqrtl.c: New file.
29972         * lib/tanl.c: New file.
29973         * lib/trigl.c: New file.
29974         * lib/trigl.h: New file.
29975
29976 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
29977
29978         * m4/mathl.m4: New file.
29979
29980 2003-02-18  Bruno Haible  <bruno@clisp.org>
29981
29982         * MODULES.html.sh (func_all_modules): Add mathl.
29983
29984 2003-02-17  Bruno Haible  <bruno@clisp.org>
29985
29986         * modules/mkdtemp: New module.
29987         * MODULES.html.sh (func_all_modules): Add it.
29988
29989 2003-02-17  Bruno Haible  <bruno@clisp.org>
29990
29991         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
29992
29993 2003-02-17  Bruno Haible  <bruno@clisp.org>
29994
29995         * lib/mkdtemp.h: New file, from GNU gettext.
29996         * lib/mkdtemp.c: New file, from GNU gettext.
29997
29998 2003-02-02  Jim Meyering  <jim@meyering.net>
29999
30000         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
30001         e.g. glibc-2.2.93.
30002
30003 2003-01-31  Bruno Haible  <bruno@clisp.org>
30004
30005         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
30006         'rpl_rename'.
30007         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
30008         'rpl_strnlen'.
30009         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
30010         'rpl_strtod'.
30011         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
30012         'rpl_utime'.
30013
30014 2003-01-31  Bruno Haible  <bruno@clisp.org>
30015
30016         * lib/rename.c: #undef rename before defining rpl_rename.
30017         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
30018
30019 2003-01-30  Bruno Haible  <bruno@clisp.org>
30020
30021         * modules/vasnprintf, modules/vasprintf: New modules.
30022         * MODULES.html.sh (func_all_modules): Add them.
30023
30024 2003-01-30  Bruno Haible  <bruno@clisp.org>
30025
30026         * m4/signed.m4: New file, from GNU gettext.
30027         * m4/longdouble.m4: New file, from GNU gettext.
30028         * m4/wchar_t.m4: New file, from GNU gettext.
30029         * m4/wint_t.m4: New file, from GNU gettext.
30030         * m4/vasnprintf.m4: New file.
30031         * m4/vasprintf.m4: New file.
30032
30033 2003-01-30  Bruno Haible  <bruno@clisp.org>
30034
30035         * lib/printf-args.h: New file, from GNU gettext.
30036         * lib/printf-args.c: New file, from GNU gettext.
30037         * lib/printf-parse.h: New file, from GNU gettext.
30038         * lib/printf-parse.c: New file, from GNU gettext.
30039         * lib/vasnprintf.h: New file, from GNU gettext.
30040         * lib/vasnprintf.c: New file, from GNU gettext.
30041         * lib/asnprintf.c: New file, from GNU gettext.
30042         * lib/vasprintf.h: New file, from GNU gettext with modifications.
30043         * lib/vasprintf.c: New file, from GNU gettext.
30044         * lib/asprintf.c: New file, from GNU gettext.
30045
30046 2003-01-29  Bruno Haible  <bruno@clisp.org>
30047
30048         * modules/stpncpy: New module.
30049         * MODULES.html.sh (func_all_modules): Add it.
30050
30051 2003-01-29  Bruno Haible  <bruno@clisp.org>
30052
30053         * m4/stpncpy.m4: New file.
30054
30055 2003-01-29  Bruno Haible  <bruno@clisp.org>
30056
30057         * lib/stpncpy.h: New file, from GNU gettext with modifications.
30058         * lib/stpncpy.c: New file, from GNU gettext with modifications.
30059
30060 2003-01-28  Bruno Haible  <bruno@clisp.org>
30061
30062         * modules/c-ctype: New module.
30063         * MODULES.html.sh (func_all_modules): Add it.
30064
30065 2003-01-28  Bruno Haible  <bruno@clisp.org>
30066
30067         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
30068         Paul Eggert.
30069         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
30070         Paul Eggert.
30071
30072 2003-01-27  Bruno Haible  <bruno@clisp.org>
30073
30074         * modules/xsetenv: New module.
30075         * MODULES.html.sh (func_all_modules): Add it.
30076
30077 2003-01-27  Bruno Haible  <bruno@clisp.org>
30078
30079         * lib/xsetenv.h: New file, from GNU gettext.
30080         * lib/xsetenv.c: New file, from GNU gettext.
30081
30082 2003-01-23  Jim Meyering  <jim@meyering.net>
30083
30084         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
30085         from working on systems without dirfd (at least Irix and OSF1/Tru64).
30086
30087 2003-01-23  Bruno Haible  <bruno@clisp.org>
30088
30089         * modules/minmax: New module.
30090         * MODULES.html.sh (func_all_modules): Add it.
30091
30092 2003-01-23  Bruno Haible  <bruno@clisp.org>
30093
30094         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
30095         Eggert.
30096
30097 2003-01-22  Bruno Haible  <bruno@clisp.org>
30098
30099         * modules/exit: New module.
30100         * MODULES.html.sh (func_all_modules): Add it.
30101
30102 2003-01-22  Bruno Haible  <bruno@clisp.org>
30103
30104         * lib/exit.h: New file, from GNU gettext.
30105
30106 2003-01-19  Bruno Haible  <bruno@clisp.org>
30107
30108         * gnulib-tool: Recognize option --extract-maintainer.
30109         (func_get_maintainer): New function.
30110         * modules/*: Add Maintainer entry.
30111
30112 2003-01-16  Jim Meyering  <jim@meyering.net>
30113
30114         * m4/regex.m4: The `regex' struct is both input and output.
30115         Initialize it before each use.  Patch by Tim Waugh.
30116
30117 2003-01-16  Bruno Haible  <bruno@clisp.org>
30118
30119         * MODULES.html.sh: Add a table of contents. Add the module name as
30120         leftmost column. Add hyperlinks.
30121
30122 2003-01-15  Bruno Haible  <bruno@clisp.org>
30123
30124         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
30125
30126 2003-01-15  Bruno Haible  <bruno@clisp.org>
30127
30128         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
30129         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
30130         suffix.
30131
30132 2003-01-15  Bruno Haible  <bruno@clisp.org>
30133
30134         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
30135
30136 2003-01-15  Bruno Haible  <bruno@clisp.org>
30137
30138         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
30139         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
30140
30141 2003-01-14  Jim Meyering  <jim@meyering.net>
30142
30143         * lib/same.c (same_name): Tweak a comment.
30144
30145 2003-01-14  Bruno Haible  <bruno@clisp.org>
30146
30147         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
30148         when a string comparison is sufficient.
30149
30150 2003-01-14  Bruno Haible  <bruno@clisp.org>
30151
30152         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
30153         'unsigned int'.
30154
30155 2003-01-14  Bruno Haible  <bruno@clisp.org>
30156
30157         * lib/hash-pjw.c: Add comment about low quality of this function.
30158
30159 2003-01-13  Bruno Haible  <bruno@clisp.org>
30160
30161         * modules/stpcpy: Distribute lib/stpcpy.h.
30162         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
30163
30164 2003-01-13  Bruno Haible  <bruno@clisp.org>
30165
30166         * modules/*: Add a description.
30167         * modules/strpbrk: Fix Makefile.am snippet.
30168         * modules/strtoimax: Fix dependencies.
30169         * modules/strtoumax: Likewise.
30170
30171 2003-01-13  Bruno Haible  <bruno@clisp.org>
30172
30173         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
30174         * modules/alloca (Makefile.am): All object files depend on alloca.h.
30175         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
30176
30177 2003-01-13  Bruno Haible  <bruno@clisp.org>
30178
30179         * gnulib-tool (func_create_testdir): Store config/* files in the main
30180         directory.
30181         * config.rpath: Move to ...
30182         * config/config.rpath: ... here.
30183         * modules/gettext: Contains config/config.rpath, not config.rpath.
30184         * modules/iconv: Likewise.
30185
30186 2003-01-12  Paul Eggert  <eggert@twinsun.com>
30187
30188         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
30189         to avoid collisions with libcurses and libreadline.
30190
30191         * m4/getstr.m4: Remove.
30192         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
30193
30194 2003-01-12  Paul Eggert  <eggert@twinsun.com>
30195
30196         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
30197         to avoid collisions with libcurses and libreadline.
30198
30199         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
30200         * lib/getstr.h, getstr.c: Remove.
30201         * lib/getline.c: Include "getline.h", to check interface.
30202         Move body of old getstr.c here: this defines MIN_CHUNK and
30203         declares getdelim2, which is renamed from getstr.
30204         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
30205
30206         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
30207         All uses changed.
30208         * lib/linebuffer.h: Likewise.
30209         (readline): Remove backward-compatibility macro.
30210
30211 2003-01-12  Paul Eggert  <eggert@twinsun.com>
30212
30213         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
30214         to avoid collisions with libcurses and libreadline.
30215         * getstr: Remove.
30216         * MODULES.html.sh: Remove getstr.
30217         * modules/getline: Depend on unlocked-io, not getstr.
30218
30219 2003-01-12  Jim Meyering  <jim@meyering.net>
30220
30221         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
30222
30223 2003-01-10  Bruno Haible  <bruno@clisp.org>
30224
30225         * modules/alloca: Change Makefile.am requirements. Simplify Include
30226         requirements. Add lib/alloca_.h to file list.
30227
30228 2003-01-10  Bruno Haible  <bruno@clisp.org>
30229
30230         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
30231
30232 2003-01-10  Bruno Haible  <bruno@clisp.org>
30233
30234         * lib/alloca_.h: New file.
30235         * lib/getdate.y: Unconditionally include alloca.h.
30236         * lib/makepath.c: Likewise.
30237         * lib/setenv.c: Likewise.
30238         * lib/userspec.c: Likewise.
30239
30240 2003-01-09  Karl Berry  <karl@gnu.org>
30241
30242         * MODULES.html.sh: include `dirname $0` in PATH, to find
30243         gnulib-tool.
30244
30245 2003-01-09  Bruno Haible  <bruno@clisp.org>
30246
30247         * modules/stdbool: Change configure.ac, Makefile.am requirements.
30248         Simplify Include requirements. Add lib/stdbool.h.in to file list.
30249
30250 2003-01-09  Bruno Haible  <bruno@clisp.org>
30251
30252         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
30253
30254 2003-01-09  Bruno Haible  <bruno@clisp.org>
30255
30256         * lib/stdbool.h.in: New file.
30257
30258 2003-01-09  Bruno Haible  <bruno@clisp.org>
30259
30260         * gnulib-tool (func_all_modules): Ignore files ending in ~.
30261         * MODULES.html.sh: Likewise.
30262
30263 2003-01-08  Jim Meyering  <jim@meyering.net>
30264
30265         * lib/full-write.c: Undefine and define-away `const' after inclusion
30266         of errno.h, not before.  Suggestion from Bruno Haible.
30267
30268 2003-01-08  Bruno Haible  <bruno@clisp.org>
30269
30270         * modules/full-read: Depend on full-write.
30271
30272 2003-01-08  Bruno Haible  <bruno@clisp.org>
30273
30274         * lib/safe-read.c: Include specification header first, to ensure its
30275         selfcontainedness.
30276         * lib/full-write.c: Likewise.
30277
30278 2003-01-07  Jim Meyering  <jim@meyering.net>
30279
30280         * lib/full-write.c: Rework so that it may serve to define full_read,
30281         too.
30282         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
30283
30284 2003-01-07  Bruno Haible  <bruno@clisp.org>
30285
30286         * lib/strtoimax.c: Include <stdint.h> as an alternative to
30287         <inttypes.h>.
30288         * lib/xstrtol.h: Likewise.
30289         * lib/xstrtoimax.c: Likewise.
30290         * lib/xstrtoumax.c: Likewise.
30291         * lib/human.h: Likewise.
30292
30293         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
30294         on systems that have <inttypes.h> but not <stdint.h>.
30295
30296 2003-01-07  Bruno Haible  <bruno@clisp.org>
30297
30298         * MODULES.html.sh: Add copyright notice.
30299         (missed_files): Omit CVS directory entries.
30300         (func_module): Make it work with sed-3.02.
30301         * MODULES.txt: Remove file.
30302
30303 2003-01-06  Jim Meyering  <jim@meyering.net>
30304
30305         * lib/version-etc.c: Update year in translatable copyright string.
30306
30307 2003-01-03  Karl Berry  <karl@gnu.org>
30308
30309         * config/config.{guess,sub}: update from prep.
30310
30311 2003-01-02  Karl Berry  <karl@gnu.org>
30312
30313         * doc/COPYING.DOC: belatedly updated to 1.2.
30314
30315 2003-01-01  Karl Berry  <karl@gnu.org>
30316
30317         * gnulib-tool (func_verify_module): report module name $module in
30318         error message, not $1.
30319         * gnulib-tool (create-testdir): don't complain if destdir couldn't
30320         be created, only if it doesn't exist.
30321         * gnulib-tool (last_checkin_date): don't expand the $Date here.
30322
30323 2002-12-31  Paul Eggert  <eggert@twinsun.com>
30324
30325         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
30326
30327 2002-12-31  Paul Eggert  <eggert@twinsun.com>
30328
30329         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
30330         memcmp if strcoll doesn't work.
30331
30332 2002-12-31  Bruno Haible  <bruno@clisp.org>
30333
30334         * lib/utime.c (utime_null): No need to call ftruncate if the file was
30335         nonempty.
30336
30337 2002-12-31  Bruno Haible  <bruno@clisp.org>
30338
30339         * lib/memcoll.c (STRCOLL): New macro.
30340         (memcoll): Use it.
30341
30342 2002-12-31  Bruno Haible  <bruno@clisp.org>
30343
30344         * lib/localcharset.h: New file.
30345         * lib/localcharset.c: Include it.
30346         * lib/unicodeio.c: Likewise.
30347
30348 2002-12-31  Bruno Haible  <bruno@clisp.org>
30349
30350         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
30351         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
30352
30353 2002-12-31  Bruno Haible  <bruno@clisp.org>
30354
30355         * lib/getline.h: Include <stddef.h>, for size_t.
30356
30357         * lib/unicodeio.h: Include <stddef.h>, for size_t.
30358         * lib/unicodeio.c: Don't include <stddef.h>.
30359
30360 2002-12-31  Bruno Haible  <bruno@clisp.org>
30361
30362         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
30363         HAVE_TM_ZONE.
30364
30365 2002-12-24  Karl Berry  <karl@gnu.org>
30366
30367         * config/config.guess: update from prep.
30368
30369 2002-12-24  Bruno Haible  <bruno@clisp.org>
30370
30371         General infrasructure.
30372         * m4/README: Rewritten.
30373         * m4/onceonly.m4: New file.
30374         * m4/onceonly_2_57.m4: New file.
30375
30376         Module atexit.
30377         * m4/atexit.m4: New file.
30378
30379         Module strtod.
30380         * m4/strtod.m4: New file.
30381
30382         Module strtol.
30383         * m4/strtol.m4: New file.
30384
30385         Module strtoul.
30386         * m4/strtoul.m4: New file.
30387
30388         Module memchr.
30389         * m4/memchr.m4: New file.
30390
30391         Module memcmp.
30392         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
30393         (jm_FUNC_MEMCMP): Invoke it.
30394
30395         Module memcpy.
30396         * m4/memcpy.m4: New file.
30397
30398         Module memmove.
30399         * m4/memmove.m4: New file.
30400
30401         Module memset.
30402         * m4/memset.m4: New file.
30403
30404         Module strcspn.
30405         * m4/strcspn.m4: New file.
30406
30407         Module strpbrk.
30408         * m4/strpbrk.m4: New file.
30409
30410         Module strstr.
30411         * m4/strstr.m4: New file.
30412
30413         Module strerror.
30414         * m4/strerror.m4: New file.
30415
30416         Module mktime.
30417         * m4/mktime.m4: Renamed from jm-mktime.m4.
30418         (gl_PREREQ_MKTIME): New macro.
30419         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
30420
30421         Module malloc.
30422         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
30423         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
30424         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
30425
30426         Module realloc.
30427         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
30428         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
30429         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
30430
30431         Module strftime.
30432         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
30433         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
30434         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
30435         gl_TM_GMTOFF.
30436         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
30437
30438         Module xalloc.
30439         * m4/xalloc.m4: New file.
30440
30441         Module alloca.
30442         * m4/alloca.m4: New file.
30443
30444         Module putenv.
30445         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
30446         (jm_FUNC_PUTENV): Invoke it.
30447
30448         Module setenv.
30449         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
30450         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
30451         when invoked twice.
30452         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
30453         gt_FUNC_SETENV.
30454
30455         Module memrchr.
30456         * m4/memrchr.m4: New file.
30457
30458         Module stpcpy.
30459         * m4/stpcpy.m4: New file.
30460
30461         Module strcase.
30462         * m4/strcase.m4: New file.
30463
30464         Module strdup.
30465         * m4/strdup.m4: New file.
30466
30467         Module strnlen.
30468         * m4/strnlen.m4: New file.
30469
30470         Module strndup.
30471         * m4/strndup.m4: New file.
30472
30473         Module xstrtod.
30474         * m4/xstrtod.m4: New file.
30475
30476         Module xstrtol.
30477         * m4/xstrtol.m4: New file.
30478
30479         Module getdate.
30480         * m4/getdate.m4: New file.
30481
30482         Module unlocked-io.
30483         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
30484         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
30485         * m4/jm-glibc-io.m4n: Remove file.
30486
30487         Module long-options.
30488         * m4/long-options.m4: New file.
30489
30490         Module md5.
30491         * m4/md5.m4: New file.
30492
30493         Module sha.
30494         * m4/sha.m4: New file.
30495
30496         Module getstr.
30497         * m4/getstr.m4: New file.
30498
30499         Module getline.
30500         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
30501         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
30502         <sys/types.h>, for size_t. Use the function name gnu_getline, not
30503         simply getline. Infoke gl_PREREQ_GETLINE.
30504
30505         Module obstack.
30506         * m4/obstack.m4: New file.
30507
30508         Module hash.
30509         * m4/hash.m4: New file.
30510
30511         Module readtokens.
30512         * m4/readtokens.m4: New file.
30513
30514         Module strverscmp.
30515         * m4/strverscmp.m4: New file.
30516
30517         Module stdbool.
30518         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
30519         OSF/1.
30520
30521         Module strtoll.
30522         * m4/strtoll.m4: New file.
30523
30524         Module strtoull.
30525         * m4/strtoull.m4: New file.
30526
30527         Module strtoimax.
30528         * m4/strtoimax.m4: New file.
30529
30530         Module strtoumax.
30531         * m4/strtoumax.m4: New file.
30532
30533         Module xstrtoimax.
30534         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
30535         jm_AC_PREREQ_XSTRTOIMAX.
30536         Moved the strtol prerequisites to strtol.m4.
30537         Moved the strtoll prerequisites to strtoll.m4.
30538         Moved the strtoimax prerequisites to strtoimax.m4.
30539
30540         Module xstrtoumax.
30541         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
30542         jm_AC_PREREQ_XSTRTOUMAX.
30543         Moved the strtoul prerequisites to strtoul.m4.
30544         Moved the strtoull prerequisites to strtoull.m4.
30545         Moved the strtoumax prerequisites to strtoumax.m4.
30546
30547         Module chown.
30548         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
30549         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
30550
30551         Module dup2.
30552         * m4/dup2.m4: New file.
30553
30554         Module ftruncate.
30555         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
30556         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
30557
30558         Module getgroups.
30559         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
30560         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
30561
30562         Module gettimeofday.
30563         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
30564         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
30565         gl_PREREQ_GETTIMEOFDAY.
30566
30567         Module mkdir.
30568         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
30569         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
30570
30571         Module mkstemp.
30572         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
30573         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
30574         jm_AC_TYPE_UINTMAX_T.
30575         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
30576
30577         Module stat.
30578         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
30579         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
30580
30581         Module lstat.
30582         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
30583         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
30584
30585         Module timespec.
30586         * m4/timespec.m4 (gl_TIMESPEC): New macro.
30587         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
30588         * m4/st_mtim.m4: Indentation.
30589
30590         Module nanosleep.
30591         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
30592         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
30593         gl_PREREQ_NANOSLEEP.
30594
30595         Module regex.
30596         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
30597         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
30598         (gl_REGEX): New macro.
30599
30600         Module rename.
30601         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
30602         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
30603
30604         Module rmdir.
30605         * m4/rmdir.m4: New file.
30606
30607         Module utime.
30608         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
30609         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
30610         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
30611
30612         Module dirname.
30613         * m4/dirname.m4: New file.
30614
30615         Module getopt.
30616         * m4/getopt.m4: New file.
30617
30618         Module unistd-safer.
30619         * m4/unistd-safer.m4: New file.
30620
30621         Module fnmatch.
30622         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
30623         declaration.
30624         (gl_PREREQ_FNMATCH_EXTRA): New macro.
30625         (gl_FUNC_FNMATCH_POSIX): New macro.
30626         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
30627         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
30628         simply fnmatch.
30629
30630         Module exclude.
30631         * m4/exclude.m4: New file.
30632
30633         Module human.
30634         * m4/human.m4: New file.
30635
30636         Module acl.
30637         * m4/acl.m4: Nop.
30638
30639         Module backupfile.
30640         * m4/backupfile.m4: New file.
30641         * m4/d-ino.m4: Indentation.
30642
30643         Module fsusage.
30644         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
30645         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
30646         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
30647
30648         Module dirfd.
30649         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
30650         requirements.
30651
30652         Module euidaccess.
30653         * m4/euidaccess.m4: New file.
30654
30655         Module file-type.
30656         * m4/file-type.m4: New file.
30657
30658         Module fileblocks.
30659         * m4/fileblocks.m4: New file.
30660
30661         Module filemode.
30662         * m4/filemode.m4: New file.
30663
30664         Module isdir.
30665         * m4/isdir.m4: New file.
30666
30667         Module lchown.
30668         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
30669         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
30670
30671         Module makepath.
30672         * m4/makepath.m4: New file.
30673
30674         Module modechange.
30675         * m4/modechange.m4: New file.
30676
30677         Module mountlist.
30678         * m4/mountlist.m4: New file.
30679         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
30680         Indentation.
30681
30682         Module path-concat.
30683         * m4/path-concat.m4: New file.
30684
30685         Module pathmax.
30686         * m4/pathmax.m4: New file.
30687
30688         Module same.
30689         * m4/same.m4: New file.
30690
30691         Module save-cwd.
30692         * m4/save-cwd.m4: New file.
30693
30694         Module savedir.
30695         * m4/savedir.m4: New file.
30696
30697         Module xgetcwd.
30698         * m4/xgetcwd.m4: New file.
30699         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
30700
30701         Module xreadlink.
30702         * m4/xreadlink.m4: New file.
30703
30704         Module safe-read.
30705         * m4/safe-read.m4: New file.
30706
30707         Module safe-write.
30708         * m4/safe-write.m4: New file.
30709
30710         Module closeout.
30711         * m4/closeout.m4: New file.
30712
30713         Module stdio-safer.
30714         * m4/stdio-safer.m4: New file.
30715
30716         Module getpass.
30717         * m4/getpass.m4: New file.
30718
30719         Module getugroups.
30720         * m4/getugroups.m4: New file.
30721
30722         Module group-member.
30723         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
30724         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
30725
30726         Module idcache.
30727         * m4/idcache.m4: New file.
30728
30729         Module userspec.
30730         * m4/userspec.m4: New file.
30731
30732         Module gettime.
30733         * m4/clock_time.m4: New file.
30734         * m4/gettime.m4: New file.
30735
30736         Module settime.
30737         * m4/settime.m4: New file.
30738
30739         Module posixtm.
30740         * m4/posixtm.m4: New file.
30741
30742         Module gethostname.
30743         * m4/gethostname.m4: New file.
30744
30745         Module canon-host.
30746         * m4/canon-host.m4: New file.
30747
30748         Module gettext.
30749         * m4/codeset.m4: New file, from gettext-0.11.5.
30750         * m4/gettext.m4: New file, from gettext-0.11.5.
30751         * m4/glibc21.m4: New file, from gettext-0.11.5.
30752         * m4/iconv.m4: New file, from gettext-0.11.5.
30753         * m4/intdiv0.m4: New file, from gettext-0.11.5.
30754         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
30755         * m4/inttypes.m4: New file, from gettext-0.11.5.
30756         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
30757         * m4/isc-posix.m4: New file, from gettext-0.11.5.
30758         * m4/lcmessage.m4: New file, from gettext-0.11.5.
30759         * m4/lib-ld.m4: New file, from gettext-0.11.5.
30760         * m4/lib-link.m4: New file, from gettext-0.11.5.
30761         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
30762         * m4/progtest.m4: New file, from gettext-0.11.5.
30763         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
30764         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
30765         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
30766
30767         Module localcharset.
30768         * m4/localcharset.m4: New file.
30769
30770         Module hard-locale.
30771         * m4/hard-locale.m4: New file.
30772
30773         Module mbswidth.
30774         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
30775         onceonly macros.
30776         * m4/mbrtowc.m4: Add comment.
30777
30778         Module memcasecmp.
30779         * m4/memcasecmp.m4: New file.
30780
30781         Module memcoll.
30782         * m4/memcoll.m4: New file.
30783
30784         Module unicodeio.
30785         * m4/unicodeio.m4: New file.
30786
30787         Module rpmatch.
30788         * m4/rpmatch.m4: New file.
30789
30790         Module yesno.
30791         * m4/yesno.m4: New file.
30792
30793         Module exitfail.
30794         * m4/exitfail.m4: New file.
30795
30796         Module c-stack.
30797         * m4/c-stack.m4 (gl_C_STACK): New macro.
30798         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
30799
30800         Module error.
30801         * m4/error.m4 (gl_ERROR): New macro.
30802         (jm_PREREQ_ERROR): Use onceonly macros.
30803
30804         Module fatal.
30805         * m4/fatal.m4: New file.
30806
30807         Module getloadavg.
30808         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
30809         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
30810
30811         Module getpagesize.
30812         * m4/getpagesize.m4: New file.
30813
30814         Module getusershell.
30815         * m4/getusershell.m4: New file.
30816
30817         Module physmem.
30818         * m4/physmem.m4: New file.
30819
30820         Module posixver.
30821         * m4/posixver.m4: New file.
30822
30823         Module quotearg.
30824         * m4/quotearg.m4: New file.
30825
30826         Module quote.
30827         * m4/quote.m4: New file.
30828
30829         Module readutmp.
30830         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
30831
30832         Module sig2str.
30833         * m4/sig2str.m4: New file.
30834
30835         Other.
30836         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
30837         ulonglong.m4.
30838         * m4/intmax_t.m4: New file.
30839         * m4/d-type.m4: Indentation.
30840         * m4/jm-macros.m4: Update.
30841         * m4/prereq.m4 (jm_PREREQ): Update.
30842         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
30843         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
30844         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
30845         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
30846         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
30847         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
30848         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
30849         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
30850         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
30851         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
30852         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
30853         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
30854         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
30855         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
30856         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
30857         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
30858         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
30859         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
30860         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
30861
30862 2002-12-24  Bruno Haible  <bruno@clisp.org>
30863
30864         * MODULES.txt: Update according to m4/ changes.
30865
30866         Module gettext.
30867         * config.rpath: New file, from gettext-0.11.5.
30868
30869         * modules/*: New module descriptions.
30870         * gnulib-tool: New file.
30871         * MODULES.html.sh: New file.
30872
30873 2002-12-21  Karl Berry  <karl@gnu.org>
30874
30875         * doc/fdl.texi: update to version 1.2.
30876
30877 2002-12-19  Karl Berry  <karl@gnu.org>
30878
30879         * config/config.guess: update from prep.
30880
30881 2002-12-18  Bruno Haible  <bruno@clisp.org>
30882
30883         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
30884         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
30885
30886 2002-12-17  Bruno Haible  <bruno@clisp.org>
30887
30888         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
30889         stdlib.h, string.h.
30890
30891 2002-12-17  Bruno Haible  <bruno@clisp.org>
30892
30893         * lib/canon-host.c (strdup): Remove unused declaration.
30894
30895         * lib/fsusage.c: Include full_read.h.
30896         (get_fs_usage): Use full_read instead of safe_read.
30897
30898         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
30899
30900 2002-12-12  Karl Berry  <karl@gnu.org>
30901
30902         * config/config.guess: update from prep.
30903
30904 2002-12-11  Bruno Haible  <bruno@clisp.org>
30905
30906         * m4/setenv.m4: New file, from gettext-0.11.5.
30907
30908 2002-12-11  Bruno Haible  <bruno@clisp.org>
30909
30910         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
30911         not unsetenv().
30912         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
30913         modifications:
30914
30915         2002-12-11  Bruno Haible  <bruno@clisp.org>
30916
30917                 * setenv.c (alloca): Fall back to malloc.
30918                 (freea): New macro.
30919                 (setenv): Use freea() to free memory allocated with alloca().
30920
30921         2002-11-13  Bruno Haible  <bruno@clisp.org>
30922
30923                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
30924                 function declarations.
30925                 * unsetenv.c (unsetenv): Likewise.
30926
30927         2002-03-04  Bruno Haible  <bruno@clisp.org>
30928
30929                 Portability to AIX 4.3.3.
30930                 * unsetenv.c: New file, extracted from setenv.c.
30931                 * setenv.c: Move the unsetenv() function to unsetenv.c.
30932
30933         2001-12-20  Bruno Haible  <bruno@clisp.org>
30934
30935                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
30936                 use malloc instead. For SunOS 4.
30937
30938         2001-12-11  Bruno Haible  <bruno@clisp.org>
30939
30940                 * setenv.c: Declare alloca.
30941                 (compar_fn_t): New typedef.
30942                 (KNOWN_VALUE, STORE_VALUE): Use it.
30943
30944         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
30945         setenv.h.
30946
30947 2002-12-10  Paul Eggert  <eggert@twinsun.com>
30948
30949         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
30950         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
30951         Choose values that are less likely to collide with system fnmatch
30952         options.
30953         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
30954         defined (e.g., a pure POSIX system).
30955         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
30956         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
30957
30958 2002-12-06  Paul Eggert  <eggert@twinsun.com>
30959
30960         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
30961         a pain in practice to deal with generated m4 files.  This change
30962         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
30963
30964         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
30965         and jm-glibc-io.m4, as they are no longer a special case.
30966         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
30967         kludge and the auto-generation stuff.  Check only whether the
30968         functions are declared, not whether they exist, since older hosts
30969         that don't declare the functions can't use the optimization anyway.
30970
30971 2002-12-06  Jim Meyering  <jim@meyering.net>
30972
30973         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
30974
30975         Merge in changes from libc's misc/error.c, in preparation
30976         for the merge of gnulib's changes back into libc.
30977
30978         * lib/error.c (_): Define only if not already defined.
30979         Move definition to follow all #include directives.
30980         Include unlocked-io.h only if !_LIBC.
30981         [_LIBC]: Include <libio/libioP.h>.
30982         [USE_IN_LIBIO]: Include <libio/iolibio.h>
30983         (fflush): Tweak definition to use INTUSE.
30984         (putc): Define.
30985
30986 2002-12-05  Paul Eggert  <eggert@twinsun.com>
30987
30988         * lib/alloca.c [defined emacs]: Include "lisp.h".
30989         (xalloc_die) [defined emacs]: New macro.
30990         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
30991         [! defined emacs]: Include <xalloc.h>.
30992         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
30993         (pointer): Typedef to POINTER_TYPE *.
30994         (malloc): Remove decl; we now always use xmalloc.
30995         (alloca): Use old-style definition, since Emacs needs this.
30996         Check for arithmetic overflow when computing combined size.
30997
30998 2002-12-04  Paul Eggert  <eggert@twinsun.com>
30999
31000         Do not generate unlocked-io.h automatically, since it's easier to
31001         maintain it by hand.
31002
31003         * lib/unlocked-io.h: New file, from GNU diffutils,
31004         but with proper copyright notice and attribution.
31005         * lib/gen-uio: Remove.
31006         * lib/Makefile.am: Add copyright notice.
31007         (libfetish_a_SOURCES): Add unlocked-io.h.
31008         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
31009         (DISTCLEANFILES, io_functions): Remove macros.
31010         (EXTRA_DIST): Remove gen_uio.
31011         (unlocked-io.h): Remove rule.
31012
31013 2002-12-04  Jim Meyering  <jim@meyering.net>
31014
31015         Reflect the fact that stat.c and lstat.c are no longer generated.
31016         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
31017         (DISTCLEANFILES): Likewise.
31018         (EXTRA_DIST): Likewise.
31019         (all_local): Don't depend on stat.c or lstat.c.
31020         (stat.c, lstat.c): Remove rules.
31021         (EXTRA_DIST): Remove xstat.in.
31022
31023         * lib/xstat.in: Remove file.  Contents moved into stat.c.
31024         * lib/stat.c: New file.  Contents mostly from xstat.in.
31025         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
31026         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
31027
31028         * lib/safe-read.c: Rework so that it may serve to define safe_write,
31029         too.
31030         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
31031
31032 2002-12-03  Jim Meyering  <jim@meyering.net>
31033
31034         * lib/safe-read.c, safe-write.c: Change variable names and comments,
31035         but not semantics, to minimize the differences between these two files.
31036         (safe_read): Change comment to mention SAFE_READ_ERROR.
31037
31038         * lib/safe-read.c (IS_EINTR): Define.
31039         (safe_read): Use IS_EINTR in place of in-function cpp directives.
31040
31041 2002-12-02  Jim Meyering  <jim@meyering.net>
31042
31043         * lib/safe-read.c (EINTR): Define.
31044         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
31045         (INT_MAX): Provide fallback.
31046         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
31047
31048         * lib/safe-read.h (SAFE_READ_ERROR): Define.
31049
31050 2002-12-02  Bruno Haible  <bruno@clisp.org>
31051
31052         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
31053         Define, taken from safe-read.c.
31054         (INT_MAX): Provide fallback.
31055         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
31056         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
31057
31058         * lib/safe-read.c (EINTR): Remove definition.
31059         (safe_read): Don't use EINTR if it is absent.
31060
31061 2002-12-01  Jim Meyering  <jim@meyering.net>
31062
31063         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
31064         zero.
31065         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
31066
31067 2002-11-27  Paul Eggert  <eggert@twinsun.com>
31068
31069         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
31070         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
31071         with `if (! (value < limit)) abort ();', for readability.
31072
31073 2002-11-26  Karl Berry  <karl@gnu.org>
31074
31075         * lib/strdup.c: copy from libc again, with jim's ok.
31076         * lib/.cppi-disable: re-add strdup.c
31077
31078 2002-11-25  Karl Berry  <karl@gnu.org>
31079
31080         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
31081         instead of "strtol.c".
31082
31083 2002-11-25  Karl Berry  <karl@gnu.org>
31084
31085         * config/install-sh: update from automake for variable quoting, $0 in
31086         error msgs, etc.
31087
31088         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
31089         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
31090         entry.
31091
31092 2002-11-25  Jim Meyering  <jim@meyering.net>
31093
31094         * lib/mktime.c: Sync from libc, now that it has the latest fix.
31095
31096 2002-11-24  Karl Berry  <karl@gnu.org>
31097
31098         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
31099         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
31100
31101 2002-11-24  Jim Meyering  <jim@meyering.net>
31102
31103         Update from coreutils:
31104
31105         * lib/mktime.c: Merge in changes from libc.
31106
31107         Avoid a link-time failure on some Linux systems.
31108         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
31109         (otherwise).
31110         (__mon_yday): Declare with the STATIC attribute.
31111         (__mktime_internal): Likewise.
31112         Based on a report from Greg Schafer.
31113
31114 2002-11-23  Jim Meyering  <jim@meyering.net>
31115
31116         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
31117         Use `unsigned', not `int', as type of index.
31118
31119         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
31120
31121         * lib/fsusage.c: Remove unneeded parentheses around operands of
31122         `defined'.
31123
31124 2002-11-22  Paul Eggert  <eggert@twinsun.com>
31125
31126         * lib/quotearg.h: Allow multiple inclusion by surrounding with
31127         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
31128         so that we can be included first.
31129         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
31130         * lib/quotearg.c: Include quotearg.h immediately after config.h.
31131         No need to include stddef.h or sys/types.h any more.
31132         Surround local include files with "", not "<>".
31133         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
31134         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
31135         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
31136         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
31137         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
31138         (ISPRINT): Remove; no longer needed now that we assume C89.
31139
31140         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
31141         Preserve errno.
31142
31143         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
31144         quotearg_char): Use SIZE_MAX rather than
31145         (size_t) -1 when we are talking about "infinity".
31146
31147         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
31148
31149 2002-11-22  Paul Eggert  <eggert@twinsun.com>
31150
31151         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
31152         hint that one should use `if (! x) abort ();' rather than `assert
31153         (x);', and anyway it's one less thing to worry about configuring.
31154         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
31155         hash_rehash, hash_insert): Use abort rather than assert.
31156
31157 2002-11-22  Bruno Haible  <bruno@clisp.org>
31158
31159         * lib/safe-read.h: Assume C89. Add comments.
31160         (safe_read): Change return type to size_t.
31161         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
31162         byte counts > SSIZE_MAX correctly.
31163         * lib/safe-write.h: New file.
31164         * lib/safe-write.c: New file.
31165         * lib/full-read.h: New file.
31166         * lib/full-read.c: New file.
31167         * lib/full-write.h: Assume C89. Add comments.
31168         * lib/full-write.c: Include safe-write.h.
31169         (full_write): Rewritten to use safe_write.
31170         Suggested by Jim Meyering and Paul Eggert.
31171
31172 2002-11-21  Jim Meyering  <jim@meyering.net>
31173
31174         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
31175
31176         Merge in changes from the coreutils.
31177
31178         2002-09-25  Paul Eggert  <eggert@twinsun.com>
31179         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
31180         <stdint.h>.
31181         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
31182         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
31183         int.  Work more efficiently if X is the same width as uintmax_t.
31184         Do not compare X to -1, to avoid bogus compiler warning.
31185         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
31186         Don't assume that f_frsize and f_bsize are the same type.
31187
31188         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
31189         warning on FreeBSD.
31190
31191         * lib/makepath.c (make_path): Restore umask *before* creating the final
31192         component.
31193         (make_path): Minor reformatting.
31194
31195         * lib/xmalloc.c: Adjust to work with new autoconf macros,
31196         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
31197         HAVE_MALLOC/HAVE_REALLOC.
31198
31199         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
31200         dummy ones.  At least on GNU/Linux systems, `auto' means something
31201         else.
31202         From Michael Stone.
31203
31204 2002-11-21  Bruno Haible  <bruno@clisp.org>
31205
31206         Remove case insensitive option matching.
31207         * lib/argmatch.h (argcasematch): Remove declaration.
31208         (ARGCASEMATCH): Remove macro.
31209         (__xargmatch_internal): Remove case_sensitive argument.
31210         (XARGMATCH): Update.
31211         (XARGCASEMATCH): Remove macro.
31212         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
31213         case_sensitive argument.
31214         (argcasematch): Remove function.
31215         (__xargmatch_internal): Remove case_sensitive argument.
31216         (main): Use XARGMATCH instead of XARGCASEMATCH.
31217
31218         * lib/xmalloc.c: Change compile-time error message. Add comment about
31219         required autoconf version.
31220
31221 2002-11-20  Paul Eggert  <eggert@twinsun.com>
31222
31223         Merge argmatch cleanups from Bison.  Assume C89.
31224
31225         * lib/argmatch.c: Include config.h here, not in argmatch.h.
31226         Include stdlib.h, for EXIT_FAILURE.
31227         Always include <string.h>, since we assume C89.
31228         (EXIT_FAILURE): Remove pre-C89 bug workaround.
31229         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
31230         Include <stddef.h> instead, since it's all we need for size_t.
31231         (PARAMS): Remove.  All uses removed.
31232         (ARRAY_CARDINALITY): Do not bother to #undef.
31233         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
31234         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
31235         Remove unnecessary parentheses.
31236         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
31237         Insert necessary parentheses.
31238         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
31239         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
31240
31241 2002-11-19  Bruno Haible  <bruno@clisp.org>
31242
31243         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
31244         * lib/mbswidth.h: Include <stddef.h>, for size_t.
31245
31246         * lib/mbswidth.h (PARAMS): Remove macro.
31247         (mbswidth, mbsnwidth): Use ANSI C function declarations.
31248         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
31249
31250         * lib/gcd.h (PARAMS): Remove macro.
31251         (gcd): Use ANSI C function declarations.
31252         * lib/gcd.c (gcd): Likewise.
31253
31254 2002-11-15  Bruno Haible  <bruno@clisp.org>
31255
31256         * lib/strcspn.c: Include <stddef.h>.
31257         (strcspn): Use ANSI C function declaration. Change return type to
31258         size_t. Use NULL.
31259         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
31260         (strpbrk): Use NULL.
31261         * lib/strpbrk.h (PARAMS): Remove macro.
31262         (strpbrk): Use ANSI C function declaration.
31263         * lib/strstr.c: Don't include <sys/types.h>.
31264         * lib/strstr.h (PARAMS): Remove macro.
31265         (strstr): Use ANSI C function declarations.
31266
31267 2002-11-14  Karl Berry  <karl@gnu.org>
31268
31269         * config/mkinstalldirs: `do' on separate line, instead of
31270         `for var; do'.
31271
31272 2002-11-06  Bruno Haible  <bruno@clisp.org>
31273
31274         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
31275         * lib/gcd.c (gcd): Likewise.
31276
31277 2002-11-05  Bruno Haible  <bruno@clisp.org>
31278
31279         * lib/gcd.h: New file, from gettext-0.11.5.
31280         * lib/gcd.c: New file, from gettext-0.11.5.
31281
31282 2002-11-05  Bruno Haible  <bruno@clisp.org>
31283
31284         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
31285         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
31286         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
31287         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
31288
31289         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
31290         <libintl.h>.
31291         * lib/makepath.c: Include gettext.h instead of <locale.h> and
31292         <libintl.h>.
31293
31294         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
31295         * lib/human.c: Include gettext.h instead of <libintl.h>.
31296         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
31297         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
31298         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
31299         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
31300         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
31301         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
31302         (textdomain): Remove definition.
31303         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
31304
31305         * lib/long-options.c: Remove include of <libintl.h> and definition of
31306         _.
31307         * lib/same.c: Remove include of <libintl.h> and definition of _.
31308
31309 2002-11-04  Owen Taylor  <otaylor@redhat.com>
31310
31311         * lib/config.charset: A few additions for Solaris.
31312
31313 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
31314
31315         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
31316         * lib/localcharset.c (locale_charset): Declare as extern "C".
31317
31318 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
31319
31320         * lib/config.charset: msdos in uk_UA uses CP1125.
31321
31322 2002-11-04  Bruno Haible  <bruno@clisp.org>
31323
31324         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
31325         * lib/strcase.h: New file, from GNU gettext-0.11.5.
31326         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
31327         * lib/strstr.h: New file, from GNU gettext-0.11.5.
31328         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
31329
31330 2002-11-04  Bruno Haible  <bruno@clisp.org>
31331
31332         * lib/localcharset.c (locale_charset): Don't return an empty string.
31333
31334 2002-11-04  Bruno Haible  <bruno@clisp.org>
31335
31336         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
31337         aliases.
31338
31339 2002-11-04  Bruno Haible  <bruno@clisp.org>
31340
31341         * lib/config.charset: Update for newest glibc. Add canonical names
31342         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
31343
31344 2002-11-04  Bruno Haible  <bruno@clisp.org>
31345
31346         * lib/config.charset: Add support for NetBSD.
31347
31348 2002-11-04  Bruno Haible  <bruno@clisp.org>
31349
31350         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
31351
31352 2002-11-01  Bruno Haible  <bruno@clisp.org>
31353
31354         * configure.in: Add AC_CONFIG_AUX_DIR call.
31355         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
31356         test/Makefile.
31357         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
31358
31359 2002-09-28  Karl Berry  <karl@gnu.org>
31360
31361         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
31362         installed automake until the next release, since changes have been
31363         made.
31364
31365 2002-09-25  Karl Berry  <karl@gnu.org>
31366
31367         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
31368         * lib/getopt*: copy from libc/posix.
31369         * lib/gettext.h: copy from gettext.
31370         * lib/.cppi-disable: add strdup.c, gettext.h.
31371
31372 2002-09-25  Karl Berry  <karl@gnu.org>
31373
31374         * config/srclist.txt: enable gettext.h check.
31375         * config/config.{guess,sub}: update from prep.
31376         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
31377                 from automake 1.6.3.
31378         See srclist*.
31379
31380 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
31381
31382         * regex.c (PATFETCH): Remove the translating fetch.
31383         (PATFETCH_RAW): Rename to PATFETCH.
31384         (set_image_of_range): New fun.
31385         (SET_RANGE_TABLE_WORK_AREA): Use it.
31386         (regex_compile): Don't translate the pattern chars so eagerly.
31387         Only do it when inserting an `exactn' bytecode or when handling
31388         a char-range.
31389         (mutually_exclusive_p): Avoid empty statement.
31390
31391 2002-07-06  Jim Meyering  <meyering@lucent.com>
31392
31393         * m4/README: Don't mention Makefile.am.in.
31394         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
31395
31396 2002-07-01  Jim Meyering  <meyering@lucent.com>
31397
31398         * lib/c-stack.c: Include sys/time.h.
31399         From Volker Borchert.
31400
31401 2002-06-26  Paul Eggert  <eggert@twinsun.com>
31402
31403         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
31404
31405 2002-06-26  Paul Eggert  <eggert@twinsun.com>
31406
31407         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
31408         New macro.  Use it uniformly instead of
31409         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
31410         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
31411         reported by Vin Shelton.
31412
31413 2002-06-22  Paul Eggert  <eggert@twinsun.com>
31414
31415         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
31416         Do not assume SA_SIGINFO behavior.
31417         Bug reported by Jim Meyering on NetBSD 1.5.2.
31418
31419 2002-06-22  Jim Meyering  <meyering@lucent.com>
31420
31421         * m4/c-stack.m4: New file, from diffutils-2.8.2.
31422         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
31423
31424         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
31425         now that configure.ac uses AC_GNU_SOURCE.
31426         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
31427         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
31428
31429         Update to latest tools.  Suggestions from Paul Eggert.
31430         * m4/stdbool.m4: New file, from diffutils-2.8.2.
31431         * m4/gnu-source.m4: Update from diffutils-2.8.2.
31432         * m4/fnmatch.m4: Likewise.
31433         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
31434         to AC_HEADER_STDBOOL
31435
31436 2002-06-22  Jim Meyering  <meyering@lucent.com>
31437
31438         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
31439         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
31440
31441 2002-06-22  Jim Meyering  <meyering@lucent.com>
31442
31443         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
31444
31445         * lib/exitfail.c, exitfail.h: Likewise.
31446         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
31447
31448         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
31449         of fnmatch.h.
31450         (EXTRA_DIST): Add fnmatch_loop.c.
31451         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
31452
31453         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
31454         * lib/fnmatch.c: Update from diffutils-2.8.2.
31455         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
31456         * lib/fnmatch.h: Remove file.
31457
31458 2002-06-21  Jim Meyering  <meyering@lucent.com>
31459
31460         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
31461         * m4/mbrtowc.m4: Likewise.
31462
31463         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
31464         * m4/mbswidth.m4: Reflect name change:
31465         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
31466         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
31467
31468         * m4/lib-link.m4: Update from gettext-0.11.2.
31469         * m4/gettext.m4: Likewise.
31470
31471         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
31472         From Alfred M. Szmidt.
31473
31474 2002-06-18  Paul Eggert  <eggert@twinsun.com>
31475
31476         * lib/file-type.h: Report an error if neither S_ISREG nor
31477         S_IFREG is defined, instead of using a test specific to glibc
31478         2.2.  This should be safe, since POSIX requires S_ISREG and
31479         Unix Version 7 had S_IFREG.  We don't need to check for
31480         <sys/types.h> since we don't use any symbols that it defines.
31481
31482 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
31483
31484         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
31485         $@-t, so that each temporary file name is unique and valid in the first
31486         8 characters, for operation under DOS.
31487
31488 2002-06-15  Paul Eggert  <eggert@twinsun.com>
31489
31490         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
31491
31492 2002-06-15  Jim Meyering  <meyering@lucent.com>
31493
31494         Work even with DJGPP 2.03, which lacks support for symlinks.
31495         From Richard Dawe.
31496         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
31497         is defined.
31498         * lib/lchown.c (S_ISLNK): Likewise.
31499
31500 2002-06-15  Jim Meyering  <meyering@lucent.com>
31501
31502         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
31503         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
31504         have been included before this file.
31505
31506 2002-06-14  Jim Meyering  <meyering@lucent.com>
31507
31508         * lib/file-type.h: Use the version from diffutils-2.8.2.
31509         * lib/file-type.c: Likewise.
31510
31511 2002-06-07  Jim Meyering  <meyering@lucent.com>
31512
31513         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
31514         They're needed at least for NetBSD 1.5.2.
31515         ($statxfs_includes): Include those same headers.
31516         ($statxfs_includes): Include sys/vfs.h if available.
31517         ($statxfs_includes): Likewise for sys/statvfs.h.
31518         Check for the following members in both structs statfs and statvfs:
31519         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
31520
31521 2002-06-01  Jim Meyering  <meyering@lucent.com>
31522
31523         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
31524         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
31525
31526 2002-05-28  Jim Meyering  <meyering@lucent.com>
31527
31528         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
31529         Reported by Volker Borchert.
31530
31531 2002-05-27  Jim Meyering  <meyering@lucent.com>
31532
31533         Fix a problem seen only on nonconforming systems whereby ls.c's
31534         use of localtime, and then of gettimeofday would cause trouble:
31535         the localtime call used to initialize rpl_gettimeofday's save
31536         mechanism would clobber ls's current local time information so
31537         that in any long listing the first file would always be listed
31538         with date 1970-01-01.  Analysis by Volker Borchert.
31539
31540         * lib/gettimeofday.c (localtime): Undefine.
31541         (rpl_localtime): New function.
31542
31543 2002-05-27  Jim Meyering  <meyering@lucent.com>
31544
31545         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
31546         localtime.
31547
31548         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
31549         use the replacement function; it wouldn't resolve at link time.
31550         Reported by Volker Borchert.
31551
31552 2002-05-22  Jim Meyering  <meyering@lucent.com>
31553
31554         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
31555         file-type.h.
31556         * lib/file-type.h: New file.
31557         * lib/file-type.c (file_type): New file/function.  Extracted from
31558         diffutils.
31559
31560 2002-04-30  Jim Meyering  <meyering@lucent.com>
31561
31562         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
31563
31564 2002-04-29  Paul Eggert  <eggert@twinsun.com>
31565
31566         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
31567
31568 2002-04-29  Paul Eggert  <eggert@twinsun.com>
31569
31570         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
31571         Do not check for alloca.h (no longer used) or stdbool.h (was never
31572         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
31573
31574 2002-04-29  Paul Eggert  <eggert@twinsun.com>
31575
31576         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
31577
31578 2002-04-29  Jim Meyering  <meyering@lucent.com>
31579
31580         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
31581         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
31582         Use AC_FUNC_STRNLEN here instead.
31583
31584         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
31585         With autoconf-2.53a, it's part of AC_PROG_CC.
31586
31587 2002-04-28  Paul Eggert  <eggert@twinsun.com>
31588
31589         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
31590         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
31591
31592 2002-04-28  Paul Eggert  <eggert@twinsun.com>
31593
31594         * lib/sig2str.h, lib/sig2str.c: New files.
31595         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
31596
31597 2002-04-28  Paul Eggert  <eggert@twinsun.com>
31598
31599         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
31600         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
31601         of 127, since 64 is the largest conceivable number for ancient
31602         nonstandard hosts.
31603         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
31604
31605 2002-04-28  Jim Meyering  <meyering@lucent.com>
31606
31607         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
31608
31609 2002-04-24  Jim Meyering  <meyering@lucent.com>
31610
31611         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
31612         (jm_PREREQ): Use it.
31613
31614         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
31615         mach/mach.h fcntl.h.
31616         Check for this function: setlocale.
31617
31618 2002-04-24  Jim Meyering  <meyering@lucent.com>
31619
31620         * lib/gettext.h: New file, from Gettext.
31621         * lib/Makefile.am (INCLUDES): Remove -I../intl.
31622         (libfetish_a_SOURCES): Add gettext.h.
31623
31624 2002-04-16  Jim Meyering  <meyering@lucent.com>
31625
31626         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
31627         ut_pid, ut_id, ut_exit.
31628
31629 2002-04-16  Jim Meyering  <meyering@lucent.com>
31630
31631         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
31632         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
31633         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
31634
31635 2002-04-12  Jim Meyering  <meyering@lucent.com>
31636
31637         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
31638         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
31639         existence of the getmntinfo function.  Needed for Darwin 5.3.
31640
31641         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
31642         This is necessary at least on Darwin 5.3.
31643
31644         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
31645         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
31646         strnlen.o in the library, and that makes some versions of ranlib
31647         object.
31648
31649 2002-04-12  Jim Meyering  <meyering@lucent.com>
31650
31651         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
31652
31653 2002-04-09  Jim Meyering  <meyering@lucent.com>
31654
31655         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
31656         to be more precise.  Rather than saying we're checking whether the
31657         function `works', say what we're testing.
31658         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
31659         Reported by Bruno Haible.
31660
31661 2002-03-10  Jim Meyering  <meyering@lucent.com>
31662
31663         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
31664         Suggestion from Santiago Vila.
31665
31666 2002-03-08  Jim Meyering  <meyering@lucent.com>
31667
31668         * lib/rename.c: Mention that this wrapper is needed also on
31669         mips-dec-ultrix4.4 systems.
31670
31671 2002-03-02  Jim Meyering  <meyering@lucent.com>
31672
31673         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
31674         not HAVE_CLOCK_SETTIME.
31675
31676 2002-02-27  Paul Eggert  <eggert@twinsun.com>
31677
31678         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
31679         Check for clock_settime.
31680
31681 2002-02-27  Paul Eggert  <eggert@twinsun.com>
31682
31683         * lib/nanosleep.h: Rename to....
31684         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
31685
31686         * lib/gettime.c: New file.
31687         * lib/settime.c: New file.
31688         * lib/stime.c: Remove.
31689
31690         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
31691         timespec.h.  Remove nanosleep.h.
31692
31693 2002-02-25  Paul Eggert  <eggert@twinsun.com>
31694
31695         * m4/acl.m4: New file.
31696         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
31697         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
31698
31699 2002-02-25  Paul Eggert  <eggert@twinsun.com>
31700
31701         * lib/acl.c, lib/acl.h: New files.
31702         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
31703
31704 2002-02-24  Jim Meyering  <meyering@lucent.com>
31705
31706         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
31707         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
31708         cause trouble.  Reported by Nelson Beebe.
31709
31710 2002-02-23  Paul Eggert  <eggert@twinsun.com>
31711
31712         * lib/path-concat.c (xpath_concat): Reorder code to pacify
31713         compilers that don't know that xalloc_die never returns.
31714
31715 2002-02-20  Jim Meyering  <meyering@lucent.com>
31716
31717         * lib/getdate.c: Regenerate using bison-1.33.
31718
31719 2002-02-17  Jim Meyering  <meyering@lucent.com>
31720
31721         * config/config.guess (main): Don't use `head -1'; it's no longer
31722         portable. Use `sed 1q' instead.
31723
31724 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
31725
31726         * m4/codeset.m4: Upgrade to gettext-0.11.
31727         * m4/gettext.m4: Upgrade to gettext-0.11.
31728         * m4/glibc21.m4: Upgrade to gettext-0.11.
31729         * m4/iconv.m4: Upgrade to gettext-0.11.
31730         * m4/isc-posix.m4: Upgrade to gettext-0.11.
31731         * m4/lcmessage.m4: Upgrade to gettext-0.11.
31732         * m4/lib-ld.m4: New file, from gettext-0.11.
31733         * m4/lib-link.m4: New file, from gettext-0.11.
31734         * m4/lib-prefix.m4: New file, from gettext-0.11.
31735         * m4/progtest.m4: Upgrade to gettext-0.11.
31736
31737 2002-02-15  Paul Eggert  <eggert@twinsun.com>
31738
31739         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
31740         (jm_PREREQ): Use it.
31741
31742 2002-02-15  Paul Eggert  <eggert@twinsun.com>
31743
31744         * lib/posixver.c, lib/posixver.h: New files.
31745         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
31746
31747 2002-02-02  Paul Eggert  <eggert@twinsun.com>
31748             Bruno Haible  <bruno@clisp.org>
31749
31750         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
31751         (fwrite_success_callback): New declaration.
31752         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
31753         print_unicode_char. Call failure callback instead of error.
31754         (fwrite_success_callback): New function.
31755         (exit_failure_callback): New function.
31756         (fallback_failure_callback): New function.
31757         (print_unicode_char): Call unicode_to_mb.
31758
31759 2002-01-26  Jim Meyering  <meyering@lucent.com>
31760
31761         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
31762         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
31763
31764 2002-01-26  Jim Meyering  <meyering@lucent.com>
31765
31766         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
31767
31768 2002-01-22  Paul Eggert  <eggert@twinsun.com>
31769
31770         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
31771
31772 2002-01-22  Jim Meyering  <meyering@lucent.com>
31773
31774         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
31775         Otherwise, some versions of automake would omit the rule that makes
31776         Makefile from Makefile.in.
31777
31778 2002-01-21  Paul Eggert  <eggert@twinsun.com>
31779
31780         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
31781         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
31782         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
31783         (memcoll): Set errno to zero if there is no error.
31784
31785         * lib/quotearg.c (quotearg_buffer_restyled):
31786         Fix bug with quoting buffers containing NUL when backslashing escapes.
31787         This bug was exposed by the other changes in this patch.
31788         (quotearg_n_options): New arg ARGSIZE.
31789         All callers changed.
31790         (quoting_options_from_style): New function.
31791         (quotearg_n_style): Use it.
31792         (quotearg_n_style_mem): New function.
31793
31794         * lib/quotearg.h (quotearg_n_style_mem): New function.
31795
31796 2002-01-19  Jim Meyering  <meyering@lucent.com>
31797
31798         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
31799         Remove useless quotes: DF_PROG="df".
31800         * m4/strnlen.m4: New file.
31801
31802 2002-01-16  Paul Eggert  <eggert@twinsun.com>
31803
31804         * lib/backupfile.c (ISDIGIT): Comment fix.
31805         * lib/getdate.y (ISDIGIT): Likewise.
31806         * lib/posixtm.c (ISDIGIT, year): Likewise.
31807         * lib/strverscmp.c (ISDIGIT): Likewise.
31808         * lib/userspec.c (ISDIGIT): Likewise.
31809
31810 2002-01-16  Jim Meyering  <meyering@lucent.com>
31811
31812         * lib/getdate.y: Add three semicolons, each just before a closing
31813         brace. Bison (as of version 1.31) no longer papers over that mistake.
31814
31815 2002-01-05  Jim Meyering  <meyering@lucent.com>
31816
31817         * lib/version-etc.c (version_etc_copyright): Update copyright year.
31818
31819 2001-12-19  Paul Eggert  <eggert@twinsun.com>
31820
31821         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
31822         not silently exit merely because the output buffer happens to
31823         have nothing pending.
31824
31825 2001-12-18  Paul Eggert  <eggert@twinsun.com>
31826
31827         See the big note in ../ChangeLog.
31828         * lib/human.c (suffixes): Prefer K to k for 1024.
31829         (generate_suffix_backwards): New function.
31830         (human_readable_inexact): Use it.
31831         * lib/xstrtol.c (__xstrtol): If there is no number but there
31832         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
31833         Accept 'K' as well as 'k'.
31834
31835 2001-12-15  Jim Meyering  <meyering@lucent.com>
31836
31837         * lib/regex.h (__restrict_arr): Update from libc.
31838
31839         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
31840         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
31841         (STREQ): Define.
31842
31843 2001-12-14  Jim Meyering  <meyering@lucent.com>
31844
31845         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
31846         Suggestion from Bruno Haible.
31847
31848 2001-12-10  Jim Meyering  <meyering@lucent.com>
31849
31850         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
31851         xrealloc, Instead, include "xalloc.h".
31852         (initbuffer): Don't cast xmalloc return value to char*.
31853         (readline): Reword comment.
31854         Don't cast xrealloc return value to char*
31855         Return NULL, not 0.
31856
31857 2001-12-09  Jim Meyering  <meyering@lucent.com>
31858
31859         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
31860         about `signed and unsigned type in conditional expression'.
31861         * lib/posixtm.c (posix_time_parse): Likewise.
31862
31863         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
31864
31865         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
31866         to avoid a pedantic warning.
31867
31868         * lib/getstr.c: Don't include assert.h.
31869         (getstr): Remove warning-evoking assertions.
31870         Return -1 if offset parameter is out of bounds.
31871         Change the type of a local from int to size_t.
31872
31873         * lib/strftime.c (my_strftime_localtime_r): Include this function
31874         definition in the `#if ! HAVE_TM_GMTOFF' block.
31875
31876         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
31877         Include xalloc.h instead.
31878
31879 2001-12-02  Jim Meyering  <meyering@lucent.com>
31880
31881         * lib/tempname.c: Don't declare getenv, thus reverting the change of
31882         2001-11-18.  It's no longer necessary, now that stdlib.h is always
31883         included.
31884
31885         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
31886         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
31887
31888 2001-11-30  Akim Demaille  <akim@epita.fr>
31889
31890         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
31891         before being defined.
31892
31893 2001-11-27  Paul Eggert  <eggert@twinsun.com>
31894
31895         * lib/quotearg.h (quotearg_n, quotearg_n_style):
31896         First arg is int, not unsigned.
31897         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
31898         (SIZE_MAX, UINT_MAX): New macros.
31899         (quotearg_n_options): Abort if N is negative.
31900         Avoid overflow check on hosts where size_t is 64 bits and int
31901         is 32 bits, as overflow is impossible there.
31902         Fix off-by-one typo that caused unnecessary reallocation.
31903
31904 2001-11-27  Jim Meyering  <meyering@lucent.com>
31905
31906         * lib/tempname.c: Merge with version from libc.
31907         * lib/regex.c: Likewise.
31908
31909         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
31910         systems for which STDC_HEADERS is 0, it was not included, resulting in
31911         a warning about an integer-to-pointer conversion problem with getenv.
31912         Reported by Volker Borchert.
31913
31914 2001-11-26  Jim Meyering  <meyering@lucent.com>
31915
31916         * lib/gtod.h: Remove file.
31917         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
31918         * lib/gettimeofday.c: Don't include gtod.h.
31919         (GTOD_init): Remove function.
31920         (rpl_gettimeofday): Do its job here instead, rather than aborting.
31921         Suggestion from Volker Borchert.
31922
31923 2001-11-23  Jim Meyering  <meyering@lucent.com>
31924
31925         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
31926         it.
31927         * lib/hash.c (struct hash_table): Define it here instead.
31928
31929 2001-11-22  Jim Meyering  <meyering@lucent.com>
31930
31931         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
31932
31933 2001-11-20  Jim Meyering  <meyering@lucent.com>
31934
31935         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
31936         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
31937
31938 2001-11-19  Jim Meyering  <meyering@lucent.com>
31939
31940         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
31941         directory.  Use "conftestXXXXXX" as the template.
31942         Suggestion from Paul Eggert.
31943
31944         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
31945         immediately, so the test doesn't mistakenly hit the max-open-files
31946         limit.
31947
31948 2001-11-18  Paul Eggert  <eggert@twinsun.com>
31949
31950         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
31951         (TEMPORARIES): New macro.
31952         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
31953         removes an artificial limitation (e.g. HP-UX 10.20, where
31954         TMP_MAX is 17576).
31955
31956 2001-11-18  Jim Meyering  <meyering@lucent.com>
31957
31958         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
31959
31960 2001-11-18  Jim Meyering  <meyering@lucent.com>
31961
31962         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
31963         on SunOS 4.
31964
31965         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
31966         files will be created before anything else.
31967
31968 2001-11-17  Paul Eggert  <eggert@twinsun.com>
31969
31970         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
31971         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
31972
31973 2001-11-17  Jim Meyering  <meyering@lucent.com>
31974
31975         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
31976         Prompted by a report from Bob Proulx.
31977
31978         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
31979         Instead, require UTILS_FUNC_MKSTEMP.
31980
31981 2001-11-17  Jim Meyering  <meyering@lucent.com>
31982
31983         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
31984         Now, that's done as part of AC_FUNC_STRTOD.
31985
31986 2001-11-17  Jim Meyering  <meyering@lucent.com>
31987
31988         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
31989         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
31990         rather than group writable.  Patch by Juan F. Codagnone.
31991
31992         * lib/readtokens.c: Remove explicit declarations of xmalloc and
31993         xrealloc, Instead, include "xalloc.h".
31994
31995         * lib/mountlist.c: Include unlocked-io.h after all system headers.
31996         Remove explicit declarations of xmalloc, xrealloc,
31997         and xstrdup.  Instead, include "xalloc.h".
31998
31999         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
32000         unlocked-io.h.
32001         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
32002         Likewise.
32003         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
32004
32005         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
32006         Reported by Padraig Brady.
32007
32008         * lib/mkstemp.c: #undef mkstemp.
32009         Include config.h.
32010         (rpl_mkstemp): Rename from mkstemp.
32011         Protoize.
32012
32013 2001-11-16  Jim Meyering  <meyering@lucent.com>
32014
32015         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
32016         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
32017         determine the amount of total physical memory, use pstat_getstatic.
32018         HPUX-11 doesn't define _SC_PHYS_PAGES.
32019         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
32020         If sysconf couldn't be used to determine the amount of available
32021         physical memory, use both pstat_getstatic and pstat_getdynamic.
32022         Based on a patch from Bob Proulx.
32023
32024 2001-11-10  Jim Meyering  <meyering@lucent.com>
32025
32026         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
32027         (jm_PREREQ): Use it.
32028
32029 2001-11-09  Jim Meyering  <meyering@lucent.com>
32030
32031         * m4/jm-macros.m4: Require autoconf-2.52f.
32032         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
32033         Use these AC_-prefixed names, not the AM_-prefixed ones.
32034
32035         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
32036
32037 2001-11-05  Jim Meyering  <meyering@lucent.com>
32038
32039         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
32040
32041 2001-11-04  Jim Meyering  <meyering@lucent.com>
32042
32043         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
32044         $DEFS.
32045
32046 2001-11-03  Jim Meyering  <meyering@lucent.com>
32047
32048         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
32049         of AC_DEFUN.
32050
32051         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
32052         know the name of the variable in the macro definition.
32053
32054 2001-11-03  Jim Meyering  <meyering@lucent.com>
32055
32056         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
32057         in argmatch_to_argument call.
32058
32059         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
32060         argument.
32061
32062         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
32063         e.g., a fault due to an attempt to free a NULL pointer.
32064
32065 2001-11-01  Jim Meyering  <meyering@lucent.com>
32066
32067         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
32068         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
32069
32070 2001-11-01  Jim Meyering  <meyering@lucent.com>
32071
32072         * lib/dirfd.c, lib/dirfd.h: New files.
32073         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
32074
32075         * lib/hash.c (hash_print) [TESTING]: Clean up.
32076
32077 2001-10-22  Paul Eggert  <eggert@twinsun.com>
32078
32079         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
32080         to avoid a warning if -Wall.
32081
32082 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
32083
32084         * README: New file
32085         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
32086         (per RMS's instructions, this is now the canonical source)
32087         * lgpl/, gpl/: New directories.
32088
32089 2001-10-21  Paul Eggert  <eggert@twinsun.com>
32090
32091         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
32092
32093 2001-10-21  Jim Meyering  <meyering@lucent.com>
32094
32095         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
32096         this code would end up calling gettext even in packages built
32097         with --disable-nls.
32098         * lib/getopt.c (_): Likewise.
32099         * lib/regex.c (_): Likewise.
32100
32101 2001-10-20  Paul Eggert  <eggert@twinsun.com>
32102
32103         * m4/error.m4 (jm_PREREQ_ERROR):
32104         Do not invoke AC_CHECK_FUNCS with strerror_r, as
32105         AC_FUNC_STRERROR_R does that.
32106         Check for strerror declaration.
32107
32108         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
32109         are supposed to have them these days.
32110         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
32111         Merge changes from latest Autoconf CVS.
32112         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
32113         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
32114         POSIX decided to standardize on the int flavor of strerror_r.
32115
32116 2001-10-20  Paul Eggert  <eggert@twinsun.com>
32117
32118         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
32119         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
32120         Use strerror_r that is only a macro, even if it is not a function.
32121         (strerror): Check for HAVE_DECL_STRERROR before declaring.
32122         (private_strerror): Use prototypes, not old-style function definition.
32123         (print_errno_message): New function.
32124         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
32125         char*-flavored one.
32126         (error_tail, error, error_at_line): Use it.
32127
32128 2001-10-11  Jim Meyering  <meyering@lucent.com>
32129
32130         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
32131         and quote_n (1, ... to avoid clobbering a buffer.
32132
32133 2001-10-05  Jim Meyering  <meyering@lucent.com>
32134
32135         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
32136         hash-pjw.h.
32137         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
32138         * lib/hash-pjw.h: New file.
32139
32140 2001-09-30  Jim Meyering  <meyering@lucent.com>
32141
32142         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
32143         `struct fsstat' has the `f_fstypename' member.
32144         Use that to define FS_TYPE, which is now used to make
32145         the getfsstat link test tighter.
32146
32147 2001-09-30  Jim Meyering  <meyering@lucent.com>
32148
32149         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
32150         Include <sys/ucred.h>, for Apple Darwin.
32151         Include sys/mount.h and sys/fs_types.h only if available.
32152         (FS_TYPE): Define.
32153         (read_filesystem_list): Use FS_TYPE.
32154
32155 2001-09-29  Paul Eggert  <eggert@twinsun.com>
32156
32157         * lib/exclude.c (excluded_filename): 0 -> false, since it's
32158         a boolean context.
32159
32160 2001-09-29  Jim Meyering  <meyering@lucent.com>
32161
32162         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
32163         [one-argument getmntent function]): Include stdio.h before mntent.h.
32164         SunOS 4.1.x needs it for the declaration of `FILE'.
32165         Patch by Volker Borchert.
32166
32167         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
32168         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
32169         sys/fs_types.h, and make the link-test for getfsstat guard #include
32170         directives with appropriate #if HAVE_*_H tests so that we can
32171         detect getfsstat on Apple Darwin1.3.7 systems.
32172         Reported by Nelson Beebe.
32173         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
32174
32175 2001-09-28  Paul Eggert  <eggert@twinsun.com>
32176
32177         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
32178         #defines strtoimax.  Also treat the other strto* functions
32179         like strtoimax.
32180
32181         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
32182         Check for strtoul and strtoumax,
32183         as those declarations are made even in the signed case.
32184         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
32185         Likewise, for strtol and strtoimax.
32186
32187 2001-09-28  Paul Eggert  <eggert@twinsun.com>
32188
32189         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
32190         #defines strtoimax.  Also treat the other strto* functions
32191         like strtoimax.
32192
32193         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
32194         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
32195         (strtoimax, strtoumax): Do not declare if already defined as a macro.
32196
32197 2001-09-26  Jim Meyering  <meyering@lucent.com>
32198
32199         Most macros in unlocked-io.h had the wrong number of arguments.
32200         * lib/gen-uio: New script.
32201         (USE_UNLOCKED_IO): Define to 1 if not already defined.
32202         * lib/unlocked-io.hin: Remove file.
32203         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
32204         rather than trying to embed it here.
32205         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
32206         Reported by Padraig Brady.
32207
32208 2001-09-25  Volker Borchert  <bt@teknon.de>
32209
32210         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
32211         `result'.
32212
32213 2001-09-24  Jim Meyering  <meyering@lucent.com>
32214
32215         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
32216
32217 2001-09-23  Jim Meyering  <meyering@lucent.com>
32218
32219         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
32220         instead of the mere test for existence of mntent.h.  The latter
32221         would get a false-positive on AIX 3.4 systems.
32222         In the outer getmntent if-block, don't die if neither of the getmntent
32223         tests succeeds.  Instead, just fall through and continue with the
32224         remaining tests.
32225
32226 2001-09-23  Jim Meyering  <meyering@lucent.com>
32227
32228         * lib/mountlist.c: Remove useless parentheses in #if directives.
32229         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
32230         the deprecated MOUNTED symbol is no longer defined in mntent.h.
32231
32232 2001-09-22  Jim Meyering  <meyering@lucent.com>
32233
32234         * m4/gettext.m4: New file.  From gettext.
32235         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
32236         * m4/progtest.m4: Likewise
32237         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
32238         * m4/glibc21.m4: Likewise.
32239
32240         * m4/libintl.m4: Remove.  No longer used.
32241
32242 2001-09-22  Jim Meyering  <meyering@lucent.com>
32243
32244         * lib/localcharset.c: Update from latest gettext.
32245         * lib/config.charset: Likewise.
32246
32247 2001-09-20  Jim Meyering  <meyering@lucent.com>
32248
32249         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
32250         strtoimax.
32251         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
32252         strtoumax.
32253
32254 2001-09-20  Jim Meyering  <meyering@lucent.com>
32255
32256         * lib/xstrtol.c (strtoimax): Guard declaration with
32257         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
32258         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
32259         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
32260         (strtoumax): Likewise, for completeness (it wasn't necessary).
32261
32262 2001-09-17  Paul Eggert  <eggert@twinsun.com>
32263
32264         * lib/strtoimax.c (HAVE_LONG_LONG):
32265         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
32266         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
32267         to work around bug in IBM C compiler.
32268
32269 2001-09-17  Jim Meyering  <meyering@lucent.com>
32270
32271         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
32272         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
32273         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
32274         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
32275         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
32276         whenever the right hand side need not be expanded by the shell.
32277
32278 2001-09-16  Paul Eggert  <eggert@twinsun.com>
32279
32280         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
32281         library.  It's not correct, as some older glibcs are buggy.
32282         fnmatch wasn't fixed until glibc 2.2.
32283
32284         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
32285         special shell magic here.
32286
32287 2001-09-16  Jim Meyering  <meyering@lucent.com>
32288
32289         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
32290         * m4/jm-macros.m4: Require it.
32291
32292 2001-09-16  Jim Meyering  <meyering@lucent.com>
32293
32294         * lib/mkdir.c: New file.
32295
32296 2001-09-15  Jim Meyering  <meyering@lucent.com>
32297
32298         * m4/jm-macros.m4: Check for help2man.
32299
32300 2001-09-11  Jim Meyering  <meyering@lucent.com>
32301
32302         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
32303         The body, by Paul Eggert, was moved here from configure.in.
32304         * m4/jm-macros.m4: Require UTILS_HOST_OS.
32305
32306 2001-09-04  Paul Eggert  <eggert@twinsun.com>
32307
32308         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
32309         (jm_PREREQ): Use it.
32310
32311 2001-09-04  Paul Eggert  <eggert@twinsun.com>
32312
32313         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
32314         Use ssize_t, not int, to store result of readlink.
32315         Check for ssize_t overflow as well as size_t overflow,
32316         as POSIX says the result of readlink is implementation-defined
32317         when ssize_t overflows.
32318         Remove unnecessary cast to char*.
32319         Use free+malloc instead of realloc, as the storage doesn't need
32320         to be preserved and it's clearer and can be more efficient that way.
32321         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
32322         * lib/xreadlink.h (xreadlink): Update prototype.
32323
32324 2001-09-04  Paul Eggert  <eggert@twinsun.com>
32325
32326         * lib/xgetcwd.c: Revert some of the previous change; intead,
32327         fix the HAVE_GETCWD_NULL code to behave more like the
32328         !HAVE_GETCWD_NULL code used to.
32329
32330         Include "xalloc.h".
32331         (xgetcwd): Do not return NULL when memory is exhausted; instead,
32332         invoke xalloc_die.
32333
32334 2001-09-03  Paul Eggert  <eggert@twinsun.com>
32335
32336         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
32337         sys/param.h, as pathmax.h includes them.
32338
32339 2001-09-03  Paul Eggert  <eggert@twinsun.com>
32340
32341         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
32342         (jm_PREREQ_XGETCWD): New macro.
32343
32344         * m4/getcwd.m4: New file.
32345
32346 2001-09-03  Paul Eggert  <eggert@twinsun.com>
32347
32348         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
32349         like the HAVE_GETCWD_NULL code.
32350         Include pathmax.h if not HAVE_GETCWD.
32351         Do not include xalloc.h.
32352         (INITIAL_BUFFER_SIZE): New symbol.
32353         Do not use xmalloc / xrealloc, since the caller is responsible for
32354         handling errors.  Preserve errno around `free' during failure.
32355         Do not overrun buffer when using getwd.
32356
32357 2001-09-03  Paul Eggert  <eggert@twinsun.com>
32358
32359         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
32360         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
32361         getcwd (NULL, 0).
32362
32363 2001-09-03  Paul Eggert  <eggert@twinsun.com>
32364
32365         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
32366         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
32367         spotted by Jim Meyering.
32368
32369 2001-09-03  Jim Meyering  <meyering@lucent.com>
32370
32371         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
32372         failure.
32373
32374 2001-09-02  Jim Meyering  <meyering@lucent.com>
32375
32376         * lib/error.c: Update from GNU libc.
32377
32378 2001-09-01  Jim Meyering  <meyering@lucent.com>
32379
32380         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
32381         Used by df.
32382
32383 2001-09-01  Jim Meyering  <meyering@lucent.com>
32384
32385         * lib/xreadlink.c: New file.
32386         * lib/xreadlink.h: New file.
32387         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
32388         xreadlink.h.
32389
32390         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
32391         doesn't conflict with sparc Solaris 7's definition in
32392         /usr/include/sys/int_types.h.
32393
32394         * lib/exclude.c: Use `""', not `<>' to #include non-system header
32395         files.
32396         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
32397         and strncasecmp as r-values.  Unixware didn't have declarations.
32398
32399 2001-08-31  Paul Eggert  <eggert@twinsun.com>
32400
32401         * lib/xstrtol.h: Add copyright notice.
32402         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
32403         LONGINT_INVALID_SUFFIX_CHAR.
32404
32405 2001-08-31  Paul Eggert  <eggert@twinsun.com>
32406
32407         * lib/xstrtol.c (strtoimax): New decl.
32408
32409 2001-08-31  Paul Eggert  <eggert@twinsun.com>
32410
32411         * lib/xgetcwd.c: Don't include pathmax.h.
32412         Include stdlib.h and unistd.h if available.
32413         Include xalloc.h.
32414         (xmalloc, xstrdup, free): Remove decls.
32415         (xgetcwd): Don't assume sizes fit in unsigned.
32416         Check for overflow when computing sizes.
32417         Simplify reallocation code.
32418
32419 2001-08-31  Paul Eggert  <eggert@twinsun.com>
32420
32421         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
32422         a directory's st_size can have an arbitrary value, so the old
32423         usage could waste an arbitrary amount of memory.  All uses
32424         changed.
32425         * lib/savedir.h: Update prototype.
32426
32427 2001-08-31  Paul Eggert  <eggert@twinsun.com>
32428
32429         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
32430
32431         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
32432         old strtoimax.c.
32433
32434         Also, make the following further changes to make this file's
32435         configuration more similar to that of strtol.c:
32436         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
32437         (strtoumax, uintmax_t, strtoull, strtol): Remove.
32438         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
32439         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
32440         changed to signed values.
32441
32442         And make the following changes as well:
32443         Fix copyright notice, as 1999 was missing.
32444         (verify): New macro.
32445         (strtoimax): Check sizes at compile-time, not run-time.
32446         Prefer strtol to strtoll if both work.
32447         (main): Remove; it was not that useful and was a pain to maintain.
32448
32449         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
32450
32451 2001-08-31  Jim Meyering  <meyering@lucent.com>
32452
32453         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
32454         Use an initial, malloc'd, buffer of length 128 rather than
32455         a statically allocated one of length 1024.
32456
32457 2001-08-30  Paul Eggert  <eggert@twinsun.com>
32458
32459         Simplify code, partly by assuming autoconf 2.52 semantics.
32460
32461         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
32462
32463         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
32464         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
32465         All uses removed.
32466         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
32467         Move AC_REQUIRE to next-to-top level, to avoid confusion.
32468         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
32469         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
32470         jm_AC_HEADER_INTTYPES_H.
32471         * m4/jm-macros.m4 (jm_MACROS): Likewise.
32472
32473         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
32474
32475         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
32476         Quote first arg of AC_DEFUN.
32477         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
32478         since they are needed to parse the include file even if we need
32479         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
32480         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
32481         but with opposite signedness.
32482
32483 2001-08-30  Paul Eggert  <eggert@twinsun.com>
32484
32485         Merge 'exclude' changes from tar 1.13.22.
32486         This fixes one or two unlikely storage allocation overflow bugs,
32487         but doesn't change user-visible behavior otherwise.
32488
32489 2001-08-30  Paul Eggert  <eggert@twinsun.com>
32490
32491         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
32492         (jm_PREREQ_EXCLUDE): New macro.
32493
32494 2001-08-30  Paul Eggert  <eggert@twinsun.com>
32495
32496         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
32497         tm to be declared.
32498
32499 2001-08-30  Paul Eggert  <eggert@twinsun.com>
32500
32501         * lib/hash.c: Remove '2001' from copyright notice.
32502
32503 2001-08-30  Paul Eggert  <eggert@twinsun.com>
32504
32505         * lib/full-write.h: New file.
32506         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
32507         * lib/full-write.c: Correct credits, as cccp.c no longer
32508         exists and anyway it was so heavily changed from the old cccp
32509         code as to be unrecognizable.  Include full-write.h.
32510         (full_write) Return size_t, with short writes meaning failure.
32511         All callers changed.  This fixes a bug with large buffers
32512         on 64-bit hosts.
32513         * lib/utime.c: Include full-write.h.
32514
32515 2001-08-30  Paul Eggert  <eggert@twinsun.com>
32516
32517         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
32518         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
32519         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
32520         Include if available.
32521         (<xalloc.h>): Include
32522         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
32523         (verify): New macro.  Use it to verify that EXCLUDE macros do not
32524         collide with FNM macros.
32525         (struct patopts): New struct.
32526         (struct exclude): Use it, as exclude patterns now come with options.
32527         (new_exclude): Support above changes.
32528         (new_exclude, add_exclude_file):
32529         Initial size must now be a power of two to simplify overflow checking.
32530         (free_exclude, fnmatch_no_wildcards): New function.
32531         (excluded_filename): No longer requires options arg, as the options
32532         are determined by add_exclude.  Now returns bool, not int.
32533         (excluded_filename, add_exclude):
32534         Add support for the fancy new exclusion options.
32535         (add_exclude, add_exclude_file): Now takes int options arg.
32536         Check for arithmetic overflow when computing sizes.
32537         (add_exclude_file): xrealloc might modify errno, so don't
32538         realloc until after errno might be used.
32539
32540         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
32541         New macros.
32542         (free_exclude): New decl.
32543         (add_exclude, add_exclude_file): Now takes int options arg.
32544         (excluded_filename): No longer requires options arg, as the options
32545         are determined by add_exclude.  Now returns bool, not int.
32546
32547 2001-08-30  Paul Eggert  <eggert@twinsun.com>
32548
32549         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
32550
32551 2001-08-27  Jim Meyering  <meyering@lucent.com>
32552
32553         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
32554
32555         * lib/version-etc.c (N_): Remove definition.
32556         Revert most of last change.
32557         Instead, simply don't mark the `Copyright...' string for translation.
32558         Based on advice from Paul Eggert.
32559
32560         * lib/strtoxmax.c: Tweak comment.
32561
32562 2001-08-26  Jim Meyering  <meyering@lucent.com>
32563
32564         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
32565
32566         * m4/xstrtoimax.m4: New file.
32567         * m4/xstrtoumax.m4: Add comments explaining why we
32568         AC_REPLACE_FUNCS(strtol).
32569
32570 2001-08-26  Jim Meyering  <meyering@lucent.com>
32571
32572         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
32573         of copyright with `%s' so translators don't get an untranslated
32574         message in 2002.
32575         (COPYRIGHT_YEAR): Define.
32576         (version_etc): Use fprintf rather than fputs.
32577         Suggestion from Ulrich Drepper.
32578
32579         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
32580
32581         * lib/strtoll.c: New file, from GNU libc.
32582         * lib/xstrtoimax.c: New file.
32583
32584         * lib/xstrtol.h: Add xstrtoimax.
32585         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
32586         * lib/strtoimax.c: New file.  Likewise, but first define
32587         STRTOUXMAX_SIGNED.
32588
32589         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
32590         ...
32591         * lib/strtoxmax.c: ... then renamed to this.
32592
32593 2001-08-18  Paul Eggert  <eggert@twinsun.com>
32594
32595         * m4/inttypes.m4: Add AC_PREREQ(2.13).
32596         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
32597         (jm_AC_TYPE_INTMAX_T): New macro.
32598         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
32599
32600         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
32601
32602         * m4/longlong.m4: Renamed from ulonglong.m4.
32603         * m4/inttypes.m4: Renamed from inttypes_h.m4.
32604         * m4/uintmax_t.m4: Removed.
32605
32606 2001-08-13  Paul Eggert  <eggert@twinsun.com>
32607
32608         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
32609         Port to Solaris 8, where 'sed' requires a space after the 'r'
32610         command, and where sh dislikes "$/".  Clean up the spacing a bit.
32611         Redirect output to $tmp just once.
32612
32613 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
32614
32615         * lib/addext.c (<errno.h>): Include.
32616         (errno): Declare if not defined.
32617         (addext): Work correctly when pathconf returns -1 and leaves
32618         errno alone because there is no limit.  Also, work even if
32619         pathconf returns a value greater than SIZE_MAX.
32620
32621 2001-08-12  Jim Meyering  <meyering@lucent.com>
32622
32623         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
32624         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
32625         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
32626         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
32627         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
32628         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
32629         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
32630         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
32631         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
32632         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
32633         utime.m4, utimes.m4, xstrtoumax.m4:
32634         Quote the first argument in each use of AC_DEFUN.
32635
32636 2001-08-12  Jim Meyering  <meyering@lucent.com>
32637
32638         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
32639         Simply `return getcwd (NULL, 0);'.
32640         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
32641         Use 1300 as initial value for length, not PATH_MAX.
32642
32643         * lib/pathmax.h: Clean up cpp syntax.
32644
32645 2001-08-12  Jim Meyering  <meyering@lucent.com>
32646
32647         * lib/gettimeofday.c: New file.
32648         * lib/gtod.h: New file.
32649         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
32650
32651 2001-08-05  Jim Meyering  <meyering@lucent.com>
32652
32653         * m4/jm-macros.m4: Require autoconf-2.52.
32654
32655 2001-08-04  Jim Meyering  <meyering@lucent.com>
32656
32657         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
32658         stmt, to get in sync with glibc.
32659
32660 2001-08-03  Paul Eggert  <eggert@twinsun.com>
32661
32662         The following changes are from gettext 0.10.39 as maintained by
32663         Bruno Haible.
32664
32665         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
32666         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
32667         with inverted sense.  All uses changed.
32668
32669         * lib/mbswidth.c: Don't include <limits.h>.
32670         Include <stdlib.h> and <string.h> unconditionally.
32671         (iswcntrl, mbsinit, ISCNTRL): New macros.
32672         (mbsnwidth): Use K&R style function declarations.
32673         Don't bother checking for MB_LEN_MAX == 1, since the compiler
32674         can optimize it when MB_CUR_MAX == 1.
32675         The width of control characters is zero, not 1.
32676
32677 2001-08-03  Paul Eggert  <eggert@twinsun.com>
32678
32679         The following changes are from gettext 0.10.39 as maintained by
32680         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
32681
32682         * m4/codeset.m4: Upgrade to serial AM1.
32683         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
32684         all uses changed.  Quote first arg of AC_DEFUN.
32685         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
32686
32687         * m4/iconv.m4: Upgrade to serial AM2.
32688         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
32689         Add --with-libconv-prefix.
32690         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
32691         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
32692         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
32693         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
32694         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
32695
32696         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
32697         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
32698         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
32699         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
32700         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
32701         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
32702         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
32703         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
32704         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
32705
32706         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
32707         string.h any more.
32708
32709         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
32710         not the default value.
32711
32712         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
32713         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
32714         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
32715         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
32716         Also check for iswcntrl, used for wcwidth fallback.
32717         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
32718         to Autoconf 2.13.
32719
32720 2001-08-03  Jim Meyering  <meyering@lucent.com>
32721
32722         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
32723         as it was in the original.  Reported by Paul Eggert.
32724
32725 2001-07-16  Jim Meyering  <meyering@lucent.com>
32726
32727         * m4/gettimeofday.m4: New file.
32728         Prompted by a report from Bernhard Baehr.
32729
32730 2001-07-15  Jim Meyering  <meyering@lucent.com>
32731
32732         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
32733         stuff. Now it's in ../Makefile.cfg.
32734
32735 2001-07-15  Jim Meyering  <meyering@lucent.com>
32736
32737         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
32738         (BUILT_SOURCES): Add unlocked-io.h.
32739         (io_functions): Define.
32740         (unlocked-io.h): New rule.
32741         (DISTCLEANFILES): Add unlocked-io.h.
32742         (all-local): Depend on unlocked-io.h, to ensure it is created.
32743
32744         * lib/unlocked-io.hin: New file
32745
32746         * lib/regex.c: Update from glibc.
32747
32748 2001-07-05  Jim Meyering  <meyering@lucent.com>
32749
32750         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
32751         recommendation.
32752         (libfetish_a_SOURCES): Put all .h files here instead.
32753         Remove a thus-exposed (better checks in automake) duplicate and
32754         two unnecessary .h files.
32755
32756 2001-07-04  Jim Meyering  <meyering@lucent.com>
32757
32758         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
32759         that generates jm-glibc-io.m4 so that it doesn't trigger any make
32760         distcheck failure.
32761
32762 2001-07-02  Jim Meyering  <meyering@lucent.com>
32763
32764         The following changes were prompted by suggestions from Bruno Haible.
32765
32766         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
32767         is now generated.
32768         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
32769         definition of EXTRA_DIST.
32770         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
32771         ensure that the generated file is created/updated whenever the list
32772         of $(unlocked_functions) is changed.
32773         (jm-glibc-io.m4): New rule.
32774         (unlocked-io.h): New rule -- currently unused.
32775
32776 2001-06-24  Jim Meyering  <meyering@lucent.com>
32777
32778         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
32779         unmatched right bracket, rather than kludging it with an extra,
32780         falsely-matching quote in a comment.  Patch by Akim Demaille.
32781
32782 2001-06-11  Jim Meyering  <meyering@lucent.com>
32783
32784         * lib/regex.c: Update from GNU libc.
32785
32786 2001-05-27  Jim Meyering  <meyering@lucent.com>
32787
32788         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
32789         Check for ut_type in struct utmp.
32790
32791 2001-05-27  Jim Meyering  <meyering@lucent.com>
32792
32793         * lib/readutmp.h (UT_TYPE): Define.
32794
32795 2001-05-24  Jim Meyering  <meyering@lucent.com>
32796
32797         * lib/argmatch.c: Include "quote.h".
32798         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
32799         quote function.  Reported by Göran Uddeborg.
32800
32801 2001-05-22  Jim Meyering  <meyering@lucent.com>
32802
32803         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
32804         now that we use the package-supplied version unconditionally.
32805         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
32806
32807 2001-05-21  Jim Meyering  <meyering@lucent.com>
32808
32809         * m4/regex.m4: Change a couple backticks to single quotes to avoid
32810         shell syntax errors.
32811
32812 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
32813
32814         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
32815
32816 2001-05-20  Paul Eggert  <eggert@twinsun.com>
32817
32818         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
32819         Don't bother to check library strftime, since
32820         we'll be using our own my_strftime function anyway.
32821         Define my_strftime instead of strftime.
32822
32823 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
32824
32825         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
32826         which is not yet declared.
32827
32828 2001-05-15  Jim Meyering  <meyering@lucent.com>
32829
32830         * m4/regex.m4: Use proper quoting so brackets appear in the test
32831         program.
32832         Reported by, and with help from, Bruno Haible.
32833
32834 2001-05-13  Jim Meyering  <meyering@lucent.com>
32835
32836         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
32837         undefined.
32838
32839 2001-05-11  Paul Eggert  <eggert@twinsun.com>
32840
32841         dirname code cleanup.  base_name now behaves more compatibly
32842         with POSIX basename when given file names that have trailing
32843         slashes, and similarly for dir_name.  Add new primitives
32844         base_len and dir_len.  Put the directory-name-related decls
32845         into dirname.h.
32846
32847         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
32848         * lib/backupfile.c (base_name): Likewise.
32849         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
32850         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
32851         * lib/makepath.c (strip_trailing_slashes): Likewise.
32852         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
32853         ISSLASH): Likewise.
32854         * lib/rename.c (strip_trailing_slashes): Likewise.
32855         * lib/same.c (base_name): Likewise.
32856         * lib/stripslash.c (ISSLASH): Likewise.
32857
32858         * lib/addext.c: Include <dirname.h> after size_t is defined.
32859         * lib/backupfile.c: Likewise.
32860
32861         * lib/addext.c (addext): Use base_len to trim redundant
32862         trailing slashes instead of doing it ourselves.
32863         But do not trim the last slash if it is not redundant.
32864
32865         * lib/backupfile.c (find_backup_file_name,
32866         max_backup_version): Use base_len instead of rolling it ourselves.
32867         Handle the case of "" and (on DOS) "C:" correctly.
32868
32869         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
32870         needed. Include <string.h>, <dirname.h>.
32871         (base_name): Allow file names ending in slashes, other than names
32872         that are all slashes.  In this case, return the basename followed
32873         by the slashes.  This is more general, and can be used in places
32874         where the original base_name purposely had an assertion failure.
32875         (base_len): New function.
32876
32877         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
32878         Do not include <assert.h>; no longer needed.
32879         Include xalloc.h.
32880         (memrchr): Remove decl.
32881         (dir_name_r): Remove.
32882         (dir_len): Renamed from dirlen.  All callers changed.
32883         Rewrite in terms of base_name, for simplicity and consistency.
32884         (dir_name): Never return NULL.  All callers changed.
32885         Do not include <stdlib.h> in test program; no longer needed.
32886         return 0; is fine for test program.
32887
32888         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
32889         New macros.
32890         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
32891
32892         * lib/path-concat.c (path_concat): Use base_len to compute
32893         base length, not strlen; this means we cannot rely on memcpy
32894         to null-terminate.
32895
32896         * lib/same.c (STREQ): Remove.
32897         (same_name): Handle the case where the basename ends in trailing '/'.
32898
32899         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
32900         a slash was stripped.  Do not strip the last slash after a
32901         file system prefix.
32902
32903 2001-05-11  Paul Eggert  <eggert@twinsun.com>
32904
32905         * lib/Makefile.am (libfetish_a_SOURCES):
32906         Add strftime.c, since we now compile it on all hosts.
32907
32908         * lib/strftime.c (my_strftime):
32909         Define to nstrftime if emacs, but only if my_strftime is not defined.
32910         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
32911         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
32912         Add one more extra argument: a nanoseconds value.
32913         All uses changed.
32914         (ns): New macro.
32915         (my_strftime function): Add %N format.
32916         (emacs_strftimeu): Renamed from emacs_strftime,
32917         with extra ut argument.
32918
32919 2001-05-09  Paul Eggert  <eggert@twinsun.com>
32920
32921         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
32922
32923 2001-04-21  Jim Meyering  <meyering@lucent.com>
32924
32925         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
32926         doesn't interfere.
32927
32928 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
32929
32930         * m4/ftruncate.m4: Check for chsize.
32931         Link with ftruncate.o unconditionally if ftruncate is missing.
32932         This was required when cross-compiling to i586-mingw32msvc.
32933
32934 2001-04-08  Jim Meyering  <meyering@lucent.com>
32935
32936         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
32937         recomputed; that's necessary when the offset spans a DST transition.
32938         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
32939
32940 2001-04-02  Jim Meyering  <meyering@lucent.com>
32941
32942         * lib/regex.h, regex.c: Update from GNU libc.
32943
32944 2001-03-24  Jim Meyering  <meyering@lucent.com>
32945
32946         * m4/jm-macros.m4: Require autoconf-2.49d.
32947
32948 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
32949
32950         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
32951
32952 2001-03-19  Paul Eggert  <eggert@twinsun.com>
32953
32954         * lib/version-etc.c (version_etc_copyright): Update to 2001.
32955
32956 2001-03-17  Jim Meyering  <meyering@lucent.com>
32957
32958         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
32959         now that the version in autoconf is equivalent.
32960         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
32961
32962         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
32963         Suggestion from Akim Demaille.
32964
32965         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
32966         (jm_PREREQ_TEMPNAME): New function.
32967
32968 2001-03-16  Paul Eggert  <eggert@twinsun.com>
32969
32970         * lib/tempname.c (uint64_t): Define to uintmax_t if
32971         not defined, and if UINT64_MAX is not defined.
32972         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
32973         Reported by John David Anglin.
32974
32975 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
32976
32977         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
32978         resolve alias if codeset is empty.
32979         * lib/config.charset (BeOS): Use wildcard syntax.
32980
32981 2001-03-13  Jim Meyering  <meyering@lucent.com>
32982
32983         * lib/path-concat.c (path_concat)
32984         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
32985         concatenating e.g., `C:' and `foo'.
32986         From Bruno Haible.
32987
32988 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
32989
32990         * lib/localcharset.c (locale_charset): Don't use
32991         setlocale(LC_CTYPE,NULL). Don't return NULL.
32992         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
32993
32994 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
32995
32996         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
32997         support for DOS/DJGPP.
32998
32999 2001-03-01  Paul Eggert  <eggert@twinsun.com>
33000
33001         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
33002         lacks mkstemp.  Compile our own tempname.c if we compile our own
33003         mkstemp.c, as mkstemp relies on tempname.
33004
33005 2001-03-01  Jim Meyering  <meyering@lucent.com>
33006
33007         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
33008         AH_VERBATIM really does output its argument verbatim.
33009
33010 2001-02-28  Paul Eggert  <eggert@twinsun.com>
33011
33012         * lib/Makefile.am (libfetish_a_SOURCES):
33013         Add dup-safer.c, fopen-safer.c.
33014         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
33015
33016         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
33017         * lib/unistd-safer.h: New files.
33018
33019 2001-02-25  Paul Eggert  <eggert@twinsun.com>
33020
33021         The mkstemp replacement is taken from glibc 2.2.2, with some
33022         portability fixes for use outside glibc, as follows:
33023
33024         * lib/tempname.c (struct_stat64): New macro.
33025         (direxists, __gen_tempname): Use it.
33026         This avoids a portability problem with Solaris 8.
33027
33028         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
33029         (<stddef.h>, <stdint.h>, <string.h>):
33030         Include only if STDC_HEADERS || _LIBC.
33031         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
33032         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
33033         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
33034         (__set_errno): Define this macro if <errno.h> doesn't.
33035         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
33036         Define these macros if <stdio.h> doesn't.
33037         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
33038         Define these macros if <sys/stat.h>
33039         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
33040         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
33041         __xstat64): Define if not _LIBC.
33042         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
33043         (__gen_tempname): Invoke gettimeofday only if
33044         HAVE_GETTIMEOFDAY || _LIBC;
33045         otherwise, fall back on plain "time".
33046         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
33047
33048         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
33049
33050         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
33051
33052 2001-02-18  Paul Eggert  <eggert@twinsun.com>
33053
33054         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
33055
33056 2001-02-17  Paul Eggert  <eggert@twinsun.com>
33057
33058         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
33059         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
33060         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
33061         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
33062
33063 2001-02-17  Paul Eggert  <eggert@twinsun.com>
33064
33065         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
33066         Remove workaround macros for hosts that have mbrtowc but not
33067         mbstate_t, as we now insist on proper declarations for both
33068         before using mbrtowc.
33069
33070 2001-02-17  Jim Meyering  <meyering@lucent.com>
33071
33072         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
33073         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
33074         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
33075         UnixWare 7.1.1.
33076
33077         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
33078         rather than AC_CACHE_VAL.
33079
33080 2001-02-17  Jim Meyering  <meyering@lucent.com>
33081
33082         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
33083         around included file name.
33084
33085         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
33086
33087         * lib/strftime.c: Update from GNU libc (the only changes were to
33088         comments).
33089
33090 2001-02-17  Jim Meyering  <meyering@lucent.com>
33091
33092         * lib/regex.c: Update from libc.
33093
33094 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
33095
33096         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
33097         clash.
33098
33099 2001-02-16  Paul Eggert  <eggert@twinsun.com>
33100
33101         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
33102         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
33103         Reported by Mark Hounschell via Paul Eggert.
33104
33105 2001-02-07  Jim Meyering  <meyering@lucent.com>
33106
33107         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
33108
33109 2001-02-05  Jim Meyering  <meyering@lucent.com>
33110
33111         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
33112         it includes the patch required for `large file' support with at least
33113         HP-UX's 10.20 /bin/cc.
33114
33115 2001-02-03  Jim Meyering  <meyering@lucent.com>
33116
33117         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
33118         AS_IF, now that it works once again (mysteriously).
33119         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
33120
33121 2001-01-30  Jim Meyering  <meyering@lucent.com>
33122
33123         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
33124         * m4/chown.m4: Rename conftestchown to conftest.chown.
33125         * m4/rename.m4: s/conftestdir/conftest.d1/ and
33126         s/conftestdir2/conftest.d2/.
33127         * m4/utimes.m4: s/conftestdata/conftest.data/
33128         Inspired by Pavel Roskin's change in autoconf.
33129
33130 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
33131
33132         * lib/config.charset: Update for FreeBSD 4.2.
33133
33134 2001-01-27  Jim Meyering  <meyering@lucent.com>
33135
33136         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
33137         a use of AS_IF.
33138         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
33139
33140 2001-01-26  Jim Meyering  <meyering@lucent.com>
33141
33142         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
33143         quotearg.c includes it.
33144
33145 2001-01-26  Jim Meyering  <meyering@lucent.com>
33146
33147         * lib/quotearg.c: Include stddef.h.
33148         * lib/quote.c: Include stddef.h.
33149         Reported by Axel Kittenberger.
33150
33151         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
33152         line in double quotes so that it evokes a better diagnostic.
33153         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
33154         Reported by Axel Kittenberger.
33155
33156 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
33157
33158         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
33159         as if it was a `charset'.
33160
33161 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
33162
33163         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
33164         has const.
33165
33166 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
33167
33168         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
33169         to avoid a warning.  Add back 'const' to inptr.
33170
33171 2001-01-20  Jim Meyering  <meyering@lucent.com>
33172
33173         Be sure that headers are checked before used in code compiled
33174         for the type checks.
33175         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
33176         In place of that, invoke jm_CHECK_ALL_TYPES.
33177         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
33178         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
33179         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
33180         The check for ssize_t was mistakenly run before the test for unistd.h.
33181
33182         The configure-time check for stdbool.h was missing.
33183         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
33184         (jm_PREREQ_HASH): New function.
33185
33186 2001-01-17  Jim Meyering  <meyering@lucent.com>
33187
33188         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
33189         for autoconf-2.49c.
33190         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
33191
33192 2001-01-16  Jim Meyering  <meyering@lucent.com>
33193
33194         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
33195         From Bruno Haible.
33196
33197 2001-01-14  Jim Meyering  <meyering@lucent.com>
33198
33199         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
33200         foo and bar.  Create conftestdir/ in the script, not in the C code.
33201         Remove directories in the script, not in the C code.
33202         Remove conftestdir{,2} before trying to create the directory.
33203         Make the entire configure script fail if the mkdir fails.
33204
33205 2001-01-14  Jim Meyering  <meyering@lucent.com>
33206
33207         * lib/rename.c: New file.  From Volker Borchert.
33208         Include stdlib.h, string.h or strings.h, and xalloc.h.
33209         Use strip_trailing_slashes rather than open-coding it.
33210
33211 2001-01-03  Paul Eggert  <eggert@twinsun.com>
33212
33213         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
33214
33215 2001-01-03  Jim Meyering  <meyering@lucent.com>
33216
33217         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
33218         of local `inptr' to avoid warning with some system declarations of
33219         iconv.
33220
33221 2001-01-02  Volker Borchert  <bt@teknon.de>
33222
33223         * m4/rename.m4: New file.
33224         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
33225
33226 2001-01-01  Jim Meyering  <meyering@lucent.com>
33227
33228         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
33229         even on systems with utmpx.h.  It's necessary for the declaration of
33230         utmp's ut_user member.  Reported by Andreas Jaeger.
33231
33232         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
33233         available. They are required for the declarations of getgrgid and
33234         getpwuid resp.
33235         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
33236         Reported by Andreas Jaeger.
33237
33238 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
33239
33240         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
33241         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
33242         so `make install' also works in VPATH builds.
33243
33244 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
33245
33246         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
33247         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
33248         can be used in subdirectories.
33249
33250 2000-12-29  Paul Eggert  <eggert@twinsun.com>
33251
33252         * lib/modechange.c: Do not assume that mode_t uses the
33253         traditional octal encoding.  E.g. "chmod 1 FOO" should set
33254         the other-execute bit of FOO even if S_IXOTH != 1.
33255
33256         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
33257         WOTH, XOTH, ALLM): New macros.
33258         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
33259          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
33260         Use them.
33261         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
33262         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
33263         (mode_compile):
33264         No need to use uintmax_t; unsigned long is long enough.
33265         Don't bother to get suffix since we don't use it.
33266
33267 2000-12-26  Jim Meyering  <meyering@lucent.com>
33268
33269         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
33270         better with autoheader.
33271
33272 2000-12-24  Jim Meyering  <meyering@lucent.com>
33273
33274         * lib/hash.c (is_prime): Return explicit boolean values.
33275         (hash_get_first): Return NULL to appease Irix5.6's 89.
33276         Reported by Nelson Beebe.
33277
33278 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
33279
33280         * lib/localcharset.c (locale_charset): Add support for Win32.
33281
33282 2000-12-18  Paul Eggert  <eggert@twinsun.com>
33283
33284         * lib/physmem.h, lib/physmem.c: New files.
33285
33286         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
33287         (noinst_HEADERS): Add physmem.h.
33288
33289         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
33290         't' for compatibility with Solaris 8 sort.
33291
33292 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
33293
33294         * lib/config.charset: Add support for BeOS.
33295
33296 2000-12-17  Jim Meyering  <meyering@lucent.com>
33297
33298         * m4/dos.m4 (jm_AC_DOS): New file and macro.
33299         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
33300
33301 2000-12-16  Jim Meyering  <meyering@lucent.com>
33302
33303         This bug had a serious impact on chown: `chown N:M FILE' (for integer
33304         N and M) would have treated it like `chown N:N FILE'.
33305
33306         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
33307
33308 2000-12-16  Jim Meyering  <meyering@lucent.com>
33309
33310         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
33311         SHELLS_FILE to a file name that's useful on djgpp systems.
33312         Include stdlib.h.
33313         (ADDITIONAL_DEFAULT_SHELLS): Define.
33314         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
33315         Based mostly on a patch from Prashant TR.
33316
33317 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
33318
33319         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
33320         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
33321         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
33322
33323 2000-12-08  Andreas Schwab  <schwab@suse.de>
33324
33325         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
33326         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
33327
33328 2000-12-07  Jim Meyering  <meyering@lucent.com>
33329
33330         * lib/stripslash.c (ISSLASH): Define.
33331         (strip_trailing_slashes): Use ISSLASH rather than comparing against
33332         `/'.
33333         From Prashant TR.
33334
33335         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
33336         (dir_name_r): Declare this function as static.
33337         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
33338         manifest itself on a name containing a mix of slashes and
33339         backslashes.
33340         Make this function work with names starting with a DOS-style
33341         drive letter and colon prefix.
33342         (dir_name): Append `.' if necessary.
33343         Based mostly on patches from Prashant TR and Eli Zaretskii.
33344
33345         * lib/dirname.h (dir_name_r): Remove prototype.
33346
33347 2000-12-06  Paul Eggert  <eggert@twinsun.com>
33348
33349         * m4/off_t-format.m4: Remove this file.
33350         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
33351
33352 2000-12-06  Jim Meyering  <meyering@lucent.com>
33353
33354         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
33355         replacement strtoull, we may well need the replacement strtoul, too.
33356         Check for declarations of strtoul and strtoull.
33357         Check for strtol.  Mainly as a cue to cause automake to include
33358         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
33359         Check for limits.h -- strtol.c needs it.
33360
33361 2000-12-05  Jim Meyering  <meyering@lucent.com>
33362
33363         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
33364
33365 2000-12-04  Jim Meyering  <meyering@lucent.com>
33366
33367         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
33368         Also include memory.h, stdlib.h, unistd.h if appropriate.
33369         Reported by Andreas Jaeger (conflicting declaration of malloc).
33370
33371 2000-12-02  Jim Meyering  <meyering@lucent.com>
33372
33373         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
33374         * m4/jm-macros.m4 (jm_MACROS): require it.
33375
33376 2000-12-02  Jim Meyering  <meyering@lucent.com>
33377
33378         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
33379
33380 2000-12-01  Paul Eggert  <eggert@twinsun.com>
33381
33382         * lib/memrchr.c: Include <config.h> before any system include file.
33383
33384 2000-11-30  Jim Meyering  <meyering@lucent.com>
33385
33386         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
33387
33388 2000-11-30  Jim Meyering  <meyering@lucent.com>
33389
33390         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
33391
33392 2000-11-29  Paul Eggert  <eggert@twinsun.com>
33393
33394         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
33395
33396 2000-11-26  Jim Meyering  <meyering@lucent.com>
33397
33398         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
33399
33400 2000-11-22  Paul Eggert  <eggert@twinsun.com>
33401
33402         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
33403         size of (size_t) -1; it's not portable.
33404
33405 2000-11-17  Jim Meyering  <meyering@lucent.com>
33406
33407         * lib/strstr.c: Update from GNU libc.
33408
33409 2000-11-17  Akim Demaille  <akim@epita.fr>
33410
33411         * lib/obstack.h: Formatting changes.
33412         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
33413         prevent type checking.
33414         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
33415         cast the value to (void *): assigning a `foo *' to a `void *'
33416         variable is valid.
33417         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
33418
33419 2000-11-16  Jim Meyering  <meyering@lucent.com>
33420
33421         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
33422
33423 2000-11-11  Jim Meyering  <meyering@lucent.com>
33424
33425         * lib/error.c: Add a couple #includes, merging from GNU libc version.
33426
33427 2000-11-10  Jim Meyering  <meyering@lucent.com>
33428
33429         * lib/obstack.h: Update from GNU libc.
33430         * lib/obstack.c: Likewise.
33431
33432 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
33433
33434         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
33435
33436 2000-11-06  Paul Eggert  <eggert@twinsun.com>
33437
33438         * lib/getusershell.c (setusershell): Use rewind rather than
33439         fseek/fseeko, to avoid configuration hassles with fseeko.
33440         Don't bother opening SHELLS_FILE if shellstream is NULL;
33441         it's not necessary.
33442
33443 2000-11-05  Jim Meyering  <meyering@lucent.com>
33444
33445         * lib/makepath.h (make_dir): Declare.
33446         * lib/makepath.c (make_dir): Remove `static' attribute.
33447         Tweak a comment.
33448
33449 2000-11-04  Jim Meyering  <meyering@lucent.com>
33450
33451         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
33452
33453 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
33454
33455         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
33456         last one in a bucket, advance to the next bucket.
33457
33458 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
33459
33460         * lib/fnmatch.c: Do not comment out all the code if we are using
33461         the GNU C library, because in some cases we are replacing buggy
33462         code in the GNU C library itself.
33463
33464 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
33465
33466         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
33467         (regex_compile): Catch bogus \(\1\).
33468
33469 2000-10-30  Paul Eggert  <eggert@twinsun.com>
33470
33471         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
33472         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
33473         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
33474
33475 2000-10-30  Paul Eggert  <eggert@twinsun.com>
33476
33477         * lib/error.h, getline.h, modechange.h:
33478         Remove "2000" from Copyright line, as the file hasn't been
33479         changed this year other than in the copyright notice.
33480
33481         * lib/xalloc.h: Add "2000" to Copyright line, as this file
33482         was changed this year.
33483
33484 2000-10-29  Jim Meyering  <meyering@lucent.com>
33485
33486         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
33487         renaming.
33488         * m4/ls-mntd-fs.m4: Likewise
33489
33490 2000-10-29  Jim Meyering  <meyering@lucent.com>
33491
33492         * lib/xstat.in: Fix grammar in comment.
33493
33494 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
33495
33496         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
33497         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
33498         doesn't define __restrict_arr.
33499
33500 2000-10-28  Jim Meyering  <meyering@lucent.com>
33501
33502         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
33503         (jm_PREREQ_MEMCHR): New function.
33504
33505 2000-10-28  Jim Meyering  <meyering@lucent.com>
33506
33507         * lib/memchr.c: Update from libc.
33508         Adjust for portability:
33509         [HAVE_STDLIB_H]: Include stdlib.h.
33510         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
33511         Undef __memchr, too.
33512         [!weak_alias]: Define __memchr to memchr.
33513
33514         * lib/regex.c: Update from libc.
33515         * lib/regex.h: Likewise.
33516         * lib/getopt1.c: Likewise.
33517         * lib/memcmp.c: Likewise.
33518
33519         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
33520         Avoid using fseek, when possible -- it's broken by design.
33521         Patch by Ulrich Drepper.
33522
33523 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
33524
33525         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
33526         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
33527         Giving in to popular pressure to shut up the compiler with casts.
33528
33529 2000-10-26  Jim Meyering  <meyering@lucent.com>
33530
33531         * lib/strftime.c: Update from libc.
33532
33533 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
33534
33535         * regex.c: More `unsigned char' -> `re_char' changes.
33536         Also change several `int' into `re_wchar_t'.
33537         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
33538         (PUSH_FAILURE_POINTER): Don't cast any more.
33539         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
33540         We want GCC to complain, since this piece of code makes
33541         re_match non-reentrant, which *should* be fixed.
33542         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
33543         (EXTEND_BUFFER): Use RETALLOC.
33544         (SET_LIST_BIT): Don't cast.
33545         (re_wchar_t): New type.
33546         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
33547         that those two functions will always properly return.
33548         (IMMEDIATE_QUIT_CHECK): Cast to void.
33549         (analyse_first): Use recursion rather than an explicit stack.
33550         (re_compile_fastmap): Can't fail anymore.
33551         (re_search_2): Don't check re_compile_fastmap for failure.
33552         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
33553         Now also sets the new value (passed in a new argument).
33554         (re_match_2_internal): Use it.
33555         Also, use a new var `reg' of type size_t when looping through regs
33556         rather than reuse the inappropriate `mcnt'.
33557
33558 2000-10-25  Jim Meyering  <meyering@lucent.com>
33559
33560         * lib/obstack.c: Update from libc.
33561
33562 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
33563
33564         * regex.c (regex_compile): Change the way of handling a range from
33565         a char less than 256 to a char not less than 256.
33566
33567 2000-10-24  Andrew Innes  <andrewi@gnu.org>
33568
33569         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
33570         NT-Emacs only.
33571         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
33572         so that re_search functions only quit when callers expect them to.
33573
33574 2000-10-23  Jim Meyering  <meyering@lucent.com>
33575
33576         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
33577         wrong.  That set_locale call must not have any side effects.
33578         From Paul Eggert.
33579
33580 2000-10-22  Jim Meyering  <meyering@lucent.com>
33581
33582         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
33583         [CYCLIC]: Remove now-unused definition.
33584
33585         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
33586         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
33587         Suggestion from Ulrich Drepper.
33588
33589 2000-10-21  Jim Meyering  <meyering@lucent.com>
33590
33591         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
33592         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
33593         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
33594
33595 2000-10-21  Jim Meyering  <meyering@lucent.com>
33596
33597         * lib/dirname.c (memrchr): Declare if necessary.
33598         (dir_name): Remove the restriction that there be no
33599         trailing slashes.  Now, this code skips past them, effectively
33600         ignoring them.
33601         [TEST_DIRNAME] (main): New unit tests.
33602
33603         * lib/memrchr.c: New file from GNU libc.
33604         Undef __memrchr, too.
33605         [!weak_alias]: Define __memrchr to memrchr.
33606         Guard weak_alias use with `#ifdef weak_alias'.
33607
33608 2000-10-21  Jim Meyering  <meyering@lucent.com>
33609
33610         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
33611         (dir_name): Use dir_name_r.
33612         * lib/dirname.h (dir_name_r): Declare it.
33613
33614 2000-10-17  Jim Meyering  <meyering@lucent.com>
33615
33616         * lib/quote.h (PARAMS): Define and use.
33617         Reported by Akim Demaille.
33618
33619         * lib/getopt.c: Update from libc.
33620
33621 2000-10-16  Jim Meyering  <meyering@lucent.com>
33622
33623         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
33624         setlocale.
33625         From Jan Fedak.
33626
33627 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
33628
33629         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
33630
33631 2000-09-25  Jim Meyering  <meyering@lucent.com>
33632
33633         * lib/md5.h (rol): Define (from GnuPG).
33634
33635         * lib/sha.c: Give credit (GnuPG) where due.
33636         (M): Use rol rather than open-coding it.
33637         Add a FIXME comment.
33638
33639 2000-09-21  Jim Meyering  <meyering@lucent.com>
33640
33641         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
33642         Reported by Michael Stone.
33643
33644 2000-09-20  Jim Meyering  <meyering@lucent.com>
33645
33646         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
33647         (noinst_HEADERS): Add sha.h.
33648         Based on code from Scott G. Miller and from GnuPG.
33649
33650 2000-09-18  Jim Meyering  <meyering@lucent.com>
33651
33652         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
33653         LIBS. Otherwise, everyone ends up linking with -lelf for some
33654         configurations.
33655         Reported by Mike Stone.
33656
33657 2000-09-15  Jim Meyering  <meyering@lucent.com>
33658
33659         * lib/regex.c: Update from libc.
33660
33661 2000-09-10  Jim Meyering  <meyering@lucent.com>
33662
33663         * lib/getopt.c (_getopt_internal): Update from glibc.
33664
33665 2000-09-09  Jim Meyering  <meyering@lucent.com>
33666
33667         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
33668         think it should be used as a general replacement for isascii.
33669         * lib/fnmatch.c: Likewise.
33670         * lib/mbswidth.c: Likewise
33671         * lib/regex.c: Likewise.
33672
33673         Don't use atoi.
33674         * lib/userspec.c: Include sys/param.h and limits.h.
33675         Include xstrtol.h.
33676         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
33677         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
33678         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
33679         UID, GID.  Check range.
33680
33681 2000-09-06  Jim Meyering  <meyering@lucent.com>
33682
33683         * lib/getopt.c (_getopt_internal): Update from glibc.
33684
33685 2000-08-30  Jim Meyering  <meyering@lucent.com>
33686
33687         * lib/strftime.c: Merge in changes from GNU libc.
33688
33689 2000-08-26  Jim Meyering  <meyering@lucent.com>
33690
33691         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
33692         * m4/fpending.m4: New file.
33693
33694 2000-08-26  Jim Meyering  <meyering@lucent.com>
33695
33696         * lib/closeout.c: Include "__fpending.h".
33697         (close_stdout_status): Return right away if there's nothing to flush.
33698
33699         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
33700         * lib/__fpending.c: New file.
33701         * lib/__fpending.h: New file.
33702
33703 2000-08-20  Jim Meyering  <meyering@lucent.com>
33704
33705         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
33706         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
33707         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
33708
33709 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
33710
33711         Improve fileutils installation on systems where running
33712         programs (like install) can't be unlinked.
33713         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
33714         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
33715
33716 2000-08-07  Paul Eggert  <eggert@twinsun.com>
33717
33718         Standardize on "memory exhausted" instead of "Memory exhausted"
33719         or "virtual memory exhausted".
33720         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
33721         "virtual memory exhausted".
33722         * lib/same.c (same_name): Invoke xalloc_die instead of printing
33723         our own message.
33724         * lib/userspec.c (parse_user_spec): Likewise.
33725         * lib/bumpalloc.h: comment fix
33726         * lib/same.c, userspec.c: Include xalloc.h.
33727
33728         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
33729         not char *const and pointing to a constant array.
33730         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
33731         (xrealloc): Comment fix.
33732
33733         * lib/userspec.c (parse_user_spec):
33734         Don't translate a message until just before returning,
33735         to avoid unnecessary translation.
33736
33737 2000-08-07  Jim Meyering  <meyering@lucent.com>
33738
33739         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
33740         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
33741         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
33742         getgroups.c, gethostname.c, getopt.h, group-member.c,
33743         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
33744         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
33745         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
33746         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
33747         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
33748         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
33749         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
33750         yesno.c: Back out Copyright date changes for each file with no change
33751         this year.  This eases coordination with other programs using the same
33752         source code modules.  From Paul Eggert.
33753
33754 2000-08-06  Paul Eggert  <eggert@twinsun.com>
33755
33756         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
33757         not char, for compatibility with glibc 2.1.3 strftime.c.
33758
33759 2000-08-03  Greg McGary  <greg@mcgary.org>
33760
33761         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
33762         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
33763         (EXTEND_BUFFER): Use them.
33764
33765 2000-08-01  Jim Meyering  <meyering@lucent.com>
33766
33767         * lib/dirname.c (ISSLASH): Define.
33768         (BACKSLASH_IS_PATH_SEPARATOR): Define.
33769         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
33770         both `\' and `/' may be use as path separators.
33771         Based on a patch from Prashant TR.
33772
33773 2000-07-31  Paul Eggert  <eggert@twinsun.com>
33774
33775         * lib/quotearg.c (quotearg_n_options): Don't make the initial
33776         slot vector a constant, since it might get modified.
33777
33778 2000-07-31  Jim Meyering  <meyering@lucent.com>
33779
33780         * lib/xmalloc.c: Use `virtual memory exhausted', not
33781         `Memory exhausted'.
33782         * lib/obstack.c (print_and_abort): Likewise.
33783
33784 2000-07-30  Paul Eggert  <eggert@twinsun.com>
33785
33786         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
33787         buffer, so that the caller can always quote one small
33788         component of a "memory exhausted" message in slot 0.
33789         From a suggestion by Jim Meyering.
33790
33791 2000-07-30  Jim Meyering  <meyering@lucent.com>
33792
33793         * lib/makepath.c (make_path): Quote the other instance, too.
33794
33795         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
33796         (STATIC_BUF_SIZE): Define.
33797         (quotearg_n_options): Use only statically allocated storage when
33798         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
33799         than STATIC_BUF_SIZE.
33800
33801 2000-07-29  Jim Meyering  <meyering@lucent.com>
33802
33803         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
33804         * lib/dirname.c (dir_name): Likewise.
33805
33806         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
33807         `/'.
33808
33809         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
33810         (dir_name): Assert that there are no trailing slashes.
33811
33812 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
33813
33814         * lib/mbswidth.h (mbswidth): Add a flags argument.
33815         (mbswidth): New declaration.
33816         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
33817         * lib/mbswidth.c (mbswidth): Add a flags argument.
33818         (mbsnwidth): New function.
33819
33820 2000-07-24  Jim Meyering  <meyering@lucent.com>
33821
33822         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
33823
33824 2000-07-23  Paul Eggert  <eggert@twinsun.com>
33825
33826         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
33827
33828 2000-07-23  Paul Eggert  <eggert@twinsun.com>
33829
33830         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
33831         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
33832         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
33833         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
33834         invoke multibyte primitives.
33835
33836 2000-07-23  Paul Eggert  <eggert@twinsun.com>
33837
33838         * lib/quotearg.c:
33839         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
33840         so that mbstate_t is always defined.
33841
33842         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
33843         be 1 in at least one GCC installation, and this configuration
33844         error is likely to be common.  Ignoring MB_LEN_MAX hurts
33845         performance on hosts that have mbrtowc but have only unibyte
33846         locales, but I assume these hosts are rare.
33847
33848 2000-07-23  Paul Eggert  <eggert@twinsun.com>
33849
33850         * lib/mbswidth.c (_XOPEN_SOURCE):
33851         Don't define; this causes problems on Solaris 7.
33852         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
33853
33854 2000-07-23  Jim Meyering  <meyering@lucent.com>
33855
33856         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
33857         too: getgrgid, getpwuid, getuid.
33858
33859 2000-07-23  Jim Meyering  <meyering@lucent.com>
33860
33861         * lib/basename.c (base_name): Add an assertion.
33862
33863 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
33864
33865         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
33866         shadow its mbsinit function.
33867
33868 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
33869
33870         * lib/mbswidth.h: New file.
33871         * lib/mbswidth.c: New file.
33872         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
33873         (noinst_HEADERS): Add mbswidth.h.
33874
33875 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
33876
33877         * lib/config.charset: Add support for FreeBSD. Improve support for
33878         HP-UX and IRIX 6.
33879
33880 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
33881
33882         * m4/mbswidth.m4: New file.
33883         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
33884
33885 2000-07-15  Jim Meyering  <meyering@lucent.com>
33886
33887         * lib/makepath.c: Include quote.h.
33888         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
33889         corresponding argument in a `quote (...)' call.
33890         Give better diagnostics.
33891
33892         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
33893         (noinst_HEADERS): Add quote.h.
33894
33895         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
33896         from tar's src/misc.c.
33897         * lib/quote.h: New file.  Prototypes for same.
33898
33899 2000-07-14  Paul Eggert  <eggert@twinsun.com>
33900
33901         From a suggestion by Bruno Haible.
33902         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
33903         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
33904         to decide whether to define the BeOS workaround macro;
33905         this adjusts to the change to AC_MBSTATE_T.
33906
33907 2000-07-14  Jim Meyering  <meyering@lucent.com>
33908
33909         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
33910         jm_AC_TYPE_UINTMAX_T.
33911
33912 2000-07-13  Paul Eggert  <eggert@twinsun.com>
33913
33914         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
33915
33916         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
33917         quotearg_buffer_restyled): Add support for
33918         clocale_quoting_style.  Undo previous change to
33919         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
33920         and "{RIGHT QUOTATION MARK}" msgids.
33921
33922 2000-07-10  Paul Eggert  <eggert@twinsun.com>
33923
33924         From a suggestion by Bruno Haible.
33925         * m4/mbstate_t.m4 (AC_MBSTATE_T):
33926         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
33927         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
33928         and mbstate_t, to a single-part test that simply defines mbstate_t.
33929         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
33930         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
33931
33932 2000-07-10  Jim Meyering  <meyering@lucent.com>
33933
33934         * m4/strerror_r.m4: Mirror the correction made in autoconf.
33935
33936         * m4/gnu-source.m4: Output to confdefs.h directly.
33937         Suggestion from Akim Demaille.
33938
33939 2000-07-09  Paul Eggert  <eggert@twinsun.com>
33940
33941         The old behavior of quoting `like this' doesn't look good with
33942         newer, ISO-style fonts.  See:
33943         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
33944
33945         Instead, quote "like this" by default.  Let the translator
33946         tailor the locale-specific quoting behavior by providing
33947         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
33948
33949         * lib/quotearg.c (N_): New macro.
33950         (gettext_default): New function.
33951         (quotearg_buffer_restyled): Use
33952         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
33953         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
33954
33955 2000-07-09  Jim Meyering  <meyering@lucent.com>
33956
33957         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
33958         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
33959
33960         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
33961         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
33962
33963 2000-07-09  Jim Meyering  <meyering@lucent.com>
33964
33965         * lib/Most files: Update copyright dates to include 2000.
33966
33967 2000-07-08  Jim Meyering  <meyering@lucent.com>
33968
33969         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
33970         if not defined.
33971         (xgethostname): Remove now-unnecessary #ifdef.
33972         Move declaration of `err' into loop where it's used.
33973
33974 2000-07-05  Paul Eggert  <eggert@twinsun.com>
33975         and Bruno Haible  <haible@clisp.cons.org>
33976
33977         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
33978         only if the test for an object-type mbstate_t fails.  This
33979         prevents us from mistakenly reporting that mbstate_t is a
33980         system object type after we "#define mbstate_t int" to work
33981         around its lack.
33982
33983 2000-07-05  Paul Eggert  <eggert@twinsun.com>
33984         and Bruno Haible  <haible@clisp.cons.org>
33985
33986         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
33987
33988 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
33989
33990         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
33991         to strerror_r.
33992         Include <ctype.h> for use of isalpha.
33993
33994 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
33995
33996         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
33997         by allocating a larger buffer. Test the gethostname return value for
33998         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
33999         returns an error and ENAMETOOLONG isn't defined.
34000
34001 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
34002
34003         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
34004         dimension.
34005
34006 2000-07-04  Jim Meyering  <meyering@lucent.com>
34007
34008         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
34009         of the deprecated AC_CHECKING.
34010
34011 2000-07-04  Jim Meyering  <meyering@lucent.com>
34012
34013         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
34014         Reported by Bruno Haible.
34015
34016 2000-07-04  Jim Meyering  <meyering@lucent.com>
34017
34018         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
34019         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
34020         lacks mbrtowc.
34021
34022 2000-07-03  Paul Eggert  <eggert@twinsun.com>
34023
34024         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
34025         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
34026
34027 2000-07-03  Paul Eggert  <eggert@twinsun.com>
34028         and Bruno Haible  <haible@clisp.cons.org>
34029
34030         * lib/quotearg.c (mbrtowc):
34031         Assign to *pwc, and return 1 only if result is nonzero.
34032         (iswprint): Use ISPRINT when substituting our own mbrtowc.
34033
34034 2000-07-03  Jim Meyering  <meyering@lucent.com>
34035
34036         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
34037
34038 2000-07-03  Jim Meyering  <meyering@lucent.com>
34039
34040         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
34041         This is necessary to get a definition of e.g., UTMP_FILE on
34042         HP-UX 10.20.
34043         From Bob Proulx.
34044
34045 2000-07-02  Jim Meyering  <meyering@lucent.com>
34046
34047         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
34048
34049         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
34050         AC_LIBOBJ(function_name).
34051         * m4/chown.m4: Likewise.
34052         * m4/fnmatch.m4: Likewise.
34053         * m4/ftruncate.m4: Likewise.
34054         * m4/getgroups.m4: Likewise.
34055         * m4/getline.m4: Likewise.
34056         * m4/group-member.m4: Likewise.
34057         * m4/jm-macros.m4: Likewise.
34058         * m4/lstat.m4: Likewise.
34059         * m4/malloc.m4: Likewise.
34060         * m4/memcmp.m4: Likewise.
34061         * m4/nanosleep.m4: Likewise.
34062         * m4/putenv.m4: Likewise.
34063         * m4/realloc.m4: Likewise.
34064         * m4/regex.m4: Likewise.
34065         * m4/stat.m4: Likewise.
34066         * m4/strftime.m4: Likewise.
34067
34068 2000-07-02  Jim Meyering  <meyering@lucent.com>
34069
34070         * lib/quotearg.c (mbstate_t): Don't define here.
34071
34072 2000-07-02  Jim Meyering  <meyering@lucent.com>
34073
34074         * lib/nanosleep.c (SIGCONT): Define if not already defined.
34075
34076 2000-07-01  Jim Meyering  <meyering@lucent.com>
34077
34078         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
34079
34080 2000-07-01  Jim Meyering  <meyering@lucent.com>
34081
34082         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
34083         problem.
34084
34085 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
34086
34087         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
34088         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
34089
34090 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
34091
34092         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
34093         per change in ../m4/ls-mntd-fs.m4.
34094         (read_filesystem_list): Ignore symbolic links.
34095
34096 2000-06-29  Jim Meyering  <meyering@lucent.com>
34097
34098         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
34099         for declaration of strcmp.
34100
34101         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
34102
34103         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
34104         Avoid warning by casting result to `char *' to remove `const'.
34105
34106 2000-06-28  Jim Meyering  <meyering@lucent.com>
34107
34108         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
34109         included by quotearg.c, for which we perform this test.  From
34110         Bruno Haible.
34111
34112 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
34113
34114         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
34115         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
34116         <utmpx.h> exists, put readutmp.o into LIBOBJS.
34117
34118 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
34119
34120         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
34121
34122 2000-06-26  Paul Eggert  <eggert@twinsun.com>
34123
34124         savedir now sets errno on failure and invokes xmalloc to get memory.
34125         Fix a couple of other minor bugs while we're at it.
34126
34127         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
34128         (NAMLEN): Remove macro.
34129         (malloc, realloc): Remove decls.
34130         (stpcpy): Likewise.
34131         ("xalloc.h"): Include.
34132         (NAME_SIZE_DEFAULT): New macro.
34133         (savedir): Use xmalloc / xrealloc to allocate memory.
34134         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
34135         Skip "" directory entries.
34136         Use strlen to calculate directory entry length, since the old method
34137         is rarely used these days and isn't worth supporting.
34138         Don't use a pointer after freeing it.
34139         Check for integer overflow when calculating allocation size.
34140         Use memcpy to copy entries, instead of stpcpy.
34141         Set errno properly when returning NULL.
34142         Check for readdir error.
34143
34144 2000-06-26  Jim Meyering  <meyering@lucent.com>
34145
34146         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
34147
34148 2000-06-25  Jim Meyering  <meyering@lucent.com>
34149
34150         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
34151         Linux header bug when _XOPEN_SOURCE is defined to 500.
34152
34153 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
34154
34155         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
34156         deficiency.
34157
34158 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
34159
34160         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
34161         Include xalloc.h.
34162         Don't include <stdlib.h>.  Don't declare malloc, realloc.
34163
34164 2000-06-24  Jim Meyering  <meyering@lucent.com>
34165
34166         * m4/strerror_r.m4: Revive this file -- to try out an experimental
34167         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
34168         for which strerror does return char*, but which lacks a conveniently
34169         accessible declaration of the function.  If the compile-test says
34170         strerror_r doesn't work, then resort to a `run'-test that works on
34171         BeOS and segfaults on DEC Unix.
34172
34173 2000-06-24  Jim Meyering  <meyering@lucent.com>
34174
34175         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
34176
34177 2000-06-23  Paul Eggert  <eggert@twinsun.com>
34178
34179         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
34180         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
34181
34182 2000-06-23  Paul Eggert  <eggert@twinsun.com>
34183
34184         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
34185         (mbrtowc, mbstate_t): Define substitutes if
34186         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
34187         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
34188         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
34189
34190 2000-06-23  Jim Meyering  <meyering@lucent.com>
34191
34192         * m4/afs.m4: Add missing AC_MSG_RESULT.
34193         Reported by Bruno Haible.
34194
34195         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
34196         Suggestion from Bruno Haible.
34197
34198 2000-06-23  Jim Meyering  <meyering@lucent.com>
34199
34200         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
34201
34202 2000-06-21  Jim Meyering  <meyering@lucent.com>
34203
34204         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
34205
34206 2000-06-21  Jim Meyering  <meyering@lucent.com>
34207
34208         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
34209         (noinst_HEADERS): Add getstr.h.
34210
34211         * lib/getline.c (getstr): Move into a separate file.
34212         * lib/getstr.c (getstr): New file, extracted from getline.c, with
34213         the following changes: new parameter, delim2; both delim[12]
34214         parameters have type `int', not `char'.  The latter would lose
34215         with 8-bit delimiters.
34216         * lib/getstr.h: New file.
34217
34218 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
34219
34220         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
34221         than 1024, return a memory chunk of least possible size, instead
34222         of size PATH_MAX + 2. In the loop, increment the size proportionally.
34223         Use free/xmalloc instead of xrealloc to avoid copying for very long
34224         paths.
34225
34226 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
34227
34228         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
34229         the empty string.
34230
34231 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
34232
34233         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
34234         address, not strdup.  Include <stdlib.h> and don't declare free().
34235
34236 2000-06-19  Jim Meyering  <meyering@lucent.com>
34237
34238         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
34239
34240 2000-06-18  Jim Meyering  <meyering@lucent.com>
34241
34242         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
34243
34244         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
34245         `checking whether...' message to be consistent with that of the
34246         lstat test.
34247
34248 2000-06-18  Jim Meyering  <meyering@lucent.com>
34249
34250         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
34251         Besides, these days every porting target provides a mkdir function.
34252
34253         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
34254         needed. (this snippet comes from src/system.h).
34255
34256 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
34257
34258         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
34259
34260 2000-06-15  Paul Eggert  <eggert@twinsun.com>
34261
34262         * lib/human.c (adjust_value): New function.
34263         (human_readable_inexact): Apply rounding style even when
34264         printing approximate values.
34265
34266 2000-06-14  Paul Eggert  <eggert@twinsun.com>
34267
34268         * lib/human.c (human_readable_inexact): Allow an input block
34269         size that is not a multiple of the output block size, and vice versa.
34270         Reported by Piergiorgio Sartor.
34271
34272 2000-06-14  Paul Eggert  <eggert@twinsun.com>
34273
34274         * lib/getdate.y (get_date): Apply relative times after time
34275         zone indicator, not before.  Reported by Todd A. Jacobs.
34276
34277 2000-06-13  Jim Meyering  <meyering@lucent.com>
34278
34279         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
34280
34281         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
34282
34283 2000-06-12  Paul Eggert  <eggert@twinsun.com>
34284
34285         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
34286
34287 2000-06-12  Jim Meyering  <meyering@lucent.com>
34288
34289         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
34290         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
34291         optional argument.
34292         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
34293         the optional argument, `lib'.
34294
34295 2000-06-08  Jim Meyering  <meyering@lucent.com>
34296
34297         * m4/largefile.m4: Remove file (now that it's part of autoconf).
34298
34299 2000-06-04  Paul Eggert  <eggert@twinsun.com>
34300
34301         Rewrite largefile configuration so that we don't need to run
34302         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
34303         AC_CANONICAL_HOST in configure.in -- jmm]
34304
34305         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
34306         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
34307         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
34308         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
34309         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
34310         All uses changed.
34311         Instead of inspecting the output of getconf, try to compile the
34312         test program without and with the macro definition.
34313         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
34314         for getconf.  Instead, check for the needed flags by compiling
34315         test programs.
34316
34317 2000-06-04  Paul Eggert  <eggert@twinsun.com>
34318
34319         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
34320
34321 2000-06-04  Jim Meyering  <meyering@lucent.com>
34322
34323         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
34324         SunOS 4.1.4 for which gid_t is an unsigned type.
34325
34326 2000-06-03  Jim Meyering  <meyering@lucent.com>
34327
34328         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
34329         now that autoconf requires that.
34330
34331         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
34332         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
34333         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
34334
34335 2000-06-03  Jim Meyering  <meyering@lucent.com>
34336
34337         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
34338
34339 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
34340
34341         * m4/glibc21.m4: New file.
34342         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
34343
34344 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
34345
34346         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
34347         newer, don't install charset.alias.
34348         * lib/config.charset: Change the Linux/glibc rules so they become empty
34349         on glibc-2.1 or newer.
34350
34351 2000-06-02  Jim Meyering  <meyering@lucent.com>
34352
34353         * lib/mountlist.c: Back out last change.  Instead, do this...
34354         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
34355         me_dummy member using the same `ignore'-testing code.
34356         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
34357         fs_type strings.
34358         From Mark D. Roth.
34359
34360 2000-05-29  Jim Meyering  <meyering@lucent.com>
34361
34362         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
34363         mounts with the `ignore' attribute.  Based on a patch from
34364         Mark D. Roth.
34365
34366 2000-05-28  Jim Meyering  <meyering@lucent.com>
34367
34368         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
34369         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
34370         * m4/stat.m4: Likewise.
34371         * m4/lstat.m4: Likewise.
34372         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
34373
34374         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
34375         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
34376
34377 2000-05-26  Jim Meyering  <meyering@lucent.com>
34378
34379         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
34380
34381 2000-05-24  Jim Meyering  <meyering@lucent.com>
34382
34383         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
34384         autoconf requires that.
34385         * m4/lib-check.m4: Likewise.
34386         * m4/jm-macros.m4: Likewise.
34387         * m4/strftime.m4: Likewise.
34388
34389         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
34390         AC_CHECK_DECLS, now that autoconf requires that.
34391
34392 2000-05-22  Jim Meyering  <meyering@lucent.com>
34393
34394         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
34395         * m4/lstat.m4: Likewise.
34396
34397 2000-05-22  Jim Meyering  <meyering@lucent.com>
34398
34399         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
34400
34401 2000-05-20  Jim Meyering  <meyering@lucent.com>
34402
34403         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
34404         (jm_PREREQ): Use it.
34405
34406 2000-05-18  Jim Meyering  <meyering@lucent.com>
34407
34408         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
34409         back, too, since it may have been modified by allocate_entry.
34410         (hash_delete): Rewrite to use neither the assignment operator
34411         nor the comma operator in an if-expression.
34412
34413 2000-05-15  Paul Eggert  <eggert@twinsun.com>
34414
34415         * lib/closeout.c:
34416         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
34417         Remove; no longer needed.
34418         "quotearg.h": Add include.
34419         (file_name): Do not bother to explicitly initialize to NULL; it's less
34420         efficient on some hosts.
34421         (close_stdout_status): Remove test as to whether stdout was already
34422         closed; it breaks for the case "echo x | sort >&-".
34423         Quote file name colons.
34424         Do not assume that _("write error") lacks format strings.
34425
34426 2000-05-15  Jim Meyering  <meyering@lucent.com>
34427
34428         * lib/version-etc.c (version_etc_copyright): Update the copyright
34429         string used in all --version output.
34430
34431 2000-05-14  Jim Meyering  <meyering@lucent.com>
34432
34433         * lib/closeout.c (close_stdout_set_file_name): New function.
34434         (close_stdout_status): Use new file-scoped global.
34435         Return right away if fstat says the stdout file descriptor is invalid.
34436         * lib/closeout.h (close_stdout_set_file_name): Declare.
34437
34438 2000-05-10  Jim Meyering  <meyering@lucent.com>
34439
34440         * lib/closeout.c [default_exit_status]: New file-scoped variable.
34441         (close_stdout_set_status): New function.
34442         * lib/closeout.h (close_stdout_set_status): Declare.
34443
34444 2000-05-09  Jim Meyering  <meyering@lucent.com>
34445
34446         * m4/gettext.m4: Rename this...
34447         * m4/libintl.m4: ...to this.
34448
34449 2000-05-08  Jim Meyering  <meyering@lucent.com>
34450
34451         * lib/long-options.c: Don't include closeout.h.
34452         (parse_long_options): Don't call close_stdout for --version.
34453
34454 2000-05-06  Paul Eggert  <eggert@twinsun.com>
34455
34456         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
34457         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
34458         2.1.3 bug.  This avoids a clash when files like regex.c define
34459         _GNU_SOURCE.
34460
34461 2000-05-06  Jim Meyering  <meyering@lucent.com>
34462
34463         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
34464         (AC_REPLACE_FUNCS): Add strnlen.
34465
34466         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
34467         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
34468
34469         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
34470         AC_SEARCH_LIBS call for nanosleep.
34471         (LIB_NANOSLEEP): Set and AC_SUBST.
34472
34473 2000-05-06  Jim Meyering  <meyering@lucent.com>
34474
34475         * lib/strnlen.c: Undefine __strnlen and strnlen.
34476         [!weak_alias]: Define __strnlen to strnlen.
34477
34478         * lib/atexit.c: New file, from libiberty.
34479
34480 2000-05-06  Jim Meyering  <meyering@lucent.com>
34481
34482         * lib/closeout.c (close_stdout_status): Also check for errors on the
34483         stderr stream.
34484
34485 2000-05-05  Jim Meyering  <meyering@lucent.com>
34486
34487         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
34488         AC_SEARCH_LIBS call for clock_gettime.
34489         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
34490
34491         * m4/search-libs.m4: Update from autoconf.
34492
34493         su doesn't work on Solaris 2.6.
34494         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
34495         <shadow.h>.  Reported by Dragos Harabor.
34496
34497 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
34498
34499         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
34500         memcpy instead of xmalloc, xrealloc, path_concat.
34501         (locale_charset): Treat empty environment variables as absent.
34502         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
34503
34504 2000-05-04  Jim Meyering  <meyering@lucent.com>
34505
34506         * lib/getopt.c: Update from glibc.
34507         * lib/obstack.c: Likewise.
34508         * lib/obstack.h: Likewise.
34509         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
34510         file
34511
34512         * lib/regex.h: Likewise.
34513         * lib/strndup.c: Likewise.
34514         * lib/strnlen.c: New file, from glibc.
34515
34516 2000-05-03  Jim Meyering  <meyering@lucent.com>
34517
34518         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
34519
34520 2000-05-02  Paul Eggert  <eggert@twinsun.com>
34521
34522         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
34523         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
34524         compile-time test, rather than inspecting host and OS, to
34525         decide whether to define _LARGEFILE_SOURCE.
34526
34527 2000-05-01  Jim Meyering  <meyering@lucent.com>
34528
34529         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
34530
34531         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
34532         Based on a patch from Bruno Haible.
34533
34534 2000-05-01  Jim Meyering  <meyering@lucent.com>
34535
34536         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
34537
34538 2000-04-29  Jim Meyering  <meyering@lucent.com>
34539
34540         * lib/path-concat.c: Declare strdup only if it's not defined.
34541         * lib/canon-host.c: Likewise.
34542
34543 2000-04-28  Jim Meyering  <meyering@lucent.com>
34544
34545         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
34546         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
34547         is included first, then limits.h is included by locale.h by libintl.h.
34548         From John David Anglin.
34549
34550 2000-04-25  Jim Meyering  <meyering@lucent.com>
34551
34552         * lib/makepath.c (S_IRWXUGO): Define.
34553         (make_path): Always perform explicit chmod if MODE specifies any
34554         of the `special' permission bits.  Prompted by a bug report against
34555         install from Mate Wierdl and Joost van Baal.
34556
34557 2000-04-18  Jim Meyering  <meyering@lucent.com>
34558
34559         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
34560         (jm_PREREQ): Use it.
34561
34562 2000-04-18  Jim Meyering  <meyering@lucent.com>
34563
34564         * lib/README: New file.
34565
34566         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
34567         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
34568
34569 2000-04-17  Jim Meyering  <meyering@lucent.com>
34570
34571         Get it right :-)
34572         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
34573         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
34574         Suggestion from Akim Demaille.
34575
34576 2000-04-17  Jim Meyering  <meyering@lucent.com>
34577
34578         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
34579         the definition of it to rpl_strftime also defined-away the system's
34580         declaration.
34581
34582 2000-04-15  Jim Meyering  <meyering@lucent.com>
34583
34584         Use `C' to denote so-called `contiguous' files, the same way
34585         that tar does.
34586         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
34587         (ftypelet): Use S_ISCTG.
34588         From Michael Deutschmann.
34589
34590 2000-04-14  Jim Meyering  <meyering@lucent.com>
34591
34592         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
34593         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
34594         clobbered.
34595
34596 2000-04-14  Jim Meyering  <meyering@lucent.com>
34597
34598         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
34599
34600 2000-04-13  Jim Meyering  <meyering@lucent.com>
34601
34602         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
34603         AH_VERBATIM to insert required #ifndef into config.h.in.
34604         Suggestion from Akim Demaille.
34605
34606 2000-04-12  Jim Meyering  <meyering@lucent.com>
34607
34608         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
34609         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
34610         Christian Krackowizer.
34611
34612         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
34613         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
34614         (AC_SYS_LARGEFILE): Require.
34615         (AM_C_PROTOTYPES): Require.
34616
34617 2000-04-08  Jim Meyering  <meyering@lucent.com>
34618
34619         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
34620         names don't conflict.  Reported by Eli Zaretskii.
34621
34622 2000-04-07  Jim Meyering  <meyering@lucent.com>
34623
34624         * lib/putenv.c: Move inclusion of errno.h so it follows that of
34625         sys/types.h, to work around system header problems on AIX 3.2.5.
34626         From Bruno Haible.
34627
34628 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
34629
34630         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
34631         bug.  Deal with the different error behavior of Irix iconv.
34632
34633 2000-04-05  Paul Eggert  <eggert@twinsun.com>
34634
34635         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
34636         IRIX if the installer said otherwise.
34637
34638 2000-04-05  Jim Meyering  <meyering@lucent.com>
34639
34640         Portability tweaks required for ultrix4.3.
34641         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
34642         (jm_CHECK_DECLS): Add getutent to the list of functions.
34643         (_jm_DECL_HEADERS): Add utmpx.h.
34644         From John David Anglin.
34645
34646         * m4/strftime.m4: Back out the 2000-04-02 change.
34647         Instead of that change, simply undefine putenv in the test program.
34648
34649 2000-04-05  Jim Meyering  <meyering@lucent.com>
34650
34651         Portability tweaks required for ultrix4.3.
34652         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
34653         getutent.
34654         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
34655         * lib/canon-host.c: Declare strdup.
34656         * lib/path-concat.c: Likewise.
34657         From John David Anglin.
34658
34659 2000-04-04  Jim Meyering  <meyering@lucent.com>
34660
34661         Be more DOS 8.3-friendly.
34662         * lib/ref-add.sin: Renamed from ref-add.sed.in.
34663         * lib/ref-del.sin: Renamed from ref-del.sed.in.
34664         * lib/Makefile.am: Reflect renaming.
34665         Reported by Eli Zaretskii.
34666
34667         Use a temporary file name that won't clash with `charset.alias'
34668         in the DOS 8.3 name space.
34669         * lib/Makefile.am (charset_tmp): Define.
34670         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
34671         (uninstall-local): Likewise.
34672         Reported by Eli Zaretskii.
34673
34674 2000-04-03  Jim Meyering  <meyering@lucent.com>
34675
34676         * m4/gettext.m4: Fix typo in comment.
34677
34678         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
34679         textutils/configure.in).  Suggestion from Paul Eggert.
34680         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
34681
34682 2000-04-02  Paul Eggert  <eggert@twinsun.com>
34683
34684         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
34685         variable in the shell rather than using putenv, which isn't
34686         portable.  This avoids the configure-time inter-test dependency
34687         on the potentially-renamed putenv function.
34688
34689 2000-03-30  Paul Eggert  <eggert@twinsun.com>
34690
34691         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
34692         before checking struct stat.st_blksize, so that
34693         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
34694
34695 2000-03-29  Paul Eggert  <eggert@twinsun.com>
34696
34697         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
34698         since strftime.c uses HAVE_STRFTIME to decide whether to use
34699         the underlying strftime.
34700
34701 2000-03-29  Paul Eggert  <eggert@twinsun.com>
34702
34703         * lib/time/strftime.c (my_strftime): Make sure we call the system
34704         strftime, not ourselves, when invoking the underlying strftime.
34705
34706 2000-03-24  Jim Meyering  <meyering@lucent.com>
34707
34708         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
34709         (charset_alias): Define.
34710         (install-exec-local): Factor out common code.
34711         (uninstall-local): Split lines longer than 80.
34712         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
34713         (SUFFIXES): Define.
34714         (.sed.in.sed): New rule.  Don't redirect directly to $@.
34715         (CLEANFILES): Add ref-add.sed and ref-del.sed.
34716
34717 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
34718
34719         * lib/config.charset: Output a line containing "Packages using this
34720         file".
34721         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
34722         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
34723         ref-del.sed): New rules.
34724
34725 2000-03-17  Jim Meyering  <meyering@lucent.com>
34726
34727         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
34728         Otherwise, include <strings.h>
34729
34730 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
34731
34732         * lib/unicodeio.c (utf8_wctomb): New function.
34733         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
34734         format instead of in UCS-4 with platform dependent endianness.
34735
34736 2000-03-10  Jim Meyering  <meyering@lucent.com>
34737
34738         * m4/lib-check.m4: Look for getspnam in -lgen, too.
34739         From Marco Franzen.
34740
34741 2000-03-07  Paul Eggert  <eggert@twinsun.com>
34742
34743         * lib/savedir.c (savedir): Work even if directory size is
34744         negative; this can happen with some screwy NFS configurations.
34745
34746 2000-03-06  Jim Meyering  <meyering@lucent.com>
34747
34748         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
34749         if it's NULL (because we ran out of memory).  From Bruno Haible.
34750
34751 2000-03-05  Jim Meyering  <meyering@lucent.com>
34752
34753         * lib/localcharset.c ("path-concat.h"): Include.
34754         (get_charset_aliases): Use path_concat instead of ANSI string
34755         concatenation.
34756
34757         * lib/unicodeio.h (PARAMS): Define.
34758         Use it to guard prototype.
34759
34760 2000-03-04  Jim Meyering  <meyering@lucent.com>
34761
34762         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
34763         for lib/localcharset.c.
34764
34765 2000-03-04  Jim Meyering  <meyering@lucent.com>
34766
34767         * lib/Makefile.am (install-exec-local): Create $(libdir) before
34768         installing into it.
34769         (uninstall-local): Uncomment this rule so `make distcheck' works
34770         once again.
34771
34772         * lib/unicodeio.c (<errno.h>): Include it.
34773         (errno): Declare if not defined.
34774
34775         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
34776
34777         * lib/config.charset: New version, incorporating remarks from a linux
34778         i18n mailing list.  From Bruno Haible.
34779
34780 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
34781
34782         * m4/codeset.m4: New file.
34783         * m4/iconv.m4: New file.
34784         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
34785
34786 2000-03-03  Jim Meyering  <meyering@lucent.com>
34787
34788         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
34789
34790 2000-03-02  Jim Meyering  <meyering@lucent.com>
34791
34792         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
34793         the messages come out on separate lines.
34794
34795         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
34796         rather than jm_CHECK_DECLARATIONS.
34797         * m4/decl.m4: Remove now-unused file.
34798
34799         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
34800         geteuid.
34801
34802 2000-03-02  Jim Meyering  <meyering@lucent.com>
34803
34804         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
34805
34806 2000-03-01  Jim Meyering  <meyering@lucent.com>
34807
34808         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
34809         * lib/unicodeio.c: Likewise.
34810
34811 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
34812
34813         * lib/config.charset: New file.
34814         * lib/localcharset.c: New file.
34815         * lib/unicodeio.h, lib/unicodeio.c: New files.
34816         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
34817         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
34818         (noinst_HEADERS): Add unicodeio.h.
34819         (all-local, install-exec-local, charset.alias): New targets.
34820
34821 2000-02-28  Paul Eggert  <eggert@twinsun.com>
34822
34823         * lib/quotearg.c (ALERT_CHAR): New macro.
34824         (quotearg_buffer_restyled): Use it.
34825
34826 2000-02-27  Jim Meyering  <meyering@lucent.com>
34827
34828         * m4/check-decl.m4: Add getenv to the list.
34829
34830 2000-02-27  Jim Meyering  <meyering@lucent.com>
34831
34832         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
34833         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
34834
34835         * lib/backupfile.c: Guard inclusion of stdlib.h with
34836         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
34837         Declare malloc if needed.
34838
34839         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
34840         `#ifndef HAVE_DECL..'
34841         now that autoconf always defines the HAVE_DECL_ symbols.
34842         * lib/human.c: Likewise.
34843         * lib/same.c: Likewise.
34844         * lib/strtoumax.c: Likewise.
34845
34846         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
34847         declaration check was not run.
34848         * lib/hash.c: Likewise.
34849         * lib/human.c: Likewise.
34850         * lib/same.c: Likewise.
34851         * lib/strtoumax.c: Likewise.
34852
34853         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
34854         `.', then first look up the entire `.'-containing string as a login
34855         name.
34856
34857 2000-02-23  Jim Meyering  <meyering@lucent.com>
34858
34859         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
34860         in place of my hack.
34861
34862 2000-02-18  Paul Eggert  <eggert@twinsun.com>
34863
34864         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
34865         (textint): New typedef.
34866         (parser_control): Member year changed from int to textint.
34867         All uses changed.
34868         (YYSTYPE): Removed; replaced by %union with int and textint members.
34869         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
34870         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
34871         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
34872         (tSNUMBER, tUNUMBER): Now of type <textintval>.
34873         (date, number, to_year): Use width of number in digits, not its value,
34874         to determine whether it's a 2-digit year, or a 2-digit time.
34875         (yylex): Store number of digits of numeric tokens.
34876         Reported by John Kendall.
34877
34878         (parser_control): Changed from struct parser_control to typedef (for
34879         consistency).  All uses changed.
34880
34881         (tID): Removed; not used.
34882         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
34883
34884 2000-02-14  Paul Eggert  <eggert@twinsun.com>
34885
34886         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
34887         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
34888
34889 2000-02-12  Jim Meyering  <meyering@lucent.com>
34890
34891         * lib/userspec.c (ISDIGIT): Define it.
34892         (isdigit): Remove definition.
34893         (is_number): Use ISDIGIT, not isdigit.
34894         <libintl.h>: Include.
34895         (_ and N_): Define.
34896         (parse_user_spec): Mark translatable strings.
34897
34898 2000-02-10  Jim Meyering  <meyering@lucent.com>
34899
34900         With these changes, nanosleep.[ch] are finally enough like the other
34901         lib/* replacement files to compile on a few more losing systems.
34902
34903         * lib/nanosleep.h: Don't include config.h.
34904         Remove prototype from declaration of nanosleep.
34905         (PARAMS): Remove now-unneeded definition.
34906         * lib/nanosleep.c: #undef nanosleep.
34907         (rpl_nanosleep): Rename from nanosleep.
34908
34909 2000-02-10  Jim Meyering  <meyering@lucent.com>
34910
34911         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
34912         gnu_nanosleep to rpl_nanosleep.
34913
34914 2000-02-09  Jim Meyering  <meyering@lucent.com>
34915
34916         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
34917         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
34918
34919 2000-02-08  Akim Demaille  <akim@epita.fr>
34920
34921         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
34922         `[' and `]' and remove uses of `changequote'.
34923         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
34924         (AC_SYS_LARGEFILE): Likewise.
34925         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
34926         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
34927         of changequote.
34928         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
34929         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
34930         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
34931         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
34932
34933 2000-02-05  Jim Meyering  <meyering@lucent.com>
34934
34935         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
34936         Remove explicit use of AC_HEADER_TIME.  It is required by
34937         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
34938         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
34939         in autoconf whereby the expansion of the latter ended up preceding
34940         the expansion of its prerequisite, AC_HEADER_TIME.
34941         Reported by Volker Borchert.
34942
34943 2000-02-03  Jim Meyering  <meyering@lucent.com>
34944
34945         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
34946
34947 2000-02-03  Jim Meyering  <meyering@lucent.com>
34948
34949         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
34950         rather than with `#if HAVE_UTMPNAME'.
34951
34952 2000-02-02  Jim Meyering  <meyering@lucent.com>
34953
34954         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
34955         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
34956         Reported by Eli Zaretskii.
34957
34958 2000-02-01  Jim Meyering  <meyering@lucent.com>
34959
34960         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
34961
34962 2000-01-31  Jim Meyering  <meyering@lucent.com>
34963
34964         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
34965         functions.  Add the time.h and sys/time.h headers along with the
34966         AC_REQUIRE'ment of AC_HEADER_TIME.
34967
34968 2000-01-31  Jim Meyering  <meyering@lucent.com>
34969
34970         * lib/nanosleep.h (nanosleep): Guard declaration with
34971         `#if ! HAVE_DECL_NANOSLEEP'.
34972         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
34973         the declaration in that vendor's sys/timers.h.
34974         Reported by Christian Krackowizer.
34975
34976         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
34977         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
34978         (ISPRINT): Likewise.
34979         Reported by Tom Tromey.
34980
34981 2000-01-30  Jim Meyering  <meyering@lucent.com>
34982
34983         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
34984
34985         * m4/prereq.m4 (utmp_includes): Define.
34986         Check for ut_user and ut_name members in both struct utmpx
34987         and struct utmp.
34988
34989 2000-01-30  Jim Meyering  <meyering@lucent.com>
34990
34991         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
34992         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
34993         header files where only utmpx.ut_user is declared.
34994
34995         * lib/readutmp.h (UT_USER): Define.
34996
34997 2000-01-29  Jim Meyering  <meyering@lucent.com>
34998
34999         * m4/lib-check.m4: New file containing library-related checks from
35000         fileutils and sh-utils (textutils had none).
35001
35002 2000-01-28  Jim Meyering  <meyering@lucent.com>
35003
35004         * m4/perl.m4: Change format of warning message to look more like that
35005         from the missing script.  Suggestion from François Pinard.
35006
35007 2000-01-25  Jim Meyering  <meyering@lucent.com>
35008
35009         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
35010         well as time.h in the compile check.
35011         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
35012         Fix typo in cross-compiling case: s/yes/no/.
35013
35014 2000-01-23  Jim Meyering  <meyering@lucent.com>
35015
35016         * m4/jm-macros.m4: Move df-related tests here from
35017         fileutils/configure.in
35018
35019         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
35020         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
35021
35022         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
35023         s/space/ac_fsusage_space/.
35024         (jm_FILE_SYSTEM_USAGE): Take two parameters.
35025
35026         * m4/ftruncate.m4: New file (derived from part of
35027         fileutils/configure.in).
35028         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
35029         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
35030
35031         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
35032         AC_SUBST these here, rather than just in sh-util/configure.in, so
35033         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
35034         all the same.
35035         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
35036         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
35037         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
35038         (AC_SUBST(POW_LIBM)): Likewise.
35039         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
35040
35041 2000-01-23  Jim Meyering  <meyering@lucent.com>
35042
35043         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
35044         obstack.c.
35045
35046 2000-01-22  Jim Meyering  <meyering@lucent.com>
35047
35048         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
35049
35050         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
35051
35052         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
35053         configure.in
35054         (AC_CHECK_HEADERS): Likewise for sh-utils.
35055         (AC_CHECK_HEADERS): Likewise for textutils.
35056         Merge the three lists of headers.
35057
35058         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
35059         from fileutils' configure.in.
35060
35061         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
35062         code. Moved tests into their own function (_jm_DECL_HEADERS) in
35063         check-decl.m4.
35064
35065         * m4/check-decl.m4: Use #if rather than #ifdef.
35066         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
35067         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
35068         (_jm_DECL_HEADERS): Define new function.
35069         (jm_CHECK_DECLARATIONS): Require it.
35070
35071 2000-01-22  Jim Meyering  <meyering@lucent.com>
35072
35073         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
35074         [! HAVE_DECL_STRTOULL]: Declare strtoull.
35075         Required for some AIX systems.  Reported by Christian Krackowizer.
35076         [TESTING] (main): New function.
35077
35078         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
35079         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
35080         letters.
35081
35082         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
35083         iswprint.
35084
35085         * lib/strverscmp.c (ISDIGIT): Define.
35086         (strverscmp): Use ISDIGIT, not isdigit.
35087
35088 2000-01-19  Jim Meyering  <meyering@lucent.com>
35089
35090         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
35091         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
35092         defines `struct timespec' in <sys/time.h>
35093
35094         * m4/c-bs-a.m4: Remove uses of changequote altogether.
35095         Thanks to Akim for explaining.
35096
35097 2000-01-17  Paul Eggert  <eggert@twinsun.com>
35098
35099         * lib/nanosleep.c (nanosleep):
35100         Don't use SA_INTERRUPT to decide whether to call sigaction, as
35101         POSIX.1 doesn't require SA_INTERRUPT and some systems
35102         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
35103         it's been part of POSIX.1 since day 1 (in 1988).
35104
35105 2000-01-17  Jim Meyering  <meyering@lucent.com>
35106
35107         * lib/interlock: Remove unused file.  Reported by François Pinard.
35108
35109 2000-01-16  Paul Eggert  <eggert@twinsun.com>
35110
35111         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
35112         alert, backslash, formfeed, and vertical tab unnecessarily in
35113         shell quoting style.
35114
35115 2000-01-16  Jim Meyering  <meyering@lucent.com>
35116
35117         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
35118         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
35119         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
35120         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
35121
35122 2000-01-16  Jim Meyering  <meyering@lucent.com>
35123
35124         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
35125         because the latter didn't work.
35126
35127 2000-01-15  Jim Meyering  <meyering@lucent.com>
35128
35129         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
35130         (AC_REPLACE_FUNCS): Add memcpy and memset.
35131         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
35132         Add strpbrk.
35133         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
35134
35135 2000-01-12  Jim Meyering  <meyering@lucent.com>
35136
35137         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
35138         (jm_PREREQ): Use it.
35139         (jm_PREREQ_READUTMP): New macro.
35140         (jm_PREREQ): Use it.
35141
35142 2000-01-11  Paul Eggert  <eggert@twinsun.com>
35143
35144         Quote multibyte characters correctly.
35145         * m4/c-bs-a.m4: New file.
35146         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
35147         (jm_PREREQ): Use it.
35148
35149 2000-01-11  Paul Eggert  <eggert@twinsun.com>
35150
35151         * m4/uintmax_t.m4: Port to autoconf 2.13.
35152
35153 2000-01-08  Jim Meyering  <meyering@ascend.com>
35154
35155         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
35156         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
35157
35158 2000-01-04  Jim Meyering  <meyering@ascend.com>
35159
35160         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
35161         jm_STRUCT_DIRENT_D_TYPE.
35162         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
35163         jm_STRUCT_DIRENT_D_INO.
35164         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
35165         jm_STRUCT_UTIMBUF.
35166         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
35167         renamings.
35168         * m4/utime.m4: Likewise.
35169
35170         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
35171         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
35172
35173 2000-01-03  Paul Eggert  <eggert@twinsun.com>
35174
35175         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
35176         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
35177
35178 2000-01-02  Jim Meyering  <meyering@ascend.com>
35179
35180         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
35181         remember if this is necessary.
35182
35183 1999-12-26  Jim Meyering  <meyering@ascend.com>
35184
35185         * m4/jm-macros.m4: Use it here.
35186         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
35187
35188 1999-12-23  Jim Meyering  <meyering@ascend.com>
35189
35190         * m4/jm-macros.m4: Check for clock_gettime (moved from
35191         fileutils/configure.in)
35192         Check for gettimeofday.
35193
35194 1999-12-20  Jim Meyering  <meyering@ascend.com>
35195
35196         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
35197         autoconf-2.14a-1999-12-20.
35198
35199 1999-12-19  Jim Meyering  <meyering@ascend.com>
35200
35201         * m4/lstat-slash.m4: New file.
35202         * m4/jm-macros.m4: Use the new macro:
35203         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
35204
35205 1999-12-07  Jim Meyering  <meyering@ascend.com>
35206
35207         * m4/perl.m4: Require that File::Compare be available, too.
35208         Too many systems seem to lack it.
35209
35210         * m4/strftime.m4: Add checks for most of the cpp macros tested in
35211         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
35212
35213 1999-11-18  Paul Eggert  <eggert@twinsun.com>
35214
35215         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
35216         problem with the QNX 4.25 shell, which doesn't propagate exit
35217         status of failed commands inside shell assignments.
35218
35219 1999-11-17  Jim Meyering  <meyering@ascend.com>
35220
35221         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
35222
35223 1999-11-07  Jim Meyering  <meyering@ascend.com>
35224
35225         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
35226
35227 1999-11-06  Jim Meyering  <meyering@ascend.com>
35228
35229         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
35230         * m4/jm-macros.m4 (jm_MACROS): Use it here.
35231
35232 1999-11-05  Jim Meyering  <meyering@ascend.com>
35233
35234         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
35235         configure.in of textutils, fileutils, and sh-utils into this one
35236         (shared between those packages) file.
35237         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
35238         AC_STRUCT_ST_BLKSIZE.
35239
35240 1999-11-03  Jim Meyering  <meyering@ascend.com>
35241
35242         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
35243         of AC_CHECK_TYPE checks includes unistd.h.
35244         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
35245         Suggestion from Akim Demaille.
35246
35247 1999-10-30  Jim Meyering  <meyering@ascend.com>
35248
35249         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
35250         m4-quoted string.
35251         * m4/ls-mntd-fs.m4: Likewise.
35252         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
35253         * m4/jm-winsz1.m4: Likewise.
35254
35255         * m4/const.m4: Remove file, since the fix made it into the experimental
35256         version of autoconf.
35257         * m4/mktime.m4: Likewise.
35258
35259         * m4/check-type.m4: Remove file, now that the latest version of
35260         AC_CHECK_TYPE takes a third arg to specify additional #includes.
35261
35262         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
35263         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
35264         AC_CHECK_TYPE.
35265
35266 1999-10-04  Jim Meyering  <meyering@ascend.com>
35267
35268         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
35269
35270 1999-09-22  Paul Eggert  <eggert@twinsun.com>
35271
35272         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
35273         2.95.1 bug with HP-UX 10.20.
35274
35275 1999-09-17  Jim Meyering  <meyering@ascend.com>
35276
35277         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
35278         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
35279         due to missing strdup (against sh-utils-2.0).
35280
35281 1999-08-29  Jim Meyering  <meyering@ascend.com>
35282
35283         * m4/jm-macros.m4: Require jm_BISON.
35284         * m4/bison.m4: New file.
35285
35286 1999-08-17  Paul Eggert  <eggert@twinsun.com>
35287
35288         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
35289         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
35290
35291 1999-08-05  Jim Meyering  <meyering@ascend.com>
35292
35293         * m4/getline.m4: Rename test file from conftestdata to conftest.data
35294         to avoid conflicts with `conftest' on 8+3 filesystems.
35295         Suggestion from Eli Zaretskii.
35296
35297 1999-08-04  Jim Meyering  <meyering@ascend.com>
35298
35299         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
35300         fileutils and sh-utils (textutils's getline test was inadequate).
35301         (AM_FUNC_GETLINE): Run this test.
35302         (AC_CHECK_FUNCS): Check for getdelim.
35303         Reported by Bob Proulx.
35304
35305 1999-08-02  Jim Meyering  <meyering@ascend.com>
35306
35307         * m4/jm-macros.m4: Add a comment.
35308
35309 1999-08-01  Paul Eggert  <eggert@twinsun.com>
35310
35311         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
35312         <inttypes.h> defines strtoumax as a macro (and not as a
35313         function).
35314
35315 1999-08-01  Paul Eggert  <eggert@twinsun.com>
35316
35317         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
35318         that we can shift, multiply and divide unsigned long long
35319         values; Ultrix cc can't do it.
35320
35321 1999-08-01  Paul Eggert  <eggert@twinsun.com>
35322
35323         * m4/mktime.m4: New file, which is a preview of what should appear
35324         in the next public autoconf release.
35325
35326 1999-08-01  Paul Eggert  <eggert@twinsun.com>
35327
35328         * m4/lfs.m4: Remove this file.
35329         * m4/largefile.m4: New file.  It contains the old contents of
35330         lfs.m4, except that all names with prefix AC_LFS have been
35331         changed to use the prefix AC_SYS_LARGEFILE instead, to be
35332         compatible with future autoconf versions.  Also, some minor m4
35333         quoting problems have been fixed.
35334
35335 1999-08-01  Paul Eggert  <eggert@twinsun.com>
35336
35337         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
35338         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
35339         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
35340         and simplify the shell code.
35341
35342 1999-08-01  Jim Meyering  <meyering@ascend.com>
35343
35344         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
35345         m4.
35346
35347 1999-07-20  Jim Meyering  <meyering@ascend.com>
35348
35349         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
35350
35351 1999-07-15  Jim Meyering  <meyering@ascend.com>
35352
35353         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
35354
35355 1999-05-22  Jim Meyering  <meyering@ascend.com>
35356
35357         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
35358
35359 1999-05-20  Jim Meyering  <meyering@ascend.com>
35360
35361         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
35362         Add a colon after each `then' in case $4 is empty.
35363
35364 1999-05-16  Jim Meyering  <meyering@ascend.com>
35365
35366         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
35367
35368 1999-05-10  Jim Meyering  <meyering@ascend.com>
35369
35370         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
35371
35372         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
35373         AC_FUNC_MKTIME.
35374
35375 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
35376
35377         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
35378
35379 1999-05-04  Paul Eggert  <eggert@twinsun.com>
35380
35381         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
35382         not CPPFLAGS, so that linking works correctly in IRIX.
35383
35384 1999-04-30  Paul Eggert  <eggert@twinsun.com>
35385
35386         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
35387
35388 1999-04-20  Paul Eggert  <eggert@twinsun.com>
35389
35390         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
35391         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
35392         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
35393         jm_AC_TYPE_UNSIGNED_LONG_LONG.
35394         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
35395
35396         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
35397
35398 1999-04-20  Jim Meyering  <meyering@ascend.com>
35399
35400         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
35401         AC_REPLACE xstroull if necessary.  From Paul Eggert.
35402         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
35403
35404 1999-04-18  Jim Meyering  <meyering@ascend.com>
35405
35406         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
35407         * m4/jm-macros.m4: Use it.
35408
35409 1999-04-06  Jim Meyering  <meyering@ascend.com>
35410
35411         * m4/strftime.m4: Remove test for %f.
35412
35413 1999-03-29  Jim Meyering  <meyering@ascend.com>
35414
35415         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
35416         superset of the AC_TYPE_* checks in the textutils, fileutils,
35417         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
35418         AC_TYPE_PID_T.
35419
35420 1999-03-28  Jim Meyering  <meyering@ascend.com>
35421
35422         * m4/jm-macros.m4: Define GNU_PACKAGE here.
35423         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
35424         replaced e.g., in the *.sh files of the sh-utils.
35425
35426 1999-03-20  Jim Meyering  <meyering@ascend.com>
35427
35428         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
35429         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
35430         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
35431
35432 1999-03-19  Jim Meyering  <meyering@ascend.com>
35433
35434         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
35435
35436 1999-03-12  Jim Meyering  <meyering@ascend.com>
35437
35438         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
35439
35440 1999-03-07  Jim Meyering  <meyering@ascend.com>
35441
35442         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
35443         declared.
35444
35445 1999-02-17  Jim Meyering  <meyering@ascend.com>
35446
35447         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
35448         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
35449
35450 1999-02-07  Jim Meyering  <meyering@ascend.com>
35451
35452         * m4/group-member.m4: New file -- extracted from sh-utils'
35453         configure.in.
35454
35455         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
35456         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
35457
35458 1999-02-06  Jim Meyering  <meyering@ascend.com>
35459
35460         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
35461         * m4/fnmatch.m4: Likewise.
35462         * m4/getgroups.m4: Likewise.
35463         * m4/lstat.m4: Likewise.
35464         * m4/malloc.m4: Likewise.
35465         * m4/putenv.m4: Likewise.
35466         * m4/realloc.m4: Likewise.
35467         * m4/regex.m4: Likewise.
35468         * m4/stat.m4: Likewise.
35469         * m4/strftime.m4: Likewise.
35470         Suggestion from Alain Magloire.
35471
35472         * m4/chown.m4: Use `.$ac_objext', not `.o'.
35473         * m4/fnmatch.m4: Likewise.
35474         * m4/getgroups.m4: Likewise.
35475         * m4/getline.m4: Likewise.
35476         * m4/lstat.m4: Likewise.
35477         * m4/malloc.m4: Likewise.
35478         * m4/memcmp.m4: Likewise.
35479         * m4/putenv.m4: Likewise.
35480         * m4/realloc.m4: Likewise.
35481         * m4/regex.m4: Likewise.
35482         * m4/stat.m4: Likewise.
35483         * m4/strftime.m4: Likewise.
35484         Suggestion from Alain Magloire.
35485
35486         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
35487         an argument.
35488
35489         * m4/regex.m4: Add a run-time Test for proper operation of
35490         re_compile_pattern.
35491
35492 1999-01-31  Jim Meyering  <meyering@ascend.com>
35493
35494         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
35495
35496 1999-01-30  Jim Meyering  <meyering@ascend.com>
35497
35498         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
35499
35500         * m4/jm-mktime.m4: Make this a wrapper around the official
35501         AM_FUNC_MKTIME rather than my private copy, now that the official one
35502         is up to date.
35503         * m4/mktime.m4: Remove file.
35504
35505         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
35506         * m4/uptime.m4: Likewise.
35507         * m4/uintmax_t.m4: Likewise.
35508
35509 1999-01-28  Jim Meyering  <meyering@ascend.com>
35510
35511         * m4/jm-macros.m4: Use jm_AFS.
35512         * m4/afs.m4: New file (from fileutils' configure.in).
35513
35514         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
35515         * m4/chown.m4: Likewise.
35516         * m4/d-ino.m4: Likewise.
35517         * m4/d-type.m4: Likewise.
35518         * m4/fnmatch.m4: Likewise.
35519         * m4/getgroups.m4: Likewise.
35520         * m4/gettext.m4: Likewise.
35521         * m4/jm-mktime.m4: Likewise.
35522         * m4/jm-winsz2.m4: Likewise.
35523         * m4/lcmessage.m4: Likewise.
35524         * m4/ls-mntd-fs.m4: Likewise.
35525         * m4/malloc.m4: Likewise.
35526         * m4/memcmp.m4: Likewise.
35527         * m4/putenv.m4: Likewise.
35528         * m4/realloc.m4: Likewise.
35529         * m4/st_mtim.m4: Likewise.
35530         * m4/strftime.m4: Likewise.
35531
35532 1999-01-16  Jim Meyering  <meyering@ascend.com>
35533
35534         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
35535         (ARGMATCH_DIE_DECL): Define.
35536
35537 1999-01-12  Jim Meyering  <meyering@ascend.com>
35538
35539         * m4/Makefile.am.in: Rewrite to avoid using fmt.
35540         Reported by Lars Hecking.
35541
35542 1999-01-10  Jim Meyering  <meyering@ascend.com>
35543
35544         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
35545         gross kludge.
35546         * m4/inttypes_h.m4: Likewise.
35547         * m4/lstat.m4: Likewise.
35548         * m4/malloc.m4: Likewise.
35549         * m4/readdir.m4: Likewise.
35550         * m4/realloc.m4: Likewise.
35551         * m4/st_dm_mode.m4: Likewise.
35552         * m4/stat.m4: Likewise.
35553         * m4/utimbuf.m4: Likewise.
35554         * m4/utimes.m4: Likewise.
35555
35556         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
35557         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
35558         comments in config.h.in are meaningful.
35559
35560         * m4/jm-macros.m4: Require autoconf-2.13 here.
35561
35562         * m4/regex.m4: By default, don't use the included regex.c on systems
35563         with glibc 2.  Suggestion from Uli Drepper.
35564
35565 1999-01-02  Jim Meyering  <meyering@ascend.com>
35566
35567         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
35568
35569 1998-12-18  Jim Meyering  <meyering@ascend.com>
35570
35571         * m4/Makefile.am.in (Makefile.am): Simplify rule.
35572         Based on a suggestion from Lars Hecking.
35573
35574 1998-11-16  Paul Eggert  <eggert@twinsun.com>
35575
35576         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
35577
35578 1998-11-16  Jim Meyering  <meyering@ascend.com>
35579
35580         * m4/lfs.m4: Double-quote the `uname...` expression.
35581
35582 1998-11-14  Jim Meyering  <meyering@ascend.com>
35583
35584         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
35585         * m4/stat.m4: Likewise.
35586
35587 1998-11-03  Jim Meyering  <meyering@ascend.com>
35588
35589         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
35590         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
35591
35592 1998-10-18  Jim Meyering  <meyering@ascend.com>
35593
35594         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
35595
35596 1998-10-17  Jim Meyering  <meyering@ascend.com>
35597
35598         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
35599         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
35600         calls for those previously hard-coded headers.  Instead, take a new
35601         parameter.
35602         (jm_CHECK_DECLARATIONS): Reflect interface change.
35603         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
35604         (jm_CHECK_DECL_LOCALTIME_R): New macro.
35605
35606         * m4/mktime.m4: Test for spring-forward gap before long-running test.
35607
35608 1998-10-14  Jim Meyering  <meyering@ascend.com>
35609
35610         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
35611         instead of "TZ=America/Vancouver".  From Paul Eggert.
35612
35613 1998-10-11  Jim Meyering  <meyering@ascend.com>
35614
35615         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
35616         This adds a test for a recently added compatibility fix for mktime.c.
35617         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
35618
35619 1998-09-27  Jim Meyering  <meyering@ascend.com>
35620
35621         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
35622
35623         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
35624         ../configure.in, including a change from Gordon Matzigkeit to allow
35625         cross-compiling for the Hurd.
35626
35627         * m4/glibc.m4: New file/macro to test for the GNU C Library
35628         versions 1 and 2.  From Gordon Matzigkeit.
35629         Indent.
35630
35631 1998-09-21  Jim Meyering  <meyering@ascend.com>
35632
35633         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
35634
35635 1998-08-18  Paul Eggert  <eggert@twinsun.com>
35636
35637         Port nanosecond-resolution times to UnixWare 2.1.2 and
35638         pedantic Solaris 2.6.
35639
35640         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
35641         AC_STRUCT_ST_MTIM.
35642         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
35643         Generate name of ns member, instead of just 1 or undef.
35644         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
35645
35646 1998-08-15  Jim Meyering  <meyering@ascend.com>
35647
35648         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
35649         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
35650         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
35651         instead of jm_TYPE_SSIZE_T.
35652
35653 1998-08-12  Jim Meyering  <meyering@ascend.com>
35654
35655         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
35656
35657 1998-08-02  Jim Meyering  <meyering@ascend.com>
35658
35659         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
35660         in acconfig.h manually.
35661
35662 1998-07-31  Paul Eggert  <eggert@twinsun.com>
35663
35664         * m4/st_mtim.m4: New file.
35665
35666 1998-07-28  Jim Meyering  <meyering@ascend.com>
35667
35668         * m4/utimes.m4: Undef stat.
35669
35670 1998-07-25  Jim Meyering  <meyering@ascend.com>
35671
35672         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
35673         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
35674
35675 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
35676
35677         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
35678         uid and gid actually remain unchanged.
35679
35680 1998-07-07  Jim Meyering  <meyering@ascend.com>
35681
35682         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
35683
35684 1998-07-04  Jim Meyering  <meyering@ascend.com>
35685
35686         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
35687         to prove that this macro can be used in packages without regex.c.
35688
35689 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
35690
35691         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
35692         is to be used.
35693
35694 1998-07-03  Jim Meyering  <meyering@ascend.com>
35695
35696         * m4/gettext.m4: Add -lintl if it's found to be necessary.
35697
35698         * m4/gettext.m4: New file -- from gettext-0.10.35.
35699         * m4/lcmessage.m4: Likewise.
35700         * m4/progtest.m4: Likewise.
35701
35702         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
35703         * m4/jm-macros.m4: Require the new macro.
35704
35705 1998-06-29  Jim Meyering  <meyering@ascend.com>
35706
35707         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
35708         for the definition of NGROUPS (used in a system header included
35709         by sys/mount.h).
35710
35711 1998-06-28  Jim Meyering  <meyering@ascend.com>
35712
35713         * m4/ls-mntd-fs.m4: New file.
35714         * m4/fstypename.m4: New file.
35715
35716         * m4/jm-macros.m4: Require the new macro.
35717         * m4/jm-glibc-io.m4: New file.
35718
35719 1998-05-19  Jim Meyering  <meyering@ascend.com>
35720
35721         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
35722         * m4/lchown.m4: New file.
35723
35724         * m4/Makefile.am.in: New file.
35725         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
35726
35727 1998-05-14  Jim Meyering  <meyering@ascend.com>
35728
35729         * m4/Makefile.am (EXTRA_DIST): Add them.
35730         * m4/jm-macros.m4: New file.
35731         * m4/utimbuf.m4: New file.
35732
35733 1998-05-12  Jim Meyering  <meyering@ascend.com>
35734
35735         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
35736
35737 1998-05-11  Jim Meyering  <meyering@ascend.com>
35738
35739         * m4/isc-posix.m4: New file.
35740
35741 1998-05-10  Jim Meyering  <meyering@ascend.com>
35742
35743         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
35744
35745 1998-05-09  Jim Meyering  <meyering@ascend.com>
35746
35747         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
35748         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
35749         with automake.
35750
35751         * m4/ssize_t.m4: New file.
35752         * m4/mktime.m4: Remove file -- the new automake has this now.
35753
35754 1998-04-26  Jim Meyering  <meyering@ascend.com>
35755
35756         * m4/assert.m4: New file.
35757         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
35758
35759 1998-04-05  Jim Meyering  <meyering@ascend.com>
35760
35761         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
35762         (jm_PREREQ): Use it here.
35763
35764 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
35765
35766         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
35767         in acconfig.h.
35768
35769 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
35770
35771         * m4/prereq.m4: New file.
35772         * m4/error.m4: New file.
35773         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
35774
35775 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
35776
35777         * m4/getline.m4: Don't set am_cv_func_working_getline before the
35778         cache-check for the same variable -- that defeated the purpose of
35779         the test; the test program was never run.  This was a problem only
35780         on systems with losing getline functions -- HP-UX 10.20 is one.
35781         Reported by Bjorn Helgaas.
35782
35783 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
35784
35785         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
35786
35787 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
35788
35789         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
35790
35791         * m4/const.m4: New file.  Use an initializer in this declaration
35792         typedef int charset[2]; const charset x;
35793         Reported by Bob Glickstein.
35794
35795 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
35796
35797         * m4/chown.m4: Fix reversed types on -1 args to chown.
35798         From Kaveh Ghazi.
35799
35800 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
35801
35802         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
35803         Add lseek and memchr.
35804
35805         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
35806         T.E.Dickey <dickey@clark.net> said that some older preprocessors
35807         have a 20-character limit on names.
35808
35809 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
35810
35811         * m4/inttypes_h.m4: New file.
35812         * m4/uintmax_t.m4: New file.
35813         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
35814
35815 Copyright (C) 1997-2007 Free Software Foundation, Inc.
35816 Copying and distribution of this file, with or without modification,
35817 are permitted provided the copyright notice and this notice are preserved.