Change copyright notice from LGPLv2.0+ to LGPLv3+.
[gnulib.git] / ChangeLog
1 2007-10-07  Bruno Haible  <bruno@clisp.org>
2
3         Change copyright notice from LGPLv2.0+ to LGPLv3+.
4         * lib/c-strcaseeq.h: Change copyright notice.
5         * lib/streq.h: Likewise.
6         * lib/uniconv.h: Likewise.
7         * lib/uniconv/u-conv-from-enc.h: Likewise.
8         * lib/uniconv/u-conv-to-enc.h: Likewise.
9         * lib/uniconv/u-strconv-from-enc.h: Likewise.
10         * lib/uniconv/u-strconv-to-enc.h: Likewise.
11         * lib/uniconv/u16-conv-from-enc.c: Likewise.
12         * lib/uniconv/u16-conv-to-enc.c: Likewise.
13         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
14         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
15         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
16         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
17         * lib/uniconv/u32-conv-from-enc.c: Likewise.
18         * lib/uniconv/u32-conv-to-enc.c: Likewise.
19         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
20         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
21         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
22         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
23         * lib/uniconv/u8-conv-from-enc.c: Likewise.
24         * lib/uniconv/u8-conv-to-enc.c: Likewise.
25         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
26         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
27         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
28         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
29         * lib/uniname.h: Likewise.
30         * lib/uniname/uniname.c: Likewise.
31         * lib/unistdio.h: Likewise.
32         * lib/unistdio/u-asnprintf.h: Likewise.
33         * lib/unistdio/u-asprintf.h: Likewise.
34         * lib/unistdio/u-printf-args.c: Likewise.
35         * lib/unistdio/u-printf-args.h: Likewise.
36         * lib/unistdio/u-printf-parse.h: Likewise.
37         * lib/unistdio/u-snprintf.h: Likewise.
38         * lib/unistdio/u-sprintf.h: Likewise.
39         * lib/unistdio/u-vasprintf.h: Likewise.
40         * lib/unistdio/u-vsnprintf.h: Likewise.
41         * lib/unistdio/u-vsprintf.h: Likewise.
42         * lib/unistdio/u16-asnprintf.c: Likewise.
43         * lib/unistdio/u16-asprintf.c: Likewise.
44         * lib/unistdio/u16-printf-parse.c: Likewise.
45         * lib/unistdio/u16-snprintf.c: Likewise.
46         * lib/unistdio/u16-sprintf.c: Likewise.
47         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
48         * lib/unistdio/u16-u16-asprintf.c: Likewise.
49         * lib/unistdio/u16-u16-snprintf.c: Likewise.
50         * lib/unistdio/u16-u16-sprintf.c: Likewise.
51         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
52         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
53         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
54         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
55         * lib/unistdio/u16-vasnprintf.c: Likewise.
56         * lib/unistdio/u16-vasprintf.c: Likewise.
57         * lib/unistdio/u16-vsnprintf.c: Likewise.
58         * lib/unistdio/u16-vsprintf.c: Likewise.
59         * lib/unistdio/u32-asnprintf.c: Likewise.
60         * lib/unistdio/u32-asprintf.c: Likewise.
61         * lib/unistdio/u32-printf-parse.c: Likewise.
62         * lib/unistdio/u32-snprintf.c: Likewise.
63         * lib/unistdio/u32-sprintf.c: Likewise.
64         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
65         * lib/unistdio/u32-u32-asprintf.c: Likewise.
66         * lib/unistdio/u32-u32-snprintf.c: Likewise.
67         * lib/unistdio/u32-u32-sprintf.c: Likewise.
68         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
69         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
70         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
71         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
72         * lib/unistdio/u32-vasnprintf.c: Likewise.
73         * lib/unistdio/u32-vasprintf.c: Likewise.
74         * lib/unistdio/u32-vsnprintf.c: Likewise.
75         * lib/unistdio/u32-vsprintf.c: Likewise.
76         * lib/unistdio/u8-asnprintf.c: Likewise.
77         * lib/unistdio/u8-asprintf.c: Likewise.
78         * lib/unistdio/u8-printf-parse.c: Likewise.
79         * lib/unistdio/u8-snprintf.c: Likewise.
80         * lib/unistdio/u8-sprintf.c: Likewise.
81         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
82         * lib/unistdio/u8-u8-asprintf.c: Likewise.
83         * lib/unistdio/u8-u8-snprintf.c: Likewise.
84         * lib/unistdio/u8-u8-sprintf.c: Likewise.
85         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
86         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
87         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
88         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
89         * lib/unistdio/u8-vasnprintf.c: Likewise.
90         * lib/unistdio/u8-vasprintf.c: Likewise.
91         * lib/unistdio/u8-vsnprintf.c: Likewise.
92         * lib/unistdio/u8-vsprintf.c: Likewise.
93         * lib/unistdio/ulc-asnprintf.c: Likewise.
94         * lib/unistdio/ulc-asprintf.c: Likewise.
95         * lib/unistdio/ulc-printf-parse.c: Likewise.
96         * lib/unistdio/ulc-snprintf.c: Likewise.
97         * lib/unistdio/ulc-sprintf.c: Likewise.
98         * lib/unistdio/ulc-vasnprintf.c: Likewise.
99         * lib/unistdio/ulc-vasprintf.c: Likewise.
100         * lib/unistdio/ulc-vsnprintf.c: Likewise.
101         * lib/unistdio/ulc-vsprintf.c: Likewise.
102         * lib/unistr.h: Likewise.
103         * lib/unistr/u-cpy-alloc.h: Likewise.
104         * lib/unistr/u-cpy.h: Likewise.
105         * lib/unistr/u-endswith.h: Likewise.
106         * lib/unistr/u-move.h: Likewise.
107         * lib/unistr/u-set.h: Likewise.
108         * lib/unistr/u-startswith.h: Likewise.
109         * lib/unistr/u-stpcpy.h: Likewise.
110         * lib/unistr/u-stpncpy.h: Likewise.
111         * lib/unistr/u-strcat.h: Likewise.
112         * lib/unistr/u-strcpy.h: Likewise.
113         * lib/unistr/u-strcspn.h: Likewise.
114         * lib/unistr/u-strdup.h: Likewise.
115         * lib/unistr/u-strlen.h: Likewise.
116         * lib/unistr/u-strncat.h: Likewise.
117         * lib/unistr/u-strncpy.h: Likewise.
118         * lib/unistr/u-strnlen.h: Likewise.
119         * lib/unistr/u-strpbrk.h: Likewise.
120         * lib/unistr/u-strspn.h: Likewise.
121         * lib/unistr/u-strstr.h: Likewise.
122         * lib/unistr/u-strtok.h: Likewise.
123         * lib/unistr/u16-check.c: Likewise.
124         * lib/unistr/u16-chr.c: Likewise.
125         * lib/unistr/u16-cmp.c: Likewise.
126         * lib/unistr/u16-cpy-alloc.c: Likewise.
127         * lib/unistr/u16-cpy.c: Likewise.
128         * lib/unistr/u16-endswith.c: Likewise.
129         * lib/unistr/u16-mblen.c: Likewise.
130         * lib/unistr/u16-mbsnlen.c: Likewise.
131         * lib/unistr/u16-mbtouc-aux.c: Likewise.
132         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
133         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
134         * lib/unistr/u16-mbtouc.c: Likewise.
135         * lib/unistr/u16-mbtoucr.c: Likewise.
136         * lib/unistr/u16-move.c: Likewise.
137         * lib/unistr/u16-next.c: Likewise.
138         * lib/unistr/u16-prev.c: Likewise.
139         * lib/unistr/u16-set.c: Likewise.
140         * lib/unistr/u16-startswith.c: Likewise.
141         * lib/unistr/u16-stpcpy.c: Likewise.
142         * lib/unistr/u16-stpncpy.c: Likewise.
143         * lib/unistr/u16-strcat.c: Likewise.
144         * lib/unistr/u16-strchr.c: Likewise.
145         * lib/unistr/u16-strcmp.c: Likewise.
146         * lib/unistr/u16-strcpy.c: Likewise.
147         * lib/unistr/u16-strcspn.c: Likewise.
148         * lib/unistr/u16-strdup.c: Likewise.
149         * lib/unistr/u16-strlen.c: Likewise.
150         * lib/unistr/u16-strmblen.c: Likewise.
151         * lib/unistr/u16-strmbtouc.c: Likewise.
152         * lib/unistr/u16-strncat.c: Likewise.
153         * lib/unistr/u16-strncmp.c: Likewise.
154         * lib/unistr/u16-strncpy.c: Likewise.
155         * lib/unistr/u16-strnlen.c: Likewise.
156         * lib/unistr/u16-strpbrk.c: Likewise.
157         * lib/unistr/u16-strrchr.c: Likewise.
158         * lib/unistr/u16-strspn.c: Likewise.
159         * lib/unistr/u16-strstr.c: Likewise.
160         * lib/unistr/u16-strtok.c: Likewise.
161         * lib/unistr/u16-to-u32.c: Likewise.
162         * lib/unistr/u16-to-u8.c: Likewise.
163         * lib/unistr/u16-uctomb-aux.c: Likewise.
164         * lib/unistr/u16-uctomb.c: Likewise.
165         * lib/unistr/u32-check.c: Likewise.
166         * lib/unistr/u32-chr.c: Likewise.
167         * lib/unistr/u32-cmp.c: Likewise.
168         * lib/unistr/u32-cpy-alloc.c: Likewise.
169         * lib/unistr/u32-cpy.c: Likewise.
170         * lib/unistr/u32-endswith.c: Likewise.
171         * lib/unistr/u32-mblen.c: Likewise.
172         * lib/unistr/u32-mbsnlen.c: Likewise.
173         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
174         * lib/unistr/u32-mbtouc.c: Likewise.
175         * lib/unistr/u32-mbtoucr.c: Likewise.
176         * lib/unistr/u32-move.c: Likewise.
177         * lib/unistr/u32-next.c: Likewise.
178         * lib/unistr/u32-prev.c: Likewise.
179         * lib/unistr/u32-set.c: Likewise.
180         * lib/unistr/u32-startswith.c: Likewise.
181         * lib/unistr/u32-stpcpy.c: Likewise.
182         * lib/unistr/u32-stpncpy.c: Likewise.
183         * lib/unistr/u32-strcat.c: Likewise.
184         * lib/unistr/u32-strchr.c: Likewise.
185         * lib/unistr/u32-strcmp.c: Likewise.
186         * lib/unistr/u32-strcpy.c: Likewise.
187         * lib/unistr/u32-strcspn.c: Likewise.
188         * lib/unistr/u32-strdup.c: Likewise.
189         * lib/unistr/u32-strlen.c: Likewise.
190         * lib/unistr/u32-strmblen.c: Likewise.
191         * lib/unistr/u32-strmbtouc.c: Likewise.
192         * lib/unistr/u32-strncat.c: Likewise.
193         * lib/unistr/u32-strncmp.c: Likewise.
194         * lib/unistr/u32-strncpy.c: Likewise.
195         * lib/unistr/u32-strnlen.c: Likewise.
196         * lib/unistr/u32-strpbrk.c: Likewise.
197         * lib/unistr/u32-strrchr.c: Likewise.
198         * lib/unistr/u32-strspn.c: Likewise.
199         * lib/unistr/u32-strstr.c: Likewise.
200         * lib/unistr/u32-strtok.c: Likewise.
201         * lib/unistr/u32-to-u16.c: Likewise.
202         * lib/unistr/u32-to-u8.c: Likewise.
203         * lib/unistr/u32-uctomb.c: Likewise.
204         * lib/unistr/u8-check.c: Likewise.
205         * lib/unistr/u8-chr.c: Likewise.
206         * lib/unistr/u8-cmp.c: Likewise.
207         * lib/unistr/u8-cpy-alloc.c: Likewise.
208         * lib/unistr/u8-cpy.c: Likewise.
209         * lib/unistr/u8-endswith.c: Likewise.
210         * lib/unistr/u8-mblen.c: Likewise.
211         * lib/unistr/u8-mbsnlen.c: Likewise.
212         * lib/unistr/u8-mbtouc-aux.c: Likewise.
213         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
214         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
215         * lib/unistr/u8-mbtouc.c: Likewise.
216         * lib/unistr/u8-mbtoucr.c: Likewise.
217         * lib/unistr/u8-move.c: Likewise.
218         * lib/unistr/u8-next.c: Likewise.
219         * lib/unistr/u8-prev.c: Likewise.
220         * lib/unistr/u8-set.c: Likewise.
221         * lib/unistr/u8-startswith.c: Likewise.
222         * lib/unistr/u8-stpcpy.c: Likewise.
223         * lib/unistr/u8-stpncpy.c: Likewise.
224         * lib/unistr/u8-strcat.c: Likewise.
225         * lib/unistr/u8-strchr.c: Likewise.
226         * lib/unistr/u8-strcmp.c: Likewise.
227         * lib/unistr/u8-strcpy.c: Likewise.
228         * lib/unistr/u8-strcspn.c: Likewise.
229         * lib/unistr/u8-strdup.c: Likewise.
230         * lib/unistr/u8-strlen.c: Likewise.
231         * lib/unistr/u8-strmblen.c: Likewise.
232         * lib/unistr/u8-strmbtouc.c: Likewise.
233         * lib/unistr/u8-strncat.c: Likewise.
234         * lib/unistr/u8-strncmp.c: Likewise.
235         * lib/unistr/u8-strncpy.c: Likewise.
236         * lib/unistr/u8-strnlen.c: Likewise.
237         * lib/unistr/u8-strpbrk.c: Likewise.
238         * lib/unistr/u8-strrchr.c: Likewise.
239         * lib/unistr/u8-strspn.c: Likewise.
240         * lib/unistr/u8-strstr.c: Likewise.
241         * lib/unistr/u8-strtok.c: Likewise.
242         * lib/unistr/u8-to-u16.c: Likewise.
243         * lib/unistr/u8-to-u32.c: Likewise.
244         * lib/unistr/u8-uctomb-aux.c: Likewise.
245         * lib/unistr/u8-uctomb.c: Likewise.
246         * lib/unitypes.h: Likewise.
247         * lib/uniwidth.h: Likewise.
248         * lib/uniwidth/cjk.h: Likewise.
249         * lib/uniwidth/u16-strwidth.c: Likewise.
250         * lib/uniwidth/u16-width.c: Likewise.
251         * lib/uniwidth/u32-strwidth.c: Likewise.
252         * lib/uniwidth/u32-width.c: Likewise.
253         * lib/uniwidth/u8-strwidth.c: Likewise.
254         * lib/uniwidth/u8-width.c: Likewise.
255         * lib/uniwidth/width.c: Likewise.
256
257 2007-10-07  Bruno Haible  <bruno@clisp.org>
258
259         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
260         The file is still under LGPL (see modules/inttypes).
261
262 2007-10-06  Bruno Haible  <bruno@clisp.org>
263
264         * modules/trunc (Dependencies): Add 'extensions'.
265         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
266         Reported by Ben Pfaff <blp@gnu.org>.
267
268 2007-10-06  Bruno Haible  <bruno@clisp.org>
269
270         * modules/freopen-tests: New file.
271         * tests/test-freopen.c: New file.
272
273         * modules/fopen-tests: New file.
274         * tests/test-fopen.c: New file.
275
276         * modules/fopen: New file.
277         * lib/fopen.c: New file.
278         * m4/fopen.m4: New file.
279         * modules/freopen: New file.
280         * lib/freopen.c: New file.
281         * m4/freopen.m4: New file.
282         * lib/stdio.in.h (fopen, freopen): New declarations.
283         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
284         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
285         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
286         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
287         * doc/functions/fopen.texi: Mention the 'fopen' module.
288         * doc/functions/freopen.texi: Mention the 'freopen' module.
289
290 2007-10-06  Bruno Haible  <bruno@clisp.org>
291
292         * modules/open-tests: New file.
293         * tests/test-open.c: New file.
294
295         * modules/open: New file.
296         * lib/open.c: New file.
297         * m4/open.m4: New file.
298         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
299         lib/open.c does.
300         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
301         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
302         macros.
303         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
304         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
305         REPLACE_OPEN.
306         * doc/functions/open.texi: Mention the 'open' module.
307
308 2007-10-04  Bruno Haible  <bruno@clisp.org>
309
310         * modules/ceill-tests: New file.
311         * tests/test-ceill.c: New file.
312
313         * modules/ceill: New file.
314         * lib/ceill.c: Replace entire file.
315         * m4/ceill.m4: New file.
316         * lib/math.in.h (ceill): Replace declaration.
317         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
318         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
319         * doc/functions/ceill.texi: Mention the 'ceill' module.
320         * modules/mathl (Files): Remove lib/ceill.c.
321         (Depends-on): Add ceill.
322
323 2007-10-04  Bruno Haible  <bruno@clisp.org>
324
325         * modules/ceilf-tests: New file.
326         * tests/test-ceilf.c: New file.
327
328         * modules/ceilf: New file.
329         * lib/ceil.c: New file.
330         * lib/ceilf.c: New file.
331         * m4/ceilf.m4: New file.
332         * lib/math.in.h (ceilf): New declaration.
333         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
334         HAVE_DECL_CEILF.
335         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
336         HAVE_DECL_CEILF.
337         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
338
339 2007-10-04  Bruno Haible  <bruno@clisp.org>
340
341         * modules/floorl-tests: New file.
342         * tests/test-floorl.c: New file.
343
344         * modules/floorl: New file.
345         * lib/floorl.c: Replace entire file.
346         * m4/floorl.m4: New file.
347         * lib/math.in.h (floorl): Replace declaration.
348         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
349         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
350         * doc/functions/floorl.texi: Mention the 'floorl' module.
351         * modules/mathl (Files): Remove lib/floorl.c.
352         (Depends-on): Add floorl.
353
354 2007-10-04  Bruno Haible  <bruno@clisp.org>
355
356         * modules/floorf-tests: New file.
357         * tests/test-floorf.c: New file.
358
359         * modules/floorf: New file.
360         * lib/floor.c: New file.
361         * lib/floorf.c: New file.
362         * m4/floorf.m4: New file.
363         * lib/math.in.h (floorf): New declaration.
364         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
365         HAVE_DECL_FLOORF.
366         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
367         HAVE_DECL_FLOORF.
368         * doc/functions/floorf.texi: Mention the 'floorf' module.
369
370 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
371             Bruno Haible  <bruno@clisp.org>
372
373         Advertise for the Git server instead of the CVS server.
374         * doc/gnulib-intro.texi (Steady Development): Mention the Git
375         repository instead of the CVS one.
376         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
377         about all VCS systems generically.
378         * doc/gnulib.texi (Introduction): Capitalize `Git'.
379
380 2007-10-04  Bruno Haible  <bruno@clisp.org>
381
382         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
383         means.
384         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
385
386 2007-10-04  Bruno Haible  <bruno@clisp.org>
387
388         * modules/truncl-tests: New file.
389         * tests/test-truncl.c: New file.
390
391         * modules/truncl: New file.
392         * lib/truncl.c: New file.
393         * m4/truncl.m4: New file.
394         * lib/math.in.h (truncl): New declaration.
395         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
396         HAVE_DECL_TRUNCL.
397         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
398         HAVE_DECL_TRUNCL.
399         * doc/functions/truncl.texi: Mention the 'truncl' module.
400
401 2007-10-04  Bruno Haible  <bruno@clisp.org>
402
403         * modules/truncf-tests: New file.
404         * tests/test-truncf.c: New file.
405
406         * modules/truncf: New file.
407         * lib/trunc.c: Make paramerizable through USE_* macros.
408         * lib/truncf.c: New file.
409         * m4/truncf.m4: New file.
410         * lib/math.in.h (truncf): New declaration.
411         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
412         HAVE_DECL_TRUNCF.
413         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
414         HAVE_DECL_TRUNCF.
415         * doc/functions/truncf.texi: Mention the 'truncf' module.
416
417 2007-10-03  Bruno Haible  <bruno@clisp.org>
418
419         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
420         augmentation also for tests modules.
421         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
422         * modules/atexit-tests (Makefile.am): Likewise.
423         * modules/binary-io-tests (Makefile.am): Likewise.
424         * modules/c-strcase-tests (Makefile.am): Likewise.
425         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
426         * modules/canonicalize-tests (Makefile.am): Likewise.
427         * modules/closein-tests (Makefile.am): Likewise.
428         * modules/fprintf-posix-tests (Makefile.am): Likewise.
429         * modules/freadahead-tests (Makefile.am): Likewise.
430         * modules/fseek-tests (Makefile.am): Likewise.
431         * modules/fseeko-tests (Makefile.am): Likewise.
432         * modules/ftell-tests (Makefile.am): Likewise.
433         * modules/ftello-tests (Makefile.am): Likewise.
434         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
435         * modules/isnanl-tests (Makefile.am): Likewise.
436         * modules/lseek-tests (Makefile.am): Likewise.
437         * modules/mbscasecmp-tests (Makefile.am): Likewise.
438         * modules/mbscasestr-tests (Makefile.am): Likewise.
439         * modules/mbschr-tests (Makefile.am): Likewise.
440         * modules/mbscspn-tests (Makefile.am): Likewise.
441         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
442         * modules/mbspbrk-tests (Makefile.am): Likewise.
443         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
444         * modules/mbsrchr-tests (Makefile.am): Likewise.
445         * modules/mbsspn-tests (Makefile.am): Likewise.
446         * modules/mbsstr-tests (Makefile.am): Likewise.
447         * modules/printf-posix-tests (Makefile.am): Likewise.
448         * modules/snprintf-posix-tests (Makefile.am): Likewise.
449         * modules/sprintf-posix-tests (Makefile.am): Likewise.
450         * modules/tsearch-tests (Makefile.am): Likewise.
451         * modules/uniname/uniname-tests (Makefile.am): Likewise.
452         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
453         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
454         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
455         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
456         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
457         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
458         * modules/vprintf-posix-tests (Makefile.am): Likewise.
459         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
460         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
461         * modules/xstrtoimax-tests (Makefile.am): Likewise.
462         * modules/xstrtol-tests (Makefile.am): Likewise.
463         * modules/xstrtoumax-tests (Makefile.am): Likewise.
464         * modules/yesno-tests (Makefile.am): Likewise.
465
466 2007-10-03  Bruno Haible  <bruno@clisp.org>
467
468         * modules/trunc-tests: New file.
469         * tests/test-trunc.c: New file.
470
471         * modules/trunc: New file.
472         * lib/trunc.c: New file.
473         * m4/trunc.m4: New file.
474         * lib/math.in.h (trunc): New declaration.
475         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
476         HAVE_DECL_TRUNC.
477         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
478         HAVE_DECL_TRUNC.
479         * doc/functions/trunc.texi: Mention the 'trunc' module.
480
481 2007-10-03  Bruno Haible  <bruno@clisp.org>
482
483         * tests/test-fpending.c: New file, mostly copied
484         from coreutils/lib/t-fpending.c.
485         * modules/fpending-tests: New file.
486
487 2007-10-03  Bruno Haible  <bruno@clisp.org>
488
489         Port the stdio extensions to QNX (untested).
490         * lib/fseterr.c (fseterr): Add support for QNX.
491         * lib/fbufmode.c (fbufmode): Likewise.
492         * lib/freadable.c (freadable): Likewise.
493         * lib/fwritable.c (fwritable): Likewise.
494         * lib/freading.c (freading): Likewise.
495         * lib/fwriting.c (fwriting): Likewise.
496         * lib/freadahead.c (freadahed): Likewise.
497         * lib/fpurge.c (fpurge): Likewise.
498         * lib/fseeko.c (rpl_fseeko): Likewise.
499
500 2007-10-03  Bruno Haible  <bruno@clisp.org>
501             Jim Meyering  <jim@meyering.net>
502             Eric Blake  <ebb9@byu.net>
503
504         * doc/relocatable.texi: Use @command instead of @program.
505
506 2007-10-02  Jim Meyering  <jim@meyering.net>
507
508         Perform one more "_.h" -> ".in.h" substitution.
509         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
510         instead of unistd_.h here, too.
511
512 2007-10-01  Bruno Haible  <bruno@clisp.org>
513
514         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
515         Needed for the alloca-opt module.
516
517 2007-09-30  Bruno Haible  <bruno@clisp.org>
518
519         * lib/alloca.in.h: Renamed from lib/alloca_.h.
520         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
521         alloca_.h.
522         * lib/argz.in.h: Renamed from lib/argz_.h.
523         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
524         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
525         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
526         byteswap_.h.
527         * lib/dirent.in.h: Renamed from lib/dirent_.h.
528         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
529         dirent_.h.
530         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
531         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
532         fcntl_.h.
533         * lib/float.in.h: Renamed from lib/float_.h.
534         * modules/float (Files, Makefile.am): Use float.in.h instead of
535         float_.h.
536         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
537         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
538         fnmatch_.h.
539         * lib/getopt.in.h: Renamed from lib/getopt_.h.
540         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
541         getopt_.h.
542         * lib/glob.in.h: Renamed from lib/glob_.h.
543         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
544         * lib/iconv.in.h: Renamed from lib/iconv_.h.
545         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
546         iconv_.h.
547         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
548         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
549         inttypes_.h.
550         * lib/locale.in.h: Renamed from lib/locale_.h.
551         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
552         locale_.h.
553         * lib/math.in.h: Renamed from lib/math_.h.
554         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
555         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
556         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
557         of netinet_in_.h. Add dependency.
558         * lib/poll.in.h: Renamed from lib/poll_.h.
559         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
560         * lib/search.in.h: Renamed from lib/search_.h.
561         * modules/search (Files, Makefile.am): Use search.in.h instead of
562         search_.h.
563         * lib/signal.in.h: Renamed from lib/signal_.h.
564         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
565         _signal.h.
566         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
567         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
568         stdbool_.h.
569         * lib/stdint.in.h: Renamed from lib/stdint_.h.
570         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
571         stdint_.h.
572         * lib/stdio.in.h: Renamed from lib/stdio_.h.
573         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
574         stdio_.h.
575         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
576         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
577         stdlib_.h.
578         * lib/string.in.h: Renamed from lib/string_.h.
579         * modules/string (Files, Makefile.am): Use string.in.h instead of
580         string_.h.
581         * doc/gnulib-tool.texi (Initial import): Update.
582         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
583         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
584         of sys_select_.h. Add dependency.
585         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
586         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
587         of sys_socket_.h.
588         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
589         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
590         sys_stat_.h.
591         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
592         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
593         sys_time_.h.
594         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
595         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
596         sysexits_.h.
597         * lib/time.in.h: Renamed from lib/time_.h.
598         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
599         * lib/unistd.in.h: Renamed from lib/unistd_.h.
600         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
601         unistd_.h.
602         * lib/wchar.in.h: Renamed from lib/wchar_.h.
603         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
604         wchar_.h.
605         * lib/wctype.in.h: Renamed from lib/wctype_.h.
606         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
607         wctype_.h.
608         * build-aux/bootstrap (slurp): Update.
609         * lib/.cppi-disable: Update.
610
611 2007-09-30  Bruno Haible  <bruno@clisp.org>
612
613         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
614         Needed on BeOS.
615
616 2007-09-30  Bruno Haible  <bruno@clisp.org>
617
618         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
619
620 2007-09-29  Bruno Haible  <bruno@clisp.org>
621
622         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
623
624 2007-09-29  Bruno Haible  <bruno@clisp.org>
625
626         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
627         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
628         * build-aux/install-reloc: Compile also areadlink.c.
629         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
630
631 2007-09-29  Bruno Haible  <bruno@clisp.org>
632
633         * gnulib-tool (func_emit_initmacro_done): Indentation.
634
635 2007-09-29  Bruno Haible  <bruno@clisp.org>
636
637         * README: Add CVS checkout update instructions.
638         Info from Bob Proulx <bob@proulx.com>.
639
640 2007-09-28  Eric Blake  <ebb9@byu.net>
641
642         Provide move-if-change.
643         * build-aux/move-if-change: New file, based on best practice
644         rather than any canonical upstream location.
645
646 2007-09-28  Jim Meyering  <jim@meyering.net>
647
648         Fix canonicalize loop-detection corner case.
649         Do not attempt to stat the symlink values stored via seen_triple.
650         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
651         on linux-2.6.18, (but not 2.6.22).
652         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
653         triple_compare.  The former compares dev,ino,filename, while the latter
654         would actually stat dirname(filename) when dev and ino were equal.
655         * lib/hash-triple.c: Install <string.h>.
656         (STREQ): Define.
657         (triple_compare_ino_str): New function.
658         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
659
660 2007-09-28  Eric Blake  <ebb9@byu.net>
661
662         Enforce that AC_REPLACE_FUNCS files exist.
663         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
664         override check for typos.
665
666         Fix test-closein on Solaris 10.
667         * tests/test-closein.c (main): Don't assume stdin can be inherited
668         closed on all systems.
669         * tests/test-closein.sh: Likewise.
670         Reported by Piotr Tarnowski.
671
672 2007-09-28  Jim Meyering  <jim@meyering.net>
673
674         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
675
676 2007-09-27  Jim Meyering  <jim@meyering.net>
677
678         canonicalize: Avoid a false-positive cycle failure.
679         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
680         Sort.  Remove cycle-check.
681         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
682         not cycle-check.h.
683         (seen_triple): New function.
684         (canonicalize_filename_mode): Use it instead of cycle-check.
685         * tests/test-canonicalize.c: Add a test for this bug.
686         * tests/test-canonicalize.sh: Set up and run the test.
687
688         New module, file-set, from coreutils.
689         * modules/file-set: Define it.
690         * lib/file-set.c, lib/file-set.h: Implement.
691
692         New module, hash-triple, from coreutils.
693         * modules/hash-triple: Define it.
694         * lib/hash-triple.c, lib/hash-triple.h: Implement.
695
696 2007-09-25  Eric Blake  <ebb9@byu.net>
697
698         Fix strerror on Interix.
699         * lib/string_.h (strerror): Declare replacement.
700         * doc/functions/strerror.texi (strerror): Document the Interix
701         shortcoming.
702         * modules/string (Makefile.am): Support new hooks.
703         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
704         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
705         gl_FUNC_STRERROR_SEPARATE.
706         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
707         * lib/strerror.c (rpl_strerror): Provide replacement.
708         * modules/strerror (Depends-on): Add string.
709         (configure.ac): Detect use of module.
710         * tests/test-strerror.c: New file.
711         * modules/strerror-tests: New test module.
712         * modules/argp (Depends-on): Add strerror.
713         * modules/error (Depends-on): Likewise.
714         Reported by Martin Koeppe.
715
716 2007-09-24  Bruno Haible  <bruno@clisp.org>
717
718         * README: Update git instructions.
719
720 2007-09-24  Eric Blake  <ebb9@byu.net>
721
722         Revert fpending breakage from 2007-09-08.
723         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
724         __fpending.c.
725
726 2007-09-24  Jim Meyering  <jim@meyering.net>
727
728         filenamecat.c: Add a test.
729         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
730         showing how the function works when DIR is the empty string.
731
732 2007-09-21  Simon Josefsson  <simon@josefsson.org>
733
734         * tests/test-canonicalize.sh: Turn on executable bit.
735
736 2007-09-19  Eric Blake  <ebb9@byu.net>
737
738         * README: Update CVS instructions.
739
740 2007-09-18  Bruno Haible  <bruno@clisp.org>
741
742         * modules/areadlink: New file.
743         * lib/areadlink.h (areadlink): New declaration.
744         * lib/areadlink.c: New file, based on lib/xreadlink.c.
745
746 2007-09-17  Jim Meyering  <jim@meyering.net>
747
748         * lib/savewd.c (ESTALE) [!defined]: Define.
749         Reported to be required on Interix by Martin Koeppe.
750
751 2007-09-17  Bruno Haible  <bruno@clisp.org>
752
753         * gnulib-tool (func_version): Use $version.
754
755 2007-09-16  Bruno Haible  <bruno@clisp.org>
756
757         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
758         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
759         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
760         Reported by Greg Schafer <gschafer@zip.com.au>.
761
762 2007-09-15  Bruno Haible  <bruno@clisp.org>
763
764         * gnulib-tool (sed): Try a little harder to make bash understand the
765         alias.
766         Reported by Bruce Korb <bruce.korb@gmail.com>.
767
768 2007-09-13  Eric Blake  <ebb9@byu.net>
769
770         * ChangeLog: Remove conflict markers.
771
772 2007-09-13  Simon Josefsson  <simon@josefsson.org>
773
774         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
775         Reported by Bruno Haible <bruno@clisp.org>.
776
777 2007-09-12  Bruno Haible  <bruno@clisp.org>
778
779         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
780         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
781         is not defined.
782
783 2007-09-12  Eric Blake  <ebb9@byu.net>
784
785         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
786         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
787         Autoconf definition.
788         * modules/euidaccess (Depends-on): Add extensions, for
789         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
790         * modules/fnmatch (Depends-on): Likewise.
791         * modules/getaddrinfo (Depends-on): Likewise.
792         * modules/getdelim (Depends-on): Likewise.
793         * modules/getline (Depends-on): Likewise.
794         * modules/getsubopt (Depends-on): Likewise.
795         * modules/gettext (Depends-on): Likewise.
796         * modules/group-member (Depends-on): Likewise.
797         * modules/mbchar (Depends-on): Likewise.
798         * modules/memmem (Depends-on): Likewise.
799         * modules/mempcpy (Depends-on): Likewise.
800         * modules/memrchr (Depends-on): Likewise.
801         * modules/pagealign_alloc (Depends-on): Likewise.
802         * modules/readutmp (Depends-on): Likewise.
803         * modules/stpcpy (Depends-on): Likewise.
804         * modules/stpncpy (Depends-on): Likewise.
805         * modules/strchrnul (Depends-on): Likewise.
806         * modules/strndup (Depends-on): Likewise.
807         * modules/strsep (Depends-on): Likewise.
808         * modules/strverscmp (Depends-on): Likewise.
809         * modules/vasprintf (Depends-on): Likewise.
810         * modules/wcwidth (Depends-on): Likewise.
811         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
812         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
813         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
814         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
815         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
816         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
817         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
818         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
819         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
820         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
821         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
822         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
823         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
824         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
825         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
826         * m4/readutmp.m4 (gl_READUTMP): Likewise.
827         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
828         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
829         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
830         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
831         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
832         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
833         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
834         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
835         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
836         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
837         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
838         so that lock.m4 can be used in gettext without extensions module.
839
840 2007-09-11  Bruno Haible  <bruno@clisp.org>
841
842         * m4/isc-posix.m4: Remove file.
843         Suggested by Eric Blake.
844
845 2007-09-11  Eric Blake  <ebb9@byu.net>
846
847         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
848
849 2007-09-10  Bruno Haible  <bruno@clisp.org>
850
851         * posix-modules: Fix typo in error message.
852         Reported by Matt <mkraai@beckman.com>.
853
854 2007-09-09  Bruno Haible  <bruno@clisp.org>
855
856         * doc/functions/getdelim.texi: Update list of platforms lacking the
857         function.
858         * doc/functions/getline.texi: Likewise.
859
860 2007-09-09  Jim Meyering  <jim@meyering.net>
861
862         * lib/hash.c (hash_initialize): Detect calloc failure.
863         Reported by Bruno Haible.
864
865 2007-09-09  Bruno Haible  <bruno@clisp.org>
866
867         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
868         malloc or realloc fails.
869
870 2007-09-09  Bruno Haible  <bruno@clisp.org>
871
872         * modules/getcwd (Depends-on): Add malloc-posix.
873         * modules/glob (Depends-on): Likewise.
874         * modules/putenv (Depends-on): Likewise.
875         * modules/strdup (Depends-on): Likewise.
876         * modules/getdelim (Depends-on): Add realloc-posix.
877         * modules/read-file (Depends-on): Likewise.
878
879 2007-09-09  Bruno Haible  <bruno@clisp.org>
880
881         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
882         (gl_FUNC_MALLOC_POSIX): Require it.
883         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
884         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
885         * modules/realloc (Files): Add m4/malloc.m4.
886         * modules/calloc (Files): Likewise.
887
888 2007-09-09  Bruno Haible  <bruno@clisp.org>
889
890         * modules/malloc-posix: New file.
891         * modules/malloc (Depends-on): Add malloc-posix.
892         * lib/malloc.c: Include errno.h.
893         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
894         and a POSIX-compatible malloc into a single function. Set ENOMEM
895         when returning NULL.
896         * m4/malloc.m4: New file.
897         * doc/functions/malloc.texi: Mention the malloc-posix module.
898         * lib/stdlib_.h (malloc): New declaration.
899         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
900         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
901         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
902         and HAVE_MALLOC_POSIX.
903
904 2007-09-09  Bruno Haible  <bruno@clisp.org>
905
906         * modules/realloc-posix: New file.
907         * modules/realloc (Depends-on): Add realloc-posix.
908         * lib/realloc.c: Include errno.h.
909         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
910         and a POSIX-compatible realloc into a single function. Set ENOMEM
911         when returning NULL.
912         * m4/realloc.m4: New file.
913         * doc/functions/realloc.texi: Mention the realloc-posix module.
914         * lib/stdlib_.h (realloc): New declaration.
915         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
916         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
917         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
918         and HAVE_REALLOC_POSIX.
919
920 2007-09-09  Bruno Haible  <bruno@clisp.org>
921
922         * modules/calloc-posix: New file.
923         * modules/calloc (Depends-on): Add calloc-posix.
924         * lib/calloc.c: Include errno.h.
925         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
926         and a POSIX-compatible calloc into a single function. Set ENOMEM
927         when returning NULL.
928         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
929         * doc/functions/calloc.texi: Mention the calloc-posix module.
930         * lib/stdlib_.h (calloc): New declaration.
931         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
932         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
933         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
934         and HAVE_CALLOC_POSIX.
935
936 2007-09-09  Bruno Haible  <bruno@clisp.org>
937
938         Allow for modules to show an arbitrary notice.
939         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
940         * gnulib-tool: New option --extract-notice.
941         (func_usage): Document it.
942         (sed_extract_prog): Update.
943         (func_get_notice): New function.
944         (func_modules_notice): New function.
945         (func_import, func_create_testdir): Invoke it.
946         Suggested by Jim Meyering.
947
948 2007-09-09  Bruno Haible  <bruno@clisp.org>
949
950         * gnulib-tool: New options --verbose, --quiet.
951         (func_usage): Document them.
952         (verbose): New variable.
953         (func_execute_command): New function.
954         (func_import): Don't show the module list and the file list if
955         $verbose < 0.
956         (func_create_testdir): Likewise. Use func_execute_command.
957         (func_create_megatestdir): Use func_execute_command.
958
959 2007-09-08  Bruno Haible  <bruno@clisp.org>
960
961         * gnulib-tool (func_import): Prefer rsync over wget when available,
962         for fetching the PO files.
963
964 2007-09-08  Bruno Haible  <bruno@clisp.org>
965
966         * posix-modules: New file. Portions copied from gnulib-tool.
967         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
968
969 2007-09-08  Jim Meyering  <jim@meyering.net>
970
971         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
972         * lib/fpending.h: Rename from __fpending.h.
973         * lib/fpending.c: Rename from __fpending.c.
974         Include "fpending.h", not "__fpending.h".
975         * lib/__fpending.h, lib/__fpending.c: Remove files.
976         * modules/fpending (Files): Reflect new file names.
977         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
978
979 2007-09-08  Bruno Haible  <bruno@clisp.org>
980
981         * m4/inttypes-h.m4: Remove stub file.
982
983 2007-09-07  Simon Josefsson  <simon@josefsson.org>
984
985         * doc/headers/stdint.texi: Discuss #include_next issue.
986
987 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
988
989         * build-aux/bootstrap: Remove obsolete comment about wget --help.
990
991 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
992
993         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
994         in variable name.
995
996 2007-09-03  Jim Meyering  <jim@meyering.net>
997
998         New module: git-version-gen.
999         * modules/git-version-gen: New file.
1000
1001         Import changes from coreutils for bootstrap script.
1002
1003         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
1004
1005         bootstrap: uses rsync to download the .po files
1006         * build-aux/bootstrap (po_download_command_format): New global.
1007         (download_po_files): Use rsync.
1008         (update_po_files): Don't remove .po files after download,
1009         so future rsync runs can take advantage of the copies.
1010
1011         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
1012
1013         Solve the unnecessary-.po-file-regeneration problem once and for all.
1014         * build-aux/bootstrap (download_po_files): New function, renamed from
1015         get_translations.  Now, downloads, but doesn't update LINGUAS.
1016         (update_po_files): New function.
1017
1018         bootstrap: Ignore more.
1019         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
1020         uniwidth to e.g., lib/.gitignore.
1021         (slurp): Handle the sys_stat_.h -> sys mapping, too.
1022
1023         * build-aux/bootstrap: New setting: vc_ignore.
1024         (insert_sorted_if_absent): Create $file if absent.
1025         Adapt to new, possibly empty, list: $vc_ignore.
1026
1027         bootstrap: generate more ignorable names
1028         * build-aux/bootstrap (slurp): When generating ignorable names,
1029         also map .sin to .sed, .gperf to .c, and .y to .c.
1030
1031 2007-09-03  Jim Meyering  <jim@meyering.net>
1032
1033         * build-aux/git-version-gen: New file, from coreutils.  For details, see
1034         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
1035
1036 2007-09-02  Bruno Haible  <bruno@clisp.org>
1037
1038         Fix mis-recognition of 'mcs' on QNX 6.
1039         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
1040         output contains the string "Mono".
1041         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
1042         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
1043
1044 2007-09-01  Bruno Haible  <bruno@clisp.org>
1045
1046         Fix collision between uniwidth/* and linebreak modules.
1047         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
1048         u32_width): Remove declarations.
1049         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
1050         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
1051         streq3, streq2, streq1, streq0): Remove functions.
1052         (STREQ): Remove macro.
1053         (is_cjk_encoding): Remove function.
1054         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
1055         (uc_width, u8_width, u16_width, u32_width): Remove functions.
1056         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
1057         * NEWS: Document the change.
1058
1059 2007-09-01  Bruno Haible  <bruno@clisp.org>
1060
1061         * lib/streq.h: Add double-inclusion guard.
1062
1063 2007-09-01  Karl Berry  <karl@gnu.org>
1064
1065         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
1066
1067 2007-08-28  Jim Meyering  <jim@meyering.net>
1068
1069         Rename mreadlink_with_size to areadlink_with_size.
1070         * NEWS: Document the change.
1071         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
1072         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
1073         * lib/mreadlink.h: Rename this to...
1074         * lib/areadlink.h: ...this.
1075         * modules/mreadlink-with-size: Rename this to...
1076         * modules/areadlink-with-size: ...this.
1077         * lib/canonicalize.c: Reflect the renaming.
1078         * modules/canonicalize: Likewise.
1079
1080 2007-08-26  Bruno Haible  <bruno@clisp.org>
1081
1082         * gnulib-tool (func_import): When deciding which files to remove,
1083         consider also dangling symbolic links.
1084         Reported by Eric Blake.
1085
1086 2007-08-26  Bruno Haible  <bruno@clisp.org>
1087
1088         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
1089
1090 2007-08-23  Simon Josefsson  <simon@josefsson.org>
1091
1092         * lib/readline.c: Don't include getline.h, the prototype is now
1093         found in stdio.h.
1094
1095 2007-08-23  Jim Meyering  <jim@meyering.net>
1096
1097         Getdelim touchup.
1098         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
1099         around the funlockfile call, since funlockfile never sets errno.
1100         Don't set errno upon failed realloc.
1101
1102 2007-08-22  Eric Blake  <ebb9@byu.net>
1103
1104         Getline touchups.
1105         * lib/getdelim.c (getdelim): Revert regression that required *n to
1106         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
1107         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
1108         getdelim, rather than whether implementation is missing.
1109         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
1110         * lib/stdio_.h (getline): Also declare if replacement is
1111         required.
1112         * doc/functions/getdelim.texi: New file.
1113         * doc/functions/getline.texi: Likewise.
1114         * doc/gnulib.texi (Function Substitutes): Add new files.
1115         Reported by Bruno Haible.
1116
1117 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
1118
1119         * users.txt: Add Guile.
1120
1121 2007-08-22  Eric Blake  <ebb9@byu.net>
1122
1123         * tests/test-getdelim.c (main): Use remove, not unlink.
1124         * tests/test-getline.c (main): Likewise.
1125
1126         Move getline and getdelim into stdio.h, per POSIX 200x.
1127         * modules/getline (Files): Remove getline.h.
1128         (Depends-on): Add stdio.
1129         (configure.ac): Add module indicator.
1130         * modules/getdelim (Files): Remove getdelim.h.
1131         (Depends-on): Add stdio.
1132         (configure.ac): Add module indicator.
1133         * modules/stdio (Makefile.am): Work with new indicators.
1134         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
1135         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
1136         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
1137         * lib/getdelim.h: Delete.
1138         * lib/getline.h: Delete.
1139         * lib/stdio_.h (getdelim, getline): Declare.
1140         * modules/getdelim-tests: New module.
1141         * modules/getline-tests: Likewise.
1142         * tests/test-getdelim.c: New file.
1143         * tests/test-getline.c: Likewise.
1144         * NEWS: Document the change.
1145         * lib/getline.c: Update choice of header.
1146         * lib/csharpcomp.c: Likewise.
1147         * lib/getpass.c: Likewise.
1148         * lib/javacomp.c: Likewise.
1149         * lib/javaversion.c: Likewise.
1150         * lib/yesno.c: Likewise.
1151         * lib/getdelim.c: Likewise.
1152         (getdelim): Set errno on failure, and avoid memory leak.
1153
1154 2007-08-19  Bruno Haible  <bruno@clisp.org>
1155
1156         * modules/closein (Depends-on): Add freadahead.
1157         * lib/closein.c: Include freadahead.h.
1158         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
1159         is zero.
1160
1161 2007-08-19  Bruno Haible  <bruno@clisp.org>
1162
1163         * modules/freadahead-tests: New file.
1164         * tests/test-freadahead.sh: New file.
1165         * tests/test-freadahead.c: New file.
1166
1167         * modules/freadahead: New file.
1168         * lib/freadahead.h: New file.
1169         * lib/freadahead.c: New file.
1170         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
1171         fbufmode, fpurge, freadable, fwritable.
1172
1173 2007-08-19  Eric Blake  <ebb9@byu.net>
1174
1175         Test yesno in combination with closein.
1176         * lib/yesno.c (yesno): Document use of stdin.
1177         * modules/yesno-tests (Files): New module.
1178         * tests/test-yesno.c (main): New file.
1179         * tests/test-yesno.sh: Likewise.
1180
1181 2007-08-19  Bruno Haible  <bruno@clisp.org>
1182
1183         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
1184         * lib/fseeko.c (rpl_fseeko): Likewise.
1185         * lib/fseterr.c (fseterr): Likewise.
1186
1187 2007-08-19  Bruno Haible  <bruno@clisp.org>
1188
1189         * tests/test-lseek.c (main): Disable a test for BeOS.
1190         * doc/functions/lseek.texi: Document the BeOS bug.
1191
1192 2007-08-19  Bruno Haible  <bruno@clisp.org>
1193             Eric Blake  <ebb9@byu.net>
1194
1195         * lib/lseek.c: Include <sys/stat.h>.
1196         (rpl_lseek): Add workaround code also for Unix platforms.
1197         Needed for BeOS.
1198         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
1199         * doc/functions/lseek.texi: Document BeOS definiency.
1200
1201 2007-08-18  Bruno Haible  <bruno@clisp.org>
1202
1203         * modules/fstrcmp-tests: New file.
1204         * tests/test-fstrcmp.c: New file.
1205
1206 2007-08-18  Bruno Haible  <bruno@clisp.org>
1207
1208         * modules/fstrcmp: New file, from GNU gettext with modifications.
1209         * lib/fstrcmp.h: New file, from GNU gettext.
1210         * lib/fstrcmp.c: New file, from GNU gettext.
1211         * MODULES.html.sh (String handling): Add fstrcmp.
1212
1213 2007-08-18  Bruno Haible  <bruno@clisp.org>
1214
1215         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
1216         'bool'.
1217         (diag, compareseq): Remove const from the ctxt argument.
1218         (USE_HEURISTIC): Undefine at the end.
1219
1220 2007-08-18  Jim Meyering  <jim@meyering.net>
1221
1222         New file: lib/idcache.h
1223         * NEWS: Mention the addition.
1224         * modules/idcache (Files): Add lib/idcache.h
1225         * lib/idcache.c: Include "idcache.h".
1226         Don't include <sys/types.h>.
1227         Add a FIXME comment.
1228         Move file-scoped "static" declarations to the top.
1229         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
1230
1231 2007-08-17  Bruno Haible  <bruno@clisp.org>
1232         and Paul Eggert  <eggert@cs.ucla.edu>
1233
1234         * MODULES.html.sh: Add diffseq.
1235         * modules/diffseq: New file.
1236         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
1237         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
1238
1239 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
1240
1241         Import changes from coreutils for bootstrap script.
1242
1243         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
1244
1245         * build-aux/bootstrap (slurp): Work even in environments where
1246         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
1247         current code does not slurp files whose names start with ".", and
1248         this looks like it might be a troublesome area.
1249
1250         2007-07-11  Jim Meyering  <jim@meyering.net>
1251
1252         If there's a GPL vN copyright comment, require that N == 3.
1253
1254         2007-07-08  Jim Meyering  <jim@meyering.net>
1255
1256         Run the coreutils-specific code only if tests/Makefile.am.in exists.
1257         * build-aux/bootstrap (mam_template): Move definition out of loop.
1258
1259         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
1260
1261         * build-aux/bootstrap (symlink_to_dir): Rename function from
1262         symlink_to_gnulib.  Add a directory parameter.  Update all
1263         callers.
1264         (cp_mark_as_generated): Also check for -- and link to -- files in
1265         gl/.
1266
1267         2007-07-08  Jim Meyering  <jim@meyering.net>
1268
1269         Adapt to deeper hierarchy in gnulib.
1270         * build-aux/bootstrap (symlink_to_dir): If the destination
1271         directory doesn't exist, create it. This is required at least for
1272         "lib/uniwidth/cjk.h".
1273
1274         2007-05-15  Jim Meyering  <jim@meyering.net>
1275
1276         * build-aux/bootstrap: Now that generated Makefile.am files
1277         are no longer under version control, they must be created at
1278         bootstrap time.
1279
1280 2007-08-14  Ben Pfaff  <blp@gnu.org>
1281
1282         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
1283
1284 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
1285
1286         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
1287         given the changes below.
1288         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
1289         even on hosts that have padding bits beyond the supported 64.
1290
1291 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
1292
1293         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
1294         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
1295         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
1296         depends on it.
1297         (xstrtol_error): Remove.
1298         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
1299         but with a different signature.
1300         (ATTRIBUTE_NORETURN, __attribute__): New macros.
1301         * lib/xstrtol-error.c: Include exitfail.h.
1302         (xstrtol_fatal): New function, with a different signature from the
1303         old xstrtol_error, so that the caller need not worry about passing
1304         in an exit status, or about storage management of the option argument.
1305         (xstrtol_error): Now a static function.  Redo signature to
1306         implement xstrtol_fatal.  Output the correct number of hyphens in
1307         front of the option so that the caller need not worry about
1308         storage management.
1309         (N_): New macro.
1310         (_): Remove; not used now.
1311         * modules/xstrtol: Depend on getopt.
1312         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
1313         of old STRTOL_FATAL_ERROR macro.
1314         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
1315         of test program.
1316         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
1317         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
1318
1319 2007-08-08  Eric Blake  <ebb9@byu.net>
1320
1321         * lib/xstrtol-error.c: Add missing include.
1322
1323         Move xstrtol messages into gnulib domain, when --pobase is used.
1324         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
1325         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
1326         * modules/xstrtol (Files): Distribute new file.
1327         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
1328         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
1329         * tests/test-xstrtol.c: ...into new file.
1330         * tests/test-xstrtoul.c: Also test xstrtoul.
1331         * tests/test-xstrtoimax.c: Also test xstrtoimax.
1332         * tests/test-xstrtoumax.c: Also test xstrtoumax.
1333         * tests/test-xstrtol.sh: Drive the tests.
1334         * tests/test-xstrtoimax.sh: Likewise.
1335         * tests/test-xstrtoumax.sh: Likewise.
1336         * modules/xstrtol-tests: New module.
1337         * modules/xstrtoimax-tests: Likewise.
1338         * modules/xstrtoumax-tests: Likewise.
1339
1340 2007-08-08  Jim Meyering  <jim@meyering.net>
1341
1342         New function: mfile_name_concat.
1343         * lib/filenamecat.c (mfile_name_concat): New function, just like
1344         file_name_concat, but return NULL upon failure rather than exiting
1345         with a diagnostic.
1346         * lib/filenamecat.h: Declare it.
1347
1348 2007-08-07  Bruno Haible  <bruno@clisp.org>
1349
1350         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
1351         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
1352         warning from gcc.
1353         Reported by Eric Blake.
1354
1355 2007-08-07  Simon Josefsson  <simon@josefsson.org>
1356
1357         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
1358         * modules/crypto/arcfour (License): Likewise.
1359         * modules/crypto/des-tests (License): Likewise.
1360         * modules/crypto/gc-arctwo-tests (License): Likewise.
1361         * modules/crypto/gc-des-tests (License): Likewise.
1362         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
1363         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
1364         * modules/crypto/gc-md2-tests (License): Likewise.
1365         * modules/crypto/gc-md4-tests (License): Likewise.
1366         * modules/crypto/gc-md5-tests (License): Likewise.
1367         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
1368         * modules/crypto/gc-rijndael-tests (License): Likewise.
1369         * modules/crypto/gc-sha1-tests (License): Likewise.
1370         * modules/crypto/gc-tests (License): Likewise.
1371         * modules/crypto/hmac-md5 (License): Likewise.
1372         * modules/crypto/hmac-sha1 (License): Likewise.
1373         * modules/crypto/md2-tests (License): Likewise.
1374         * modules/crypto/md4-tests (License): Likewise.
1375         * modules/crypto/md5 (License): Likewise.
1376         * modules/crypto/rijndael (License): Likewise.
1377         * modules/crypto/sha1 (License): Likewise.
1378         * modules/memxor (License): Likewise.
1379
1380 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
1381         and Bruno Haible  <bruno@clisp.org>
1382
1383         * NEWS: Describe interface changes to human, xstrtol.
1384         * lib/human.h: Include <xstrtol.h>.
1385         (human_options): Return enum strtol_error, not int.  Remove
1386         bool arg; take int * instead.
1387         * lib/human.c: Don't include "gettext.h".
1388         (_): Remove; no longer used.
1389         Don't include <xstrtol.h>, since human.h does it.
1390         (human_options): Adjust to abovementioned interface changes.
1391         Do not report error to stderr; that's now the caller's
1392         responsibility.
1393         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
1394         interface change.
1395         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
1396         Str, Argument_type_string.  All uses changed.  Put " argument"
1397         in diagnostics to make them clearer.  Change wording of suffix
1398         message for clarity.
1399         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
1400         Argument_type_string.
1401         (STRTOL_FATAL_WARN): Remove; no longer used.
1402         * modules/human (Depends-on): Remove gettext-h.
1403
1404 2007-08-06  Simon Josefsson  <simon@josefsson.org>
1405
1406         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
1407
1408 2007-07-31  Bruno Haible  <bruno@clisp.org>
1409
1410         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
1411         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
1412         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
1413
1414 2007-07-31  Bruno Haible  <bruno@clisp.org>
1415
1416         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
1417         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
1418
1419 2007-07-30  Bruno Haible  <bruno@clisp.org>
1420
1421         * modules/base64 (License): Use the synonymous term "LGPLv2+".
1422         * modules/c-ctype (License): Likewise.
1423         * modules/c-strcase (License): Likewise.
1424         * modules/check-version (License): Likewise.
1425         * modules/iconv (License): Likewise.
1426         * modules/iconv_open (License): Likewise.
1427         * modules/read-file (License): Likewise.
1428         * modules/striconv (License): Likewise.
1429         * modules/strverscmp (License): Likewise.
1430         * modules/vasprintf (License): Likewise.
1431         * modules/crypto/des (License): Likewise.
1432         * modules/crypto/gc (License): Likewise.
1433         * modules/crypto/gc-arcfour (License): Likewise.
1434         * modules/crypto/gc-arctwo (License): Likewise.
1435         * modules/crypto/gc-des (License): Likewise.
1436         * modules/crypto/gc-hmac-md5 (License): Likewise.
1437         * modules/crypto/gc-hmac-sha1 (License): Likewise.
1438         * modules/crypto/gc-md2 (License): Likewise.
1439         * modules/crypto/gc-md4 (License): Likewise.
1440         * modules/crypto/gc-md5 (License): Likewise.
1441         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
1442         * modules/crypto/gc-random (License): Likewise.
1443         * modules/crypto/gc-rijndael (License): Likewise.
1444         * modules/crypto/gc-sha1 (License): Likewise.
1445         * modules/crypto/md2 (License): Likewise.
1446         * modules/crypto/md4 (License): Likewise.
1447
1448 2007-07-30  Jim Meyering  <jim@meyering.net>
1449
1450         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
1451         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
1452         it has valid stat data.  This bug would cause du not to count the
1453         sizes of inaccessible directories.
1454         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
1455         in <http://bugzilla.redhat.com/250077>.
1456
1457 2007-07-25  Peter O'Gorman  <peter@pogma.com>
1458             Bruno Haible  <bruno@clisp.org>
1459
1460         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
1461         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
1462         #include_next, gives a diagnostic about it, but reports no error in
1463         the exit code.
1464         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
1465
1466 2007-07-24  Ben Pfaff  <blp@gnu.org>
1467
1468         Improve name: "count-one-bits" is better than "popcount".
1469         * MODULES.html.sh: Update name.
1470         * lib/popcount.h: Renamed lib/count-one-bits.h.
1471         (popcount): Renamed count_one_bits.
1472         (popcountl): Renamed count_one_bits_l.
1473         (popcountll): Renamed count_one_bits_ll.
1474         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
1475         * modules/popcount: Renamed module/count-one-bits.
1476         * modules/popcount-tests: Renamed module/count-one-bits-tests.
1477         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
1478
1479 2007-07-23  Ben Pfaff  <blp@gnu.org>
1480
1481         * lib/popcount.h (popcount32): Reduce size of constants, to allow
1482         better code generation, and add U to large constants to avoid
1483         warnings, in non-GCC case.
1484         Suggested by Bruno Haible.
1485
1486 2007-07-23  Ben Pfaff  <blp@gnu.org>
1487
1488         * lib/popcount.h: Use verify_true instead of if...abort.
1489         * modules/popcount: Depend on verify module.
1490         Suggested by Jim Meyering.
1491
1492 2007-07-23  Bruno Haible  <bruno@clisp.org>
1493
1494         * gnulib-tool (func_import): Create a .cvsignore file also when the
1495         directory is not yet in CVS but the toplevel directory is. When
1496         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
1497         Reported by Karl Berry.
1498
1499 2007-07-22  Ben Pfaff  <blp@gnu.org>
1500
1501         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
1502         case.
1503         Suggested by Eric Blake.
1504
1505 2007-07-22  Ben Pfaff  <blp@gnu.org>
1506
1507         New module: popcount.
1508         * MODULES.html.sh: Add popcount.
1509         * modules/popcount: New file.
1510         * modules/popcount-tests: New file.
1511         * tests/test-popcount.c: New file.
1512         * lib/popcount.h: New file.
1513         * m4/popcount.m4: New file.
1514
1515 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
1516
1517         * build-aux/announce-gen: Update to GPLv3.
1518
1519         * build-aux/config.guess: Update from config.
1520
1521 2007-07-21  Bruno Haible  <bruno@clisp.org>
1522
1523         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
1524         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
1525
1526 2007-07-20  Jim Meyering  <jim@meyering.net>
1527
1528         * check-module: Diagnose a self-dependency.
1529
1530 2007-07-19  Bruno Haible  <bruno@clisp.org>
1531
1532         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
1533         empty.
1534         Reported by Eric Blake.
1535
1536 2007-07-18  Bruno Haible  <bruno@clisp.org>
1537
1538         * gnulib-tool: New options --po-base, --po-domain.
1539         (func_usage): Document them.
1540         (pobase, po_domain): New variables.
1541         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
1542         DEFAULT_TEXT_DOMAIN.
1543         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
1544         (func_import): Consider pobase and po_domain. Create a po/ directory.
1545         (func_create_testdir): Set pobase and po_domain to empty.
1546         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
1547         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
1548
1549 2007-07-18  Bruno Haible  <bruno@clisp.org>
1550
1551         * gnulib-tool (func_get_automake_snippet): Synthesize also an
1552         EXTRA_DIST augmentation for files in build-aux/.
1553
1554 2007-07-16  Bruno Haible  <bruno@clisp.org>
1555
1556         * modules/lseek (License): Use the synonymous term "LGPLv2+".
1557         * modules/getdelim (License): Likewise.
1558
1559 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1560
1561         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
1562         * modules/d-type (License): Likewise.
1563         * modules/extensions (License): Likewise.
1564         * modules/fnmatch (License): Likewise.
1565         * modules/fseeko (License): Likewise.
1566         * modules/getaddrinfo (License): Likewise.
1567         * modules/getline (License): Likewise.
1568         * modules/getlogin_r (License): Likewise.
1569         * modules/getpass (License): Likewise.
1570         * modules/gettimeofday (License): Likewise.
1571         * modules/glob (License): Likewise.
1572         * modules/inet_ntop (License): Likewise.
1573         * modules/malloc (License): Likewise.
1574         * modules/malloca (License): Likewise.
1575         * modules/memmem (License): Likewise.
1576         * modules/mempcpy (License): Likewise.
1577         * modules/memset (License): Likewise.
1578         * modules/minmax (License): Likewise.
1579         * modules/mktime (License): Likewise.
1580         * modules/netinet_in (License): Likewise.
1581         * modules/pathmax (License): Likewise.
1582         * modules/poll (License): Likewise.
1583         * modules/regex (License): Likewise.
1584         * modules/snprintf (License): Likewise.
1585         * modules/stdbool (License): Likewise.
1586         * modules/stdint (License): Likewise.
1587         * modules/stdio (License): Likewise.
1588         * modules/strcase (License): Likewise.
1589         * modules/strcasestr (License): Likewise.
1590         * modules/strdup (License): Likewise.
1591         * modules/string (License): Likewise.
1592         * modules/strndup (License): Likewise.
1593         * modules/strnlen (License): Likewise.
1594         * modules/strpbrk (License): Likewise.
1595         * modules/strptime (License): Likewise.
1596         * modules/strsep (License): Likewise.
1597         * modules/sys_select (License): Likewise.
1598         * modules/sys_socket (License): Likewise.
1599         * modules/sys_stat (License): Likewise.
1600         * modules/sys_time (License): Likewise.
1601         * modules/time (License): Likewise.
1602         * modules/time_r (License): Likewise.
1603         * modules/timegm (License): Likewise.
1604         * modules/unistd (License): Likewise.
1605         * modules/vsnprintf (License): Likewise.
1606         * modules/wctype (License): Likewise.
1607
1608 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1609
1610         * modules/argz (License): LGPLv2+.
1611
1612 2007-07-15  Karl Berry  <karl@gnu.org>
1613
1614         * doc/gnulib.texi: revise node structure per new fdl.texi.
1615
1616 2007-07-14  Bruno Haible  <bruno@clisp.org>
1617
1618         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
1619         the output file.
1620         * lib/uniname/uninames.h: Regenerated.
1621
1622 2007-07-14  Karl Berry  <karl@gnu.org>
1623
1624         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
1625         omitting sectioning and index commands.
1626
1627 2007-07-13  Bruno Haible  <bruno@clisp.org>
1628
1629         New gnulib-tool option --more-symlinks.
1630         * gnulib-tool (func_usage): Document --more-symlinks.
1631         (do_copyrights): New variable.
1632         Recognize option --more-symlinks.
1633         (func_import): Don't add a copyright notice transform to
1634         sed_transform_lib_file if do_copyrights is empty.
1635
1636 2007-07-13  Bruno Haible  <bruno@clisp.org>
1637
1638         * lib/vasnprintf.c (decimal_point_char): Define also if
1639         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
1640         && !NEED_PRINTF_DIRECTIVE_A.
1641         Reported by Clemens Koller <clemens.koller@anagramm.de> via
1642         Gary V. Vaughan <gary@gnu.org>.
1643
1644 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
1645
1646         * lib/inttypes_.h: Undo previous change, since it was fixed
1647         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
1648
1649 2007-07-13  Bruno Haible  <bruno@clisp.org>
1650
1651         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
1652         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
1653
1654 2007-07-13  Jim Meyering  <jim@meyering.net>
1655
1656         df: Don't fail for Tru64's "file-on-file mount".
1657         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
1658         so we fall through and use statfs instead.  Details here:
1659         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
1660         Reported by Albert Chin.
1661
1662 2007-07-13  Bruno Haible  <bruno@clisp.org>
1663
1664         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
1665         * modules/configmake (License): Likewise.
1666         * modules/gettext (License): Likewise.
1667         * modules/gettext-h (License): Likewise.
1668         * modules/include_next (License): Likewise.
1669         * modules/link-warning (License): Likewise.
1670         * modules/localcharset (License): Likewise.
1671         * modules/localename (License): Likewise.
1672         * modules/lock (License): Likewise.
1673         * modules/relocatable-lib-lgpl (License): Likewise.
1674         * modules/size_max (License): Likewise.
1675         * modules/vasnprintf (License): Likewise.
1676         * modules/wchar (License): Likewise.
1677         * modules/xsize (License): Likewise.
1678
1679 2007-07-13  Bruno Haible  <bruno@clisp.org>
1680
1681         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
1682         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
1683
1684 2007-07-12  Bruno Haible  <bruno@clisp.org>
1685
1686         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
1687         in the modules files.
1688
1689 2007-07-11  Karl Berry  <karl@gnu.org>
1690
1691         * MODULES.html.sh (func_module): use
1692          sed -e '\|^'"${includefile}"'$|d'
1693          instead of /.../d, to avoid errors on $includefile's containing /.
1694
1695 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
1696
1697         * gnulib-tool (func_import): Avoid duplication of --avoid
1698         statements
1699         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
1700         names to `_' in variable names.
1701
1702 2007-07-10  Eric Blake  <ebb9@byu.net>
1703
1704         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
1705         * NEWS: Document this change.
1706
1707 2007-07-08  Bruno Haible  <bruno@clisp.org>
1708
1709         Update to Unicode 5.0.
1710         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
1711         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
1712         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
1713         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
1714         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
1715         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
1716         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
1717         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
1718         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
1719         U+10A3F, U+1D242..U+1D244.
1720         (nonspacing_table_ind): Update.
1721         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
1722         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
1723
1724 2007-07-08  Bruno Haible  <bruno@clisp.org>
1725
1726         Update to Unicode 5.0.
1727         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
1728         code transform. Extend the name index field of unicode_name_to_code and
1729         unicode_code_to_name from 16 to 24 bits.
1730         * lib/uniname/uniname.c (unicode_character_name,
1731         unicode_name_character): Add the range 0x12xxx to the code transform.
1732         * lib/uniname/uninames.h: Regenerated.
1733         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
1734
1735 2007-07-07  Bruno Haible  <bruno@clisp.org>
1736
1737         * modules/wcwidth-tests: New file.
1738         * tests/test-wcwidth.c: New file.
1739
1740         Work around MacOS X wcwidth() bug.
1741         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
1742         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
1743         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
1744         original wcwidth in non-UTF-8 locales.
1745         * modules/wcwidth (Depends-on): Add localcharset, streq,
1746         uniwidth/width.
1747         * doc/functions/wcwidth.texi: Update.
1748
1749 2007-07-07  Bruno Haible  <bruno@clisp.org>
1750
1751         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
1752         (wcwidth): New declaration.
1753         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
1754         macros.
1755         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
1756         here. Prepare for creating <wchar.h> unconditionally.
1757         * modules/wchar (Depends-on): Add link-warning.
1758         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
1759         REPLACE_WCWIDTH, and GL_LINK_WARNING.
1760         * lib/wcwidth.h: Remove file.
1761         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
1762         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
1763         * modules/wcwidth (Files): Remove lib/wcwidth.h.
1764         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
1765         (Include): Replace wcwidth.h with <wchar.h>.
1766         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
1767         * lib/mbchar.h: Don't include wcwidth.h.
1768         * lib/mbswidth.c: Likewise.
1769         * NEWS: Mention the change.
1770
1771 2007-07-07  Bruno Haible  <bruno@clisp.org>
1772
1773         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
1774         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
1775         definition with an external declaration.
1776         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
1777         defined as a function. Remove AC_C_INLINE requirement.
1778         * modules/wcwidth (Files): Add lib/wcwidth.c.
1779         (Makefile.am): Remove redundant statement.
1780
1781 2007-07-07  Bruno Haible  <bruno@clisp.org>
1782
1783         * MODULES.html.sh (Unicode string functions): Add the new modules.
1784
1785         * tests/uniwidth/test-u32-strwidth.c: New file.
1786         * modules/uniwidth/u32-strwidth-tests: New file.
1787
1788         * lib/uniwidth/u32-strwidth.c: New file.
1789         * modules/uniwidth/u32-strwidth: New file.
1790
1791         * tests/uniwidth/test-u16-strwidth.c: New file.
1792         * modules/uniwidth/u16-strwidth-tests: New file.
1793
1794         * lib/uniwidth/u16-strwidth.c: New file.
1795         * modules/uniwidth/u16-strwidth: New file.
1796
1797         * tests/uniwidth/test-u8-strwidth.c: New file.
1798         * modules/uniwidth/u8-strwidth-tests: New file.
1799
1800         * lib/uniwidth/u8-strwidth.c: New file.
1801         * modules/uniwidth/u8-strwidth: New file.
1802
1803         * tests/uniwidth/test-u32-width.c: New file.
1804         * modules/uniwidth/u32-width-tests: New file.
1805
1806         * lib/uniwidth/u32-width.c: New file.
1807         * modules/uniwidth/u32-width: New file.
1808
1809         * tests/uniwidth/test-u16-width.c: New file.
1810         * modules/uniwidth/u16-width-tests: New file.
1811
1812         * lib/uniwidth/u16-width.c: New file.
1813         * modules/uniwidth/u16-width: New file.
1814
1815         * tests/uniwidth/test-u8-width.c: New file.
1816         * modules/uniwidth/u8-width-tests: New file.
1817
1818         * lib/uniwidth/u8-width.c: New file.
1819         * modules/uniwidth/u8-width: New file.
1820
1821         * tests/uniwidth/test-uc_width.c: New file.
1822         * modules/uniwidth/width-tests: New file.
1823
1824         * lib/uniwidth/width.c: New file, from GNU libiconv.
1825         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
1826         * modules/uniwidth/width: New file.
1827
1828         * lib/uniwidth.h: New file, from GNU libiconv.
1829         * modules/uniwidth/base: New file.
1830
1831 2007-07-07  Bruno Haible  <bruno@clisp.org>
1832
1833         * lib/uniname.h: New file, from GNU gettext.
1834         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
1835         * lib/uniname/uninames.h: New file, from GNU gettext.
1836         * lib/uniname/uniname.c: New file, from GNU gettext.
1837         * tests/uniname/test-uninames.sh: New file.
1838         * tests/uniname/test-uninames.c: New file, from GNU gettext.
1839         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
1840         * modules/uniname/base: New file.
1841         * modules/uniname/uniname: New file.
1842         * modules/uniname/uniname-tests: New file.
1843         * MODULES.html.sh (Unicode string functions): Add the new modules.
1844
1845 2007-07-06  Bruno Haible  <bruno@clisp.org>
1846
1847         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
1848
1849 2007-07-06  Bruno Haible  <bruno@clisp.org>
1850
1851         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
1852         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
1853         includes <cygwin/sys_time.h> which includes <sys/select.h> which
1854         include <sys/time.h>.
1855         Reported by Eric Blake.
1856
1857 2007-07-06  Eric Blake  <ebb9@byu.net>
1858
1859         Fix testing canonicalize on cygwin.
1860         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
1861         Revert patch from 2007-06-19.
1862         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
1863         canonicalize module is also in use.
1864         * tests/test-canonicalize.c: New file.
1865         * tests/test-canonicalize.sh: Likewise.
1866         * modules/canonicalize-tests: Likewise.
1867
1868 2007-07-06  Jim Meyering  <jim@meyering.net>
1869
1870         * lib/getugroups.c (getugroups): Detect getgrent failure.
1871         Adjust comment to reflect reality: this function may return -1.
1872
1873 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
1874
1875         * build-aux/bootstrap (TP_URL,get_translations): Update to use
1876         the new TP address.
1877         (usage): Fix typo
1878         (gnulib_mk): New variable.
1879
1880 2007-07-05  Jim Meyering  <jim@meyering.net>
1881
1882         Don't let endgrent clobber errno, no matter how improbable.
1883         * lib/getugroups.c (getugroups): Save and restore errno around
1884         endgrent call.
1885
1886         Close the group DB even when failing with 2^31 or more members.
1887         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
1888
1889 2007-07-04  Jim Meyering  <jim@meyering.net>
1890
1891         * lib/getugroups.h: New file.
1892         * lib/getugroups.c: Include "getugroups.h".
1893         Remove uses of "register" keyword.
1894         Move local variable, "cp", down into scope where used.
1895         Give "username" parameter the "const" attribute.
1896         * modules/getugroups (Files): Add lib/getugroups.h
1897
1898 2007-07-04  Karl Berry  <karl@gnu.org>
1899
1900         * MODULES.html.sh (func_all_modules): Complete rename of
1901         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
1902
1903 2007-07-02  Bruno Haible  <bruno@clisp.org>
1904
1905         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
1906         mode, when inttypes.h comes from gnulib.
1907         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
1908
1909 2007-07-02  Simon Josefsson  <simon@josefsson.org>
1910
1911         * NEWS: Mention lgpl module name change.
1912
1913         * modules/lgpl-2.1: Renamed from lgpl.
1914
1915         * NEWS: Mention gpl module name change.
1916
1917         * modules/gpl-3.0: New file, based on gpl-2.0.
1918
1919         * modules/gpl-2.0: Renamed from gpl.
1920
1921         * modules/gpl: Fix filename, doc/gpl.texi is now found at
1922         doc/gpl-2.0.texi.
1923
1924 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
1925
1926         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
1927         #define __STDC_LIMIT_MACROS temporarily while including
1928         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
1929         Problem reported by Joel E. Denny in
1930         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
1931
1932 2007-07-01  Bruno Haible  <bruno@clisp.org>
1933
1934         * lib/unistdio.h: New file.
1935         * lib/unistdio/u-asnprintf.h: New file.
1936         * lib/unistdio/u-asprintf.h: New file.
1937         * lib/unistdio/u-printf-args.c: New file.
1938         * lib/unistdio/u-printf-args.h: New file.
1939         * lib/unistdio/u-printf-parse.h: New file.
1940         * lib/unistdio/u-snprintf.h: New file.
1941         * lib/unistdio/u-sprintf.h: New file.
1942         * lib/unistdio/u-vasprintf.h: New file.
1943         * lib/unistdio/u-vsnprintf.h: New file.
1944         * lib/unistdio/u-vsprintf.h: New file.
1945         * lib/unistdio/ulc-asnprintf.c: New file.
1946         * lib/unistdio/ulc-asprintf.c: New file.
1947         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
1948         * lib/unistdio/ulc-printf-parse.c: New file.
1949         * lib/unistdio/ulc-snprintf.c: New file.
1950         * lib/unistdio/ulc-sprintf.c: New file.
1951         * lib/unistdio/ulc-vasnprintf.c: New file.
1952         * lib/unistdio/ulc-vasprintf.c: New file.
1953         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
1954         * lib/unistdio/ulc-vsnprintf.c: New file.
1955         * lib/unistdio/ulc-vsprintf.c: New file.
1956         * lib/unistdio/u8-asnprintf.c: New file.
1957         * lib/unistdio/u8-asprintf.c: New file.
1958         * lib/unistdio/u8-printf-parse.c: New file.
1959         * lib/unistdio/u8-snprintf.c: New file.
1960         * lib/unistdio/u8-sprintf.c: New file.
1961         * lib/unistdio/u8-vasnprintf.c: New file.
1962         * lib/unistdio/u8-vasprintf.c: New file.
1963         * lib/unistdio/u8-vsnprintf.c: New file.
1964         * lib/unistdio/u8-vsprintf.c: New file.
1965         * lib/unistdio/u8-u8-asnprintf.c: New file.
1966         * lib/unistdio/u8-u8-asprintf.c: New file.
1967         * lib/unistdio/u8-u8-snprintf.c: New file.
1968         * lib/unistdio/u8-u8-sprintf.c: New file.
1969         * lib/unistdio/u8-u8-vasnprintf.c: New file.
1970         * lib/unistdio/u8-u8-vasprintf.c: New file.
1971         * lib/unistdio/u8-u8-vsnprintf.c: New file.
1972         * lib/unistdio/u8-u8-vsprintf.c: New file.
1973         * lib/unistdio/u16-asnprintf.c: New file.
1974         * lib/unistdio/u16-asprintf.c: New file.
1975         * lib/unistdio/u16-printf-parse.c: New file.
1976         * lib/unistdio/u16-snprintf.c: New file.
1977         * lib/unistdio/u16-sprintf.c: New file.
1978         * lib/unistdio/u16-vasnprintf.c: New file.
1979         * lib/unistdio/u16-vasprintf.c: New file.
1980         * lib/unistdio/u16-vsnprintf.c: New file.
1981         * lib/unistdio/u16-vsprintf.c: New file.
1982         * lib/unistdio/u16-u16-asnprintf.c: New file.
1983         * lib/unistdio/u16-u16-asprintf.c: New file.
1984         * lib/unistdio/u16-u16-snprintf.c: New file.
1985         * lib/unistdio/u16-u16-sprintf.c: New file.
1986         * lib/unistdio/u16-u16-vasnprintf.c: New file.
1987         * lib/unistdio/u16-u16-vasprintf.c: New file.
1988         * lib/unistdio/u16-u16-vsnprintf.c: New file.
1989         * lib/unistdio/u16-u16-vsprintf.c: New file.
1990         * lib/unistdio/u32-asnprintf.c: New file.
1991         * lib/unistdio/u32-asprintf.c: New file.
1992         * lib/unistdio/u32-printf-parse.c: New file.
1993         * lib/unistdio/u32-snprintf.c: New file.
1994         * lib/unistdio/u32-sprintf.c: New file.
1995         * lib/unistdio/u32-vasnprintf.c: New file.
1996         * lib/unistdio/u32-vasprintf.c: New file.
1997         * lib/unistdio/u32-vsnprintf.c: New file.
1998         * lib/unistdio/u32-vsprintf.c: New file.
1999         * lib/unistdio/u32-u32-asnprintf.c: New file.
2000         * lib/unistdio/u32-u32-asprintf.c: New file.
2001         * lib/unistdio/u32-u32-snprintf.c: New file.
2002         * lib/unistdio/u32-u32-sprintf.c: New file.
2003         * lib/unistdio/u32-u32-vasnprintf.c: New file.
2004         * lib/unistdio/u32-u32-vasprintf.c: New file.
2005         * lib/unistdio/u32-u32-vsnprintf.c: New file.
2006         * lib/unistdio/u32-u32-vsprintf.c: New file.
2007         * tests/unistdio/test-ulc-asnprintf1.c: New file.
2008         * tests/unistdio/test-ulc-asnprintf1.h: New file.
2009         * tests/unistdio/test-ulc-printf1.h: New file.
2010         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
2011         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
2012         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
2013         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
2014         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
2015         * tests/unistdio/test-ulc-vasprintf1.c: New file.
2016         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
2017         * tests/unistdio/test-ulc-vsprintf1.c: New file.
2018         * tests/unistdio/test-u8-asnprintf1.c: New file.
2019         * tests/unistdio/test-u8-asnprintf1.h: New file.
2020         * tests/unistdio/test-u8-printf1.h: New file.
2021         * tests/unistdio/test-u8-vasnprintf1.c: New file.
2022         * tests/unistdio/test-u8-vasnprintf2.c: New file.
2023         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
2024         * tests/unistdio/test-u8-vasnprintf3.c: New file.
2025         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
2026         * tests/unistdio/test-u8-vasprintf1.c: New file.
2027         * tests/unistdio/test-u8-vsnprintf1.c: New file.
2028         * tests/unistdio/test-u8-vsprintf1.c: New file.
2029         * tests/unistdio/test-u16-asnprintf1.c: New file.
2030         * tests/unistdio/test-u16-asnprintf1.h: New file.
2031         * tests/unistdio/test-u16-printf1.h: New file.
2032         * tests/unistdio/test-u16-vasnprintf1.c: New file.
2033         * tests/unistdio/test-u16-vasnprintf2.c: New file.
2034         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
2035         * tests/unistdio/test-u16-vasnprintf3.c: New file.
2036         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
2037         * tests/unistdio/test-u16-vasprintf1.c: New file.
2038         * tests/unistdio/test-u16-vsnprintf1.c: New file.
2039         * tests/unistdio/test-u16-vsprintf1.c: New file.
2040         * tests/unistdio/test-u32-asnprintf1.c: New file.
2041         * tests/unistdio/test-u32-asnprintf1.h: New file.
2042         * tests/unistdio/test-u32-printf1.h: New file.
2043         * tests/unistdio/test-u32-vasnprintf1.c: New file.
2044         * tests/unistdio/test-u32-vasnprintf2.c: New file.
2045         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
2046         * tests/unistdio/test-u32-vasnprintf3.c: New file.
2047         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
2048         * tests/unistdio/test-u32-vasprintf1.c: New file.
2049         * tests/unistdio/test-u32-vsnprintf1.c: New file.
2050         * tests/unistdio/test-u32-vsprintf1.c: New file.
2051         * modules/unistdio/base: New file.
2052         * modules/unistdio/u-printf-args: New file.
2053         * modules/unistdio/ulc-asnprintf: New file.
2054         * modules/unistdio/ulc-asprintf: New file.
2055         * modules/unistdio/ulc-fprintf: New file.
2056         * modules/unistdio/ulc-printf-parse: New file.
2057         * modules/unistdio/ulc-snprintf: New file.
2058         * modules/unistdio/ulc-sprintf: New file.
2059         * modules/unistdio/ulc-vasnprintf: New file.
2060         * modules/unistdio/ulc-vasprintf: New file.
2061         * modules/unistdio/ulc-vfprintf: New file.
2062         * modules/unistdio/ulc-vsnprintf: New file.
2063         * modules/unistdio/ulc-vsprintf: New file.
2064         * modules/unistdio/u8-asnprintf: New file.
2065         * modules/unistdio/u8-asprintf: New file.
2066         * modules/unistdio/u8-printf-parse: New file.
2067         * modules/unistdio/u8-snprintf: New file.
2068         * modules/unistdio/u8-sprintf: New file.
2069         * modules/unistdio/u8-vasnprintf: New file.
2070         * modules/unistdio/u8-vasprintf: New file.
2071         * modules/unistdio/u8-vsnprintf: New file.
2072         * modules/unistdio/u8-vsprintf: New file.
2073         * modules/unistdio/u8-u8-asnprintf: New file.
2074         * modules/unistdio/u8-u8-asprintf: New file.
2075         * modules/unistdio/u8-u8-snprintf: New file.
2076         * modules/unistdio/u8-u8-sprintf: New file.
2077         * modules/unistdio/u8-u8-vasnprintf: New file.
2078         * modules/unistdio/u8-u8-vasprintf: New file.
2079         * modules/unistdio/u8-u8-vsnprintf: New file.
2080         * modules/unistdio/u8-u8-vsprintf: New file.
2081         * modules/unistdio/u16-asnprintf: New file.
2082         * modules/unistdio/u16-asprintf: New file.
2083         * modules/unistdio/u16-printf-parse: New file.
2084         * modules/unistdio/u16-snprintf: New file.
2085         * modules/unistdio/u16-sprintf: New file.
2086         * modules/unistdio/u16-vasnprintf: New file.
2087         * modules/unistdio/u16-vasprintf: New file.
2088         * modules/unistdio/u16-vsnprintf: New file.
2089         * modules/unistdio/u16-vsprintf: New file.
2090         * modules/unistdio/u16-u16-asnprintf: New file.
2091         * modules/unistdio/u16-u16-asprintf: New file.
2092         * modules/unistdio/u16-u16-snprintf: New file.
2093         * modules/unistdio/u16-u16-sprintf: New file.
2094         * modules/unistdio/u16-u16-vasnprintf: New file.
2095         * modules/unistdio/u16-u16-vasprintf: New file.
2096         * modules/unistdio/u16-u16-vsnprintf: New file.
2097         * modules/unistdio/u16-u16-vsprintf: New file.
2098         * modules/unistdio/u32-asnprintf: New file.
2099         * modules/unistdio/u32-asprintf: New file.
2100         * modules/unistdio/u32-printf-parse: New file.
2101         * modules/unistdio/u32-snprintf: New file.
2102         * modules/unistdio/u32-sprintf: New file.
2103         * modules/unistdio/u32-vasnprintf: New file.
2104         * modules/unistdio/u32-vasprintf: New file.
2105         * modules/unistdio/u32-vsnprintf: New file.
2106         * modules/unistdio/u32-vsprintf: New file.
2107         * modules/unistdio/u32-u32-asnprintf: New file.
2108         * modules/unistdio/u32-u32-asprintf: New file.
2109         * modules/unistdio/u32-u32-snprintf: New file.
2110         * modules/unistdio/u32-u32-sprintf: New file.
2111         * modules/unistdio/u32-u32-vasnprintf: New file.
2112         * modules/unistdio/u32-u32-vasprintf: New file.
2113         * modules/unistdio/u32-u32-vsnprintf: New file.
2114         * modules/unistdio/u32-u32-vsprintf: New file.
2115         * modules/unistdio/ulc-asnprintf-tests: New file.
2116         * modules/unistdio/ulc-vasnprintf-tests: New file.
2117         * modules/unistdio/ulc-vasprintf-tests: New file.
2118         * modules/unistdio/ulc-vsnprintf-tests: New file.
2119         * modules/unistdio/ulc-vsprintf-tests: New file.
2120         * modules/unistdio/u8-asnprintf-tests: New file.
2121         * modules/unistdio/u8-vasnprintf-tests: New file.
2122         * modules/unistdio/u8-vasprintf-tests: New file.
2123         * modules/unistdio/u8-vsnprintf-tests: New file.
2124         * modules/unistdio/u8-vsprintf-tests: New file.
2125         * modules/unistdio/u16-asnprintf-tests: New file.
2126         * modules/unistdio/u16-vasnprintf-tests: New file.
2127         * modules/unistdio/u16-vasprintf-tests: New file.
2128         * modules/unistdio/u16-vsnprintf-tests: New file.
2129         * modules/unistdio/u16-vsprintf-tests: New file.
2130         * modules/unistdio/u32-asnprintf-tests: New file.
2131         * modules/unistdio/u32-vasnprintf-tests: New file.
2132         * modules/unistdio/u32-vasprintf-tests: New file.
2133         * modules/unistdio/u32-vsnprintf-tests: New file.
2134         * modules/unistdio/u32-vsprintf-tests: New file.
2135         * MODULES.html.sh (Unicode string functions): Add the new modules.
2136
2137 2007-07-01  Bruno Haible  <bruno@clisp.org>
2138
2139         * lib/sprintf.c (sprintf): Limit the available length estimation,
2140         to avoid address wraparound.
2141         * lib/vsprintf.c (vsprintf): Likewise.
2142         * modules/sprintf-posix (Dependencies): Add stdint.
2143         * modules/vsprintf-posix (Dependencies): Likewise.
2144
2145 2007-07-01  Bruno Haible  <bruno@clisp.org>
2146
2147         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
2148         Windows PATH as well. Conservative double-quoting. Comments.
2149
2150 2007-07-01  Bruno Haible  <bruno@clisp.org>
2151             Eric Blake  <ebb9@byu.net>
2152             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2153
2154         * gnulib-tool (self_abspathname): Fix algorithm to cope with
2155         empty components in $PATH, denoting '.'.
2156
2157 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2158
2159         * gnulib-tool: Fix indentation.
2160         (func_create_megatestdir): Likewise.
2161         Report by Bruno Haible.
2162
2163 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2164
2165         Sync from Automake.
2166         * build-aux/gnupload: Fix shell portability issues with for loops.
2167         Report by Karl Berry.
2168
2169 2007-06-29  Simon Josefsson  <simon@josefsson.org>
2170
2171         * build-aux/maint.mk (POURL): Use translationproject.org.
2172
2173 2007-06-27  Simon Josefsson  <simon@josefsson.org>
2174             Bruno Haible  <bruno@clisp.org>
2175
2176         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
2177         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
2178         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
2179         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
2180         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
2181
2182 2007-06-27  Bruno Haible  <bruno@clisp.org>
2183
2184         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
2185         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
2186
2187 2007-06-26  Karl Berry  <karl@gnu.org>
2188
2189         * MODULES.html.sh: remove xreadlink-with-size.
2190
2191 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
2192
2193         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
2194         method that I hope also handles the double-include problem noted
2195         by Bruno Haible in
2196         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
2197
2198 2007-06-23  Bruno Haible  <bruno@clisp.org>
2199
2200         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
2201         Don't let the 'mostlyclean' target fail if the last subdirectory could
2202         not be removed.
2203         Reported by Karl Berry.
2204
2205 2007-06-23  Bruno Haible  <bruno@clisp.org>
2206
2207         * gnulib-tool (echo): Add a speedier workaround for ksh.
2208         * tests/test-echo.sh: Likewise.
2209
2210 2007-06-23  Bruno Haible  <bruno@clisp.org>
2211
2212         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
2213         * tests/test-echo.sh: Likewise.
2214
2215 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2216
2217         * gnulib-tool (IFS): Initialize early, so we don't set it to
2218         empty later.
2219         (self_abspathname): Rewrite algorithm to set it, reindent.
2220         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
2221         (func_create_megatestdir): Merge some sed scripts.
2222
2223 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
2224
2225         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
2226         exposed by Sun Studio 11 cc on Solaris 8.
2227
2228 2007-06-22  Bruno Haible  <bruno@clisp.org>
2229
2230         * gnulib-tool (echo): Ensure the echo primitive does not interpret
2231         backslashes.
2232         * tests/test-echo.sh: New file.
2233
2234 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2235
2236         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
2237         simplify `sed_replace_build_aux' scripts, they are portable but
2238         echoing them with `echo' is not.
2239         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
2240
2241 2007-06-21  Karl Berry  <karl@gnu.org>
2242
2243         * config/srclist.txt: guess we can't handle the licenses via
2244         srclist at the moment.
2245
2246 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
2247
2248         * MODULES.html.sh: Add include_next.
2249         * modules/include_next: New file.
2250
2251 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
2252
2253         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
2254         INCLUDE_NEXT.
2255         (gl_CHECK_NEXT_HEADERS): New macro.
2256         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
2257         the obsolescent gl_ABSOLUTE_HEADER.
2258         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
2259         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
2260         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
2261         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
2262         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
2263         * m4/math_h.m4 (gl_MATH_H): Likewise.
2264         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
2265         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
2266         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
2267         * m4/stdint.m4 (gl_STDINT_H): Likewise.
2268         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
2269         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
2270         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
2271         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2272         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
2273         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
2274         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
2275         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
2276         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
2277         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2278         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
2279         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
2280         * m4/inttypes.m4 (gl_INTTYPES_H): Define
2281         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
2282         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
2283         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
2284         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
2285         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
2286         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
2287         * lib/float_.h: Likewise.
2288         * lib/inttypes_.h: Likewise.
2289         * lib/math_.h: Likewise.
2290         * lib/search_.h: Likewise.
2291         * lib/signal_.h: Likewise.
2292         * lib/stdint_.h: Likewise.
2293         * lib/stdio_.h: Likewise.
2294         * lib/stdlib_.h: Likewise.
2295         * lib/string_.h: Likewise.
2296         * lib/sys_stat_.h: Likewise.
2297         * lib/sys_time_.h: Likewise.
2298         * lib/time_.h: Likewise.
2299         * lib/unistd_.h: Likewise.
2300         * lib/wchar_.h: Likewise.
2301         * lib/wctype_.h: Likewise.
2302         * lib/dirent_.h: Likewise.
2303         * lib/iconv_.h: Likewise.
2304         * lib/locale_.h: Likewise.
2305         * lib/netinet_in_.h: Likewise.
2306         * lib/sys_select_.h: Likewise.
2307         * lib/sys_socket_.h: Likewise.
2308         * lib/sysexits_.h: Likewise.
2309         * modules/fcntl (Depends-on): Depend on include_next, not
2310         absolute_header.
2311         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
2312         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
2313         * modules/fchdir: Likewise.
2314         * modules/float: Likewise.
2315         * modules/iconv_open: Likewise.
2316         * modules/inttypes: Likewise.
2317         * modules/locale: Likewise.
2318         * modules/math: Likewise.
2319         * modules/netinet_in: Likewise.
2320         * modules/search: Likewise.
2321         * modules/signal: Likewise.
2322         * modules/stdint: Likewise.
2323         * modules/stdio: Likewise.
2324         * modules/stdlib: Likewise.
2325         * modules/string: Likewise.
2326         * modules/sys_select: Likewise.
2327         * modules/sys_socket: Likewise.
2328         * modules/sys_stat: Likewise.
2329         * modules/sys_time: Likewise.
2330         * modules/sysexits: Likewise.
2331         * modules/time: Likewise.
2332         * modules/unistd: Likewise.
2333         * modules/wchar: Likewise.
2334         * modules/wctype: Likewise.
2335         * modules/sys_stat: Change maintainer to "all".
2336         * modules/unistd: Likewise.
2337
2338 2007-06-20  Karl Berry  <karl@gnu.org>
2339
2340         * config/srclist.txt: track www changes in license files.
2341
2342 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
2343
2344         * build-aux/bootstrap: Remove stray dot.
2345         Make sure build_aux settings are honored when linking
2346         gnulib_extra_files.
2347
2348 2007-06-19  Eric Blake  <ebb9@byu.net>
2349
2350         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
2351         Allow compilation on cygwin.
2352
2353 2007-06-19  Jim Meyering  <jim@meyering.net>
2354
2355         xreadlink-with-size: Remove module.  No longer used.
2356         Ex-callers now use xreadlink or mreadlink-with-size.
2357         * modules/xreadlink-with-size: Remove module.
2358         * lib/xreadlink-with-size.c: Remove file.
2359         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
2360         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
2361         just before the function definition *is* accurate.
2362
2363         Eliminate one way canonicalize_filename_mode could exit.
2364         * lib/canonicalize.c (canonicalize_filename_mode):
2365         Use mreadlink_with_size, not xreadlink_with_size.
2366
2367 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
2368
2369         Detect porting problems to FreeBSD/arm, which has time_t wider than
2370         long int.  Original problem reported for GNU diff by Xin Li in
2371         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
2372         * modules/getdate (Depends-on): Add intprops, verify.
2373         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
2374         is an integer type no wider than long int.
2375
2376 2007-06-18  Jim Meyering  <jim@meyering.net>
2377
2378         New module: mreadlink-with-size.
2379         * MODULES.html.sh: Add mreadlink-with-size.
2380         * modules/mreadlink-with-size: New module
2381         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
2382         not xreadlink-with-size.
2383         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
2384
2385 2007-06-16  Bruno Haible  <bruno@clisp.org>
2386
2387         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
2388         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
2389         Reported by Gary V. Vaughan <gary@gnu.org>.
2390
2391 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
2392
2393         Revamp lchown so that it lives in unistd.h where it belongs.
2394         * lib/lchown.h: Remove.
2395         * lib/dirchownmod.c: Don't include lib/lchown.h.
2396         * lib/fchownat.c: Likewise.
2397         * lib/openat.c: Likewise.
2398         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
2399         does not follow symlinks.
2400         (EOPNOTSUPP): Define if not defined.
2401         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
2402         is defined to 0.
2403         (lchown): New decl.
2404         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
2405         Do not check for lchown decl.
2406         Set REPLACE_LCHOWN.
2407         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
2408         REPLACE_LCHOWN.
2409         * modules/chown: Make it clear it follows symlinks.
2410         * modules/lchown: Make it clear it doesn't follow symlinks.
2411         (Files): Remove lib/lchown.h
2412         (Depends-on): Add unistd.
2413         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
2414         (Include): Include <unistd.h>, not "lchown.h".
2415         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
2416         REPLACE_LCHOWN.
2417
2418 2007-06-15  Jim Meyering  <jim@meyering.net>
2419
2420         Change license (GPL to LGPL) of fsusage and dependents.
2421         * modules/fsusage (License): Change to LGPL.
2422         * modules/full-read (License): Likewise.
2423         * modules/full-write (License): Likewise.
2424         * modules/safe-read (License): Likewise.
2425         * modules/safe-write (License): Likewise.
2426
2427 2007-06-14  Ben Pfaff  <blp@gnu.org>
2428
2429         Missing part of allocsa -> malloca transition.
2430         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
2431         gl_MALLOCA.
2432
2433 2007-06-12  Bruno Haible  <bruno@clisp.org>
2434
2435         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
2436         to ia64, x86_64, i386.
2437         Reported by Eric Blake.
2438
2439 2007-06-12  Bruno Haible  <bruno@clisp.org>
2440
2441         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
2442         cross-compiling to x86_64.
2443
2444 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
2445
2446         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
2447         glitch reported by Ralf Wildenhues in
2448         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
2449
2450         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
2451         Vin Shelton.
2452
2453 2007-06-11  Bruno Haible  <bruno@clisp.org>
2454
2455         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
2456         replacement string.
2457         Reported by Eric Blake.
2458
2459 2007-06-10  Bruno Haible  <bruno@clisp.org>
2460
2461         Prepare vasnprintf code for use with Unicode strings.
2462         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
2463         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
2464         TYPE_U32_STRING.
2465         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
2466         a_u32_string variants.
2467         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
2468         * lib/printf-args.c: Don't include config.h and the specification
2469         header if PRINTF_FETCHARGS is already defined.
2470         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
2471         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
2472         TYPE_U16_STRING, TYPE_U32_STRING.
2473         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
2474         u16_directive, u16_directives, u32_directive, u32_directives): New
2475         types.
2476         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
2477         New declarations.
2478         * lib/printf-parse.c: Don't include config.h and the specification
2479         header if PRINTF_PARSE is already defined. Eliminate the set of
2480         parameters for WIDE_CHAR_VERSION; the user of this file must provide
2481         them now. Include c-ctype.h.
2482         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
2483         directive and CHAR_T_ONLY_ASCII.
2484         * lib/vasnprintf.c: Don't include config.h and the specification header
2485         if VASNPRINTF is already defined.
2486         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
2487         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
2488         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
2489         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
2490         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
2491         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
2492         code accordingly.
2493         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
2494         pad_ourselves also in this case, with the 'c' and 's' directives, and
2495         with a different notion of "width".
2496         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
2497
2498 2007-06-10  Bruno Haible  <bruno@clisp.org>
2499
2500         * modules/unistr/u32-mbsnlen: New file.
2501         * lib/unistr/u32-mbsnlen.c: New file.
2502
2503         * modules/unistr/u16-mbsnlen: New file.
2504         * lib/unistr/u16-mbsnlen.c: New file.
2505
2506         * modules/unistr/u8-mbsnlen: New file.
2507         * lib/unistr/u8-mbsnlen.c: New file.
2508
2509         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
2510         declarations.
2511
2512 2007-06-10  Bruno Haible  <bruno@clisp.org>
2513
2514         * lib/string_.h (mbsnlen): New declaration.
2515         * lib/mbsnlen.c: New file.
2516         * m4/mbsnlen.m4: New file.
2517         * modules/mbsnlen: New file.
2518         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
2519         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
2520         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
2521
2522 2007-06-10  Bruno Haible  <bruno@clisp.org>
2523
2524         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
2525
2526 2007-06-10  Bruno Haible  <bruno@clisp.org>
2527
2528         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
2529         * lib/mbuiter.h: Likewise.
2530
2531 2007-06-10  Bruno Haible  <bruno@clisp.org>
2532
2533         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
2534         declaration.
2535
2536 2007-06-10  Karl Berry  <karl@gnu.org>
2537
2538         * config/srclist.txt: remove gettext entries, Bruno prefers
2539         to update individually.
2540
2541 2007-06-10  Bruno Haible  <bruno@clisp.org>
2542
2543         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
2544         'maxlen'. Ensure only length + width bytes are allocated, not
2545         length + 1 + width.
2546
2547 2007-06-09  Bruno Haible  <bruno@clisp.org>
2548
2549         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
2550         (CHAR_T): Remove macro.
2551         (VASNPRINTF): Update.
2552
2553 2007-06-09  Bruno Haible  <bruno@clisp.org>
2554
2555         * MODULES.html.sh (Unicode string functions): Add the new modules.
2556
2557         * modules/uniconv/u32-conv-to-enc: New file.
2558         * lib/uniconv/u32-conv-to-enc.c: New file.
2559         * modules/uniconv/u32-conv-to-enc-tests: New file.
2560         * tests/uniconv/test-u32-conv-to-enc.c: New file.
2561
2562         * modules/uniconv/u16-conv-to-enc: New file.
2563         * lib/uniconv/u16-conv-to-enc.c: New file.
2564         * lib/uniconv/u-conv-to-enc.h: New file.
2565         * modules/uniconv/u16-conv-to-enc-tests: New file.
2566         * tests/uniconv/test-u16-conv-to-enc.c: New file.
2567
2568         * modules/uniconv/u8-conv-to-enc: New file.
2569         * lib/uniconv/u8-conv-to-enc.c: New file.
2570         * modules/uniconv/u8-conv-to-enc-tests: New file.
2571         * tests/uniconv/test-u8-conv-to-enc.c: New file.
2572
2573         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
2574         u32_conv_to_encoding): New declarations.
2575
2576 2007-06-09  Bruno Haible  <bruno@clisp.org>
2577
2578         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
2579
2580 2007-06-09  Bruno Haible  <bruno@clisp.org>
2581
2582         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
2583         * modules/malloca: Renamed from modules/allocsa, updated.
2584         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
2585         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
2586         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
2587         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
2588         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
2589         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
2590         * modules/xmalloca: Renamed from modules/xallocsa, updated.
2591         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
2592         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
2593         * modules/c-strcasestr (Depends-on): Update.
2594         * lib/c-strcasestr.c: Update.
2595         * modules/c-strstr (Depends-on): Update.
2596         * lib/c-strstr.c: Update.
2597         * modules/canonicalize-lgpl (Depends-on): Update.
2598         * lib/canonicalize-lgpl.c: Update.
2599         * modules/clean-temp (Depends-on): Update.
2600         * lib/clean-temp.c: Update.
2601         * modules/csharpcomp (Depends-on): Update.
2602         * lib/csharpcomp.c: Update.
2603         * modules/csharpexec (Depends-on): Update.
2604         * lib/csharpexec.c: Update.
2605         * modules/javacomp (Depends-on): Update.
2606         * lib/javacomp.c: Update.
2607         * modules/javaexec (Depends-on): Update.
2608         * lib/javaexec.c: Update.
2609         * modules/mbscasestr (Depends-on): Update.
2610         * lib/mbscasestr.c: Update.
2611         * modules/mbsstr (Depends-on): Update.
2612         * lib/mbsstr.c: Update.
2613         * modules/setenv (Depends-on): Update.
2614         * lib/setenv.c: Update.
2615         * modules/strcasestr (Depends-on): Update.
2616         * lib/strcasestr.c: Update.
2617         * modules/striconveha (Depends-on): Update.
2618         * lib/striconveha.c: Update.
2619         * modules/relocatable-prog-wrapper (Files): Update.
2620         * lib/relocwrapper.c: Update.
2621         * build-aux/install-reloc: Update.
2622         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
2623
2624 2007-06-08  Bruno Haible  <bruno@clisp.org>
2625
2626         Port to uClibc.
2627         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
2628         * lib/fpurge.c (fpurge): Likewise.
2629         * lib/freading.c (freading): Likewise.
2630         * lib/fseeko.c (rpl_fseeko): Likewise.
2631         * lib/fseterr.c (fseterr): Likewise.
2632         * lib/fwriting.c (fwriting): Likewise.
2633         * tests/test-fflush.c (main): Avoid a failure on uClibc.
2634
2635 2007-06-08  Bruno Haible  <bruno@clisp.org>
2636
2637         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
2638         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
2639         * modules/gettext (Files): Add m4/intlmacosx.m4.
2640
2641 2007-06-07  Bruno Haible  <bruno@clisp.org>
2642
2643         * modules/localename-tests: New file.
2644         * tests/test-localename.c: New file.
2645
2646         New module 'localename'.
2647         * lib/localename.h: New file.
2648         * lib/localename.c: New file, from GNU gettext.
2649         * m4/localename.m4: New file.
2650         * modules/localename: New file.
2651
2652 2007-06-07  Bruno Haible  <bruno@clisp.org>
2653
2654         Work around the lack of <wchar.h> on some builds of uClibc.
2655         * doc/headers/wchar.texi: Update.
2656         * lib/wchar_.h: Include <wchar.h> only if it exists.
2657         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
2658         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
2659         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
2660         doesn't exist.
2661         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
2662         * modules/mbfile (Depends-on): Add wchar.
2663         * modules/mbiter (Depends-on): Likewise.
2664         * modules/mbuiter (Depends-on): Likewise.
2665         Reported by Simon Josefsson.
2666
2667 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
2668
2669         Work around problem reported by Steven M. Schweda in
2670         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
2671         Tru64 5.1B with the Compaq compiler environment installed declares
2672         an 'isblank' function but does not define it in the C library.
2673         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
2674         * lib/regex_internal.h (isblank): Likewise.
2675         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
2676         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
2677
2678 2007-06-05  Bruno Haible  <bruno@clisp.org>
2679
2680         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
2681         ia64.
2682         * modules/printf-safe: New file.
2683         * modules/fprintf-posix (Depends-on): Add printf-safe.
2684         * modules/printf-posix (Depends-on): Likewise.
2685         * modules/snprintf-posix (Depends-on): Likewise.
2686         * modules/sprintf-posix (Depends-on): Likewise.
2687         * modules/vasnprintf-posix (Depends-on): Likewise.
2688         * modules/vasprintf-posix (Depends-on): Likewise.
2689         * modules/vfprintf-posix (Depends-on): Likewise.
2690         * modules/vprintf-posix (Depends-on): Likewise.
2691         * modules/vsnprintf-posix (Depends-on): Likewise.
2692         * modules/vsprintf-posix (Depends-on): Likewise.
2693         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
2694         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
2695         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
2696         "no" on i386, x86_64, ia64.
2697         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
2698         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
2699         on i386, x86_64, ia64.
2700         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
2701         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
2702         on i386, x86_64, ia64.
2703         * tests/test-vasnprintf-posix.c: Include float.h.
2704         (LDBL80_WORDS): New macro.
2705         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
2706         on i386, x86_64, ia64.
2707         * tests/test-vasprintf-posix.c: Include float.h.
2708         (LDBL80_WORDS): New macro.
2709         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
2710         on i386, x86_64, ia64.
2711         * tests/test-snprintf-posix.c: Include float.h.
2712         * tests/test-sprintf-posix.c: Likewise.
2713         * tests/test-vsnprintf-posix.c: Likewise.
2714         * tests/test-vsprintf-posix.c: Likewise.
2715
2716 2007-06-05  Bruno Haible  <bruno@clisp.org>
2717
2718         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
2719         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
2720         non-IEEE numbers on i386, x86_64, ia64.
2721         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
2722         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
2723         * tests/test-isnanl.h: Include float.h.
2724         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
2725
2726 2007-06-05  Bruno Haible  <bruno@clisp.org>
2727
2728         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
2729         also the %a / %A. Handle the %a / %A code before this extra handling.
2730
2731 2007-06-05  Bruno Haible  <bruno@clisp.org>
2732
2733         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
2734         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
2735
2736 2007-06-05  Bruno Haible  <bruno@clisp.org>
2737
2738         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
2739         typo in variable name.
2740
2741 2007-06-05  Eric Blake  <ebb9@byu.net>
2742
2743         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
2744         Reported by Simon Josefsson.
2745
2746 2007-06-04  Bruno Haible  <bruno@clisp.org>
2747
2748         Avoid test failures on some PowerPC platforms.
2749         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
2750         Define differently for PowerPC.
2751         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
2752         Reported by Gary V. Vaughan <gary@gnu.org>.
2753
2754 2007-06-02  Bruno Haible  <bruno@clisp.org>
2755
2756         Fix test-stdint failure on FreeBSD/ia64.
2757         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
2758         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
2759         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
2760         * doc/headers/stdint.texi: Update.
2761
2762 2007-06-01  Bruno Haible  <bruno@clisp.org>
2763
2764         * tests/test-binary-io.c (main): Pass a third argument to open().
2765         Reported by Gary V. Vaughan <gary@gnu.org>.
2766
2767 2007-06-01  Bruno Haible  <bruno@clisp.org>
2768
2769         * doc/functions/frexpl.texi: Update for mingw.
2770
2771 2007-06-01  Bruno Haible  <bruno@clisp.org>
2772
2773         * tests/test-lseek.c (main): Disable test of errno for invalid third
2774         argument.
2775         * doc/functions/lseek.texi: Update.
2776         Reported by Gary V. Vaughan <gary@gnu.org>.
2777
2778 2007-05-28  Bruno Haible  <bruno@clisp.org>
2779
2780         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
2781
2782 2007-05-31  Eric Blake  <ebb9@byu.net>
2783
2784         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
2785         cross compiling.
2786
2787 2007-05-30  Eric Blake  <ebb9@byu.net>
2788         and Bruno Haible  <bruno@clisp.org>
2789
2790         Work around mingw test failures exposed by m4-1.4.9b.
2791         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
2792         * tests/test-unistd.c: Disable uid_t and git_t tests for the
2793         moment.
2794
2795 2007-05-30  Bruno Haible  <bruno@clisp.org>
2796
2797         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
2798         assuming that they are closed. Needed on HP-UX 11.
2799
2800 2007-05-29  Bruno Haible  <bruno@clisp.org>
2801
2802         Fix a problem with #include_next.
2803         * lib/dirent_.h: Split the double-inclusion guard.
2804         * lib/fcntl_.h: Likewise.
2805         * lib/float_.h: Likewise.
2806         * lib/iconv_.h: Likewise.
2807         * lib/inttypes_.h: Likewise.
2808         * lib/locale_.h: Likewise.
2809         * lib/math_.h: Likewise.
2810         * lib/netinet_in_.h: Likewise.
2811         * lib/search_.h: Likewise.
2812         * lib/signal_.h: Likewise.
2813         * lib/stdint_.h: Likewise.
2814         * lib/stdio_.h: Likewise.
2815         * lib/stdlib_.h: Likewise.
2816         * lib/string_.h: Likewise.
2817         * lib/sys_select_.h: Likewise.
2818         * lib/sys_socket_.h: Likewise.
2819         * lib/sys_stat_.h: Likewise.
2820         * lib/sys_time_.h: Likewise.
2821         * lib/sysexits_.h: Likewise.
2822         * lib/time_.h: Likewise.
2823         * lib/unistd_.h: Likewise.
2824         * lib/wchar_.h: Likewise.
2825         * lib/wctype_.h: Likewise.
2826
2827 2007-05-29  Bruno Haible  <bruno@clisp.org>
2828
2829         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
2830         for the moment.
2831
2832 2007-05-29  Bruno Haible  <bruno@clisp.org>
2833
2834         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
2835         invocation.
2836         Reported by Eric Blake.
2837
2838 2007-05-29  Bruno Haible  <bruno@clisp.org>
2839
2840         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
2841         compiling case.
2842
2843 2007-05-29  Eric Blake  <ebb9@byu.net>
2844             Bruno Haible  <bruno@clisp.org>
2845
2846         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
2847         cross compiles.
2848
2849 2007-05-28  Eric Blake  <ebb9@byu.net>
2850
2851         * modules/closein-tests (test_closein_LDADD): Support test on
2852         cygwin with libtool.
2853
2854 2007-05-28  Bruno Haible  <bruno@clisp.org>
2855
2856         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
2857         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
2858         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
2859         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
2860         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
2861         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
2862         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
2863         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
2864         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
2865
2866 2007-05-28  Eric Blake  <ebb9@byu.net>
2867
2868         Unconditionally include <config.h> in unit tests.
2869         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
2870         * tests/test-allocsa.c, tests/test-arcfour.c,
2871         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
2872         tests/test-array_list.c, tests/test-array_oset.c,
2873         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
2874         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
2875         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
2876         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
2877         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
2878         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
2879         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
2880         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
2881         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
2882         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
2883         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
2884         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
2885         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
2886         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
2887         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
2888         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
2889         test-md5.c, test-memmem.c, test-printf-posix.c,
2890         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
2891         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
2892         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
2893         test-strcasestr.c, test-striconv.c, test-striconveh.c,
2894         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
2895         test-vasnprintf-posix2.c, test-vasnprintf.c,
2896         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
2897         test-vfprintf-posix.c, test-vprintf-posix.c,
2898         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
2899         test-xvasprintf.c: Likewise.
2900
2901 2007-05-28  Bruno Haible  <bruno@clisp.org>
2902
2903         * gnulib-tool (func_import): Remember the --with-tests command-line
2904         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
2905         Reported by Eric Blake.
2906
2907 2007-05-28  Bruno Haible  <bruno@clisp.org>
2908
2909         * modules/ftell-tests: New file.
2910         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
2911         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
2912
2913         * lib/ftell.c: New file.
2914         * modules/ftell: New file.
2915         * m4/ftell.m4: New file.
2916         * doc/functions/ftell.texi: Update.
2917         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
2918         REPLACE_FTELL.
2919         * lib/stdio_.h (rpl_ftell): New declaration.
2920         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
2921         REPLACE_FTELL.
2922
2923 2007-05-28  Eric Blake  <ebb9@byu.net>
2924
2925         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
2926
2927 2007-05-28  Bruno Haible  <bruno@clisp.org>
2928
2929         * modules/fseek-tests: New file.
2930         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
2931         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
2932
2933         * lib/fseek.c: New file.
2934         * modules/fseek: New file.
2935         * m4/fseek.m4: New file.
2936         * doc/functions/fseek.texi: Update.
2937         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
2938         REPLACE_FSEEK.
2939         * lib/stdio_.h (rpl_fseek): New declaration.
2940         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
2941         REPLACE_FSEEK.
2942
2943 2007-05-28  Bruno Haible  <bruno@clisp.org>
2944
2945         * lib/stdio_.h (fflush): More comments.
2946
2947 2007-05-28  Bruno Haible  <bruno@clisp.org>
2948
2949         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
2950         runtime test.
2951
2952 2007-05-28  Eric Blake  <ebb9@byu.net>
2953
2954         Improve lseek module.
2955         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
2956         * lib/unistd_.h (lseek): Scale back link warning message.
2957         * tests/test-lseek.c: Beef up test.
2958         * tests/test-lseek.sh: Exercise more facets of lseek.
2959         Reported by Bruno Haible.
2960
2961 2007-05-28  Bruno Haible  <bruno@clisp.org>
2962
2963         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
2964         to define.
2965
2966 2007-05-27  Bruno Haible  <bruno@clisp.org>
2967
2968         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
2969
2970 2007-05-27  Bruno Haible  <bruno@clisp.org>
2971
2972         * modules/openmp: New file.
2973         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
2974         Noah Misch.
2975
2976 2007-05-26  Bruno Haible  <bruno@clisp.org>
2977
2978         * modules/chdir-long (Depends-on): Add fchdir.
2979         * modules/chdir-safer (Depends-on): Likewise.
2980         * modules/fts (Depends-on): Likewise.
2981         * modules/fts-lgpl (Depends-on): Likewise.
2982         * modules/openat (Depends-on): Likewise.
2983         * modules/savewd (Depends-on): Likewise.
2984
2985 2007-05-24  Eric Blake  <ebb9@byu.net>
2986
2987         Fix lseek on mingw.
2988         * modules/lseek: New module.
2989         * m4/lseek.m4: New file.
2990         * lib/lseek.c: New file.
2991         * modules/lseek-tests: New file.
2992         * tests/test-lseek.c: New file.
2993         * tests/test-lseek.sh: New file.
2994         * MODULES.html.sh: Document lseek module.
2995         * modules/fflush (Depends-on): Add lseek, fseeko.
2996         * modules/fseeko (Depends-on): Likewise.
2997         * modules/ftello (Depends-on): Likewise.
2998         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
2999         broken.
3000         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
3001         broken.
3002         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
3003         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
3004         * lib/ftello.c (rpl_ftello): Likewise.
3005         * tests/test-fseeko.c (main): Test this.
3006         * tests/test-fseeko.sh: Likewise.
3007         * tests/test-ftello.c (main): Likewise.
3008         * tests/test-ftello.sh: Likewise.
3009         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
3010         implies replacing fseek.
3011         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
3012         HAVE_FTELLO.
3013         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
3014         * modules/unistd (Makefile.am): Likewise.
3015         * lib/unistd_.h (lseek): Declare a replacement.
3016         * doc/functions/lseek.texi (lseek): Document this fix.
3017         * doc/functions/fseek.texi (fseek): Likewise.
3018         * doc/functions/ftell.texi (ftell): Likewise.
3019
3020 2007-05-24  Bruno Haible  <bruno@clisp.org>
3021
3022         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
3023         in the printed representation of a NaN.
3024         * tests/test-vasprintf-posix.c (test_function): Likewise.
3025         * tests/test-snprintf-posix.h (test_function): Likewise.
3026         * tests/test-sprintf-posix.h (test_function): Likewise.
3027         Reported by Eric Blake.
3028
3029 2007-05-23  Eric Blake  <ebb9@byu.net>
3030
3031         Fix fseeko/ftello on cygwin 1.5.24.
3032         * doc/functions/fseeko.texi (fseeko): Document the fix.
3033         * doc/functions/ftello.texi (ftello): Document the fix.
3034         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
3035         * doc/functions/stdout.text (stdout): New file.
3036         * doc/functions/stderr.text (stderr): New file.
3037         * doc/gnulib.texi (Function Substitutes): Use new files.
3038         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
3039         prior to 1.7.0.
3040         * tests/test-ftello.c (main): Likewise for ftello.
3041         * tests/test-fseeko.sh: New file.
3042         * tests/test-ftello.sh: New file.
3043         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
3044         with seekable stdin.
3045         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
3046         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
3047         (gl_REPLACE_FSEEKO): New macro.
3048         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
3049         * modules/fseeko (Files): Distribute fseeko.c.
3050         * modules/ftello (Files): Distribute ftello.c.
3051         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
3052         mode.
3053         * lib/ftello.c (rpl_ftello): New file.
3054         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
3055         fseeko, ftello.
3056         (gl_STDIN_LARGE_OFFSET): New macro.
3057         * modules/stdio (Makefile.am): Perform the replacement.
3058         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
3059
3060 2007-05-23  Bruno Haible  <bruno@clisp.org>
3061
3062         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
3063         GNULIB_POSIXCHECK is defined.
3064
3065 2007-05-21  Bruno Haible  <bruno@clisp.org>
3066
3067         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
3068         Check also the output for NaN arguments. When cross-compiling, guess
3069         no on IRIX.
3070         * lib/vasnprintf.c: Update comments.
3071         * tests/test-vasnprintf-posix.c (strisnan): New function.
3072         (test_function): Use it.
3073         * tests/test-vasprintf-posix.c (strisnan): New function.
3074         (test_function): Use it.
3075         * tests/test-snprintf-posix.h (strisnan): New function.
3076         (test_function): Use it.
3077         * tests/test-sprintf-posix.h (strisnan): New function.
3078         (test_function): Use it.
3079         Reported by Eric Blake.
3080
3081 2007-05-20  Bruno Haible  <bruno@clisp.org>
3082
3083         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
3084         numbers that fails on BeOS.
3085         * doc/functions/frexpl.texi: Update.
3086
3087 2007-05-20  Jim Meyering  <jim@meyering.net>
3088
3089         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
3090         forced upon us by glibc-2.6.
3091
3092 2007-05-20  Bruno Haible  <bruno@clisp.org>
3093
3094         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
3095         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
3096         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
3097         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
3098         NEED_PRINTF_INFINITE.
3099         (is_infinitel): New function.
3100         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
3101         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
3102         gl_PREREQ_VASNPRINTF_INFINITE.
3103         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
3104         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
3105         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
3106         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
3107         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
3108         gl_PREREQ_VASNPRINTF_INFINITE.
3109         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
3110         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
3111         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
3112         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
3113         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
3114         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
3115         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
3116         * doc/functions/fprintf.texi: Update.
3117         * doc/functions/printf.texi: Update.
3118         * doc/functions/snprintf.texi: Update.
3119         * doc/functions/sprintf.texi: Update.
3120         * doc/functions/vfprintf.texi: Update.
3121         * doc/functions/vprintf.texi: Update.
3122         * doc/functions/vsnprintf.texi: Update.
3123         * doc/functions/vsprintf.texi: Update.
3124
3125 2007-05-20  Bruno Haible  <bruno@clisp.org>
3126
3127         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
3128         was not found in libc.
3129         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
3130
3131 2007-05-20  Bruno Haible  <bruno@clisp.org>
3132
3133         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
3134         printed as "-nan" instead of "nan".
3135         * tests/test-vasprintf-posix.c (test_function): Likewise.
3136         * tests/test-snprintf-posix.h (test_function): Likewise.
3137         * tests/test-sprintf-posix.h (test_function): Likewise.
3138         Needed for HP-UX 11.
3139
3140 2007-05-20  Jim Meyering  <jim@meyering.net>
3141
3142         Fix buggy test for the fchownat-deref bug.
3143         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
3144         symlink required for the run-test.  Without it, this test would
3145         always declare that fchownat doesn't work, and client code would
3146         unnecessarily use the replacement function with fixed libc.
3147         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
3148         Reported by Greg Schafer.
3149
3150 2007-05-19  Bruno Haible  <bruno@clisp.org>
3151
3152         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
3153         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
3154         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
3155         Needed for IRIX 6.5 and Solaris 2.5.1.
3156
3157 2007-05-19  Bruno Haible  <bruno@clisp.org>
3158
3159         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
3160         (test_function): Skip tests involving -0.0 on platforms where
3161         -0.0 = 0.0.
3162         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
3163         (test_function): Skip tests involving -0.0 on platforms where
3164         -0.0 = 0.0.
3165         * tests/test-snprintf-posix.h (have_minus_zero): New function.
3166         (test_function): Skip tests involving -0.0 on platforms where
3167         -0.0 = 0.0.
3168         * tests/test-sprintf-posix.h (have_minus_zero): New function.
3169         (test_function): Skip tests involving -0.0 on platforms where
3170         -0.0 = 0.0.
3171         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
3172         tests.
3173         * tests/test-printf-posix.h (test_function): Likewise.
3174         * tests/test-printf-posix.output: Remove all -0.0 related results.
3175         Needed for IRIX 6.5.
3176
3177 2007-05-19  Bruno Haible  <bruno@clisp.org>
3178
3179         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
3180         printed as "nan0x7fffffff" instead of "nan".
3181         * tests/test-vasprintf-posix.c (test_function): Likewise.
3182         * tests/test-snprintf-posix.h (test_function): Likewise.
3183         * tests/test-sprintf-posix.h (test_function): Likewise.
3184         * tests/test-fprintf-posix.h (NaN): Remove macro.
3185         (test_function): Remove all NaN related tests.
3186         * tests/test-printf-posix.h (NaN): Remove macro.
3187         (test_function): Remove all NaN related tests.
3188         * tests/test-printf-posix.output: Remove all NaN related results.
3189         Needed for IRIX 6.5.
3190
3191 2007-05-19  Bruno Haible  <bruno@clisp.org>
3192
3193         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
3194         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
3195
3196 2007-05-19  Bruno Haible  <bruno@clisp.org>
3197
3198         * lib/float_.h: New file.
3199         * m4/float_h.m4: New file.
3200         * modules/float: New file.
3201         * modules/isnanl (Dependencies): Add float.
3202         * modules/isnanl-nolibm (Dependencies): Likewise.
3203         * modules/mathl (Dependencies): Likewise.
3204         * modules/printf-frexpl (Dependencies): Likewise.
3205         * modules/signbit (Dependencies): Likewise.
3206         * modules/vasnprintf (Dependencies): Likewise.
3207         * doc/headers/float.texi: Update.
3208
3209 2007-05-19  Jim Meyering  <jim@meyering.net>
3210
3211         * lib/utimens.c (gl_futimens): Rename from futimens,
3212         now that glibc-2.6 declares futimens.
3213         * lib/utimens.h: Likewise.
3214
3215 2007-05-19  Bruno Haible  <bruno@clisp.org>
3216
3217         Avoid test failures on mingw.
3218         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
3219         * tests/test-printf-posix.sh: Likewise.
3220         * tests/test-vfprintf-posix.sh: Likewise.
3221         * tests/test-vprintf-posix.sh: Likewise.
3222
3223 2007-05-19  Bruno Haible  <bruno@clisp.org>
3224
3225         Fix *printf result for NaN, Inf, -0.0 on mingw.
3226         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
3227         * lib/vasnprintf.c: Include math.h and isnan.h.
3228         (is_infinite_or_zero): New function.
3229         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
3230         values in the %f, %F, %e, %E, %g, %G directives.
3231         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
3232         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
3233         gl_PRINTF_INFINITE and test its result. Invoke
3234         gl_PREREQ_VASNPRINTF_INFINITE.
3235         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
3236         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
3237         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
3238         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
3239         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
3240         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
3241         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
3242         * doc/functions/fprintf.texi: Update.
3243         * doc/functions/printf.texi: Update.
3244         * doc/functions/snprintf.texi: Update.
3245         * doc/functions/sprintf.texi: Update.
3246         * doc/functions/vfprintf.texi: Update.
3247         * doc/functions/vprintf.texi: Update.
3248         * doc/functions/vsnprintf.texi: Update.
3249         * doc/functions/vsprintf.texi: Update.
3250
3251 2007-05-19  Bruno Haible  <bruno@clisp.org>
3252
3253         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
3254         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
3255         Instead of multiplying with 10^k, set extra_zeroes to k.
3256         (scale10_round_long_double): Remove function.
3257
3258 2007-05-18  Bruno Haible  <bruno@clisp.org>
3259
3260         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
3261         introduced on 2007-05-06.
3262
3263 2007-05-18  Bruno Haible  <bruno@clisp.org>
3264
3265         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
3266         %g directives.
3267         * tests/test-vasprintf-posix.c (test_function): Likewise.
3268         * tests/test-snprintf-posix.h (test_function): Likewise.
3269         * tests/test-sprintf-posix.h (test_function): Likewise.
3270
3271 2007-05-18  Bruno Haible  <bruno@clisp.org>
3272
3273         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
3274         (strmatch): New function.
3275         (test_function): Test the %f directive on numbers of various exponents.
3276         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
3277         (strmatch): New function.
3278         (test_function): Test the %f directive on numbers of various exponents.
3279         * tests/test-snprintf-posix.h (strmatch): New function.
3280         (test_function): Test the %f directive on numbers of various exponents.
3281         * tests/test-sprintf-posix.h (strmatch): New function.
3282         (test_function): Test the %f directive on numbers of various exponents.
3283         * tests/test-snprintf-posix.c (SIZEOF): New macro.
3284         * tests/test-sprintf-posix.c (SIZEOF): New macro.
3285         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
3286         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
3287
3288 2007-05-18  Bruno Haible  <bruno@clisp.org>
3289
3290         Add support for 'long double' number output.
3291         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
3292         * lib/vasnprintf.c: Include math.h and float+.h.
3293         (mp_limb_t): New type.
3294         (GMP_LIMB_BITS): New macro.
3295         (mp_twolimb_t): New type.
3296         (GMP_TWOLIMB_BITS): New macro.
3297         (mpn_t): New type.
3298         (multiply, divide, convert_to_decimal, decode_long_double,
3299         scale10_round_long_double, scale10_round_decimal_long_double,
3300         floorlog10l): New functions.
3301         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
3302         for the %f, %F, %e, %E, %g, %G directives.
3303         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
3304         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
3305         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
3306         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
3307         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
3308         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
3309         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
3310         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
3311         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
3312         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
3313         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
3314         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
3315         * modules/snprintf-posix (Depends-on): Likewise.
3316         * modules/sprintf-posix (Depends-on): Likewise.
3317         * modules/vasnprintf-posix (Depends-on): Likewise.
3318         * modules/vasprintf-posix (Depends-on): Likewise.
3319         * modules/vfprintf-posix (Depends-on): Likewise.
3320         * modules/vsnprintf-posix (Depends-on): Likewise.
3321         * modules/vsprintf-posix (Depends-on): Likewise.
3322         * modules/vasnprintf (Files): Add lib/float+.h.
3323         * doc/functions/fprintf.texi: Update.
3324         * doc/functions/printf.texi: Update.
3325         * doc/functions/snprintf.texi: Update.
3326         * doc/functions/sprintf.texi: Update.
3327         * doc/functions/vfprintf.texi: Update.
3328         * doc/functions/vprintf.texi: Update.
3329         * doc/functions/vsnprintf.texi: Update.
3330         * doc/functions/vsprintf.texi: Update.
3331
3332 2007-05-18  Bruno Haible  <bruno@clisp.org>
3333
3334         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
3335
3336 2007-05-18  Bruno Haible  <bruno@clisp.org>
3337
3338         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
3339         for printing 64-bit integers. Needed for mingw.
3340
3341 2007-05-18  Bruno Haible  <bruno@clisp.org>
3342
3343         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
3344         gl_FUNC_FREXPL_WORKS.
3345         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
3346
3347 2007-05-18  Bruno Haible  <bruno@clisp.org>
3348
3349         * modules/frexpl-nolibm-tests: New file.
3350
3351         * modules/frexpl-nolibm: New file.
3352         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
3353
3354 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
3355
3356         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
3357         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
3358         GCC 4.2, which otherwise issues a lot of warnings.
3359         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
3360         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
3361         Likewise.
3362         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
3363         * modules/iconv_open (iconv.h): Likewise.
3364         * modules/locale (locale.h): Likewise.
3365         * modules/netinet_in (netinet/in.h): Likewise.
3366         * modules/sys_select (sys_select.h): Likewise.
3367         * modules/sys_socket (sys/socket.h): Likewise.
3368         * modules/sys_stat (sys/stat.h): Likewise.
3369         * modules/sysexits (sysexits.h): Likewise.
3370         * modules/unistd (unistd.h): Likewise.
3371
3372 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3373
3374         * modules/closein-tests (Makefile.am): Distribute
3375         `test-closein.sh'.
3376
3377 2007-05-17  Bruno Haible  <bruno@clisp.org>
3378
3379         * tests/test-printf-posix.output: Renamed from
3380         tests/test-fprintf-posix.out.
3381         * modules/fprintf-posix-tests: Update.
3382         * modules/printf-posix-tests: Update.
3383         * modules/vfprintf-posix-tests: Update.
3384         * modules/vprintf-posix-tests: Update.
3385         * tests/test-fprintf-posix.sh: Update.
3386         * tests/test-printf-posix.sh: Update.
3387         * tests/test-vfprintf-posix.sh: Update.
3388         * tests/test-vprintf-posix.sh: Update.
3389         Reported by Ralf Wildenhues.
3390
3391 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
3392
3393         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
3394         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
3395         GCC 4.2, which otherwise issues a lot of warnings.
3396         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
3397         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
3398         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
3399         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
3400         it should no longer be needed.
3401         * lib/string_.h: Likewise.
3402         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
3403         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
3404         * modules/inttypes (inttypes.h): Likewise.
3405         * modules/math (math.h): Likewise.
3406         * modules/search (search.h): Likewise.
3407         * modules/signal (signal.h): Likewise.
3408         * modules/stdint (stdint.h): Likewise.
3409         * modules/stdio (stdio.h): Likewise.
3410         * modules/stdlib (stdlib.h): Likewise.
3411         * modules/string (string.h): Likewise.
3412         * modules/sys_time (sys/time.h): Likewise.
3413         * modules/time (time.h): Likewise.
3414         * modules/wchar (wchar.h): Likewise.
3415         * modules/wctype (wtype.h): Likewise.
3416
3417 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
3418
3419         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
3420
3421 2007-05-13  Bruno Haible  <bruno@clisp.org>
3422
3423         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
3424         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
3425         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
3426         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
3427         (gl_PREREQ_STRTOK_R): Don't require it here.
3428
3429 2007-05-13  Bruno Haible  <bruno@clisp.org>
3430
3431         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
3432         when used in C++ mode.
3433
3434 2007-05-12  Bruno Haible  <bruno@clisp.org>
3435
3436         * lib/linebuffer.h: Tweak doc.
3437         * lib/linebuffer.c: Likewise.
3438
3439 2007-05-12  James Youngman  <jay@gnu.org>
3440
3441         * lib/linebuffer.c (readlinebuffer_delim): New function,
3442         like readlinebuffer, but use a caller-specified delimiter.
3443         (readlinebuffer): Just call readlinebuffer_delim with '\n'
3444         as the delimiter.
3445         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
3446
3447 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
3448
3449         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
3450         * modules/openat (Files): Remove openat-die.c.
3451         (Depends-on): Add openat-die.
3452         * modules/openat-die: New module.
3453
3454 2007-05-06  Bruno Haible  <bruno@clisp.org>
3455
3456         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
3457         Update with info about Cygwin.
3458         * doc/functions/fprintf.texi: Update.
3459         * doc/functions/printf.texi: Update.
3460         * doc/functions/snprintf.texi: Update.
3461         * doc/functions/sprintf.texi: Update.
3462         * doc/functions/vfprintf.texi: Update.
3463         * doc/functions/vprintf.texi: Update.
3464         * doc/functions/vsnprintf.texi: Update.
3465         * doc/functions/vsprintf.texi: Update.
3466         Reported by Eric Blake.
3467
3468 2007-05-06  Bruno Haible  <bruno@clisp.org>
3469
3470         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
3471         padding ourselves for the floating-point directives.
3472         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
3473         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
3474         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
3475         gl_PRINTF_FLAG_ZERO and test its result. Invoke
3476         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
3477         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
3478         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
3479         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
3480         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
3481         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
3482         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
3483         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
3484         * tests/test-snprintf-posix.h (test_function): Also check the width
3485         and some flags in the %f directive.
3486         * tests/test-sprintf-posix.h (test_function): Likewise.
3487         * tests/test-vasnprintf-posix.c (test_function): Likewise.
3488         * tests/test-vasprintf-posix.c (test_function): Likewise.
3489         * doc/functions/fprintf.texi: Update.
3490         * doc/functions/printf.texi: Update.
3491         * doc/functions/snprintf.texi: Update.
3492         * doc/functions/sprintf.texi: Update.
3493         * doc/functions/vfprintf.texi: Update.
3494         * doc/functions/vprintf.texi: Update.
3495         * doc/functions/vsnprintf.texi: Update.
3496         * doc/functions/vsprintf.texi: Update.
3497
3498 2007-05-06  Bruno Haible  <bruno@clisp.org>
3499
3500         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
3501         pass the ' flag character to sprintf or snprintf.
3502         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
3503         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
3504         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
3505         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
3506         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
3507         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
3508         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
3509         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
3510         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
3511         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
3512         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
3513         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
3514         * tests/test-snprintf-posix.h (test_function): Also check the grouping
3515         flag.
3516         * tests/test-sprintf-posix.h (test_function): Likewise.
3517         * tests/test-vasnprintf-posix.c (test_function): Likewise.
3518         * tests/test-vasprintf-posix.c (test_function): Likewise.
3519         * doc/functions/fprintf.texi: Update.
3520         * doc/functions/printf.texi: Update.
3521         * doc/functions/snprintf.texi: Update.
3522         * doc/functions/sprintf.texi: Update.
3523         * doc/functions/vfprintf.texi: Update.
3524         * doc/functions/vprintf.texi: Update.
3525         * doc/functions/vsnprintf.texi: Update.
3526         * doc/functions/vsprintf.texi: Update.
3527
3528 2007-05-01  Bruno Haible  <bruno@clisp.org>
3529
3530         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
3531
3532 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
3533
3534         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
3535         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
3536
3537 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
3538
3539         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
3540         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
3541         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
3542
3543 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
3544
3545         * lib/argp-help.c (struct hol_entry): New member `ord'.
3546         (HOL_ENTRY_PTRCMP): Use ord for comparison
3547         (hol_sort): Initialize ord.
3548
3549 2007-05-01  Bruno Haible  <bruno@clisp.org>
3550
3551         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
3552         Reported by Eric Blake.
3553         * doc/gnulib.texi (Function Substitutes): Update.
3554
3555 2007-05-01  Bruno Haible  <bruno@clisp.org>
3556
3557         * doc/functions.texi: Remove file, now redundant through
3558         doc/functions/*.texi.
3559
3560 2007-05-01  Bruno Haible  <bruno@clisp.org>
3561
3562         * modules/argp (Depends-on): Add sleep.
3563
3564 2007-05-01  Bruno Haible  <bruno@clisp.org>
3565
3566         * modules/sleep-tests: New file.
3567         * tests/test-sleep.c: New file.
3568
3569         * modules/sleep: New file.
3570         * lib/sleep.c: New file.
3571         * m4/sleep.m4: New file.
3572         * lib/unistd_.h (sleep): New declaration.
3573         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
3574         HAVE_SLEEP.
3575         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
3576         * doc/functions/sleep.texi: Document the sleep module.
3577
3578 2007-05-01  Bruno Haible  <bruno@clisp.org>
3579
3580         * lib/sigprocmask.h: Remove file.
3581         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
3582         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
3583         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
3584         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
3585         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
3586         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
3587         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
3588         HAVE_SIGSET_T as a shell variable.
3589         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
3590         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
3591         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
3592         (Depends-on): Add signal. Remove verify.
3593         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
3594         (Include): Mention <signal.h> instead of sigprocmask.h.
3595         * NEWS: Mention the change.
3596         * lib/fatal-signal.c: Don't include sigprocmask.h.
3597
3598 2007-05-01  Bruno Haible  <bruno@clisp.org>
3599
3600         * modules/signal: New file.
3601         * lib/signal_.h: New file.
3602         * m4/signal_h.m4: New file.
3603
3604 2007-05-01  Bruno Haible  <bruno@clisp.org>
3605
3606         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
3607         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
3608         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
3609         HAVE_WCTYPE_CTMP_BUG into wctype.h.
3610
3611 2007-05-01  Bruno Haible  <bruno@clisp.org>
3612
3613         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
3614         configure time.
3615         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
3616         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
3617         * modules/sys_stat (Makefile.am): Substitute their values into
3618         sys/stat.h.
3619
3620 2007-05-01  Bruno Haible  <bruno@clisp.org>
3621
3622         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
3623         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
3624         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
3625
3626 2007-05-01  Bruno Haible  <bruno@clisp.org>
3627
3628         * doc/header/assert.texi: Undo last change: don't mention the gnulib
3629         'assert' module here.
3630
3631 2007-05-01  Bruno Haible  <bruno@clisp.org>
3632
3633         * doc/functions/*.texi: New files.
3634         * doc/functions/google-ranking.txt: New file.
3635         * doc/gnulib.texi (Function Substitutes): New chapter.
3636         (ctime, inet_ntoa): Remove sections.
3637         * doc/ctime.texi: Remove file.
3638         * doc/inet_ntoa.texi: Remove file.
3639         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
3640         dependencies.
3641         (%.info): New rule, specifying a --reference-limit.
3642
3643 2007-05-01  Bruno Haible  <bruno@clisp.org>
3644
3645         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
3646
3647 2007-05-01  Bruno Haible  <bruno@clisp.org>
3648
3649         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
3650         the portability of 'mkdir' to mingw systems.
3651
3652 2007-05-01  Bruno Haible  <bruno@clisp.org>
3653
3654         * doc/headers/google-ranking.txt: New file.
3655
3656 2007-04-30  Eric Blake  <ebb9@byu.net>
3657
3658         Prefer fseeko to fseek.
3659         * modules/getpass (Depends-on): Add fseeko.
3660         * lib/getpass.c (getpass): Use fseeko, not fseek.
3661
3662 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
3663
3664         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
3665         assumes the sorting is stable, while most qsort implementations
3666         are not.  Use argument addresses to ensure they never compare as
3667         equal.
3668
3669         * tests/test-argp-2.sh (usage-indent test): Fix output
3670         (func_compare): Restore diff options
3671         * tests/test-argp.c: Restore #include "progname.h"
3672
3673 2007-04-29  Bruno Haible  <bruno@clisp.org>
3674
3675         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
3676         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
3677         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
3678         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
3679         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
3680         (configure.ac): Define CHECK_SNPRINTF_POSIX.
3681         (TESTS, check_PROGRAMS): Add test-snprintf.
3682         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
3683         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
3684         (TESTS, check_PROGRAMS): Add test-vsnprintf.
3685         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
3686         assertions that fail on HP-UX, OSF/1, or IRIX.
3687         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
3688
3689 2007-04-29  Bruno Haible  <bruno@clisp.org>
3690
3691         * MODULES.html.sh (posix_functions): Remove 'contents'.
3692
3693 2007-04-29  Karl Berry  <karl@gnu.org>
3694
3695         * config/srclist.txt (gendocs_template_min): new entry.
3696
3697 2007-04-29  Bruno Haible  <bruno@clisp.org>
3698
3699         Work around fpurge bug on BSD systems.
3700         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
3701         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
3702         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
3703         fpurge to rpl_fpurge if the system already has this function.
3704         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
3705         the case where the system already has this function. Correct invariants
3706         on BSD systems.
3707         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
3708         BSD systems.
3709
3710 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
3711
3712         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
3713         proposed by Sven Verdoolaege.
3714
3715         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
3716         options.
3717         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
3718         (usage and help tests): Update
3719
3720 2007-04-29  Bruno Haible  <bruno@clisp.org>
3721
3722         * tests/test-fflush.c (main): Use a file of size 17, not 10.
3723         Print more information in case of failure. Disable a test on BeOS.
3724
3725 2007-04-29  Bruno Haible  <bruno@clisp.org>
3726
3727         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
3728         This helps debugging on systems on which no gdb is available.
3729
3730 2007-04-29  Bruno Haible  <bruno@clisp.org>
3731
3732         * lib/freading.h: Improve comments.
3733         * lib/fwriting.h: Likewise.
3734         * tests/test-freading.c (main): Don't check freading immediately after
3735         repositioning. Needed for glibc.
3736
3737 2007-04-29  Bruno Haible  <bruno@clisp.org>
3738
3739         * lib/freading.c (freading): Trivial simplification.
3740
3741 2007-04-28  Bruno Haible  <bruno@clisp.org>
3742
3743         * tests/test-fwriting.c (main): Also test the interaction between
3744         fflush and fwriting.
3745         * modules/fwriting-tests (Depends-on): Add fflush.
3746
3747         * tests/test-freading.c (main): Also test the interaction between
3748         fflush and freading.
3749         * modules/freading-tests (Depends-on): Add fflush.
3750
3751 2007-04-28  Bruno Haible  <bruno@clisp.org>
3752
3753         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
3754         fseeko and ftello.
3755         Suggested by Eric Blake.
3756
3757 2007-04-28  Jim Meyering  <jim@meyering.net>
3758
3759         Avoid false-negative in gl_STDINT_H's C99 conformance test.
3760         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
3761         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
3762
3763 2007-04-27  Eric Blake  <ebb9@byu.net>
3764
3765         * doc/headers/assert.texi (assert.h): Document assert module use.
3766
3767 2007-04-27  Bruno Haible  <bruno@clisp.org>
3768
3769         * doc/headers/*.texi: New files.
3770         * doc/gnulib.texi (Header File Substitutes): New chapter.
3771         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
3772         dependencies.
3773         (standards.info ,standards.html, standards.dvi): Update dependencies.
3774         (mostlyclean, clean): New targets.
3775
3776 2007-04-27  Bruno Haible  <bruno@clisp.org>
3777
3778         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
3779         * modules/sysexits (Files, Makefile.am): Update.
3780
3781         * lib/sys_socket_.h: Renamed from lib/socket_.h.
3782         * modules/sys_socket (Files, Makefile.am): Update.
3783
3784         * lib/sys_stat_.h: Renamed from lib/stat_.h.
3785         * modules/sys_stat (Files, Makefile.am): Update.
3786
3787 2007-04-27  Eric Blake  <ebb9@byu.net>
3788
3789         * lib/freading.h: Improve comments.
3790         * lib/fwriting.h: Likewise.
3791         * lib/fflush.c: Likewise.
3792
3793         Fix closein for mingw.
3794         * modules/closein-tests: Add tests for closein.
3795         * tests/test-closein.c: New file.
3796         * tests/test-closein.sh: Likewise.
3797         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
3798         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
3799
3800 2007-04-27  Bruno Haible  <bruno@clisp.org>
3801
3802         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
3803         version is < 6.
3804         * lib/math_.h [__DECC]: Likewise.
3805         * lib/stdio_.h [__DECC]: Likewise.
3806         * lib/stdlib_.h [__DECC]: Likewise.
3807         * lib/string_.h [__DECC]: Likewise.
3808         * lib/time_.h [__DECC]: Likewise.
3809         * lib/wchar_.h [__DECC]: Likewise.
3810         * lib/wctype_.h [__DECC]: Likewise.
3811
3812 2007-04-27  Bruno Haible  <bruno@clisp.org>
3813
3814         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
3815
3816 2007-04-27  Bruno Haible  <bruno@clisp.org>
3817
3818         * lib/fflush.c: Add comments.
3819         * modules/fpurge-tests (Depends-on): Add fflush.
3820         * modules/freadable-tests (Depends-on): Likewise.
3821         * modules/fwritable-tests (Depends-on): Likewise.
3822
3823 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
3824
3825         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
3826         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
3827         Report by Bruno Haible <bruno@clisp.org>.
3828
3829 2007-04-26  Eric Blake  <ebb9@byu.net>
3830
3831         Fix fflush on mingw.
3832         * modules/fflush (Depends-on): Add freading.
3833         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
3834         but unread data.
3835
3836 2007-04-26  Eric Blake  <ebb9@byu.net>
3837         and Bruno Haible  <bruno@clisp.org>
3838
3839         Implement freading and fwriting.
3840         * lib/freading.c: New file.
3841         * lib/freading.h: Likewise.
3842         * m4/freading.m4: Likewise.
3843         * modules/freading: Likewise.
3844         * modules/freading-tests: Likewise.
3845         * tests/test-freading.c: Likewise.
3846         * lib/fwriting.c: New file.
3847         * lib/fwriting.h: Likewise.
3848         * m4/fwriting.m4: Likewise.
3849         * modules/fwriting: Likewise.
3850         * modules/fwriting-tests: Likewise.
3851         * tests/test-fwriting.c: Likewise.
3852         * MODULES.html.sh (File stream based Input/Output): Mention them.
3853
3854 2007-04-26  Bruno Haible  <bruno@clisp.org>
3855
3856         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
3857         'long' when we assume it.
3858         Suggested by Eric Blake.
3859
3860 2007-04-26  Bruno Haible  <bruno@clisp.org>
3861
3862         Ensure fseeko, ftello are declared on glibc systems.
3863         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
3864         * modules/fseeko (configure.ac-early): Likewise.
3865         * modules/ftello (configure.ac-early): Likewise.
3866         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
3867         AC_FUNC_FSEEKO for this.
3868         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
3869         (gl_CHECK_FSEEKO): Remove macro.
3870
3871 2007-04-26  Bruno Haible  <bruno@clisp.org>
3872
3873         * tests/test-fflush.c (main): Also check the ftell result after
3874         fflush and fseek/fseeko.
3875         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
3876         file descriptor position cache in the stream.
3877         * lib/fseeko.c (rpl_fseeko): Likewise.
3878
3879 2007-04-26  Bruno Haible  <bruno@clisp.org>
3880
3881         * modules/fflush-tests (Depends-on): Add fseeko.
3882
3883 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
3884             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3885
3886         * lib/argz_.h: ensure error_t definition is obtained in same
3887         mechanism system argz.h would have.
3888         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
3889         argz facilities are known bad.  Err on the side of caution if
3890         cross-compiling.
3891
3892 2007-04-25  Eric Blake  <ebb9@byu.net>
3893
3894         * lib/fpurge.c (includes): Use stdlib.h for free.
3895         * tests/test-fflush.c (main): Also test fflush-fseeko.
3896
3897 2007-04-25  Bruno Haible  <bruno@clisp.org>
3898
3899         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
3900         * lib/fseeko.c: New file.
3901         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
3902         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
3903         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
3904         gl_FUNC_FSEEKO.
3905         (gl_FUNC_FSEEKO): Invoke it.
3906         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
3907         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
3908         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
3909
3910 2007-04-25  Bruno Haible  <bruno@clisp.org>
3911
3912         * modules/fflush (Depends-on): Add ftello.
3913
3914 2007-04-25  Bruno Haible  <bruno@clisp.org>
3915
3916         * modules/ftello-tests: New file.
3917         * tests/test-ftello.c: New file.
3918
3919         * modules/ftello: New file.
3920         * m4/ftello.m4: New file.
3921         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
3922         HAVE_FTELLO.
3923         * lib/stdio_.h (ftello): New declaration.
3924         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
3925         HAVE_FTELLO.
3926
3927 2007-04-25  Bruno Haible  <bruno@clisp.org>
3928
3929         * modules/fseeko-tests: New file.
3930         * tests/test-fseeko.c: New file.
3931
3932         * modules/fseeko: New file.
3933         * m4/fseeko.m4: New file.
3934         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
3935         HAVE_FSEEKO.
3936         * lib/stdio_.h (fseeko): New declaration.
3937         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
3938         HAVE_FSEEKO.
3939
3940 2007-04-25  Bruno Haible  <bruno@clisp.org>
3941
3942         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
3943
3944 2007-04-25  Bruno Haible  <bruno@clisp.org>
3945
3946         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
3947         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
3948         * tests/test-unistd.c: Likewise.
3949         * tests/test-fcntl.c: Likewise.
3950
3951 2007-04-23  Eric Blake  <ebb9@byu.net>
3952
3953         * lib/fflush.c: Fix missing include.
3954         Reported by Bruno Haible.
3955
3956 2007-04-23  Bruno Haible  <bruno@clisp.org>
3957
3958         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
3959         Reported by Eric Blake.
3960
3961 2007-04-23  Bruno Haible  <bruno@clisp.org>
3962
3963         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
3964
3965 2007-04-23  Bruno Haible  <bruno@clisp.org>
3966
3967         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
3968
3969 2007-04-23  Bruno Haible  <bruno@clisp.org>
3970
3971         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
3972         Needed on HP-UX 11.
3973
3974 2007-04-16  Eric Blake  <ebb9@byu.net>
3975
3976         Make fflush rely on fpurge.
3977         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
3978         open coding all variants.
3979         * modules/fflush (Depends-on): Add fpurge and unistd.
3980         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
3981         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
3982
3983         Fix --with-tests compilation on cygwin.
3984         * modules/argmatch-tests (Makefile.am): List gnulib library first
3985         in LDADD.
3986         * modules/argp-tests (Makefile.am): Likewise.
3987         * modules/array-list-tests (Makefile.am): Likewise.
3988         * modules/array-oset-tests (Makefile.am): Likewise.
3989         * modules/avltree-list-tests (Makefile.am): Likewise.
3990         * modules/avltree-oset-tests (Makefile.am): Likewise.
3991         * modules/avltreehash-list-tests (Makefile.am): Likewise.
3992         * modules/carray-list-tests (Makefile.am): Likewise.
3993         * modules/dirname-tests (Makefile.am): Likewise.
3994         * modules/frexp-tests (Makefile.am): Likewise.
3995         * modules/isnanl-tests (Makefile.am): Likewise.
3996         * modules/linked-list-tests (Makefile.am): Likewise.
3997         * modules/linkedhash-list-tests (Makefile.am): Likewise.
3998         * modules/lock-tests (Makefile.am): Likewise.
3999         * modules/rbtree-list-tests (Makefile.am): Likewise.
4000         * modules/rbtree-oset-tests (Makefile.am): Likewise.
4001         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
4002         * modules/tls-tests (Makefile.am): Likewise.
4003         * modules/tsearch-tests (Makefile.am): Likewise.
4004         * modules/xvasprintf-tests (Makefile.am): Likewise.
4005
4006         Fix fpurge for cygwin.
4007         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
4008         value.
4009         * modules/fpurge-tests (Depends-on): Clean up trash.
4010
4011 2007-04-16  Simon Josefsson  <simon@josefsson.org>
4012
4013         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
4014
4015         * m4/autobuild.m4: Re-indent.
4016
4017 2007-04-13  Bruno Haible  <bruno@clisp.org>
4018
4019         * modules/fpurge-tests: New file.
4020         * tests/test-fpurge.c: New file.
4021
4022         * modules/fpurge: New file.
4023         * lib/fpurge.h: New file.
4024         * lib/fpurge.c: New file.
4025         * m4/fpurge.m4: New file.
4026
4027 2007-04-13  Bruno Haible  <bruno@clisp.org>
4028
4029         * modules/fbufmode-tests: New file.
4030         * tests/test-fbufmode.c: New file.
4031
4032         * modules/fbufmode: New file.
4033         * lib/fbufmode.h: New file.
4034         * lib/fbufmode.c: New file.
4035         * m4/fbufmode.m4: New file.
4036
4037 2007-04-13  Bruno Haible  <bruno@clisp.org>
4038
4039         * modules/fwritable-tests: New file.
4040         * tests/test-fwritable.c: New file.
4041
4042         * modules/fwritable: New file.
4043         * lib/fwritable.h: New file.
4044         * lib/fwritable.c: New file.
4045         * m4/fwritable.m4: New file.
4046
4047 2007-04-13  Bruno Haible  <bruno@clisp.org>
4048
4049         * modules/freadable-tests: New file.
4050         * tests/test-freadable.c: New file.
4051
4052         * modules/freadable: New file.
4053         * lib/freadable.h: New file.
4054         * lib/freadable.c: New file.
4055         * m4/freadable.m4: New file.
4056
4057 2007-04-13  Bruno Haible  <bruno@clisp.org>
4058
4059         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
4060         MOSTLYCLEANFILES.
4061
4062 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
4063
4064         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
4065         gzip bootstrap.conf to avoid dragging in i18n machinery.
4066         (gnulib_tool_option): Use it.
4067
4068 2007-04-13  Bruno Haible  <bruno@clisp.org>
4069
4070         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
4071         %F directives.
4072         * tests/test-vasprintf-posix.c (test_function): Likewise.
4073         * tests/test-snprintf-posix.h (test_function): Likewise.
4074         * tests/test-sprintf-posix.h (test_function): Likewise.
4075         * tests/test-fprintf-posix.h (test_function): Likewise.
4076         * tests/test-printf-posix.h (test_function): Likewise.
4077         * tests/test-fprintf-posix.out: Likewise.
4078
4079 2007-04-13  Bruno Haible  <bruno@clisp.org>
4080
4081         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
4082         * modules/tls-tests (configure.ac): Likewise.
4083         Reported by Arto C. Nirkko <anirkko@insel.ch>.
4084
4085 2007-04-13  Bruno Haible  <bruno@clisp.org>
4086
4087         * lib/tls.c (glthread_tls_get): Fix return type.
4088         Patch by Arto C. Nirkko <anirkko@insel.ch>.
4089
4090 2007-04-12  Eric Blake  <ebb9@byu.net>
4091
4092         * modules/gettime (Depends-on): Remove gettime.
4093         Reported by Dmitry V. Levin.
4094
4095 2007-04-12  Bruno Haible  <bruno@clisp.org>
4096
4097         * modules/fflush (Include): Mention <stdio.h>.
4098         * modules/strtoimax (Include): Mention <inttypes.h>.
4099         * modules/strtoumax (Include): Likewise.
4100
4101 2007-04-12  Eric Blake  <ebb9@byu.net>
4102
4103         * .cvsignore: New file.
4104         * .gitignore: Likewise.
4105
4106 2007-04-12  Bruno Haible  <bruno@clisp.org>
4107
4108         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
4109         not before, since $(LDADD) often contains libgnu.a.
4110         * modules/striconv-tests (test_striconv_LDADD): Likewise.
4111         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
4112         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
4113         Needed on Cygwin.
4114
4115 2007-04-12  Eric Blake  <ebb9@byu.net>
4116
4117         Work around glibc's failure to flush stdin on fclose.
4118         * lib/closein.c (close_stdin): Flush stdin before closing.
4119
4120         Work around glibc's failure to reset seekable stdin on exit.
4121         * modules/closein: New module.
4122         * lib/closein.c: New file.
4123         * lib/closein.h: Likewise.
4124         * m4/closein.m4: Likewise.
4125         * MODULES.html.sh (File stream based Input/Output): Document it.
4126
4127 2007-04-12  Simon Josefsson  <simon@josefsson.org>
4128
4129         * gnulib-tool: Rename generated 'autobuild' script to
4130         'do-autobuild' in --create-megatestdir output.
4131
4132         * doc/gnulib.texi (Build robot for gnulib): Fix.
4133
4134 2007-04-12  Simon Josefsson  <simon@josefsson.org>
4135
4136         * modules/sysexits (Depends-on): Add absolute-header.
4137
4138 2007-04-12  Eric Blake  <ebb9@byu.net>
4139
4140         No need to preserve errno on success.
4141         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
4142         Reported by Bruno Haible.
4143
4144 2007-04-12  Simon Josefsson  <simon@josefsson.org>
4145
4146         * MODULES.html.sh (Support for maintaining and releasing
4147         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
4148
4149 2007-04-12  Simon Josefsson  <simon@josefsson.org>
4150
4151         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
4152
4153 2007-04-12  Simon Josefsson  <simon@josefsson.org>
4154
4155         * modules/autobuild: New module.
4156
4157         * m4/autobuild.m4: New file.
4158
4159 2007-04-11  Bruno Haible  <bruno@clisp.org>
4160
4161         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
4162         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
4163         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
4164         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
4165         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
4166         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
4167         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
4168         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
4169         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
4170         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
4171         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
4172         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
4173         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
4174         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
4175         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
4176         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
4177         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
4178         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
4179         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
4180         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
4181         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
4182         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
4183         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
4184         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
4185         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
4186         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
4187         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
4188         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
4189         Reported by Eric Blake.
4190
4191 2007-04-11  Bruno Haible  <bruno@clisp.org>
4192
4193         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
4194
4195 2007-04-10  Bruno Haible  <bruno@clisp.org>
4196
4197         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
4198         for NaN and Infinity. Needed on FreeBSD 6.1.
4199         * tests/test-vasnprintf-posix.c (test_function): Undo last change
4200         regarding results for "%010a" of Infinity and NaN.
4201         * tests/test-vasprintf-posix.c (test_function): Likewise.
4202         * tests/test-snprintf-posix.h (test_function): Likewise.
4203         * tests/test-sprintf-posix.h (test_function): Likewise.
4204         * tests/test-fprintf-posix.h (test_function): Likewise.
4205         * tests/test-printf-posix.h (test_function): Likewise.
4206         * tests/test-fprintf-posix.out: Likewise.
4207
4208 2007-04-10  Bruno Haible  <bruno@clisp.org>
4209
4210         * modules/locale-tests: New file.
4211         * tests/test-locale.c: New file.
4212
4213         * modules/locale: New file.
4214         * lib/locale_.h: New file.
4215         * m4/locale_h.m4: New file.
4216
4217 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
4218             Bruno Haible  <bruno@clisp.org>
4219
4220         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
4221         be determined, test for availability of the copysignf, copysign,
4222         copysignl functions.
4223         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
4224         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
4225         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
4226
4227 2007-04-09  Eric Blake  <ebb9@byu.net>
4228
4229         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
4230         * modules/stdio (Makefile.am): Support fflush.
4231         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
4232         * modules/fflush: New file.
4233         * lib/fflush.c: Likewise.
4234         * m4/fflush.m4: Likewise.
4235         * modules/fflush-tests: New test.
4236         * tests/test-fflush.c: Likewise.
4237         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
4238
4239 2007-04-06  Bruno Haible  <bruno@clisp.org>
4240
4241         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
4242         (VASNPRINTF): Use signbit for faster determination whether to print a
4243         minus sign.
4244         * modules/vasnprintf (Files): Remove lib/float+.h.
4245         * modules/fprintf-posix (Depends-on): Add signbit.
4246         * modules/snprintf-posix (Depends-on): Likewise.
4247         * modules/sprintf-posix (Depends-on): Likewise.
4248         * modules/vasnprintf-posix (Depends-on): Likewise.
4249         * modules/vasprintf-posix (Depends-on): Likewise.
4250         * modules/vfprintf-posix (Depends-on): Likewise.
4251         * modules/vsnprintf-posix (Depends-on): Likewise.
4252         * modules/vsprintf-posix (Depends-on): Likewise.
4253
4254 2007-04-06  Bruno Haible  <bruno@clisp.org>
4255
4256         * tests/test-frexp.c (main): Test also the sign bit of zero results.
4257         * tests/test-frexpl.c (main): Likewise.
4258         * tests/test-ldexpl.c (main): Likewise.
4259         * modules/frexp-tests (Depends-on): Add signbit.
4260         * modules/frexpl-tests (Depdends-on): Likewise.
4261         * modules/ldexpl-tests (Depdends-on): Likewise.
4262
4263 2007-04-06  Bruno Haible  <bruno@clisp.org>
4264
4265         * modules/signbit-tests: New file.
4266         * tests/test-signbit.c: New file.
4267
4268         * modules/signbit: New file.
4269         * lib/signbitf.c: New file.
4270         * lib/signbitd.c: New file.
4271         * lib/signbitl.c: New file.
4272         * m4/signbit.m4: New file.
4273         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
4274         (signbit): New macro.
4275         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
4276         REPLACE_SIGNBIT.
4277         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
4278         REPLACE_FREXPL into math.h.
4279
4280 2007-04-06  Bruno Haible  <bruno@clisp.org>
4281
4282         * modules/isnanf-nolibm-tests: New file.
4283         * tests/test-isnanf.c: New file.
4284
4285         * modules/isnanf-nolibm: New file.
4286         * lib/isnanf.h: New file.
4287         * lib/isnanf.c: New file.
4288         * lib/isnan.c: Consider the USE_FLOAT macro.
4289         * m4/isnanf.m4: New file.
4290
4291 2007-04-06  Bruno Haible  <bruno@clisp.org>
4292
4293         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
4294         (Link): New section.
4295
4296         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
4297
4298 2007-04-06  Bruno Haible  <bruno@clisp.org>
4299
4300         Assume the 'long double' type.
4301         * m4/longdouble.m4: Remove file.
4302         * config/srclist.txt: Don't mention longdouble.m4.
4303         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
4304         * lib/float+.h: Likewise.
4305         * lib/frexp.c: Likewise.
4306         * lib/printf-args.h: Likewise.
4307         * lib/printf-args.c: Likewise.
4308         * lib/printf-frexp.c: Likewise.
4309         * lib/printf-parse.c: Likewise.
4310         * lib/vasnprintf.c: Likewise.
4311         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
4312         * m4/intl.m4: Likewise.
4313         * m4/isnanl.m4: Likewise.
4314         * m4/printf.m4: Likewise.
4315         * m4/printf-frexpl.m4: Likewise.
4316         * m4/vasnprintf.m4: Likewise.
4317         * modules/allocsa (Files): Remove m4/longdouble.m4.
4318         * modules/gettext (Files): Likewise.
4319         * modules/relocatable-prog-wrapper (Files): Likewise.
4320         * modules/vasnprintf (Files): Likewise.
4321         * modules/isnanl (Files): Likewise.
4322         (Include): Simplify.
4323         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
4324         (Include): Simplify.
4325         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
4326         (Include): Simplify.
4327         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
4328         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
4329         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
4330         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
4331         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
4332         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
4333         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
4334         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
4335         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
4336         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
4337         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
4338         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
4339         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
4340         * tests/test-isnanl.c: Likewise.
4341         * tests/test-snprintf-posix.h: Likewise.
4342         * tests/test-sprintf-posix.h: Likewise.
4343         * tests/test-vasnprintf-posix.c: Likewise.
4344         * tests/test-vasnprintf-posix2.c: Likewise.
4345         * tests/test-vasprintf-posix.c: Likewise.
4346
4347 2007-04-06  Bruno Haible  <bruno@clisp.org>
4348
4349         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
4350         * lib/math_.h [__DECC]: Include the overridden include file through
4351         #include_next, outside the double-inclusion guard.
4352         * lib/stdio_.h [__DECC]: Likewise.
4353         * lib/stdlib_.h [__DECC]: Likewise.
4354         * lib/string_.h [__DECC]: Likewise.
4355         * lib/time_.h [__DECC]: Likewise.
4356         * lib/wchar_.h [__DECC]: Likewise.
4357         * lib/wctype_.h [__DECC]: Likewise.
4358         * lib/inttypes_.h [__DECC]: Likewise.
4359         Reported by Albert Chin <china@thewrittenword.com> in
4360         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
4361
4362 2007-04-04  Eric Blake  <ebb9@byu.net>
4363
4364         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
4365         1.5.x.
4366
4367 2007-04-04  Bruno Haible  <bruno@clisp.org>
4368
4369         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
4370         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
4371
4372 2007-04-04  Bruno Haible  <bruno@clisp.org>
4373
4374         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
4375         results for "%010a" of Infinity and NaN.
4376         * tests/test-vasprintf-posix.c (test_function): Likewise.
4377         * tests/test-snprintf-posix.h (test_function): Likewise.
4378         * tests/test-sprintf-posix.h (test_function): Likewise.
4379         * tests/test-fprintf-posix.h (test_function): Remove these tests.
4380         * tests/test-printf-posix.h (test_function): Likewise.
4381         * tests/test-fprintf-posix.out: Update.
4382         Needed for FreeBSD 6.1.
4383
4384 2007-04-04  Bruno Haible  <bruno@clisp.org>
4385
4386         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
4387         directly used by the gnulib modules nor by gnulib-tool.
4388
4389 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
4390
4391         * DEPENDENCIES: Give overall description of version dependency
4392         desirability.  Use more-typical names for apps.
4393         Add shell, coreutils, diffutils, grep, tar, gzip.
4394
4395 2007-04-04  Simon Josefsson  <simon@josefsson.org>
4396
4397         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
4398
4399 2007-04-04  Karl Berry  <karl@gnu.org>
4400
4401         * MODULES.html.sh (func_module): missing '.
4402
4403 2007-04-03  Bruno Haible  <bruno@clisp.org>
4404
4405         * modules/argmatch-tests (Makefile.am): New variable
4406         test_argmatch_LDADD.
4407         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
4408         * modules/array-list-tests (Makefile.am): New variable
4409         test_array_list_LDADD.
4410         * modules/array-oset-tests (Makefile.am): New variable
4411         test_array_oset_LDADD.
4412         * modules/avltree-list-tests (Makefile.am): New variable
4413         test_avltree_list_LDADD.
4414         * modules/avltree-oset-tests (Makefile.am): New variable
4415         test_avltree_oset_LDADD.
4416         * modules/avltreehash-list-tests (Makefile.am): New variable
4417         test_avltreehash_list_LDADD.
4418         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
4419         test_canonicalize_lgpl_LDADD.
4420         * modules/carray-list-tests (Makefile.am): New variable
4421         test_carray_list_LDADD.
4422         * modules/dirname-tests (Makefile.am): New variable
4423         test_dirname_LDADD.
4424         * modules/linked-list-tests (Makefile.am): New variable
4425         test_linked_list_LDADD.
4426         * modules/linkedhash-list-tests (Makefile.am): New variable
4427         test_linkedhash_list_LDADD.
4428         * modules/rbtree-list-tests (Makefile.am): New variable
4429         test_rbtree_list_LDADD.
4430         * modules/rbtree-oset-tests (Makefile.am): New variable
4431         test_rbtree_oset_LDADD.
4432         * modules/rbtreehash-list-tests (Makefile.am): New variable
4433         test_rbtreehash_list_LDADD.
4434         * modules/xvasprintf-tests (Makefile.am): New variable
4435         test_xvasprintf_LDADD.
4436         Reported by Eric Blake.
4437
4438 2007-04-03  Eric Blake  <ebb9@byu.net>
4439
4440         * DEPENDENCIES: Weaken m4 requirements.
4441
4442 2007-04-03  Bruno Haible  <bruno@clisp.org>
4443
4444         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
4445         * modules/isnanl-tests (configure.ac): Likewise.
4446
4447 2007-04-03  Ben Pfaff  <blp@gnu.org>
4448
4449         * modules/iconv_open: Add $(srcdir)/ to source directory
4450         references in Makefile fragments that call gperf, to fix VPATH
4451         builds.
4452
4453 2007-04-03  Bruno Haible  <bruno@clisp.org>
4454
4455         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
4456         * lib/ldexpl.c: Undo last change.
4457
4458 2007-04-03  Bruno Haible  <bruno@clisp.org>
4459
4460         * modules/printf-frexpl (Depends-on): Undo last change.
4461         (Files): Add m4/ldexpl.m4.
4462
4463 2007-04-03  Bruno Haible  <bruno@clisp.org>
4464
4465         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
4466         * modules/isnanl (Link): New section.
4467
4468         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
4469         * modules/frexp (Link): New section.
4470
4471         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
4472         * modules/frexpl (Link): New section.
4473
4474         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
4475         * modules/ldexpl (Link): New section.
4476
4477 2007-04-03  Bruno Haible  <bruno@clisp.org>
4478
4479         * modules/TEMPLATE-EXTENDED: New file.
4480         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
4481
4482 2007-04-03  Bruno Haible  <bruno@clisp.org>
4483
4484         * DEPENDENCIES: New file.
4485         Suggested by Simon Josefsson.
4486
4487 2007-04-03  Bruno Haible  <bruno@clisp.org>
4488
4489         * doc/gnulib.texi: Escape @.
4490
4491 2007-04-03  James Youngman  <jay@gnu.org>
4492         and Paul Eggert  <eggert@cs.ucla.edu>
4493
4494         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
4495         birthtime on all systems that have birthtime, not just those which
4496         use st_birthtimensec rather than st_birthtim.  Putting zero in
4497         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
4498         that the birth time is not available for files on an NFS mount.
4499
4500 2007-04-03  Simon Josefsson  <simon@josefsson.org>
4501
4502         * modules/memxor: Move back from crypto/, suggested by Bruno.
4503         * modules/crypto/hmac-sha1: Fix memxor dependency.
4504
4505         * modules/crypto/gc: Moved from ../.
4506
4507 2007-04-02  Eric Blake  <ebb9@byu.net>
4508
4509         * lib/ldexpl.c (includes): Avoid libm.
4510
4511         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
4512
4513 2007-04-02  Bruno Haible  <bruno@clisp.org>
4514
4515         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
4516         on IRIX.
4517
4518 2007-04-02  Bruno Haible  <bruno@clisp.org>
4519
4520         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
4521         x86 or x86_64 platforms running MacOS X.
4522         Reported by Ryan Schmidt <@ryandesign.com>.
4523
4524 2007-04-02  Bruno Haible  <bruno@clisp.org>
4525
4526         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
4527         i386.
4528
4529 2007-04-01  Simon Josefsson  <simon@josefsson.org>
4530
4531         * modules/crypto/arcfour: Moved from ../.
4532         * modules/crypto/arcfour-tests: Moved from ../.
4533         * modules/crypto/arctwo: Moved from ../.
4534         * modules/crypto/arctwo-tests: Moved from ../.
4535         * modules/crypto/des: Moved from ../.
4536         * modules/crypto/des-tests: Moved from ../.
4537         * modules/crypto/gc-arcfour: Moved from ../.
4538         * modules/crypto/gc-arcfour-tests: Moved from ../.
4539         * modules/crypto/gc-arctwo: Moved from ../.
4540         * modules/crypto/gc-arctwo-tests: Moved from ../.
4541         * modules/crypto/gc-des: Moved from ../.
4542         * modules/crypto/gc-des-tests: Moved from ../.
4543         * modules/crypto/gc-hmac-md5: Moved from ../.
4544         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
4545         * modules/crypto/gc-hmac-sha1: Moved from ../.
4546         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
4547         * modules/crypto/gc-md2: Moved from ../.
4548         * modules/crypto/gc-md2-tests: Moved from ../.
4549         * modules/crypto/gc-md4: Moved from ../.
4550         * modules/crypto/gc-md4-tests: Moved from ../.
4551         * modules/crypto/gc-md5: Moved from ../.
4552         * modules/crypto/gc-md5-tests: Moved from ../.
4553         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
4554         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
4555         * modules/crypto/gc-random: Moved from ../.
4556         * modules/crypto/gc-rijndael: Moved from ../.
4557         * modules/crypto/gc-rijndael-tests: Moved from ../.
4558         * modules/crypto/gc-sha1: Moved from ../.
4559         * modules/crypto/gc-sha1-tests: Moved from ../.
4560         * modules/crypto/gc-tests: Moved from ../.
4561         * modules/crypto/hmac-md5: Moved from ../.
4562         * modules/crypto/hmac-md5-tests: Moved from ../.
4563         * modules/crypto/hmac-sha1: Moved from ../.
4564         * modules/crypto/hmac-sha1-tests: Moved from ../.
4565         * modules/crypto/md2: Moved from ../.
4566         * modules/crypto/md2-tests: Moved from ../.
4567         * modules/crypto/md4: Moved from ../.
4568         * modules/crypto/md4-tests: Moved from ../.
4569         * modules/crypto/md5: Moved from ../.
4570         * modules/crypto/md5-tests: Moved from ../.
4571         * modules/crypto/memxor: Moved from ../.
4572         * modules/crypto/rijndael: Moved from ../.
4573         * modules/crypto/rijndael-tests: Moved from ../.
4574         * modules/crypto/sha1: Moved from ../.
4575
4576 2007-03-30  James Youngman  <jay@gnu.org>
4577
4578         * tests/test-stat-time.c (prepare_test): use chmod() rather than
4579         rename() to change the ctime of a file (because ctime is unaffected
4580         by rename on jfs2 on AIX 5.1).
4581         (main): Start by doing cleanup, in case a previous run failed leaving
4582         test files behind.
4583
4584 2007-03-31  Bruno Haible  <bruno@clisp.org>
4585
4586         Support old proprietary implementations of iconv.
4587         * modules/iconv_open: New file.
4588         * lib/iconv_.h: New file.
4589         * m4/iconv_h.m4: New file.
4590         * lib/iconv_open.c: New file.
4591         * lib/iconv_open-aix.gperf: New file.
4592         * lib/iconv_open-hpux.gperf: New file.
4593         * lib/iconv_open-irix.gperf: New file.
4594         * lib/iconv_open-osf.gperf: New file.
4595         * m4/iconv_open.m4: New file.
4596         * modules/linebreak (Depends-on): Add iconv_open.
4597         * modules/striconv (Depends-on): Likewise.
4598         * modules/striconveh (Depends-on): Likewise.
4599         * modules/unicodeio (Depends-on): Likewise.
4600         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
4601         (iconv_t)(-1).
4602         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
4603         conversion if cd is (iconv_t)(-1).
4604         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
4605         is not possible.
4606
4607 2007-03-31  Bruno Haible  <bruno@clisp.org>
4608
4609         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
4610         work on Solaris either. Protect also second use of "autodetect_jp".
4611
4612 2007-03-31  Bruno Haible  <bruno@clisp.org>
4613
4614         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
4615         the function is not present.
4616
4617 2007-03-31  Bruno Haible  <bruno@clisp.org>
4618
4619         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
4620         the function is not present.
4621
4622 2007-03-31  Bruno Haible  <bruno@clisp.org>
4623
4624         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
4625         a bug in HP-UX iconv_open().
4626
4627 2007-03-31  Bruno Haible  <bruno@clisp.org>
4628
4629         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
4630         (Mathematics <math.h>): New section, add fpieee.
4631         (Input/output <stdio.h>): Add fseterr.
4632         (Mathematics <math.h>): New section, add printf-frexp.
4633         (Container data structures): Add sublist.
4634         (Core language properties): Add fpucw, inline.
4635         (Functions for greatest-width integer types <inttypes.h>): Add
4636         imaxabs, imaxdiv, inttypes.
4637         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
4638         isnanl-nolibm, ldexp.
4639         (Mathematics <math.h>): New section, add printf-frexpl.
4640         (Support for systems lacking POSIX:2001): Add fprintf-posix,
4641         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
4642         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
4643         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
4644         (Unicode string functions): Add unistr/u*-mbtoucr.
4645         (Java): Add javacomp-script, javaexec-script.
4646         (C#): Add csharpcomp-script, csharpexec-script.
4647         (Support for building libraries and executables): Add havelib,
4648         relocatable-*.
4649         (Support for maintaining and releasing projects): Renamed from
4650         'Support for maintaining and release projects'. Add announce-gen.
4651
4652 2007-03-31  Bruno Haible  <bruno@clisp.org>
4653
4654         * README: Talk primarily about git.
4655         (git and CVS): Renamed from CVS.
4656         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
4657         gnulib is available through git.
4658         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
4659
4660 2007-03-30  Bruno Haible  <bruno@clisp.org>
4661
4662         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
4663         * lib/poll_.h: Likewise.
4664         * lib/stat_.h: Likewise.
4665         * lib/sys_time_.h: Likewise.
4666         * lib/sysexit_.h: Likewise.
4667         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
4668         * lib/stdbool_.h: Likewise.
4669         * lib/byteswap_.h: Add double-inclusion guard.
4670
4671 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
4672
4673         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
4674
4675 2007-03-30  Karl Berry  <karl@gnu.org>
4676
4677         * config/srclist-update: double space after USA in the license
4678         substitution, since that's how it's usually (?) written.
4679
4680 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
4681
4682         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
4683         reported by Bruno Haible.
4684
4685 2007-03-29  Bruno Haible  <bruno@clisp.org>
4686
4687         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
4688         a bug in AIX iconv().
4689
4690 2007-03-29  Bruno Haible  <bruno@clisp.org>
4691
4692         * modules/ldexpl-tests: New file.
4693         * tests/test-ldexpl.c: New file.
4694
4695 2007-03-29  Bruno Haible  <bruno@clisp.org>
4696
4697         * lib/ldexpl.c: Include fpucw.h.
4698         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
4699         multiplication.
4700         * modules/ldexpl (Depends-on): Add fpucw.
4701
4702 2007-03-29  Bruno Haible  <bruno@clisp.org>
4703
4704         * modules/ldexpl: New file.
4705         * m4/ldexpl.m4: New file.
4706         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
4707         set.
4708         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
4709         REPLACE_LDEXPL.
4710         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
4711         REPLACE_LDEXPL.
4712         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
4713         gl_FUNC_LDEXPL_WORKS.
4714         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
4715         * modules/mathl (Files): Remove lib/ldexpl.c.
4716         (Depends-on): Add ldexpl.
4717
4718 2007-03-29  Bruno Haible  <bruno@clisp.org>
4719
4720         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
4721
4722 2007-03-29  Bruno Haible  <bruno@clisp.org>
4723
4724         * tests/test-striconveh.c (main): Don't assume that a direct conversion
4725         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
4726         and possibly also HP-UX.
4727         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
4728         work on AIX, IRIX, HP-UX, OSF/1.
4729         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
4730         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
4731         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
4732         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
4733         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
4734         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
4735
4736 2007-03-29  Bruno Haible  <bruno@clisp.org>
4737
4738         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
4739
4740 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
4741
4742         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
4743         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
4744
4745 2007-03-29  Eric Blake  <ebb9@byu.net>
4746
4747         * lib/acl-internal.h: Remove redundant include.
4748         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
4749         Cygwin when a file is locked.
4750
4751 2007-03-29  Bruno Haible  <bruno@clisp.org>
4752
4753         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
4754         file.
4755         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
4756
4757 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
4758
4759         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
4760         try to remove a parent directory if the child couldn't be removed
4761         (except for the first rmdir, which could fail because the child
4762         doesn't exist).  Problem reported by Jeff Blaine in
4763         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
4764
4765 2007-03-28  Bruno Haible  <bruno@clisp.org>
4766
4767         * lib/striconveh.c (utf8conv_carefully): New function.
4768         (mem_cd_iconveh_internal): Invoke it.
4769
4770 2007-03-28  Bruno Haible  <bruno@clisp.org>
4771
4772         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
4773         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
4774         input.
4775         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
4776         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
4777         unistr/u8-uctomb.
4778
4779 2007-03-28  Bruno Haible  <bruno@clisp.org>
4780
4781         * modules/unistr/u8-mbtoucr: New file.
4782         * lib/unistr/u8-mbtoucr.c: New file.
4783         * modules/unistr/u16-mbtoucr: New file.
4784         * lib/unistr/u16-mbtoucr.c: New file.
4785         * modules/unistr/u16-mbtoucr: New file.
4786         * lib/unistr/u16-mbtoucr.c: New file.
4787         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
4788
4789 2007-03-27  Simon Josefsson  <simon@josefsson.org>
4790             Bruno Haible  <bruno@clisp.org>
4791
4792         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
4793         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
4794         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
4795
4796         * m4/stdio_h.m4: Add stubs for vasprintf too.
4797
4798         * modules/stdio: Support vasprintf in sed command.
4799
4800         * modules/vasprintf: Depend on stdio for prototypes.  Remove
4801         vasprintf.h.  Add stdio module indicator.
4802
4803         * lib/stdio_.h: Declare asprintf and vasprintf, based on
4804         vasprintf.h.
4805
4806         * lib/vasprintf.h: File removed.
4807
4808         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
4809         * lib/vasprintf.c: Ditto.
4810         * lib/xvasprintf.c: Ditto.
4811         * tests/test-vasprintf-posix.c: Ditto.
4812         * tests/test-vasprintf.c: Ditto.
4813
4814 2007-03-27  Bruno Haible  <bruno@clisp.org>
4815
4816         Make vasnprintf multithread-safe.
4817         * lib/vasnprintf.c (decimal_point_char): New function.
4818         (VASNPRINTF): Use it.
4819         Suggested by Simon Josefsson.
4820
4821 2007-03-27  Eric Blake  <ebb9@byu.net>
4822
4823         Support sub-second birthtime on cygwin.
4824         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
4825         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
4826         (get_stat_birthtime): Also work with st_birthtim.
4827
4828 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
4829
4830         * lib/stat-time.h (USE_BIRTHTIME): Remove.
4831         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
4832         (get_stat_birthtime_ns): Do not try to use "spare" fields.
4833         (get_stat_birthtime_ns): Simplify compile-time tests.
4834         (get_stat_birthtime): Change the API to look like
4835         get_stat_mtime etc., except return a negative tv_nsec on error.
4836         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
4837         Don't check for "spare" fields.
4838         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
4839         or for struct stat.st_birthtime, as these tests aren't used.
4840         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
4841
4842 2007-03-27  Bruno Haible  <bruno@clisp.org>
4843
4844         * lib/stat-time.h: Include <sys/stat.h>.
4845
4846 2007-03-27  James Youngman  <jay@gnu.org>
4847
4848         * lib/stat-time.h (get_stat_birthtime): New function for
4849           retrieving st_birthtime as provided by UFS2 (hence *BSD).
4850         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
4851           and its variants.
4852         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
4853         * modules/stat-time-test: New file.
4854         * tests/test-stat-time.c: New test, devised by Bruno Haible.
4855
4856 2007-03-26  Bruno Haible  <bruno@clisp.org>
4857
4858         Better support of signalling NaNs.
4859         * lib/atanl.c: Include isnanl.h.
4860         (atanl): Perform test for NaN at the beginning of the function and
4861         through a call to isnanl.
4862         * lib/cosl.c: Include isnanl.h.
4863         (cosl): Perform test for NaN at the beginning of the function and
4864         through a call to isnanl.
4865         * lib/ldexpl.c: Include isnanl.h.
4866         (ldexpl): Perform test for NaN through a call to isnanl.
4867         * lib/logl.c: Include isnanl.h.
4868         (logl): Perform test for NaN at the beginning of the function and
4869         through a call to isnanl.
4870         * lib/sinl.c: Include isnanl.h.
4871         (sinl): Perform test for NaN at the beginning of the function and
4872         through a call to isnanl.
4873         * lib/sqrtl.c: Include isnanl.h.
4874         (sqrtl): Perform test for NaN at the beginning of the function and
4875         through a call to isnanl.
4876         * lib/tanl.c: Include isnanl.h.
4877         (tanl): Perform test for NaN at the beginning of the function and
4878         through a call to isnanl.
4879         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
4880         * modules/mathl (Depends-on): Add isnanl.
4881
4882 2007-03-26  Eric Blake  <ebb9@byu.net>
4883
4884         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
4885         regression in logic sense of previous patch.
4886
4887 2007-03-26  Bruno Haible  <bruno@clisp.org>
4888
4889         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
4890         unportable shell command "if ! ...".
4891         Reported by Ralf Wildenhues.
4892
4893 2007-03-25  Bruno Haible  <bruno@clisp.org>
4894
4895         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
4896         <sysexits.h> file, and only add EX_CONFIG.
4897         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
4898         absolute file name and whether it is sufficient. Substitute also
4899         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
4900         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
4901         ABSOLUTE_SYSEXITS_H into sysexits.h.
4902
4903 2007-03-25  Bruno Haible  <bruno@clisp.org>
4904
4905         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
4906         hints is NULL.
4907
4908 2007-03-25  Bruno Haible  <bruno@clisp.org>
4909
4910         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
4911         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
4912
4913 2007-03-25  Bruno Haible  <bruno@clisp.org>
4914
4915         * lib/vasnprintf.c: Include langinfo.h.
4916         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
4917         multithread-safe.
4918         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
4919         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
4920         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
4921         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
4922         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
4923         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
4924         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
4925         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
4926         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
4927         Reported by Simon Josefsson.
4928
4929 2007-03-25  Bruno Haible  <bruno@clisp.org>
4930
4931         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
4932         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
4933         * modules/vasnprintf (Depends-on): Add stdint.
4934
4935 2007-03-25  Bruno Haible  <bruno@clisp.org>
4936
4937         * modules/fpieee: New file.
4938         * m4/fpieee.m4: New file.
4939         * modules/isnan-nolibm (Depends-on): Add fpieee.
4940         * modules/isnanl-nolibm (Depends-on): Add fpieee.
4941         * modules/isnanl (Depends-on): Add fpieee.
4942
4943 2007-03-25  Bruno Haible  <bruno@clisp.org>
4944
4945         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
4946
4947 2007-03-25  Bruno Haible  <bruno@clisp.org>
4948
4949         Avoid test failures on IRIX 6.5.
4950         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
4951         (main): Use it.
4952         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
4953         macros.
4954         (main): Use them.
4955
4956 2007-03-25  Bruno Haible  <bruno@clisp.org>
4957
4958         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
4959         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
4960         exists but doesn't work.
4961         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
4962         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
4963         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
4964         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
4965
4966 2007-03-25  Bruno Haible  <bruno@clisp.org>
4967
4968         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
4969         returns inf. Needed on IRIX 6.5.
4970
4971 2007-03-25  Bruno Haible  <bruno@clisp.org>
4972
4973         * tests/test-frexpl.c: Include isnanl-nolibm.h.
4974         (main): Use isnanl instead of x != x idiom.
4975         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
4976
4977         * tests/test-frexp.c: Include isnan.h.
4978         (main): Use isnan instead of x != x idiom.
4979         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
4980
4981 2007-03-25  Bruno Haible  <bruno@clisp.org>
4982
4983         * tests/test-frexp.c (NaN): New function/macro.
4984         (main): Use it instead of 0.0 / 0.0.
4985         * tests/test-isnan.c (NaN): New function/macro.
4986         (main): Use it instead of 0.0 / 0.0.
4987         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
4988         (test_function): Use it instead of 0.0 / 0.0.
4989         * tests/test-vasprintf-posix.c (NaN): New function/macro.
4990         (test_function): Use it instead of 0.0 / 0.0.
4991         * tests/test-snprintf-posix.h (NaN): New function/macro.
4992         (test_function): Use it instead of 0.0 / 0.0.
4993         * tests/test-sprintf-posix.h (NaN): New function/macro.
4994         (test_function): Use it instead of 0.0 / 0.0.
4995         * tests/test-fprintf-posix.h (NaN): New function/macro.
4996         (test_function): Use it instead of 0.0 / 0.0.
4997         * tests/test-printf-posix.h (NaN): New function/macro.
4998         (test_function): Use it instead of 0.0 / 0.0.
4999
5000         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
5001
5002 2007-03-25  Bruno Haible  <bruno@clisp.org>
5003
5004         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
5005
5006 2007-03-25  Bruno Haible  <bruno@clisp.org>
5007
5008         * lib/regexec.c (merge_state_with_log): Make static.
5009
5010 2007-03-25  Bruno Haible  <bruno@clisp.org>
5011
5012         * lib/trigl.c (kernel_rem_pio2): Make static.
5013
5014 2007-03-25  Bruno Haible  <bruno@clisp.org>
5015
5016         * lib/sincosl.c (sincosl_table): Make static.
5017
5018 2007-03-25  Bruno Haible  <bruno@clisp.org>
5019
5020         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
5021         if the compiler does not support C99.
5022
5023 2007-03-25  Bruno Haible  <bruno@clisp.org>
5024
5025         * modules/time (Makefile.am): Ensure all rule action lines start with a
5026         tab.
5027
5028 2007-03-24  Bruno Haible  <bruno@clisp.org>
5029
5030         * modules/tsearch-tests: New file.
5031         * tests/test-tsearch.sh: New file.
5032         * tests/test-tsearch.c: New file, mostly copied from glibc.
5033
5034         * modules/search-tests: New file.
5035         * tests/test-search.c: New file.
5036
5037         * modules/search: New file.
5038         * lib/search_.h: New file, incorporating lib/tsearch.h.
5039         * m4/search_h.m4: New file.
5040         * lib/tsearch.h: Remove file.
5041         * lib/tsearch.c: Include search.h instead of tsearch.h.
5042         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
5043         HAVE_TSEARCH.
5044         * modules/tsearch (Files): Remove lib/tsearch.h.
5045         (Depends-on): Add search.
5046         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
5047         (Include): Change tsearch.h into search.h.
5048
5049 2007-03-24  Bruno Haible  <bruno@clisp.org>
5050
5051         * modules/fpucw: New file.
5052         * lib/fpucw.h: New file.
5053         * lib/frexp.c: Include fpucw.h.
5054         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
5055         (FUNC): Use them.
5056         * lib/printf-frexp.c: Include fpucw.h.
5057         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
5058         (FUNC): Use them.
5059         * lib/vasnprintf.c: Include fpucw.h.
5060         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
5061         'long double' calculations.
5062         * tests/test-frexpl.c: Include fpucw.h.
5063         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
5064         * tests/test-printf-frexpl.c: Include fpucw.h.
5065         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
5066         * modules/frexpl (Depends-on): Add fpucw.
5067         * modules/printf-frexpl (Depends-on): Likewise.
5068         * modules/fprintf-posix (Depends-on): Likewise.
5069         * modules/snprintf-posix (Depends-on): Likewise.
5070         * modules/sprintf-posix (Depends-on): Likewise.
5071         * modules/vasnprintf-posix (Depends-on): Likewise.
5072         * modules/vasprintf-posix (Depends-on): Likewise.
5073         * modules/vfprintf-posix (Depends-on): Likewise.
5074         * modules/vsnprintf-posix (Depends-on): Likewise.
5075         * modules/vsprintf-posix (Depends-on): Likewise.
5076         * modules/frexpl-tests (Depends-on): Likewise.
5077         * modules/printf-frexpl-tests (Depends-on): Likewise.
5078
5079 2007-03-24  Bruno Haible  <bruno@clisp.org>
5080
5081         * lib/float+.h: New file.
5082         * lib/isnan.c: Include float+.h.
5083         (SIZE): New macro.
5084         (FUNC): Compare only SIZE bytes of the value.
5085         * lib/vasnprintf.c: Include float+.h.
5086         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
5087         SIZEOF_LDBL or SIZEOF_DBL bytes.
5088         * modules/isnan-nolibm (Files): Add lib/float+.h.
5089         * modules/isnanl-nolibm (Files): Add lib/float+.h.
5090         * modules/isnanl (Files): Add lib/float+.h.
5091         * modules/vasnprintf (Files): Add lib/float+.h.
5092
5093 2007-03-24  Bruno Haible  <bruno@clisp.org>
5094
5095         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
5096         include isnanl-nolibm.h.
5097
5098 2007-03-24  Bruno Haible  <bruno@clisp.org>
5099
5100         * tests/test-read-file.c (main): Don't produce spurious output for
5101         expected situations. Make the test fail if it encountered unexpected
5102         results.
5103
5104 2007-03-24  Bruno Haible  <bruno@clisp.org>
5105
5106         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
5107         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
5108
5109 2007-03-24  Bruno Haible  <bruno@clisp.org>
5110
5111         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
5112
5113 2007-03-24  Bruno Haible  <bruno@clisp.org>
5114
5115         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
5116         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
5117
5118         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
5119         * modules/utf8-ucs4: Turn into a symbolic link to module
5120         unistr/u8-mbtouc.
5121
5122         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
5123         utf8-ucs4-unsafe.
5124         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
5125         unistr/u8-mbtouc-unsafe.
5126
5127         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
5128         * modules/utf16-ucs4: Turn into a symbolic link to module
5129         unistr/u16-mbtouc.
5130
5131         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
5132         utf16-ucs4-unsafe.
5133         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
5134         unistr/u16-mbtouc-unsafe.
5135
5136         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
5137         * modules/ucs4-utf8: Turn into a symbolic link to module
5138         unistr/u8-ubtomb.
5139
5140         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
5141         * modules/ucs4-utf16: Turn into a symbolic link to module
5142         unistr/u16-ubtomb.
5143
5144 2007-03-24  Bruno Haible  <bruno@clisp.org>
5145
5146         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
5147         Enable the function only if HAVE_INLINE.
5148         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
5149         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
5150         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
5151         Enable the function only if HAVE_INLINE.
5152         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
5153         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
5154         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
5155         Enable the function only if HAVE_INLINE.
5156         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
5157         Enable the function only if HAVE_INLINE.
5158         * modules/utf8-ucs4: Update.
5159         * modules/utf8-ucs4-unsafe: Update.
5160         * modules/utf16-ucs4: Update.
5161         * modules/utf16-ucs4-unsafe: Update.
5162         * modules/ucs4-utf8: Update.
5163         * modules/ucs4-utf16: Update.
5164
5165 2007-03-24  Bruno Haible  <bruno@clisp.org>
5166
5167         * lib/utf8-ucs4.h: Remove file.
5168         * lib/utf8-ucs4-unsafe.h: Remove file.
5169         * lib/utf16-ucs4.h: Remove file.
5170         * lib/utf16-ucs4-unsafe.h: Remove file.
5171         * lib/ucs4-utf8.h: Remove file.
5172         * lib/ucs4-utf16.h: Remove file.
5173         * lib/unistr.h: Include their previous contents.
5174         * m4/utf-ucs4.m4: Remove file.
5175         * m4/ucs4-utf.m4: Remove file.
5176         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
5177         (Depends-on): Add unistr/base.
5178         (configure.ac): Remove gl_UTF_UCS4.
5179         (Makefile.am): Update.
5180         (Include): Change to unistr.h.
5181         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
5182         (Depends-on): Add unistr/base.
5183         (configure.ac): Remove gl_UTF_UCS4.
5184         (Makefile.am): Update.
5185         (Include): Change to unistr.h.
5186         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
5187         (Depends-on): Add unistr/base.
5188         (configure.ac): Remove gl_UTF_UCS4.
5189         (Makefile.am): Update.
5190         (Include): Change to unistr.h.
5191         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
5192         (Depends-on): Add unistr/base.
5193         (configure.ac): Remove gl_UTF_UCS4.
5194         (Makefile.am): Update.
5195         (Include): Change to unistr.h.
5196         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
5197         (Depends-on): Add unistr/base.
5198         (configure.ac): Remove gl_UCS4_UTF.
5199         (Makefile.am): Update.
5200         (Include): Change to unistr.h.
5201         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
5202         (Depends-on): Add unistr/base.
5203         (configure.ac): Remove gl_UCS4_UTF.
5204         (Makefile.am): Update.
5205         (Include): Change to unistr.h.
5206         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
5207         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
5208         utf8-ucs4-unsafe.h.
5209         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
5210         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
5211         utf16-ucs4-unsafe.h.
5212         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
5213         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
5214         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
5215         * lib/unistr/u8-strchr.c: Likewise.
5216         * lib/unistr/u8-strrchr.c: Likewise.
5217         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
5218         * lib/unistr/u16-strchr.c: Likewise.
5219         * lib/unistr/u16-strrchr.c: Likewise.
5220         * lib/striconveh.c: Update.
5221         * lib/linebreak.c: Update.
5222
5223 2007-03-24  Bruno Haible  <bruno@clisp.org>
5224
5225         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
5226         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
5227
5228 2007-03-22  Bruno Haible  <bruno@clisp.org>
5229
5230         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
5231
5232 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
5233
5234         * MODULES.html.sh (File system functions): New module write-any-file.
5235         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
5236         * m4/write-any-file.m4: New files.
5237
5238 2007-03-23  Eric Blake  <ebb9@byu.net>
5239
5240         * gnulib-tool: Rearrange space-tab sequences, since some editors
5241         like to eat them.
5242
5243 2007-03-23  Eric Blake  <ebb9@byu.net>
5244
5245         * lib/version-etc.c (version_etc_va): Update license wording to
5246         be more concise.  Recommended by Richard Stallman.
5247
5248 2007-03-22  Bruno Haible  <bruno@clisp.org>
5249
5250         * lib/poll.c (MSG_PEEK): New fallback definition.
5251
5252 2007-03-22  Bruno Haible  <bruno@clisp.org>
5253
5254         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
5255         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
5256         (main): Update.
5257         Fixes a compilation error on BeOS.
5258
5259 2007-03-22  Bruno Haible  <bruno@clisp.org>
5260
5261         * modules/frexpl-tests: New file.
5262         * tests/test-frexpl.c: New file.
5263
5264         * modules/frexpl: New file.
5265         * m4/frexpl.m4: New file.
5266         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
5267         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
5268         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
5269         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
5270         (Depends-on): Add frexpl. Remove isnanl-nolibm.
5271         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
5272
5273 2007-03-22  Bruno Haible  <bruno@clisp.org>
5274
5275         * lib/frexpl.c: Share code with lib/frexp.c.
5276         * modules/mathl (Files): Add lib/frexp.c.
5277         (Depends-on): Add isnanl-nolibm.
5278
5279 2007-03-22  Bruno Haible  <bruno@clisp.org>
5280
5281         * modules/printf-frexp (Files): Add m4/frexp.m4.
5282         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
5283         only if the found frexp function actually works.
5284
5285 2007-03-22  Bruno Haible  <bruno@clisp.org>
5286
5287         * lib/frexp.c: Remove older implementation that uses divisions.
5288
5289 2007-03-21  Bruno Haible  <bruno@clisp.org>
5290
5291         * modules/frexp-tests: New file.
5292         * tests/test-frexp.c: New file.
5293
5294         * modules/frexp: New file.
5295         * lib/frexp.c: New file.
5296         * m4/frexp.m4: New file.
5297         * lib/math_.h (frexp): New declaration.
5298         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
5299         REPLACE_FREXP.
5300         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
5301
5302 2007-03-21  Bruno Haible  <bruno@clisp.org>
5303
5304         * modules/isnanl-tests: New file.
5305         * tests/test-isnanl.c: New file.
5306
5307         * modules/isnanl: New file.
5308         * lib/isnanl.h: New file.
5309         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
5310         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
5311         gl_FUNC_ISNANL_WORKS.
5312         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
5313         New macros.
5314
5315 2007-03-21  Bruno Haible  <bruno@clisp.org>
5316
5317         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
5318         lib/isnanl.h.
5319         (Include): Update.
5320         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
5321         * lib/vasnprintf.c: Update.
5322         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
5323         tests/test-isnanl.h, remove tests/test-isnanl.c.
5324         (Makefile.am): Update.
5325         * tests/test-isnanl-nolibm.c: New file.
5326         * tests/test-isnanl.h: New file.
5327         * tests/test-isnanl.c: Remove file.
5328
5329 2007-03-21  Jim Meyering  <jim@meyering.net>
5330
5331         When trying to open ".", treat ESTALE like EACCES.
5332         * lib/savewd.c (savewd_save): Resort to forking not just upon
5333         failure with EACCES, but also when errno is ESTALE.
5334
5335 2007-03-20  Bruno Haible  <bruno@clisp.org>
5336
5337         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
5338         Needed on AIX 5.1. Reported by Matthew Woehlke.
5339
5340 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
5341
5342         Suggestions by Bruno Haible:
5343         * lib/acl-internal.h: Include "gettext.h" rather than rolling
5344         our own.
5345         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
5346         * modules/acl (Depends-on): Add gettext.
5347
5348 2007-03-19  Bruno Haible  <bruno@clisp.org>
5349
5350         * modules/iconvme: Remove file.
5351         * lib/iconvme.h: Remove file.
5352         * lib/iconvme.c: Remove file.
5353         * m4/iconvme.m4: Remove file.
5354
5355 2007-03-19  Bruno Haible  <bruno@clisp.org>
5356
5357         * doc/relocatable-maint.texi: Break long shell script line.
5358         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
5359
5360 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
5361
5362         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
5363         handle file_has_acl.
5364         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
5365         * lib/acl.c: Move header inclusions and related macro defns into
5366         lib/acl-internal.h.
5367         (S_ISLNK): Remove defn, since that's now done for us.
5368         (file_has_acl): Move to lib/file-has-acl.c.
5369         Call acl_trivial if available.  This is the crucial part of the fix.
5370         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
5371         shared within the library.  Rewrite a bit, partly to make it compatible
5372         with the GNU coding style.
5373         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
5374         Remove unnecessary double-quotes.
5375         Don't test for acl_to_text; the build will catch that.
5376         Replace acl_entries if it doesn't exist and it is needed.
5377         Check for -lsec and acl_trivial (as used on Solaris 10).
5378         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
5379         lib/file-has-acl.c.
5380         (Depends-on): Add sys_stat, for S_ISLNK.
5381
5382 2007-03-19  Ben Pfaff  <blp@gnu.org>
5383
5384         * doc/gnulib.texi: Fix typos.
5385         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
5386
5387 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
5388
5389         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
5390         If size is zero here, buf must be zero.
5391
5392 2007-03-19  Simon Josefsson  <simon@josefsson.org>
5393
5394         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
5395         <bruno@clisp.org>.
5396
5397 2007-03-18  Bruno Haible  <bruno@clisp.org>
5398
5399         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
5400         Suggested by Eric Blake.
5401
5402 2007-03-18  Ben Pfaff  <blp@gnu.org>
5403
5404         * doc/relocatable.texi: Recommend using as prefix a directory
5405         that does not exist and will never be created.  Based on
5406         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
5407         and others.
5408
5409 2007-03-17  Bruno Haible  <bruno@clisp.org>
5410
5411         * lib/fchownat.c: Include lchown.h.
5412
5413 2007-03-17  Bruno Haible  <bruno@clisp.org>
5414
5415         Fix endless loop when the given allocated size was > INT_MAX.
5416         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
5417         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
5418         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
5419         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
5420         * lib/sprintf.c (sprintf): Likewise.
5421
5422 2007-03-17  Bruno Haible  <bruno@clisp.org>
5423
5424         * tests/test-argp-2.sh (func_compare): Output a context diff.
5425
5426 2007-03-17  Bruno Haible  <bruno@clisp.org>
5427
5428         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
5429         locale's decimal-point character.
5430
5431 2007-03-17  Bruno Haible  <bruno@clisp.org>
5432
5433         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
5434         before comparing it. Needed because on some platforms (e.g. x86) a
5435         'long double' occupies less bytes than sizeof (long double).
5436
5437 2007-03-17  Bruno Haible  <bruno@clisp.org>
5438
5439         * tests/test-crc.c (main): Make printf statements 64-bit clean.
5440         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
5441         * tests/test-getaddrinfo.c (simple): Likewise.
5442         * tests/test-read-file.c (main): Likewise.
5443
5444 2007-03-17  Bruno Haible  <bruno@clisp.org>
5445
5446         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
5447
5448 2007-03-17  Bruno Haible  <bruno@clisp.org>
5449
5450         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
5451         unused variable.
5452
5453 2007-03-17  Bruno Haible  <bruno@clisp.org>
5454
5455         * tests/test-c-strcasecmp.c: Include c-strcase.h.
5456         * tests/test-c-strncasecmp.c: Likewise.
5457
5458 2007-03-17  Bruno Haible  <bruno@clisp.org>
5459
5460         * modules/stdlib (Depends-on): Add unistd.
5461         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
5462         Needed for MacOS X 10.3.
5463
5464 2007-03-17  Bruno Haible  <bruno@clisp.org>
5465
5466         * lib/unistr/u-strdup.h: Include <stdlib.h>.
5467
5468 2007-03-17  Bruno Haible  <bruno@clisp.org>
5469
5470         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
5471
5472 2007-03-17  Bruno Haible  <bruno@clisp.org>
5473
5474         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
5475         to reflect files copied from gnulib (with or without modifications).
5476         Suggested by Jim Meyering.
5477
5478 2007-03-17  Eric Blake  <ebb9@byu.net>
5479
5480         * NEWS: Document stdlib change from 2007-02-18.
5481
5482 2007-03-17  Jim Meyering  <jim@meyering.net>
5483
5484         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
5485         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
5486         someone uses a name containing shell meta-characters.
5487         Reported by Alfred M. Szmidt.
5488
5489         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
5490
5491 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
5492
5493         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
5494         and copy gettext configuration files only if configure.ac contains
5495         a use of AM_GNU_GETTEXT_VERSION.
5496
5497 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
5498
5499         * build-aux/bootstrap (gnulib_name): New variable.
5500         (gnulib_tool_options): Use it.
5501
5502 2007-03-13  Simon Josefsson  <simon@josefsson.org>
5503
5504         * tests/test-des.c: Use new namespace.
5505
5506 2007-03-15  Bruno Haible  <bruno@clisp.org>
5507
5508         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
5509         Reported by James Youngman <jay@gnu.org>.
5510
5511 2007-03-15  Bruno Haible  <bruno@clisp.org>
5512
5513         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
5514         declared prototype. Needed with cc on OSF/1 5.1.
5515
5516 2007-03-15  Bruno Haible  <bruno@clisp.org>
5517
5518         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
5519         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
5520         (struct gl_list_implementation): Add dispose_fn argument to the
5521         'create_empty', 'create' methods.
5522         (struct gl_list_impl_base): Add field 'dispose_fn'.
5523         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
5524         argument.
5525         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
5526         dispose_fn argument.
5527         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
5528         dispose_fn on the dropped values.
5529         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
5530         dispose_fn argument.
5531         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
5532         dropped values.
5533         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
5534         (gl_tree_remove_node): Call dispose_fn on the dropped value.
5535         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
5536         (gl_tree_remove_node): Call dispose_fn on the dropped value.
5537         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
5538         argument.
5539         (gl_tree_list_free): Call dispose_fn on the dropped values.
5540         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
5541         the dropped values.
5542         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
5543         Add dispose_fn argument.
5544         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
5545         Call dispose_fn on the dropped values.
5546         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
5547         Add dispose_fn argument.
5548         (gl_sublist_create): Initialize the 'dispose_fn' field.
5549         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
5550         * tests/test-array_list.c (main): Update.
5551         * tests/test-carray_list.c (main): Update.
5552         * tests/test-avltree_list.c (main): Update.
5553         * tests/test-rbtree_list.c (main): Update.
5554         * tests/test-avltreehash_list.c (main): Update.
5555         * tests/test-rbtreehash_list.c (main): Update.
5556         * tests/test-linked_list.c (main): Update.
5557         * tests/test-linkedhash_list.c (main): Update.
5558         * tests/test-array_oset.c (main): Update.
5559
5560 2007-03-15  Bruno Haible  <bruno@clisp.org>
5561
5562         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
5563         (gl_oset_create_empty): Add dispose_fn argument.
5564         (struct gl_oset_implementation): Add dispose_fn argument to
5565         'create_empty' method.
5566         (struct gl_oset_impl_base): Add dispose_fn field.
5567         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
5568         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
5569         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
5570         values.
5571         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
5572         (gl_tree_oset_free): Call dispose_fn on the dropped values.
5573         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
5574         dropped value.
5575         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
5576         dropped value.
5577         * tests/test-array_oset.c (main): Update.
5578         * tests/test-avltree_oset.c (main): Update.
5579         * tests/test-rbtree_oset.c (main): Update.
5580         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
5581
5582 2007-03-13  Bruno Haible  <bruno@clisp.org>
5583
5584         * tests/test-stdbool.c (i): Update after last patch.
5585
5586 2007-03-12  Bruno Haible  <bruno@clisp.org>
5587
5588         * lib/quotearg.c: Include <wctype.h> early, before the definition of
5589         the iswprint macro. Needed on Solaris 2.5.1.
5590
5591 2007-03-12  Bruno Haible  <bruno@clisp.org>
5592
5593         * tests/test-printf-frexp.c (main): Declare x as volatile.
5594
5595 2007-03-12  Simon Josefsson  <simon@josefsson.org>
5596
5597         * doc/gnulib.texi (Build robot for gnulib): New section.
5598
5599 2007-03-12  Jim Meyering  <jim@meyering.net>
5600
5601         * build-aux/bootstrap: New file.
5602         * build-aux/bootstrap.conf: New file, from coreutils.
5603
5604 2007-03-11  Bruno Haible  <bruno@clisp.org>
5605
5606         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
5607
5608 2007-03-12  Simon Josefsson  <simon@josefsson.org>
5609
5610         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
5611         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
5612         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
5613
5614 2007-03-11  Bruno Haible  <bruno@clisp.org>
5615
5616         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
5617         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
5618
5619 2007-03-11  Bruno Haible  <bruno@clisp.org>
5620
5621         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
5622         formula. Needed for SunPRO C 5.0.
5623
5624 2007-03-11  Bruno Haible  <bruno@clisp.org>
5625
5626         * modules/long-options (Depends-on): Add getopt.
5627
5628 2007-03-11  Bruno Haible  <bruno@clisp.org>
5629
5630         * modules/modechange (Depends-on): Add stdbool.
5631
5632 2007-03-11  Bruno Haible  <bruno@clisp.org>
5633
5634         * modules/i-ring (Depends-on): Add stdbool.
5635
5636 2007-03-11  Bruno Haible  <bruno@clisp.org>
5637
5638         * modules/gc-des (Depends-on): Add stdbool.
5639
5640 2007-03-11  Bruno Haible  <bruno@clisp.org>
5641
5642         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
5643
5644 2007-03-11  Bruno Haible  <bruno@clisp.org>
5645
5646         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
5647
5648 2007-03-11  Bruno Haible  <bruno@clisp.org>
5649
5650         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
5651
5652 2007-03-11  Bruno Haible  <bruno@clisp.org>
5653
5654         * lib/vasnprintf.c (sprintf): Undefine.
5655
5656 2007-03-11  Bruno Haible  <bruno@clisp.org>
5657
5658         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
5659         initializers in SunPRO C and Compaq C compilers.
5660
5661 2007-03-11  Bruno Haible  <bruno@clisp.org>
5662
5663         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
5664         decrementing code ANSI C compliant.
5665
5666 2007-03-11  Bruno Haible  <bruno@clisp.org>
5667
5668         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
5669         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
5670
5671 2007-03-11  Bruno Haible  <bruno@clisp.org>
5672
5673         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
5674         <stdbool.h> substitute doesn't pass.
5675
5676 2007-03-11  Bruno Haible  <bruno@clisp.org>
5677
5678         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
5679
5680 2007-03-11  Bruno Haible  <bruno@clisp.org>
5681
5682         * gnulib-tool (func_create_megatestdir): Create also an autobuild
5683         script, for submission to autobuild.josefsson.org.
5684
5685 2007-03-10  Bruno Haible  <bruno@clisp.org>
5686
5687         * modules/canonicalize-lgpl-tests: New file.
5688         * tests/test-canonicalize-lgpl.sh: New file.
5689         * tests/test-canonicalize-lgpl.c: New file.
5690
5691         * modules/c-strcase-tests: New file.
5692         * tests/test-c-strcase.sh: New file.
5693         * tests/test-c-strcasecmp.c: New file.
5694         * tests/test-c-strncasecmp.c: New file.
5695
5696         * modules/atexit-tests: New file.
5697         * tests/test-atexit.sh: New file.
5698         * tests/test-atexit.c: New file.
5699
5700 2007-03-10  Bruno Haible  <bruno@clisp.org>
5701
5702         * tests/test-binary-io.sh: Use temporary filenames that are not so
5703         likely to clash with those of other tests (in a parallel make).
5704         * tests/test-binary-io.c: Likewise.
5705
5706 2007-03-10  Bruno Haible  <bruno@clisp.org>
5707
5708         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
5709         fallback; use #error instead.
5710         Suggested by Simon Josefsson.
5711
5712 2007-03-10  Bruno Haible  <bruno@clisp.org>
5713
5714         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
5715         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
5716         first and the last.
5717
5718 2007-03-10  Bruno Haible  <bruno@clisp.org>
5719
5720         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
5721
5722 2007-03-10  Bruno Haible  <bruno@clisp.org>
5723
5724         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
5725         "make distcheck".
5726         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
5727         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
5728         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
5729
5730 2007-03-10  Bruno Haible  <bruno@clisp.org>
5731
5732         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
5733         variable.
5734         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
5735         variable.
5736
5737 2007-03-09  Eric Blake  <ebb9@byu.net>
5738         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
5739
5740         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
5741         types are not being provided by gnulib.
5742         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
5743         types are supported.
5744
5745 2007-03-10  Bruno Haible  <bruno@clisp.org>
5746
5747         * lib/stdio_.h (__attribute__): New macro.
5748         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
5749         vsprintf): Specify __attribute__ __format__ for GCC.
5750         Suggested by Eric Blake.
5751
5752 2007-03-09  Bruno Haible  <bruno@clisp.org>
5753
5754         * modules/printf-posix-tests: New file.
5755         * tests/test-printf-posix.sh: New file.
5756         * tests/test-printf-posix.c: New file.
5757
5758         * modules/printf-posix: New file.
5759         * lib/printf.c: New file.
5760         * m4/printf-posix-rpl.m4: New file.
5761         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
5762         REPLACE_PRINTF.
5763         * lib/stdio_.h (printf): New declaration.
5764         (format, __format__, ____printf____, ____scanf____, ____strftime____,
5765         ____strfmon____): New macros.
5766         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
5767         REPLACE_PRINTF.
5768
5769 2007-03-09  Bruno Haible  <bruno@clisp.org>
5770
5771         * tests/test-vasnprintf-posix2.sh: New file.
5772         * tests/test-vasnprintf-posix2.c: New file.
5773         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
5774         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
5775         (Makefile.am): Activate test-vasnprintf-posix2.sh.
5776
5777         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
5778         a locale dependent decimal point, rather than always '.'.
5779
5780 2007-03-09  Eric Blake  <ebb9@byu.net>
5781
5782         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
5783         spite of platforms like Tandem/NSK that define it to -1.
5784
5785 2007-03-08  Bruno Haible  <bruno@clisp.org>
5786
5787         * modules/vprintf-posix-tests: New file.
5788         * tests/test-vprintf-posix.sh: New file.
5789         * tests/test-vprintf-posix.c: New file.
5790         * tests/test-printf-posix.h: New file.
5791
5792         * modules/vprintf-posix: New file.
5793         * lib/vprintf.c: New file.
5794         * m4/vprintf-posix.m4: New file.
5795         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
5796         REPLACE_VPRINTF.
5797         * lib/stdio_.h (vprintf): New declaration.
5798         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
5799         REPLACE_VPRINTF.
5800
5801 2007-03-08  Bruno Haible  <bruno@clisp.org>
5802
5803         * modules/fprintf-posix-tests: New file.
5804         * tests/test-fprintf-posix.sh: New file.
5805         * tests/test-fprintf-posix.c: New file.
5806
5807         * modules/fprintf-posix: New file.
5808         * lib/fprintf.c: New file.
5809         * m4/fprintf-posix.m4: New file.
5810         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
5811         REPLACE_FPRINTF.
5812         * lib/stdio_.h (fprintf): New declaration.
5813         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
5814         REPLACE_FPRINTF.
5815
5816 2007-03-08  Bruno Haible  <bruno@clisp.org>
5817
5818         * modules/vfprintf-posix-tests: New file.
5819         * tests/test-vfprintf-posix.sh: New file.
5820         * tests/test-vfprintf-posix.c: New file.
5821         * tests/test-fprintf-posix.h: New file.
5822         * tests/test-fprintf-posix.out: New file.
5823
5824         * modules/vfprintf-posix: New file.
5825         * lib/vfprintf.c: New file.
5826         * m4/vfprintf-posix.m4: New file.
5827         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
5828         REPLACE_VFPRINTF.
5829         * lib/stdio_.h (vfprintf): New declaration.
5830         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
5831         REPLACE_VFPRINTF.
5832
5833 2007-03-08  Bruno Haible  <bruno@clisp.org>
5834
5835         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
5836
5837 2007-03-08  Bruno Haible  <bruno@clisp.org>
5838
5839         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
5840         instead of 'expr' invocations.
5841         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
5842         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
5843         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
5844         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5845         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
5846         Suggested by Paul Eggert.
5847
5848 2007-03-08  Bruno Haible  <bruno@clisp.org>
5849
5850         * modules/fseterr-tests: New file.
5851         * tests/test-fseterr.c: New file.
5852
5853         * modules/fseterr: New file.
5854         * lib/fseterr.h: New file.
5855         * lib/fseterr.c: New file.
5856
5857 2007-03-08  Bruno Haible  <bruno@clisp.org>
5858
5859         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
5860         * lib/getopt_.h: Likewise.
5861         * lib/mbswidth.h: Likewise.
5862         * lib/setenv.h: Likewise.
5863         * lib/vasnprintf.h: Likewise.
5864         * lib/vasprintf.h: Likewise.
5865         * lib/verror.h: Likewise.
5866         * lib/xsetenv.h: Likewise.
5867         * lib/xvasprintf.h: Likewise.
5868
5869 2007-03-08  Jim Meyering  <jim@meyering.net>
5870
5871         * users.txt: Add parted.
5872
5873         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
5874
5875 2007-03-07  Bruno Haible  <bruno@clisp.org>
5876
5877         * m4/printf.m4: Make the shell script snippets copy&pastable.
5878
5879 2007-03-02  Bruno Haible  <bruno@clisp.org>
5880
5881         * lib/netinet_in_.h: New file.
5882         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
5883         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
5884         * modules/netinet_in (Files): Add lib/netinet_in_.h.
5885         (Depends-on): Add absolute-header.
5886         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
5887         into netinet/in.h.
5888
5889 2007-03-03  Bruno Haible  <bruno@clisp.org>
5890
5891         * lib/sys_select_.h: New file.
5892         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
5893         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
5894         * modules/sys_select (Files): Add lib/sys_select_.h.
5895         (Depends-on): Add absolute-header.
5896         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
5897         into sys/select.h.
5898
5899 2007-03-02  Bruno Haible  <bruno@clisp.org>
5900
5901         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
5902         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
5903         values.
5904         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
5905         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
5906         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
5907         * modules/sys_socket (Depends-on): Add absolute-header.
5908         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
5909         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
5910         (Include): Remove requirement of inclusion of <sys/types.h>.
5911
5912 2007-03-02  Bruno Haible  <bruno@clisp.org>
5913
5914         * lib/byteswap_.h (bswap_32): Fix formula.
5915
5916 2007-03-06  Bruno Haible  <bruno@clisp.org>
5917
5918         * modules/sprintf-posix-tests: New file.
5919         * tests/test-sprintf-posix.c: New file.
5920
5921         * modules/sprintf-posix: New file.
5922         * lib/sprintf.c: New file.
5923         * m4/sprintf-posix.m4: New file.
5924         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
5925         REPLACE_SPRINTF.
5926         * lib/stdio_.h (sprintf): New declaration.
5927         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
5928         REPLACE_SPRINTF.
5929
5930 2007-03-06  Bruno Haible  <bruno@clisp.org>
5931
5932         * modules/vsprintf-posix-tests: New file.
5933         * tests/test-vsprintf-posix.c: New file.
5934         * tests/test-sprintf-posix.h: New file.
5935
5936         * modules/vsprintf-posix: New file.
5937         * lib/vsprintf.c: New file.
5938         * m4/vsprintf-posix.m4: New file.
5939         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
5940         REPLACE_VSPRINTF.
5941         * lib/stdio_.h (vsprintf): New declaration.
5942         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
5943         REPLACE_VSPRINTF.
5944
5945 2007-03-06  Bruno Haible  <bruno@clisp.org>
5946
5947         * modules/vsnprintf (Depend-on): Remove minmax.
5948
5949 2007-03-06  Bruno Haible  <bruno@clisp.org>
5950
5951         * modules/snprintf-posix-tests: New file.
5952         * tests/test-snprintf-posix.c: New file.
5953
5954         * modules/snprintf-posix: New file.
5955         * m4/snprintf-posix.m4: New file.
5956         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
5957         gl_FUNC_SNPRINTF.
5958         (gl_FUNC_SNPRINTF): Invoke it.
5959         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
5960         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
5961         is set.
5962         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
5963
5964 2007-03-06  Bruno Haible  <bruno@clisp.org>
5965
5966         * modules/vsnprintf-posix-tests: New file.
5967         * tests/test-vsnprintf-posix.c: New file.
5968         * tests/test-snprintf-posix.h: New file.
5969
5970         * modules/vsnprintf-posix: New file.
5971         * m4/vsnprintf-posix.m4: New file.
5972         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
5973         gl_FUNC_VSNPRINTF.
5974         (gl_FUNC_VSNPRINTF): Invoke it.
5975         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
5976         * lib/stdio_.h (vsnprintf): Define as a replacement if
5977         REPLACE_VSNPRINTF is set.
5978         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
5979
5980 2007-03-06  Bruno Haible  <bruno@clisp.org>
5981
5982         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
5983         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
5984
5985 2007-03-06  Bruno Haible  <bruno@clisp.org>
5986
5987         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
5988         (asinl): Declare also if HAVE_DECL_ASINL is set.
5989         (atanl): Declare also if HAVE_DECL_ATANL is set.
5990         (ceill): Declare also if HAVE_DECL_CEILL is set.
5991         (cosl): Declare also if HAVE_DECL_COSL is set.
5992         (expl): Declare also if HAVE_DECL_EXPL is set.
5993         (floorl): Declare also if HAVE_DECL_FLOORL is set.
5994         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
5995         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
5996         (logl): Declare also if HAVE_DECL_LOGL is set.
5997         (sinl): Declare also if HAVE_DECL_SINL is set.
5998         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
5999         (tanl): Declare also if HAVE_DECL_TANL is set.
6000         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
6001         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
6002         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
6003         declaration of frexpl, ldexpl.
6004         * modules/printf-frexpl (Depends-on): Add math.
6005         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
6006
6007 2007-03-05  Bruno Haible  <bruno@clisp.org>
6008
6009         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
6010         frexpl and ldexpl are declared.
6011         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
6012
6013 2007-03-05  Bruno Haible  <bruno@clisp.org>
6014
6015         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
6016         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
6017
6018 2007-03-05  Bruno Haible  <bruno@clisp.org>
6019
6020         * lib/stdio_.h: Include <stddef.h>.
6021
6022 2007-03-05  Bruno Haible  <bruno@clisp.org>
6023
6024         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
6025
6026 2007-03-05  Bruno Haible  <bruno@clisp.org>
6027
6028         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
6029         NetBSD 4, from Ralf Wildenhues.
6030
6031 2007-03-04  Bruno Haible  <bruno@clisp.org>
6032
6033         * lib/vasprintf.h: Update #if logic for the case when the functions
6034         exist but are overridden.
6035
6036 2007-03-04  Bruno Haible  <bruno@clisp.org>
6037
6038         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
6039         implementations: glibc-2.4 and MacOS X 10.3.
6040         * tests/test-vasnprintf-posix.c (test_function): Test also the case
6041         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
6042         * tests/test-vasprintf-posix.c (test_function): Likewise.
6043
6044 2007-03-04  Bruno Haible  <bruno@clisp.org>
6045
6046         * modules/vasprintf-posix-tests: New file.
6047         * tests/test-vasprintf-posix.c: New file.
6048
6049         * modules/vasprintf-posix: New file.
6050         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
6051         defined.
6052         * m4/vasprintf-posix.m4: New file.
6053         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
6054         gl_FUNC_VASPRINTF.
6055         (gl_FUNC_VASPRINTF): Invoke it.
6056         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
6057         here.
6058         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
6059
6060 2007-03-04  Bruno Haible  <bruno@clisp.org>
6061
6062         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
6063         REPLACE_GETTIMEOFDAY.
6064         * modules/sys_time (Makefile.am): Likewise.
6065         * m4/sys_time_h.m4: Likewise.
6066         * m4/gettimeofday.m4: Likewise.
6067
6068 2007-03-04  Bruno Haible  <bruno@clisp.org>
6069
6070         * modules/vasnprintf-posix-tests: New file.
6071         * tests/test-vasnprintf-posix.c: New file.
6072
6073         * modules/vasnprintf-posix: New file.
6074         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
6075         printf-frexpl.h.
6076         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
6077         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
6078         REPLACE_VASNPRINTF is defined.
6079         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
6080         gl_FUNC_VASNPRINTF.
6081         (gl_FUNC_VASNPRINTF): Invoke it.
6082         * m4/vasnprintf-posix.m4: New file.
6083         * m4/printf.m4: New file.
6084
6085 2007-03-04  Bruno Haible  <bruno@clisp.org>
6086
6087         Compile progreloc.c only if --enable-relocatable is specified.
6088         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
6089         if --enable-relocatable was specified.
6090         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
6091         lib_SOURCES.
6092
6093 2007-03-04  Jim Meyering  <jim@meyering.net>
6094
6095         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
6096         Use it consistently, rather than enumerating errno constants.
6097
6098 2007-03-04  Bruno Haible  <bruno@clisp.org>
6099
6100         * modules/xvasprintf-tests: New file.
6101         * tests/test-xvasprintf.c: New file.
6102
6103         * modules/vasprintf-tests: New file.
6104         * tests/test-vasprintf.c: New file.
6105
6106         * modules/vasnprintf-tests: New file.
6107         * tests/test-vasnprintf.c: New file.
6108
6109         * modules/vsnprintf-tests: New file.
6110         * tests/test-vsnprintf.c: New file.
6111
6112         * modules/snprintf-tests: New file.
6113         * tests/test-snprintf.c: New file.
6114
6115 2007-03-04  Bruno Haible  <bruno@clisp.org>
6116
6117         Compile relocatable.c only if --enable-relocatable is specified.
6118         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
6119         gl_RELOCATABLE_LIBRARY.
6120         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
6121         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
6122         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
6123         gl_RELOCATABLE_LIBRARY.
6124         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
6125         (Makefile.am): Remove lib_SOURCES.
6126         * modules/relocatable-lib-lgpl (configure.ac): Invoke
6127         gl_RELOCATABLE_LIBRARY.
6128         (Makefile.am): Remove lib_SOURCES.
6129         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
6130         always.
6131         * modules/relocatable-prog-wrapper (configure.ac): Invoke
6132         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
6133
6134 2007-03-04  Bruno Haible  <bruno@clisp.org>
6135
6136         * modules/argmatch-tests: New file.
6137         * tests/test-argmatch.c: New file.
6138
6139         * tests/test-allocsa.c (main): Halve the number of loop runs.
6140
6141         * modules/alloca-opt-tests: New file.
6142         * tests/test-alloca-opt.c: New file.
6143
6144 2007-03-04  Jim Meyering  <jim@meyering.net>
6145
6146         Work around difference between Linux ACLs and Solaris 10 ZFS.
6147         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
6148         for EINVAL.
6149
6150 2007-03-03  Bruno Haible  <bruno@clisp.org>
6151
6152         * modules/relocatable-prog (Depends-on): Add back progreloc's
6153         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
6154
6155 2007-03-03  Bruno Haible  <bruno@clisp.org>
6156
6157         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
6158         * modules/relocatable-lib: New file.
6159
6160 2007-03-03  Bruno Haible  <bruno@clisp.org>
6161
6162         * modules/relocatable-prog: Renamed from modules/relocatable.
6163         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
6164
6165 2007-03-03  Bruno Haible  <bruno@clisp.org>
6166
6167         * modules/relocatable-script (Files): Add doc/relocatable.texi,
6168         m4/relocatable-lib.m4.
6169         (Depends-on): Remove 'relocatable'.
6170         (configure.ac): Add gl_RELOCATABLE_NOP.
6171
6172 2007-03-03  Bruno Haible  <bruno@clisp.org>
6173
6174         * modules/relocatable-prog-wrapper: New file.
6175         * modules/relocatable (Depends-on): Add it. Remove all other
6176         dependencies except progname.
6177         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
6178
6179         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
6180         (gl_FUNC_STRERROR): Nop.
6181         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
6182
6183         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
6184         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
6185
6186         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
6187         (gl_FUNC_READLINK): Update.
6188
6189         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
6190
6191 2007-03-03  Bruno Haible  <bruno@clisp.org>
6192
6193         * lib/xreadlink.c: Include <unistd.h> unconditionally.
6194         * modules/xreadlink (Depends-on): Add unistd.
6195         * modules/xreadlink-with-size (Depends-on): Likewise.
6196
6197 2007-03-03  Bruno Haible  <bruno@clisp.org>
6198
6199         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
6200         extracted from gt_FUNC_SETENV.
6201         (gt_FUNC_SETENV): Remove macro.
6202         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
6203         remove gt_FUNC_SETENV.
6204
6205 2007-03-03  Bruno Haible  <bruno@clisp.org>
6206
6207         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
6208         ENABLE_RELOCATABLE here.
6209         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
6210
6211 2007-03-03  Bruno Haible  <bruno@clisp.org>
6212
6213         * modules/rbtreehash-list-tests (Depends-on): Add progname.
6214         * tests/test-rbtreehash_list.c: Include progname.h.
6215         (main): Call set_program_name.
6216
6217         * modules/rbtree-oset-tests (Depends-on): Add progname.
6218         * tests/test-rbtree_oset.c: Include progname.h.
6219         (main): Call set_program_name.
6220
6221         * modules/rbtree-list-tests (Depends-on): Add progname.
6222         * tests/test-rbtree_list.c: Include progname.h.
6223         (main): Call set_program_name.
6224
6225         * modules/linked-list-tests (Depends-on): Add progname.
6226         * tests/test-linked_list.c: Include progname.h.
6227         (main): Call set_program_name.
6228
6229 2007-03-03  Bruno Haible  <bruno@clisp.org>
6230
6231         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
6232         All uses of __restrict changed to _Restrict_.
6233         * lib/glob_.h (__restrict): Remove macro.
6234
6235 2007-03-02  Bruno Haible  <bruno@clisp.org>
6236
6237         * modules/gettext (configure.ac): Require gettext infrastructure
6238         from version 0.16.1.
6239
6240 2007-03-02  Bruno Haible  <bruno@clisp.org>
6241
6242         * modules/linkedhash-list-tests (Depends-on): Add progname.
6243         * tests/test-linkedhash_list.c: Include progname.h.
6244         (main): Call set_program_name.
6245
6246         * modules/carray-list-tests (Depends-on): Add progname.
6247         * tests/test-carray_list.c: Include progname.h.
6248         (main): Call set_program_name.
6249
6250         * modules/avltreehash-list-tests (Depends-on): Add progname.
6251         * tests/test-avltreehash_list.c: Include progname.h.
6252         (main): Call set_program_name.
6253
6254         * modules/avltree-oset-tests (Depends-on): Add progname.
6255         * tests/test-avltree_oset.c: Include progname.h.
6256         (main): Call set_program_name.
6257
6258         * modules/avltree-list-tests (Depends-on): Add progname.
6259         * tests/test-avltree_list.c: Include progname.h.
6260         (main): Call set_program_name.
6261
6262         * modules/array-oset-tests (Depends-on): Add progname.
6263         * tests/test-array_oset.c: Include progname.h.
6264         (main): Call set_program_name.
6265
6266         * modules/array-list-tests (Depends-on): Add progname.
6267         * tests/test-array_list.c: Include progname.h.
6268         (main): Call set_program_name.
6269
6270         * modules/argp-tests (Depends-on): Add progname.
6271         * tests/test-argp.c: Include argp.h first. Include progname.h.
6272         (main): Call set_program_name.
6273
6274 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
6275
6276         * doc/gnulib-tool.texi (Initial import): Reword description of
6277         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
6278         limited effect even if defined after the first system include.
6279
6280 2007-03-01  Bruno Haible  <bruno@clisp.org>
6281
6282         * build-aux/config.libpath: Update to libtool-1.5.22.
6283         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
6284
6285 2007-03-01  Bruno Haible  <bruno@clisp.org>
6286
6287         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
6288         foo_CFLAGS.
6289         Reported by Ralf Wildenhues.
6290
6291 2007-03-01  Bruno Haible  <bruno@clisp.org>
6292
6293         * build-aux/install-reloc: Remove object files left over by some
6294         compilers.
6295         Reported by Ralf Wildenhues.
6296
6297 2007-03-01  Bruno Haible  <bruno@clisp.org>
6298
6299         * build-aux/install-reloc: Break long lines.
6300
6301 2007-03-01  Bruno Haible  <bruno@clisp.org>
6302
6303         * doc/relocatable.texi: Document that it may not work on OpenBSD.
6304         Reported by Ralf Wildenhues.
6305
6306 2007-03-01  Bruno Haible  <bruno@clisp.org>
6307
6308         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
6309         include ordering constraints.
6310
6311 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
6312
6313         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
6314         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
6315         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
6316         as another example.
6317         * lib/time_.h: Fix misspelling.
6318         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
6319         Require gl_HEADER_TIME_H_DEFAULTS.
6320         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
6321         * m4/time_r.m4 (gl_TIME_R): Likewise.
6322         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
6323
6324 2007-03-01  Bruno Haible  <bruno@clisp.org>
6325
6326         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
6327         * m4/utimens.m4 (gl_UTIMENS): Likewise.
6328
6329 2007-03-01  Jim Meyering  <jim@meyering.net>
6330
6331         * modules/xreadlink (Maintainer): Add my name.
6332         * modules/xreadlink-with-size (Depends-on): Alphabetize.
6333
6334 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
6335             Bruno Haible  <bruno@clisp.org>
6336
6337         * build-aux/install-reloc: Compile also c-ctype.c.
6338         * build-aux/relocatable.sh.in: New file.
6339         * doc/relocatable.texi: New file.
6340         * doc/relocatable-maint.texi: New file.
6341         * doc/gnulib.texi: Include relocatable-maint.texi.
6342         * lib/progreloc.c: Include unistd.h unconditionally.
6343         * lib/relocwrapper.c: Include unistd.h unconditionally.
6344         Include c-ctype.h.
6345         (add_dotbin): Use c_tolower.
6346         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
6347         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
6348         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
6349         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
6350         to m4/relocatable-lib.m4.
6351         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
6352         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
6353         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
6354         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
6355         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
6356         * modules/relocatable: New file.
6357         * modules/relocatable-lib: New file.
6358         * modules/relocatable-script: New file.
6359
6360 2007-02-28  Bruno Haible  <bruno@clisp.org>
6361
6362         Import --enable-relocatable infrastructure.
6363         * build-aux/config.libpath: New file, from GNU gettext.
6364         * build-aux/install-reloc: New file, from GNU gettext.
6365         * build-aux/reloc-ldflags: New file, from GNU gettext.
6366         * lib/relocatable.h: New file, from GNU gettext.
6367         * lib/relocatable.c: New file, from GNU gettext.
6368         * lib/relocwrapper.c: New file, from GNU gettext.
6369         * m4/relocatable.m4: New file, from GNU gettext.
6370
6371 2007-02-28  Bruno Haible  <bruno@clisp.org>
6372
6373         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
6374
6375         * modules/xreadlink: New file, from GNU gettext with modifications.
6376         * lib/xreadlink.c: New file, from GNU gettext.
6377         * lib/xreadlink.h: Add comments.
6378         (xreadlink): New declaration.
6379
6380         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
6381         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
6382         lib/xreadlink-with-size.c.
6383         (configure.ac): Remove gl_XREADLINK invocation.
6384         (Makefile.am): Augment lib_SOURCES.
6385         * m4/xreadlink.m4: Remove file.
6386         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
6387         (xreadlink_with_size): Renamed from xreadink.
6388         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
6389         * modules/canonicalize (Depends-on): Replace xreadlink with
6390         xreadlink-with-size.
6391         * lib/canonicalize.c (canonicalize_filename_mode): Update.
6392
6393 2007-02-25  Jim Meyering  <jim@meyering.net>
6394
6395         * build-aux/announce-gen: When complaining about excess arguments,
6396         list them.
6397
6398 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
6399
6400         * README: Document signed integer overflow situation more
6401         accurately.
6402
6403 2007-02-25  Bruno Haible  <bruno@clisp.org>
6404
6405         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
6406         'a' or 'A' conversion.
6407
6408 2007-02-25  Bruno Haible  <bruno@clisp.org>
6409
6410         * modules/filename: Renamed from modules/pathname.
6411         (Files): Replace lib/pathname.h with lib/filename.h. Replace
6412         lib/concatpath.c with lib/concat-filename.c.
6413         (Makefile.am): Update.
6414         (Include): Replace pathname.h with filename.h.
6415         * lib/filename.h: Renamed from lib/pathname.h.
6416         (concatenated_filename): Renamed from concatenated_pathname.
6417         * lib/concat-filename.c: Renamed from lib/concatpath.c.
6418         (concatenated_filename): Renamed from concatenated_pathname.
6419         * lib/findprog.c: Include filename.h instead of pathname.h.
6420         (find_in_path): Update.
6421         * lib/javacomp.c: Include filename.h instead of pathname.h.
6422         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
6423         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
6424         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
6425         is_oldgcj_14_13_usable, is_javac_usable): Update.
6426         * lib/javaexec.c: Include filename.h instead of pathname.h.
6427         (execute_java_class): Update.
6428         * modules/findprog: Update.
6429         * modules/javacomp: Update.
6430         * modules/javaexec: Update.
6431         * MODULES.html.sh (File system functions): Add 'filename', remove
6432         'pathname'.
6433
6434 2007-02-25  Bruno Haible  <bruno@clisp.org>
6435
6436         * modules/printf-frexpl-tests: New file.
6437         * tests/test-printf-frexpl.c: New file.
6438
6439         * modules/printf-frexpl: New file.
6440         * lib/printf-frexpl.h: New file.
6441         * lib/printf-frexpl.c: New file.
6442         * m4/printf-frexpl.m4: New file.
6443
6444 2007-02-25  Bruno Haible  <bruno@clisp.org>
6445
6446         * modules/printf-frexp-tests: New file.
6447         * tests/test-printf-frexp.c: New file.
6448
6449         * modules/printf-frexp: New file.
6450         * lib/printf-frexp.h: New file.
6451         * lib/printf-frexp.c: New file.
6452         * m4/printf-frexp.m4: New file.
6453
6454 2007-02-25  Bruno Haible  <bruno@clisp.org>
6455
6456         Assume automake >= 1.10 for the tests.
6457         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
6458         * modules/arctwo-tests: Likewise.
6459         * modules/argp-tests: Likewise.
6460         * modules/avltree-list-tests: Likewise.
6461         * modules/avltree-oset-tests: Likewise.
6462         * modules/avltreehash-list-tests: Likewise.
6463         * modules/carray-list-tests: Likewise.
6464         * modules/crc-tests: Likewise.
6465         * modules/des-tests: Likewise.
6466         * modules/gc-arcfour-tests: Likewise.
6467         * modules/gc-arctwo-tests: Likewise.
6468         * modules/gc-des-tests: Likewise.
6469         * modules/gc-hmac-md5-tests: Likewise.
6470         * modules/gc-hmac-sha1-tests: Likewise.
6471         * modules/gc-md2-tests: Likewise.
6472         * modules/gc-md4-tests: Likewise.
6473         * modules/gc-md5-tests: Likewise.
6474         * modules/gc-pbkdf2-sha1-tests: Likewise.
6475         * modules/gc-rijndael-tests: Likewise.
6476         * modules/gc-sha1-tests: Likewise.
6477         * modules/gc-tests: Likewise.
6478         * modules/getaddrinfo-tests: Likewise.
6479         * modules/hmac-md5-tests: Likewise.
6480         * modules/hmac-sha1-tests: Likewise.
6481         * modules/linked-list-tests: Likewise.
6482         * modules/linkedhash-list-tests: Likewise.
6483         * modules/lock-tests: Likewise.
6484         * modules/md2-tests: Likewise.
6485         * modules/md4-tests: Likewise.
6486         * modules/md5-tests: Likewise.
6487         * modules/rbtree-list-tests: Likewise.
6488         * modules/rbtree-oset-tests: Likewise.
6489         * modules/rbtreehash-list-tests: Likewise.
6490         * modules/read-file-tests: Likewise.
6491         * modules/rijndael-tests: Likewise.
6492         * modules/stdint-tests: Likewise.
6493         * modules/tls-tests: Likewise.
6494
6495 2007-02-24  Bruno Haible  <bruno@clisp.org>
6496
6497         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
6498         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
6499         function; instead check whether isnan with a double argument links.
6500         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
6501         function; instead check whether isnan with a 'long double' argument
6502         links.
6503         Reported by Eric Blake <ebb9@byu.net>.
6504
6505 2007-02-24  Bruno Haible  <bruno@clisp.org>
6506
6507         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
6508         defined.
6509         * lib/isnanl.c: Remove all code. Just include isnan.c.
6510         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
6511
6512 2007-02-25  Jim Meyering  <jim@meyering.net>
6513
6514         Avoid conflicting types for 'unsetenv' on FreeBSD.
6515         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
6516         conflicting with FreeBSD's (5.0 and 6.1) function declaration
6517         in stdlib.h.
6518
6519 2007-02-24  Bruno Haible  <bruno@clisp.org>
6520
6521         * modules/isnanl-nolibm-tests: New file.
6522         * tests/test-isnanl.c: New file.
6523
6524         * modules/isnanl-nolibm: New file.
6525         * lib/isnanl.h: New file.
6526         * lib/isnanl.c: New file.
6527         * m4/isnanl.m4: New file.
6528
6529 2007-02-24  Bruno Haible  <bruno@clisp.org>
6530
6531         * modules/isnan-nolibm-tests: New file.
6532         * tests/test-isnan.c: New file.
6533
6534         * modules/isnan-nolibm: New file.
6535         * lib/isnan.h: New file.
6536         * lib/isnan.c: New file.
6537         * m4/isnan.m4: New file.
6538
6539 2007-02-24  Bruno Haible  <bruno@clisp.org>
6540
6541         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
6542         assume that an exponent fits in 20 bits.
6543
6544 2007-02-24  Jim Meyering  <jim@meyering.net>
6545
6546         * m4/regex.m4: Update the description of the configure-time option,
6547         --without-included-regex, to state accurately what the defaults are,
6548         and perhaps to give people an idea why using this option is risky.
6549
6550 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
6551
6552         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
6553         loops on small arguments.  This attempts to avoid the problem
6554         Bruno Haible reported for AIX 4.3.2 in
6555         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
6556
6557 2007-02-23  Bruno Haible  <bruno@clisp.org>
6558
6559         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
6560         Needed for help2man.
6561
6562 2007-02-23  Karl Berry  <karl@gnu.org>
6563
6564         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
6565         exists, foo.h should be cvs-ignored, not committed.
6566
6567 2007-02-23  Eric Blake  <ebb9@byu.net>
6568
6569         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
6570         * lib/stat-time.h (includes): Likewise.
6571         * lib/utimecmp.c (includes): Likewise.
6572         * lib/utimens.h (includes): Likewise.
6573         * lib/getdate.y (includes): Also include "timespec.h" for use
6574         internal to the module.
6575         * modules/utimens (Depends-on): Revert yesterday's patch.
6576         * modules/nanosleep (Depends-on): Add missing dependency.
6577
6578 2007-02-22  Bruno Haible  <bruno@clisp.org>
6579
6580         * lib/glob.c: Don't include getlogin_r.h.
6581
6582 2007-02-22  Jim Meyering  <jim@meyering.net>
6583
6584         * modules/utimens (Depends-on): Add timespec, required for
6585         utimens.h's inclusion of timespec.h.
6586
6587 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
6588
6589         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
6590         long unreadable paths in GNU/Linux.  Problem reported by Andreas
6591         Schwab in
6592         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
6593         I'll try to think of a better way to fix the Solaris problem.
6594
6595         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
6596         like glibc; on Solaris 10, it fails with errno == EINVAL.
6597         POSIX says the behavior is unspecified if the first argument is NULL,
6598         so play it safe and never pass NULL to the system getcwd.
6599
6600 2007-02-21  Jim Meyering  <jim@meyering.net>
6601
6602         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
6603         of gettimeofday.  It would conflict with the one now always
6604         provided via sys_time_.h.  Reported by Matthew Woehlke, as
6605         an IRIX 6.5 build failure.
6606
6607 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
6608
6609         Minor fixups to port to Solaris 10 with Sun C 5.8.
6610         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
6611         * modules/getcwd (Depends-on): Add dirfd.
6612         * lib/putenv.c (putenv): #undef it.
6613         (rpl_putenv): New decl.
6614         (malloc, free): Include <stdlib.h> rather than prototyping separately.
6615
6616 2007-02-20  Bruno Haible  <bruno@clisp.org>
6617
6618         * modules/stdio-tests: New file.
6619         * tests/test-stdio.c: New file.
6620
6621         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
6622         (Depends-on): Add stdio.
6623         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
6624         (Include): Use <stdio.h> instead of vsnprintf.h.
6625         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
6626         HAVE_DECL_VSNPRINTF.
6627         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
6628
6629         * modules/snprintf (Files): Remove lib/snprintf.h.
6630         (Depends-on): Add stdio.
6631         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
6632         (Include): Use <stdio.h> instead of snprintf.h.
6633         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
6634         HAVE_DECL_SNPRINTF.
6635         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
6636         * lib/getaddrinfo.c: Likewise.
6637
6638         * modules/stdio: New file.
6639         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
6640         * lib/snprintf.h: Remove file.
6641         * lib/vsnprintf.h: Remove file.
6642         * lib/.cppi-disable: Remove snprintf.h.
6643         * m4/stdio_h.m4: New file.
6644         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
6645
6646 2007-02-20  Jim Meyering  <jim@meyering.net>
6647
6648         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
6649         used by e.g., mingw.  From Bruno Haible.
6650
6651 2007-02-19  Bruno Haible  <bruno@clisp.org>
6652
6653         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
6654         warnings.
6655         Reported by Ben Pfaff <blp@cs.stanford.edu>.
6656
6657 2007-02-19  Bruno Haible  <bruno@clisp.org>
6658
6659         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
6660         from mingw users.
6661
6662 2007-02-19  Bruno Haible  <bruno@clisp.org>
6663
6664         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
6665         warnings.
6666         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
6667
6668 2007-02-19  Jim Meyering  <jim@meyering.net>
6669
6670         Don't use FD after a successful "fdopendir (fd)".
6671         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
6672         Reset it by calling dirfd on the just-obtained DIR*.
6673
6674         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
6675         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
6676
6677 2007-02-18  Bruno Haible  <bruno@clisp.org>
6678
6679         * lib/readlink.c: Include <unistd.h>.
6680         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
6681         HAVE_READLINK.
6682         * modules/readlink (Depends-on): Add unistd.
6683         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6684         (Include): Add <unistd.h>.
6685
6686         * lib/getlogin_r.h: Remove file.
6687         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
6688         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
6689         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
6690         HAVE_DECL_GETLOGIN_R.
6691         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
6692         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6693         (Include): Use <unistd.h> instead of getlogin_r.h.
6694
6695         * lib/getcwd.h: Remove file.
6696         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
6697         * lib/xgetcwd.c: Likewise.
6698         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
6699         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
6700         * modules/getcwd (Files): Remove lib/getcwd.h.
6701         (Depends-on): Add unistd.
6702         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6703         (Include): Use <unistd.h> instad of getcwd.h.
6704
6705         * lib/ftruncate.c: Include <unistd.h> first.
6706         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
6707         Set HAVE_FTRUNCATE.
6708         * modules/ftruncate (Depends-on): Add unistd.
6709         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6710
6711         * lib/fchdir.c: Include <unistd.h> first.
6712         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
6713         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
6714         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
6715         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6716         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
6717
6718         * lib/dup2.c: Include <unistd.h> first.
6719         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
6720         HAVE_DUP2.
6721         * modules/dup2 (Depends-on): Add unistd.
6722         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6723
6724         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
6725         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
6726         REPLACE_CHOWN. Don't define chown as a macro here.
6727         * modules/chown (Depends-on): Add unistd.
6728         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6729
6730         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
6731         Add definition for GL_LINK_WARNING.
6732         (chown, dup2): New declarations.
6733         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
6734         link warning.
6735         (ftruncate): New declaration.
6736         (getcwd): New declaration, taken from old getcwd.h.
6737         (getlogin_r): New declaration, taken from old getlogin_r.h.
6738         (readlink): New declaration.
6739         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
6740         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
6741         (gl_PREREQ_UNISTD): Remove macro.
6742         (gl_UNISTD_MODULE_INDICATOR): New macro.
6743         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
6744         many new variables. Don't set UNISTD_H.
6745         * modules/unistd (Description): Change.
6746         (Depends-on): Add link-warning.
6747         (configure.ac): Update.
6748         (Makefile.am): Create unistd.h always. Substitute many new variables
6749         into it.
6750
6751 2007-02-18  Bruno Haible  <bruno@clisp.org>
6752
6753         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
6754         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
6755         HAVE_GETSUBOPT.
6756         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
6757         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
6758         * lib/getsubopt.h: Remove file.
6759         * modules/getsubopt (Files): Remove lib/getsubopt.h.
6760         (Depends-on): Add stdlib.
6761         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
6762         (Includes): Use <stdlib.h> instead of getsubopt.h.
6763         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
6764         Set HAVE_GETSUBOPT.
6765         * lib/getsubopt.c: Don't include getsubopt.h.
6766
6767 2007-02-18  Bruno Haible  <bruno@clisp.org>
6768
6769         * modules/fchdir (Depends-on): Add dup2.
6770
6771 2007-02-18  Bruno Haible  <bruno@clisp.org>
6772
6773         * lib/stdlib_.h: Handle glibc's special invocation convention
6774         specially.
6775
6776 2007-02-18  Bruno Haible  <bruno@clisp.org>
6777
6778         * modules/stdlib-tests: New file.
6779         * tests/test-stdlib.c: New file.
6780
6781         * modules/mkstemp (Files): Remove lib/mkstemp.h.
6782         (Depends-on): Add stdlib.
6783         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
6784         (Includes): Use <stdlib.h> instead of mkstemp.h.
6785         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
6786         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
6787         * lib/mkstemp.c: Don't include mkstemp.h.
6788         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
6789         * lib/stdlib--.h: Don't include mkstemp.h.
6790
6791         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
6792         (Depends-on): Add stdlib.
6793         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
6794         (Includes): Use <stdlib.h> instead of mkdtemp.h.
6795         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
6796         HAVE_MKDTEMP.
6797         * lib/mkdtemp.c: Don't include mkdtemp.h.
6798         * lib/clean-temp.c: Don't include mkdtemp.h.
6799
6800         * modules/exit (Files): Remove lib/exit.h.
6801         (Depends-on): Add stdlib.
6802         (Makefile.am): Remove lib_SOURCES.
6803         (Include): Use <stdlib.h> instead of exit.h.
6804         * lib/argmatch.c: Don't include exit.h.
6805         * lib/execute.c: Likewise.
6806         * lib/pagealign_alloc.c: Likewise.
6807         * lib/pipe.c: Likewise.
6808         * lib/wait-process.c: Likewise.
6809         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
6810         * lib/exitfail.c: Likewise.
6811         * lib/savewd.c: Likewise.
6812         * lib/xsetenv.c: Likewise.
6813
6814         * modules/stdlib: New file.
6815         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
6816         and extra comments about mkstemp().
6817         * lib/exit.h: Remove file.
6818         * lib/mkdtemp.h: Remove file.
6819         * lib/mkstemp.h: Remove file.
6820         * m4/stdlib_h.m4: New file.
6821         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
6822
6823 2007-02-18  Bruno Haible  <bruno@clisp.org>
6824
6825         * modules/math-tests: New file.
6826         * tests/test-math.c: New file.
6827
6828         * modules/math: New file.
6829         * modules/mathl (Files): Remove lib/mathl.h.
6830         (Depends-on): Add math.
6831         (Makefile.am): Don't mention mathl.h.
6832         (Include): Use <math.h> instead of mathl.h.
6833         * lib/math_.h: New file.
6834         * lib/mathl.h: Remove file.
6835         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
6836         mathl.h.
6837         * lib/asinl.c: Likewise.
6838         * lib/atanl.c: Likewise.
6839         * lib/ceill.c: Likewise.
6840         * lib/cosl.c: Likewise.
6841         * lib/expl.c: Likewise.
6842         * lib/floorl.c: Likewise.
6843         * lib/frexpl.c: Likewise.
6844         * lib/ldexpl.c: Likewise.
6845         * lib/logl.c: Likewise.
6846         * lib/sincosl.c: Likewise.
6847         * lib/sinl.c: Likewise.
6848         * lib/sqrtl.c: Likewise.
6849         * lib/tanl.c: Likewise.
6850         * lib/trigl.c: Likewise.
6851         * m4/math_h.m4: New file.
6852         * MODULES.html.sh (Mathematics): Add math.
6853
6854 2007-02-17  Bruno Haible  <bruno@clisp.org>
6855
6856         * modules/wctype-tests: New file.
6857         * tests/test-wctype.c: New file.
6858
6859         * modules/wchar-tests: New file.
6860         * tests/test-wchar.c: New file.
6861
6862         * modules/unistd-tests: New file.
6863         * tests/test-unistd.c: New file.
6864
6865         * modules/time-tests: New file.
6866         * tests/test-time.c: New file.
6867
6868         * modules/sysexits-tests: New file.
6869         * tests/test-sysexits.c: New file.
6870
6871         * modules/sys_time-tests: New file.
6872         * tests/test-sys_time.c: New file.
6873
6874         * modules/sys_stat-tests: New file.
6875         * tests/test-sys_stat.c: New file.
6876
6877         * modules/sys_socket-tests: New file.
6878         * tests/test-sys_socket.c: New file.
6879
6880         * modules/sys_select-tests: New file.
6881         * tests/test-sys_select.c: New file.
6882
6883         * modules/string-tests: New file.
6884         * tests/test-string.c: New file.
6885
6886         * modules/stdbool-tests: New file.
6887         * tests/test-stdbool.c: New file.
6888
6889         * modules/netinet_in-tests: New file.
6890         * tests/test-netinet_in.c: New file.
6891
6892         * modules/inttypes-tests: New file.
6893         * tests/test-inttypes.c: New file.
6894
6895         * modules/fcntl-tests: New file.
6896         * tests/test-fcntl.c: New file.
6897
6898         * modules/byteswap-tests: New file.
6899         * tests/test-byteswap.c: New file.
6900
6901         * modules/arpa_inet-tests: New file.
6902         * tests/test-arpa_inet.c: New file.
6903
6904 2007-02-17  Bruno Haible  <bruno@clisp.org>
6905
6906         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
6907         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
6908         if the corresponding module is not enabled. Emit link warnings if
6909         the function is used nevertheless.
6910         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
6911         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
6912         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
6913         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
6914         * modules/inttypes (Depends-on): Add link-warning.
6915         (Makefile.am): Copy the contents of build-aux/link-warning.h into
6916         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
6917         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
6918         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
6919         * modules/imaxdiv (configure.ac): Likewise.
6920         * modules/strtoimax (configure.ac): Likewise.
6921         * modules/strtoumax (configure.ac): Likewise.
6922
6923 2007-02-17  Bruno Haible  <bruno@clisp.org>
6924
6925         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
6926         gl_STRING_MODULE_INDICATOR_DEFAULTS.
6927         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
6928         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
6929
6930 2007-02-17  Bruno Haible  <bruno@clisp.org>
6931
6932         * modules/link-warning: New file.
6933         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
6934         * lib/string_.h (GL_LINK_WARNING): Remove definition.
6935         * modules/string (Depends-on): Add link-warning.
6936         (Makefile.am): Copy the contents of build-aux/link-warning.h into
6937         string.h.
6938         * MODULES.html.sh (Support for building libraries and executables): Add
6939         link-warning.
6940
6941 2007-02-17  Bruno Haible  <bruno@clisp.org>
6942
6943         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
6944         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
6945         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
6946         long lines.
6947
6948 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
6949             Bruno Haible  <bruno@clisp.org>
6950
6951         * modules/tmpfile: New file.
6952         * lib/tmpfile.c: New file.
6953         * m4/tmpfile.m4: New file.
6954         * MODULES.html.sh (func_all_modules): New section "Input/output".
6955
6956 2007-02-15  Bruno Haible  <bruno@clisp.org>
6957
6958         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
6959         (supports_delete_on_close): New function.
6960         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
6961
6962 2007-02-14  Bruno Haible  <bruno@clisp.org>
6963
6964         * modules/mbspcasecmp-tests: New file.
6965         * tests/test-mbspcasecmp.sh: New file.
6966         * tests/test-mbspcasecmp.c: New file.
6967
6968         New module mbspcasecmp.
6969         * modules/mbspcasecmp: New file.
6970         * lib/mbspcasecmp.c: New file.
6971         * lib/string_.h (strncasecmp): Change warning message.
6972         (mbspcasecmp): New declaration.
6973         * m4/mbspcasecmp.m4: New file.
6974         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6975         GNULIB_MBSPCASECMP.
6976         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
6977         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
6978
6979 2007-02-14  Bruno Haible  <bruno@clisp.org>
6980
6981         * modules/mbsncasecmp-tests: New file.
6982         * tests/test-mbsncasecmp.sh: New file.
6983         * tests/test-mbsncasecmp.c: New file.
6984
6985         New module mbsncasecmp.
6986         * modules/mbsncasecmp: New file.
6987         * lib/mbsncasecmp.c: New file.
6988         * lib/string_.h (mbsncasecmp): New declaration.
6989         * m4/mbsncasecmp.m4: New file.
6990         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6991         GNULIB_MBSNCASECMP.
6992         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
6993         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
6994
6995 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
6996
6997         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
6998         Verify that it doesn't overlap with our flags.
6999         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
7000         do not have the desired effect in multibyte locales; instead, use
7001         mbscasecmp.
7002         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
7003         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
7004         we don't require GNU fnmatch ourselves (if our users require it, they
7005         should do so explicitly).
7006
7007         Fix regex code so it doesn't rely on strcasecmp.
7008         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
7009         Otherwise, include gnulib's langinfo.h.
7010         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
7011         undesirable behavior in non-C locales.  Instead, rely on localecharset.
7012         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
7013         * modules/regex (FILES): Remove m4/codeset.m4.
7014         (Depends-on): Add localcharset.  Remove strcase.
7015
7016 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7017
7018         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
7019         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
7020
7021 2007-02-13  Bruno Haible  <bruno@clisp.org>
7022
7023         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
7024         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7025
7026 2007-02-12  Bruno Haible  <bruno@clisp.org>
7027
7028         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
7029         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
7030         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
7031         time warning rather than a link error.
7032
7033 2007-02-12  Bruno Haible  <bruno@clisp.org>
7034
7035         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
7036         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
7037         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7038
7039 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
7040
7041         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
7042         args, not 2.
7043
7044 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
7045
7046         New module 'time', so that apps can include <time.h> as per
7047         POSIX and GNU instead of separate include files like time_r.h
7048         and timegm.h.  This implementation tries out a simpler approach
7049         for replacing decls in standard include files (as compared to
7050         the string module), somewhat as an experiment.
7051
7052         * config/srclist.txt: Comment out mktime.c for now.
7053         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
7054         since it doesn't apply any more.  Use generic wording instead.
7055         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
7056         'time'.
7057         * lib/time_.h, m4/time_h.m4, modules/time: New files.
7058         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
7059         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
7060         Don't include <sys/types.h>; no longer needed since we assume C89.
7061         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
7062         * lib/strftime.c: Likewise.
7063         * lib/time_r.c: Likewise.
7064         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
7065         * lib/nanosleep.c: Include <time.h> first, to check interface.
7066         * lib/strptime.c: Likewise.
7067         * lib/time_r.c: Likewise.
7068         * lib/timegm.c: Likewise.
7069         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
7070         needed.
7071         * lib/timegm.c: Don't include timegm.h; no longer needed.
7072         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
7073         time.h now handles any problems in that area.
7074         (struct timespec, nanosleep): Remove; time.h now arranges for these.
7075         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
7076         that time.h defines struct timespec.
7077         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
7078         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
7079         handles that.
7080         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
7081         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
7082         needed.  Set REPLACE_LOCALTIME.
7083         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
7084         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
7085         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
7086         nanosleep; time_h.m4 now does that.  Don't require
7087         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
7088         module handles this now.
7089         * modules/getdate (Depends-on): Remove timespec.  Add time.
7090         * modules/nanosleep (Depends-on): Likewise.
7091         * modules/stat-time (Depends-on): Likewise.
7092         * modules/nanosleep (Include): Include time.h, not timespec.h.
7093         * modules/strptime (Files): Remove lib/strptime.h.
7094         (Depends-on): Add extensions, time.
7095         (Include): Include time.h, not strptime.h.
7096         * modules/time_r (Files): Remove lib/time_r.h.
7097         (Depends-on): Add time.
7098         (Include): Include time.h, not time_r.h.
7099         * modules/timegm: Likewise.
7100         * modules/timespec (Description): Now does timespec-related decls
7101         of our own, instead of struct timespec itself.
7102         (Depends-on): Add time; remove extensions.
7103         (Maintainer): Add self.
7104         * modules/utimecmp (Depends-on): Add time; remove timespec.
7105         * modules/utimens (Depends-on): Likewise.
7106         * modules/xnanosleep (Depends-on): Likewise.
7107
7108 2007-02-11  Bruno Haible  <bruno@clisp.org>
7109
7110         * lib/c-strstr.c: Include allocsa.h.
7111         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
7112         * lib/c-strcasestr.c: Include allocsa.h.
7113         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
7114         * lib/strcasestr.c: Include allocsa.h.
7115         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
7116         * lib/mbsstr.c: Include allocsa.h.
7117         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
7118         allocsa/freesa instead of malloc/free.
7119         * lib/mbscasestr.c: Include allocsa.h.
7120         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
7121         allocsa/freesa instead of malloc/free.
7122         * modules/c-strstr (Depends-on): Add allocsa.
7123         * modules/c-strcasestr (Depends-on): Likewise.
7124         * modules/strcasestr (Depends-on): Likewise.
7125         * modules/mbsstr (Depends-on): Likewise.
7126         * modules/mbscasestr (Depends-on): Likewise.
7127
7128 2007-02-11  Bruno Haible  <bruno@clisp.org>
7129
7130         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
7131
7132         * modules/mbsspn-tests: New file.
7133         * tests/test-mbsspn.sh: New file.
7134         * tests/test-mbsspn.c: New file.
7135
7136 2007-02-11  Bruno Haible  <bruno@clisp.org>
7137
7138         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
7139
7140         * modules/mbspbrk-tests: New file.
7141         * tests/test-mbspbrk.sh: New file.
7142         * tests/test-mbspbrk.c: New file.
7143
7144 2007-02-11  Bruno Haible  <bruno@clisp.org>
7145
7146         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
7147         unneeded cast.
7148
7149         * modules/mbscspn-tests: New file.
7150         * tests/test-mbscspn.sh: New file.
7151         * tests/test-mbscspn.c: New file.
7152
7153 2007-02-11  Bruno Haible  <bruno@clisp.org>
7154
7155         * modules/mbscasecmp-tests: New file.
7156         * tests/test-mbscasecmp.sh: New file.
7157         * tests/test-mbscasecmp.c: New file.
7158
7159 2007-02-11  Bruno Haible  <bruno@clisp.org>
7160
7161         Ensure O(n) worst-case complexity of mbscasestr.
7162         * lib/mbscasestr.c: Include stdbool.h.
7163         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
7164         functions.
7165         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
7166         the bookkeeping indicates that it's worth it.
7167         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
7168
7169         * modules/mbscasestr-tests: New file.
7170         * tests/test-mbscasestr1.c: New file.
7171         * tests/test-mbscasestr2.sh: New file.
7172         * tests/test-mbscasestr2.c: New file.
7173         * tests/test-mbscasestr3.sh: New file.
7174         * tests/test-mbscasestr3.c: New file.
7175         * tests/test-mbscasestr4.sh: New file.
7176         * tests/test-mbscasestr4.c: New file.
7177         * m4/locale-tr.m4: New file.
7178
7179 2007-02-11  Bruno Haible  <bruno@clisp.org>
7180
7181         Ensure O(n) worst-case complexity of mbsstr.
7182         * lib/mbsstr.c: Include stdbool.h.
7183         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
7184         functions.
7185         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
7186         bookkeeping indicates that it's worth it.
7187         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
7188
7189         * modules/mbsstr-tests: New file.
7190         * tests/test-mbsstr1.c: New file.
7191         * tests/test-mbsstr2.sh: New file.
7192         * tests/test-mbsstr2.c: New file.
7193         * tests/test-mbsstr3.sh: New file.
7194         * tests/test-mbsstr3.c: New file.
7195         * m4/locale-fr.m4: New file.
7196
7197 2007-02-11  Bruno Haible  <bruno@clisp.org>
7198
7199         * lib/mbsrchr.c (mbsrchr): Fix bug.
7200
7201         * modules/mbsrchr-tests: New file.
7202         * tests/test-mbsrchr.sh: New file.
7203         * tests/test-mbsrchr.c: New file.
7204
7205 2007-02-11  Bruno Haible  <bruno@clisp.org>
7206
7207         * lib/mbschr.c (mbschr): Fix bug.
7208
7209         * modules/mbschr-tests: New file.
7210         * tests/test-mbschr.sh: New file.
7211         * tests/test-mbschr.c: New file.
7212         * m4/locale-zh.m4: New file.
7213
7214 2007-02-11  Bruno Haible  <bruno@clisp.org>
7215
7216         Support for copying multibyte string iterators.
7217         * lib/mbiter.h: Include <string.h>.
7218         (mbiter_multi_copy): New function.
7219         (mbi_copy): New macro.
7220         * lib/mbuiter.h: Include <string.h>.
7221         (mbuiter_multi_copy): New function.
7222         (mbui_copy): New macro.
7223
7224 2007-02-11  Bruno Haible  <bruno@clisp.org>
7225
7226         New module mbslen.
7227         * modules/mbslen: New file.
7228         * lib/mbslen.c: New file.
7229         * lib/string_.h (mbslen): New declaration.
7230         * m4/mbslen.m4: New file.
7231         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
7232         GNULIB_MBSLEN.
7233         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
7234         * MODULES.html.sh (Internationalization functions): Add mbslen.
7235
7236 2007-02-11  Bruno Haible  <bruno@clisp.org>
7237
7238         Ensure O(n) worst-case complexity of strcasestr substitute.
7239         * lib/strcasestr.c: Include stdbool.h.
7240         (knuth_morris_pratt): New function.
7241         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
7242         bookkeeping indicates that it's worth it.
7243         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
7244
7245         * modules/strcasestr-tests: New file.
7246         * tests/test-strcasestr.c: New file.
7247
7248 2007-02-11  Bruno Haible  <bruno@clisp.org>
7249
7250         Ensure O(n) worst-case complexity of c_strcasestr.
7251         * lib/c-strcasestr.c: Include stdbool.h, string.h.
7252         (knuth_morris_pratt): New function.
7253         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
7254         the bookkeeping indicates that it's worth it.
7255         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
7256
7257         * modules/c-strcasestr-tests: New file.
7258         * tests/test-c-strcasestr.c: New file.
7259
7260 2007-02-11  Bruno Haible  <bruno@clisp.org>
7261
7262         Ensure O(n) worst-case complexity of c_strstr.
7263         * lib/c-strstr.c: Include stdbool.h, string.h.
7264         (knuth_morris_pratt): New function.
7265         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
7266         bookkeeping indicates that it's worth it.
7267         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
7268
7269         * lib/c-strstr.c: Complete rewrite for maintainability.
7270
7271         * modules/c-strstr-tests: New file.
7272         * tests/test-c-strstr.c: New file.
7273
7274 2007-02-11  Bruno Haible  <bruno@clisp.org>
7275
7276         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
7277         5.2.1 and earlier, whereby \055 was treated just like the range
7278         delimiter '-'.
7279         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
7280
7281 2007-02-08  Bruno Haible  <bruno@clisp.org>
7282
7283         * modules/regex (Depends-on): Add stdbool.
7284         Reported by Dalibor Topic <robilad@kaffe.org>.
7285
7286 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
7287
7288         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
7289         Prefer returning from main to exiting from it.
7290         Remove unnecessary parens after sizeof.
7291
7292 2007-02-05  Bruno Haible  <bruno@clisp.org>
7293
7294         New module mbssep.
7295         * modules/mbssep: New file.
7296         * lib/mbssep.c: New file.
7297         * lib/string_.h (strsep): Add a conditional link warning.
7298         (mbssep): New declaration.
7299         * m4/mbssep.m4: New file.
7300         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
7301         GNULIB_MBSSEP.
7302         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
7303         * MODULES.html.sh (Internationalization functions): Add mbssep.
7304
7305 2007-02-05  Bruno Haible  <bruno@clisp.org>
7306
7307         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
7308         Optimize search in case of 1 delimiter.
7309
7310 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
7311
7312         * lib/acl.h: Include sys/types.h before sys/acl.h.
7313
7314 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
7315
7316         Merge upstream fix for glibc bugzilla #3957:
7317
7318         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
7319
7320         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
7321         bit for RE_HAT_LISTS_NOT_NEWLINE.
7322         (build_charclass_op): Remove bogus comment.
7323
7324 2007-02-05  Simon Josefsson  <simon@josefsson.org>
7325
7326         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
7327
7328 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
7329
7330         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
7331         * lib/memmem.c [!defined _LIBC]: Include config.h.
7332
7333 2007-02-04  Bruno Haible  <bruno@clisp.org>
7334
7335         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
7336         warning message.
7337
7338 2007-02-04  Bruno Haible  <bruno@clisp.org>
7339
7340         New module mbstok_r.
7341         * modules/mbstok_r: New file.
7342         * lib/mbstok_r.c: New file.
7343         * lib/string_.h (strtok_r): Change argument names to match the
7344         comments. Add a conditional link warning.
7345         (mbstok_r): New declaration.
7346         * m4/mbstok_r.m4: New file.
7347         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
7348         GNULIB_MBSTOK_R.
7349         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
7350         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
7351
7352 2007-02-04  Bruno Haible  <bruno@clisp.org>
7353
7354         New module mbsspn.
7355         * modules/mbsspn: New file.
7356         * lib/mbsspn.c: New file.
7357         * lib/string_.h (strspn): Add a conditional link warning.
7358         (mbsspn): New declaration.
7359         * m4/mbsspn.m4: New file.
7360         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
7361         GNULIB_MBSSPN.
7362         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
7363         * MODULES.html.sh (Internationalization functions): Add mbsspn.
7364
7365 2007-02-04  Bruno Haible  <bruno@clisp.org>
7366
7367         New module mbspbrk.
7368         * modules/mbspbrk: New file.
7369         * lib/mbspbrk.c: New file.
7370         * lib/string_.h (strpbrk): Add a conditional link warning.
7371         (mbspbrk): New declaration.
7372         * m4/mbspbrk.m4: New file.
7373         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
7374         GNULIB_MBSPBRK.
7375         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
7376         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
7377
7378 2007-02-04  Bruno Haible  <bruno@clisp.org>
7379
7380         New module mbscspn.
7381         * modules/mbscspn: New file.
7382         * lib/mbscspn.c: New file.
7383         * lib/string_.h (strcspn): Add a conditional link warning.
7384         (mbscspn): New declaration.
7385         * m4/mbscspn.m4: New file.
7386         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
7387         GNULIB_MBSCSPN.
7388         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
7389         * MODULES.html.sh (Internationalization functions): Add mbscspn.
7390
7391 2007-02-04  Bruno Haible  <bruno@clisp.org>
7392
7393         New module mbscasestr, reduced goal of strcasestr.
7394         * modules/mbscasestr: New file.
7395         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
7396         (mbscasestr): Renamed from strcasestr.
7397         * lib/strcasestr.c: Don't include mbuiter.h.
7398         (strcasestr): Remove support for multibyte locales.
7399         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
7400         Change the conditional link warning.
7401         (mbscasestr): New declaration.
7402         * m4/mbscasestr.m4: New file.
7403         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
7404         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
7405         REPLACE_STRCASESTR.
7406         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
7407         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7408         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
7409         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
7410         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
7411         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
7412         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
7413         (Depends-on): Remove mbuiter.
7414         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
7415
7416 2007-02-04  Bruno Haible  <bruno@clisp.org>
7417
7418         Simplify handling of strncasecmp.
7419         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
7420         the conditional link warning.
7421         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7422         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
7423         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
7424         * modules/strcase (configure.ac): Don't invoke
7425         gl_STRING_MODULE_INDICATOR.
7426         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
7427
7428 2007-02-04  Bruno Haible  <bruno@clisp.org>
7429
7430         New module mbscasecmp, reduced goal of strcasecmp.
7431         * modules/mbscasecmp: New file.
7432         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
7433         (mbscasecmp): Renamed from strcasecmp.
7434         * lib/strcasecmp.c: Don't include mbuiter.h.
7435         (strcasecmp): Remove support for multibyte locales.
7436         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
7437         Change the conditional link warning.
7438         (mbscasecmp): New declaration.
7439         * m4/mbscasecmp.m4: New file.
7440         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
7441         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
7442         REPLACE_STRCASECMP.
7443         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
7444         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
7445         GNULIB_MBSCASECMP.
7446         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
7447         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
7448         * modules/strcase (Files): Remove m4/mbrtowc.m4.
7449         (Depends-on): Remove mbuiter.
7450         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
7451
7452 2007-02-04  Bruno Haible  <bruno@clisp.org>
7453
7454         New module mbsstr. Remove module strstr.
7455         * modules/mbsstr: New file.
7456         * modules/strstr: Remove file.
7457         * lib/mbsstr.c: Renamed from lib/strstr.c.
7458         (mbsstr): Renamed from strstr.
7459         * lib/string_.h (strstr): Remove declaration. Change the conditional
7460         link warning.
7461         (mbsstr): New declaration.
7462         * m4/mbsstr.m4: New file.
7463         * m4/strstr.m4: Remove file.
7464         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
7465         REPLACE_STRSTR.
7466         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
7467         Don't initialize GNULIB_STRSTR.
7468         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
7469         substitute GNULIB_STRSTR and REPLACE_STRSTR.
7470         * MODULES.html.sh (Internationalization functions): Add mbsstr.
7471         (Support for systems lacking ANSI C 89): Remove strstr.
7472
7473 2007-02-04  Bruno Haible  <bruno@clisp.org>
7474
7475         New module mbsrchr.
7476         * modules/mbsrchr: New file.
7477         * lib/mbsrchr.c: New file.
7478         * lib/string_.h (strrchr): Add a conditional link warning.
7479         (mbsrchr): New declaration.
7480         * m4/mbsrchr.m4: New file.
7481         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
7482         GNULIB_MBSRCHR.
7483         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
7484         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
7485
7486 2007-02-04  Bruno Haible  <bruno@clisp.org>
7487
7488         New module mbschr.
7489         * modules/mbschr: New file.
7490         * lib/mbschr.c: New file.
7491         * lib/string_.h (strchr): Add a conditional link warning.
7492         (mbschr): New declaration.
7493         * m4/mbschr.m4: New file.
7494         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
7495         GNULIB_MBSCHR.
7496         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
7497         * MODULES.html.sh (Internationalization functions): Add mbschr.
7498
7499 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
7500
7501         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
7502
7503         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
7504
7505 2007-02-04  Bruno Haible  <bruno@clisp.org>
7506
7507         New module description section 'configure.ac-early'.
7508         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
7509         (func_get_autoconf_early_snippet): New function.
7510         (func_import, func_create_testdir): Use it. Remove special cases for
7511         modules 'extensions' and 'lock'.
7512         * modules/extensions (configure.ac-early): Require
7513         gl_USE_SYSTEM_EXTENSIONS.
7514         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
7515
7516 2007-02-04  Bruno Haible  <bruno@clisp.org>
7517
7518         Make use of gcj-4.3's -fsource and -ftarget option.
7519         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
7520         and if so try the options -fsource and -ftarget.
7521         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
7522         source_version, ftarget_option, target_version arguments.
7523         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
7524         (is_envjavac_oldgcj_14_14_usable): Renamed from
7525         is_envjavac_gcj_14_14_usable.
7526         (is_envjavac_oldgcj_14_13_usable): Renamed from
7527         is_envjavac_gcj_14_13_usable.
7528         (is_gcj_present): Update.
7529         (is_gcj_43, is_gcj43_usable): New functions.
7530         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
7531         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
7532         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
7533         try the options -fsource and -ftarget.
7534
7535 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
7536
7537         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
7538         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
7539         larger value.
7540
7541 2007-02-03  Jim Meyering  <jim@meyering.net>
7542
7543         Give tools a better chance to allocate space for very large buffers.
7544         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
7545
7546         Make pwd and readlink work also when run with an unreadable parent dir
7547         on systems with openat support.
7548         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
7549         provided getcwd function, even when we have openat support.
7550         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
7551
7552 2007-02-02  Bruno Haible  <bruno@clisp.org>
7553
7554         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
7555         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
7556         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
7557         portability problems if one of these functions is only used on specific
7558         platforms.
7559         Reported by Paul Eggert.
7560
7561 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
7562
7563         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
7564         is causing more trouble than it's curing.
7565         * lib/regex_internal.h (__mempcpy): Remove.
7566         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
7567         (and make the code a tad smaller to boot).
7568         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
7569
7570 2007-02-02  Jim Meyering  <jim@meyering.net>
7571
7572         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
7573         section, not in the Makefile.am: one.
7574
7575 2007-02-02  Eric Blake  <ebb9@byu.net>
7576
7577         * lib/strchrnul.c: Always include config.h first.
7578
7579         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
7580         gnulib strstr is not necessary here.
7581
7582 2007-02-02  Simon Josefsson  <simon@josefsson.org>
7583
7584         * m4/socklen.m4: Fix typo.
7585
7586 2007-02-02  Eric Blake  <ebb9@byu.net>
7587
7588         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
7589         * modules/netinet_in (Makefile.am): Likewise.
7590
7591 2007-02-01  Bruno Haible  <bruno@clisp.org>
7592
7593         * lib/string_.h (GL_LINK_WARNING): New macro.
7594         (strcasecmp, strstr, strcasestr): If provided by the system,
7595         conditionally define as a macro that leads to a warning instead of to
7596         an error.
7597         (strncasecmp): Conditionally define as a macro that leads to a warning.
7598
7599 2007-02-01  Karl Berry  <karl@gnu.org>
7600
7601         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
7602
7603 2007-02-01  Bruno Haible  <bruno@clisp.org>
7604
7605         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
7606         renamings.
7607
7608 2007-02-01  Eric Blake  <ebb9@byu.net>
7609
7610         * modules/regex (Depends-on): Revert dependence on mempcpy.
7611         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
7612         module's definition of mempcpy.
7613         Reported by Paul Eggert.
7614
7615 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
7616
7617         * lib/string_.h: If the gnulib module XYZ is not present, undefine
7618         the symbol XYZ before redefining it.  This fixes a problem with
7619         programs that don't use XYZ, when compiled on systems that define
7620         XYZ to something else.
7621
7622 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
7623
7624         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
7625         occurs when "mkdir -m foo" creates a setgid directory that is (1)
7626         writeable to group or other and (2) is intended to have a special
7627         mode bit that is set or cleared.  In such a case, the directory
7628         should be neither group- nor other-writeable until the special
7629         mode bits are right.
7630
7631 2007-01-31  Eric Blake  <ebb9@byu.net>
7632
7633         * modules/mountlist (Depends-on): Add strstr.
7634
7635         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
7636         bug.
7637         * modules/string (Makefile.am): Remove redundant replacement.
7638         * modules/regex (Depends-on): Add mempcpy.
7639
7640 2007-01-31  Bruno Haible  <bruno@clisp.org>
7641
7642         New module description field 'Link'.
7643         * gnulib-tool (func_usage): Document --extract-link-directive.
7644         (sed_extract_prog): Recognize 'Link' directive.
7645         (func_get_link_directive): New function.
7646         (func_import): Show summary of link directives.
7647         Handle --extract-link-directive option.
7648         * modules/acl (Link): New section.
7649         * modules/clock-time (Link): New section.
7650         * modules/euidaccess (Link): New section.
7651         * modules/gettext (Link): New section.
7652         * modules/iconv (Link): New section.
7653         * modules/lock (Link): New section.
7654         * modules/nanosleep (Link): New section.
7655         * modules/readline (Link): New section.
7656
7657 2007-01-27  Bruno Haible  <bruno@clisp.org>
7658
7659         Enforce the use of gnulib modules for unportable <string.h> functions.
7660         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
7661         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
7662         (gl_HEADER_STRING_H_BODY): Require it.
7663         * lib/string_.h: If the gnulib module XYZ is not present, redefine
7664         the symbol XYZ to one that gives a link error.
7665         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
7666         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
7667         * modules/mempcpy (configure.ac): Likewise.
7668         * modules/memrchr (configure.ac): Likewise.
7669         * modules/stpcpy (configure.ac): Likewise.
7670         * modules/stpncpy (configure.ac): Likewise.
7671         * modules/strcase (configure.ac): Likewise.
7672         * modules/strcasestr (configure.ac): Likewise.
7673         * modules/strchrnul (configure.ac): Likewise.
7674         * modules/strdup (configure.ac): Likewise.
7675         * modules/strndup (configure.ac): Likewise.
7676         * modules/strnlen (configure.ac): Likewise.
7677         * modules/strpbrk (configure.ac): Likewise.
7678         * modules/strsep (configure.ac): Likewise.
7679         * modules/strstr (configure.ac): Likewise.
7680         * modules/strtok_r (configure.ac): Likewise.
7681
7682 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
7683
7684         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
7685
7686 2007-01-30  Jim Meyering  <jim@meyering.net>
7687
7688         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
7689
7690 2007-01-29  Bruno Haible  <bruno@clisp.org>
7691
7692         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
7693         * lib/execute.c: Likewise.
7694         * lib/pipe.c: Likewise.
7695         * lib/printf-args.h: Likewise.
7696         * lib/printf-args.c: Likewise.
7697         * lib/printf-parse.c: Likewise.
7698         * lib/vasnprintf.c: Likewise.
7699
7700 2007-01-29  Eric Blake  <ebb9@byu.net>
7701
7702         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
7703         declaration.
7704
7705 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
7706
7707         * lib/strptime.h (strptime): Use 'restrict' for args where
7708         POSIX requires this.
7709         * lib/strptime.c (strptime): Likewise.
7710         Change license notice from LGPL to GPL, since gnulib-tool will
7711         change this as needed.
7712         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
7713         defined.
7714         Include "strptime.h" first, to check interface.
7715         Do not #undef _LIBC and _NL_CURRENT.
7716         Do not include <stdlib.h>; no longer needed.
7717         Include "time_r.h" and declare ptime_locale_status
7718         only if _LIBC is not defined.
7719         (__P): Remove unused macro.
7720         (match_string): Bring back glibc version, but use it only if _LIBC
7721         is defined.
7722         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
7723         Remove unnecessary assertion and abort() call.
7724         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
7725         * m4/strptime.m4: Fix serial number comment.
7726         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
7727         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
7728         (Depends-on): Add time_r.
7729
7730 2007-01-29  Bruno Haible  <bruno@clisp.org>
7731
7732         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
7733         strptime.
7734         * modules/strptime (Depends-on): Add stdbool.
7735         * lib/strptime.h: Include <time.h> always. Add comments.
7736
7737 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
7738
7739         * modules/strptime: New file.
7740         * lib/strptime.h: New file.
7741         * lib/strptime.c: New file.
7742         * m4/strptime.m4: New file.
7743
7744 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
7745
7746         * MODULES.html.sh: New module mpsort.
7747         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
7748
7749         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
7750         a circularity problem with HP-UX ia64 reported by Bob Proulx in
7751         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
7752         All uses changed.
7753         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
7754         All uses changed.
7755         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
7756         to _Restrict_.
7757         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
7758         the parameter matches the prototype.
7759
7760 2007-01-28  Jim Meyering  <jim@meyering.net>
7761
7762         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
7763         sys/time.h here, reverting that part of the previous patch:
7764         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
7765
7766 2007-01-28  Bruno Haible  <bruno@clisp.org>
7767
7768         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
7769         value of $(SYS_TIME_H).
7770         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
7771         remove it conditionally, too. [added by Jim Meyering]
7772         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
7773         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
7774         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
7775         GETTIMEOFDAY_REPLACEMENT to 1.
7776
7777 2007-01-28  Bruno Haible  <bruno@clisp.org>
7778
7779         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
7780         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
7781         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
7782         Set UNISTD_H instead of UNISTD_H2.
7783         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
7784
7785 2007-01-28  Bruno Haible  <bruno@clisp.org>
7786
7787         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
7788         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
7789
7790 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7791
7792         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
7793         (func_create_testdir): Ensure C locale for `grep' and `tr'
7794         character ranges.
7795         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
7796         ACLOCAL_AMFLAGS parsing state machine.
7797
7798 2007-01-27  Bruno Haible  <bruno@clisp.org>
7799
7800         * modules/unistr/base: Update.
7801
7802 2007-01-27  Bruno Haible  <bruno@clisp.org>
7803
7804         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
7805         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
7806         * modules/unistr/u32-mbtouc-unsafe: Renamed from
7807         modules/unistr/u32-mbtouc.
7808         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
7809         * lib/unistr.h: Update.
7810         * lib/linebreak.c: Update.
7811         * modules/unistr/u32-mbtouc: Renamed from
7812         modules/unistr/u32-mbtouc-safe.
7813         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
7814         * lib/unistr.h: Update.
7815         * lib/unistr/u32-to-u8.c: Update.
7816         * lib/unistr/u32-to-u16.c: Update.
7817
7818 2007-01-27  Bruno Haible  <bruno@clisp.org>
7819
7820         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
7821         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
7822         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
7823         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
7824         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
7825         * modules/unistr/u16-mbtouc-unsafe: Renamed from
7826         modules/unistr/u16-mbtouc.
7827         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
7828         * lib/unistr.h: Update.
7829         * lib/linebreak.c: Update.
7830         * modules/linebreak: Update.
7831         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
7832         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
7833         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
7834         * modules/unistr/u16-mbtouc: Renamed from
7835         modules/unistr/u16-mbtouc-safe.
7836         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
7837         * lib/unistr.h: Update.
7838         * lib/unistr/u16-to-u8.c: Update.
7839         * modules/unistr/u16-to-u8: Update.
7840         * lib/unistr/u16-to-u32.c: Update.
7841         * modules/unistr/u16-to-u32: Update.
7842
7843 2007-01-27  Bruno Haible  <bruno@clisp.org>
7844
7845         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
7846         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
7847         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
7848         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
7849         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
7850         * modules/unistr/u8-mbtouc-unsafe: Renamed from
7851         modules/unistr/u8-mbtouc.
7852         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
7853         * lib/unistr.h: Update.
7854         * lib/striconveh.c: Update.
7855         * modules/striconveh: Update.
7856         * lib/linebreak.c: Update.
7857         * modules/linebreak: Update.
7858         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
7859         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
7860         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
7861         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
7862         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
7863         * lib/unistr.h: Update.
7864         * lib/striconveh.c: Update.
7865         * modules/striconveh: Update.
7866         * lib/unistr/u8-to-u16.c: Update.
7867         * modules/unistr/u8-to-u16: Update.
7868         * lib/unistr/u8-to-u32.c: Update.
7869         * modules/unistr/u8-to-u32: Update.
7870
7871 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7872
7873         Sync from Libtool.
7874         * lib/argz.c: Do not include strings.h nor memory.h, include
7875         string.h unconditionally.  Patch by Simon Josefsson.
7876
7877 2007-01-27  Bruno Haible  <bruno@clisp.org>
7878
7879         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
7880         from gl_HEADER_STRING_H_BODY.
7881         (gl_HEADER_STRING_H_BODY): Require it.
7882         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
7883         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
7884         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
7885         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
7886         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
7887         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
7888         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
7889         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
7890         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
7891         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
7892         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
7893         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
7894         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
7895         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
7896         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
7897
7898 2007-01-27  Bruno Haible  <bruno@clisp.org>
7899
7900         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
7901         check_PROGRAMS into noinst_PROGRAMS.
7902         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
7903         check_PROGRAMS in this case.
7904         (func_import): Set for_test to false.
7905         (func_create_testdir): Set for_test to true.
7906
7907 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
7908             Bruno Haible  <bruno@clisp.org>
7909
7910         * modules/strcasestr (Files): Remove lib/strcasestr.h.
7911         (Depends-on): Add string.
7912         (Includes): Use <string.h> instead of strcasestr.h.
7913         * modules/string (Makefile.am): Also substitute the value of
7914         REPLACE_STRCASESTR.
7915         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
7916         assume strcasestr is declared in <string.h> not <strings.h>. Also
7917         set REPLACE_STRCASESTR.
7918         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
7919         REPLACE_STRCASESTR.
7920         * lib/strcasestr.h: Remove file.
7921         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
7922         * lib/string_.h (strcasestr): New declaration.
7923
7924 2007-01-27  Bruno Haible  <bruno@clisp.org>
7925
7926         * lib/string_.h: Use 'extern'.
7927
7928 2007-01-27  Jim Meyering  <jim@meyering.net>
7929
7930         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
7931         of set-but-not-used local, "q".
7932
7933         * lib/mempcpy.c: Include <config.h> before <string.h>.
7934         This fixes a compilation error on HP-UX, due to the system's
7935         "restrict"-using mempcpy prototype.
7936
7937 2007-01-26  Bruno Haible  <bruno@clisp.org>
7938
7939         Small optimization.
7940         * lib/javacomp.c: Include c-strstr.h.
7941          (is_envjavac_gcj): Use c_strstr instead of strstr.
7942         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
7943
7944 2007-01-26  Bruno Haible  <bruno@clisp.org>
7945
7946         * MODULES.html.sh (Unicode string functions): Add the new modules.
7947
7948         * modules/uniconv/u32-strconv-to-locale: New file.
7949         * lib/uniconv/u32-strconv-to-locale.c: New file.
7950
7951         * modules/uniconv/u16-strconv-to-locale: New file.
7952         * lib/uniconv/u16-strconv-to-locale.c: New file.
7953
7954         * modules/uniconv/u8-strconv-to-locale: New file.
7955         * lib/uniconv/u8-strconv-to-locale.c: New file.
7956
7957         * modules/uniconv/u32-strconv-from-locale: New file.
7958         * lib/uniconv/u32-strconv-from-locale.c: New file.
7959
7960         * modules/uniconv/u16-strconv-from-locale: New file.
7961         * lib/uniconv/u16-strconv-from-locale.c: New file.
7962
7963         * modules/uniconv/u8-strconv-from-locale: New file.
7964         * lib/uniconv/u8-strconv-from-locale.c: New file.
7965
7966         * modules/uniconv/u32-strconv-to-enc: New file.
7967         * lib/uniconv/u32-strconv-to-enc.c: New file.
7968         * modules/uniconv/u32-strconv-to-enc-tests: New file.
7969         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
7970
7971         * modules/uniconv/u16-strconv-to-enc: New file.
7972         * lib/uniconv/u16-strconv-to-enc.c: New file.
7973         * lib/uniconv/u-strconv-to-enc.h: New file.
7974         * modules/uniconv/u16-strconv-to-enc-tests: New file.
7975         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
7976
7977         * modules/uniconv/u8-strconv-to-enc: New file.
7978         * lib/uniconv/u8-strconv-to-enc.c: New file.
7979         * modules/uniconv/u8-strconv-to-enc-tests: New file.
7980         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
7981
7982         * modules/uniconv/u32-strconv-from-enc: New file.
7983         * lib/uniconv/u32-strconv-from-enc.c: New file.
7984         * modules/uniconv/u32-strconv-from-enc-tests: New file.
7985         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
7986
7987         * modules/uniconv/u16-strconv-from-enc: New file.
7988         * lib/uniconv/u16-strconv-from-enc.c: New file.
7989         * modules/uniconv/u16-strconv-from-enc-tests: New file.
7990         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
7991
7992         * modules/uniconv/u8-strconv-from-enc: New file.
7993         * lib/uniconv/u8-strconv-from-enc.c: New file.
7994         * lib/uniconv/u-strconv-from-enc.h: New file.
7995         * modules/uniconv/u8-strconv-from-enc-tests: New file.
7996         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
7997
7998         * modules/uniconv/u32-conv-from-enc: New file.
7999         * lib/uniconv/u32-conv-from-enc.c: New file.
8000         * modules/uniconv/u32-conv-from-enc-tests: New file.
8001         * tests/uniconv/test-u32-conv-from-enc.c: New file.
8002
8003         * modules/uniconv/u16-conv-from-enc: New file.
8004         * lib/uniconv/u16-conv-from-enc.c: New file.
8005         * lib/uniconv/u-conv-from-enc.h: New file.
8006         * modules/uniconv/u16-conv-from-enc-tests: New file.
8007         * tests/uniconv/test-u16-conv-from-enc.c: New file.
8008
8009         * modules/uniconv/u8-conv-from-enc: New file.
8010         * lib/uniconv/u8-conv-from-enc.c: New file.
8011         * modules/uniconv/u8-conv-from-enc-tests: New file.
8012         * tests/uniconv/test-u8-conv-from-enc.c: New file.
8013
8014         * modules/uniconv/base: New file.
8015         * lib/uniconv.h: New file.
8016
8017 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
8018
8019         * doc/gnulib-tool.texi (Initial import): Update to match current
8020         behavior with strdup module.
8021         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
8022         * lib/memmem.h: Remove; all uses removed.  This is now done
8023         by <string.h>.
8024         * lib/mempcpy.h: Likewise.
8025         * lib/memrchr.h: Likewise.
8026         * lib/stpcpy.h: Likewise.
8027         * lib/stpncpy.h: Likewise.
8028         * lib/strcase.h: Likewise.
8029         * lib/strchrnul.h: Likewise.
8030         * lib/strdup.h: Likewise.
8031         * lib/strndup.h: Likewise.
8032         * lib/strnlen.h: Likewise.
8033         * lib/strpbrk.h: Likewise.
8034         * lib/strsep.h: Likewise.
8035         * lib/strstr.h: Likewise.
8036         * lib/strtok_r.h: Likewise.
8037         * lib/string_.h: New file.
8038         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
8039         Rely on <string.h> instead.
8040         * lib/canon-host.c: Likewise.
8041         * lib/chdir-long.c: Likewise.
8042         * lib/concatpath.c: Likewise.
8043         * lib/exclude.c: Likewise.
8044         * lib/fchdir.c: Likewise.
8045         * lib/getaddrinfo.c: Likewise.
8046         * lib/getcwd.c: Likewise.
8047         * lib/getsubopt.c: Likewise.
8048         * lib/glob.c: Likewise.
8049         * lib/hard-locale.c: Likewise.
8050         * lib/iconvme.c: Likewise.
8051         * lib/javacomp.c: Likewise.
8052         * lib/mempcpy.c: Likewise.
8053         * lib/memrchr.c: Likewise.
8054         * lib/regex_internal.h: Likewise.
8055         * lib/stpncpy.c: Likewise.
8056         * lib/strcasecmp.c: Likewise.
8057         * lib/strchrnul.c: Likewise.
8058         * lib/strdup.c: Likewise.
8059         * lib/striconv.c: Likewise.
8060         * lib/striconveh.c: Likewise.
8061         * lib/striconveha.c: Likewise.
8062         * lib/strncasecmp.c: Likewise.
8063         * lib/strndup.c: Likewise.
8064         * lib/strnlen.c: Likewise.
8065         * lib/strsep.c: Likewise.
8066         * lib/strstr.c: Likewise.
8067         * lib/strtok_r.c: Likewise.
8068         * lib/userspec.c: Likewise.
8069         * lib/w32spawn.h: Likewise.
8070         * lib/xstrndup.c: Likewise.
8071         * lib/mountlist.c (strstr): Remove decl.
8072         * m4/string_h.m4: New file.
8073         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
8074         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
8075         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
8076         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
8077         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
8078         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
8079         Set REPLACE_STRCASECMP if necessary.
8080         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
8081         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
8082         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
8083         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
8084         HAVE_DECL_STRDUP if necessary.
8085         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
8086         since gl_FUNC_STRNDUP does that now.
8087         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
8088         Check for decl here...
8089         (gl_PREREQ_STRNLEN): ... not here.
8090         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
8091         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
8092         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
8093         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
8094         necessary.
8095         * modules/string: New file.
8096         * modules/memmem (Files): Remove special-purpose include file.
8097         (Depends-on): Add string.
8098         (Include): Include <string.h>, not the removed file.
8099         * modules/mempcpy: Likewise.
8100         * modules/memrchr: Likewise.
8101         * modules/stpcpy: Likewise.
8102         * modules/stpncpy: Likewise.
8103         * modules/strcase: Likewise.
8104         * modules/strchrnul: Likewise.
8105         * modules/strdup: Likewise.
8106         * modules/strndup: Likewise.
8107         * modules/strnlen: Likewise.
8108         * modules/strpbrk: Likewise.
8109         * modules/strsep: Likewise.
8110         * modules/strstr: Likewise.
8111         * modules/strtok_r: Likewise.
8112         * tests/test-dirname.c: Don't include "strdup.h", since
8113         <string.h> now suffices.
8114         * tests/test-memmem.c: Don't include "memmem.h", since
8115         <string.h> now suffices.
8116
8117 2007-01-25  Bruno Haible  <bruno@clisp.org>
8118
8119         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
8120         *resultp is 0.
8121
8122         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
8123         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
8124         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
8125         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
8126
8127         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
8128         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
8129         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
8130         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
8131         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
8132         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
8133
8134 2007-01-24  Bruno Haible  <bruno@clisp.org>
8135
8136         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
8137         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
8138         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
8139         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
8140         gl_FUNC_FTS_CORE.
8141         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
8142         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
8143         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
8144         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
8145         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
8146         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
8147         gl_FUNC_FCHOWNAT.
8148         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
8149         gl_FUNC_STRFTIME.
8150         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
8151         Reported by Ralf Wildenhues.
8152
8153 2007-01-24  Bruno Haible  <bruno@clisp.org>
8154
8155         Drop AC_REQUIRE calls that are redundant with the module dependencies.
8156         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
8157         gl_GETADDRINFO.
8158         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
8159         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
8160         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
8161
8162 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
8163
8164         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
8165         Don't use 'exit'; just return from 'main'.
8166         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
8167
8168         * lib/fnmatch_.h: Readjust white space and comments to match
8169         glibc, to avoid spurious diffs.
8170
8171 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
8172
8173         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
8174         2004-12-01 change by Jakub Jelinek, since this code won't compile
8175         if !LIBC.  Problem reported by Bob Proulx.
8176
8177 2007-01-23  Bruno Haible  <bruno@clisp.org>
8178
8179         * lib/striconveh.c: Include c-strcaseeq.h.
8180         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
8181         * modules/striconveh (Depends-on): Add c-strcaseeq.
8182
8183 2007-01-23  Bruno Haible  <bruno@clisp.org>
8184
8185         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
8186
8187         * modules/c-strcaseeq: New file.
8188         * lib/c-strcaseeq.h: New file.
8189
8190         * modules/streq: New file.
8191         * lib/streq.h: New file.
8192
8193 2007-01-23  Bruno Haible  <bruno@clisp.org>
8194
8195         * modules/striconveha-tests: New file.
8196         * tests/test-striconveha.c: New file.
8197
8198         * lib/striconveha.h: Include <stdbool.h>.
8199         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
8200         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
8201         (mem_iconveha_notranslit): Renamed from mem_iconveha.
8202         (mem_iconveha): New function.
8203         (str_iconveha_notranslit): Renamed from str_iconveha.
8204         (str_iconveha): New function.
8205         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
8206         c-strcase.
8207
8208 2007-01-23  Bruno Haible  <bruno@clisp.org>
8209
8210         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
8211         encodings without forgiving before trying any encoding with handler.
8212         (str_iconveha): Try all encodings without forgiving before trying any
8213         encoding with handler.
8214
8215 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
8216
8217         Import the following changes from libc.
8218
8219         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
8220
8221         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
8222
8223         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
8224
8225         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
8226         normal_bracket label.
8227
8228         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
8229
8230         [BZ #361]
8231         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
8232         to normal_bracket after fetching the next character.
8233
8234 2007-01-22  Bruno Haible  <bruno@clisp.org>
8235
8236         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
8237         argument.
8238         * lib/striconveh.c (iconv_carefully_1): New function.
8239         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
8240         argument.
8241         (str_cd_iconveh): Update.
8242         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
8243         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
8244         * tests/test-striconveh.c (MAGIC): New macro.
8245         (new_offsets): New function.
8246         (main): Test call with and without offsets.
8247
8248 2007-01-22  Bruno Haible  <bruno@clisp.org>
8249
8250         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
8251         * modules/sys_select (Makefile.am): Likewise.
8252         * modules/sys_socket (Makefile.am): Likewise.
8253         * modules/sys_time (Makefile.am): Likewise.
8254
8255 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
8256
8257         * modules/gettimeofday (License): Change from GPL to LGPL, since
8258         gettimeofday is a library function.
8259
8260 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8261
8262         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
8263
8264 2007-01-21  Bruno Haible  <bruno@clisp.org>
8265
8266         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
8267
8268 2007-01-21  Bruno Haible  <bruno@clisp.org>
8269
8270         * modules/striconveha: New file.
8271         * lib/striconveha.h: New file.
8272         * lib/striconveha.c: New file.
8273         * MODULES.html.sh (Internationalization functions): Add striconveha.
8274         * lib/striconv.c (str_iconv): Optimize the case of an empty input
8275         string.
8276         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
8277
8278 2007-01-21  Bruno Haible  <bruno@clisp.org>
8279
8280         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
8281         * lib/striconveh.c (str_iconveh): Likewise.
8282
8283 2007-01-21  Bruno Haible  <bruno@clisp.org>
8284
8285         * lib/striconveh.h (mem_iconveh): New declaration.
8286         * lib/striconveh.c (mem_iconveh): New function.
8287         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
8288
8289 2007-01-21  Bruno Haible  <bruno@clisp.org>
8290
8291         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
8292
8293         * lib/striconveh.h (mem_cd_iconveh): Change specification.
8294         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
8295         original result buffer.
8296         (str_cd_iconveh): Update.
8297         * tests/test-striconveh.c (main): Update.
8298
8299         * lib/striconv.h (mem_cd_iconv): Change specification.
8300         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
8301         result buffer.
8302         (str_cd_iconv): Update.
8303         * tests/test-striconv.c (main): Update.
8304
8305 2007-01-21  Bruno Haible  <bruno@clisp.org>
8306
8307         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
8308
8309 2007-01-20  Jim Meyering  <jim@meyering.net>
8310
8311         * lib/userspec.c (parse_with_separator): If a user or group string
8312         starts with "+", skip the corresponding name-to-ID look-up, since
8313         such a look-up must fail: user and group names may not include "+".
8314
8315 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
8316
8317         * lib/poll.c: Include sys/time.h and time.h unconditionally,
8318         since we now assume the sys_time module.
8319         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
8320         check for sys/time.h; no longer needed.
8321         * modules/poll (Depends-on): Depend on sys_time.
8322
8323 2007-01-18  Bruno Haible  <bruno@clisp.org>
8324
8325         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
8326         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
8327
8328         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
8329         gettimeofday.
8330
8331         * tests/test-gettimeofday.c: Include <time.h>.
8332         (dummy): Remove variable.
8333
8334         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
8335         gl_HEADER_SYS_TIME_H.
8336         (gl_HEADER_SYS_TIME_H): New macro.
8337
8338         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
8339         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
8340         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
8341         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
8342         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
8343         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
8344         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
8345         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
8346         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
8347         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
8348         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
8349
8350         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
8351         last change; it caused a compilation error when cross-compiling to
8352         Cygwin.
8353
8354 2007-01-18  Jim Meyering  <jim@meyering.net>
8355
8356         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
8357         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
8358         than the race-prone "test -d sys || mkdir sys".
8359         (configure.ac): Use AC_PROG_MKDIR_P.
8360         * modules/sys_select: Likewise.
8361         * modules/sys_socket: Likewise.
8362         * modules/sys_time: Likewise.
8363
8364 2007-01-18  Eric Blake  <ebb9@byu.net>
8365
8366         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
8367         replace gettimeofday.
8368         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
8369         name, to avoid infinite recursion.
8370
8371 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
8372
8373         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
8374         module sys_time.
8375         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
8376         assume timespec.h defines struct timeval.
8377         * lib/settime.c: Likewise.
8378         * lib/utimens.c: Likewise.
8379         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
8380         since we now assume the gettimeofday module.
8381         * lib/tempname.c (__gen_tempname): Likewise.
8382         * lib/gettimeofday.h: Remove.
8383         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
8384         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
8385         Include <time.h>, for 'time()'.
8386         (localtime_buffer_addr): Also use this workaround if
8387         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
8388         to simplify the uses.  All uses changed.
8389         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
8390         that #undef is inside {}, and 'const' follows type name consistently.
8391         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
8392         (gettimeofday): Do not use the maximum possible value for
8393         tv->tv_usec, since that might break usages other than ls.c.
8394         Instead, we'll leave ls.c alone.  This undoes today's patch
8395         by Bruno.  Add a compile-time warning for 1s-clock resolution;
8396         we've never observed the problem but might as well keep the
8397         canary.
8398         * lib/nanosleep.c: Include timespec.h first, for interface check.
8399         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
8400         now assume the sys_time module.
8401         * lib/tempname.c: Likewise.
8402         * lib/timespec.h: Likewise.
8403         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
8404         needed.
8405         * lib/strftime.c: Likewise.
8406         * lib/timespec.h: Likewise.
8407         * lib/posixtm.c: Include posixtm.h first, for interface check.
8408         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
8409         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
8410         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
8411         * lib/sys_time_.h: New file.
8412         * lib/timespec.h (struct timespec): Use long int, not long.
8413         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
8414         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
8415         Remove obsolescent call to AC_HEADER_TIME.
8416         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
8417         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8418         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
8419         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
8420         Likewise.
8421         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
8422         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
8423         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
8424         into the sys_time module.  Check for gettimeofday just once.
8425         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
8426         for gettimeofday signature to just check the signature.  Merely
8427         compile it, since linking doesn't test signature.  Improve test for
8428         whether gettimeofday.o is actually needed.
8429         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
8430         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
8431         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
8432         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
8433         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
8434         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
8435         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
8436         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
8437         than worrying about sys/time.h.
8438         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
8439         Don't bother worrying about TIME_WITH_SYS_TIME.
8440         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
8441         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
8442         * m4/sys_time_h.m4: New file.
8443         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
8444         Don't include sys/time.h.  Return from main rather than exiting.
8445         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
8446         all uses changed.
8447         * modules/gethrxtime (Depends-on): Add sys_time.
8448         * modules/gettime (Depends-on): Likewise.
8449         * modules/gettimeofday (Depends-on): Likewise.
8450         * modules/nanosleep (Depends-on): Likewise.
8451         * modules/settime (Depends-on): Likewise.
8452         * modules/tempname (Depends-on): Likewise.
8453         * modules/utimens (Depends-on): Likewise.
8454         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
8455         (Include:) Change back to <sys/time.h>.
8456         (Maintainer:) Add self.
8457         * modules/sys_time: New file.
8458         * modules/tempname (Depends-on): Add gettimeofday.
8459         * tests/test-gettimeofday.c: Include <sys/time.h>
8460         rather than gettimeofday.h.
8461
8462 2007-01-17  Bruno Haible  <bruno@clisp.org>
8463
8464         * gnulib-tool (func_get_license): Revert last patch. Instead, let
8465         the license default to GPL.
8466         (func_create_testdir): Don't complain if a module is LGPL and its
8467         tests module depends on GPLed modules.
8468
8469 2007-01-17  Bruno Haible  <bruno@clisp.org>
8470
8471         * lib/gettimeofday.c (gettimeofday): Add code for the case
8472         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
8473         maximum possible value for tv->tv_usec, rather than the minimum one.
8474
8475 2005-10-08  Martin Lambers  <marlam@marlam.de>
8476 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
8477 2007-01-16  Bruno Haible  <bruno@clisp.org>
8478
8479         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
8480         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
8481         gl_FUNC_GETTIMEOFDAY.
8482         (Include): Add gettimeofday.h.
8483         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
8484         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
8485         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
8486         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
8487         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
8488         * lib/gettimeofday.h: New file.
8489         * lib/gettimeofday.c: Include <sys/timeb.h>.
8490         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
8491         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
8492         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
8493         fall back on time().
8494
8495         * tests/test-gettimeofday.c: New file.
8496         * modules/gettimeofday-tests: New file.
8497
8498 2007-01-16  Eric Blake  <ebb9@byu.net>
8499
8500         * modules/fnmatch (Depends-on): Depend on wchar.
8501         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
8502         * m4/fnmatch.m4: Likewise.
8503         * modules/mbchar (Makefile.am): Assume <wchar.h>.
8504         * m4/mbchar.m4: Likewise.
8505         * modules/mbswidth (Depends-on): Depend on wchar.
8506         * lib/mbswidth.c: Assume <wchar.h>.
8507         * m4/mbswidth.m4: Likewise.
8508         * modules/quotearg (Depends-on): Depend on wchar.
8509         * lib/quotearg.c: Assume <wchar.h>.
8510         * m4/quotearg.m4: Likewise.
8511         * modules/regex (Depends-on): Depend on wchar.
8512         * lib/regex_internal.h: Assume <wchar.h>.
8513         * m4/regex.m4: Likewise.
8514         * modules/stdint (Depends-on): Depend on wchar.
8515         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
8516         * m4/stdint.m4: Likewise.
8517         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
8518         * modules/strftime (Depends-on): Depend on wchar.
8519         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
8520         * modules/strtol (Depends-on): Depend on wchar.
8521         * lib/strtol.c: Assume <wchar.h>.
8522         * modules/wcwidth (Depends-on): Depend on wchar.
8523         * lib/wcwidth.h: Assume <wchar.h>.
8524         * m4/wcwidth.m4: Likewise.
8525
8526 2007-01-16  Bruno Haible  <bruno@clisp.org>
8527
8528         * modules/csharpexec-script: New, created from...
8529         * modules/csharpexec: ... this.
8530
8531 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
8532
8533         * modules/javaexec-script: New, created from...
8534         * modules/javaexec: ... this.
8535
8536 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8537
8538         * modules/poll (Dependencies): Add sys_select.
8539
8540 2007-01-15  Jim Meyering  <jim@meyering.net>
8541
8542         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
8543         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
8544         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
8545         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
8546
8547 2007-01-15  Bruno Haible  <bruno@clisp.org>
8548
8549         * modules/striconveh: New file.
8550         * lib/striconveh.h: New file.
8551         * lib/striconveh.c: New file.
8552         * MODULES.html.sh (Internationalization functions): Add striconveh.
8553
8554         * modules/striconveh-tests: New file.
8555         * tests/test-striconveh.c: New file.
8556
8557 2007-01-15  Bruno Haible  <bruno@clisp.org>
8558
8559         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
8560         not from GNU libiconv or GNU libc.
8561
8562 2007-01-15  Bruno Haible  <bruno@clisp.org>
8563
8564         * doc/gnulib-intro.texi (Copyright): Explain the different license
8565         terms for module descriptions, autoconf macros, tests, documentation.
8566
8567 2007-01-14  Bruno Haible  <bruno@clisp.org>
8568
8569         * modules/striconv-tests: New file.
8570         * tests/test-striconv.c: New file.
8571
8572 2007-01-14  Bruno Haible  <bruno@clisp.org>
8573
8574         * modules/iconv-tests: New file.
8575         * tests/test-iconv.c: New file.
8576
8577 2007-01-14  Bruno Haible  <bruno@clisp.org>
8578
8579         * gnulib-tool (func_get_license): For test modules, use the license of
8580         the main module.
8581
8582 2007-01-14  Bruno Haible  <bruno@clisp.org>
8583
8584         * modules/iconv (Include): Clarify that <iconv.h> can only be included
8585         if iconv is found to exist.
8586
8587 2007-01-14  Bruno Haible  <bruno@clisp.org>
8588
8589         * modules/c-ctype-tests: New file.
8590         * tests/test-c-ctype.c: New file.
8591
8592 2007-01-14  Bruno Haible  <bruno@clisp.org>
8593
8594         * modules/binary-io-tests: New file.
8595         * tests/test-binary-io.sh: New file.
8596         * tests/test-binary-io.c: New file.
8597
8598 2007-01-14  Bruno Haible  <bruno@clisp.org>
8599
8600         * modules/array-oset-tests: New file.
8601         * tests/test-array_oset.c: New file.
8602
8603 2007-01-14  Bruno Haible  <bruno@clisp.org>
8604
8605         * modules/array-list-tests: New file.
8606         * tests/test-array_list.c: New file.
8607
8608 2007-01-14  Bruno Haible  <bruno@clisp.org>
8609
8610         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
8611         and make.
8612         Reported by Simon Josefsson in
8613         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
8614
8615 2007-01-14  Bruno Haible  <bruno@clisp.org>
8616
8617         * modules/allocsa-tests: New file.
8618         * tests/test-allocsa.c: New file.
8619
8620 2007-01-14  Bruno Haible  <bruno@clisp.org>
8621
8622         * modules/fchdir (Depends-on): Add absolute-header.
8623         * modules/unistd (Depends-on): Likewise.
8624
8625 2006-12-30  Bruno Haible  <bruno@clisp.org>
8626
8627         * modules/fchdir: New file.
8628         * modules/unistd (Files): Add lib/unistd_.h.
8629         (Makefile.am): Generate unistd.h from unistd_.h.
8630         * lib/fchdir.c: New file.
8631         * lib/dirent_.h: New file.
8632         * lib/unistd_.h: New file.
8633         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
8634         * m4/fchdir.m4: New file.
8635         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
8636         (gl_HEADER_UNISTD): Invoke it.
8637         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
8638         function.
8639         * lib/backupfile.c (opendir, closedir): Undefine.
8640         * lib/chown.c (open, close): Undefine.
8641         * lib/clean-temp.c (open, close): Undefine.
8642         * lib/copy-file.c (open, close): Undefine.
8643         * lib/execute.c (open, close): Undefine.
8644         * lib/fsusage.c (open, close): Undefine.
8645         * lib/gc-gnulib.c (open, close): Undefine.
8646         * lib/getcwd.c (opendir, closedir): Undefine.
8647         * lib/glob.c (opendir, closedir): Undefine.
8648         * lib/javacomp.c (open, close): Undefine.
8649         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
8650         * lib/openat-proc.c (open, close): Undefine.
8651         * lib/pagealign_alloc.c (open, close): Undefine.
8652         * lib/pipe.c (open, close): Undefine.
8653         * lib/progreloc.c (open, close): Undefine.
8654         * lib/savedir.c (opendir, closedir): Undefine.
8655         * lib/utime.c (open, close): Undefine.
8656         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
8657
8658 2007-01-10  Bruno Haible  <bruno@clisp.org>
8659
8660         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
8661
8662 2007-01-12  Eric Blake  <ebb9@byu.net>
8663
8664         Provide a robust <wchar.h>.  Further simplifications are now
8665         possible in other modules, but not included here.
8666         * modules/wchar: New module.
8667         * m4/wchar.m4: New file.
8668         * lib/wchar_.h: Likewise.
8669         * modules/mbchar (Depends-on): Depend on wchar, as the first use
8670         of the new module.
8671         * MODULES.html.sh (Extended multibyte and wide character utilities):
8672         New section.
8673
8674 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
8675
8676         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
8677         to a reasonable default for memory allocation.
8678         (xreadlink): Don't allocate a huge buffer, to work around a buggy
8679         file system that reports garbage st_size values for symlinks.
8680         Problem reported by Liyang Hu.
8681
8682 2007-01-11  Simon Josefsson  <simon@josefsson.org>
8683
8684         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
8685         Emacs .#* auto-save files).
8686
8687 2007-01-11  Bruno Haible  <bruno@clisp.org>
8688
8689         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
8690         directory.
8691
8692 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
8693
8694         Use @...@ consistently in lib/wctype_.h.
8695         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
8696         on it being set to 1 or 0.
8697         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
8698         go back to AC_SUBSTing it.
8699         * modules/wctype (Makefile.am): Undo previous change.
8700
8701 2007-01-10  Eric Blake  <ebb9@byu.net>
8702
8703         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
8704         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
8705         * modules/wctype (Makefile.am): Likewise.
8706         Reported by Chris McGuire.
8707
8708 2007-01-10  Jim Meyering  <jim@meyering.net>
8709
8710         fts.c: a small readability/maintainability improvement
8711         * lib/fts.c (fts_read): Make this code slightly more readable and
8712         maintainable by hoisting the "sp->fts_cur = p" assignments to
8713         immediately follow the statements that set P.  Derived from
8714         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
8715
8716 2007-01-10  Eric Blake  <ebb9@byu.net>
8717
8718         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
8719         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
8720         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
8721         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
8722         Reported by Chris McGuire.
8723
8724 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8725
8726         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
8727         in sed script.
8728
8729 2007-01-09  Bruno Haible  <bruno@clisp.org>
8730
8731         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
8732         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
8733         variables.
8734         (func_module): Use them.
8735
8736 2007-01-09  Bruno Haible  <bruno@clisp.org>
8737
8738         * modules/unistr/base: New file.
8739         * lib/unistr.h: New file.
8740
8741         * modules/unistr/u8-to-u16: New file.
8742         * lib/unistr/u8-to-u16.c: New file.
8743
8744         * modules/unistr/u8-to-u32: New file.
8745         * lib/unistr/u8-to-u32.c: New file.
8746
8747         * modules/unistr/u16-to-u8: New file.
8748         * lib/unistr/u16-to-u8.c: New file.
8749
8750         * modules/unistr/u16-to-u32: New file.
8751         * lib/unistr/u16-to-u32.c: New file.
8752
8753         * modules/unistr/u32-to-u8: New file.
8754         * lib/unistr/u32-to-u8.c: New file.
8755
8756         * modules/unistr/u32-to-u16: New file.
8757         * lib/unistr/u32-to-u16.c: New file.
8758
8759         * modules/unistr/u8-check: New file.
8760         * modules/unistr/u16-check: New file.
8761         * modules/unistr/u32-check: New file.
8762         * lib/unistr/u8-check.c: New file.
8763         * lib/unistr/u16-check.c: New file.
8764         * lib/unistr/u32-check.c: New file.
8765
8766         * modules/unistr/u8-chr: New file.
8767         * modules/unistr/u16-chr: New file.
8768         * modules/unistr/u32-chr: New file.
8769         * lib/unistr/u8-chr.c: New file.
8770         * lib/unistr/u16-chr.c: New file.
8771         * lib/unistr/u32-chr.c: New file.
8772
8773         * modules/unistr/u8-cmp: New file.
8774         * modules/unistr/u16-cmp: New file.
8775         * modules/unistr/u32-cmp: New file.
8776         * lib/unistr/u8-cmp.c: New file.
8777         * lib/unistr/u16-cmp.c: New file.
8778         * lib/unistr/u32-cmp.c: New file.
8779
8780         * modules/unistr/u8-cpy: New file.
8781         * modules/unistr/u16-cpy: New file.
8782         * modules/unistr/u32-cpy: New file.
8783         * lib/unistr/u8-cpy.c: New file.
8784         * lib/unistr/u16-cpy.c: New file.
8785         * lib/unistr/u32-cpy.c: New file.
8786         * lib/unistr/u-cpy.h: New file.
8787
8788         * modules/unistr/u8-cpy-alloc: New file.
8789         * modules/unistr/u16-cpy-alloc: New file.
8790         * modules/unistr/u32-cpy-alloc: New file.
8791         * lib/unistr/u8-cpy-alloc.c: New file.
8792         * lib/unistr/u16-cpy-alloc.c: New file.
8793         * lib/unistr/u32-cpy-alloc.c: New file.
8794         * lib/unistr/u-cpy-alloc.h: New file.
8795
8796         * modules/unistr/u8-endswith: New file.
8797         * modules/unistr/u16-endswith: New file.
8798         * modules/unistr/u32-endswith: New file.
8799         * lib/unistr/u8-endswith.c: New file.
8800         * lib/unistr/u16-endswith.c: New file.
8801         * lib/unistr/u32-endswith.c: New file.
8802         * lib/unistr/u-endswith.h: New file.
8803
8804         * modules/unistr/u8-mblen: New file.
8805         * modules/unistr/u16-mblen: New file.
8806         * modules/unistr/u32-mblen: New file.
8807         * lib/unistr/u8-mblen.c: New file.
8808         * lib/unistr/u16-mblen.c: New file.
8809         * lib/unistr/u32-mblen.c: New file.
8810
8811         * modules/unistr/u8-mbtouc: New file.
8812         * modules/unistr/u16-mbtouc: New file.
8813         * modules/unistr/u32-mbtouc: New file.
8814         * lib/unistr/u8-mbtouc.c: New file.
8815         * lib/unistr/u16-mbtouc.c: New file.
8816         * lib/unistr/u32-mbtouc.c: New file.
8817
8818         * modules/unistr/u8-mbtouc-safe: New file.
8819         * modules/unistr/u16-mbtouc-safe: New file.
8820         * modules/unistr/u32-mbtouc-safe: New file.
8821         * lib/unistr/u8-mbtouc-safe.c: New file.
8822         * lib/unistr/u16-mbtouc-safe.c: New file.
8823         * lib/unistr/u32-mbtouc-safe.c: New file.
8824
8825         * modules/unistr/u8-move: New file.
8826         * modules/unistr/u16-move: New file.
8827         * modules/unistr/u32-move: New file.
8828         * lib/unistr/u8-move.c: New file.
8829         * lib/unistr/u16-move.c: New file.
8830         * lib/unistr/u32-move.c: New file.
8831         * lib/unistr/u-move.h: New file.
8832
8833         * modules/unistr/u8-next: New file.
8834         * modules/unistr/u16-next: New file.
8835         * modules/unistr/u32-next: New file.
8836         * lib/unistr/u8-next.c: New file.
8837         * lib/unistr/u16-next.c: New file.
8838         * lib/unistr/u32-next.c: New file.
8839
8840         * modules/unistr/u8-prev: New file.
8841         * modules/unistr/u16-prev: New file.
8842         * modules/unistr/u32-prev: New file.
8843         * lib/unistr/u8-prev.c: New file.
8844         * lib/unistr/u16-prev.c: New file.
8845         * lib/unistr/u32-prev.c: New file.
8846
8847         * modules/unistr/u8-set: New file.
8848         * modules/unistr/u16-set: New file.
8849         * modules/unistr/u32-set: New file.
8850         * lib/unistr/u8-set.c: New file.
8851         * lib/unistr/u16-set.c: New file.
8852         * lib/unistr/u32-set.c: New file.
8853         * lib/unistr/u-set.h: New file.
8854
8855         * modules/unistr/u8-startswith: New file.
8856         * modules/unistr/u16-startswith: New file.
8857         * modules/unistr/u32-startswith: New file.
8858         * lib/unistr/u8-startswith.c: New file.
8859         * lib/unistr/u16-startswith.c: New file.
8860         * lib/unistr/u32-startswith.c: New file.
8861         * lib/unistr/u-startswith.h: New file.
8862
8863         * modules/unistr/u8-stpcpy: New file.
8864         * modules/unistr/u16-stpcpy: New file.
8865         * modules/unistr/u32-stpcpy: New file.
8866         * lib/unistr/u8-stpcpy.c: New file.
8867         * lib/unistr/u16-stpcpy.c: New file.
8868         * lib/unistr/u32-stpcpy.c: New file.
8869         * lib/unistr/u-stpcpy.h: New file.
8870
8871         * modules/unistr/u8-stpncpy: New file.
8872         * modules/unistr/u16-stpncpy: New file.
8873         * modules/unistr/u32-stpncpy: New file.
8874         * lib/unistr/u8-stpncpy.c: New file.
8875         * lib/unistr/u16-stpncpy.c: New file.
8876         * lib/unistr/u32-stpncpy.c: New file.
8877         * lib/unistr/u-stpncpy.h: New file.
8878
8879         * modules/unistr/u8-strcat: New file.
8880         * modules/unistr/u16-strcat: New file.
8881         * modules/unistr/u32-strcat: New file.
8882         * lib/unistr/u8-strcat.c: New file.
8883         * lib/unistr/u16-strcat.c: New file.
8884         * lib/unistr/u32-strcat.c: New file.
8885         * lib/unistr/u-strcat.h: New file.
8886
8887         * modules/unistr/u8-strchr: New file.
8888         * modules/unistr/u16-strchr: New file.
8889         * modules/unistr/u32-strchr: New file.
8890         * lib/unistr/u8-strchr.c: New file.
8891         * lib/unistr/u16-strchr.c: New file.
8892         * lib/unistr/u32-strchr.c: New file.
8893
8894         * modules/unistr/u8-strcmp: New file.
8895         * modules/unistr/u16-strcmp: New file.
8896         * modules/unistr/u32-strcmp: New file.
8897         * lib/unistr/u8-strcmp.c: New file.
8898         * lib/unistr/u16-strcmp.c: New file.
8899         * lib/unistr/u32-strcmp.c: New file.
8900
8901         * modules/unistr/u8-strcpy: New file.
8902         * modules/unistr/u16-strcpy: New file.
8903         * modules/unistr/u32-strcpy: New file.
8904         * lib/unistr/u8-strcpy.c: New file.
8905         * lib/unistr/u16-strcpy.c: New file.
8906         * lib/unistr/u32-strcpy.c: New file.
8907         * lib/unistr/u-strcpy.h: New file.
8908
8909         * modules/unistr/u8-strcspn: New file.
8910         * modules/unistr/u16-strcspn: New file.
8911         * modules/unistr/u32-strcspn: New file.
8912         * lib/unistr/u8-strcspn.c: New file.
8913         * lib/unistr/u16-strcspn.c: New file.
8914         * lib/unistr/u32-strcspn.c: New file.
8915         * lib/unistr/u-strcspn.h: New file.
8916
8917         * modules/unistr/u8-strdup: New file.
8918         * modules/unistr/u16-strdup: New file.
8919         * modules/unistr/u32-strdup: New file.
8920         * lib/unistr/u8-strdup.c: New file.
8921         * lib/unistr/u16-strdup.c: New file.
8922         * lib/unistr/u32-strdup.c: New file.
8923         * lib/unistr/u-strdup.h: New file.
8924
8925         * modules/unistr/u8-strlen: New file.
8926         * modules/unistr/u16-strlen: New file.
8927         * modules/unistr/u32-strlen: New file.
8928         * lib/unistr/u8-strlen.c: New file.
8929         * lib/unistr/u16-strlen.c: New file.
8930         * lib/unistr/u32-strlen.c: New file.
8931         * lib/unistr/u-strlen.h: New file.
8932
8933         * modules/unistr/u8-strmblen: New file.
8934         * modules/unistr/u16-strmblen: New file.
8935         * modules/unistr/u32-strmblen: New file.
8936         * lib/unistr/u8-strmblen.c: New file.
8937         * lib/unistr/u16-strmblen.c: New file.
8938         * lib/unistr/u32-strmblen.c: New file.
8939
8940         * modules/unistr/u8-strmbtouc: New file.
8941         * modules/unistr/u16-strmbtouc: New file.
8942         * modules/unistr/u32-strmbtouc: New file.
8943         * lib/unistr/u8-strmbtouc.c: New file.
8944         * lib/unistr/u16-strmbtouc.c: New file.
8945         * lib/unistr/u32-strmbtouc.c: New file.
8946
8947         * modules/unistr/u8-strncat: New file.
8948         * modules/unistr/u16-strncat: New file.
8949         * modules/unistr/u32-strncat: New file.
8950         * lib/unistr/u8-strncat.c: New file.
8951         * lib/unistr/u16-strncat.c: New file.
8952         * lib/unistr/u32-strncat.c: New file.
8953         * lib/unistr/u-strncat.h: New file.
8954
8955         * modules/unistr/u8-strncmp: New file.
8956         * modules/unistr/u16-strncmp: New file.
8957         * modules/unistr/u32-strncmp: New file.
8958         * lib/unistr/u8-strncmp.c: New file.
8959         * lib/unistr/u16-strncmp.c: New file.
8960         * lib/unistr/u32-strncmp.c: New file.
8961
8962         * modules/unistr/u8-strncpy: New file.
8963         * modules/unistr/u16-strncpy: New file.
8964         * modules/unistr/u32-strncpy: New file.
8965         * lib/unistr/u8-strncpy.c: New file.
8966         * lib/unistr/u16-strncpy.c: New file.
8967         * lib/unistr/u32-strncpy.c: New file.
8968         * lib/unistr/u-strncpy.h: New file.
8969
8970         * modules/unistr/u8-strnlen: New file.
8971         * modules/unistr/u16-strnlen: New file.
8972         * modules/unistr/u32-strnlen: New file.
8973         * lib/unistr/u8-strnlen.c: New file.
8974         * lib/unistr/u16-strnlen.c: New file.
8975         * lib/unistr/u32-strnlen.c: New file.
8976         * lib/unistr/u-strnlen.h: New file.
8977
8978         * modules/unistr/u8-strpbrk: New file.
8979         * modules/unistr/u16-strpbrk: New file.
8980         * modules/unistr/u32-strpbrk: New file.
8981         * lib/unistr/u8-strpbrk.c: New file.
8982         * lib/unistr/u16-strpbrk.c: New file.
8983         * lib/unistr/u32-strpbrk.c: New file.
8984         * lib/unistr/u-strpbrk.h: New file.
8985
8986         * modules/unistr/u8-strrchr: New file.
8987         * modules/unistr/u16-strrchr: New file.
8988         * modules/unistr/u32-strrchr: New file.
8989         * lib/unistr/u8-strrchr.c: New file.
8990         * lib/unistr/u16-strrchr.c: New file.
8991         * lib/unistr/u32-strrchr.c: New file.
8992
8993         * modules/unistr/u8-strspn: New file.
8994         * modules/unistr/u16-strspn: New file.
8995         * modules/unistr/u32-strspn: New file.
8996         * lib/unistr/u8-strspn.c: New file.
8997         * lib/unistr/u16-strspn.c: New file.
8998         * lib/unistr/u32-strspn.c: New file.
8999         * lib/unistr/u-strspn.h: New file.
9000
9001         * modules/unistr/u8-strstr: New file.
9002         * modules/unistr/u16-strstr: New file.
9003         * modules/unistr/u32-strstr: New file.
9004         * lib/unistr/u8-strstr.c: New file.
9005         * lib/unistr/u16-strstr.c: New file.
9006         * lib/unistr/u32-strstr.c: New file.
9007         * lib/unistr/u-strstr.h: New file.
9008
9009         * modules/unistr/u8-strtok: New file.
9010         * modules/unistr/u16-strtok: New file.
9011         * modules/unistr/u32-strtok: New file.
9012         * lib/unistr/u8-strtok.c: New file.
9013         * lib/unistr/u16-strtok.c: New file.
9014         * lib/unistr/u32-strtok.c: New file.
9015         * lib/unistr/u-strtok.h: New file.
9016
9017         * modules/unistr/u8-uctomb: New file.
9018         * modules/unistr/u16-uctomb: New file.
9019         * modules/unistr/u32-uctomb: New file.
9020         * lib/unistr/u8-uctomb.c: New file.
9021         * lib/unistr/u16-uctomb.c: New file.
9022         * lib/unistr/u32-uctomb.c: New file.
9023
9024         * MODULES.html.sh (Unicode string functions): Add the new modules.
9025
9026 2007-01-08  Bruno Haible  <bruno@clisp.org>
9027
9028         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
9029         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
9030         subdirectories.
9031
9032 2007-01-08  Karl Berry  <karl@gnu.org>
9033
9034         * doc/error.texi: mention that main() fns must set program_name
9035         when progname is used.
9036
9037 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
9038
9039         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
9040         WCTYPE_H is empty, for the benefit of builds from non-distclean
9041         directories.  Problem reported by Eric Blake in
9042         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
9043
9044 2007-01-08  Bruno Haible  <bruno@clisp.org>
9045
9046         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
9047         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
9048         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
9049         PROVIDE_CANONICALIZE_FILENAME_MODE.
9050         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
9051
9052 2007-01-08  Bruno Haible  <bruno@clisp.org>
9053
9054         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
9055         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
9056         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
9057         * lib/fts.c: Likewise.
9058         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
9059
9060 2006-12-25  Bruno Haible  <bruno@clisp.org>
9061
9062         * modules/utf8-ucs4-safe: New file.
9063         * lib/utf8-ucs4-safe.h: New file.
9064         * lib/unistr/utf8-ucs4-safe.c: New file.
9065
9066         * modules/utf16-ucs4-safe: New file.
9067         * lib/utf16-ucs4-safe.h: New file.
9068         * lib/unistr/utf16-ucs4-safe.c: New file.
9069
9070         * MODULES.html.sh (Unicode string functions): Add the new modules.
9071
9072 2007-01-08  Bruno Haible  <bruno@clisp.org>
9073
9074         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
9075         (Depends-on): Add unitypes.
9076         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
9077         (u8_mbtouc_aux): Move out to separate file.
9078         (u8_mbtouc): Use ucs4_t, uint8_t types.
9079         * lib/unistr/utf8-ucs4.c: New file.
9080
9081         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
9082         (Depends-on): Add unitypes.
9083         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
9084         (u16_mbtouc_aux): Move out to separate file.
9085         (u16_mbtouc): Use ucs4_t, uint16_t types.
9086         * lib/unistr/utf16-ucs4.c: New file.
9087
9088         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
9089         (Depends-on): Add unitypes.
9090         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
9091         (u8_uctomb_aux): Move out to separate file.
9092         (u8_uctomb): Use ucs4_t, uint8_t types.
9093         * lib/unistr/ucs4-utf8.c: New file.
9094
9095         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
9096         (Depends-on): Add unitypes.
9097         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
9098         (u16_uctomb_aux): Move out to separate file.
9099         (u16_uctomb): Use ucs4_t, uint16_t types.
9100         * lib/unistr/ucs4-utf16.c: New file.
9101
9102 2006-12-25  Bruno Haible  <bruno@clisp.org>
9103
9104         * modules/unitypes: New file.
9105         * lib/unitypes.h: New file.
9106         * MODULES.html.sh (func_all_modules): New section "Unicode string
9107         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
9108         this section. Add unitypes.
9109
9110 2007-01-08  Bruno Haible  <bruno@clisp.org>
9111
9112         Avoid variable names that conflict with those from libtool.
9113         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
9114         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
9115         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
9116         library_names_spec to acl_library_names_spec, hardcode_* to
9117         acl_hardcode_*.
9118         Reported by Ralf Wildenhues.
9119
9120 2007-01-08  Bruno Haible  <bruno@clisp.org>
9121
9122         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
9123         definition.
9124         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
9125         definition.
9126         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
9127         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
9128         definition.
9129         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
9130         definition.
9131         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
9132         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
9133         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
9134         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
9135         definition.
9136         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
9137         definition.
9138         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
9139         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
9140         GC_USE_<algorithm>.
9141         * lib/gc-libgcrypt.c: Likewise.
9142         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
9143         * modules/gc-arctwo (configure.ac): Likewise.
9144         * modules/gc-des (configure.ac): Likewise.
9145         * modules/gc-hmac-md5 (configure.ac): Likewise.
9146         * modules/gc-hmac-sha1 (configure.ac): Likewise.
9147         * modules/gc-md2 (configure.ac): Likewise.
9148         * modules/gc-md4 (configure.ac): Likewise.
9149         * modules/gc-md5 (configure.ac): Likewise.
9150         * modules/gc-random (configure.ac): Likewise.
9151         * modules/gc-rijndael (configure.ac): Likewise.
9152         * modules/gc-sha1 (configure.ac): Likewise.
9153
9154 2007-01-08  Bruno Haible  <bruno@clisp.org>
9155
9156         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
9157         macro definition.
9158         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
9159         definition.
9160         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
9161         definition.
9162         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
9163         * modules/fcntl-safer (configure.ac): Likewise.
9164         * modules/fopen-safer (configure.ac): Likewise.
9165         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
9166         GNULIB_FWRITEERROR macro definition.
9167
9168 2007-01-08  Bruno Haible  <bruno@clisp.org>
9169
9170         * m4/gnulib-common.m4: New file.
9171         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
9172         (func_get_filelist): Add m4/gnulib-common.m4.
9173
9174 2007-01-08  Bruno Haible  <bruno@clisp.org>
9175
9176         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
9177         command.
9178
9179 2007-01-08  Jim Meyering  <jim@meyering.net>
9180
9181         Use a more robust test for a "can't happen" condition.
9182         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
9183         narrowed the st_size value.  Presuming the "can't happen" condition
9184         is true, that narrowing could conceivably convert an invalid st_size
9185         value into a valid one.  Instead, use a change based on Matthew
9186         Woehlke's original patch.
9187
9188         Slight readability improvement: use an assert-like macro
9189         in place of literal "abort ()" uses.
9190         * lib/fts.c (fts_assert): Define.
9191         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
9192         Use this macro instead of a bare 'abort'.
9193
9194 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
9195
9196         Don't worry about using IRIX 5.3's wctype.h broken definitions;
9197         simply work around them.
9198         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
9199         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
9200         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
9201         declaring.
9202         Don't bother to define as macros, since the standard doesn't require it.
9203         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
9204         longer worry about IRIX 5.3.
9205         (HAVE_WCTYPE_CTMP_BUG): Remove.
9206
9207 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
9208
9209         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
9210         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
9211         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
9212         Problems reported by Georg Schwarz for IRIX 5.3.
9213
9214         * gnulib-tool (autoconf_minversion): Take the maximum version number
9215         found, not the minimum.  Problem reported by James Youngman.
9216
9217 2007-01-03  Karl Berry  <karl@gnu.org>
9218
9219         * doc/error.texi: new file, explaining interaction with progname.
9220         * doc/gnulib.texi: include it.  Update copyright.
9221
9222 2007-01-03  Simon Josefsson  <simon@josefsson.org>
9223
9224         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
9225         AC_CANONICAL_HOST, to improve autobuild outputs.
9226
9227 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
9228             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
9229
9230         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
9231         sockets, server sockets, and other file descriptors.  Count errors
9232         to compute the return value.  Reorder the code a bit to be easier
9233         to follow.  Don't set event bits that were not requested (except
9234         POLLERR and POLLHUP).
9235
9236 2007-01-01  Bruno Haible  <bruno@clisp.org>
9237
9238         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
9239
9240 2007-01-03  Jim Meyering  <jim@meyering.net>
9241
9242         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
9243
9244 2007-01-02  Bruno Haible  <bruno@clisp.org>
9245
9246         * modules/settime (Include): Require timespec.h.
9247         * modules/nanosleep (Include): Likewise.
9248
9249 2007-01-01  Bruno Haible  <bruno@clisp.org>
9250
9251         * gnulib-tool (func_emit_copyright_notice): Bump year.
9252         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
9253
9254 2007-01-01  Bruno Haible  <bruno@clisp.org>
9255
9256         Improve support for OpenBSD.
9257         * build-aux/config.rpath (libname_spec): Export.
9258         (library_names_spec): New variable. Export.
9259         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
9260         library_names_spec from the config.rpath output. Locate shared library
9261         through the name pattern in library_names_spec.
9262
9263 2007-01-01  Eric Blake  <ebb9@byu.net>
9264
9265         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
9266
9267 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
9268
9269         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
9270         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
9271         assume the C locale, and avoid an "eval" that could cause trouble.
9272         Problem with SORT reported by Bob Proulx.
9273
9274         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
9275         Define.  Trivial patch from Henning Nielsen Lund, originally
9276         sent to bug-grep@gnu.org today.
9277
9278 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
9279
9280         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
9281         struct stat.  Problem reported by Henning Nielsen Lund.
9282         * lib/acl.c: Include acl.h first, to check interface.  Don't
9283         bother to include sys/types.h and sys/stat.h again.
9284
9285 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
9286
9287         Import the following change from libc; problem reported by
9288         Sven Verdoolaege.
9289
9290         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
9291
9292         [BZ #1373]
9293         * lib/argp.h: Remove __NTH for __argp_usage inline function.
9294
9295 2006-12-28  Jim Meyering  <jim@meyering.net>
9296
9297         * build-aux/announce-gen: Do not assume that the package
9298         builds any of tar.gz, tar.bz2, and .xdelta files.
9299         Suggestion from Simon Josefsson.
9300
9301 2006-12-28  Simon Josefsson  <simon@josefsson.org>
9302
9303         * modules/announce-gen: New file.
9304
9305 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
9306
9307         * lib/mbchar.h: Just include <wctype.h>; the wctype module
9308         handles its gotchas now.
9309         * lib/mbswidth.c: Likewise.
9310         * lib/wcwidth.h: Likewise.
9311         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
9312         and iswcntrl; the wctype module does this stuff now.
9313         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
9314         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9315         * modules/mbchar (Depends-on): Add wctype.
9316         * modules/mbswidth (Depends-on): Likewise.
9317         * modules/wcwidth (Depends-on): Likewise.
9318
9319 2006-12-27  Eric Blake  <ebb9@byu.net>
9320
9321         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
9322         module uses more than what <wctype.h> is required to provide.
9323
9324 2006-12-26  Eric Blake  <ebb9@byu.net>
9325
9326         * gnulib-tool (sed_extract_prog): Avoid space-tab.
9327
9328 2006-12-26  Eric Blake  <ebb9@byu.net>
9329
9330         * modules/absolute-header: New module.
9331         * modules/fcntl (Depends-on): Depend on it.
9332         * modules/inttypes (Depends-on): Likewise.
9333         * modules/stdint (Depends-on): Likewise.
9334         * modules/sys_stat (Depends-on): Likewise.
9335         * modules/wctype (Depends-on): Likewise.
9336         * MODULES.html.sh (Support for building libraries and
9337         executables): Document it.
9338
9339 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
9340
9341         * gnulib-tool (SED): Remove, undoing previous change.
9342         The problem was that it broke coreutils on Solaris, because
9343         "sed --posix" leaked into a makefile.
9344         (sed): New alias, if 'alias' and GNU sed.
9345
9346 2006-12-24  Jim Meyering  <jim@meyering.net>
9347
9348         Work around an fchownat bug in glibc-2.4:
9349         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
9350         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
9351         in spite of the -P option.
9352         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
9353         New macros.
9354         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
9355         * modules/openat (Files): Add lib/fchownat.c.
9356         * lib/openat.c (fchownat): Don't define here.  Move to...
9357         * lib/fchownat.c: ...this new file.
9358
9359 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
9360
9361         Fix bug reported by Bruno Haible in
9362         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
9363         where quotearg.c didn't compile on Mac OS X 10.2 because it
9364         lacks <wchar.h> and wint_t.
9365         * lib/wctype_.h (__wctype_wint_t): New type.
9366         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
9367         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
9368         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
9369         Arg is now of type __wctype_wint_t, not wint_t.
9370         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
9371         substitute HAVE_WINT_T.
9372         * modules/wctype (Files): Add m4/wint_t.m4.
9373         (wctype.h): Substitute HAVE_WINT_T.
9374
9375 2006-12-23  Bruno Haible  <bruno@clisp.org>
9376
9377         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
9378
9379 2006-12-23  Bruno Haible  <bruno@clisp.org>
9380
9381         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
9382         S_ISLNK.
9383         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
9384         mingw.
9385
9386 2006-12-22  Bruno Haible  <bruno@clisp.org>
9387
9388         * lib/copy-file.c: Include acl.h.
9389         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
9390         Close the file descriptors only after being done with copy_acl.
9391         * modules/copy-file (Depends-on): Add acl.
9392
9393 2006-12-22  Bruno Haible  <bruno@clisp.org>
9394
9395         * gnulib-tool (SED): New variable.
9396         Use $SED instead of sed everywhere.
9397
9398 2006-12-22  Bruno Haible  <bruno@clisp.org>
9399
9400         * modules/no-c++: New file.
9401         * m4/no-c++.m4: New file.
9402         * MODULES.html.sh (Support for building libraries and executables):
9403         Add no-c++.
9404
9405 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
9406
9407         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
9408         Include <limits.h>, and use its INT_MAX to rewrite the
9409         j loop so that it does not overflow 'int'.  Problem reported by
9410         Ralf Wildenhues in
9411         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
9412         Play it safe by shifting left by 1 rather than multiplying by 2,
9413         as GCC is less likely to optimize this away when the value
9414         is signed (when it assumes overflow leads to undefined behavior).
9415         Also, don't assume time_t uses two's complement.
9416
9417 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
9418
9419         * MODULES.html.sh: New module wctype.
9420         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
9421         * lib/fnmatch.c: Don't bother to include <wchar.h> before
9422         <wctype.h>, since the new wctype module should fix this.
9423         * lib/quotearg.c: Include <wctype.h> unconditionally, since
9424         the wctype module should arrange for it.
9425         * lib/regex_internal.h: Likewise.
9426         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
9427         since the wctype module should handle this now.
9428         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
9429         * modules/fnmatch (Depends-on): Add wctype.
9430         * modules/quotearg (Depends-on): Likewise.
9431         * modules/regex (Depends-on): Likewise.
9432
9433 2006-12-19  Bruno Haible  <bruno@clisp.org>
9434
9435         * lib/strdup.h [C++]: Wrap definitions in extern "C".
9436         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
9437
9438 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9439
9440         * modules/savewd (Depends-on): Fix dependency on fcntl.
9441
9442 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
9443
9444         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
9445         conforms to C99, rather than relying on the user's environment
9446         setting of STDINT_H.
9447
9448 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
9449         and Eric Blake  <ebb9@byu.net>
9450
9451         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
9452         This is more consistent with the other defines here.
9453         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
9454         Port to z/OS.  Problem reported by Paul Gilmartin.
9455         Change local vars to use gl_ prefix rather than ac_.
9456         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
9457         with other defines.
9458         * modules/double-slash-root: New module.
9459         * modules/dirname (Files): Remove m4/double-slash-root.m4.
9460         (Depends-on): Add double-slash-root.
9461         * MODULES.html.sh (File system functions): Mention new module.
9462
9463 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
9464
9465         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
9466         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
9467         This is for the benefit of gzip, which doesn't do i18n.
9468
9469 2006-12-12  Jim Meyering  <jim@meyering.net>
9470
9471         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
9472         Reported by Andreas Schwab <schwab@suse.de>.
9473
9474 2006-12-12  Bruno Haible  <bruno@clisp.org>
9475
9476         Merge these changes.
9477         2006-09-05  Bruno Haible  <bruno@clisp.org>
9478         * lib/iconvme.c (iconv_string): No need to save and restore errno when
9479         iconv_alloc succeeded.
9480         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
9481         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
9482         test for " && dest " at the end - dest is always != NULL there. Call
9483         iconv with 4xNULL arguments initially, to reset the state. Call iconv
9484         with 2xNULL arguments, also to flush the state storage. Handle the
9485         IRIX iconv behaviour. Realloc the final result, to throw away unused
9486         memory.
9487
9488 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
9489
9490         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
9491         and fchmodat unconditionally, since glibc 2.4 has them.
9492         Problem reported by Arkadiusz Miskiewicz.
9493
9494 2006-12-10  Bruno Haible  <bruno@clisp.org>
9495
9496         * gnulib-tool (func_import): Show the include files only for those
9497         modules that are copied and specified.
9498         Reported by Karl Berry.
9499
9500 2006-12-08  Jim Meyering  <jim@meyering.net>
9501
9502         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
9503         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
9504
9505         * build-aux/announce-gen: Add two new options, both optional:
9506         --bootstrap-tools=TOOL_LIST
9507               a comma-separated list of tools, e.g.,
9508               autoconf,automake,bison,gnulib
9509         --gnulib-snapshot-date=DATE
9510               if gnulib is in the bootstrap tool list,
9511               then report this as the snapshot date.
9512               If not specified, use the current date/time.
9513               If you specify a date here, be sure it's UTC.
9514
9515 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9516
9517         * tests/test-argp-2.sh: Fix test to match actual output.
9518         (func_compare): Fix sed script to be portable.
9519
9520 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
9521
9522         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
9523         workaround for this case.  It is not autoconfigured now; offhand
9524         it's hard to see how to autoconfigure it.
9525
9526 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
9527
9528         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
9529         a directory that is about to be chowned.  Such a directory's
9530         initial file permissions should permit the owner only and this
9531         should not be changed until after the chown, since the group and
9532         other bits would be incorrect if they granted permission before
9533         the chown.
9534
9535         Fix porting problem for iswctype reported by Georg Schwarz in:
9536         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
9537         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
9538         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
9539         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
9540         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9541
9542 2006-12-03  Jim Meyering  <jim@meyering.net>
9543
9544         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
9545         p->fts_statp may not yet be defined.
9546         (fts_read): Instead, set it in the caller, once p->fts_statp is
9547         sure to be defined, and corresponds to a top-level directory.
9548         This bug made du -x fail.  Here's the coreutils test case:
9549         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
9550         Reported by Mike Frysinger.
9551
9552 2006-12-01  Jim Meyering  <jim@meyering.net>
9553
9554         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
9555         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
9556         Reported by Simon Josefsson.
9557
9558 2006-11-30  Jim Meyering  <jim@meyering.net>
9559
9560         * m4/warning.m4: Use the all-permissive copyright notice
9561         recommended by RMS (rather than LGPL).
9562         * m4/vararrays.m4: Likewise.
9563         * m4/flexmember.m4: Likewise.
9564
9565 2006-11-29  Bruno Haible  <bruno@clisp.org>
9566
9567         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
9568         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
9569         using +=.
9570         Reported by Simon Josefsson <simon@josefsson.org>.
9571
9572 2006-11-28  James Youngman <jay@gnu.org>
9573
9574         * README: Advise users that they might find the bug-gnulib@gnu.org
9575         and autotools-announce@gnu.org mailing lists useful.
9576
9577 2006-11-28  Bruno Haible  <bruno@clisp.org>
9578
9579         * m4/ptrdiff_max.m4: Remove file.
9580
9581 2006-11-21  Bruno Haible  <bruno@clisp.org>
9582
9583         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
9584         _AC_COMPUTE_INT.
9585         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
9586         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
9587         _AC_COMPUTE_INT.
9588         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
9589         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
9590         _AC_COMPUTE_INT.
9591         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
9592
9593 2006-11-28  Jim Meyering  <jim@meyering.net>
9594
9595         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
9596         warning from "gcc -Wshadow" about shadowing the builtin.
9597
9598 2006-11-27  Bruno Haible  <bruno@clisp.org>
9599
9600         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
9601         _AC_COMPUTE_INT.
9602         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
9603
9604 2006-11-27  Bruno Haible  <bruno@clisp.org>
9605             Paul Eggert  <eggert@cs.ucla.edu>
9606
9607         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
9608
9609 2006-11-26  Bruno Haible  <bruno@clisp.org>
9610
9611         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
9612         noinst_LTLIBRARIES.
9613
9614 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
9615             Bruno Haible  <bruno@clisp.org>
9616
9617         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
9618         if compiling with "gcc -ansi".
9619
9620 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
9621
9622         Fix some incompatibilities with gcc -ansi -pedantic.
9623         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
9624         if compiling pedantically with GCC, unless it's C99 or later.
9625         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
9626         it mishandles gcc -ansi -pedantic as well.
9627         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
9628         if gcc -pedantic.
9629         * lib/regexec.c (check_node_accept_bytes): Don't use auto
9630         initializers for struct if -pedantic, unless it's C99 or later.
9631
9632 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
9633
9634         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
9635         Don't close an fd more than once. Identical atimes indicate
9636         success, not failure.
9637
9638 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
9639
9640         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
9641
9642 2006-11-23  Jim Meyering  <jim@meyering.net>
9643
9644         * build-aux/announce-gen: New file.  From coreutils.
9645
9646 2006-11-22  Jim Meyering  <jim@meyering.net>
9647
9648         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
9649         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
9650         (fts_read): Use a temporary to narrow the overused st_size member
9651         before using it in a switch statement.  Reported by Matthew Woehlke.
9652
9653         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
9654         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
9655
9656 2006-11-20  Bruno Haible  <bruno@clisp.org>
9657
9658         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
9659         changequote instead of pairs of brackets.
9660         Reported by Andreas Schwab <schwab@suse.de>.
9661
9662 2006-11-21  Jim Meyering  <jim@meyering.net>
9663
9664         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
9665         so as to remain compatible with older compilers.
9666         Patch from Michael Deutschmann.
9667
9668 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
9669
9670         * MODULES.html.sh (File system functions): Add openat.
9671
9672         * lib/openat.h (rpl_fstatat): New macro, if
9673         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
9674         (fstatat): Define to rpl_fstatat under the same conditions,
9675         unless COMPILING_FSTATAT.
9676         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
9677         seems to have the bug.
9678         * lib/fstatat.c: New file.
9679         * modules/openat (Files): Add it.
9680
9681 2006-11-20  Bruno Haible  <bruno@clisp.org>
9682
9683         * Makefile: New file.
9684
9685 2006-11-20  Jim Meyering  <jim@meyering.net>
9686
9687         The beginnings of syntax-related checks for gnulib.
9688         * lib/Makefile: New file.
9689         * lib/t-idcache: New script.  Ensure that the two halves of
9690         idcache.c stay in sync.
9691
9692         * lib/idcache.c: Adjust comments in user- and group- portions to
9693         be more accurate, and to be consistent with one another.
9694
9695 2006-11-20  Jim Meyering  <jim@meyering.net>
9696
9697         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
9698         continue using the flexible array member (thus, this module performs
9699         half as many malloc calls), with the addition that...
9700         (getgroup, getuser): Consistently record a non-match via an empty
9701         "name" string, and map an empty string match to a NULL return value.
9702         * modules/idcache (Depends-on): Re-add flexmember.
9703
9704         * lib/idcache.c (getuser): Remove all uses of the register keyword.
9705         (getuidbyname, getgroup, getgidbyname): Likewise.
9706
9707         Use cleaner syntax: NULL rather than 0.
9708         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
9709
9710 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
9711
9712         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
9713         It mishandled the case where the group was missing.
9714         Problem reported by Greg Schafer.
9715         * modules/idcache: Likewise.
9716
9717 2006-11-18  Jim Meyering  <jim@meyering.net>
9718
9719         * check-module (%exempt_header): Add exception for some
9720         conditionally-included headers.
9721
9722         * modules/i-ring (Depends-on): Add verify.
9723         (License): Change to LGPL.
9724
9725 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
9726
9727         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
9728         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
9729         and inttostr.h.  Use snprintf rather than uinttostr, so that
9730         LGPLed code doesn't depend on GPLed.
9731
9732 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
9733
9734         * modules/inline (License): Change from GPL to LGPL.
9735
9736 2006-11-17  Jim Meyering  <jim@meyering.net>
9737
9738         * modules/d-type (License): Switch to LGPL.
9739
9740 2006-11-15  Bruno Haible  <bruno@clisp.org>
9741
9742         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
9743
9744 2006-11-15  Eric Blake  <ebb9@byu.net>
9745
9746         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
9747         the module dependency.
9748
9749 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
9750             Bruno Haible  <bruno@clisp.org>
9751
9752         * gnulib-tool (func_create_testdir): Add license consistency check.
9753
9754 2006-11-15  Eric Blake  <ebb9@byu.net>
9755
9756         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
9757         random "(cached)" in configure output.
9758
9759 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9760
9761         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
9762         test for conforming inttypes.h is both announced and cached.
9763
9764         * MODULES.html.sh (seen_modules, seen_files): New variables.
9765         (func_module): Rewrite to use a few less gnulib-tool and sed
9766         invocations.  Avoid a couple of quadratic algorithms for ...
9767         (missed_modules, missed_files): ... these, with ...
9768         (func_append, func_tmpdir): ... these new functions, from
9769         gnulib-tool.  Analogously, install traps for cleanup.
9770
9771         * tests/test-gc.c (main): Remove unused variables.
9772         * tests/test-read-file.c: Include stdlib.h, for 'free'.
9773
9774 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
9775
9776         * modules/inttostr (License): Change to LGPL.
9777
9778 2006-11-14  Eric Blake  <ebb9@byu.net>
9779
9780         * modules/tempname (License): Change to LGPL.
9781
9782 2006-11-14  Eric Blake  <ebb9@byu.net>
9783
9784         * doc/functions.texi (Function Portability): *printf functions on
9785         Cygwin now understand all POSIX size specifiers.
9786
9787 2006-11-14  Bruno Haible  <bruno@clisp.org>
9788
9789         * modules/c-ctype (License): Change to LGPL.
9790
9791 2006-11-12  Bruno Haible  <bruno@clisp.org>
9792
9793         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
9794         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
9795         for GNOME libraries, for which the include files are installed in
9796         subdirectories of $prefix/include.
9797
9798 2006-11-12  Bruno Haible  <bruno@clisp.org>
9799
9800         * m4/lib-link.m4: Require at least autoconf-2.54.
9801         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
9802         name to underscores for the --with option.
9803
9804 2006-11-13  Bruno Haible  <bruno@clisp.org>
9805
9806         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
9807         the tests directory.
9808         Reported by Ralf Wildenhues.
9809
9810 2006-11-13  Bruno Haible  <bruno@clisp.org>
9811
9812         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
9813         (func_emit_initmacro_end): Undo the override here.
9814         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
9815         Works around the famous automake error in coreutils.
9816
9817 2006-11-13  Eric Blake  <ebb9@byu.net>
9818
9819         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
9820         element, not its node.
9821
9822 2006-11-12  Bruno Haible  <bruno@clisp.org>
9823
9824         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
9825         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
9826
9827 2006-11-12  Bruno Haible  <bruno@clisp.org>
9828
9829         * gnulib-tool: New option --local-symlink.
9830         (func_usage): Document it.
9831         (lsymbolic): New variable.
9832         (func_import, func_create_testdir): If --symlink was not specified,
9833         test whether --local-symlink was specified and the file comes from
9834         the local_gnulib_dir.
9835
9836 2006-11-12  Bruno Haible  <bruno@clisp.org>
9837
9838         * gnulib-tool (func_ln): New function.
9839         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
9840
9841 2006-11-12  Bruno Haible  <bruno@clisp.org>
9842
9843         Finish support for source files in subdirectories.
9844         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
9845         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
9846         AUTOMAKE_OPTIONS.
9847         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
9848
9849 2006-11-12  Bruno Haible  <bruno@clisp.org>
9850
9851         * gnulib-tool (func_get_automake_snippet): Synthesize also an
9852         EXTRA_lib_SOURCES augmentation.
9853         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
9854
9855 2006-11-12  Jim Meyering  <jim@meyering.net>
9856
9857         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
9858         file descriptors.  This also averts a failure on systems with
9859         native openat support when a traversed directory lacks "x" access.
9860         * lib/fts_.h: Include "i-ring.h"
9861         (struct FTS) [fts_fd_ring]: New member.
9862         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
9863         (FCHDIR): Add parentheses.
9864         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
9865         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
9866         When descending, rather than simply closing the previous
9867         fts_cwd_fd value, push that file descriptor onto the ring.
9868         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
9869         (fts_open): Initialize the new fd_ring member.
9870         (fts_close): Clear the ring.
9871         (fts_safe_changedir): When possible, use our new fd_ring to skip
9872         the diropen and fstat and dev/ino comparison that would normally
9873         accompany a virtual `chdir ("..")'.
9874
9875         * modules/fts (Depends-on): Add i-ring.
9876         * modules/i-ring: New module.
9877         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
9878         * m4/i-ring.m4: New file.
9879
9880 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9881
9882         * gnulib-tool (func_create_testdir): Fix replacement of
9883         `build-aux' in configure.ac.  Run autotools in gltests
9884         subdirectory.
9885         (func_create_testdir, func_create_megatestdir, test): There is
9886         no need for '--force' in most autotool invocations in a new
9887         tree.  Actually fail the whole test if any of the tools, or the
9888         configure or make stages fail.
9889
9890         Sync from Automake.
9891         * build-aux/gnupload: Revert last change.  Add pointer to upload
9892         instructions of the GNU Maintenance Instructions.
9893         Suggestion by Karl Berry.
9894
9895 2006-11-10  Jim Meyering  <jim@meyering.net>
9896
9897         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
9898
9899 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
9900
9901         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
9902         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
9903         (bind_textdomain_codeset) [! ENABLE_NLS]:
9904         Evaluate all the arguments.  That way, callers get compatible behavior
9905         if the arguments have side effects.  Also, it avoids some GCC
9906         diagnostics in some cases; Joel E. Denny reported problems when Bison
9907         was configured with --enable-gcc-warnigs.
9908
9909 2006-11-10  Jim Meyering  <jim@meyering.net>
9910
9911         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
9912         relevant options in CFLAGS (like -O, -fno-inline) are taken into
9913         account.
9914
9915 2006-11-10  Jim Meyering  <jim@meyering.net>
9916
9917         * modules/inline: New file/module.
9918         * modules/xalloc (Files): Remove m4/inline.m4.
9919         (Depends-on): Add inline, instead.
9920         * modules/oset: Likewise.
9921         * modules/list: Likewise.
9922
9923 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
9924
9925         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
9926         Problem reported by Matthew Woehlke.
9927
9928 2006-11-09  Bruno Haible  <bruno@clisp.org>
9929
9930         * lib/tempname.c (gen_tempname): Remove variant that invokes
9931         __gen_tempname.
9932         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
9933         __gen_tempname.
9934
9935 2006-11-08  Bruno Haible  <bruno@clisp.org>
9936
9937         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
9938         to 'yes' instead of 'cross-compiling'.
9939
9940 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
9941
9942         * lib/quotearg.h (quotearg_free): New decl.
9943         * lib/quotearg.c (quotearg_free): New function.
9944         (slot0, nslots, slotvec0, slotvec):
9945         Now file-scope so that quotearg_free can get at them.
9946
9947 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9948
9949         Sync from Automake.
9950         * build-aux/gnupload: Add missing 'gnu' to example URL.
9951         Report by Karl Berry.
9952
9953 2006-11-08  Bruno Haible  <bruno@clisp.org>
9954
9955         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
9956         Suggested by Paul Eggert.
9957
9958 2006-11-08  Jim Meyering  <jim@meyering.net>
9959
9960         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
9961         It's already included if !_LIBC.
9962         (fts_safe_changedir): Add a comment.
9963
9964 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
9965
9966         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
9967         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
9968         Matthew Woehlke.
9969
9970         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
9971         definitions up, to avoid colliding with change below.
9972         (static_inline) [HAVE_INLINE]: New macro.
9973         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
9974         Provide extern decls when !HAVE_INLINE.  Do not define unless
9975         static_inline is defined, either by us or by xmalloc.c.  Use
9976         static_inline rather than static inline.
9977         (XCALLOC): Optimize sizeof(T) = 1 case.
9978         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
9979
9980 2006-11-07  Bruno Haible  <bruno@clisp.org>
9981
9982         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
9983         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
9984         AC_C_INLINE.
9985         * modules/xalloc (Files): Add m4/inline.m4.
9986
9987 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9988
9989         * README: Fix typo.
9990         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
9991         (Miscellanous Notes): ...from this.
9992
9993 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
9994
9995         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
9996         Mention that offsetof should be used instead of sizeof.
9997         From Bruno Haible.
9998
9999 2006-11-07  Bruno Haible  <bruno@clisp.org>
10000
10001         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
10002
10003 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
10004
10005         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
10006         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
10007         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
10008         (gl_tree_add_before, gl_tree_add_after):
10009         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
10010         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
10011         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
10012         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
10013         (gl_linked_add_after, gl_linked_add_at): Likewise.
10014         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
10015         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
10016         (gl_tree_add_before, gl_tree_add_after): Likewise.
10017         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
10018         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
10019         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
10020
10021 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10022
10023         * lib/gl_oset.h: Use C comment style, not C++ comment style.
10024
10025 2006-11-06  Bruno Haible  <bruno@clisp.org>
10026
10027         * m4/inline.m4: New file.
10028         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
10029         * modules/list (Files): Add m4/inline.m4.
10030         * modules/oset (Files): Likewise.
10031
10032 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
10033
10034         * lib/idcache.c: Include <stddef.h>, for offsetof.
10035         (struct userid.name): Change from char * to a flexible array member.
10036         All uses changed.
10037         * modules/idcache (Depends-on): Add flexmember.
10038
10039         * MODULES.html.sh (Core language properties): New module flexmember.
10040         * modules/flexmember, m4/flexmember.m4: New files.
10041
10042         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
10043         inline functions that are identical with the old xnmalloc_inline,
10044         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
10045         that we can avoid some unnecessary integer multiplications and
10046         divisions in the common case where the element size is known at
10047         compile time.
10048         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
10049         needed.
10050         (xnboundedmalloc): Remove.
10051         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
10052         arguments, for consistency with rest of this header.
10053         (xcharalloc): Rewrite using XNMALLOC.
10054         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
10055         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
10056         versions have been moved to lib/xalloc.h and renamed to be the
10057         non-*_inline versions.
10058         (xmalloc, xrealloc): Implement without reference to the xnmalloc
10059         and xnrealloc functions, since those functions are now inline and
10060         now call us.
10061         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
10062         renaming described above.
10063         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
10064         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
10065         captures the dependency in AC_C_INLINE.
10066
10067         New module canonicalize-lgpl, proposed by Charles Wilson in
10068         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
10069         with a few small changes afterwards.
10070         * MODULES.html.sh (File system functions): New module
10071         canonicalize-lgpl.
10072         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
10073         and canonicalize_file_name.
10074         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
10075         * modules/canonicalize-lgpl: New files.
10076
10077 2006-11-05  Bruno Haible  <bruno@clisp.org>
10078
10079         * gnulib-tool (func_import, func_create_testdir): Create directories
10080         also for files in subdirectories of lib/.
10081
10082 2006-11-05  Bruno Haible  <bruno@clisp.org>
10083
10084         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
10085         ANSI C compliant.
10086
10087 2006-11-03  Bruno Haible  <bruno@clisp.org>
10088
10089         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
10090         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
10091         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
10092         (xnboundedmalloc): New inline function.
10093         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
10094         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
10095         xmalloc.
10096         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
10097         xmalloc.
10098         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
10099         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
10100         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
10101         xmalloc.
10102         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
10103         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
10104         xmalloc.
10105         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
10106         gl_tree_add_after): Use XMALLOC instead of xmalloc.
10107         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
10108         xmalloc.
10109         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
10110         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
10111         gl_tree_add_after): Use XMALLOC instead of xmalloc.
10112         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
10113         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
10114         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
10115         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
10116
10117 2006-11-03  Bruno Haible  <bruno@clisp.org>
10118
10119         * lib/c-ctype.h [C++]: Define functions without name mangling.
10120         * lib/fwriteerror.h [C++]: Likewise.
10121         * lib/gcd.h [C++]: Likewise.
10122         * lib/linebreak.h [C++]: Likewise.
10123
10124 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
10125
10126         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
10127         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
10128         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
10129         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
10130         Check for functions and headers just once.
10131         Check for declaration of canonicalize_file_name.
10132         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
10133
10134 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
10135
10136         * gnulib-tool (func_import): Fix typo in actioncmd.
10137
10138 2006-11-02  Bruno Haible  <bruno@clisp.org>
10139
10140         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
10141         newline sequence in the Makefile.am snippet as a space, like "make"
10142         does.
10143         Reported by Roger Persson <perrog@gmail.com>.
10144
10145 2006-11-01  Bruno Haible  <bruno@clisp.org>
10146
10147         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
10148         already declared in <string.h>.
10149         * lib/strcase.h (strncasecmp): Don't declare it if yes.
10150
10151 2006-11-01  Bruno Haible  <bruno@clisp.org>
10152
10153         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
10154         * lib/strcase.h: Include <string.h>.
10155         (strcasecmp): Define to rpl_strcasecmp here.
10156
10157 2006-11-01  Bruno Haible  <bruno@clisp.org>
10158
10159         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
10160
10161 2006-11-01  Eric Blake  <ebb9@byu.net>
10162
10163         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
10164
10165         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
10166
10167 2006-10-29  Bruno Haible  <bruno@clisp.org>
10168
10169         Make it compile in C++ mode.
10170         * lib/full-write.c (full_rw): Add a cast.
10171
10172 2006-11-01  Bruno Haible  <bruno@clisp.org>
10173
10174         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
10175         be POSIX compliant.
10176         Reported by Roger Persson <perrog@gmail.com>.
10177
10178 2006-11-01  Eric Blake  <ebb9@byu.net>
10179
10180         * lib/getopt_.h: Fix comments.
10181
10182 2006-10-31  Eric Blake  <ebb9@byu.net>
10183
10184         * modules/tmpdir (Depends-on): Add sys_stat.
10185         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
10186         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
10187         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
10188         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
10189         tempname.
10190
10191 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
10192
10193         Avoid some C++ diagnostics reported by Bruno Haible.
10194         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
10195         xmalloc.
10196         (quotearg_alloc): Use xcharalloc rather than xmalloc.
10197         (struct slotvec): Move to top level.
10198         (quotearg_n_options): Rewrite to avoid xmalloc.
10199         * lib/xalloc.h (xcharalloc): New function.
10200         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
10201         [defined __cplusplus]: Add function template that provides result
10202         type propagation.  This part of the change is from Bruno Haible.
10203
10204 2006-10-29  Bruno Haible  <bruno@clisp.org>
10205
10206         Make it compile in C++ mode.
10207         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
10208         * lib/strnlen1.c (strnlen1): Cast memchr result.
10209         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
10210         * lib/clean-temp.c (string_equals, string_hash): Add casts.
10211         (create_temp_dir): Rename local variable 'template'.
10212         (compile_csharp_using_sscli): Add cast.
10213         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
10214         * lib/findprog.c (find_in_path): Likewise.
10215         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
10216         * lib/wait-process.c (register_slave_subprocess): Likewise.
10217
10218 2006-10-22  Bruno Haible  <bruno@clisp.org>
10219
10220         * modules/tsearch: New file.
10221         * lib/tsearch.h: New file.
10222         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
10223         * m4/tsearch.m4: New file.
10224         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
10225
10226 2006-10-29  Eric Blake  <ebb9@byu.net>
10227
10228         * lib/arcfour.c: Assume config.h.
10229         * lib/arctwo.c: Likewise.
10230         * lib/base64.c: Likewise.
10231         * lib/check-version.c: Likewise.
10232         * lib/crc.c: Likewise.
10233         * lib/des.c: Likewise.
10234         * lib/gc-gnulib.c: Likewise.
10235         * lib/gc-libgcrypt.c: Likewise.
10236         * lib/gc-pbkdf2-sha1.c: Likewise.
10237         * lib/getaddrinfo.c: Likewise.
10238         * lib/getdelim.c: Likewise.
10239         * lib/getline.c: Likewise.
10240         * lib/hmac-md5.c: Likewise.
10241         * lib/hmac-sha1.c: Likewise.
10242         * lib/iconvme.c: Likewise.
10243         * lib/md2.c: Likewise.
10244         * lib/md4.c: Likewise.
10245         * lib/memxor.c: Likewise.
10246         * lib/read-file.c: Likewise.
10247         * lib/readline.c: Likewise.
10248         * lib/rijndael-alg-fst.c: Likewise.
10249         * lib/rijndael-api-fst.c: Likewise.
10250         * lib/xgetdomainname.c: Likewise.
10251
10252 2006-10-28  Eric Blake  <ebb9@byu.net>
10253
10254         * lib/xstrndup.c: Assume config.h.
10255
10256 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
10257
10258         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
10259         stat-macros.h is now for our own macros, whereas stat_h is for
10260         macros in the <sys/stat.h> name space.
10261         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
10262         (STAT_MACROS_H): Remove.
10263         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
10264         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
10265         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
10266         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
10267         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
10268         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
10269         Move these macros to ...
10270         * lib/stat_.h: here.  Don't include stat-macros.h.
10271         * lib/canonicalize.c: Don't include stat-macros.h.
10272         * lib/chown.c: Likewise.
10273         * lib/euidaccess.c: Likewise.
10274         * lib/file-type.c: Likewise.
10275         * lib/filemode.c: Likewise.
10276         * lib/glob.c: Likewise.
10277         * lib/isapipe.c: Likewise.
10278         * lib/lchown.c: Likewise.
10279         * lib/lstat.c: Likewise.
10280         * lib/mkdir-p.c: Likewise.
10281         * lib/rmdir.c: Likewise.
10282         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
10283         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
10284         unless mkdir isn't declared, to speed up 'configure'.
10285         Always create sys/stat.h, since it's unlikely any real sys/stat.h
10286         would define all the S_* symbols.
10287         * modules/canonicalize (Depends-on):
10288         Depend on sys_stat, not stat-macros.
10289         * modules/chown: Likewise.
10290         * modules/euidaccess: Likewise.
10291         * modules/filemode: Likewise.
10292         * modules/file-type: Likewise.
10293         * modules/glob: Likewise.
10294         * modules/isapipe: Likewise.
10295         * modules/lchown: Likewise.
10296         * modules/lstat: Likewise.
10297         * modules/mkancesdirs: Likewise.
10298         * modules/rmdir: Likewise.
10299         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
10300         * modules/modechange: Likewise.
10301         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
10302         (configure.ac): Remove gl_STAT_MACROS.
10303         * modules/sys_stat (Depends-on): Remove stat-macros.
10304
10305 2006-10-27  Bruno Haible  <bruno@clisp.org>
10306
10307         * m4/signed.m4: Remove file.
10308         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
10309         invocation.
10310         * modules/vasnprintf (Files): Remove m4/signed.m4.
10311
10312 2006-10-27  Bruno Haible  <bruno@clisp.org>
10313
10314         Update to GNU gettext 0.16.
10315         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
10316         m4/inttypes-h.m4, m4/signed.m4.
10317         * m4/gettext.m4: Update to GNU gettext 0.16.
10318         * m4/intl.m4: New file, from GNU gettext.
10319         * m4/intldir.m4: New file, from GNU gettext.
10320         * config/srclist.txt: Update
10321
10322 2006-10-27  Eric Blake  <ebb9@byu.net>
10323
10324         * MODULES.html.sh: Document tempname.
10325         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
10326         dependencies.
10327         (Files): Move lib/tempname.c...
10328         * modules/tempname: ...to this new module.
10329         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
10330         (gl_PREREQ_TEMPNAME): Move...
10331         * m4/tempname.m4: ...to this new file.
10332         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
10333         * modules/sys_stat (Depends-on): Add stat-macros.
10334         * lib/stat_.h (includes): Pick up stat macros.
10335         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
10336         if stat macros are broken.
10337         * lib/tempname.c (includes): No need to include "stat-macros.h".
10338         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
10339         (direxists, __path_search) [!_LIBC]: Don't compile these in
10340         gnulib; the tmpdir module covers that.
10341         * lib/tempname.h: New file.
10342
10343 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
10344
10345         * COPYING: Explain how gnulib-tool converts licence headers.
10346         Almost all wording by Eric Blake.
10347
10348 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
10349
10350         * lib/mbchar.h (is_basic_table): Make read-only.
10351         * lib/mbchar.c (is_basic_table): Likewise.
10352         Reported by John Darrington.
10353
10354 2006-10-25  Bruno Haible  <bruno@clisp.org>
10355
10356         * lib/progname.h (set_program_name): Undefine before defining.
10357
10358 2006-10-25  Bruno Haible  <bruno@clisp.org>
10359
10360         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
10361         false for non-gcc C++ compilers.
10362         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
10363
10364 2006-10-24  Bruno Haible  <bruno@clisp.org>
10365
10366         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
10367         iconv implementations like Irix iconv.
10368
10369 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
10370
10371         * modules/vararrays: New file.
10372         * m4/vararrays.m4: New file, taken from diffutils.
10373         * MODULES.html.sh: New module vararrays.
10374
10375 2006-10-24  Karl Berry  <karl@gnu.org>
10376
10377         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
10378         Don't call GNU Unix.
10379
10380 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10381
10382         * users.txt: Add Libtool.
10383
10384         Sync from Libtool:
10385
10386         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
10387
10388         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
10389         to gnulib's policy of including config.h unconditionally.
10390
10391 2006-10-24  Bruno Haible  <bruno@clisp.org>
10392
10393         * modules/wcwidth (Files): Add m4/wint_t.m4.
10394         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
10395         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
10396
10397 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
10398
10399         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
10400         to pacify GCC with some -W flags enabled.  Problem reported by
10401         Bruno Haible.
10402
10403 2006-10-24  Jim Meyering  <jim@meyering.net>
10404
10405         * MODULES.html.sh: Remove uinttostr.  It's not a module.
10406         Reported by Karl Berry.
10407
10408 2006-10-23  Bruno Haible  <bruno@clisp.org>
10409
10410         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
10411
10412 2006-10-24  Bruno Haible  <bruno@clisp.org>
10413
10414         * lib/gl_list.h: Use C comment style, not C++ comment style.
10415
10416 2006-10-23  Eric Blake  <ebb9@byu.net>
10417
10418         * lib/getaddrinfo.c (includes): Add missing include.
10419
10420 2006-10-23  Bruno Haible  <bruno@clisp.org>
10421             Paul Eggert  <eggert@cs.ucla.edu>
10422
10423         Ability to rename obstack_free.
10424         * lib/obstack.h (__obstack_free): New macro. Declare instead of
10425         obstack_free.
10426         (obstack_free): Invoke the __obstack_free macro.
10427         * lib/obstack.c (obstack_free): Use __obstack_free macro.
10428
10429 2006-10-23  Bruno Haible  <bruno@clisp.org>
10430             Paul Eggert  <eggert@cs.ucla.edu>
10431
10432         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
10433         __argc, __argv from the declaration. (They are defined as macros on
10434         mingw.)
10435
10436 2006-10-22  Bruno Haible  <bruno@clisp.org>
10437
10438         * doc/gnulib-intro.texi: New file.
10439         * doc/gnulib.texi: Include it.
10440
10441 2006-10-21  Bruno Haible  <bruno@clisp.org>
10442
10443         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
10444         "Introduction", "Miscellanous Notes", "Particular Modules".
10445
10446 2006-10-21  Bruno Haible  <bruno@clisp.org>
10447
10448         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
10449         Change mostlyclean-local rule to avoid sh syntax error from bash
10450         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
10451
10452 2006-10-23  Jim Meyering  <jim@meyering.net>
10453
10454         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
10455         in place of snprintf.
10456
10457         * modules/inttostr (Files): Add lib/uinttostr.c.
10458         * lib/uinttostr.c (inttostr): New file/function.
10459         * lib/inttostr.h (uinttostr): Declare.
10460         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
10461         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
10462         Add uinttostr.
10463         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
10464
10465 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
10466
10467         * lib/canonicalize.c (ELOOP): Define if not already defined.
10468         Problem reported by Bruno Haible in
10469         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
10470
10471 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
10472
10473         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
10474         Problem reported by Perry Smith and Ville Laurikari.
10475
10476         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
10477         uses.
10478
10479 2006-10-19  Bruno Haible  <bruno@clisp.org>
10480
10481         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
10482         for mingw.
10483
10484 2006-10-19  Bruno Haible  <bruno@clisp.org>
10485
10486         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
10487         Needed for mingw.
10488
10489 2006-10-19  Bruno Haible  <bruno@clisp.org>
10490
10491         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
10492
10493 2006-10-19  Bruno Haible  <bruno@clisp.org>
10494
10495         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
10496         it.
10497
10498 2006-10-19  Bruno Haible  <bruno@clisp.org>
10499
10500         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
10501         invocation.
10502
10503 2006-10-19  Bruno Haible  <bruno@clisp.org>
10504
10505         * gnulib-tool (func_create_testdir): Don't include ftruncate and
10506         mountlist by default.
10507
10508 2006-10-16  Bruno Haible  <bruno@clisp.org>
10509
10510         * lib/c-strstr.c: Include c-strstr.h.
10511
10512 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
10513
10514         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
10515         in a slash.
10516
10517 2006-10-18  Bruno Haible  <bruno@clisp.org>
10518
10519         * lib/lock.h [C++]: Wrap definitions in extern "C".
10520
10521 2006-10-18  Bruno Haible  <bruno@clisp.org>
10522
10523         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
10524         gl_LIBOBJS list.
10525
10526 2006-10-18  Bruno Haible  <bruno@clisp.org>
10527
10528         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
10529
10530 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
10531
10532         * lib/xstrtol.h: Include gettext.h.
10533         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
10534         Problem reported by Eric Blake.
10535         * modules/xstrtol (Depends-on): Add gettext-h.
10536
10537 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
10538
10539         * lib/strftime.c (advance): New macro.
10540         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
10541         incomplete type, so you can't add 0 to it.  Problem and patch
10542         reported by Eelco Dolstra for dietlibc.
10543
10544 2006-10-18  Jim Meyering  <jim@meyering.net>
10545
10546         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
10547         type for a local, and rename it: s/up/user_proc/.
10548
10549 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
10550
10551         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
10552         READ_UTMP_USER_PROCESS.
10553         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
10554
10555 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
10556
10557         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
10558         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
10559
10560 2006-10-17  Eric Blake  <ebb9@byu.net>
10561
10562         * lib/sigprocmask.c (sigprocmask): Fix typo.
10563
10564         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
10565
10566         * modules/clean-temp (Makefile.am): Don't add to make output...
10567         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
10568         config.h.
10569
10570 2006-10-17  Bruno Haible  <bruno@clisp.org>
10571
10572         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
10573         differently if DEFAULT_TEXT_DOMAIN is set.
10574
10575 2006-10-16  Bruno Haible  <bruno@clisp.org>
10576
10577         * lib/clean-temp.c: Include fwriteerror.h.
10578
10579 2006-10-16  Bruno Haible  <bruno@clisp.org>
10580
10581         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
10582
10583 2006-10-16  Bruno Haible  <bruno@clisp.org>
10584
10585         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
10586         * lib/sigprocmask.h: Include <sys/types.h>.
10587         (sigset_t): Use the system's definition if present.
10588
10589 2006-10-17  Eric Blake  <ebb9@byu.net>
10590
10591         * lib/xvasprintf.c (includes): Assume config.h.
10592         * lib/xasprintf.c (includes): Likewise.
10593
10594 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
10595
10596         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
10597         at least as wide as intmax_t.
10598
10599 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
10600
10601         (Imported from Automake.)
10602         * build-aux/gnupload: Update to version 1.1 of directive file.
10603
10604 2006-10-16  Eric Blake  <ebb9@byu.net>
10605
10606         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
10607         match Automake 1.10a.
10608
10609 2006-10-14  Bruno Haible  <bruno@clisp.org>
10610
10611         * modules/sigprocmask: New file.
10612         * lib/sigprocmask.h: New file.
10613         * lib/sigprocmask.c: New file.
10614         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
10615         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
10616         request sigprocmask.o.
10617         (gl_PREREQ_SIGPROCMASK): New macro.
10618         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
10619         (Depends-on): Add sigprocmask.
10620         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
10621         gt_SIGNALBLOCKING. Test for 'raise' only once.
10622         * lib/fatal-signal.c: Include sigprocmask.h.
10623         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
10624         unblock_fatal_signals): Define always.
10625         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
10626         sigprocmask.
10627
10628 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
10629
10630         Sync from Automake.
10631         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
10632         which incorrectly sets the mode of an existing destination
10633         directory.  In some cases the unpatched install-sh could do the
10634         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
10635         system.  We hope this is rare in practice, but it's clearly worth
10636         fixing.  Problem reported by Alex Unleashed in
10637         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
10638         Also, don't bother to check for -m bugs unless we're using -m;
10639         suggested by Stepan Kasal.
10640
10641 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10642
10643         Sync from Automake.
10644         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
10645         `-c' flag, so they appear at the same position as in %FASTDEP%
10646         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
10647         which ignores unknown options only after the first non-option.
10648         Bug report against M4 by Nelson H. F. Beebe.
10649
10650 2006-10-13  Jim Meyering  <jim@meyering.net>
10651
10652         Fix a bug in yesterday's change.
10653         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
10654         p->fts_statp->st_dev would be used uninitialized.
10655         Ensures that we always call fts_stat on the very first entry.
10656         Miklos Szeredi reported that find -xdev stopped working.
10657
10658 2006-10-12  Bruno Haible  <bruno@clisp.org>
10659
10660         * gnulib-tool (func_get_automake_snippet): Append an automatically
10661         computed EXTRA_DIST augmentation.
10662         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
10663         * modules/alloca-opt (Makefile.am): Likewise.
10664         * modules/allocsa (Makefile.am): Likewise.
10665         * modules/arcfour (Makefile.am): Likewise.
10666         * modules/arctwo (Makefile.am): Likewise.
10667         * modules/argmatch (Makefile.am): Likewise.
10668         * modules/argz (Makefile.am): Likewise.
10669         * modules/atexit (Makefile.am): Likewise.
10670         * modules/backupfile (Makefile.am): Likewise.
10671         * modules/byteswap (Makefile.am): Likewise.
10672         * modules/c-strtod (Makefile.am): Likewise.
10673         * modules/c-strtold (Makefile.am): Likewise.
10674         * modules/calloc (Makefile.am): Likewise.
10675         * modules/canon-host (Makefile.am): Likewise.
10676         * modules/canonicalize (Makefile.am): Likewise.
10677         * modules/chdir-long (Makefile.am): Likewise.
10678         * modules/chdir-safer (Makefile.am): Likewise.
10679         * modules/check-version (Makefile.am): Likewise.
10680         * modules/chown (Makefile.am): Likewise.
10681         * modules/cloexec (Makefile.am): Likewise.
10682         * modules/close-stream (Makefile.am): Likewise.
10683         * modules/closeout (Makefile.am): Likewise.
10684         * modules/crc (Makefile.am): Likewise.
10685         * modules/csharpexec (Makefile.am): Likewise.
10686         * modules/cycle-check (Makefile.am): Likewise.
10687         * modules/des (Makefile.am): Likewise.
10688         * modules/dev-ino (Makefile.am): Likewise.
10689         * modules/dirfd (Makefile.am): Likewise.
10690         * modules/dirname (Makefile.am): Likewise.
10691         * modules/dup2 (Makefile.am): Likewise.
10692         * modules/eealloc (Makefile.am): Likewise.
10693         * modules/error (Makefile.am): Likewise.
10694         * modules/euidaccess (Makefile.am): Likewise.
10695         * modules/exclude (Makefile.am): Likewise.
10696         * modules/exitfail (Makefile.am): Likewise.
10697         * modules/fcntl-safer (Makefile.am): Likewise.
10698         * modules/fcntl (Makefile.am): Likewise.
10699         * modules/file-type (Makefile.am): Likewise.
10700         * modules/fileblocks (Makefile.am): Likewise.
10701         * modules/filemode (Makefile.am): Likewise.
10702         * modules/filenamecat (Makefile.am): Likewise.
10703         * modules/fnmatch (Makefile.am): Likewise.
10704         * modules/fopen-safer (Makefile.am): Likewise.
10705         * modules/fpending (Makefile.am): Likewise.
10706         * modules/fprintftime (Makefile.am): Likewise.
10707         * modules/free (Makefile.am): Likewise.
10708         * modules/fsusage (Makefile.am): Likewise.
10709         * modules/ftruncate (Makefile.am): Likewise.
10710         * modules/fts (Makefile.am): Likewise.
10711         * modules/gc-arcfour (Makefile.am): Likewise.
10712         * modules/gc-des (Makefile.am): Likewise.
10713         * modules/gc-hmac-md5 (Makefile.am): Likewise.
10714         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
10715         * modules/gc-md4 (Makefile.am): Likewise.
10716         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
10717         * modules/gc-sha1 (Makefile.am): Likewise.
10718         * modules/gc (Makefile.am): Likewise.
10719         * modules/getaddrinfo (Makefile.am): Likewise.
10720         * modules/getcwd (Makefile.am): Likewise.
10721         * modules/getdelim (Makefile.am): Likewise.
10722         * modules/getdomainname (Makefile.am): Likewise.
10723         * modules/getgroups (Makefile.am): Likewise.
10724         * modules/gethostname (Makefile.am): Likewise.
10725         * modules/gethrxtime (Makefile.am): Likewise.
10726         * modules/getline (Makefile.am): Likewise.
10727         * modules/getloadavg (Makefile.am): Likewise.
10728         * modules/getlogin_r (Makefile.am): Likewise.
10729         * modules/getndelim2 (Makefile.am): Likewise.
10730         * modules/getopt (Makefile.am): Likewise.
10731         * modules/getpagesize (Makefile.am): Likewise.
10732         * modules/getpass-gnu (Makefile.am): Likewise.
10733         * modules/getpass (Makefile.am): Likewise.
10734         * modules/getsubopt (Makefile.am): Likewise.
10735         * modules/gettime (Makefile.am): Likewise.
10736         * modules/gettimeofday (Makefile.am): Likewise.
10737         * modules/getugroups (Makefile.am): Likewise.
10738         * modules/getusershell (Makefile.am): Likewise.
10739         * modules/glob (Makefile.am): Likewise.
10740         * modules/group-member (Makefile.am): Likewise.
10741         * modules/hard-locale (Makefile.am): Likewise.
10742         * modules/hash (Makefile.am): Likewise.
10743         * modules/hmac-md5 (Makefile.am): Likewise.
10744         * modules/hmac-sha1 (Makefile.am): Likewise.
10745         * modules/human (Makefile.am): Likewise.
10746         * modules/idcache (Makefile.am): Likewise.
10747         * modules/imaxabs (Makefile.am): Likewise.
10748         * modules/imaxdiv (Makefile.am): Likewise.
10749         * modules/inet_ntop (Makefile.am): Likewise.
10750         * modules/inet_pton (Makefile.am): Likewise.
10751         * modules/intprops (Makefile.am): Likewise.
10752         * modules/inttostr (Makefile.am): Likewise.
10753         * modules/inttypes (Makefile.am): Likewise.
10754         * modules/isapipe (Makefile.am): Likewise.
10755         * modules/javaversion (Makefile.am): Likewise.
10756         * modules/lchmod (Makefile.am): Likewise.
10757         * modules/lchown (Makefile.am): Likewise.
10758         * modules/localcharset (Makefile.am): Likewise.
10759         * modules/long-options (Makefile.am): Likewise.
10760         * modules/lstat (Makefile.am): Likewise.
10761         * modules/malloc (Makefile.am): Likewise.
10762         * modules/mathl (Makefile.am): Likewise.
10763         * modules/mbchar (Makefile.am): Likewise.
10764         * modules/md2 (Makefile.am): Likewise.
10765         * modules/md4 (Makefile.am): Likewise.
10766         * modules/md5 (Makefile.am): Likewise.
10767         * modules/memcasecmp (Makefile.am): Likewise.
10768         * modules/memchr (Makefile.am): Likewise.
10769         * modules/memcmp (Makefile.am): Likewise.
10770         * modules/memcoll (Makefile.am): Likewise.
10771         * modules/memcpy (Makefile.am): Likewise.
10772         * modules/memmem (Makefile.am): Likewise.
10773         * modules/memmove (Makefile.am): Likewise.
10774         * modules/mempcpy (Makefile.am): Likewise.
10775         * modules/memrchr (Makefile.am): Likewise.
10776         * modules/memset (Makefile.am): Likewise.
10777         * modules/memxor (Makefile.am): Likewise.
10778         * modules/mkancesdirs (Makefile.am): Likewise.
10779         * modules/mkdir-p (Makefile.am): Likewise.
10780         * modules/mkdir (Makefile.am): Likewise.
10781         * modules/mkdtemp (Makefile.am): Likewise.
10782         * modules/mkstemp (Makefile.am): Likewise.
10783         * modules/mktime (Makefile.am): Likewise.
10784         * modules/modechange (Makefile.am): Likewise.
10785         * modules/mountlist (Makefile.am): Likewise.
10786         * modules/nanosleep (Makefile.am): Likewise.
10787         * modules/obstack (Makefile.am): Likewise.
10788         * modules/openat (Makefile.am): Likewise.
10789         * modules/pagealign_alloc (Makefile.am): Likewise.
10790         * modules/pathmax (Makefile.am): Likewise.
10791         * modules/physmem (Makefile.am): Likewise.
10792         * modules/poll (Makefile.am): Likewise.
10793         * modules/posixtm (Makefile.am): Likewise.
10794         * modules/posixver (Makefile.am): Likewise.
10795         * modules/putenv (Makefile.am): Likewise.
10796         * modules/quote (Makefile.am): Likewise.
10797         * modules/quotearg (Makefile.am): Likewise.
10798         * modules/raise (Makefile.am): Likewise.
10799         * modules/read-file (Makefile.am): Likewise.
10800         * modules/readline (Makefile.am): Likewise.
10801         * modules/readlink (Makefile.am): Likewise.
10802         * modules/readtokens (Makefile.am): Likewise.
10803         * modules/readutmp (Makefile.am): Likewise.
10804         * modules/realloc (Makefile.am): Likewise.
10805         * modules/regex (Makefile.am): Likewise.
10806         * modules/rename-dest-slash (Makefile.am): Likewise.
10807         * modules/rename (Makefile.am): Likewise.
10808         * modules/rijndael (Makefile.am): Likewise.
10809         * modules/rmdir (Makefile.am): Likewise.
10810         * modules/rpmatch (Makefile.am): Likewise.
10811         * modules/safe-read (Makefile.am): Likewise.
10812         * modules/safe-write (Makefile.am): Likewise.
10813         * modules/same-inode (Makefile.am): Likewise.
10814         * modules/same (Makefile.am): Likewise.
10815         * modules/save-cwd (Makefile.am): Likewise.
10816         * modules/savedir (Makefile.am): Likewise.
10817         * modules/setenv (Makefile.am): Likewise.
10818         * modules/settime (Makefile.am): Likewise.
10819         * modules/sha1 (Makefile.am): Likewise.
10820         * modules/sig2str (Makefile.am): Likewise.
10821         * modules/snprintf (Makefile.am): Likewise.
10822         * modules/stat-macros (Makefile.am): Likewise.
10823         * modules/stat-time (Makefile.am): Likewise.
10824         * modules/stdbool (Makefile.am): Likewise.
10825         * modules/stdint (Makefile.am): Likewise.
10826         * modules/stdlib-safer (Makefile.am): Likewise.
10827         * modules/stpcpy (Makefile.am): Likewise.
10828         * modules/stpncpy (Makefile.am): Likewise.
10829         * modules/strcase (Makefile.am): Likewise.
10830         * modules/strcasestr (Makefile.am): Likewise.
10831         * modules/strchrnul (Makefile.am): Likewise.
10832         * modules/strcspn (Makefile.am): Likewise.
10833         * modules/strdup (Makefile.am): Likewise.
10834         * modules/strerror (Makefile.am): Likewise.
10835         * modules/strftime (Makefile.am): Likewise.
10836         * modules/strndup (Makefile.am): Likewise.
10837         * modules/strnlen (Makefile.am): Likewise.
10838         * modules/strpbrk (Makefile.am): Likewise.
10839         * modules/strsep (Makefile.am): Likewise.
10840         * modules/strstr (Makefile.am): Likewise.
10841         * modules/strtod (Makefile.am): Likewise.
10842         * modules/strtoimax (Makefile.am): Likewise.
10843         * modules/strtok_r (Makefile.am): Likewise.
10844         * modules/strtol (Makefile.am): Likewise.
10845         * modules/strtoll (Makefile.am): Likewise.
10846         * modules/strtoul (Makefile.am): Likewise.
10847         * modules/strtoull (Makefile.am): Likewise.
10848         * modules/strtoumax (Makefile.am): Likewise.
10849         * modules/strverscmp (Makefile.am): Likewise.
10850         * modules/sys_socket (Makefile.am): Likewise.
10851         * modules/sys_stat (Makefile.am): Likewise.
10852         * modules/sysexits (Makefile.am): Likewise.
10853         * modules/time_r (Makefile.am): Likewise.
10854         * modules/timegm (Makefile.am): Likewise.
10855         * modules/timespec (Makefile.am): Likewise.
10856         * modules/tmpfile-safer (Makefile.am): Likewise.
10857         * modules/trim (Makefile.am): Likewise.
10858         * modules/unistd-safer (Makefile.am): Likewise.
10859         * modules/unlinkdir (Makefile.am): Likewise.
10860         * modules/unlocked-io (Makefile.am): Likewise.
10861         * modules/userspec (Makefile.am): Likewise.
10862         * modules/utime (Makefile.am): Likewise.
10863         * modules/utimecmp (Makefile.am): Likewise.
10864         * modules/utimens (Makefile.am): Likewise.
10865         * modules/vasnprintf (Makefile.am): Likewise.
10866         * modules/vasprintf (Makefile.am): Likewise.
10867         * modules/vsnprintf (Makefile.am): Likewise.
10868         * modules/xalloc (Makefile.am): Likewise.
10869         * modules/xgetcwd (Makefile.am): Likewise.
10870         * modules/xnanosleep (Makefile.am): Likewise.
10871         * modules/xreadlink (Makefile.am): Likewise.
10872         * modules/xstrtod (Makefile.am): Likewise.
10873         * modules/xstrtol (Makefile.am): Likewise.
10874         * modules/xstrtold (Makefile.am): Likewise.
10875         * modules/yesno (Makefile.am): Likewise.
10876         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
10877
10878 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
10879
10880         * modules/error (Makefile.am): Distribute files through
10881         EXTRA_DIST, not lib_SOURCES.
10882
10883 2006-10-12  Eric Blake  <ebb9@byu.net>
10884
10885         * modules/error (Makefile.am): Distribute files in /lib.
10886         * modules/obstack (Makefile.am): Likewise.
10887
10888 2006-10-12  Bruno Haible  <bruno@clisp.org>
10889
10890         * modules/acl (Makefile.am): Distribute all files in lib/ through
10891         EXTRA_DIST.
10892         * modules/arcfour (Makefile.am): Likewise.
10893         * modules/arctwo (Makefile.am): Likewise.
10894         * modules/argmatch (Makefile.am): Likewise.
10895         * modules/argz (Makefile.am): Likewise.
10896         * modules/atexit (Makefile.am): Likewise.
10897         * modules/backupfile (Makefile.am): Likewise.
10898         * modules/c-strtod (Makefile.am): Likewise.
10899         * modules/c-strtold (Makefile.am): Likewise.
10900         * modules/calloc (Makefile.am): Likewise.
10901         * modules/canon-host (Makefile.am): Likewise.
10902         * modules/canonicalize (Makefile.am): Likewise.
10903         * modules/chdir-long (Makefile.am): Likewise.
10904         * modules/chdir-safer (Makefile.am): Likewise.
10905         * modules/check-version (Makefile.am): Likewise.
10906         * modules/chown (Makefile.am): Likewise.
10907         * modules/cloexec (Makefile.am): Likewise.
10908         * modules/close-stream (Makefile.am): Likewise.
10909         * modules/closeout (Makefile.am): Likewise.
10910         * modules/crc (Makefile.am): Likewise.
10911         * modules/cycle-check (Makefile.am): Likewise.
10912         * modules/des (Makefile.am): Likewise.
10913         * modules/dirfd (Makefile.am): Likewise.
10914         * modules/dirname (Makefile.am): Likewise.
10915         * modules/dup2 (Makefile.am): Likewise.
10916         * modules/euidaccess (Makefile.am): Likewise.
10917         * modules/exclude (Makefile.am): Likewise.
10918         * modules/exitfail (Makefile.am): Likewise.
10919         * modules/fcntl-safer (Makefile.am): Likewise.
10920         * modules/file-type (Makefile.am): Likewise.
10921         * modules/fileblocks (Makefile.am): Likewise.
10922         * modules/filemode (Makefile.am): Likewise.
10923         * modules/filenamecat (Makefile.am): Likewise.
10924         * modules/fnmatch (Makefile.am): Likewise.
10925         * modules/fopen-safer (Makefile.am): Likewise.
10926         * modules/fpending (Makefile.am): Likewise.
10927         * modules/fprintftime (Makefile.am): Likewise.
10928         * modules/free (Makefile.am): Likewise.
10929         * modules/fsusage (Makefile.am): Likewise.
10930         * modules/ftruncate (Makefile.am): Likewise.
10931         * modules/fts (Makefile.am): Likewise.
10932         * modules/gc (Makefile.am): Likewise.
10933         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
10934         * modules/getaddrinfo (Makefile.am): Likewise.
10935         * modules/getcwd (Makefile.am): Likewise.
10936         * modules/getdelim (Makefile.am): Likewise.
10937         * modules/getdomainname (Makefile.am): Likewise.
10938         * modules/getgroups (Makefile.am): Likewise.
10939         * modules/gethostname (Makefile.am): Likewise.
10940         * modules/gethrxtime (Makefile.am): Likewise.
10941         * modules/getline (Makefile.am): Likewise.
10942         * modules/getloadavg (Makefile.am): Likewise.
10943         * modules/getlogin_r (Makefile.am): Likewise.
10944         * modules/getopt (Makefile.am): Likewise.
10945         * modules/getpass (Makefile.am): Likewise.
10946         * modules/getpass-gnu (Makefile.am): Likewise.
10947         * modules/getsubopt (Makefile.am): Likewise.
10948         * modules/gettime (Makefile.am): Likewise.
10949         * modules/gettimeofday (Makefile.am): Likewise.
10950         * modules/getugroups (Makefile.am): Likewise.
10951         * modules/getusershell (Makefile.am): Likewise.
10952         * modules/glob (Makefile.am): Likewise.
10953         * modules/group-member (Makefile.am): Likewise.
10954         * modules/hard-locale (Makefile.am): Likewise.
10955         * modules/hash (Makefile.am): Likewise.
10956         * modules/hmac-md5 (Makefile.am): Likewise.
10957         * modules/hmac-sha1 (Makefile.am): Likewise.
10958         * modules/human (Makefile.am): Likewise.
10959         * modules/idcache (Makefile.am): Likewise.
10960         * modules/imaxabs (Makefile.am): Likewise.
10961         * modules/imaxdiv (Makefile.am): Likewise.
10962         * modules/inet_ntop (Makefile.am): Likewise.
10963         * modules/inet_pton (Makefile.am): Likewise.
10964         * modules/inttostr (Makefile.am): Likewise.
10965         * modules/isapipe (Makefile.am): Likewise.
10966         * modules/lchown (Makefile.am): Likewise.
10967         * modules/long-options (Makefile.am): Likewise.
10968         * modules/lstat (Makefile.am): Likewise.
10969         * modules/malloc (Makefile.am): Likewise.
10970         * modules/mathl (Makefile.am): Likewise.
10971         * modules/mbchar (Makefile.am): Likewise.
10972         * modules/md2 (Makefile.am): Likewise.
10973         * modules/md4 (Makefile.am): Likewise.
10974         * modules/md5 (Makefile.am): Likewise.
10975         * modules/memcasecmp (Makefile.am): Likewise.
10976         * modules/memchr (Makefile.am): Likewise.
10977         * modules/memcmp (Makefile.am): Likewise.
10978         * modules/memcoll (Makefile.am): Likewise.
10979         * modules/memcpy (Makefile.am): Likewise.
10980         * modules/memmem (Makefile.am): Likewise.
10981         * modules/memmove (Makefile.am): Likewise.
10982         * modules/mempcpy (Makefile.am): Likewise.
10983         * modules/memrchr (Makefile.am): Likewise.
10984         * modules/memset (Makefile.am): Likewise.
10985         * modules/memxor (Makefile.am): Likewise.
10986         * modules/mkancesdirs (Makefile.am): Likewise.
10987         * modules/mkdir (Makefile.am): Likewise.
10988         * modules/mkdir-p (Makefile.am): Likewise.
10989         * modules/mkdtemp (Makefile.am): Likewise.
10990         * modules/mkstemp (Makefile.am): Likewise.
10991         * modules/mktime (Makefile.am): Likewise.
10992         * modules/modechange (Makefile.am): Likewise.
10993         * modules/mountlist (Makefile.am): Likewise.
10994         * modules/nanosleep (Makefile.am): Likewise.
10995         * modules/openat (Makefile.am): Likewise.
10996         * modules/pagealign_alloc (Makefile.am): Likewise.
10997         * modules/physmem (Makefile.am): Likewise.
10998         * modules/poll (Makefile.am): Likewise.
10999         * modules/posixtm (Makefile.am): Likewise.
11000         * modules/posixver (Makefile.am): Likewise.
11001         * modules/putenv (Makefile.am): Likewise.
11002         * modules/quote (Makefile.am): Likewise.
11003         * modules/quotearg (Makefile.am): Likewise.
11004         * modules/raise (Makefile.am): Likewise.
11005         * modules/read-file (Makefile.am): Likewise.
11006         * modules/readline (Makefile.am): Likewise.
11007         * modules/readlink (Makefile.am): Likewise.
11008         * modules/readtokens (Makefile.am): Likewise.
11009         * modules/readutmp (Makefile.am): Likewise.
11010         * modules/realloc (Makefile.am): Likewise.
11011         * modules/regex (Makefile.am): Likewise.
11012         * modules/rename (Makefile.am): Likewise.
11013         * modules/rename-dest-slash (Makefile.am): Likewise.
11014         * modules/rijndael (Makefile.am): Likewise.
11015         * modules/rmdir (Makefile.am): Likewise.
11016         * modules/rpmatch (Makefile.am): Likewise.
11017         * modules/safe-read (Makefile.am): Likewise.
11018         * modules/safe-write (Makefile.am): Likewise.
11019         * modules/same (Makefile.am): Likewise.
11020         * modules/save-cwd (Makefile.am): Likewise.
11021         * modules/savedir (Makefile.am): Likewise.
11022         * modules/setenv (Makefile.am): Likewise.
11023         * modules/settime (Makefile.am): Likewise.
11024         * modules/sha1 (Makefile.am): Likewise.
11025         * modules/sig2str (Makefile.am): Likewise.
11026         * modules/snprintf (Makefile.am): Likewise.
11027         * modules/stdlib-safer (Makefile.am): Likewise.
11028         * modules/stpcpy (Makefile.am): Likewise.
11029         * modules/stpncpy (Makefile.am): Likewise.
11030         * modules/strcase (Makefile.am): Likewise.
11031         * modules/strcasestr (Makefile.am): Likewise.
11032         * modules/strchrnul (Makefile.am): Likewise.
11033         * modules/strcspn (Makefile.am): Likewise.
11034         * modules/strdup (Makefile.am): Likewise.
11035         * modules/strerror (Makefile.am): Likewise.
11036         * modules/strftime (Makefile.am): Likewise.
11037         * modules/strndup (Makefile.am): Likewise.
11038         * modules/strnlen (Makefile.am): Likewise.
11039         * modules/strpbrk (Makefile.am): Likewise.
11040         * modules/strsep (Makefile.am): Likewise.
11041         * modules/strstr (Makefile.am): Likewise.
11042         * modules/strtod (Makefile.am): Likewise.
11043         * modules/strtoimax (Makefile.am): Likewise.
11044         * modules/strtok_r (Makefile.am): Likewise.
11045         * modules/strtol (Makefile.am): Likewise.
11046         * modules/strtoll (Makefile.am): Likewise.
11047         * modules/strtoul (Makefile.am): Likewise.
11048         * modules/strtoull (Makefile.am): Likewise.
11049         * modules/strtoumax (Makefile.am): Likewise.
11050         * modules/strverscmp (Makefile.am): Likewise.
11051         * modules/time_r (Makefile.am): Likewise.
11052         * modules/timegm (Makefile.am): Likewise.
11053         * modules/tmpfile-safer (Makefile.am): Likewise.
11054         * modules/unistd-safer (Makefile.am): Likewise.
11055         * modules/unlinkdir (Makefile.am): Likewise.
11056         * modules/userspec (Makefile.am): Likewise.
11057         * modules/utime (Makefile.am): Likewise.
11058         * modules/utimecmp (Makefile.am): Likewise.
11059         * modules/utimens (Makefile.am): Likewise.
11060         * modules/vasnprintf (Makefile.am): Likewise.
11061         * modules/vasprintf (Makefile.am): Likewise.
11062         * modules/vsnprintf (Makefile.am): Likewise.
11063         * modules/xalloc (Makefile.am): Likewise.
11064         * modules/xgetcwd (Makefile.am): Likewise.
11065         * modules/xnanosleep (Makefile.am): Likewise.
11066         * modules/xreadlink (Makefile.am): Likewise.
11067         * modules/xstrtod (Makefile.am): Likewise.
11068         * modules/xstrtol (Makefile.am): Likewise.
11069         * modules/xstrtold (Makefile.am): Likewise.
11070         * modules/yesno (Makefile.am): Likewise.
11071
11072 2006-10-12  Jim Meyering  <jim@meyering.net>
11073
11074         * m4/getloadavg.m4: Revert the change below.
11075
11076         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
11077         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
11078         fail with a symlink, which is what coreutils' ./bootstrap now
11079         creates by default.
11080
11081 2006-10-12  Bruno Haible  <bruno@clisp.org>
11082
11083         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
11084         mingw.
11085         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
11086         MSVC and mingw explicitly.
11087
11088 2006-10-11  Simon Josefsson  <jas@extundo.com>
11089             Bruno Haible  <bruno@clisp.org>
11090
11091         Add support for multiple gnulib-tool invocations in the scope of a
11092         single configure.ac file.
11093         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
11094         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
11095         with the same contents as the _LIBADD variable.
11096         (func_emit_initmacro_start, func_emit_initmacro_end,
11097         func_emit_initmacro_done): New functions.
11098         (func_import, func_create_testdir): Invoke them. Allow the identifiers
11099         gl_LIBOBJS and gl_LTLIBOBJS.
11100
11101 2006-10-11  Bruno Haible  <bruno@clisp.org>
11102
11103         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
11104         (func_create_testdir): Don't create po/Makefile.am, don't invoke
11105         autoreconf. Instead, invoke autopoint explicitly but move back the
11106         *.m4 files from gnulib.
11107
11108 2006-10-11  Bruno Haible  <bruno@clisp.org>
11109
11110         * gnulib-tool (func_usage): Make module names after --create-testdir
11111         optional.
11112         (func_create_testdir): If no module was specified, use nearly all
11113         modules.
11114
11115 2006-10-12  Jim Meyering  <jim@meyering.net>
11116
11117         Big performance improvement for fts-based tools that use FTS_NOSTAT.
11118         Avoid spurious inode-mismatch problems on non-POSIX file systems.
11119         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
11120         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
11121         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
11122         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
11123         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
11124         (fts_set_stat_required): New function.
11125         (fts_open): Defer the calls to fts_stat, if possible or requested.
11126         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
11127         into fts_stat itself.
11128         (fts_read): Perform any required (deferred) fts_stat call.
11129         (fts_build): Likewise, for the directory we're about to open and read.
11130         In the readdir loop, carefully decide whether each entry will require
11131         an eventual call to fts_stat, using dirent.d_type info if available.
11132         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
11133         a command line argument into this function.  Update all callers.
11134         Map a return value of FTS_DOT to FTS_D for a command line argument.
11135         * modules/fts (Depends-on): Add d-type.  Alphabetize.
11136         Thanks to Miklos Szeredi for his tenacity and for the initial
11137         bug report about "find" failing on a FUSE-based file system.
11138
11139         * lib/fts.c (fts_open): Use consistent indentation.
11140
11141 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
11142
11143         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
11144         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
11145         reported by Jim Meyering.  All uses of cache variables renamed
11146         to match Autoconf's.
11147         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
11148         the other one.
11149
11150         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
11151         Fix misspelling in diagnostic.
11152
11153 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
11154
11155         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
11156         defined.  Problem reported by Matthew Woehlke.
11157
11158         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
11159         Add support for Tandem NonStop R series.
11160         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
11161         Use new macro.
11162
11163         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
11164         (has_trailing_slash): Omit size arg; all callers changed.
11165         Omit 'inline', since it doesn't help performance and we'd
11166         need to configure it.
11167         Don't count //, ///, etc. as having a trailing slash.
11168         As a side effect, this removes a C99ism reported by Matthew Woehlke.
11169         (rpl_rename_dest_slash): On failure, use rename's errno rather
11170         than (in some cases) an incorrect or junk errno.
11171         Simplify code by removing need to compute length; this does
11172         cause it to make two passes instead of one over the file name,
11173         but it's worth it.
11174
11175         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
11176         change, since Autoconf's version may no longer be appropriate now
11177         that we are using CVS Autoconf's version.  Add support for Tandem.
11178
11179 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
11180             Bruno Haible  <bruno@clisp.org>
11181
11182         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
11183         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
11184         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
11185         gl_AC_TYPE_LONG_LONG.
11186
11187         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
11188         instead of HAVE_LONG_LONG.
11189         * lib/printf-args.c (printf_fetchargs): Likewise.
11190         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
11191         * lib/vasnprintf.c (VASNPRINTF): Likewise.
11192         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
11193         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
11194         gl_AC_TYPE_LONG_LONG.
11195
11196 2006-10-11  Bruno Haible  <bruno@clisp.org>
11197
11198         * m4/longlong.m4: Add comments.
11199         * m4/ulonglong.m4: Likewise.
11200
11201 2006-10-10  Bruno Haible  <bruno@clisp.org>
11202
11203         Make it possible to #define stpcpy, strdup to aliases.
11204         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
11205         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
11206
11207 2006-10-10  Bruno Haible  <bruno@clisp.org>
11208
11209         Make it possible to #define gcd to an alias.
11210         * lib/gcd.c: Include config.h.
11211
11212 2006-10-10  Bruno Haible  <bruno@clisp.org>
11213
11214         Make it possible to #define c_isascii to an alias.
11215         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
11216         defined. Undefine the macros before defining them, to avoid gcc
11217         warnings.
11218         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
11219         define NO_C_CTYPE_MACROS early.
11220
11221 2006-10-10  Bruno Haible  <bruno@clisp.org>
11222
11223         Make it possible to #define set_program_name to an alias.
11224         * lib/progname.c: Don't undefine set_program_name; instead, undefine
11225         ENABLE_RELOCATABLE early.
11226
11227 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
11228
11229         Port to Tandem NSK OSS, which has 64-bit signed int but at most
11230         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
11231         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
11232         More generally, don't assume that 64-bit signed int is available
11233         if unsigned int is, and vice versa.
11234         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
11235         unsigned symbols, not on their signed counterparts.
11236         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
11237         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
11238         (UINT64_C, UINTMAX_C):
11239         Likewise.
11240         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
11241         unsigned counterparts.
11242         (Have_long_long, Unsigned): New macros.
11243         (Int): Renamed from INT.
11244         (strtoimax): Use the new macros.
11245         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
11246         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
11247         * modules/inttypes (inttypes.h): Substitute
11248         HAVE_UNSIGNED_LONG_LONG_INT.
11249         * modules/stdint (stdint.h): Likewise.
11250         (Files): Add m4/ulonglong.m4.
11251
11252 2006-10-10  Bruno Haible  <bruno@clisp.org>
11253
11254         Fix a gcc -Wshadow warning.
11255         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
11256         to 'bucket'.
11257         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
11258         gl_linked_indexof_from_to): Likewise.
11259         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
11260         Likewise.
11261         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
11262         Likewise.
11263         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
11264         Reported by Eric Blake.
11265
11266 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
11267
11268         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
11269         for NetBSD.  Problem reported by Bruno Haible.
11270
11271 2006-10-09  Jim Meyering  <jim@meyering.net>
11272
11273         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
11274         Patch from Bruno Haible.
11275
11276 2006-10-09  Jim Meyering  <jim@meyering.net>
11277
11278         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
11279         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
11280         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
11281
11282 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
11283
11284         Don't include <config.h> twice; this doesn't work in some cases,
11285         e.g., when config.h has "#define intmax_t long long int" and
11286         we include <config.h>, <inttypes.h>, <config.h> in that order.
11287         Problem reported by Matthew Woehlke in:
11288         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
11289         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
11290         * lib/fts-cycle.c: Don't include config.h.
11291         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
11292         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
11293         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
11294         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
11295         inttypes.h.
11296         * lib/xstrtoumax.c: Likewise.
11297         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
11298         __strtol and the like, so that this module is more like its siblings.
11299         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
11300         Remove; no longer needed now that we assume gnulib inttypes.h.
11301
11302 2006-10-08  Bruno Haible  <bruno@clisp.org>
11303
11304         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
11305         option.
11306
11307 2006-10-07  Jim Meyering  <jim@meyering.net>
11308
11309         * modules/inttypes (inttypes.h): Revert what seems to have been
11310         an inadvertent part of today's change: use "|", not "/" in the
11311         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
11312
11313 2006-10-07  Bruno Haible  <bruno@clisp.org>
11314
11315         * modules/sublist: New file.
11316
11317 2006-10-07  Bruno Haible  <bruno@clisp.org>
11318
11319         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
11320         * modules/argz (argz.h): Likewise.
11321         * modules/arpa_inet (arpa/inet.h): Likewise.
11322         * modules/byteswap (byteswap.h): Likewise.
11323         * modules/configmake (configmake.h): Likewise.
11324         * modules/fcntl (fcntl.h): Likewise.
11325         * modules/fnmatch (fnmatch.h): Likewise.
11326         * modules/getopt (getopt.h): Likewise.
11327         * modules/glob (glob.h): Likewise.
11328         * modules/inttypes (inttypes.h): Likewise.
11329         * modules/netinet_in (netinet/in.h): Likewise.
11330         * modules/poll (poll.h): Likewise.
11331         * modules/stdbool (stdbool.h): Likewise.
11332         * modules/stdint (stdint.h): Likewise.
11333         * modules/sys_select (sys/select.h): Likewise.
11334         * modules/sys_socket (sys/socket.h): Likewise.
11335         * modules/sys_stat (sys/stat.h): Likewise.
11336         * modules/sysexits (sysexits.h): Likewise.
11337         * modules/unistd (unistd.h): Likewise.
11338         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
11339         Add a "DO NOT EDIT" comment to the generated file.
11340         (func_import): Likewise for gnulib-comp.m4.
11341
11342 2006-10-07  Bruno Haible  <bruno@clisp.org>
11343
11344         * lib/gl_sublist.h: New file.
11345         * lib/gl_sublist.c: New file.
11346
11347 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
11348
11349         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
11350         name (relative to the original working directory) and the file
11351         name component (relative to the temporary working directory).  All
11352         callers changed.
11353         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
11354         * lib/mkdir-p.c (make_dir_parents): Likewise.
11355         * lib/mkdir-p.h (make_dir_parents): Likewise.
11356
11357 2006-10-06  Eric Blake  <ebb9@byu.net>
11358
11359         Define several macros for use by the clean-temp module.
11360         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
11361         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
11362         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
11363
11364         * lib/clean-temp.h (close_stream_temp): New declaration.
11365         * lib/clean-temp.c (includes): Pull in headers according to what
11366         other modules are in use.
11367         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
11368
11369 2006-10-06  Bruno Haible  <bruno@clisp.org>
11370
11371         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
11372         instead of fopen, fwriteerror.
11373
11374 2006-10-06  Bruno Haible  <bruno@clisp.org>
11375
11376         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
11377         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
11378         int.
11379         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
11380         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
11381         Return an error indicator.
11382         Suggested by Eric Blake.
11383
11384 2006-10-06  Bruno Haible  <bruno@clisp.org>
11385
11386         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
11387         Reported by Eric Blake.
11388
11389 2006-10-06  Bruno Haible  <bruno@clisp.org>
11390
11391         * modules/closeout (Description): Mention stderr too.
11392
11393 2006-10-06  Bruno Haible  <bruno@clisp.org>
11394         and Paul Eggert  <eggert@cs.ucla.edu>
11395
11396         * lib/closeout.c (close_stdout): Also close stderr.
11397         * lib/closeout.h: Update comment.
11398
11399 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
11400
11401         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
11402         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
11403         * lib/dirchownmod.c: Include lchown.h.
11404         * lib/lchown.c: Don't include files that lchown.h now includes.
11405         Don't declare chown, since lchown.h now does that.
11406         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
11407         (lchown): Define to rpl_chown if lchown is declared but
11408         does not exist.  Declare using a prototype if lchown is not
11409         declared.  Add a copyright notice.
11410         * lib/mkstemp.h: Include <unistd.h>.
11411         * lib/openat.c: Include lchown.h.
11412
11413         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
11414         we now test for that separately.
11415         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
11416         rather than O_NOFOLLOW, when testing whether it's possible to
11417         avoid a race condition reliably.
11418         * lib/savewd.c (savewd_chdir): Likewise.
11419
11420         Remove macros that are no longer needed now that stdint.h is
11421         reliable.
11422         * lib/fsusage.c (UINTMAX_MAX): Remove.
11423         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
11424         * lib/utimecmp.c (SIZE_MAX): Remove.
11425
11426         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
11427
11428         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
11429         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
11430         O_NOATIME works.
11431
11432 2006-10-05  Bruno Haible  <bruno@clisp.org>
11433
11434         * lib/gl_list.h (gl_sortedlist_search_from_to,
11435         gl_sortedlist_indexof_from_to): New declarations.
11436         (gl_list_implementation): New fields sortedlist_search_from_to,
11437         sortedlist_indexof_from_to.
11438         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
11439         inline functions.
11440         * lib/gl_list.c (gl_sortedlist_search_from_to,
11441         gl_sortedlist_indexof_from_to): New functions.
11442         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
11443         function.
11444         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
11445         (gl_array_sortedlist_search_from_to): New function.
11446         (gl_array_list_implementation): Update.
11447         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
11448         function.
11449         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
11450         (gl_carray_sortedlist_search_from_to): New function.
11451         (gl_carray_list_implementation): Update.
11452         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
11453         gl_linked_sortedlist_indexof_from_to): New functions.
11454         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
11455         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
11456         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
11457         gl_tree_sortedlist_indexof_from_to): New functions.
11458         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
11459         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
11460         Update.
11461         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
11462         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
11463         Update.
11464
11465 2006-10-05  Bruno Haible  <bruno@clisp.org>
11466
11467         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
11468         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
11469         (struct gl_list_implementation): Add fields search_from_to,
11470         indexof_from_to. Remove fields search, indexof.
11471         (gl_list_search): Use the search_from_to method.
11472         (gl_list_search_from, gl_list_search_from_to): New functions.
11473         (gl_list_indexof): Use the indexof_from_to method.
11474         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
11475         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
11476         (gl_list_search_from, gl_list_search_from_to): New functions.
11477         (gl_list_indexof): Use the indexof_from_to method.
11478         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
11479         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
11480         gl_array_indexof. Add start_index, end_index arguments.
11481         (gl_array_search_from_to): Renamed from gl_array_search. Add
11482         start_index, end_index arguments.
11483         (gl_array_remove, gl_array_list_implementation): Update.
11484         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
11485         gl_carray_indexof. Add start_index, end_index arguments.
11486         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
11487         start_index, end_index arguments.
11488         (gl_carray_remove, gl_carray_list_implementation): Update.
11489         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
11490         gl_linked_search. Add start_index, end_index arguments.
11491         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
11492         start_index, end_index arguments.
11493         (gl_linked_remove): Update.
11494         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
11495         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
11496         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
11497         field to 'size_t'.
11498         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
11499         gl_tree_search. Add start_index, end_index arguments.
11500         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
11501         start_index, end_index arguments.
11502         (gl_tree_remove): Update.
11503         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
11504         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
11505         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
11506         function.
11507         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
11508         gl_tree_search. Add start_index, end_index arguments.
11509         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
11510         start_index, end_index arguments.
11511         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
11512         Update.
11513         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
11514
11515 2006-10-05  Bruno Haible  <bruno@clisp.org>
11516
11517         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
11518
11519         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
11520         fwriteerror_temp): New declarations.
11521         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
11522         (descriptors): New variable.
11523         (cleanup): First, close the descriptors.
11524         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
11525         fclose_temp, fwriteerror_temp): New functions.
11526
11527 2006-10-04  Jim Meyering  <jim@meyering.net>
11528
11529         * lib/fts.c (fts_open): Tiny comment change.
11530
11531 2006-10-04  Bruno Haible  <bruno@clisp.org>
11532
11533         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
11534         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
11535         gl_LOCK_BODY.
11536         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
11537         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
11538         gl_LOCK_EARLY_BODY.
11539         (gl_LOCK): Require gl_LOCK_BODY.
11540
11541 2006-10-04  Bruno Haible  <bruno@clisp.org>
11542
11543         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
11544         (gl_oset_search_atleast): New declaration.
11545         (struct gl_oset_implementation): Add field 'search_atleast'.
11546         (gl_oset_search_atleast): New inline function.
11547         * lib/gl_oset.c (gl_oset_search_atleast): New function.
11548         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
11549         (gl_array_oset_implementation): Update.
11550         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
11551         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
11552         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
11553
11554 2006-10-04  Bruno Haible  <bruno@clisp.org>
11555
11556         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
11557
11558 2006-10-03  Bruno Haible  <bruno@clisp.org>
11559
11560         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
11561         from gl_avltreehash_list_implementation.
11562
11563 2006-10-03  Bruno Haible  <bruno@clisp.org>
11564
11565         * lib/gl_oset.c (gl_oset_add): Fix return type.
11566
11567 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
11568
11569         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
11570
11571 2006-10-02  Eric Blake  <ebb9@byu.net>
11572
11573         * modules/strnlen (Depends-on): Add extensions.
11574
11575 2006-10-02  Eric Blake  <ebb9@byu.net>
11576
11577         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
11578         definition in 2.60+.
11579
11580 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
11581
11582         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
11583         checks.
11584
11585 2006-10-02  Bruno Haible  <bruno@clisp.org>
11586
11587         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
11588         to the AUTOMAKE_OPTIONS.
11589         Reported by Jim Meyering.
11590
11591 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
11592
11593         Work around bug in Solaris 10 /proc file system:
11594         /proc/self/fd/NNN/.. isn't the parent directory of
11595         the directory whose file descriptor is NNN.  This needs to
11596         be worked around at run time, not compile time, since a
11597         program might be built on Solaris 8, where things work, and
11598         run on Solaris 10.
11599         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
11600         to use the following interface instead:
11601         (OPENAT_BUFFER_SIZE): New macro.
11602         (openat_proc_name): New function.
11603         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
11604         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
11605         Likewise.
11606         * lib/openat-proc.c: New file.
11607         * modules/openat (Files): Add lib/openat-proc.c.
11608         (Depends-on): Add same-inode, stdbool.
11609         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
11610
11611 2006-09-29  Bruno Haible  <bruno@clisp.org>
11612
11613         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
11614         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
11615         argument. Set stdout_closed before testing for ferror, not after.
11616         (fwriteerror, fwriteerror_no_ebadf): New functions.
11617
11618 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11619
11620         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
11621
11622 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
11623
11624         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
11625         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
11626
11627 2006-09-28  Jim Meyering  <jim@meyering.net>
11628
11629         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
11630         Include <unistd.h>.
11631
11632 2006-09-28  Bruno Haible  <bruno@clisp.org>
11633
11634         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
11635         * modules/linkedhash-list (Depends-on): Likewise.
11636         * modules/rbtreehash-list (Depends-on): Likewise.
11637
11638 2006-09-28  Bruno Haible  <bruno@clisp.org>
11639
11640         * lib/strndup.h: Simplify the redefinition of strndup.
11641         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
11642         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
11643
11644 2006-09-28  Bruno Haible  <bruno@clisp.org>
11645
11646         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
11647         * lib/gl_linkedhash_list.c: Likewise.
11648         * lib/gl_rbtreehash_list.c: Likewise.
11649
11650 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
11651
11652         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
11653         getaddrinfo.
11654
11655         * lib/__fpending.h: Don't include <stdio_ext.h> unless
11656         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
11657         it causes <stdio_ext.h> to cause a compile-time error.
11658         Problem reported by Nelson H. F. Beebe.
11659         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
11660         of HAVE_DECL___PENDING.
11661
11662         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
11663         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
11664         declaration.
11665
11666 2006-09-27  Jim Meyering  <jim@meyering.net>
11667
11668         This file could end up with a definition for a function
11669         named __strndup, rather than rpl_strndup on a system with
11670         incomplete weak_alias support.
11671         * lib/strndup.c (strndup): Rename from __strndup.
11672         Remove #defines that used to map __strndup to strndup.
11673         Don't use K&R prototypes.
11674         Remove LIBC-related code, since this file is not sync'd with glibc.
11675         * lib/strndup.h: Revamp, accordingly.
11676         * m4/strndup.m4: Modernize.
11677
11678 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
11679
11680         * modules/savewd (Depends-on): Add 'raise'.
11681         * lib/savewd.c: Include <signal.h>, for 'raise'.
11682
11683 2006-09-26  Jim Meyering  <jim@meyering.net>
11684
11685         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
11686         when we detect Darwin 8.7.0's acl_get_file bug.
11687         Rearrange to perform the new (below) run-test while $LIBS
11688         contains any acl-related library.  Set USE_ACL at the end.
11689         (gl_ACL_GET_FILE): New function.
11690
11691 2006-09-26  Eric Blake  <ebb9@byu.net>
11692
11693         * lib/verror.c: Include <config.h> unconditionally.
11694
11695 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
11696
11697         * modules/clock-time (Maintainer): Add self.
11698         * modules/getlogin_r (Depends-on): Add extensions.
11699
11700 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11701
11702         * modules/clock-time: New module.
11703         * modules/nanosleep (Depends-on): Add clock-time.
11704         * modules/gethrxtime (Depends-on): Likewise.
11705         * modules/gettime (Depends-on): Likewise.
11706         * modules/settime (Depends-on): Likewise.
11707
11708         * modules/fts-lgpl: Depend on openat.
11709         * modules/mkancesdirs: Depend on savewd.
11710         * modules/mkdir-p: Likewise.
11711
11712 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11713
11714         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
11715
11716         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
11717         `gl_have_arbitrary_file_name_length_limit' to
11718         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
11719         actually works between configure runs.
11720
11721 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11722             Bruno Haible  <bruno@clisp.org>
11723
11724         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
11725
11726 2006-09-25  Jim Meyering  <jim@meyering.net>
11727
11728         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
11729         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
11730
11731 2006-09-25  Eric Blake  <ebb9@byu.net>
11732
11733         * gnulib-tool (func_import, func_create_testdir): Fix typos in
11734         exec's in 2006-09-18 patch when shuffling fds.
11735
11736 2006-09-25  Bruno Haible  <bruno@clisp.org>
11737
11738         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
11739         Reported by Jim Meyering.
11740
11741 2006-09-24  Jim Meyering  <jim@meyering.net>
11742
11743         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
11744         compare a pointer against a literal "0".  That caused failures with
11745         at least HP-UX's hpcc.
11746
11747 2006-09-22  Simon Josefsson  <jas@extundo.com>
11748
11749         * modules/gc-sha1:
11750         * modules/gc-md4:
11751         * modules/gc-hmac-sha1:
11752         * modules/gc-hmac-md5:
11753         * modules/gc-des:
11754         * modules/gc-arcfour: Distribute more files.
11755
11756 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11757
11758         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
11759         (gl_linked_iterator_from_to): Initialize struct completely.
11760         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
11761         (gl_tree_iterator_from_to): Likewise
11762         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
11763         * lib/gl_array_list.c [lint] (gl_array_iterator)
11764         (gl_array_iterator_from_to): Likewise.
11765         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
11766         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
11767         (gl_carray_iterator_from_to): Likewise.
11768
11769         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
11770         * lib/md4.c (md4_process_block): Remove unused variable.
11771         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
11772         parentheses for clarity.
11773
11774 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11775
11776         * modules/bison-i18n (Depends-on): Add gettext.
11777
11778 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11779
11780         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
11781         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
11782         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
11783         also add missing comma that caused broken test.
11784         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
11785         stdlib.h, for `abort'.
11786         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
11787         variables.
11788         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
11789         include unistd.h if present, for `rmdir'.
11790         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
11791         variables.
11792         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
11793         in the process include standard headers for prototypes.
11794         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
11795         gets declared on GNU/Linux.
11796         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
11797         unistd.h, for `rmdir'.
11798         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
11799
11800         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
11801         always true.
11802         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
11803
11804         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
11805
11806 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11807
11808         * gnulib-tool (func_version): Create output all at once.  This
11809         may help avoid triggering unnecessary SIGPIPEs, and at any
11810         rate it doesn't hurt.
11811
11812 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11813             Bruno Haible  <bruno@clisp.org>
11814
11815         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
11816         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
11817         * m4/signed.m4 (bh_C_SIGNED): Likewise.
11818
11819         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
11820         (gl_FUNC_VASPRINTF): Invoke it.
11821
11822 2006-09-22  Bruno Haible  <bruno@clisp.org>
11823
11824         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
11825         getloadavg.c as first argument.
11826
11827 2006-09-22  Bruno Haible  <bruno@clisp.org>
11828
11829         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
11830         at the beginning of the gl_INIT macro.
11831         * modules/getloadavg (configure.ac): Pass $gl_source_base to
11832         gl_GETLOADAVG.
11833
11834 2006-09-22  Bruno Haible  <bruno@clisp.org>
11835
11836         * gnulib-tool (func_create_megatestdir): Don't include the config-h
11837         module.
11838         Suggested by Ralf Wildenhues.
11839
11840 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
11841
11842         Import this patch from libc:
11843
11844         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
11845
11846         * lib/regex_internal.c (re_string_reconstruct): Handle
11847         offset < pstr->valid_raw_len && pstr->offsets_needed case.
11848         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
11849         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
11850         re_string_context_at.
11851
11852         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
11853         now requires it.
11854         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
11855         gl_REGEX now does it for us.
11856         (gl_REGEX): Add test taken from
11857         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
11858
11859         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
11860         Check that large offsets work.  Modernize Autoconf usages.
11861         Prefer "yes" to mean a good thing rather than a bad.
11862         Don't put "#define mkstemp" in config.h, as this might interfere
11863         with standard system headers that "#define mkstemp mkstemp64".
11864
11865         * modules/mkstemp (Depends-on): Add extensions, so that
11866         mkstemp is visible on some platforms.
11867         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
11868         (Include): Change to "mkstemp.h" from <stdlib.h>.
11869         (Files): Add mkstemp.h.
11870
11871         * lib/mkstemp.h: New file, since some standard headers
11872         #define mkstemp.
11873         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
11874         Include "mkstemp.h".
11875         Make the _LIBC code resemble glibc original more,
11876         e.g., use K&R style.
11877         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
11878         (mkstemp): Remove, since mkstemp.h does this for us.
11879         * lib/stdlib--.h: Include mkstemp.h.
11880
11881         Import this patch from libc:
11882
11883         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
11884
11885         * lib/tempname.c (__gen_tempname): Change attempts_min
11886         into a macro.  Use preprocessor to decide how to initialize
11887         attempts [Coverity CID 67].
11888
11889 2006-09-20  Bruno Haible  <bruno@clisp.org>
11890
11891         * lib/mkdtemp.c: Import from libc.
11892         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
11893                 * sysdeps/posix/tempname.c (__gen_tempname): Change
11894                 attempts_min into a macro.  Use preprocessor to decide how to
11895                 initialize attempts [Coverity CID 67].
11896         2001-11-27  Paul Eggert  <eggert@twinsun.com>
11897                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
11898                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
11899
11900 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11901
11902         * gnulib-tool (func_exit): New function, to allow to pass the
11903         exit status portably through the trap.  Use everywhere.
11904         (--help, --version): Signal a write error.
11905         (trap): catch SIGPIPE, for write errors.
11906         Exit at the end of the trap, with the correct exit status.
11907
11908 2006-09-19  Karl Berry  <karl@gnu.org>
11909
11910         * doc/gnulib.texi: note about the license texinfo files.
11911
11912 2006-09-19  Eric Blake  <ebb9@byu.net>
11913
11914         * gnulib-tool: Avoid space-tab.
11915
11916 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
11917
11918         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
11919         that prevented coreutils 6.1 from building.  Problem reported
11920         by Petter Reinholdtsen.
11921
11922 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
11923
11924         * gnulib-tool (avoidlist): Fix typo that broke options like
11925         --avoid=lock that are used by coreutils bootstrap.
11926
11927 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
11928
11929         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
11930         more systematically.
11931
11932 2006-09-18  Jim Meyering  <jim@meyering.net>
11933
11934         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
11935
11936 2006-09-18  Bruno Haible  <bruno@clisp.org>
11937
11938         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
11939
11940 2006-09-18  Bruno Haible  <bruno@clisp.org>
11941
11942         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
11943         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
11944         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
11945         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
11946         * m4/gettext.m4: Require autoconf >= 2.52.
11947         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
11948         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
11949         of gl_cv_header_inttypes_h.
11950
11951 2006-09-18  Bruno Haible  <bruno@clisp.org>
11952
11953         * lib/javaversion.c: Include configmake.h.
11954
11955 2006-09-18  Bruno Haible  <bruno@clisp.org>
11956
11957         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
11958         avoid that the while loops be executed in a subshell.
11959
11960 2006-09-18  Bruno Haible  <bruno@clisp.org>
11961
11962         * MODULES.html.sh (func_module): Break long lines.
11963         Suggested by Bruce Korb <bkorb@gnu.org>.
11964
11965 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11966
11967         Speed up by a factor of 1.12.
11968         * gnulib-tool (nl): New variable.
11969         (func_import): Rewrite include directive extraction to only read each
11970         directive once.
11971
11972 2006-09-17  Bruno Haible  <bruno@clisp.org>
11973
11974         * modules/javaversion (Makefile.am): Remove DEFS setting.
11975         (Depends-on): Add configmake, for PKGDATADIR definition.
11976
11977 2006-09-17  Bruno Haible  <bruno@clisp.org>
11978
11979         * gnulib-tool (func_create_testdir): Rewrite all files at once.
11980
11981 2006-09-17  Bruno Haible  <bruno@clisp.org>
11982
11983         * gnulib-tool (func_append): New function, stolen from libtool.m4.
11984         (func_modules_transitive_closure, func_modules_add_dummy,
11985         func_modules_to_filelist, func_import, func_create_testdir,
11986         func_create_megatestdir, ...): Use it wherever possible.
11987         Suggested by Ralf Wildenhues.
11988
11989 2006-09-16  Karl Berry  <karl@gnu.org>
11990
11991         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
11992         to avoid sectioning errors.
11993         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
11994         [ifinfo]: blank line after @center-ed titles.
11995         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
11996         Spell FSF address consistently with others.
11997         (These changes approved by rms.)
11998
11999 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12000
12001         Speed up by a factor of 1.61.
12002         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
12003         already checked module names again.
12004
12005 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12006
12007         Speed up by a factor of 1.13.
12008         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
12009         for new_files, and the input to func_add_or_update.
12010
12011 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12012
12013         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
12014         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
12015
12016 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
12017
12018         * modules/mkancesdirs (Depends-on): Add fcntl.
12019         * modules/savewd: New file.
12020         * MODULES.html.sh (File system functions): Add savewd.
12021
12022         * modules/configmake (Makefile.am): Add support for the
12023         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
12024
12025 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
12026
12027         * m4/savewd.m4: New file.
12028
12029 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
12030
12031         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
12032         (dirchownmod): New arg FD.  All callers changed.
12033         Use FD rather than opening the directory ourself, as opening is
12034         now the caller's responsibility.
12035         * lib/dirchownmod.h: Likewise.
12036         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
12037         hosts that require <sys/types.h> before <sys/stat.h>.  Include
12038         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
12039         (test_dir): Remove.
12040         (mkancesdirs): Return length of prefix of FILE that has already
12041         been made, or -2 if there is a child doing the work.  Redo
12042         algorithm so that it is O(N) rather than O(N**2).  Optimize away
12043         ".", and treat ".." specially since it might stray back into
12044         already-created areas.  Use a subprocess if necessary.  New arg
12045         WD; all users changed.  MAKE_DIR function should now return 1
12046         if it creates a directory that is not readable.  Return -2 if
12047         a child process is spun off.
12048         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
12049         Adjust signature to match code.
12050         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
12051         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
12052         all users changed.
12053         * lib/savewd.c, lib/savewd.h: New files.
12054
12055 2006-09-15  Jim Meyering  <jim@meyering.net>
12056
12057         * modules/rename-dest-slash: New module.
12058         * MODULES.html.sh (posix_compat): Add it here.
12059
12060         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
12061
12062 2006-09-15  Jim Meyering  <jim@meyering.net>
12063
12064         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
12065         file.
12066
12067         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
12068
12069 2006-09-15  Jim Meyering  <jim@meyering.net>
12070
12071         * lib/rename-dest-slash.c (has_trailing_slash): Use
12072         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
12073         (rpl_rename_dest_slash): Perform the cheaper trailing slash
12074         test before testing whether SRC is a directory.
12075         Suggestions from Bruno Haible.
12076
12077         Avoid a warning about an unused variable.
12078         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
12079         into the #ifdef block where it's used.
12080
12081         * lib/rename-dest-slash.c: New file.
12082
12083 2006-09-14  Bruno Haible  <bruno@clisp.org>
12084
12085         * lib/allocsa.c: Include <config.h> unconditionally.
12086         * lib/asnprintf.c: Likewise.
12087         * lib/asprintf.c: Likewise.
12088         * lib/c-strcasecmp.c: Likewise.
12089         * lib/c-strcasestr.c: Likewise.
12090         * lib/c-strncasecmp.c: Likewise.
12091         * lib/c-strstr.c: Likewise.
12092         * lib/classpath.c: Likewise.
12093         * lib/clean-temp.c: Likewise.
12094         * lib/concatpath.c: Likewise.
12095         * lib/copy-file.c: Likewise.
12096         * lib/csharpcomp.c: Likewise.
12097         * lib/csharpexec.c: Likewise.
12098         * lib/execute.c: Likewise.
12099         * lib/fatal-signal.c: Likewise.
12100         * lib/findprog.c: Likewise.
12101         * lib/fwriteerror.c: Likewise.
12102         * lib/gl_array_list.c: Likewise.
12103         * lib/gl_array_oset.c: Likewise.
12104         * lib/gl_avltree_list.c: Likewise.
12105         * lib/gl_avltree_oset.c: Likewise.
12106         * lib/gl_avltreehash_list.c: Likewise.
12107         * lib/gl_carray_list.c: Likewise.
12108         * lib/gl_linked_list.c: Likewise.
12109         * lib/gl_linkedhash_list.c: Likewise.
12110         * lib/gl_list.c: Likewise.
12111         * lib/gl_oset.c: Likewise.
12112         * lib/gl_rbtree_list.c: Likewise.
12113         * lib/gl_rbtree_oset.c: Likewise.
12114         * lib/gl_rbtreehash_list.c: Likewise.
12115         * lib/imaxabs.c: Likewise.
12116         * lib/imaxdiv.c: Likewise.
12117         * lib/javacomp.c: Likewise.
12118         * lib/javaexec.c: Likewise.
12119         * lib/javaversion.c: Likewise.
12120         * lib/linebreak.c: Likewise.
12121         * lib/localcharset.c: Likewise.
12122         * lib/lock.c: Likewise.
12123         * lib/mbchar.c: Likewise.
12124         * lib/mbswidth.c: Likewise.
12125         * lib/mkdtemp.c: Likewise.
12126         * lib/pipe.c: Likewise.
12127         * lib/printf-args.c: Likewise.
12128         * lib/printf-parse.c: Likewise.
12129         * lib/progname.c: Likewise.
12130         * lib/progreloc.c: Likewise.
12131         * lib/readlink.c: Likewise.
12132         * lib/sh-quote.c: Likewise.
12133         * lib/stpcpy.c: Likewise.
12134         * lib/stpncpy.c: Likewise.
12135         * lib/strcasecmp.c: Likewise.
12136         * lib/strcasestr.c: Likewise.
12137         * lib/strcspn.c: Likewise.
12138         * lib/striconv.c: Likewise.
12139         * lib/strncasecmp.c: Likewise.
12140         * lib/strnlen1.c: Likewise.
12141         * lib/strstr.c: Likewise.
12142         * lib/strtok_r.c: Likewise.
12143         * lib/tls.c: Likewise.
12144         * lib/tmpdir.c: Likewise.
12145         * lib/unicodeio.c: Likewise.
12146         * lib/unsetenv.c: Likewise.
12147         * lib/vasnprintf.c: Likewise.
12148         * lib/vasprintf.c: Likewise.
12149         * lib/wait-process.c: Likewise.
12150         * lib/xallocsa.c: Likewise.
12151         * lib/xsetenv.c: Likewise.
12152         * lib/xstriconv.c: Likewise.
12153
12154 2006-09-13  Simon Josefsson  <jas@extundo.com>
12155
12156         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
12157         that internally, suggested by Ralf Wildenhues
12158         <Ralf.Wildenhues@gmx.de>.
12159
12160 2006-09-13  Simon Josefsson  <jas@extundo.com>
12161
12162         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
12163         @LIBOBJS@.
12164         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12165
12166 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
12167
12168         * lib/_fpending.c: Include <config.h> unconditionally, since we no
12169         longer worry about uses that don't define HAVE_CONFIG_H.
12170         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
12171         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
12172         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
12173         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
12174         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
12175         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
12176         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
12177         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
12178         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
12179         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
12180         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
12181         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
12182         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
12183         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
12184         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
12185         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
12186         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
12187         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
12188         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
12189         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
12190         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
12191         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
12192         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
12193         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
12194         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
12195         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
12196         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
12197         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
12198         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
12199         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
12200         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
12201         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
12202         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
12203         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
12204         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
12205         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
12206         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
12207         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
12208         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
12209         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
12210         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
12211         Likewise.
12212
12213 2006-09-13  Eric Blake  <ebb9@byu.net>
12214
12215         * lib/getopt.c: Fix typo in last commit.
12216
12217 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12218
12219         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
12220         dgettext.
12221
12222 2006-09-12  Jim Meyering  <jim@meyering.net>
12223
12224         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
12225         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
12226         Reported by Nelson H. F. Beebe.
12227
12228 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
12229
12230         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
12231         program_invocation_name and program_invocation_short_name are
12232         initialized.
12233         * lib/argp-namefrob.h: Move declarations of program_invocation_name
12234         and program_invocation_short_name to argp.h, so they are visible
12235         to user programs.
12236         * lib/argp.h: Likewise
12237
12238 2006-09-10  Bruno Haible  <bruno@clisp.org>
12239
12240         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
12241         m4/inttypes_h.m4, m4/uintmax_t.m4.
12242
12243 2006-09-10  Bruno Haible  <bruno@clisp.org>
12244
12245         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
12246         gl_AC_TYPE_UINTMAX_T.
12247
12248 2006-09-10  Bruno Haible  <bruno@clisp.org>
12249
12250         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
12251
12252 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
12253
12254         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
12255         convention.  Text proposed by Bruno Haible.
12256         (struct argp_option): Document the use of N_() wrappers.
12257
12258         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
12259         '\v', and translate the two parts separately, instead of feeding
12260         the whole string to gettext.  This allows to exclude
12261         '\v' from the strings visible to the translator by writing doc
12262         strings as N_("..") "\v" N_("..").
12263
12264 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
12265
12266         * config/srclist.txt: Undo latest change; the bug was fixed.
12267
12268 2006-09-09  Bruno Haible  <bruno@clisp.org>
12269
12270         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
12271         assignments if building a library without libtool.
12272         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
12273         in func_emit_lib_Makefile_am.
12274         (func_import): When building a static library libfoo.a, arrange to
12275         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
12276         (func_create_testdir): Likewise.
12277         * modules/gc (configure.ac, Makefile.am): If building statically,
12278         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
12279         * modules/iconvme (configure.ac, Makefile.am): Likewise.
12280         * modules/striconv (configure.ac, Makefile.am): Likewise.
12281         Based on a suggestion by Ralf Wildenhues.
12282
12283 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
12284
12285         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
12286         Check for unistd.h too, since Autoconf doesn't assume POSIX.
12287         Also:
12288
12289         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
12290         Add year_2050_test to catch glibc bug 2821
12291         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
12292
12293         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
12294         Prefer #ifdef to #if.
12295
12296         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
12297         Return from 'main' instead of calling 'exit'.
12298
12299 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
12300
12301         * lib/mktime.c (guess_time_tm): Fix bug where mktime
12302         returned the maximum time_t value rather than (time_t) -1.
12303         Problem originally reported by William Bardwell
12304         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
12305
12306         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
12307         Moved to here ...
12308         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
12309         ... from here.
12310
12311 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
12312
12313         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
12314         2821 is fixed.
12315
12316 2006-09-08  Jim Meyering  <jim@meyering.net>
12317
12318         Don't make generated files read-only.  That would bother too many
12319         people.  However, do retain the ability to work when targets are
12320         read-only: remove the destination and temporary files before writing
12321         them (when generated via sed or echo), or by using the -f option for
12322         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
12323         * modules/alloca-opt, modules/argz, modules/arpa_inet:
12324         * modules/byteswap, modules/configmake, modules/fcntl:
12325         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
12326         * modules/localcharset, modules/netinet_in, modules/poll:
12327         * modules/stdbool, modules/stdint, modules/sys_select:
12328         * modules/sys_socket, modules/sys_stat, modules/sysexits:
12329
12330 2006-09-08  Jim Meyering  <jim@meyering.net>
12331
12332         Avoid new build failure on FreeBSD 6.0.
12333         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
12334         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
12335         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
12336
12337 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12338
12339         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
12340
12341 2006-09-07  Jim Meyering  <jim@meyering.net>
12342
12343         Fix global typo in last change: use chmod u-w, not chmod u-x.
12344         Spotted by Paul Eggert and Bruce Korb.
12345         * modules/alloca-opt, modules/argz, modules/arpa_inet:
12346         * modules/byteswap, modules/configmake, modules/fcntl:
12347         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
12348         * modules/localcharset, modules/netinet_in, modules/poll:
12349         * modules/stdbool, modules/stdint, modules/sys_select:
12350         * modules/sys_socket, modules/sys_stat, modules/sysexits:
12351
12352 2006-09-06  Jim Meyering  <jim@meyering.net>
12353
12354         Make generated files be read-only.
12355         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
12356         Ensure that each generated file is now read-only.
12357         * modules/argz: Likewise.
12358         * modules/arpa_inet: Likewise.
12359         * modules/byteswap: Likewise.
12360         * modules/configmake: Likewise.
12361         * modules/fcntl: Likewise.
12362         * modules/fnmatch: Likewise.
12363         * modules/getopt: Likewise.
12364         * modules/glob: Likewise.
12365         * modules/inttypes: Likewise.
12366         * modules/netinet_in: Likewise.
12367         * modules/poll: Likewise.
12368         * modules/stdbool: Likewise.
12369         * modules/stdint: Likewise.
12370         * modules/sys_select: Likewise.
12371         * modules/sys_socket: Likewise.
12372         * modules/sys_stat: Likewise.
12373         * modules/sysexits: Likewise.
12374         * modules/localcharset: Same as above, but continue using temporary
12375         file named "t-$@" (why different?) rather than the "$@-t" used
12376         everywhere else.
12377
12378         * modules/sysexits (Makefile.am): Replace literal occurrences
12379         of "sysexit.h" more readable, and more consistent, "$@".
12380
12381 2006-09-06  Bruno Haible  <bruno@clisp.org>
12382
12383         * modules/striconv: New file.
12384         * modules/xstriconv: New file.
12385         * MODULES.html.sh (Internationalization functions): Add striconv,
12386         xstriconv.
12387
12388 2006-09-06  Bruno Haible  <bruno@clisp.org>
12389
12390         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
12391         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
12392         not using libtool correctly.
12393
12394 2006-09-06  Bruno Haible  <bruno@clisp.org>
12395
12396         * lib/striconv.h: New file.
12397         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
12398         iconvstring.c.
12399         * lib/xstriconv.h: New file.
12400         * lib/xstriconv.c: New file.
12401
12402 2006-09-06  Bruno Haible  <bruno@clisp.org>
12403
12404         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
12405         lib_..._LDFLAGS.
12406
12407 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12408
12409         * lib/argz_.h: Sync from Libtool.
12410
12411         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
12412                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12413
12414         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
12415
12416 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
12417
12418         * modules/trim: New file.
12419
12420 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
12421
12422         * lib/trim.h: New file.
12423         * lib/trim.c: New file.
12424
12425 2006-09-05  Bruno Haible  <bruno@clisp.org>
12426
12427         * MODULES.html.sh (String handling): Add trim.
12428
12429 2006-09-04  Karl Berry  <karl@gnu.org>
12430
12431         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
12432         until next release.
12433
12434 2006-09-03  Bruno Haible  <bruno@clisp.org>
12435
12436         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
12437         correctly.
12438
12439 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
12440
12441         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
12442         not gl_GETLOADAVG.  Omit unneeded semicolons.
12443         Problems reported by Ralf Wildenhues in
12444         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
12445         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
12446         at the end, which is the usual gnulib style.
12447
12448         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
12449         of doing all the work ourselves.
12450         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
12451         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
12452
12453 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
12454
12455         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
12456         Problem reported by Ralf Wildenhues in
12457         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
12458
12459         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
12460         HAVE_STRUCT_STATFS_F_FSTYPENAME.
12461
12462 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
12463
12464         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
12465         yesterday's patch by changing test -n to test -z.
12466
12467 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
12468
12469         * modules/getloadavg (Files): Add m4/getloadavg.m4.
12470         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
12471         the former is now obsolescent.
12472
12473         * modules/chdir-long (Depends-on): Add fcntl.
12474
12475 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
12476
12477         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
12478         obsolescent, and programs should use gnulib instead.
12479         * m4/getloadavg.m4: New file, with contents taken from Autoconf
12480         but with prefixes changed.
12481
12482 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
12483
12484         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
12485         or stdbool.h, because they might not exist while configuring.
12486
12487         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
12488         Don't include unistd.h or limits.h; not needed, since chdir-long.h
12489         does that for us.
12490         (O_DIRECTORY): Remove.
12491
12492 2006-08-31  Eric Blake  <ebb9@byu.net>
12493
12494         * gnulib-tool: Don't let emacs change spaces to TAB.
12495
12496 2006-08-31  Bruno Haible  <bruno@clisp.org>
12497
12498         * gnulib-tool: When calling func_import more than once, do it in a
12499         subshell.
12500         Reported by Eric Blake <ebb9@byu.net>.
12501
12502 2006-08-31  Bruno Haible  <bruno@clisp.org>
12503
12504         * gnulib-tool (nl): Remove variable.
12505         (sed_transform_lib_file): Use more robust test for config-h module.
12506         (func_import): Fix typo in 2006-08-25 patch.
12507
12508 2006-08-31  Bruno Haible  <bruno@clisp.org>
12509
12510         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
12511         specified, augment Makefile.am variables instead of assigning them.
12512
12513 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
12514
12515         Work around a bug in both the Linux and SunOS 64-bit kernels:
12516         nanosleep mishandles sleeps for longer than 2**31 seconds.
12517         Problem reported by Frank v Waveren in
12518         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
12519         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
12520         Check for nanosleep bug.
12521         (LIB_NANOSLEEP): Append clock_gettime library if needed.
12522
12523 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
12524
12525         Work around a bug in both the Linux and SunOS 64-bit kernels:
12526         nanosleep mishandles sleeps for longer than 2**31 seconds.
12527         Problem reported by Frank v Waveren in
12528         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
12529         * lib/nanosleep.c (BILLION): New constant.
12530         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
12531         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
12532         implementation.
12533
12534 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
12535
12536         * modules/nanosleep (Depends-on): Add gettime.
12537
12538 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
12539         and Simon Josefsson  <jas@extundo.com>
12540         and Oskar Liljeblad  <oskar@osk.mine.nu>
12541
12542         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
12543         * gnulib-tool (func_import): New license type 'unmodifiable license
12544         text'.
12545         * modules/fdl: Use it.  Longer description.
12546         * module/gpl, module/lgpl: New files.
12547
12548 2006-08-30  Jim Meyering  <jim@meyering.net>
12549
12550         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
12551         shadowing the parameter.
12552
12553 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12554
12555         Sync from Libtool:
12556
12557         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12558
12559         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
12560         sharing with gnulib.  Report by Eric Blake.
12561
12562 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
12563
12564         * modules/isapipe: New file.
12565         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
12566
12567 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
12568
12569         * modules/configmake (Makefile.am): Add a comment, and omit
12570         the CONFIGMAKE_ prefix from generated macro names.  Suggested
12571         by Bruno Haible.
12572
12573 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
12574
12575         * m4/isapipe.m4: New file.
12576
12577 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
12578
12579         * lib/isapipe.c, lib/isapipe.h: New files.
12580
12581 2006-08-29  Jim Meyering  <jim@meyering.net>
12582
12583         * modules/configmake (Makefile.am): Make configmake.h depend on
12584         Makefile.  Otherwise, a stale configmake.h could hang around.
12585
12586 2006-08-29  Eric Blake  <ebb9@byu.net>
12587
12588         * lib/error.c (error_at_line, print_errno_message): Match libc, after
12589         resolution of upstream bug 3044.
12590
12591 2006-08-29  Bruno Haible  <bruno@clisp.org>
12592
12593         * modules/localcharset (Depends-on): Add configmake.
12594         (Makefile.am): Remove setting of LIBDIR through DEFS.
12595
12596 2006-08-29  Bruno Haible  <bruno@clisp.org>
12597
12598         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
12599         defined.
12600
12601 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
12602
12603         * modules/fcntl: New file.
12604         * modules/chdir-safer (Depends-on): Add fcntl.
12605         * modules/fts: Likewise.
12606         * modules/mkdir-p: Likewise.
12607
12608         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
12609         This undoes the most recent change, since we're now addressing the
12610         problem in a different way.
12611
12612         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
12613         into output, since the output might be called Makefile.am even
12614         if $makefile_name is something different.
12615         (func_import): Use $makefile_am rather than
12616         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
12617         empty.
12618
12619         * modules/inttypes (Files): Add m4/inttypes-h.m4.
12620
12621 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
12622
12623         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
12624         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
12625         recent change to stdint.m4, since we're now addressing the problem in a
12626         different way.
12627
12628 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
12629
12630         * m4/fcntl_h.m4: New file.
12631
12632 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
12633
12634         * lib/fcntl_.h: New file.
12635         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
12636         the fcntl module.
12637         * lib/dirchownmod.c: Likewise.
12638         * lib/fts.c: Likewise.
12639
12640         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
12641         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
12642         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
12643         just before including <inttypes.h>, to avoid circular inclusion.
12644
12645 2006-08-28  Jim Meyering  <jim@meyering.net>
12646
12647         * doc/visibility.texi: Actually read and correct the grammar of the
12648         sentence affected by yesterday's change.
12649
12650 2006-08-28  Eric Blake  <ebb9@byu.net>
12651
12652         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
12653         needs wrapper.
12654
12655 2006-08-28  Eric Blake  <ebb9@byu.net>
12656
12657         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
12658
12659 2006-08-28  Eric Blake  <ebb9@byu.net>
12660
12661         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
12662
12663 2006-08-28  Bruno Haible  <bruno@clisp.org>
12664
12665         * modules/c-strstr: New file, from GNU gettext.
12666         * MODULES.html.sh (String handling): Add c-strstr.
12667
12668 2006-08-28  Bruno Haible  <bruno@clisp.org>
12669
12670         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
12671         macros.
12672         Reported by Eric Blake.
12673
12674 2006-08-28  Bruno Haible  <bruno@clisp.org>
12675
12676         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
12677         (VASNPRINTF): Return a string of length > INT_MAX without failing.
12678         * lib/vasprintf.c: Include errno.h, limits.h.
12679         (EOVERFLOW): New fallback definition.
12680         (vasprintf): Test here whether the string length is > INT_MAX.
12681         * lib/vsnprintf.c: Include errno.h, limits.h.
12682         (EOVERFLOW): New fallback definition.
12683         (vsnprintf): Fix bug when generated string was too long for the buffer.
12684         Test here whether the string length is > INT_MAX.
12685
12686 2006-08-28  Bruno Haible  <bruno@clisp.org>
12687
12688         * lib/inttypes_.h (SCNX*): Remove definitions.
12689         Reported by Eric Blake.
12690
12691 2006-08-28  Bruno Haible  <bruno@clisp.org>
12692
12693         * lib/c-strstr.h: New file, from GNU gettext.
12694         * lib/c-strstr.c: New file, from GNU gettext.
12695
12696 2006-08-28  Bruno Haible  <bruno@clisp.org>
12697
12698         * gnulib-tool: Reorder some statements.
12699
12700 2006-08-28  Bruno Haible  <bruno@clisp.org>
12701
12702         * gnulib-tool: New option --makefile-name.
12703         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
12704         $makefile_name.
12705         (func_import): Write $makefile_name to the cache file, and read it from
12706         there unless explicitly specified. Use $makefile_name as file name
12707         instead of Makefile.am. Adjust the recommendations accordingly.
12708
12709 2006-08-28  Bruno Haible  <bruno@clisp.org>
12710
12711         * gnulib-tool (func_verify_module): Check against misapplying patch.
12712
12713 2006-08-28  Bruno Haible  <bruno@clisp.org>
12714
12715         * gnulib-tool (func_relativize, func_relconcat): New functions.
12716         Give an error if --local-dir is given with --update.
12717         Remove trailing slashes from $local_gnulib_dir.
12718         (func_import): Store the relativized $local_gnulib_dir in
12719         gnulib-cache.m4, and read it from there if not specified explicitly.
12720
12721 2006-08-28  Bruno Haible  <bruno@clisp.org>
12722
12723         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
12724         is the current directory. Respect also $local_gnulib_dir.
12725
12726 2006-08-28  Bruno Haible  <bruno@clisp.org>
12727             Simon Josefsson  <jas@extundo.com>
12728
12729         BeOS portability.
12730         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
12731
12732 2006-08-27  Jim Meyering  <jim@meyering.net>
12733
12734         * doc/visibility.texi: Remove duplicate word: "pointer".
12735
12736 2006-08-26  Bruno Haible  <bruno@clisp.org>
12737
12738         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
12739         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
12740         (Makefile.am): Create inttypes.h from inttypes_.h.
12741         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
12742
12743         * modules/imaxabs: New file.
12744
12745         * modules/imaxdiv: New file.
12746
12747 2006-08-26  Bruno Haible  <bruno@clisp.org>
12748
12749         * m4/inttypes.m4: New file.
12750         * m4/_inttypes_h.m4: Remove file.
12751         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
12752         PRI_MACROS_BROKEN.
12753         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
12754
12755         * m4/imaxabs.m4: New file.
12756
12757         * m4/imaxdiv.m4: New file.
12758
12759 2006-08-26  Bruno Haible  <bruno@clisp.org>
12760
12761         * lib/inttypes_.h: New file.
12762         * lib/inttypes.h: Remove file.
12763         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
12764
12765         * lib/imaxabs.c: New file.
12766
12767         * lib/imaxdiv.c: New file.
12768
12769 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
12770
12771         New config-h module, so that "make" output needn't be cluttered
12772         by -DHAVE_CONFIG_H.
12773         * MODULES.html.sh (Support for building libraries and executables):
12774         Add config-h.
12775         * modules/config-h: New file.
12776         * gnulib-tool (nl, sed_transform_lib_file): New vars.
12777         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
12778         the config-h module is used.
12779
12780         New configmake module, so that "make" output needn't be cluttered
12781         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
12782         * MODULES.html.sh (Support for building libraries and executables):
12783         Add configmake.
12784         * modules/configmake: New file.
12785
12786 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
12787
12788         * m4/config-h.m4: New file.
12789
12790 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
12791
12792         * config/srclist.txt: Add elisp-comp.
12793
12794 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
12795
12796         * MODULES.html.sh (Support for building libraries and executables):
12797         Add elisp-comp.
12798         * build-aux/elisp-comp: New file.
12799         * modules/elisp-comp: New file.
12800
12801 2006-08-24  Bruno Haible  <bruno@clisp.org>
12802
12803         * gnulib-tool (func_create_testdir): Use non-default values of
12804         sourcebase and m4base.
12805
12806 2006-08-24  Bruno Haible  <bruno@clisp.org>
12807
12808         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
12809         HTML structure.
12810
12811 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
12812
12813         * modules/openat (Depends-on): Add lchown.
12814
12815 2006-08-23  Bruno Haible  <bruno@clisp.org>
12816
12817         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
12818         of gl_LOCK_EARLY instead of gl_LOCK.
12819
12820 2006-08-23  Bruno Haible  <bruno@clisp.org>
12821
12822         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
12823         on OSF/1 to no.
12824         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
12825
12826 2006-08-23  Bruno Haible  <bruno@clisp.org>
12827
12828         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
12829         as unusable.
12830
12831         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
12832         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
12833         (gl_LOCK): New macro.
12834
12835 2006-08-22  Simon Josefsson  <jas@extundo.com>
12836
12837         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
12838         to md5 module.
12839
12840 2006-08-22  Simon Josefsson  <jas@extundo.com>
12841
12842         * MODULES.html.sh: Add "Support for maintaining and release
12843         projects".
12844
12845         * build-aux/gnupload: New file, from coreutils.
12846
12847 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
12848
12849         Avoid the need for AC_LIBSOURCES in m4 macros.
12850         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
12851         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
12852         * modules/check-version (EXTRA_DIST): Add check-version.h.
12853         * modules/crc (EXTRA_DIST): Add crc.h.
12854         * modules/des (EXTRA_DIST): Add des.h.
12855         * modules/gc (EXTRA_DIST): Add gc.h.
12856         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
12857         * modules/getline (EXTRA_DIST): Add getline.h.
12858         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
12859         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
12860         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
12861         * modules/md2 (EXTRA_DIST): Add md2.h.
12862         * modules/md4 (EXTRA_DIST): Add md4.h.
12863         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
12864         * modules/read-file (EXTRA_DIST): Add read-file.h.
12865         * modules/readline (EXTRA_DIST): Add readline.h.
12866         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
12867         rijndael-api-fst.h.
12868
12869 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
12870
12871         * m4/rijndael.m4 (gl_ARCFOUR):
12872         * m4/arctwo.m4 (gl_ARCTWO):
12873         * m4/check-version.m4 (gl_CHECK_VERSION):
12874         * m4/crc.m4 (gl_CRC):
12875         * m4/des.m4 (gl_DES):
12876         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
12877         * m4/gc.m4 (gl_GC):
12878         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
12879         * m4/getline.m4 (gl_FUNC_GETLINE):
12880         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
12881         * m4/hmac-md5.m4 (gl_HMAC_MD5):
12882         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
12883         * m4/md2.m4 (gl_MD2):
12884         * m4/md4.m4 (gl_MD4):
12885         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
12886         * m4/read-file.m4 (gl_FUNC_READ_FILE):
12887         * m4/readline.m4 (gl_FUNC_READLINE):
12888         * m4/rijndael.m4 (gl_RIJNDAEL):
12889         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
12890         to get the necessary .h files and whatnot.
12891
12892 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
12893
12894         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
12895         gnulib rather than the other way around.
12896         * config/srclistvars.sh (COREUTILS): Remove.
12897
12898 2006-08-22  Jim Meyering  <jim@meyering.net>
12899
12900         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
12901
12902         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
12903
12904 2006-08-22  Eric Blake  <ebb9@byu.net>
12905
12906         * modules/regexprops-generic: New file.
12907         * MODULES.html.sh (Support for building documentation): List it.
12908
12909 2006-08-22  Eric Blake  <ebb9@byu.net>
12910
12911         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
12912         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
12913         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
12914         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
12915
12916 2006-08-22  Bruno Haible  <bruno@clisp.org>
12917
12918         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
12919         and lib_LTLIBRARIES like the other lib_* variables.
12920
12921 2006-08-22  Bruno Haible  <bruno@clisp.org>
12922
12923         * build-aux/x-to-1.in: New file, from GNU gettext.
12924
12925 2006-08-22  Bruno Haible  <bruno@clisp.org>
12926
12927         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
12928         <utmpx.h> exists.
12929
12930 2006-08-22  Bruno Haible  <bruno@clisp.org>
12931
12932         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
12933         <utmpx.h> exists.
12934
12935 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
12936
12937         BeOS portability.
12938         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
12939         exist.
12940         Problem reported by Bruno Haible.
12941
12942 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
12943
12944         Avoid the need for AC_LIBSOURCES in m4 macros.
12945         * modules/acl (EXTRA_DIST): Add acl.h.
12946         * modules/argmatch (Files): Add m4/argmatch.m4.
12947         (configure.ac): Add gl_ARGMATCH.
12948         (EXTRA_DIST): Renamed from lib_SOURCES, for
12949         consistency with the other modules.  Remove argmatch.c.
12950         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
12951         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
12952         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
12953         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
12954         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
12955         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
12956         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
12957         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
12958         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
12959         * modules/closeout (EXTRA_DIST): Add closeout.h.
12960         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
12961         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
12962         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
12963         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
12964         dirname.h; remove basename.c and stripslash.c.
12965         * modules/exclude (EXTRA_DIST): Add exclude.h.
12966         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
12967         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
12968         * modules/file-type (EXTRA_DIST): Add file-type.h.
12969         * modules/filemode (EXTRA_DIST): Add filemode.h.
12970         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
12971         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
12972         * modules/fpending (EXTRA_DIST): Add __fpending.h.
12973         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
12974         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
12975         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
12976         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
12977         * modules/getdate (EXTRA_DIST): Add getdate.c.
12978         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
12979         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
12980         * modules/getpass (EXTRA_DIST): Add getpass.h.
12981         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
12982         * modules/group-member (EXTRA_DIST): Add group-member.h.
12983         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
12984         * modules/hash (EXTRA_DIST): Add hash.h.
12985         * modules/human (EXTRA_DIST): Add human.h.
12986         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
12987         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
12988         * modules/lchown (EXTRA_DIST): Add lchown.h.
12989         * modules/long-options (EXTRA_DIST): Add long-options.h.
12990         * modules/lstat (EXTRA_DIST): Add lstat.h.
12991         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
12992         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
12993         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
12994         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
12995         * modules/memxor (EXTRA_DIST): Add memxor.h.
12996         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
12997         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
12998         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
12999         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
13000         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
13001         * modules/physmem (EXTRA_DIST): Add physmem.h.
13002         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
13003         * modules/posixver (EXTRA_DIST): Add posixver.h.
13004         * modules/quote (EXTRA_DIST): Add quote.h.
13005         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
13006         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
13007         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
13008         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
13009         regex_internal.h regexec.c.
13010         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
13011         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
13012         * modules/same (EXTRA_DIST): Add same.h.
13013         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
13014         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
13015         * modules/savedir (EXTRA_DIST): Add savedir.h.
13016         * modules/sha1 (EXTRA_DIST): Add sha1.h.
13017         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
13018         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
13019         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
13020         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
13021         * modules/strdup (EXTRA_DIST): Add strdup.h.
13022         * modules/strftime (EXTRA_DIST): Add strftime.h.
13023         * modules/strndup (EXTRA_DIST): Add strndup.h.
13024         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
13025         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
13026         * modules/time_r (EXTRA_DIST): Add time_r.h.
13027         * modules/timespec (EXTRA_DIST): Add timespec.h.
13028         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
13029         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
13030         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
13031         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
13032         * modules/userspec (EXTRA_DIST): Add userspec.h.
13033         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
13034         * modules/utimens (EXTRA_DIST): Add utimens.h.
13035         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
13036         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
13037         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
13038         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
13039         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
13040         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
13041         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
13042         * modules/yesno (EXTRA_DIST): Add yesno.h.
13043
13044 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
13045
13046         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
13047
13048         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
13049         * m4/dev-ino.m4, same-inode.m4: Remove.
13050
13051         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
13052         * m4/acl.m4 (AC_FUNC_ACL):
13053         * m4/backupfile.m4 (gl_BACKUPFILE):
13054         * m4/c-strtod.m4 (gl_C99_STRTOLD):
13055         * m4/canon-host.m4 (gl_CANON_HOST):
13056         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
13057         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
13058         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
13059         * m4/cloexec.m4 (gl_CLOEXEC):
13060         * m4/close-stream.m4 (gl_CLOSE_STREAM):
13061         * m4/closeout.m4 (gl_CLOSEOUT):
13062         * m4/dirfd.m4 (gl_FUNC_DIRFD):
13063         * m4/dirname.m4 (gl_DIRNAME):
13064         * m4/exclude.m4 (gl_EXCLUDE):
13065         * m4/exitfail.m4 (gl_EXITFAIL):
13066         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
13067         * m4/file-type.m4 (gl_FILE_TYPE):
13068         * m4/filemode.m4 (gl_FILEMODE):
13069         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
13070         * m4/fpending.m4 (gl_FUNC_FPENDING):
13071         * m4/fprintftime.m4 (gl_FPRINTFTIME):
13072         * m4/fts.m4 (gl_FUNC_FTS):
13073         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
13074         * m4/getdate.m4 (gl_GETDATE):
13075         * m4/gethrxtime.m4 (gl_GETHRXTIME):
13076         * m4/getpagesize.m4 (gl_GETPAGESIZE):
13077         * m4/getpass.m4 (gl_FUNC_GETPASS):
13078         * m4/gettime.m4 (gl_GETTIME):
13079         * m4/getugroups.m4 (gl_GETUGROUPS):
13080         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
13081         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
13082         * m4/hard-locale.m4 (gl_HARD_LOCALE):
13083         * m4/hash.m4 (gl_HASH):
13084         * m4/idcache.m4 (gl_IDCACHE):
13085         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
13086         * m4/lchown.m4 (gl_FUNC_LCHOWN):
13087         * m4/long-options.m4 (gl_LONG_OPTIONS):
13088         * m4/lstat.m4 (gl_FUNC_LSTAT):
13089         * m4/md5.m4 (gl_MD5):
13090         * m4/memcasecmp.m4 (gl_MEMCASECMP):
13091         * m4/memcoll.m4 (gl_MEMCOLL):
13092         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
13093         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
13094         * m4/memxor.m4 (gl_MEMXOR):
13095         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
13096         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
13097         * m4/modechange.m4 (gl_MODECHANGE):
13098         * m4/mountlist.m4 (gl_MOUNTLIST):
13099         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
13100         * m4/openat.m4 (gl_FUNC_OPENAT):
13101         * m4/pathmax.m4 (gl_PATHMAX):
13102         * m4/physmem.m4 (gl_PHYSMEM):
13103         * m4/posixtm.m4 (gl_POSIXTM):
13104         * m4/posixver.m4 (gl_POSIXVER):
13105         * m4/quote.m4 (gl_QUOTE):
13106         * m4/quotearg.m4 (gl_QUOTEARG):
13107         * m4/readtokens.m4 (gl_READTOKENS):
13108         * m4/readutmp.m4 (gl_READUTMP):
13109         * m4/regex.m4 (gl_REGEX):
13110         * m4/safe-read.m4 (gl_SAFE_READ):
13111         * m4/safe-write.m4 (gl_SAFE_WRITE):
13112         * m4/same.m4 (gl_SAME):
13113         * m4/save-cwd.m4 (gl_SAVE_CWD):
13114         * m4/savedir.m4 (gl_SAVEDIR):
13115         * m4/settime.m4 (gl_SETTIME):
13116         * m4/sha1.m4 (gl_SHA1):
13117         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
13118         * m4/stat-macros.m4 (gl_STAT_MACROS):
13119         * m4/stat-time.m4 (gl_STAT_TIME):
13120         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
13121         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
13122         * m4/strdup.m4 (gl_FUNC_STRDUP):
13123         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
13124         * m4/strndup.m4 (gl_FUNC_STRNDUP):
13125         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
13126         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
13127         * m4/time_r.m4 (gl_TIME_R):
13128         * m4/timespec.m4 (gl_TIMESPEC):
13129         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
13130         * m4/unlinkdir.m4 (gl_UNLINKDIR):
13131         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
13132         * m4/userspec.m4 (gl_USERSPEC):
13133         * m4/utimecmp.m4 (gl_UTIMECMP):
13134         * m4/utimens.m4 (gl_UTIMENS):
13135         * m4/xalloc.m4 (gl_XALLOC):
13136         * m4/xgetcwd.m4 (gl_XGETCWD):
13137         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
13138         * m4/xreadlink.m4 (gl_XREADLINK):
13139         * m4/xstrtod.m4 (gl_XSTRTOD):
13140         * m4/yesno.m4 (gl_YESNO):
13141         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
13142         to get the necessary .h files and whatnot.
13143
13144 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
13145             Bruno Haible  <bruno@clisp.org>
13146
13147         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
13148         /bin/sh understanding of '!' conditional negation.
13149
13150 2006-08-21  Jim Meyering  <jim@meyering.net>
13151
13152         * modules/openat (Depends-on): Really alphabetize.
13153
13154         * modules/acl (Depends-on): Add error and quote.
13155
13156         * check-module (find_included_lib_files): Add at-func.c to the
13157         ok-to-include-more-than-once white list.
13158
13159         * modules/openat (Depends-on): Add lstat.  Alphabetize.
13160
13161 2006-08-21  Bruno Haible  <bruno@clisp.org>
13162
13163         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13164         Emit a pkgdata_DATA variable only if some snippets add contents to it.
13165         Reported by Martin Lambers <marlam@marlam.de>.
13166
13167 2006-08-21  Bruno Haible  <bruno@clisp.org>
13168
13169         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
13170         specify an installation location, don't emit a noinst_LIBRARIES or
13171         noinst_LTLIBRARIES assignment.
13172
13173 2006-08-21  Bruno Haible  <bruno@clisp.org>
13174
13175         BeOS portability.
13176         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
13177         BeOS has mbrtowc() but no <wctype.h>.
13178
13179 2006-08-21  Bruno Haible  <bruno@clisp.org>
13180
13181         BeOS portability.
13182         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
13183         exist.
13184
13185 2006-08-21  Bruno Haible  <bruno@clisp.org>
13186
13187         BeOS portability.
13188         * lib/mbchar.h: Include <wctype.h> only if it exists.
13189
13190 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
13191
13192         Remove files that are no longer needed by their respective modules.
13193         * m4/obstack.m4: Remove.
13194         * m4/strerror_r.m4: Remove.
13195         * m4/uint32_t.m4: Remove.
13196         * m4/uintptr_t.m4: Remove.
13197         * m4/ullong_max.m4: Remove.
13198         * m4/xstrtoimax.m4: Remove.
13199         * m4/xstrtoumax.m4: Remove.
13200
13201         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
13202         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
13203         dependencies now capture this.
13204
13205         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
13206         Do not use AC_LIBSOURCES, since gnulib modules now do this.
13207         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
13208         * m4/human.m4 (gl_HUMAN): Likewise.
13209         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
13210         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
13211
13212         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
13213
13214         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
13215         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
13216         stdint.
13217         * m4/human.m4 (gl_HUMAN): Likewise.
13218         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
13219         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
13220         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
13221         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
13222         * m4/xstrtol (gl_XSTRTOL): Likewise.
13223
13224         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
13225         AC_TYPE_LONG_LONG_INT.
13226         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
13227         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
13228         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
13229         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
13230
13231         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
13232         on stdbool.
13233
13234         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
13235         (gl_PREREQ_XSTRTOUL): Remove.
13236
13237         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
13238
13239         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
13240         mode.
13241
13242 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
13243
13244         Add and change modules to make it easier for coreutils to use
13245         gnulib-tool.
13246         * modules/backupfile (Files): Remove m4/d-ino.m4.
13247         (Depends-on): Add d-ino.
13248         * modules/cycle-check (Depends-on): Add stdint.
13249         (lib_SOURCES): Add cycle-check.h.
13250         * modules/d-ino: New module.
13251         * modules/d-type: New module.
13252         * modules/error (Files): Remove m4/strerror_r.m4.
13253         * modules/filemode (Files): Add m4/st_dm_mode.m4.
13254         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
13255         m4/inttypes_h.m4, m4/uintmax_t.m4.
13256         (Depends-on): Add stdint.
13257         (lib_SOURCES): Add fsusage.h.
13258         * modules/getcwd (Files): Remove d-ino.m4.
13259         (Depends-on): Add d-ino.
13260         * modules/getndelim2 (Depends-on): Add stdint.
13261         * modules/glob (Files): Remove m4/d-type.m4.
13262         (Depends-on): Add d-type.
13263         * modules/host-os: New module.
13264         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
13265         m4/inttypes_h.m4, m4/uintmax_t.m4.
13266         * Depends-on: Add stdint.
13267         (lib_SOURCES): Add human.h.
13268         * modules/inttostr (Files): Remove m4/intmax_t.m4,
13269         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
13270         m4/uintmax_t.m4, m4/ulonglong.m4.
13271         (Depends-on): Add stdint.
13272         (EXTRA_DIST): Add inttostr.h.
13273         * modules/lchmod: New module.
13274         * modules/link-follow: New module.
13275         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
13276         (Depends-on): Add lchmod.
13277         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
13278         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
13279         (Depends-on): Add stdint.
13280         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
13281         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
13282         (Depends-on): Add stdint.
13283         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
13284         * modules/perl: New module.
13285         * modules/regex (Depends-on): Add stdint.
13286         * modules/rmdir-errno: New module.
13287         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
13288         m4/intmax_t.m4.
13289         (Depends-on): Add stdint.
13290         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
13291         m4/uintmax_t.m4.
13292         (Depends-on): Add stdint.
13293         * modules/unlink-busy: New module.
13294         * modules/utimecmp (Depends-on): Add stdint.
13295         * modules/uptime: New module.
13296         * modules/winsz-ioctl: New module.
13297         * modules/winsz-termios: New module.
13298         * modules/xnanosleep (Depends-on): Add nanosleep.
13299         * modules/ullong_max: Remove.
13300         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
13301         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
13302         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
13303         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
13304         (Depends-on): Add inttypes.
13305         (lib_SOURCES): Add xstrtol.h.
13306         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
13307         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
13308         * MODULES.html.sh: Move 'assert' into the assert section.
13309         Move 'dummy' into the linking section.
13310         Remove ullong_max.
13311         Add section for compatibility checks for POSIX:2001 functions,
13312         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
13313         winsz-ioctl, and winsz-termios into it.
13314         Add lchmod.
13315         Add top-level Misc section and put host-os, perl, and uptime
13316         into it.
13317
13318 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
13319
13320         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
13321         now assume the stdint module.  Do not include inttypes.h.
13322         * lib/fsusage.h: Likewise.
13323         * lib/getndelim2.c: Likewise.
13324         * lib/human.h: Likewise.
13325         * lib/inttostr.h: Likewise.
13326         * lib/obstack.c: Likewise.
13327         * lib/regex_internal.h: Likewise.
13328         * lib/tempname.c: Likewise.
13329         * lib/utimecmp.c: Likewise.
13330         * lib/xstrtol.h: Likewise.
13331
13332         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
13333
13334         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
13335         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
13336         * lib/xtime.h: Likewise.
13337
13338 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
13339
13340         * modules/openat (Files): Add lib/fchmodat.c.
13341         Fixes problem reported by Jay Youngman.
13342
13343 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
13344
13345         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
13346         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
13347
13348 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
13349             Bruno Haible  <bruno@clisp.org>
13350
13351         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
13352         and is a script that invokes bison. Tighten the code. Add comments.
13353
13354 2006-08-18  Jim Meyering  <jim@meyering.net>
13355
13356         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
13357         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
13358         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
13359         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
13360
13361 2006-08-18  Bruno Haible  <bruno@clisp.org>
13362
13363         * modules/bison-i18n: New file.
13364         * MODULES.html.sh (Internationalization functions): Add it.
13365
13366 2006-08-18  Bruno Haible  <bruno@clisp.org>
13367
13368         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
13369         sys/statvfs.h. When getmntinfo was found, check its declaration and
13370         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
13371
13372 2006-08-18  Bruno Haible  <bruno@clisp.org>
13373
13374         * m4/bison-i18n.m4: New file, from bison.
13375
13376 2006-08-18  Bruno Haible  <bruno@clisp.org>
13377
13378         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
13379         (ME_DUMMY): Treat "kernfs" as a dummy.
13380         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
13381
13382 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
13383
13384         Update from coreutils.
13385
13386         2006-08-15  Jim Meyering  <jim@meyering.net>
13387
13388         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
13389
13390         2006-01-17  Jim Meyering  <jim@meyering.net>
13391
13392         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
13393
13394         2006-01-11  Jim Meyering  <jim@meyering.net>
13395
13396         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
13397         Check for the lchmod function.
13398
13399 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
13400
13401         Update from coreutils.
13402
13403         * lib/__fpending.h: Add copyright notice.
13404         * lib/fprintftime.h: Likewise.
13405         * lib/savedir.c: Use (C) in copyright notice.
13406         * lib/savedir.h: Likewise.
13407
13408         2006-08-15  Jim Meyering  <jim@meyering.net>
13409
13410         * lib/at-func.c: New file, with the logic of all emulated at-functions.
13411         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
13412         in support of the EXPECTED_ERRNO macro.
13413         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
13414         definitions.  Instead, define the appropriate symbols and include
13415         "at-func.c".
13416         * lib/mkdirat.c (mkdirat): Likewise.
13417         * lib/fchmodat.c (fchmodat): Likewise.
13418         (ENOSYS): Remove definition.
13419         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
13420         it.  Don't include "unistd--.h" -- it wasn't ever used.
13421
13422         2006-01-17  Jim Meyering  <jim@meyering.net>
13423
13424         Rewrite fts.c not to change the current working directory,
13425         by using openat, fstatat, fdopendir, etc..
13426
13427         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
13428         (HAVE_OPENAT_SUPPORT): Define.
13429         [_LIBC] (fchdir): Don't undef or define; no longer used.
13430         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
13431         Now, this `function' always succeeds, and consumes its file descriptor
13432         parameter -- so callers must not close such FDs.  Update callers.
13433         (diropen_fd, opendirat, cwd_advance_fd): New functions.
13434         (diropen): Add parameter, SP.  Adjust all callers.
13435         Implement using diropen_fd, rather than open.
13436         (fts_open): Initialize new member, fts_cwd_fd.
13437         Remove fts_rft-setting code.
13438         (fts_close): Close fts_cwd_fd, if necessary.
13439         (__opendir2): Define in terms of opendir or opendirat,
13440         depending on whether the FST_NOCHDIR flag is set.
13441         (fts_build): Since fts_safe_changedir consumes its FD, and since
13442         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
13443         and close the dup'd file descriptor upon failure.
13444         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
13445         (fts_safe_changedir): Tweak semantics to reflect that this function
13446         now calls cwd_advance_fd and hence consumes its FD argument.
13447         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
13448         [struct FTS] (fts_rft): Remove now-unused member.
13449         [struct FTS] (fts_cycle.state): Improve comment.
13450
13451         * lib/openat.c (openat_needs_fchdir): New function.
13452         * lib/openat.h (openat_needs_fchdir): Declare it.
13453
13454 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
13455
13456         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
13457         Problem and fix reported by Pádraig Brady in
13458         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
13459
13460 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
13461
13462         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
13463
13464 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
13465
13466         * lib/memcoll.c (memcoll): Optimize for the common case where the
13467         arguments are bytewise equal.
13468
13469 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
13470
13471         * doc/regexprops-generic.texi: Add a copyright notice.
13472
13473 2006-08-15  Bruno Haible  <bruno@clisp.org>
13474
13475         * modules/tmpdir (License): Change to LGPL.
13476
13477 2006-08-15  Bruno Haible  <bruno@clisp.org>
13478
13479         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
13480         module.
13481
13482 2006-08-14  Simon Josefsson  <jas@extundo.com>
13483
13484         * config/srclist.txt: Add gnupload.
13485
13486 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
13487
13488         Change copyright notice from LGPL 2 to GPL 2, since that's the
13489         standard form used in the gnulib repository.
13490         * tests/test-lock.c: Likewise.
13491         * tests/test-stdint.c: Likewise.
13492         * tests/test-tls.c: Likewise.
13493
13494         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
13495         prelude-manager.  User shorter URLs for GNU projects, without '?'.
13496         Add copyright notice.
13497
13498         * check-module: Add copyright notice.  Output a copyright
13499         notice if "--version" is specified.
13500         * modules/COPYING: New file.
13501         * tests/test-getaddrinfo.c: Add copyright notice.
13502         * tests/test-verify.c: Likewise.
13503
13504 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
13505
13506         Change copyright notice from LGPL 2 to GPL 2, since that's the
13507         standard form used in the gnulib repository.
13508         * lib/lock.c: LGPL -> GPL.
13509         * lib/lock.h: Likewise.
13510         * lib/strnlen1.c: Likewise.
13511         * lib/strnlen1.h: Likewise.
13512         * lib/tls.c: Likewise.
13513         * lib/tls.h: Likewise.
13514         * lib/tmpdir.c: Likewise.
13515
13516         * lib/TODO: Remove; this belongs only in coreutils.
13517
13518 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
13519
13520         Add copyright notices to long-enough files that lack them, since
13521         otherwise the files aren't clearly free.  Use the same notice that
13522         getdate.texi already uses.
13523         * doc/alloca-opt.texi: Add copyright notice.
13524         * doc/alloca.texi: Likewise.
13525         * doc/ctime.texi: Likewise.
13526         * doc/functions.texi: Likewise.
13527         * doc/gcd.texi: Likewise.
13528         * doc/gnulib-tool.texi: Likewise.
13529         * doc/inet_ntoa.texi: Likewise.
13530         * doc/visibility.texi: Likewise.
13531
13532         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
13533         * doc/quote.texi: Add copyright notice.
13534
13535         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
13536         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
13537         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
13538         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
13539         is now obsolete, and give a pointer to the Sun list.
13540         Add copyright notice.
13541
13542 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
13543
13544         * config/srclistvars.sh: Add copyright notice.
13545
13546 2006-08-14  Eric Blake  <ebb9@byu.net>
13547
13548         Import the following change from libc:
13549
13550         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
13551
13552         Upstream bug 2997.
13553         * lib/misc/error.c: Add space between program name and message if file
13554         name is missing.
13555
13556 2006-08-12  Karl Berry  <karl@gnu.org>
13557
13558         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
13559         remove, these originate in gnulib now.
13560
13561 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13562
13563         * doc/Makefile (standards.info standards.html standards.dvi):
13564         Also depend on make-stds.texi.
13565
13566 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
13567
13568         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
13569         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
13570
13571         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
13572         in wchar_t.  Problem reported by Eric Blake.
13573
13574         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
13575         LEN is smaller than SIZE.  Suggested by Bruno Haible.
13576         Also, help the compiler to keep LEN in a register.
13577
13578 2006-08-11  Eric Blake  <ebb9@byu.net>
13579
13580         * users.txt: Sort.  Add tar.
13581
13582 2006-08-11  Bruno Haible  <bruno@clisp.org>
13583
13584         * users.txt: New file.
13585
13586 2006-08-11  Bruno Haible  <bruno@clisp.org>
13587
13588         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
13589         before <wchar.h>. Needed for OSF/1 and BSD/OS.
13590
13591 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
13592
13593         * modules/snprintf (Depends-on): Remove minmax.
13594         (Maintainer): Add self and Bruno.
13595
13596 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
13597
13598         * lib/.cppi-disable: Add snprintf.h, socket_.h.
13599         * lib/snprintf.c: Include <errno.h> and <limits.h>.
13600         (EOVERFLOW): Define if the system does not.
13601         Do not include "minmax.h"; it wasn't used.
13602         (snprintf): Don't assume size_t promotes to an unsigned type.
13603         Fix bug when generated string was too long for the buffer: the
13604         buffer's contents are supposed to be the initial prefix of the
13605         output.  Don't assume vasnprintf returns EOVERFLOW if the size
13606         exceeds INT_MAX; do the check ourselves.
13607
13608         Import the following changes from libc:
13609
13610         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
13611
13612         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
13613         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
13614         set wc to the byte which couldn't be converted.
13615         (re_string_reconstruct): Don't clear valid_raw_len before calling
13616         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
13617         tip_context using re_string_context_at.
13618
13619         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
13620
13621         * lib/posix/regex.h: g++ still cannot handled [restrict].
13622
13623         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
13624
13625         * lib/posix/regex.h: Remove special handling for VMS.
13626
13627 2006-08-10  Jim Meyering  <jim@meyering.net>
13628
13629         * modules/same-inode: New module.
13630         * modules/dev-ino: New module.
13631         * modules/cycle-check: Depend on these modules, rather than simply
13632         including their .h files.
13633         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
13634         required via m4/cycle-check.m4.
13635         * modules/same: Depend on new same-inode module, rather than
13636         including same-inode.h.
13637         * modules/chdir-safer: New file.
13638
13639         * modules/chown (Depends-on): Add stat-macros.
13640
13641 2006-08-10  Jim Meyering  <jim@meyering.net>
13642
13643         * m4/cycle-check.m4: New file.
13644         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
13645         * m4/dev-ino.m4, m4/same-inode.m4: New files.
13646
13647 2006-08-10  Eric Blake  <ebb9@byu.net>
13648
13649         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
13650         in from original proposal.
13651
13652 2006-08-10  Eric Blake  <ebb9@byu.net>
13653         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13654
13655         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
13656         namespace.
13657
13658 2006-08-10  Bruno Haible  <bruno@clisp.org>
13659
13660         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
13661         as well.
13662
13663 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
13664
13665         Sync from coreutils.
13666
13667         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
13668
13669         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
13670         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
13671
13672 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
13673
13674         * modules/restrict: Remove; no longer needed now that we assume
13675         Autoconf 2.59 or later.
13676         * MODULES.html.sh: Remove 'restrict'.
13677         * modules/argp (Depends-on): Remove 'restrict'.
13678         * modules/base64 (Depends-on): Likewise.
13679         * modules/gc (Depends-on): Likewise.
13680         * modules/getaddrinfo (Depends-on): Likewise.
13681         * modules/glob (Depends-on): Likewise.
13682         * modules/inet_ntop (Depends-on): Likewise.
13683         * modules/inet_pton (Depends-on): Likewise.
13684         * modules/memxor (Depends-on): Likewise.
13685         * modules/regex (Depends-on): Likewise.
13686         * modules/strtok_r (Depends-on): Likewise.
13687         * modules/time_r (Depends-on): Likewise.
13688
13689 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
13690
13691         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
13692         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
13693         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
13694         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
13695         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
13696         * m4/memxor.m4 (gl_MEMXOR): Likewise.
13697         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
13698         gl_C_RESTRICT replaced by AC_C_RESTRICT.
13699
13700         Merge from coreutils.
13701         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
13702         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
13703         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
13704         * m4/time_r.m4 (gl_TIME_R): Likewise.
13705
13706 2006-08-09  Karl Berry  <karl@gnu.org>
13707
13708         * config/srclist.txt: no more gettext-tools, per Bruno.
13709
13710 2006-08-08  Eric Blake  <ebb9@byu.net>
13711
13712         * modules/verror: New module.
13713         * MODULES.html.sh: Document it.
13714
13715 2006-08-08  Eric Blake  <ebb9@byu.net>
13716
13717         * lib/verror.h, lib/verror.c: New files.
13718
13719 2006-08-08  Eric Blake  <ebb9@byu.net>
13720
13721         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
13722         verror_at_line output complies with GNU Coding Standards even when
13723         file is NULL.
13724
13725 2006-08-07  Bruno Haible  <bruno@clisp.org>
13726
13727         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
13728         versions of AIX.
13729         Reported by Ralf Wildenhues.
13730
13731 2006-08-07  Bruno Haible  <bruno@clisp.org>
13732
13733         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
13734         in an AC_DEFUN. Needed so that the autoconf snippets can use
13735         AC_REQUIRE.
13736
13737 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13738
13739         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13740         Initialize pkgdata_DATA.
13741         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
13742         overriding it.
13743
13744 2006-08-06  Eric Blake  <ebb9@byu.net>
13745
13746         * lib/error.h: Fold in some upstream changes from glibc.
13747         * lib/error.c: Likewise.
13748
13749 2006-08-04  Bruno Haible  <bruno@clisp.org>
13750
13751         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13752         Make the mostlyclean-local rule depend on mostlyclean-generic.
13753         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
13754
13755 2006-07-31  Bruno Haible  <bruno@clisp.org>
13756
13757         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
13758         <stdlib.h>, <string.h>.
13759
13760 2006-07-30  Bruno Haible  <bruno@clisp.org>
13761
13762         * modules/readlink (License): Change to LGPL.
13763
13764 2006-07-30  Bruno Haible  <bruno@clisp.org>
13765
13766         * modules/javaversion (Makefile.am): Distribute javaversion.java and
13767         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
13768         set PKGDATADIR to point to it.
13769
13770 2006-07-30  Bruno Haible  <bruno@clisp.org>
13771
13772         * modules/csharpexec (configure.ac): Comment out macro invocation.
13773         * modules/javaexec (configure.ac): Likewise.
13774         * modules/javacomp-script (configure.ac): Likewise.
13775
13776         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
13777
13778 2006-07-30  Bruno Haible  <bruno@clisp.org>
13779
13780         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
13781         linked-list.
13782
13783 2006-07-30  Bruno Haible  <bruno@clisp.org>
13784
13785         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
13786
13787 2006-07-30  Bruno Haible  <bruno@clisp.org>
13788
13789         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13790         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
13791         get removed.
13792
13793 2006-07-29  Bruno Haible  <bruno@clisp.org>
13794
13795         Make it possible for gnulib-tool to work with locally modified or
13796         augmented gnulib repositories.
13797         * gnulib-tool (func_usage): Document --local-dir option.
13798         (local_gnulib_dir): New variable.
13799         Handle --local-dir option.
13800         (func_lookup_file): New function.
13801         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
13802         (func_get_description, func_get_filelist, func_get_description,
13803         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
13804         func_get_automake_snippet, func_get_include_directive,
13805         func_get_license, func_get_maintainer): Use func_lookup_file.
13806         (func_import, func_create_testdir): Use func_lookup_file.
13807
13808 2006-07-29  Bruno Haible  <bruno@clisp.org>
13809
13810         * modules/setenv (Depends-on): Add unistd.
13811
13812 2006-07-29  Bruno Haible  <bruno@clisp.org>
13813
13814         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
13815
13816 2006-07-29  Bruno Haible  <bruno@clisp.org>
13817
13818         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
13819
13820 2006-07-29  Bruno Haible  <bruno@clisp.org>
13821
13822         * gnulib-tool (import, update): If there is no Makefile.am, look at
13823         aclocal.m4, instead of bailing out.
13824
13825 2006-07-29  Bruno Haible  <bruno@clisp.org>
13826
13827         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
13828         Categorize the options by when they are useful.
13829
13830 2006-07-29  Bruno Haible  <bruno@clisp.org>
13831
13832         * gnulib-tool (func_usage): Document option --no-libtool.
13833         Handle option --no-libtool.
13834         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
13835         for changed semantics of $libtool variable.
13836         (func_import): Likewise. If libtool is not used, show this through
13837         an option --no-libtool.
13838         (func_create_testdir): Update.
13839
13840 2006-07-29  Bruno Haible  <bruno@clisp.org>
13841
13842         * gnulib-tool (func_import): Extend error message about missing
13843         --doc-base.
13844
13845 2006-07-29  Bruno Haible  <bruno@clisp.org>
13846
13847         * gnulib-tool (func_import): Don't create the $docbase directory if
13848         there is no file to store there.
13849
13850 2006-07-29  Bruno Haible  <bruno@clisp.org>
13851
13852         * gnulib-tool (autoconf_minversion): If a --dir option is given and
13853         relevant, look for configure.ac there, not in the current directory.
13854         Also use a simple search for AC_PREREQ, not "autoconf --trace".
13855
13856 2006-07-29  Bruno Haible  <bruno@clisp.org>
13857
13858         * gnulib-tool (SORT): New variable.
13859         (func_usage): Undocument --assume-autoconf option.
13860         Remove --assume-autoconf option handling.
13861         (autoconf_minversion): Determine from the contents of configure.ac.
13862         (func_import): Remove autoconf_minversion handling.
13863         Suggested by Eric Blake.
13864
13865 2006-07-29  Bruno Haible  <bruno@clisp.org>
13866
13867         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
13868
13869 2006-07-29  Bruno Haible  <bruno@clisp.org>
13870
13871         * config/srclist.txt (*setenv.[ch]): Remove rules.
13872
13873 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13874
13875         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
13876
13877 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13878
13879         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
13880         arpa/inet.h.
13881
13882 2006-07-28  Simon Josefsson  <jas@extundo.com>
13883
13884         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
13885         * modules/inet_pton (Depends-on): Likewise.
13886
13887 2006-07-28  Simon Josefsson  <jas@extundo.com>
13888
13889         * m4/netinet_in_h.m4: New file.
13890
13891 2006-07-28  Simon Josefsson  <jas@extundo.com>
13892
13893         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
13894         #include's.
13895
13896 2006-07-28  Simon Josefsson  <jas@extundo.com>
13897
13898         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
13899         #include's.
13900
13901 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
13902
13903         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
13904         setgid on directories only if they set these bits.
13905         * lib/modechange.h: Remove obsolete comment about masks.
13906
13907 2006-07-28  Eric Blake  <ebb9@byu.net>
13908
13909         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
13910         macro expansion.
13911
13912 2006-07-28  Bruno Haible  <bruno@clisp.org>
13913
13914         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
13915
13916 2006-07-28  Bruno Haible  <bruno@clisp.org>
13917
13918         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
13919
13920 2006-07-28  Bruno Haible  <bruno@clisp.org>
13921
13922         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
13923         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
13924         Define fallbacks.
13925         Avoids link error on FreeBSD 4.x.
13926         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
13927
13928         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
13929         encoding.
13930         * lib/mbswidth.c (iswcntrl): Likewise.
13931
13932 2006-07-27  Bruno Haible  <bruno@clisp.org>
13933
13934         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
13935         test.
13936
13937 2006-07-27  Bruno Haible  <bruno@clisp.org>
13938
13939         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
13940         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
13941         defined.
13942
13943 2006-07-26  Eric Blake  <ebb9@byu.net>
13944
13945         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
13946
13947 2006-07-26  Eric Blake  <ebb9@byu.net>
13948
13949         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
13950         like mingw that lack mkstemp.
13951         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
13952         avoid compilation warning on mingw.
13953
13954 2006-07-26  Bruno Haible  <bruno@clisp.org>
13955
13956         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
13957         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
13958         INT_FAST*_MIN, INTPTR_MIN.
13959
13960 2006-07-25  Bruno Haible  <bruno@clisp.org>
13961
13962         * modules/version-etc (Depends-on): Add stdarg.
13963
13964 2006-07-25  Bruno Haible  <bruno@clisp.org>
13965
13966         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
13967         complex commands.
13968
13969 2006-07-25  Bruno Haible  <bruno@clisp.org>
13970
13971         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
13972         defined in <stdarg.h> or config.h.
13973
13974 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
13975
13976         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
13977         (gl_STDIO_SAFER): Remove.
13978
13979 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
13980
13981         * MODULES.html.sh (File stream based Input/Output):
13982         Add fopen-safer, tmpfile-safer; remove stdio-safer.
13983         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
13984         * modules/fopen-safer, modules/tmpfile-safer: New files.
13985         * modules/stdio-safer: Remove.
13986
13987 2006-07-24  Bruno Haible  <bruno@clisp.org>
13988
13989         * modules/tmpdir: New file.
13990         * MODULES.html.sh (File system functions): Add it.
13991
13992 2006-07-24  Bruno Haible  <bruno@clisp.org>
13993
13994         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
13995         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
13996
13997 2006-07-24  Bruno Haible  <bruno@clisp.org>
13998
13999         * modules/clean-temp: New file.
14000
14001 2006-07-24  Bruno Haible  <bruno@clisp.org>
14002
14003         * m4/tmpdir.m4: New file, from GNU gettext.
14004
14005 2006-07-24  Bruno Haible  <bruno@clisp.org>
14006
14007         * lib/tmpdir.h: New file, from GNU gettext.
14008         * lib/tmpdir.c: New file, from GNU gettext.
14009
14010 2006-07-24  Bruno Haible  <bruno@clisp.org>
14011
14012         * lib/clean-temp.h: New file, from GNU gettext.
14013         * lib/clean-temp.c: New file, from GNU gettext.
14014
14015 2006-07-23  Eric Blake  <ebb9@byu.net>
14016
14017         * modules/stdio-safer (Files): Add tmpfile-safer.c.
14018         (Depends-on): Add binary-io.
14019
14020 2006-07-23  Eric Blake  <ebb9@byu.net>
14021
14022         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
14023
14024 2006-07-23  Eric Blake  <ebb9@byu.net>
14025
14026         * lib/tmpfile-safer.c: New file.
14027         * lib/stdio-safer.h (fopen_safer): Add prototype.
14028         * lib/stdio--.h (tmpfile): Make safer.
14029
14030 2006-07-23  Bruno Haible  <bruno@clisp.org>
14031
14032         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
14033         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
14034         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
14035         gl_linked_remove_at): Use it.
14036
14037 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14038         and Simon Josefsson <jas@extundo.com>
14039
14040         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
14041
14042         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
14043
14044 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
14045
14046         * modules/close-stream: New file.
14047         * modules/closeout (Description): Make it clear that it exits
14048         with a diagnostic on error.
14049         (Depends-on): Add close-stream.  Remove fpending, stdbool.
14050         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
14051
14052 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
14053
14054         * m4/close-stream.m4: New file.
14055
14056 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
14057
14058         * lib/close-stream.c, lib/close-stream.h: New files.
14059
14060 2006-07-22  Bruno Haible  <bruno@clisp.org>
14061
14062         Merge from GNU gettext 0.15.
14063
14064         2006-05-01  Bruno Haible  <bruno@clisp.org>
14065
14066                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
14067
14068         2006-07-22  Bruno Haible  <bruno@clisp.org>
14069
14070                 * modules/javaversion: New file.
14071                 * MODULES.html.sh (Java): Add javaversion.
14072
14073         2006-03-12  Bruno Haible  <bruno@clisp.org>
14074
14075                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
14076
14077         2005-12-04  Bruno Haible  <bruno@clisp.org>
14078
14079                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
14080                 (untested).
14081
14082         2006-06-21  Bruno Haible  <bruno@clisp.org>
14083
14084                 Avoid warnings from recent versions of mcs.
14085                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
14086                 -o, -L, -r any more. Use options documented since mcs-1.0
14087                 instead. Similarly for -g.
14088
14089         2005-12-04  Bruno Haible  <bruno@clisp.org>
14090
14091                 * build-aux/csharpcomp.sh.in: Suffix for resources is
14092                 .resources, not .resource.
14093
14094         2005-07-09  Bruno Haible  <bruno@clisp.org>
14095
14096                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
14097                 add a .dll suffix.
14098                 Reported by Mark Junker <mjscod@gmx.de>.
14099
14100         2006-07-22  Bruno Haible  <bruno@clisp.org>
14101
14102                 * modules/gettext: Upgrade to gettext-0.15.
14103                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
14104                 m4/visibility.m4.
14105                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
14106
14107 2006-07-22  Bruno Haible  <bruno@clisp.org>
14108
14109         Merge from GNU gettext 0.15.
14110
14111         2006-03-25  Bruno Haible  <bruno@clisp.org>
14112
14113                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
14114
14115         2006-07-21  Bruno Haible  <bruno@clisp.org>
14116
14117                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
14118                 "1.1".
14119
14120         2006-05-09  Bruno Haible  <bruno@clisp.org>
14121
14122                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
14123                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
14124                 for the conftestver execution.
14125
14126         2006-05-01  Bruno Haible  <bruno@clisp.org>
14127
14128                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
14129                 optional target-version argument. Verify that the compiler
14130                 groks source of the specified source-version, or add -source
14131                 option as necessary. Verify that the compiler produces
14132                 bytecode in the specified target-version, or add -target and
14133                 -source options as necessary. Make the result of the test
14134                 available as variable CONF_JAVAC. Also log error output in
14135                 config.log.
14136
14137         2006-03-11  Bruno Haible  <bruno@clisp.org>
14138
14139                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
14140
14141         2006-05-09  Bruno Haible  <bruno@clisp.org>
14142
14143                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
14144                 CLASSPATH_SEPARATOR to a semicolon.
14145
14146         2006-03-12  Bruno Haible  <bruno@clisp.org>
14147
14148                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
14149                 available as variable CONF_JAVA, for subsequent autoconf
14150                 tests. Also log error output in config.log.
14151
14152         2006-07-19  Bruno Haible  <bruno@clisp.org>
14153
14154                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
14155                 that getline works on glibc2 systems. Needed to avoid trouble
14156                 in relocatable.c.
14157                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
14158
14159         2005-12-04  Bruno Haible  <bruno@clisp.org>
14160
14161                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
14162                 launcher (untested).
14163
14164         2005-12-04  Bruno Haible  <bruno@clisp.org>
14165
14166                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
14167
14168         2006-07-22  Bruno Haible  <bruno@clisp.org>
14169
14170                 * gettext.m4: Update from GNU gettext-0.15.
14171                 * nls.m4: Likewise.
14172                 * po.m4: Likewise.
14173                 * inttypes-pri.m4: Likewise.
14174                 * inttypes-h.m4: Renamed from inttypes.m4.
14175                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
14176
14177 2006-07-22  Bruno Haible  <bruno@clisp.org>
14178
14179         Merge from GNU gettext 0.15.
14180
14181         2005-07-05  Bruno Haible  <bruno@clisp.org>
14182
14183                 * printf-args.c (printf_fetchargs): Work around broken
14184                 definition of wint_t on mingw.
14185
14186         2005-02-12  Bruno Haible  <bruno@clisp.org>
14187
14188                 * xallocsa.h: Add extern "C" for C++.
14189
14190         2006-05-17  Bruno Haible  <bruno@clisp.org>
14191
14192                 Cygwin portability.
14193                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
14194
14195         2006-04-30  Bruno Haible  <bruno@clisp.org>
14196
14197                 * progreloc.c: Include <mach-o/dyld.h> if available.
14198                 (find_executable): Use _NSGetExecutablePath when possible.
14199
14200         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
14201
14202                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
14203                 function.
14204
14205         2005-12-29  Bruno Haible  <bruno@clisp.org>
14206
14207                 * progreloc.c (set_program_name_and_installdir): Fix
14208                 compilation error.
14209
14210         2005-12-04  Bruno Haible  <bruno@clisp.org>
14211
14212                 Cygwin portability.
14213                 * progreloc.c: Include <windows.h> also on Cygwin.
14214                 (find_executable): Add support for Cygwin.
14215                 (set_program_name_and_installdir): Handle also platforms with
14216                 nonempty EXEEXT.
14217
14218         2006-07-11  Bruno Haible  <bruno@clisp.org>
14219
14220                 * javacomp.c: Fix a comment.
14221                 Reported by Jim Meyering.
14222
14223         2006-04-30  Bruno Haible  <bruno@clisp.org>
14224
14225                 * javacomp.h (compile_java_class): Add source_version,
14226                 target_version arguments.
14227                 * javacomp.c: Rewritten to choose only a compiler that
14228                 respects the specified source_version and target_version.
14229
14230         2006-06-27  Bruno Haible  <bruno@clisp.org>
14231
14232                 Assume correct S_ISDIR macro.
14233                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
14234
14235         2006-07-22  Bruno Haible  <bruno@clisp.org>
14236
14237                 * javaversion.h: New file, from GNU gettext.
14238                 * javaversion.c: New file, from GNU gettext.
14239                 * javaversion.java: New file, from GNU gettext.
14240                 * javaversion.class: New file, from GNU gettext.
14241
14242         2006-05-17  Bruno Haible  <bruno@clisp.org>
14243
14244                 Cygwin portability.
14245                 * javaexec.c (execute_java_class): Test for jview program
14246                 also on Cygwin.
14247
14248         2006-04-09  Bruno Haible  <bruno@clisp.org>
14249
14250                 * fatal-signal.c: Don't include string.h.
14251                 (at_fatal_signal): Use a copying loop instead of memcpy.
14252
14253         2005-12-04  Bruno Haible  <bruno@clisp.org>
14254
14255                 * csharpexec.c: Add support for 'clix' launcher (untested).
14256                 (execute_csharp_using_sscli): New function.
14257                 (execute_csharp_program): Call it.
14258
14259         2006-06-21  Bruno Haible  <bruno@clisp.org>
14260
14261                 Avoid warnings from recent versions of mcs.
14262                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
14263                 -o, -L, -r any more. Use options documented since mcs-1.0
14264                 instead. Similarly for -g.
14265
14266         2005-07-09  Bruno Haible  <bruno@clisp.org>
14267
14268                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
14269                 add a .dll suffix.
14270                 Reported by Mark Junker <mjscod@gmx.de>.
14271
14272         2006-06-17  Bruno Haible  <bruno@clisp.org>
14273
14274                 * config.charset: Update for NetBSD 3.0.
14275
14276         2006-05-17  Bruno Haible  <bruno@clisp.org>
14277
14278                 Cygwin portability.
14279                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
14280
14281         2006-05-16  Bruno Haible  <bruno@clisp.org>
14282
14283                 * localcharset.c [CYGWIN]: Include <windows.h>.
14284                 (get_charset_aliases): For Cygwin, return the same CPxxx
14285                 aliases list as under WIN32.
14286                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
14287                 the environment variables. Fall back to GetACP().
14288
14289         2006-04-05  Bruno Haible  <bruno@clisp.org>
14290
14291                 * config.charset: Update Juan Manuel Guerrero's address.
14292
14293         2005-02-12  Bruno Haible  <bruno@clisp.org>
14294
14295                 * allocsa.h: Add extern "C" for C++.
14296
14297         2005-02-10  Bruno Haible  <bruno@clisp.org>
14298
14299                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
14300                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
14301
14302         2006-07-22  Bruno Haible  <bruno@clisp.org>
14303
14304                 * gettext.h: Update to GNU gettext-0.15.
14305
14306 2006-07-22  Bruno Haible  <bruno@clisp.org>
14307
14308         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
14309         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
14310         lib-prefix.m4, longdouble.m4, ssize_t.m4.
14311
14312 2006-07-21  Eric Blake  <ebb9@byu.net>
14313
14314         * modules/stdlib-safer: New file.
14315         * MODULES.html.sh (File stream based Input/Output): Add
14316         stdlib-safer.
14317
14318 2006-07-21  Eric Blake  <ebb9@byu.net>
14319
14320         * lib/stdlib-safer.h: New file from coreutils, required by
14321         stdlib--.h.
14322
14323 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
14324
14325         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
14326
14327 2006-07-20  Bruno Haible  <bruno@clisp.org>
14328
14329         * gnulib-tool: Recognize new option --assume-autoconf.
14330         (autoconf_minversion): New variable.
14331         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
14332
14333 2006-07-20  Bruno Haible  <bruno@clisp.org>
14334
14335         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
14336
14337 2006-07-19  Derek R. Price  <derek@ximbiot.com>
14338
14339         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
14340         Reindent and repaginate.
14341
14342 2006-07-19  Derek Price  <derek@ximbiot.com>
14343
14344         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
14345         Correct grammar.
14346
14347 2006-07-17  Bruno Haible  <bruno@clisp.org>
14348
14349         * modules/list: New file.
14350         * modules/array-list: New file.
14351         * modules/carray-list, modules/carray-list-tests: New files.
14352         * modules/linked-list, modules/linked-list-tests: New files.
14353         * modules/avltree-list, modules/avltree-list-tests: New files.
14354         * modules/rbtree-list, modules/rbtree-list-tests: New files.
14355         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
14356         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
14357         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
14358         * modules/oset: New file.
14359         * modules/array-oset: New file.
14360         * modules/avltree-oset, modules/avltree-oset-tests: New files.
14361         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
14362         * tests/test-carray_list.c: New file.
14363         * tests/test-linked_list.c: New file.
14364         * tests/test-avltree_list.c: New file.
14365         * tests/test-rbtree_list.c: New file.
14366         * tests/test-linkedhash_list.c: New file.
14367         * tests/test-avltreehash_list.c: New file.
14368         * tests/test-rbtreehash_list.c: New file.
14369         * tests/test-avltree_oset.c: New file.
14370         * tests/test-rbtree_oset.c: New file.
14371         * MODULES.html.sh (Container data structures): New section.
14372
14373 2006-07-17  Bruno Haible  <bruno@clisp.org>
14374
14375         * m4/gl_list.m4: New file.
14376
14377 2006-07-17  Bruno Haible  <bruno@clisp.org>
14378
14379         * lib/gl_list.h: New file.
14380         * lib/gl_list.c: New file.
14381         * lib/gl_array_list.h: New file.
14382         * lib/gl_array_list.c: New file.
14383         * lib/gl_carray_list.h: New file.
14384         * lib/gl_carray_list.c: New file.
14385         * lib/gl_linked_list.h: New file.
14386         * lib/gl_linked_list.c: New file.
14387         * lib/gl_anylinked_list1.h: New file.
14388         * lib/gl_anylinked_list2.h: New file.
14389         * lib/gl_avltree_list.h: New file.
14390         * lib/gl_avltree_list.c: New file.
14391         * lib/gl_anyavltree_list1.h: New file.
14392         * lib/gl_anyavltree_list2.h: New file.
14393         * lib/gl_rbtree_list.h: New file.
14394         * lib/gl_rbtree_list.c: New file.
14395         * lib/gl_anyrbtree_list1.h: New file.
14396         * lib/gl_anyrbtree_list2.h: New file.
14397         * lib/gl_anytree_list1.h: New file.
14398         * lib/gl_anytree_list2.h: New file.
14399         * lib/gl_linkedhash_list.h: New file.
14400         * lib/gl_linkedhash_list.c: New file.
14401         * lib/gl_anyhash_list1.h: New file.
14402         * lib/gl_anyhash_list2.h: New file.
14403         * lib/gl_avltreehash_list.h: New file.
14404         * lib/gl_avltreehash_list.c: New file.
14405         * lib/gl_rbtreehash_list.h: New file.
14406         * lib/gl_rbtreehash_list.c: New file.
14407         * lib/gl_anytreehash_list1.h: New file.
14408         * lib/gl_anytreehash_list2.h: New file.
14409
14410         * lib/gl_oset.h: New file.
14411         * lib/gl_oset.c: New file.
14412         * lib/gl_array_oset.h: New file.
14413         * lib/gl_array_oset.c: New file.
14414         * lib/gl_avltree_oset.h: New file.
14415         * lib/gl_avltree_oset.c: New file.
14416         * lib/gl_rbtree_oset.h: New file.
14417         * lib/gl_rbtree_oset.c: New file.
14418         * lib/gl_anytree_oset.h: New file.
14419
14420 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
14421
14422         * m4/mkancesdirs.m4: New file.
14423         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
14424         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
14425         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
14426         it.
14427
14428 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
14429
14430         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
14431         * lib/mkancesdirs.h: New files.
14432         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
14433         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
14434         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
14435         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
14436         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
14437         callers changed.  Revamp internals significantly, by not
14438         attempting to create directories that are temporarily more
14439         permissive than the final results.  Do not attempt to use
14440         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
14441         This removes some race conditions, fixes some bugs, and simplifies
14442         things.  Use new dirchownmod function to do owner and mode changes.
14443         * lib/mkdir-p.h: Likewise.
14444         * lib/modechange.c (octal_to_mode): New function.
14445         (struct mode_change): New member mentioned.
14446         (make_node_op_equals): New arg mentioned.  All callers changed.
14447         (mode_compile): Keep track of which mode bits the user has explicitly
14448         mentioned.
14449         (mode_adjust): New arg DIR, so that we implement the X op correctly.
14450         New arg PMODE_BITS, to keep track of which mode bits the user
14451         mentioned; it treats S_ISUID and S_ISGID speciall.
14452         All callers changed.
14453         * lib/modechange.h: Likewise.
14454
14455 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
14456
14457         * MODULES.html.sh: Add mkancestors.
14458         * modules/mkancesdirs: New module.
14459         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
14460         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
14461         The chdir-safer and afs files are now orphans; I'll remove them
14462         unless someone speaks up.
14463         Add lib/dirchownmod.c, lib/dirchownmod.h.
14464         (Depends-on): Remove alloca, chown, save-cwd, dirname.
14465         Add lchown, mkancesdirs.
14466         (Maintainer): Add self.
14467
14468 2006-07-15  Karl Berry  <karl@gnu.org>
14469
14470         * gnulib-tool: help message wording/arrangement.
14471
14472 2006-07-14  Simon Josefsson  <jas@extundo.com>
14473
14474         * doc/gnulib.texi (Libtool and Windows): New section.
14475
14476 2006-07-12  Simon Josefsson  <jas@extundo.com>
14477
14478         * modules/gendocs (License): Fix license, approved by Karl.
14479
14480 2006-07-12  Eric Blake  <ebb9@byu.net>
14481
14482         * MODULES.html.sh: Add gendocs.
14483
14484 2006-07-11  Eric Blake  <ebb9@byu.net>
14485
14486         * modules/fdl: New module, to install doc/fdl.texi.
14487         * MODULES.html.sh: Add new section for documentation modules.
14488         * gnulib-tool: Avoid space-tab.
14489         (--doc-base): New option, to manage files from doc.
14490
14491 2006-07-11  Eric Blake  <ebb9@byu.net>
14492
14493         * m4/absolute-header.m4: Fix comments to match recent change.
14494
14495 2006-07-11  Eric Blake  <ebb9@byu.net>
14496
14497         * gnulib-tool: List --doc-base before --tests-base.
14498
14499 2006-07-11  Derek R. Price  <derek@ximbiot.com>
14500
14501         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
14502
14503 2006-07-11  Bruno Haible  <bruno@clisp.org>
14504
14505         * README: Mention where to put documentation.
14506
14507 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14508
14509         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
14510
14511 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
14512
14513         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
14514         to stdint.m4.
14515
14516 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
14517
14518         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
14519         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
14520         "no/such/file/stdint.h" when there is no such file, so that
14521         the resulting C code can be parsed by dodgy compilers.
14522         Problems reported by Bob Proulx.
14523
14524 2006-07-10  Derek R. Price  <derek@ximbiot.com>
14525
14526         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
14527         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
14528         macros into the GNU _D_EXACT_NAMLEN.
14529         * lib/savedir.c:  Likewise.
14530         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
14531
14532 2006-07-10  Derek R. Price  <derek@ximbiot.com>
14533         and Paul Eggert  <eggert@cs.ucla.edu>
14534
14535         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
14536         * m4/savedir.m4:
14537         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
14538         macros into the GNU _D_EXACT_NAMLEN.
14539
14540 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
14541
14542         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
14543         around the absolute name, to work around a problem with the HP-UX
14544         11.23 native C compiler, reported by Bob Proulx.
14545
14546 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
14547
14548         * doc/maintain.texi, make-stds.texi: Sync from
14549         <http://savannah.gnu.org/projects/gnustandards>.
14550
14551 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
14552
14553         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
14554
14555 2006-07-09  Jim Meyering  <jim@meyering.net>
14556
14557         * m4/glob.m4: Remove a doubled word in a comment.
14558
14559 2006-07-09  Jim Meyering  <jim@meyering.net>
14560
14561         * lib/argp-pv.c: Remove a doubled word in a comment.
14562         * lib/check-version.c (check_version): Likewise.
14563         * lib/javacomp.c (compile_java_class): Likewise.
14564
14565 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
14566
14567         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
14568         for the benefit of people using Autoconf 2.60.  If you want to
14569         support older Autoconf versions you can copy m4/onceonly_2_57.m4
14570         (or m4/onceonly.m4, if pre-2.57) manually.
14571
14572 2006-07-08  Jim Meyering  <jim@meyering.net>
14573
14574         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
14575         comment.
14576         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
14577         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
14578         comment.
14579
14580 2006-07-08  Jim Meyering  <jim@meyering.net>
14581
14582         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
14583
14584 2006-07-07  Simon Josefsson  <jas@extundo.com>
14585
14586         * tests/test-crc.c: Change expected crc value, the test vector
14587         were probably computed using the old broken crc.c?
14588
14589 2006-07-06  Simon Josefsson  <jas@extundo.com>
14590
14591         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
14592         now the canonical place for the M4 file).
14593
14594         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
14595         from the sys_socket dependency now.
14596
14597         * modules/inet_pton (Files): Ditto.
14598
14599         * modules/inet_ntop (Files): Ditto.
14600
14601 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
14602
14603         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
14604         not gl_PREREQ_GETUSERSHELL.
14605
14606 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14607
14608         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
14609         with only one argument, for Autoconf 2.60.
14610         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
14611         expand to nothing, so add a shell command to avoid syntax error.
14612         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
14613
14614 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14615
14616         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
14617
14618 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14619
14620         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
14621         no longer needed.  Check for isblank decl.
14622         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
14623         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
14624         of existence.
14625
14626 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14627
14628         * lib/getloadavg.c: Use __VMS, not VMS.
14629         * lib/getopt.c: Likewise.
14630         * lib/getpagesize.h: Likewise.
14631         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
14632         and probably does not work.
14633
14634 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14635
14636         * lib/.cppi-disable: Add wcwidth.
14637         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
14638         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
14639         (ISGRAPH): Remove.  All uses changed to isgraph.
14640         (FOLD) [!defined _LIBC]: Remove special case.
14641         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
14642         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
14643         HAVE_ISBLANK.
14644         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
14645         case.
14646
14647 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
14648
14649         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
14650         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
14651         brackets.  Other minor changes to suppress some compiler
14652         warnings.
14653
14654 2006-07-06  Derek R. Price  <derek@ximbiot.com>
14655         and Paul Eggert  <eggert@cs.ucla.edu>
14656
14657         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
14658         of invoking obsolescent AC_HEADER_DIRENT macro.
14659         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
14660         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
14661         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14662         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
14663         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
14664         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
14665         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
14666         * m4/readdir.m4: Remove; no longer needed.
14667
14668 2006-07-06  Derek R. Price  <derek@ximbiot.com>
14669         and Paul Eggert  <eggert@cs.ucla.edu>
14670
14671         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
14672         Don't worry about this obsolete case any more.
14673         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
14674         directories.
14675         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
14676         worry about this obsolete case any more.
14677         * lib/fts.c: Likewise.
14678         * lib/getcwd.c: Likewise.
14679         * lib/glob.h: Likewise.
14680         * lib/savedir.c: Likewise.
14681
14682 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
14683
14684         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
14685         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
14686         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
14687         needed.
14688         All uses removed.
14689         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
14690         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
14691         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
14692         needed.
14693         * m4/getdate.m4 (gl_GETDATE): Likewise.
14694         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
14695         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
14696         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14697         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
14698         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
14699         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
14700         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
14701         needed.
14702
14703 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
14704
14705         * lib/memcasecmp.c: Include <limits.h>.
14706         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
14707         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
14708         Don't assume isdigit succeeds only on '0' through '9'.
14709
14710 2006-07-05  Eric Blake  <ebb9@byu.net>
14711
14712         * modules/getaddrinfo (Depends-on): Add snprintf.
14713
14714 2006-07-05  Eric Blake  <ebb9@byu.net>
14715
14716         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
14717         to avoid 'header present but could not be compiled' on cygwin.
14718
14719 2006-07-05  Eric Blake  <ebb9@byu.net>
14720
14721         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
14722         missing from netdb.h.
14723         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
14724
14725 2006-07-05  Derek R. Price  <derek@ximbiot.com>
14726
14727         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
14728         no longer needed.
14729         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
14730         * m4/getdate.m4 (gl_GETDATE): Likewise.
14731         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
14732         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
14733         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14734         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
14735         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
14736
14737 2006-07-05  Derek R. Price  <derek@ximbiot.com>
14738
14739         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
14740         All uses of is_space replaced by isspace.
14741         * lib/exit.h: Don't talk about STDC_HEADERS.
14742         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
14743         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
14744         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
14745         replaced by isprint etc.
14746         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
14747         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
14748         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
14749         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
14750         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
14751         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
14752
14753 2006-07-05  Bruno Haible  <bruno@clisp.org>
14754
14755         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
14756         the function exists, before testing against AIX.
14757         Reported by Martin Lambers <marlam@marlam.de>.
14758
14759 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
14760
14761         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
14762         From Mark D. Baushke.
14763
14764 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
14765
14766         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
14767         to the absolute name, not just one, to bypass Sun C 5.8's
14768         "warning: #include of /usr/include/... may be non-portable".
14769
14770 2006-07-04  Eric Blake  <ebb9@byu.net>
14771
14772         * modules/dirname-tests: New test module.
14773         * tests/test-dirname.c: New file, replacing dirname.c
14774         TEST_DIRNAME section that was recently deleted.
14775
14776 2006-07-04  Bruno Haible  <bruno@clisp.org>
14777
14778         Assume ANSI C header files and <ctype.h> functions.
14779         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
14780         (mbsnwidth): Use isprint, iscntrl instead.
14781
14782 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
14783
14784         Merge from coreutils.
14785         * MODULES.html.sh: Add xstrtold.
14786         * modules/xstrtold: New file.
14787         * modules/cycle-check (Files): Add lib/same-inode.h.
14788         * modules/dirname (Files): Add m4/double-slash-root.m4.
14789         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
14790         * modules/mkdir-p (Files): Add lib/same-inode.h.
14791         * modules/same (Files): Add lib/same-inode.h.
14792
14793 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
14794
14795         * m4/absolute-header.m4: Renamed from full-header-path.m4.
14796         This is to keep the terminology clean; POSIX talks about
14797         "absolute pathnames", not "full pathnames", but the GNU
14798         Coding Standards say to use "path" for something else;
14799         so use "absolute" to keep both sides happy.
14800         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
14801         Set gl_absolute_header, not gl_full_header_path.
14802         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
14803         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
14804         All uses changed.
14805
14806         Merge from coreutils.
14807
14808         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
14809
14810         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
14811         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
14812         want to require the building of c-strtod.o.
14813         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
14814         needs -lm directly.
14815         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
14816
14817         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
14818
14819         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
14820         --as-needed option if available.  Problem reported by Albert Chin in
14821         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
14822         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
14823         cc merely issues a bunch of annoying warnings for --as-needed
14824         (this problem was reported by Bob Proulx).  Also, try linking with
14825         -lm to detect a bug in binutils 2.16 (this problem was reported
14826         by Ralf Wildenhues).
14827
14828         2006-06-18  Jim Meyering  <jim@meyering.net>
14829
14830         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
14831         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
14832         macro.
14833         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
14834         also check for glibc-2.4's abort-inducing bug.
14835
14836         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
14837         Low-probability clean-up should be to use rmdir to get rid of
14838         the just-created directory, not unlink.
14839
14840         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
14841         configure fail, and request a bug report to inform us about it.
14842         Add a comment that, barring reports to the contrary, in 2007 we'll
14843         assume ftruncate is universally available.
14844
14845         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
14846
14847         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
14848
14849         2006-03-12  Jim Meyering  <jim@meyering.net>
14850
14851         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
14852         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
14853         * m4/same.m4 (gl_SAME): Likewise.
14854         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
14855
14856         2006-03-11  Eric Blake  <ebb9@byu.net>
14857
14858         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
14859         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
14860         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
14861         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
14862
14863 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
14864
14865         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
14866         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
14867         reported by Mark D. Baushke, one in
14868         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
14869
14870         Merge from coreutils.
14871
14872         * lib/.cppi-disable: Add stdint_.h.
14873         * lib/.cvsignore: Add stdint.h.
14874
14875         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
14876
14877         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
14878         both double and long double versions.
14879         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
14880         * lib/xstrtold.c: New file.
14881         * lib/xstrtod.h (xstrtold): New decl.
14882
14883         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
14884
14885         * lib/filemode.c (setst): Remove.
14886         (strmode): Rewrite to avoid setst.  This makes the code shorter,
14887         (arguably) clearer, and the generated code is a bit smaller on my
14888         Debian GNU/Linux stable x86 host.
14889
14890         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
14891
14892         * lib/filemode.c: Include "filemode.h" first, to test the interface.
14893         Assume that filemode.h includes sys/types.h and sys/stat.h.
14894         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
14895         (ftypelet): Reorder to put common cases first, for efficiency.
14896         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
14897         to do 'M'.
14898         (strmode): Renamed from mode_string, and now stores 12 bytes instead
14899         of 10, for compatibility with FreeBSD.  All callers changed.
14900         (filemodestring): Now stores 12 bytes instead of 10, and sets file
14901         types that can't be deduced solely from st_mode.  First arg is now a
14902         const pointer.
14903         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
14904         (strmode): Renamed from mode_string.
14905         (filemodestring): New decl.
14906         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
14907         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
14908         needed.
14909         (S_ISPORT, S_ISWHT): New macros, if not already defined.
14910
14911         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
14912
14913         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
14914         fsusage.h now does that.  Include fsusage.h first, to test interface.
14915         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
14916         at most one method (the old code could have generated decls that
14917         didn't conform to C89, not that this was ever exercised).
14918         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
14919
14920         2006-03-19  Jim Meyering  <jim@meyering.net>
14921
14922         Work even in a chroot where d_ino values for entries in "/"
14923         don't match the stat.st_ino values for the same names.
14924         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
14925         number, iterate through all entries again, using lstat instead.
14926         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
14927         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
14928
14929         * lib/getcwd.c (__getcwd): Clarify a comment.
14930         Use memcpy in place of a call to strcpy.
14931
14932         2006-03-12  Jim Meyering  <jim@meyering.net>
14933
14934         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
14935         matches that of the current directory (which we're about to chdir ".."
14936         out of), then save the dev-ino of the parent, instead.
14937
14938         * lib/same-inode.h (SAME_INODE): New file/macro.
14939         * lib/chdir-safer.c (SAME_INODE): Remove definition.
14940         Include "same-inode.h", instead.
14941         * lib/same.c: Likewise.
14942         * lib/cycle-check.h: Include "same-inode.h".
14943         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
14944         * lib/cycle-check.c (SAME_INODE): Remove definition.
14945         * lib/root-dev-ino.h: Include "same-inode.h".
14946
14947         2006-03-11  Eric Blake  <ebb9@byu.net>
14948
14949         * lib/same.c (same_name): s/base_name/last_component/
14950         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
14951         * lib/filenamecat.c (file_name_concat): Likewise.
14952
14953         2006-03-11  Eric Blake  <ebb9@byu.net>,
14954                     Paul Eggert  <eggert@cs.ucla.edu>
14955
14956         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
14957         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
14958         drive prefix.
14959         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
14960         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
14961         (last_component): New method.
14962         * lib/dirname.c (dir_len): Determine when drive letters need a
14963         subsequent slash.  Preserve // when it is special.
14964         (dir_name): Don't append dot when drive letter is absolute.
14965         [TEST_DIRNAME]: Move into a full-blown gnulib test.
14966         * lib/basename.c (base_name): New semantics - malloc the result.
14967         Preserve // when it is special.  Preserve relative files that look
14968         like drive letters.
14969         (base_len): Preserve // when it is special.
14970         (last_component): New method, similar to old base_name semantics.
14971         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
14972         base_name.  Strip redundant slashes from ///.
14973
14974 2006-07-03  Jim Meyering  <jim@meyering.net>
14975
14976         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
14977         macro is used before the first cycle_check call.
14978
14979 2006-07-03  Eric Blake  <ebb9@byu.net>
14980
14981         * modules/dirname (Depends-on): Add xstrndup.
14982
14983 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
14984
14985         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
14986         test cases, so that config.log is a bit easier to follow.
14987
14988 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
14989
14990         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
14991         both are 64 bits, since this seems to be the tradition, and this
14992         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
14993         we ever run into a host that prefers long long to long in this
14994         case, we'll need another configure-time test.  Problem reported by
14995         Jim Meyering.
14996
14997 2006-07-02  Eric Blake  <ebb9@byu.net>
14998
14999         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
15000
15001 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
15002
15003         * modules/inttypes (Depends-on): No longer depends on stdint.
15004         * modules/stdint (Description): Say more about assumptions.
15005         Say that the fast types might differ.  Say macros are used.
15006         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
15007         (Makefile.am): Revise list of substituted symbols to match
15008         new stdint.m4.
15009         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
15010         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
15011         * tests/test-stdint.c (verify_same_types)
15012         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
15013         the code conforms to C99/C89.
15014         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
15015         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
15016
15017 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
15018
15019         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
15020         but fix a bug, by requiring at least 64 bits.
15021         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
15022         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
15023         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
15024         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
15025
15026         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
15027         changes.  Make 2.59 a prerequisite.  Check and substitute for
15028         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
15029         inttypes.h.  Do not use special include files; just use the
15030         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
15031         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
15032         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
15033         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
15034         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
15035         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
15036         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
15037         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
15038         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
15039         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
15040         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
15041         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
15042         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
15043         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
15044         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
15045         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
15046         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
15047         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
15048         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
15049         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
15050         WINT_MAX.  Check for C99 conformance more strictly, by detecting
15051         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
15052         not check for things that C99 does not require, e.g., int8_t.  If
15053         a test isn't needed unless <stdint.h> isn't working, and is
15054         unlikely to be needed for any other reason, then don't do it
15055         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
15056         size_t, since we assume C89 freestanding at least.  Do not check
15057         for sig_atomic_t, wchar_t, or wint_t, since the code now does
15058         the right thing even if the types are not defined.  Instead use:
15059         (gl_STDINT_TYPE_PROPERTIES): New macro.
15060         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
15061         testing whether <sys/types.h> clashes, as Autoconf does this for
15062         us now.  All uses removed.
15063         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
15064         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
15065         (gl_CHECK_TYPE_SAME):
15066         Remove; no longer needed.
15067         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
15068         exists, since we'll return 0 anyway in that case.
15069         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
15070
15071 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
15072
15073         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
15074         possible collision with system files.
15075         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
15076         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
15077         WCHAR_MIN and WCHAR_MAX in this case.
15078         (<stddef.h>): Do not include; no longer needed.
15079         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
15080         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
15081         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
15082         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
15083         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
15084         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
15085         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
15086         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
15087         !defined(__c99))]: Include in this case too, since it's harmless
15088         now.
15089         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
15090         dangerous to do so.
15091         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
15092         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
15093         (_STDINT_MIN, _STDINT_MAX): New macros.
15094         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
15095         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
15096         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
15097         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
15098         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
15099         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
15100         macros, not typedefs; this simplifies things quite a bit.
15101         Use long int for all types narrower than int64_t.
15102         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
15103         Define in terms of long long int or int64_t or long int,
15104         not int64_t or int32_t.  This saves some compile-time testing.
15105         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
15106         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
15107         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
15108         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
15109         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
15110         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
15111         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
15112         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
15113         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
15114         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
15115         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
15116         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
15117         undef any previous version and define our own version, for
15118         simplicity and consistency with the new macros for types.
15119         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
15120         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
15121         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
15122         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
15123         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
15124         @WINT_T_SUFFIX@ to keep things simple here.
15125         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
15126         Simplify by assuming typical 8/16/32/64 host, since we're
15127         already doing that elsewhere anyway.
15128         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
15129         and assume long long int is 64 bits if available.  This
15130         speeds up 'configure'.
15131
15132 2006-07-01  Eric Blake  <ebb9@byu.net>
15133
15134         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
15135         Reported by Andreas Buening.
15136
15137 2006-07-01  Eric Blake  <ebb9@byu.net>
15138
15139         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
15140
15141 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
15142
15143         * lib/getaddrinfo.c: fixed typo
15144
15145 2006-06-29  Jim Meyering  <jim@meyering.net>
15146
15147         * modules/strftime (Maintainer): Add my name, since with the
15148         FPRINTFTIME changes strftime.c has forked from glibc.
15149
15150 2006-06-29  Eric Blake  <ebb9@byu.net>
15151
15152         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
15153
15154 2006-06-29  Eric Blake  <ebb9@byu.net>
15155
15156         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
15157
15158 2006-06-29  Eric Blake  <ebb9@byu.net>
15159
15160         * lib/stat_.h: New file.
15161
15162 2006-06-29  Eric Blake  <ebb9@byu.net>
15163
15164         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
15165         unused static function.
15166
15167 2006-06-29  Eric Blake  <ebb9@byu.net>
15168
15169         * doc/functions.texi (Function Portability): Document missing lstat
15170         on mingw.
15171
15172 2006-06-29  Eric Blake  <ebb9@byu.net>
15173
15174         * MODULES.html.sh: Add sys_stat.
15175         * modules/sys_stat: New module.
15176         * modules/mkstemp (Depends-on): Add sys_stat.
15177
15178 2006-06-29  Derek R. Price  <derek@ximbiot.com>
15179
15180         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
15181
15182 2006-06-29  Derek R. Price  <derek@ximbiot.com>
15183
15184         * m4/c-bs-a.m4: Removed.
15185
15186 2006-06-29  Derek R. Price  <derek@ximbiot.com>
15187
15188         * lib/strftime.c: Assume strftime() exists.
15189
15190 2006-06-29  Derek Price  <derek@ximbiot.com>
15191
15192         * modules/c-bs-a: Removed - \a is C89.
15193         * MODULES.html.sh: Remove c-bs-a.
15194
15195 2006-06-29  Bruno Haible  <bruno@clisp.org>
15196
15197         * modules/wcwidth (License): Change to LGPL.
15198
15199 2006-06-28  Simon Josefsson  <jas@extundo.com>
15200
15201         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
15202         on _WIN32.
15203
15204         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
15205         getnameinfo.
15206
15207 2006-06-28  Simon Josefsson  <jas@extundo.com>
15208
15209         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
15210
15211 2006-06-28  Simon Josefsson  <jas@extundo.com>
15212
15213         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
15214         functions there.  It will succeed on Windows XP, but on Windows
15215         2000 and (presumably) earlier, it will fail, and use the internal
15216         re-implementation.
15217         (use_win32_p): New function.
15218         (getaddrinfo): Use strtoul on servname, to support numeric ports.
15219         Support AI_NUMERICSERV to disable getservbyname.
15220         (getnameinfo): New function, only supports
15221         NI_NUMERICHOST|NI_NUMERICSERV for now.
15222
15223         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
15224         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
15225         getnameinfo.
15226
15227 2006-06-28  Eric Blake  <ebb9@byu.net>
15228
15229         * modules/wcwidth: New file.
15230         * modules/mbchar (Depends-on): Add wcwidth.
15231         * modules/mbswidth (Depends-on): Add wcwidth.
15232         * MODULES.html.sh: Add wcwidth.
15233
15234 2006-06-28  Eric Blake  <ebb9@byu.net>
15235
15236         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
15237         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
15238
15239 2006-06-28  Eric Blake  <ebb9@byu.net>
15240
15241         * lib/xvasprintf.h: Fix comments.
15242
15243 2006-06-28  Eric Blake  <ebb9@byu.net>
15244
15245         * lib/mbchar.h (wcwidth): Include wcwidth.h.
15246         * lib/mbswidth.c (wcwidth): Move from here...
15247         * lib/wcwidth.h: ...to this new file.
15248
15249 2006-06-28  Derek R. Price  <derek@ximbiot.com>
15250
15251         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
15252
15253         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
15254         it's obsolete.
15255         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
15256
15257 2006-06-28  Derek R. Price  <derek@ximbiot.com>
15258
15259         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
15260         Autoconf 2.60 says this stuff was obsolete.
15261
15262 2006-06-28  Bruno Haible  <bruno@clisp.org>
15263
15264         * modules/wcwidth (Files): Add m4/wchar_t.m4.
15265
15266 2006-06-28  Bruno Haible  <bruno@clisp.org>
15267
15268         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
15269         gt_TYPE_WCHAR_T.
15270
15271 2006-06-28  Bruno Haible  <bruno@clisp.org>
15272
15273         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
15274         declaration for wcwidth.
15275         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
15276
15277 2006-06-28  Bruno Haible  <bruno@clisp.org>
15278
15279         * lib/mkdtemp.c [MINGW]: Include <io.h>.
15280         (mkdir): Define using _mkdir.
15281
15282 2006-06-28  Bruno Haible  <bruno@clisp.org>
15283
15284         * lib/getaddrinfo.h: Fix POSIX URL.
15285         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
15286         _WIN32.
15287         (use_win32_p): Make static.
15288         (getaddrinfo): Reject service name if it is empty or does not consist
15289         solely of decimal digits, or if its value is > 65535.
15290         (getnameinfo): Remove useless casts.
15291
15292 2006-06-27  Simon Josefsson  <jas@extundo.com>
15293
15294         * modules/sys_select: New file, suggested by Bruno Haible, Paul
15295         Eggert and Martin Lambers.
15296
15297 2006-06-27  Simon Josefsson  <jas@extundo.com>
15298
15299         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
15300         Eggert and Martin Lambers.
15301
15302 2006-06-27  Bruno Haible  <bruno@clisp.org>
15303
15304         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
15305         result to 0, not to empty.
15306         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
15307
15308 2006-06-27  Bruno Haible  <bruno@clisp.org>
15309
15310         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
15311
15312 2006-06-26  Simon Josefsson  <jas@extundo.com>
15313
15314         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
15315         present.
15316
15317 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
15318
15319         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
15320         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
15321         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
15322
15323 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
15324
15325         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
15326
15327 2006-06-26  Bruno Haible  <bruno@clisp.org>
15328
15329         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
15330
15331 2006-06-26  Bruno Haible  <bruno@clisp.org>
15332
15333         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
15334
15335 2006-06-26  Bruno Haible  <bruno@clisp.org>
15336
15337         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
15338         SGI C compiler in pre-C99 mode.
15339         Suggested by Mark D. Baushke and Larry Jones.
15340
15341 2006-06-26  Bruno Haible  <bruno@clisp.org>
15342
15343         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
15344         WCHAR_MAX.
15345         Reported by Mark D. Baushke and Larry Jones.
15346
15347 2006-06-26  Bruno Haible  <bruno@clisp.org>
15348
15349         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
15350         in pre-C99 mode.
15351         Suggested by Mark D. Baushke and Larry Jones.
15352
15353 2006-06-23  Simon Josefsson  <jas@extundo.com>
15354             Bruno Haible  <bruno@clisp.org>
15355
15356         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
15357         Emit mostlyclean-local rule.
15358         (func_emit_tests_Makefile_am): Likewise.
15359         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
15360
15361 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
15362
15363         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
15364
15365 2006-06-23  Bruno Haible  <bruno@clisp.org>
15366
15367         * tests/test-stdint.c: Update to match ISO C 99 Technical
15368         Corrigendum 1.
15369
15370 2006-06-23  Bruno Haible  <bruno@clisp.org>
15371
15372         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
15373
15374 2006-06-23  Bruno Haible  <bruno@clisp.org>
15375
15376         * lib/stdint_.h: Treat IRIX like OpenBSD.
15377
15378 2006-06-23  Bruno Haible  <bruno@clisp.org>
15379
15380         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
15381         ISO C 99 Technical Corrigendum 1.
15382
15383 2006-06-22  Simon Josefsson  <jas@extundo.com>
15384
15385         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
15386         MinGW.
15387
15388 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
15389
15390         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
15391         needed.  Some compiler complained about some of them.  Problem reported
15392         by Larry Jones in
15393         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
15394
15395 2006-06-21  Simon Josefsson  <jas@extundo.com>
15396
15397         * tests/test-getaddrinfo.c: New file.
15398
15399         * modules/getaddrinfo-tests: New file.
15400
15401         * MODULES.html.sh: Add inet_pton.
15402
15403         * modules/inet_pton: New file.
15404
15405 2006-06-21  Simon Josefsson  <jas@extundo.com>
15406
15407         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
15408         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
15409         of using the (limited) gnulib implementation on Windows XP.
15410
15411         * m4/inet_pton.m4: New file.
15412
15413 2006-06-21  Simon Josefsson  <jas@extundo.com>
15414
15415         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
15416         variable.
15417
15418         * lib/socket_.h: Don't define WINVER.
15419
15420         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
15421         slightly modified to work in gnulib.
15422
15423 2006-06-21  Simon Josefsson  <jas@extundo.com>
15424
15425         * doc/gnulib.texi (Windows sockets): Add.
15426
15427 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
15428
15429         * lib/read-file.c (fread_file): Start with buffer allocation of
15430         0 bytes rather than 1 byte; this simplifies the code.
15431         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
15432         code to free buffer and save/restore errno.
15433         (internal_read_file): Remove unused local.
15434
15435 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
15436
15437         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
15438         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
15439         Problem reported by Denis Excoffier in
15440         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
15441
15442 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
15443
15444         * modules/sys_socket, modules/socklen: Include sys/types since
15445         FreeBSD 4.x's sys/socket.h needs it.
15446
15447 2006-06-19  Simon Josefsson  <jas@extundo.com>
15448
15449         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
15450
15451 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
15452
15453         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
15454
15455 2006-06-19  Bruno Haible  <bruno@clisp.org>
15456
15457         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
15458         and FULL_PATH_INTTYPES_H in angle brackets.
15459         Reported by Mark D. Baushke <mdb@gnu.org>.
15460
15461 2006-06-17  Eric Blake  <ebb9@byu.net>
15462
15463         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
15464         errno.
15465
15466 2006-06-17  Bruno Haible  <bruno@clisp.org>
15467
15468         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
15469         <sys/inttypes.h>.
15470
15471 2006-06-17  Bruno Haible  <bruno@clisp.org>
15472
15473         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
15474         whether errno is declared. Assume <errno.h> declares errno.
15475
15476 2006-06-17  Bruno Haible  <bruno@clisp.org>
15477
15478         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
15479
15480 2006-06-17  Bruno Haible  <bruno@clisp.org>
15481
15482         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
15483         problem on Solaris 2.5.1.
15484
15485 2006-06-16  Eric Blake  <ebb9@byu.net>
15486
15487         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
15488         * lib/unicodeio.c [!defined errno]: Likewise.
15489         * lib/strtol.c [!defined errno]: Likewise.
15490         * lib/strtod.c [!defined errno]: Likewise.
15491
15492 2006-06-15  Eric Blake  <ebb9@byu.net>
15493
15494         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
15495
15496 2006-06-15  Eric Blake  <ebb9@byu.net>
15497
15498         * config/srclist.txt (ssize_t.m4): Lose sync.
15499
15500 2006-06-15  Bruno Haible  <bruno@clisp.org>
15501
15502         * modules/stdint (Files): Include m4/full-header-path.m4,
15503         m4/size_max.m4, m4/wchar_t.m4.
15504         (Makefile.am): Many more substitutions.
15505         * modules/stdint-tests: New file.
15506         * tests/test-stdint.c: New file.
15507
15508 2006-06-15  Bruno Haible  <bruno@clisp.org>
15509
15510         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
15511         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
15512         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
15513         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
15514         gl_CHECK_TYPE_SAME): New macros.
15515
15516 2006-06-15  Bruno Haible  <bruno@clisp.org>
15517
15518         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
15519
15520 2006-06-15  Bruno Haible  <bruno@clisp.org>
15521
15522         * lib/stdint_.h: Rewritten to be fully auto-configured.
15523         Fixes bug on HP-UX/IA64.
15524
15525 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
15526
15527         * lib/getdate.y (__attribute__): Don't define if already defined.
15528         Problem reported by Larry Jones.
15529         * lib/utimens.c (__attribute__): Likewise.
15530
15531 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
15532
15533         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
15534         reported by Andreas Schwab.
15535
15536 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15537             Bruno Haible  <bruno@clisp.org>
15538
15539         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
15540         check for the declaration of strnlen and a run test that exposes the
15541         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
15542         rpl_strndup.
15543
15544 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15545             Bruno Haible  <bruno@clisp.org>
15546
15547         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
15548
15549 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15550
15551         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
15552         compile test, for Tru64 4.0D.
15553
15554 2006-05-28  Karl Berry  <karl@gnu.org>
15555
15556         * config/srclist.txt (printf-args.c): lose sync.
15557
15558 2006-05-26  Martin Lambers  <marlam@marlam.de>
15559
15560         * lib/getpass.c: Updates the test for the native W32 API, and adds
15561         missing includes, thus fixing compilation warnings.
15562
15563 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
15564
15565         * lib/exclude.c (exclude_fnmatch): New function.
15566         (excluded_file_name): Call exclude_fnmatch.
15567         * lib/exclude.h (excluded_file_name): New prototype
15568
15569 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
15570
15571         * lib/tempname.c (small_open, large_open): New macros.
15572         (__open, __open64) [!_LIBC]: Remove.
15573         (__gen_tempname): Use small_open and large_open instead of __open
15574         and __open64.  This fixes a portability bug on HP-UX 11.11i
15575         reported by Simon Wing-Tang in
15576         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
15577
15578 2006-05-24  Bruno Haible  <bruno@clisp.org>
15579
15580         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
15581         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
15582         Reported by Thorsten Maerz <torte@netztorte.de> via
15583         Aaron Stone <aaron@serendipity.cx>.
15584
15585 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15586
15587         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
15588         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
15589         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
15590         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
15591         not really conditional on the cache.
15592         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
15593
15594 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15595
15596         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
15597         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
15598         (my_usleep): Don't mishandle maximum value.
15599
15600 2006-05-19  Jim Meyering  <jim@meyering.net>
15601
15602         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
15603
15604 2006-05-17  Bruno Haible  <bruno@clisp.org>
15605
15606         Cygwin portability.
15607         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
15608
15609 2006-05-17  Bruno Haible  <bruno@clisp.org>
15610
15611         * lib/stdint_.h: Fix recognition of Cygwin.
15612
15613 2006-05-15  Bruno Haible  <bruno@clisp.org>
15614
15615         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
15616         on libtool patch by Ralf Wildenhues.
15617
15618 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
15619
15620         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
15621         test for C99 conformance; (bool) 0.5 is an integer constant
15622         expression, but (bool) -0.5 is not.  Problem reported by Fedor
15623         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
15624
15625 2006-05-11  Simon Josefsson  <jas@extundo.com>
15626
15627         * m4/xvasprintf.m4: Fix obvious typo.
15628
15629 2006-05-11  Jim Meyering  <jim@meyering.net>
15630
15631         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
15632         James Lemley.
15633
15634 2006-05-10  Simon Josefsson  <jas@extundo.com>
15635
15636         * lib/md4.c: Typo fix, update copyright years.
15637         (K1, K2): Don't use L because it turn computations into 64-bit on
15638         64-bit platforms.
15639
15640 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
15641
15642         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
15643         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
15644         unwanted sign propagation, e.g., on hosts with 64-bit int.
15645         There still are some problems with reeelly weird theoretical hosts
15646         (e.g., 33-bit int) but it's not worth worrying about now.
15647         * lib/sha1.c (rol): Likewise.
15648         (K1, K2, K3, K4): Remove unnecessary L suffix.
15649
15650 2006-05-10  Bruno Haible  <bruno@clisp.org>
15651
15652         * lib/des.c: Cast to avoid warnings.
15653
15654 2006-05-09  Bruno Haible  <bruno@clisp.org>
15655
15656         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
15657         (Depends-on): Depend also on xsize, stdarg.
15658         (configure.ac): Add gl_XVASPRINTF.
15659
15660 2006-05-09  Bruno Haible  <bruno@clisp.org>
15661
15662         * m4/xvasprintf.m4: New file.
15663
15664 2006-05-09  Bruno Haible  <bruno@clisp.org>
15665
15666         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
15667         (EOVERFLOW): Define fallback value.
15668         (xstrcat): New function.
15669         (xvasprintf): Recognize the special case of a string concatenation.
15670
15671 2006-05-08  Eric Blake  <ebb9@byu.net>
15672
15673         * gnulib-tool (func_version): Base copyright year on CVS date.
15674         (func_emit_copyright_notice): New function.
15675         (func_emit_lib_Makefile_am): Use it.
15676         (func_emit_tests_Makefile_am): Likewise.
15677         (func_import): Likewise.
15678
15679 2006-05-08  Bruno Haible  <bruno@clisp.org>
15680
15681         * modules/stdarg: New file.
15682         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
15683
15684 2006-05-08  Bruno Haible  <bruno@clisp.org>
15685
15686         * m4/stdarg.m4: New file, from GNU gettext.
15687
15688 2006-05-08  Bruno Haible  <bruno@clisp.org>
15689
15690         * config/srclist.txt (build-aux/config.rpath): different from latest
15691         release.
15692
15693 2006-05-08  Bruno Haible  <bruno@clisp.org>
15694
15695         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
15696
15697 2006-05-05  Jim Meyering  <jim@meyering.net>
15698
15699         * m4/warning.m4: New file, derived from bison's file by the same name.
15700
15701 2006-05-03  Bruno Haible  <bruno@clisp.org>
15702
15703         * lib/stdint_.h: Shorter URL.
15704         * lib/inttypes.h: Likewise.
15705
15706 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
15707
15708         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
15709
15710 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
15711
15712         * lib/verify.h: Document the internals better.  Most of this change
15713         was written by Bruno Haible.
15714
15715 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
15716
15717         * doc/verify.texi: New file, partly based on a proposal by
15718         Bruno Haible.
15719
15720 2006-05-02  Bruno Haible  <bruno@clisp.org>
15721
15722         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
15723         test from here...
15724         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
15725
15726 2006-04-29  Bruno Haible  <bruno@clisp.org>
15727
15728         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
15729         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
15730
15731 2006-04-29  Bruno Haible  <bruno@clisp.org>
15732
15733         * gnulib-tool: Make --update option actually work.
15734
15735 2006-04-29  Bruno Haible  <bruno@clisp.org>
15736
15737         * doc/gcd.texi: New file.
15738         * doc/gnulib.texi: Include it.
15739
15740 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
15741
15742         * lib/getdate.y (get_date): When adding relative date, start with the
15743         initial time, not with the result of the first mktime call.
15744
15745 2006-04-25  Bruno Haible  <bruno@clisp.org>
15746
15747         * gnulib-tool (func_import): Output the include directives in three
15748         blocks, sorted separately.
15749         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15750
15751 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
15752
15753         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
15754         to define main with arguments, for C++.  Reported by Eric Blake.
15755         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
15756         Prefer 'int main ()' to 'int main (void)', for C++.
15757         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
15758         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
15759         for 'main', for C99 and C++.
15760
15761 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
15762
15763         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
15764         Don't assume that exit status -1 is valid.
15765         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15766         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
15767         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
15768         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
15769         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
15770         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
15771         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
15772         functions can be used without declaring them, or that you can
15773         exit with status -1.
15774         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
15775
15776 2006-04-24  Karl Berry  <karl@gnu.org>
15777
15778         * config/srclist.txt (longdouble.m4): sync lost.
15779
15780 2006-04-24  Eric Blake  <ebb9@byu.net>
15781
15782         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
15783
15784 2006-04-24  Bruno Haible  <bruno@clisp.org>
15785
15786         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
15787         poll() implementation in AIX.
15788         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15789
15790 2006-04-24  Bruno Haible  <bruno@clisp.org>
15791
15792         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
15793         assigned exactly once.
15794
15795 2006-04-23  Claudio Fontana  <claudio@gnu.org>
15796             Bruno Haible  <bruno@clisp.org>
15797
15798         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
15799         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
15800         for AM_CPPFLAGS.
15801
15802 2006-04-23  Bruno Haible  <bruno@clisp.org>
15803
15804         * modules/copy-file: Depend on unistd.
15805         * modules/execute: Likewise.
15806         * modules/fatal-signal: Likewise.
15807         * modules/findprog: Likewise.
15808         * modules/mkdtemp : Likewise.
15809         * modules/pipe: Likewise.
15810         * modules/wait-process: Likewise.
15811
15812 2006-04-23  Bruno Haible  <bruno@clisp.org>
15813
15814         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
15815         condition was already detected.
15816         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15817
15818 2006-04-23  Bruno Haible  <bruno@clisp.org>
15819
15820         * lib/copy-file.c: Include <unistd.h> unconditionally.
15821         * lib/execute.c: Likewise.
15822         * lib/fatal-signal.c: Likewise.
15823         * lib/findprog.c: Likewise.
15824         * lib/mkdtemp.c: Likewise.
15825         * lib/pipe.h: Likewise.
15826         * lib/pipe.c: Likewise.
15827         * lib/wait-process.h: Likewise.
15828
15829 2006-04-23  Bruno Haible  <bruno@clisp.org>
15830
15831         * gnulib-tool (func_usage): Fix --import description. Document
15832         --update.
15833         (func_import): Create temporary file in a temporary directory, if
15834         --dry-run is specified. Silence errors from 'grep' when there are no
15835         m4 files in $m4dir.
15836         (func_create_testdir): Silence errors from 'grep' when there are no
15837         m4 files in $m4dir.
15838         Reported by Karl Berry <karl@freefriends.org>.
15839
15840 2006-04-20  Bruno Haible  <bruno@clisp.org>
15841
15842         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
15843         one argument, so that the code will be portable to Autoconf 2.60.
15844         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
15845         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
15846         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
15847
15848 2006-04-19  Derek Price  <derek@ximbiot.com>
15849             Eric Blake  <ebb9@byu.net>
15850
15851         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
15852         rather than "/full/path.h".  Update comment to match.  Shorten &
15853         generalize m4_translit call via AS_TR_CPP.
15854
15855 2006-04-19  Derek Price  <derek@ximbiot.com>
15856             Eric Blake  <ebb9@byu.net>
15857
15858         * lib/inttypes.h: Correct grammar in comment.
15859
15860 2006-04-18  Derek Price  <derek@ximbiot.com>
15861             Paul Eggert  <eggert@cs.ucla.edu>
15862
15863         * modules/inttypes: New file.
15864         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
15865
15866 2006-04-18  Derek Price  <derek@ximbiot.com>
15867             Paul Eggert  <eggert@cs.ucla.edu>
15868
15869         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
15870         New files.
15871
15872 2006-04-18  Derek Price  <derek@ximbiot.com>
15873             Paul Eggert  <eggert@cs.ucla.edu>
15874
15875         * lib/inttypes.h: New file.
15876         * lib/strtoimax.c: Assume <inttypes.h>.
15877
15878 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
15879
15880         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
15881         isn't mounted.  Problem reported by Kir Kolyshkin.
15882
15883 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
15884
15885         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
15886         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
15887         Derek R. Price.
15888         * lib/regex.h (RE_DUP_MAX): Update comment to match current
15889         implementation.
15890
15891 2006-04-12  Eric Blake  <ebb9@byu.net>
15892
15893         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
15894         is now done automatically by the corresponding Autoconf macro.
15895
15896 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
15897
15898         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
15899         time_r.h.
15900
15901 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
15902
15903         Merge regex changes from libc, removing some of our
15904         POSIX-conformance changes that were rejected and redoing them in a
15905         less-intrusive way.
15906
15907         * lib/regcomp.c (re_compile_internal, init_dfa):
15908         Length arg is now size_t, not Idx.  All uses changed.
15909         (peek_token): Forward decl now says internal_function.
15910         (__re_error_msgid, __re_error_msgid_idx):
15911         Now static rather than extern with attribute_hidden.
15912         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
15913         For some reason libc prefers K&R style defns for external functions.
15914         (regerror) [!defined _LIBC]: Likewise.
15915         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
15916         (seek_collating_symbol_entry, lookup_collation_sequence_value):
15917         (build_range_exp, build_collating_symbol):
15918         Use K&R-style defn.
15919         (re_compile_fastmap): Use '\0' to memset, not 0.
15920         (utf8_sb_map): Make the calculations more obvious.
15921         (init_dfa, parse_bracket_exp, build_charclass_op):
15922         Call calloc and cast result, as glibc does.
15923         (init_word_char, fetch_token, peek_token, peek_token_bracket):
15924         (build_range_exp, build_collating_symbol):
15925         Now internal functions.
15926
15927         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
15928
15929         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
15930         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
15931         Don't depend on VMS; depend on __VMS instead, for POSIX
15932         namespace cleanness.
15933         (regoff_t): Define to ssize_t, not long int.
15934
15935         Remove the REG_ macros named below.  Instead, make the old names
15936         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
15937         __USE_GNU_REGEX.
15938         (REG_BACKSLASH_ESCAPE_IN_LISTS):
15939         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
15940         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
15941         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
15942         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
15943         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
15944         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
15945         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
15946         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
15947         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
15948         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
15949         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
15950         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
15951         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
15952         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
15953         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
15954         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
15955         (REG_NREGS):
15956         Remove.  All uses replaced by the old RE_* names.
15957         (RE_BACKSLASH_ESCAPE_IN_LISTS):
15958         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
15959         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
15960         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
15961         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
15962         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
15963         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
15964         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
15965         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
15966         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
15967         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
15968         Don't bother having these macros be independent of each others'
15969         values, since they no longer exist in the POSIX name space.
15970
15971         Rename the following member names back to their old names,
15972         unless !__USE_GNU_REGEX.  All uses changed back.
15973         (buffer): Renamed from re_buffer.
15974         (allocated): Renamed from re_allocated.
15975         (used): Renamed from re_used.
15976         (syntax): Renamed from re_syntax.
15977         (fastmap): Renamed from re_fastmap.
15978         (translate): Renamed from re_translate.
15979         (can_be_null): Renamed from re_can_be_null.
15980         (regs_allocated): Renamed from re_regs_allocated.
15981         (fastmap_accurate): Renamed from re_fastmap_accurate.
15982         (no_sub): Renamed from re_no_sub.
15983         (not_bol): Renamed from re_not_bol.
15984         (not_eol): Renamed from re_not_eol.
15985         (newline_anchor): Renamed from re_newline_anchor.
15986         (num_regs): Renamed from rm_num_regs.
15987         (start): Renamed from rm_start.
15988         (end): Renamed from rm_end.
15989
15990         (free_state): Move up a bit.
15991
15992         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
15993         #define to be empty.
15994         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
15995         when that is what is intended.
15996         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
15997         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
15998         (MAX): New macro.
15999         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
16000         All uses changed back to re_malloc, etc.  It's now the caller's
16001         responsibility to check for overflow; all callers changed.
16002         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
16003         (re_x2nrealloc): Remove.
16004         (free_state): Remove decl.
16005
16006         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
16007         (re_set_registers, re_exec):
16008         Use K&R-style defn.
16009
16010         2006-01-31  Roland McGrath  <roland@redhat.com>
16011
16012         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
16013         Reported by Mike Frysinger <vapier@gentoo.org>.
16014
16015         2006-01-15  Andreas Jaeger  <aj@suse.de>
16016
16017         [BZ #1950]
16018         * lib/regex_internal.c (re_string_reconstruct): Adjust for
16019         build_wcs_upper_buffer change.
16020         (build_wcs_upper_buffer): Change return type.
16021
16022         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
16023
16024         * lib/regex_internal.h: Include <stdint.h> if available.
16025
16026         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
16027
16028         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
16029
16030         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
16031
16032         * lib/regcomp.c: Adjust for changed secondary hash function.
16033
16034         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
16035
16036         * lib/regex.h: Pretty printing.
16037         Clean up namespace a bit.
16038
16039         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
16040
16041         * lib/regexec.c (update_cur_sifted_state, check_arrival,
16042         check_arrival_add_next_nodes): Avoid using uninitialized variable.
16043
16044         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
16045                     Ulrich Drepper  <drepper@redhat.com>
16046
16047         [BZ #1302]
16048         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
16049         changed.
16050         (bitset_word_t): Renamed from bitset_word.  All uses changed.
16051
16052         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
16053
16054         [BZ #281]
16055         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
16056         * lib/regcomp.c: Remove unnecessary uses of
16057         unsigned RE_TRANSLATE_TYPE.
16058         * lib/regex_internal.h: Likewise.
16059         * lib/regex_internal.c: Likewise.
16060         * lib/regexec.c: Likewise.
16061         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
16062
16063         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
16064
16065         * lib/regexec.c (find_recover_state): Remove unnecessary
16066         initialization.
16067         (transit_state_bkref): Make DFA a const pointer.
16068         (get_subexp): Likewise.
16069         (check_arrival): Likewise.
16070         (update_cur_sifted_state): Likewise.
16071         (re_search_internal): Likewise.
16072         (prune_impossible_nodes): Likewise.
16073         (acquire_init_state_context): Likewise.
16074         (proceed_next_node): Likewise.
16075         (set_regs): Likewise.
16076         (free_fail_stack_return): Likewise.
16077         (check_arrival_expand_ecl): Mark DFA parameter as const.
16078         (check_arrival_expand_ecl_sub): Likewise.
16079         (check_subexp_limits): Likewise.
16080         (sub_epsilon_src_nodes):  Likewise.
16081         (add_epsilon_src_nodes):  Likewise.
16082         (merge_state_array): Likewise.
16083         (update_regs): Likewise.
16084         (build_trtable): Likewise.
16085         (sift_states_backward): Mark MCTX parameter as const.
16086         (build_sifted_states): Likewise.
16087         (update_cur_sifted_state): Likewise.
16088         (sift_states_mkref): Likewise.
16089         (check_arrival_expand_ecl): Mark eclosure as const.
16090         (check_dst_limits_calc_pos_1): Likewise.
16091         * lib/regex_internal.h (re_match_context_t): Make dfa a const
16092         pointer.
16093
16094         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
16095
16096         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
16097         (transit_state_sb): Likewise.
16098         (transit_state_mb): Likewise.
16099         (sift_states_iter_mb): Likewise.
16100         (check_arrival_add_next_nodes): Likewise.
16101         (check_node_accept_bytes): Change first parameter to pointer-to-const.
16102         [_LIBC] (re_search_2_stub): Use mempcpy.
16103
16104         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
16105         mbrtowc for very simple UTF-8 case.
16106
16107         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
16108         a pointer-to-const.
16109         (re_acquire_state_context): Likewise.
16110         * lib/regex_internal.h: Adjust prototypes.
16111
16112         * lib/regex.c: Prevent using C++ compilers.
16113
16114         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
16115         (re_acquire_state_context): Likewise.
16116
16117 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
16118
16119         * modules/regex (Depends-on): Add ssize_t.
16120
16121 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
16122
16123         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
16124         translation table.
16125
16126 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
16127
16128         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
16129
16130 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
16131             Bruno Haible  <bruno@clisp.org>
16132
16133         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
16134         <sys/types.h> and <inttypes.h>.
16135
16136 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16137
16138         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
16139         `__error_t_defined', so argp.h will not typedef the former.
16140
16141 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
16142
16143         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
16144         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
16145         glibc names.  Even if glibc is changed to conform to POSIX, the
16146         traditional names will be available anyway, since regex depends on
16147         the extensions module.  Also, fix a longstanding typo in the
16148         implementation of Spencer ERE test #75 from grep 2.3.  Problems
16149         reported by Emanuele Giaquinta.  Also, change sense of cached
16150         variable, so that the message makes sense.
16151
16152 2006-03-24  Simon Josefsson  <jas@extundo.com>
16153
16154         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
16155         including some doc fixes.
16156         (base64_encode_alloc): Fix +1 bug on allocation failures.
16157
16158 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16159
16160         * lib/base64.c (base64_encode): Do not read past end of array with
16161         unsanitized input on systems with CHAR_BIT > 8.
16162
16163 2006-03-24  Eric Blake  <ebb9@byu.net>
16164
16165         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
16166
16167 2006-03-22  Karl Berry  <karl@gnu.org>
16168
16169         * config/srclist.txt (*setenv.[ch]): get from coreutils.
16170         * config/srclistvars.sh (COREUTILS): new var.
16171
16172 2006-03-17  Jim Meyering  <jim@meyering.net>
16173
16174         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
16175         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
16176
16177 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
16178
16179         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
16180         no longer needs it.  Instead, check that regoff_t is as least
16181         as wide as ptrdiff_t.
16182
16183         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
16184         so that our regex.h stays compatible with the installed regex.
16185         This is helpful for installers who configure --without-included-regex.
16186         Problem reported by Emanuele Giaquinta.
16187
16188 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
16189
16190         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
16191         Typedef to long int, not to off_, as POSIX will likely change
16192         in that direction.
16193
16194 2006-03-15  Eric Blake  <ebb9@byu.net>
16195
16196         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
16197
16198 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
16199
16200         * lib/argp-help.c (validate_uparams): Fix typo
16201         * lib/argp-parse.c (argp_default_options): Consistently begin help
16202         messages with a lowercase letter.
16203
16204 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
16205
16206         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
16207         overrun buffers and shouldn't be used (much as gets shouldn't be
16208         used).
16209         * lib/time_r.c (asctime_r, ctime_r): Likewise.
16210
16211 2006-03-08  Simon Josefsson  <jas@extundo.com>
16212
16213         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
16214         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16215
16216 2006-03-08  Simon Josefsson  <jas@extundo.com>
16217
16218         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
16219         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16220
16221 2006-03-08  Simon Josefsson  <jas@extundo.com>
16222
16223         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
16224         signal that configure disabled the device.
16225
16226 2006-03-08  Simon Josefsson  <jas@extundo.com>
16227
16228         * build-aux/maint.mk: Fix refresh-po, to handle no translated
16229         languages.
16230
16231 2006-03-07  Simon Josefsson  <jas@extundo.com>
16232
16233         * modules/getopt (Depends-on): Add unistd.
16234
16235         * modules/unistd: New file.
16236
16237 2006-03-07  Simon Josefsson  <jas@extundo.com>
16238
16239         * modules/gc-random: New file.
16240
16241 2006-03-07  Simon Josefsson  <jas@extundo.com>
16242
16243         * m4/unistd_h.m4: New file.
16244
16245 2006-03-07  Simon Josefsson  <jas@extundo.com>
16246
16247         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
16248         test to be side-effect free by storing the result in the cache
16249         variable gl_cv_lib_readline, and moving the assignment of
16250         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
16251         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16252
16253 2006-03-07  Simon Josefsson  <jas@extundo.com>
16254
16255         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
16256         error on missing devices (the functions will return an error).
16257
16258         * m4/gc.m4: Move random stuff to gc-random.m4
16259
16260 2006-03-07  Simon Josefsson  <jas@extundo.com>
16261
16262         * lib/unistd_.h: New file.
16263
16264 2006-03-07  Simon Josefsson  <jas@extundo.com>
16265
16266         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
16267
16268 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
16269
16270         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
16271         Problem reported by Juan Manuel Guerrero.
16272
16273 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
16274
16275         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
16276         the unistd module.
16277         * lib/getlogin_r.c: Likewise.
16278         * lib/getlogin_r.h: Likewise.
16279         * lib/glob.c: Likewise.
16280         * lib/pagealign_alloc.c: Likewise.
16281         * lib/unistd_.h: Remove; no longer needed.
16282
16283 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
16284
16285         * MODULES.html.sh (Support for systems lacking POSIX:2001):
16286         Add unistd.
16287         * modules/c-stack (Depends-on): Add unistd.
16288         * modules/getlogin_r: Likewise.
16289         * modules/glob: Likewise.
16290         * modules/pagealign_alloc: Likewise.
16291         * modules/unistd (Files): Remove lib/unistd_.h.
16292         (EXTRA_DIST): Remove.
16293         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
16294         need unistd_.h.
16295         (MOSTLYCLEANFILES): Remove unistd.h-t.
16296
16297 2006-03-03  Simon Josefsson  <jas@extundo.com>
16298
16299         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
16300
16301 2006-03-03  Simon Josefsson  <jas@extundo.com>
16302
16303         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
16304         libidn and bison.
16305
16306 2006-03-03  Simon Josefsson  <jas@extundo.com>
16307
16308         * build-aux/maint.mk: Add indent target.
16309
16310 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
16311
16312         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
16313         our replacement poll.h in any case, to avoid a differing
16314         declaration from a system header.  Seen on AIX.
16315
16316 2006-03-01  Simon Josefsson  <jas@extundo.com>
16317
16318         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
16319         <kasal@ucw.cz>.
16320
16321 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
16322
16323         * modules/gettime (Depends-on): Add extensions module.
16324         * modules/nanosleep (Depends-on): Likewise.
16325         * modules/settime (Depends-on): Likewise.
16326
16327 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
16328
16329         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
16330         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
16331         pedantically.
16332         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16333         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
16334
16335         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
16336         not "==".  Reported by Ralf Wildenhues.
16337
16338 2006-03-01  Karl Berry  <karl@gnu.org>
16339
16340         * doc/Copyright/request-*: new files, synced from gnuorg.
16341
16342 2006-03-01  Karl Berry  <karl@gnu.org>
16343
16344         * config/srclist.txt (Copyright/*): new entries.
16345
16346 2006-02-28  Simon Josefsson  <jas@extundo.com>
16347
16348         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
16349
16350 2006-02-27  Simon Josefsson  <jas@extundo.com>
16351
16352         * lib/base64.h: Indent #define's.  From Jim Meyering
16353         <jim@meyering.net>.
16354
16355 2006-02-27  Jim Meyering  <jim@meyering.net>
16356
16357         Revert the change of 2006-02-24, so these files can continue
16358         to be sync'd from gettext.
16359         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
16360         of `config.h'.
16361
16362 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
16363
16364         * modules/intprops: New file.
16365         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
16366         Add intprops.
16367         * modules/getloadavg (Files): Remove lib/intprops.h.
16368         (Depends-on): Add intprops.
16369         * modules/human: Likewise.
16370         * modules/inttostr: Likewise.
16371         * modules/openat: Likewise.
16372         * modules/sig2str: Likewise.
16373         * modules/userspec: Likewise.
16374         * modules/utimecmp: Likewise.
16375         * modules/xnanosleep: Likewise.
16376         * modules/xstrtol: Likewise.
16377
16378 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
16379
16380         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
16381         * modules/lock-tests (TESTS): Use $(EXEEXT).
16382         * modules/tls-tests: Likewise.
16383         * modules/argp-tests: Likewise.
16384         (check_PROGRAMS): New var, replacing...
16385         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
16386
16387 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16388
16389         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
16390         `config.h'.
16391
16392 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
16393
16394         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
16395
16396 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16397
16398         Sync from coreutils.
16399         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
16400         gl_CHDIR_SAFER.
16401
16402 2006-02-22  Jim Meyering  <jim@meyering.net>
16403
16404         Sync from coreutils.
16405         * m4/chdir-safer.m4: New file.
16406
16407 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
16408
16409         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
16410         AT_FDCWD exceeds INT_MAX.
16411         * lib/openat.h (AT_FDCWD): Likewise.
16412
16413 2006-02-17  Eric Blake  <address@hidden>
16414
16415         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
16416
16417 2006-02-16  Simon Josefsson  <jas@extundo.com>
16418
16419         * modules/getaddrinfo (Depends-on): Add sys_socket.
16420
16421 2006-02-15  Simon Josefsson  <jas@extundo.com>
16422
16423         * build-aux/maint.mk: Add dsyntax-check rule.
16424
16425 2006-02-15  Eric Blake  <ebb9@byu.net>
16426
16427         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
16428         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
16429         'present but cannot compile' warnings on cygwin.
16430         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
16431         use ws2tcpip.h if sys/socket.h works.
16432         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
16433         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
16434
16435 2006-02-14  Simon Josefsson  <jas@extundo.com>
16436
16437         * modules/maintainer-makefile (Files): Rename.
16438
16439         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
16440         and (the local) Makefile.cfg to maint-cfg.mk.
16441
16442         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
16443         to the latter.
16444
16445         * modules/maintainer-makefile: New module.
16446
16447         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
16448         severaly stripped to make it possible to build it up from scratch
16449         with reliable tests.
16450
16451         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
16452         fixes to permit overriding the default actions when configure and
16453         makefile are not available.
16454
16455 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
16456
16457         Sync from coreutils.
16458         * modules/lstat (Depends-on): Don't depend on xalloc.
16459         (License): Change from GPL to LGPL, since this is now simply a
16460         replacement for a libc function.
16461
16462 2006-02-14  Jim Meyering  <jim@meyering.net>
16463
16464         Sync from coreutils.
16465
16466         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
16467         failure on deficient systems, and simplify gnulib lgpl dependencies.
16468         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
16469         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
16470
16471         * lib/xalloc-die.c: Remove unused definition of N_.
16472
16473 2006-02-14  Jim Meyering  <jim@meyering.net>
16474
16475         Sync from coreutils.
16476         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
16477         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
16478         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
16479         double-quote uses of that variable, to accommodate the rare case in
16480         which getmntent is available in none of the libraries checked.  This
16481         happens at least on FreeBSD 5.0.
16482
16483 2006-02-13  Simon Josefsson  <jas@extundo.com>
16484
16485         * gnulib-tool (Usage): Fix --import, from
16486         karl@freefriends.org (Karl Berry).
16487
16488 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
16489
16490         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
16491
16492 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
16493
16494         * lib/argp-namefrob.h: Restore changes accidentally lost during the
16495         "autoupdate" on 2005-12-12.
16496
16497 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
16498
16499         * modules/closeout (Depends-on): Remove atexit.
16500
16501 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
16502
16503         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
16504         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
16505
16506 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
16507
16508         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
16509         __EXTENSIONS__ if this causes compilation to fail.  Problem
16510         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
16511         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
16512
16513 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
16514
16515         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
16516         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
16517         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
16518         All uses changed.
16519
16520 2006-01-26  Simon Josefsson  <jas@extundo.com>
16521
16522         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
16523         prototype is visible on mingw32.
16524
16525         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
16526         for mingw32.
16527
16528         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
16529         mingw32).
16530
16531 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
16532
16533         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
16534         attempt to open for write; this always fails, at least on POSIX
16535         hosts.  This reinstates the 2006-01-09 change, which was
16536         inadvertently removed.
16537
16538 2006-01-26  Bruno Haible  <bruno@clisp.org>
16539
16540         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
16541         Reported by Paul Eggert.
16542
16543 2006-01-26  Bruno Haible  <bruno@clisp.org>
16544             Paul Eggert  <eggert@cs.ucla.edu>
16545
16546         * lib/stdbool_.h (_Bool)
16547         [(! (defined __cplusplus || defined __BEOS__)
16548           && !defined __GNUC__
16549           && !(defined __HP_cc || defined __xlc__
16550                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
16551                || defined __sgi))]:
16552         #define to signed char in these cases too; this simplifies
16553         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
16554         etc., separately) and makes it more conservative.
16555
16556 2006-01-25  Simon Josefsson  <jas@extundo.com>
16557
16558         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
16559         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
16560         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
16561
16562 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
16563
16564         * lib/argp-namefrob.h: Bugfix. Remove stray #
16565
16566 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
16567
16568         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
16569         so that we test the test.
16570         Check for yet another HP-UX cc bug involving *bool |= bool.
16571
16572 2006-01-25  Karl Berry  <karl@gnu.org>
16573
16574         * config/srclist.txt (vasnprintf.c): sync lost.
16575
16576 2006-01-25  Jim Meyering  <jim@meyering.net>
16577
16578         Sync from the stable (b5) branch of coreutils:
16579
16580         * lib/fts.c (fts_children): Don't let close() clobber errno from
16581         failed fchdir().
16582
16583         * lib/fts.c (fts_stat): When following a symlink-to-directory,
16584         don't necessarily interpret stat-fails+lstat-succeeds as indicating
16585         a dangling symlink.  That can also happen at least for ELOOP.
16586         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
16587         FYI, this bug predates the inclusion of fts.c in coreutils.
16588
16589         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
16590         in their own block, so pre-c99 compilers don't object.
16591
16592         Avoid the double-free (first in fts_read, second in fts_close) that
16593         would occur when an `active' directory is made inaccessible (e.g.,
16594         via chmod a-x) during a traversal.
16595         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
16596         before returning.  Reproduce this failure by
16597         mkdir -p a/b; cd a; chmod a-x . b
16598         Reported by Stavros Passas.
16599
16600 2006-01-25  Jim Meyering  <jim@meyering.net>
16601
16602         * lib/fileblocks.c: Remove more useless parentheses.
16603         * lib/readutmp.h: Likewise.
16604
16605 2006-01-25  Bruno Haible  <bruno@clisp.org>
16606
16607         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
16608         warnings.
16609         Reported by Paul Eggert.
16610
16611 2006-01-25  Bruno Haible  <bruno@clisp.org>
16612
16613         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
16614         rid of a trap command. For Solaris sh.
16615         Reported by Mark D. Baushke <mdb@gnu.org>.
16616
16617 2006-01-24  Simon Josefsson  <jas@extundo.com>
16618
16619         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
16620         Bruno.
16621
16622 2006-01-24  Karl Berry  <karl@gnu.org>
16623
16624         * config/srclist.txt (argp-namefrob.h): sync lost.
16625
16626 2006-01-24  Jim Meyering  <jim@meyering.net>
16627
16628         * modules/openat (Files): Add lib/intprops.h.
16629         From Mark D. Baushke.
16630
16631 2006-01-24  Jim Meyering  <jim@meyering.net>
16632
16633         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
16634         Reported by Mark D. Baushke.
16635
16636 2006-01-24  Jim Meyering  <jim@meyering.net>
16637
16638         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
16639
16640 2006-01-24  Bruno Haible  <bruno@clisp.org>
16641
16642         * modules/strnlen (Maintainer): Change from glibc to all.
16643
16644 2006-01-24  Bruno Haible  <bruno@clisp.org>
16645
16646         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
16647         Patch by Paul Eggert.
16648
16649 2006-01-24  Bruno Haible  <bruno@clisp.org>
16650
16651         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
16652         already has it.
16653         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
16654         2005-11-26.
16655
16656         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
16657         'signed char' to avoid problems with the built-in _Bool type.
16658         Reported by Paul Eggert on 2005-11-26.
16659
16660 2006-01-24  Bruno Haible  <bruno@clisp.org>
16661
16662         * gnulib-tool (func_import): Avoid constructing complicated sed
16663         expressions inside backquote.
16664         Report and solution by Mark D. Baushke <mdb@gnu.org>.
16665
16666 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
16667
16668         These changes imported from libc.
16669         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
16670         test and two separate function calls.
16671         * lib/strndup.c (__strndup): Add libc_hidden_def.
16672
16673 2006-01-23  Simon Josefsson  <jas@extundo.com>
16674
16675         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
16676         Remove the test_*_SOURCES variable: automake infers it by default.
16677         * modules/tls-tests: Likewise.
16678
16679 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
16680
16681         Work around porting bugs reported by Dieter in
16682         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
16683         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
16684         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
16685         Include "getopt.h" first, to check interface.
16686         (getenv): Declare only if defined HAVE_DECL_GETENV &&
16687         !HAVE_DECL_GETENV.
16688         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
16689         (__strndup): Revert to K&R-style function dfns, the glibc style.
16690         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
16691         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
16692         Include strnlen.h first, to get prototype properly.
16693         (strnlen): Renamed from __strnlen.
16694         Remove weak alias.
16695
16696 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
16697
16698         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
16699
16700 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
16701
16702         * config/srclist.txt: Adjust to reflect glibc reorganization.
16703         This affects only comments.
16704
16705 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
16706
16707          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
16708          Reported by Bruce Korb <bkorb@gnu.org>.
16709
16710 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
16711
16712         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
16713         to pacify gcc -Wswitch-default.
16714
16715 2006-01-22  Bruno Haible  <bruno@clisp.org>
16716
16717         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
16718         temporary buffer for sprintf, take into account the precision also
16719         for 'd', 'i', 'u', 'o', 'x', 'X'.
16720
16721 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
16722
16723         * modules/argp-tests: New module
16724         * tests/test-argp.c: New file
16725         * tests/test-argp-2.sh: New file
16726
16727 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
16728
16729         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
16730         (__argp_base_name): Removed
16731         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
16732         typo.
16733         (__argp_base_name): Provide macro definition or extern declaration
16734         depending on the configuration
16735
16736 2006-01-20  Simon Josefsson  <jas@extundo.com>
16737
16738         * modules/inet_ntop (Depends-on): Depend on sys_socket.
16739
16740 2006-01-20  Simon Josefsson  <jas@extundo.com>
16741
16742         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
16743
16744 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
16745
16746         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
16747         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
16748         Suggested by Bruno Haible.
16749
16750 2006-01-20  Karl Berry  <karl@gnu.org>
16751
16752         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
16753         until changes propagate, I guess.
16754
16755 2006-01-19  Simon Josefsson  <jas@extundo.com>
16756
16757         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
16758
16759 2006-01-19  Simon Josefsson  <jas@extundo.com>
16760
16761         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
16762
16763 2006-01-19  Simon Josefsson  <jas@extundo.com>
16764
16765         * gnulib-tool: Set check_PROGRAMS.
16766
16767         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
16768         modules/des-tests, modules/gc-arcfour-tests,
16769         modules/gc-arctwo-tests, modules/gc-des-tests,
16770         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
16771         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
16772         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
16773         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
16774         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
16775         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
16776         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
16777         test_*_SOURCES.
16778
16779 2006-01-18  Simon Josefsson  <jas@extundo.com>
16780
16781         * modules/socklen (Depends-on): Depend on sys_socket.
16782
16783 2006-01-18  Simon Josefsson  <jas@extundo.com>
16784
16785         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
16786         modules/des-tests, modules/gc-arcfour-tests,
16787         modules/gc-arctwo-tests, modules/gc-des-tests,
16788         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
16789         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
16790         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
16791         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
16792         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
16793         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
16794         $(EXEEXT) to automake TESTS variable, for mingw32.
16795
16796 2006-01-17  Simon Josefsson  <jas@extundo.com>
16797
16798         * modules/socklen (Include): Need sys/socket.h.
16799
16800 2006-01-17  Bruno Haible  <bruno@clisp.org>
16801
16802         * modules/ssize_t (Include): Add <sys/types.h>.
16803
16804 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
16805
16806         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
16807         it's not portable and it doesn't work with cross-compiles.
16808         Problem reported by Bruno Haible.  Fix missing-$ typo in
16809         'test "gl_cv_ignore_unused_libraries" ...' that prevented
16810         -zignore from being used with Sun's C compiler.
16811
16812 2006-01-12  Simon Josefsson  <jas@extundo.com>
16813
16814         * lib/base64.c: Fix warning, reported by Bruno Haible
16815         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
16816
16817 2006-01-12  Bruno Haible  <bruno@clisp.org>
16818
16819         * modules/ldd: New file.
16820         * build-aux/ldd.sh.in: New file.
16821         * MODULES.html.sh (Support for building libraries and executables): Add
16822         ldd.
16823
16824 2006-01-12  Bruno Haible  <bruno@clisp.org>
16825
16826         * m4/ldd.m4: New file.
16827
16828 2006-01-12  Bruno Haible  <bruno@clisp.org>
16829
16830         * gnulib-tool (func_import, func_create_testdir): Don't go into an
16831         endless loop while replacing $auxdir with build-aux.
16832
16833 2006-01-11  Simon Josefsson  <jas@extundo.com>
16834
16835         * lib/stdint_.h (SIZE_MAX): Add missing (.
16836
16837 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
16838
16839         Sync from coreutils.
16840         * lib/md5.c: Fix commentary typos.
16841         (alignof, UNALIGNED_P): No need for a GCC-specific version.
16842         * lib/md5.h (__attribute__): Remove; unused.
16843         * lib/sha1.c: Fix commentary to match md5 better.
16844         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
16845         so that we don't need to worry about alignment.  All uses changed.
16846         This merges the 2005-10-28 md5 change into sha1.
16847
16848 2006-01-11  Jim Meyering  <jim@meyering.net>
16849
16850         Sync from coreutils.
16851         * lib/md5.c (OP): Fix spacing.
16852
16853 2006-01-11  Bruno Haible  <bruno@clisp.org>
16854
16855         Ensure automatic ordering between gl_LOCK and gl_ARGP.
16856         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
16857         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
16858
16859 2006-01-11  Bruno Haible  <bruno@clisp.org>
16860
16861         Ensure automatic ordering between gl_LOCK and gl_ARGP.
16862         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
16863         the "early" section as well.
16864
16865 2006-01-11  Bruno Haible  <bruno@clisp.org>
16866
16867         Avoid "ar: no archive members specified" error on MacOS X.
16868         * gnulib-tool (func_modules_add_dummy): New function.
16869         (func_import, func_create_testdir): Invoke it.
16870
16871 2006-01-11  Bruno Haible  <bruno@clisp.org>
16872
16873         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
16874         with $auxdir in AC_CONFIG_FILES statements.
16875
16876 2006-01-11  Bruno Haible  <bruno@clisp.org>
16877
16878         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
16879         Initialize also noinst_HEADERS to empty.
16880
16881 2006-01-11  Bruno Haible  <bruno@clisp.org>
16882
16883         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
16884         variables.
16885         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
16886         autoreconf.
16887
16888 2006-01-11  Bruno Haible  <bruno@clisp.org>
16889
16890         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
16891         overridable by the user.
16892         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16893
16894 2006-01-10  Simon Josefsson  <jas@extundo.com>
16895
16896         * modules/sys_socket: New file.
16897
16898 2006-01-10  Simon Josefsson  <jas@extundo.com>
16899
16900         * m4/sys_socket_h.m4: New file.
16901
16902 2006-01-10  Simon Josefsson  <jas@extundo.com>
16903
16904         * lib/socket_.h: New file.
16905
16906 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
16907
16908         * modules/readutmp (Maintainer): Add myself.
16909
16910 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
16911
16912         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
16913         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
16914         People who are still concerned with buggy memcmp implementations
16915         can invoke gl_FUNC_MEMCMP themselves.
16916
16917 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
16918
16919         * lib/regex_internal.h (BITSET_WORD_BITS):
16920         Work around a bug in 64-bit PGC (before version 6.1-2), where the
16921         preprocessor mishandles large unsigned values as if they were signed.
16922         Problem reported by Claudio Fontana in
16923         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
16924
16925 2006-01-10  Jim Meyering  <jim@meyering.net>
16926
16927         Avoid the double-free (first in fts_read, second in fts_close) that
16928         would occur when an `active' directory is made inaccessible (e.g.,
16929         via chmod a-x) during a traversal.
16930         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
16931         before returning.  Reproduce this failure by
16932         mkdir -p a/b; cd a; chmod a-x . b
16933         Reported by Stavros Passas.
16934
16935         Sync from coreutils.
16936         * lib/sha1.c: Tweak grammar in a comment.
16937
16938 2006-01-10  Jim Meyering  <jim@meyering.net>
16939
16940         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
16941         Patch by Joerg Sonnenberger.
16942
16943 2006-01-10  Bruno Haible  <bruno@clisp.org>
16944
16945         * modules/readutmp: Depend on module free.
16946         * modules/strtok_r: Depend on module restrict.
16947
16948 2006-01-10  Bruno Haible  <bruno@clisp.org>
16949
16950         * modules/gettext (configure.ac): Add an invocation of
16951         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
16952
16953 2006-01-10  Bruno Haible  <bruno@clisp.org>
16954
16955         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
16956         Reported by Werner Lemberg <wl@gnu.org>.
16957
16958 2006-01-10  Bruno Haible  <bruno@clisp.org>
16959
16960         * lib/localcharset.c: Update from GNU gettext.
16961
16962 2006-01-10  Bruno Haible  <bruno@clisp.org>
16963
16964         * lib/argp.h (__const): Remove macro. Use const instead.
16965         * lib/argp-fmtstream.h (__const): Likewise.
16966         * lib/glob_.h (__const): Remove macro.
16967         * lib/glob-libc.h: Use const instead of __const.
16968
16969 2006-01-10  Bruno Haible  <bruno@clisp.org>
16970
16971         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
16972         variable.
16973         Needed to avoid an automake error regarding the 'gettext' module.
16974
16975 2006-01-09  Simon Josefsson  <jas@extundo.com>
16976
16977         * modules/inet_ntop (Depends-on): Add restrict.
16978
16979 2006-01-09  Simon Josefsson  <jas@extundo.com>
16980
16981         * modules/gc-rijndael-tests (License): Put under LGPL.
16982
16983         * modules/gc-des-tests (License): Likewise.
16984
16985         * modules/gc-arcfour-tests (License): Likewise.
16986
16987         * modules/gc-arctwo-tests (License): Likewise.
16988
16989         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
16990
16991         * modules/gc-hmac-sha1-tests (Files): Likewise.
16992
16993         * modules/gc-hmac-md5-tests (License): Likewise.
16994
16995         * modules/gc-sha1-tests (License): Likewise.
16996
16997         * modules/gc-md5-tests (License): Likewise.
16998
16999         * modules/gc-md4-tests (License): Likewise.
17000
17001         * modules/gc-md2-tests (License): Likewise.
17002
17003         * modules/gc-tests (License): Likewise.
17004
17005         * modules/des-tests (License): Likewise.
17006
17007         * modules/md4-tests (License): Likewise.
17008
17009         * modules/md2-tests (License): Likewise.
17010
17011 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
17012
17013         Sync from coreutils:
17014
17015         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
17016         * modules/lib-ignore: New file.
17017         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
17018         chdir-safer.m4, lchmod.m4.
17019         * modules/openat: Add mkdirat.c, openat-priv.h.
17020
17021 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
17022
17023         Sync from coreutils.
17024         * m4/lib-ignore.m4: New file.
17025         * m4/lchmod.m4: New file.
17026
17027 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
17028
17029         Sync from coreutils.
17030         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
17031         for write access: POSIX says that must fail.
17032         * lib/fts.c (diropen): Likewise.
17033         * lib/save-cwd.c (save_cwd): Likewise.
17034         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
17035         well, for minor improvements on hosts that lack O_DIRECTORY.
17036         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
17037         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
17038         Fall back on chown if open failed with EACCES.
17039
17040         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
17041         Report an error at compile-time if only a 1-second nominal clock
17042         resolution is found.
17043
17044         * lib/lchmod.h: New file.
17045         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
17046         (make_dir_parents): Use lchown rather than chown, and
17047         lchmod rather than chmod.
17048
17049         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
17050         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
17051         "proc" reported by n0dalus.
17052
17053         * lib/mountlist.c: Include <limits.h>.
17054         (dev_from_mount_options)
17055         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
17056         New function.  It no longer assumes "dev=" has the System V meaning
17057         on Linux (since it doesn't).  It also parses "dev=" more carefully.
17058         (read_file_system_list)
17059         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
17060         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
17061         dev= in that case.
17062
17063         * lib/posixtm.h (PDS_PRE_2000): New macro.
17064         * lib/posixtm.c (year): Arg is now syntax_bits rather than
17065         allow_century.  All usages changed.  Reject dates outside the range
17066         1969-1999 if PDS_PRE_2000 is used.
17067
17068 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
17069
17070         Sync from coreutils.
17071         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
17072         (Time of day items): Mention the possibility of leap seconds.
17073         Problem reported by Dr. David Alan Gilbert.
17074
17075 2006-01-09  Jim Meyering  <jim@meyering.net>
17076
17077         Sync from coreutils.
17078
17079         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
17080
17081         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
17082
17083         * lib/modechange.c (mode_compile): Reject an invalid mode string
17084         that starts with an octal digit.  From Andreas Gruenbacher.
17085
17086         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
17087         and dup to open_safer and dup_safer, respectively.
17088         (openat_permissive): Fix typo in comment.
17089
17090         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
17091         "gettext.h"; either no longer needed or are guaranteed by openat.h.
17092         (_): Remove; no longer needed.
17093         (openat): Renamed from rpl_openat; no need for rpl_openat
17094         since openat.h renames openat for us.
17095         Replace most of the body with a call to openat_permissive,
17096         to avoid duplicate code.
17097         Port to (probably hypothetical) environments were mode_t is
17098         wider than int.
17099         (openat_permissive): Require mode arg, so that we can check
17100         types better.  Put it just after flags.  Change cwd failure
17101         indicator from pointer-to-bool to pointer-to-errno-value.
17102         All callers changed.
17103         Invoke openat_save_fail and/or openat_restore_fail if
17104         cwd_errno is null, so that openat can call us.
17105         (openat_permissive, fdopendir, fstatat, unlinkat):
17106         Simplify errno handling to avoid some duplicate code,
17107         as it's OK to set errno on success.
17108         * lib/openat.h: Revamp code so that function macros depend on
17109         __OPENAT_PREFIX only, not also on AT_FDCWD.
17110         (openat_ro): Remove.  Caller changed to use openat_permissive.
17111         (openat_permissive): Now a macro, if not a function.
17112         (openat_restore_fail, openat_save_fail): Now always functions,
17113         since mkdirat needs them even if __OPENAT_PREFIX is defined.
17114
17115         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
17116         and openat.c.
17117         * lib/mkdirat.c: Include openat-priv.h.
17118         Remove definitions of macros defined therein.
17119         * lib/openat.c: Likewise.
17120
17121         * lib/mkdirat.c (mkdirat): New file and function.
17122         * lib/openat.h (mkdirat): Declare.
17123
17124         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
17125
17126         * lib/openat.h (openat_permissive): Declare.
17127         (openat_ro): Define.
17128
17129         * lib/openat.c (EXPECTED_ERRNO): New macro.
17130         (openat_permissive): New function -- used in remove.c rewrite.
17131         (all functions): Set errno just before returning, only if there
17132         was an actual failure.
17133         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
17134
17135         Emulate openat-family functions using Linux's procfs, if possible.
17136         Idea and some code based on Ulrich Drepper's glibc changes.
17137
17138         * lib/openat.c: (BUILD_PROC_NAME): New macro.
17139         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
17140         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
17141         before falling back on save_cwd and restore_cwd.
17142         (fdopendir, fstatat, unlinkat): Likewise.
17143
17144         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
17145         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
17146
17147         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
17148         as second argument to va_arg.  Otherwise, some versions of gcc
17149         warn that `if this code is reached, the program will abort'.
17150
17151 2006-01-09  Jim Meyering  <jim@meyering.net>
17152
17153         Sync from coreutils.
17154         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
17155         Require openat-priv.h.
17156
17157 2006-01-09  Bruno Haible  <bruno@clisp.org>
17158
17159         * modules/strnlen (Include): Use strnlen.h.
17160
17161 2006-01-09  Bruno Haible  <bruno@clisp.org>
17162
17163         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
17164
17165 2006-01-09  Bruno Haible  <bruno@clisp.org>
17166
17167         * lib/sysexit_.h (EX_OK): New macro.
17168         Suggested by Martin Lambers <marlam@marlam.de>.
17169
17170 2006-01-09  Bruno Haible  <bruno@clisp.org>
17171
17172         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
17173         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
17174
17175 2006-01-09  Bruno Haible  <bruno@clisp.org>
17176
17177         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
17178         numbers.
17179
17180 2006-01-09  Bruno Haible  <bruno@clisp.org>
17181
17182         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
17183         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
17184         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
17185         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
17186
17187 2006-01-09  Bruno Haible  <bruno@clisp.org>
17188
17189         * build-aux/javacomp.sh.in: New file, moved from lib/.
17190         * modules/javacomp-script (Files): Update.
17191         (configure.ac): Add AC_CONFIG_FILES invocation.
17192         (EXTRA_DIST): Remove variable.
17193
17194         * build-aux/javaexec.sh.in: New file, moved from lib/.
17195         * modules/javaexec (Files): Update.
17196         (configure.ac): Add AC_CONFIG_FILES invocation.
17197         (EXTRA_DIST): Remove javaexec.sh.in.
17198
17199         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
17200         * modules/csharpcomp-script (Files): Update.
17201         (configure.ac): Add AC_CONFIG_FILES invocation.
17202         (EXTRA_DIST): Remove variable.
17203
17204         * build-aux/csharpexec.sh.in: New file, moved from lib/.
17205         * modules/csharpexec (Files): Update.
17206         (configure.ac): Add AC_CONFIG_FILES invocation.
17207         (EXTRA_DIST): Remove csharpexec.sh.in.
17208
17209 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
17210
17211         Sync from coreutils.
17212
17213         Add POSIX ACL support
17214         * lib/acl.h (copy_acl, set_acl): Add declarations.
17215         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
17216         systems other than Linux.
17217         (chmod_or_fchmod): New function: use fchmod when possible,
17218         and chmod otherwise.
17219         (file_has_acl): Add a POSIX ACL implementation, with a
17220         Linux-specific subcase.
17221         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
17222         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
17223         acls are unsupported.
17224         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
17225         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
17226         are unsupported.
17227
17228 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
17229
17230         Sync from coreutils.
17231         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
17232
17233 2006-01-07  Bruno Haible  <bruno@clisp.org>
17234
17235         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
17236         gl_EARLY.
17237
17238 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
17239
17240         * lib/strftime.c (tzname): Don't declare if it is already #defined.
17241         Problem reported for Mingw by Mark Junker.
17242
17243 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
17244
17245         * README: Gnulib normally doesn't generate a tarball.
17246
17247 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
17248
17249         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
17250         long int, not int, for nanosecond counts, so that people who are
17251         used to POSIX struct timespec won't be surprised.  Reported by Jim
17252         Meyering.
17253
17254 2005-12-28  Bruno Haible  <bruno@clisp.org>
17255
17256         * build-aux/config.rpath: Update from GNU gettext.
17257
17258 2005-12-16  Jim Meyering  <jim@meyering.net>
17259
17260         * modules/fprintftime: New module.
17261         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
17262
17263 2005-12-16  Jim Meyering  <jim@meyering.net>
17264
17265         * m4/fprintftime.m4: New file.
17266
17267 2005-12-16  Jim Meyering  <jim@meyering.net>
17268
17269         * lib/fprintftime.c, lib/fprintftime.h: New files.
17270
17271 2005-12-15  Simon Josefsson  <jas@extundo.com>
17272
17273         * modules/socklen (configure.ac): Fix M4 macro name, to align with
17274         new m4/socklen.m4.
17275
17276 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
17277
17278         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
17279         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
17280
17281 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
17282
17283         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
17284         * lib/argp-help.c (fill_in_uparams): Check if the constructed
17285         struct uparams is valid. Fall back to the default values if it is
17286         not.
17287
17288 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
17289
17290         * modules/argp (Files): Add argp-pin.c
17291         (Depends-on): dirname
17292         (lib_SOURCES): Add argp-pin.c
17293
17294 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
17295
17296         * m4/argp.m4:  Check if program_invocation_name and
17297         program_invocation_short_name are declared and define appropriate
17298         macros if they are not.
17299
17300 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
17301
17302         * lib/argp-help.c (__argp_base_name): New function
17303         (__argp_short_program_name): Rewrite using __argp_base_name
17304         * lib/argp-namefrob.h: Define program_invocation_name and
17305         program_invocation_short_name if requested
17306         (__argp_base_name): Add prototype
17307         * lib/argp-parse.c (argp_def): Use gettext wrappers
17308         (argp_default_parser): Use __argp_base_name
17309         * lib/argp-pin.c: New file. Defines program_invocation_name and
17310         program_invocation_short_name on systems that lack them.
17311
17312 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
17313
17314         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
17315         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
17316         porting problem reported by Georg Schwarz in
17317         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
17318
17319 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
17320
17321         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
17322         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
17323         porting problem reported by Georg Schwarz in
17324         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
17325
17326 2005-12-05  Bruno Haible  <bruno@clisp.org>
17327
17328         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
17329         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
17330         Reported by Mark Junker <mjscod@gmx.de>.
17331
17332 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
17333
17334         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
17335         Use implementation from Albert Chin, with some
17336         comments/corrections by Stepan Kasal and myself.
17337
17338 2005-12-02  Bruno Haible  <bruno@clisp.org>
17339
17340         * gnulib-tool (func_import): Accept GPLed build tool modules when
17341         --lgpl is given.
17342         * modules/csharpcomp-script: New file.
17343         * modules/csharpcomp: Depend on it.
17344         * modules/javacomp-script: New file.
17345         * modules/javacomp: Depend on it.
17346         Suggested by Simon Josefsson.
17347
17348 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
17349
17350         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
17351         statement, to work around an HP-UX 10.20 compiler bug reported by
17352         Peter O'Gorman.
17353
17354 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
17355
17356         * modules/savedir (Depends-on): Add openat.
17357
17358 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
17359
17360         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
17361         (uintmax_t) [defined uintmax_t]: Do not declare.
17362         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
17363         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
17364         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
17365         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
17366         sake of portability to weird hosts that C allows (though we don't
17367         know of any practical examples).
17368
17369         * lib/savedir.h (fdsavedir): New decl.
17370         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
17371         contains most of the former guts of savedir.
17372         (savedir): Use savedirstream.
17373         Include "openat.h".
17374
17375 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
17376
17377         * modules/obstack (Files): Add m4/ulonglong.m4.
17378         Problem reported by Davide Angelocola.
17379
17380 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
17381
17382         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
17383         coreutils no longer futzes with rounding modes.
17384
17385 2005-11-14  Jim Meyering  <jim@meyering.net>
17386
17387         * lib/mkstemp-safer.c: Include <config.h>, required for possible
17388         replacement of mkstemp.
17389
17390 2005-11-10  Simon Josefsson  <jas@extundo.com>
17391
17392         * lib/readline.c: Remove EOL.
17393
17394 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
17395
17396         * modules/gethrxtime (Depends-on): Add gettime.
17397
17398 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
17399
17400         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
17401         or gettimeofday; no longer needed.
17402
17403 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
17404
17405         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
17406         time business.
17407         (gethrxtime) [! (HAVE_NANOUPTIME
17408         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
17409         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
17410         our own approximation.
17411
17412 2005-11-08  Eric Blake  <ebb9@byu.net>
17413
17414         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
17415
17416 2005-11-08  Eric Blake  <ebb9@byu.net>
17417
17418         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
17419
17420 2005-11-04  Bruno Haible  <bruno@clisp.org>
17421
17422         * gnulib-tool: Implement --update mode.
17423
17424 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
17425
17426         Fix porting problem reported by Theodoros V. Kalamatianos.
17427         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
17428         Don't assume that futimes failing means we must fail.
17429
17430 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
17431
17432         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
17433         variables to suggest the intended function of the PATH_MAX check.
17434
17435 2005-10-30  Kean Johnston  <jkj@sco.com>
17436
17437         Trivial changes to support SCO systems.
17438         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
17439         as PATH_MAX.
17440         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
17441         where __ptr is null when no I/O is pending.
17442
17443 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
17444
17445         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
17446         leave errno alone.  Problem reported by Dmitry V. Levin.
17447
17448 2005-10-28  Simon Josefsson  <jas@extundo.com>
17449
17450         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
17451         Test more.
17452
17453         * tests/test-gc-md2.c, tests/test-md2.c: New files.
17454
17455         * modules/md2, modules/md2-tests: New files.
17456
17457 2005-10-28  Simon Josefsson  <jas@extundo.com>
17458
17459         * m4/inet_ntop.m4: More tests.
17460
17461         * m4/gc-md2.m4, md2.m4: New file.
17462
17463 2005-10-28  Simon Josefsson  <jas@extundo.com>
17464
17465         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
17466         "restrict" keywords, as per POSIX.  Protect the function
17467         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
17468         Don't use K&R prototypes.  Check the sprintf return values.
17469         Re-define EAFNOSUPPORT if not present.  Indent.
17470
17471         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
17472         suggested by Bruno Haible <bruno@clisp.org>.
17473
17474         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
17475
17476         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
17477
17478         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
17479         libgcrypt).
17480
17481         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
17482
17483         * lib/md2.h, lib/md2.c: New files.
17484
17485 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
17486
17487         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
17488         errno alone.  Problem reported by Frederic Jolliton.
17489
17490 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
17491
17492         * modules/verify (License): Change from GPL to LGPL.  This is a
17493         tiny module and there are apparently near-equivalents that are
17494         under the BSD license.
17495
17496 2005-10-24  Simon Josefsson  <jas@extundo.com>
17497
17498         * modules/sha1: Relicense to LGPL.
17499
17500 2005-10-24  Simon Josefsson  <jas@extundo.com>
17501
17502         * lib/md4.h: Shrink buffer size, now that we changed the type.
17503
17504 2005-10-23  Simon Josefsson  <jas@extundo.com>
17505
17506         * gnulib-tool (func_import): Fix --tests-base.
17507
17508 2005-10-22  Simon Josefsson  <jas@extundo.com>
17509
17510         * modules/arcfour (Depends-on): Need stdint.
17511
17512 2005-10-22  Simon Josefsson  <jas@extundo.com>
17513
17514         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
17515         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
17516
17517 2005-10-22  Simon Josefsson  <jas@extundo.com>
17518
17519         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
17520         suggested by Bruno Haible <bruno@clisp.org>.
17521
17522 2005-10-22  Simon Josefsson  <jas@extundo.com>
17523
17524         * lib/crc.h: Include stddef.h, for size_t.
17525
17526 2005-10-22  Simon Josefsson  <jas@extundo.com>
17527
17528         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
17529         arcfour_context struct (simplify test vector testing in GNU
17530         Shishi).
17531
17532 2005-10-21  Simon Josefsson  <jas@extundo.com>
17533
17534         * modules/des, modules/des-tests: New files.
17535
17536         * modules/gc-des, modules/gc-des-tests: New files.
17537
17538         * tests/test-des.c, tests/test-gc-des.c: New file.
17539
17540 2005-10-21  Simon Josefsson  <jas@extundo.com>
17541
17542         * modules/arctwo, modules/arctwo-tests: New files.
17543
17544         * tests/test-arctwo.c: New file.
17545
17546         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
17547
17548         * tests/test-gc-arctwo.c: New file.
17549
17550 2005-10-21  Simon Josefsson  <jas@extundo.com>
17551
17552         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
17553         Bruno Haible <bruno@clisp.org>.
17554
17555         * m4/gc-des.m4: New file.
17556
17557 2005-10-21  Simon Josefsson  <jas@extundo.com>
17558
17559         * m4/arctwo.m4: New file.
17560
17561         * m4/gc-arctwo.m4: New file.
17562
17563 2005-10-21  Simon Josefsson  <jas@extundo.com>
17564
17565         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
17566         block.
17567
17568 2005-10-21  Simon Josefsson  <jas@extundo.com>
17569
17570         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
17571         <bruno@clisp.org>.
17572
17573         * lib/hmac-sha1.c (hmac_sha1): Likewise.
17574
17575         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
17576         Bruno Haible <bruno@clisp.org>.
17577
17578         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
17579         <bruno@clisp.org>.
17580
17581 2005-10-21  Simon Josefsson  <jas@extundo.com>
17582
17583         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
17584
17585 2005-10-21  Simon Josefsson  <jas@extundo.com>
17586
17587         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
17588
17589 2005-10-21  Simon Josefsson  <jas@extundo.com>
17590
17591         * lib/des.h, lib/des.c: New files.
17592
17593         * lib/gc-gnulib.c: Support DES.c
17594
17595 2005-10-21  Simon Josefsson  <jas@extundo.com>
17596
17597         * lib/arctwo.h, lib/arctwo.c: New files.
17598
17599         * lib/gc-gnulib.c: Support ARCTWO.
17600
17601 2005-10-21  Simon Josefsson  <jas@extundo.com>
17602
17603         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
17604         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17605
17606 2005-10-21  Simon Josefsson  <jas@extundo.com>
17607
17608         * gnulib-tool (func_import, func_create_testdir): Define automake
17609         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
17610         Makefile.am snippet),
17611         suggested by Bruno Haible <bruno@clisp.org>.
17612
17613         * modules/gc (Makefile.am): Use it.
17614
17615 2005-10-21  Bruno Haible  <bruno@clisp.org>
17616
17617         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
17618         patch.
17619
17620 2005-10-19  Simon Josefsson  <jas@extundo.com>
17621
17622         * tests/test-gc-rijndael.c: New file.
17623
17624         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
17625
17626 2005-10-19  Simon Josefsson  <jas@extundo.com>
17627
17628         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
17629         interface too.
17630
17631 2005-10-19  Simon Josefsson  <jas@extundo.com>
17632
17633         * tests/test-gc-arcfour.c: New file.
17634
17635         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
17636
17637 2005-10-19  Simon Josefsson  <jas@extundo.com>
17638
17639         * modules/gc-md4, modules/gc-md4-tests: New file.
17640
17641         * tests/test-gc-md4.c: New file.
17642
17643 2005-10-19  Simon Josefsson  <jas@extundo.com>
17644
17645         * m4/gc-md4.m4: New file.
17646
17647 2005-10-19  Simon Josefsson  <jas@extundo.com>
17648
17649         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
17650         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
17651         <kasal@ucw.cz>.
17652
17653 2005-10-19  Simon Josefsson  <jas@extundo.com>
17654
17655         * m4/gc-arcfour.m4: New file.
17656
17657         * m4/gc-rijndael.m4: New file.
17658
17659 2005-10-19  Simon Josefsson  <jas@extundo.com>
17660
17661         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
17662
17663 2005-10-19  Simon Josefsson  <jas@extundo.com>
17664
17665         * lib/gc-gnulib.c: Support ARCFOUR.
17666
17667 2005-10-19  Simon Josefsson  <jas@extundo.com>
17668
17669         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
17670         support.
17671
17672         * lib/gc.h: Add ECB enum type.
17673
17674         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
17675
17676 2005-10-18  Simon Josefsson  <jas@extundo.com>
17677
17678         * tests/test-md5.c: New file.
17679
17680         * modules/md5-tests: New file.
17681
17682 2005-10-18  Simon Josefsson  <jas@extundo.com>
17683
17684         * tests/test-md4.c: New file.
17685
17686         * modules/md4, modules/md4-tests: New files.
17687
17688 2005-10-18  Simon Josefsson  <jas@extundo.com>
17689
17690         * m4/md4.m4: New file.
17691
17692 2005-10-18  Simon Josefsson  <jas@extundo.com>
17693
17694         * lib/md4.h, lib/md4.c: New files, based on md5.?.
17695
17696 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
17697
17698         * gnulib-tool (func_create_testdir): Omit the second check whether
17699         BUILT_SOURCES in nonempty.
17700
17701 2005-10-17  Simon Josefsson  <jas@extundo.com>
17702
17703         * tests/test-rijndael.c: New file.
17704
17705 2005-10-17  Simon Josefsson  <jas@extundo.com>
17706
17707         * modules/sha1: Depend on stdint instead of md5.
17708
17709         * modules/md5: Depend on stdint, remove uint32_t.
17710
17711 2005-10-17  Simon Josefsson  <jas@extundo.com>
17712
17713         * modules/gc-sha1-tests: New file.
17714
17715         * tests/test-gc-sha1.c: New file.
17716
17717 2005-10-17  Simon Josefsson  <jas@extundo.com>
17718
17719         * m4/md5.m4: Remove call to uint32_t.m4.
17720
17721 2005-10-17  Simon Josefsson  <jas@extundo.com>
17722
17723         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
17724
17725         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
17726         md5.h.
17727
17728         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
17729
17730         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
17731
17732 2005-10-17  Simon Josefsson  <jas@extundo.com>
17733
17734         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
17735
17736 2005-10-17  Simon Josefsson  <jas@extundo.com>
17737
17738         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
17739
17740 2005-10-17  Simon Josefsson  <jas@extundo.com>
17741
17742         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
17743
17744         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
17745
17746 2005-10-17  Bruno Haible  <bruno@clisp.org>
17747
17748         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
17749         that it can also be used in a test.
17750
17751 2005-10-16  Bruno Haible  <bruno@clisp.org>
17752
17753         * gnulib-tool (func_emit_tests_Makefile_am): Also define
17754         TESTS_ENVIRONMENT, so that individual tests can augment it.
17755
17756         * gnulib-tool (func_create_testdir): Use an intermediate target for
17757         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
17758         macros, like $(ALLOCA_H), which cannot be passed through the command
17759         line.
17760
17761 2005-10-15  Simon Josefsson  <jas@extundo.com>
17762
17763         * modules/rijndael-tests: New file.
17764
17765         * modules/rijndael: New file.
17766
17767 2005-10-15  Simon Josefsson  <jas@extundo.com>
17768
17769         * m4/rijndael.m4: New file.
17770
17771 2005-10-15  Simon Josefsson  <jas@extundo.com>
17772
17773         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
17774
17775         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
17776
17777 2005-10-14  Simon Josefsson  <jas@extundo.com>
17778
17779         * tests/test-arcfour.c: New file.
17780
17781         * modules/arcfour, modules/arcfour-tests: New files.
17782
17783 2005-10-14  Simon Josefsson  <jas@extundo.com>
17784
17785         * m4/arcfour.m4: New file.
17786
17787 2005-10-14  Simon Josefsson  <jas@extundo.com>
17788
17789         * lib/arcfour.h, lib/arcfour.c: New files.
17790
17791 2005-10-14  Roland McGrath  <roland@redhat.com>
17792
17793         Import from libc.  [BZ #1331]
17794         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
17795         macro argument.
17796         Reported by Matej Vela <vela@debian.org>.
17797
17798 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
17799
17800         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
17801         include <wchar.h>; no longer needed.
17802
17803 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
17804
17805         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
17806
17807 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
17808         and  Ulrich Drepper  <drepper@redhat.com>
17809
17810         Import from libc.
17811         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
17812         instead of inline stream orientation test and two separate
17813         function calls.  Pay no attention to USE_IN_LIBIO.
17814
17815 2005-10-13  Simon Josefsson  <jas@extundo.com>
17816
17817         * modules/gc-hmac-md5-tests: New file.
17818
17819         * tests/test-gc-hmac-sha1.c: New file.
17820
17821         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
17822
17823         * modules/gc-hmac-md5-tests: New file.
17824
17825         * tests/test-gc-md5.c: New file.
17826
17827         * modules/gc-md5-tests: New file.
17828
17829 2005-10-13  Simon Josefsson  <jas@extundo.com>
17830
17831         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
17832         Move memory allocation outside of loop.
17833
17834 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
17835
17836         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
17837         intermediate directory is in a read-only file system.  Problem
17838         reported by Eric Blake.
17839
17840 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
17841
17842         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
17843
17844 2005-10-12  Simon Josefsson  <jas@extundo.com>
17845
17846         * tests/test-hmac-sha1.c: New file.
17847
17848         * modules/hmac-sha1-tests: New file.
17849
17850         * modules/hmac-sha1: New file.
17851
17852 2005-10-12  Simon Josefsson  <jas@extundo.com>
17853
17854         * modules/gc-sha1: New file.
17855
17856 2005-10-12  Simon Josefsson  <jas@extundo.com>
17857
17858         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
17859
17860         * tests/test-gc-pbkdf2-sha1.c: New file.
17861
17862 2005-10-12  Simon Josefsson  <jas@extundo.com>
17863
17864         * modules/gc-md5, modules/gc-hmac-md5: New files.
17865
17866         * modules/gc (Files): Remove md5, memxor and hmac files.
17867
17868 2005-10-12  Simon Josefsson  <jas@extundo.com>
17869
17870         * m4/gc-pbkdf2-sha1.m4: New file.
17871
17872         * m4/gc-hmac-sha1.m4: New file.
17873
17874         * m4/gc-sha1: New file.
17875
17876         * m4/hmac-sha1.m4: New file.
17877
17878 2005-10-12  Simon Josefsson  <jas@extundo.com>
17879
17880         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
17881
17882         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
17883
17884 2005-10-12  Simon Josefsson  <jas@extundo.com>
17885
17886         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
17887         suggested by Bruno Haible <bruno@clisp.org>.
17888
17889 2005-10-12  Simon Josefsson  <jas@extundo.com>
17890
17891         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
17892
17893 2005-10-12  Simon Josefsson  <jas@extundo.com>
17894
17895         * lib/gc-pbkdf2-sha1.c: New file.
17896
17897         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
17898
17899 2005-10-12  Simon Josefsson  <jas@extundo.com>
17900
17901         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
17902
17903         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
17904
17905 2005-10-12  Simon Josefsson  <jas@extundo.com>
17906
17907         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
17908         GC_USE_HMAC_MD5, respectively.
17909
17910         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
17911         (gc_md5): Fix typo.
17912
17913         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
17914
17915         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
17916
17917         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
17918
17919 2005-10-12  Bruno Haible  <bruno@clisp.org>
17920
17921         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
17922         Reported by Stepan Kasal <kasal@ucw.cz>.
17923
17924 2005-10-11  Simon Josefsson  <jas@extundo.com>
17925
17926         * tests/test-crc.c: New file.
17927
17928         * modules/crc, modules/crc-tests: New files.
17929
17930 2005-10-11  Simon Josefsson  <jas@extundo.com>
17931
17932         * m4/crc.m4: New file.
17933
17934 2005-10-11  Simon Josefsson  <jas@extundo.com>
17935
17936         * lib/gc.h: Add gc_hash and gc_hash_buffer.
17937
17938         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
17939
17940         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
17941
17942 2005-10-11  Simon Josefsson  <jas@extundo.com>
17943
17944         * lib/crc.h, lib/crc.c: New files.
17945
17946         * lib/gc.h (gc_hash_buffer): Add doc.
17947
17948 2005-10-11  Bruno Haible  <bruno@clisp.org>
17949
17950         * modules/c-strcasestr: New file.
17951         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
17952
17953 2005-10-11  Bruno Haible  <bruno@clisp.org>
17954
17955         * modules/c-strcase: New file.
17956         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
17957
17958 2005-10-11  Bruno Haible  <bruno@clisp.org>
17959
17960         * lib/strcasecmp.c: Include limits.h.
17961         (strcasecmp): Avoid integer overflow on exotic platforms.
17962         * lib/strncasecmp.c: Include limits.h.
17963         (strncasecmp): Avoid integer overflow on exotic platforms.
17964         Reported by Paul Eggert.
17965
17966 2005-10-11  Bruno Haible  <bruno@clisp.org>
17967
17968         * lib/c-strcasestr.h: New file, from GNU gettext.
17969         * lib/c-strcasestr.c: New file, from GNU gettext.
17970
17971 2005-10-11  Bruno Haible  <bruno@clisp.org>
17972
17973         * lib/c-strcase.h: New file, from GNU gettext.
17974         * lib/c-strcasecmp.c: New file, from GNU gettext.
17975         * lib/c-strncasecmp.c: New file, from GNU gettext.
17976
17977 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
17978
17979         * modules/mempcpy (License): GPL -> LGPL.
17980         * modules/strchrnul (License): Likewise.
17981         * modules/sysexits (License): Likewise.
17982
17983 2005-10-08  Simon Josefsson  <jas@extundo.com>
17984
17985         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
17986
17987 2005-10-07  Simon Josefsson  <jas@extundo.com>
17988
17989         * m4/memxor.m4: Remove gl_C_RESTRICT call.
17990
17991 2005-10-06  Simon Josefsson  <jas@extundo.com>
17992
17993         * tests/test-hmac-md5.c: New file.
17994
17995         * modules/hmac-md5-tests: New file.
17996
17997         * modules/hmac-md5: New file.
17998
17999 2005-10-06  Simon Josefsson  <jas@extundo.com>
18000
18001         * m4/hmac-md5.m4: New file.
18002
18003         * m4/memxor.m4: Require gl_C_RESTRICT.
18004
18005 2005-10-06  Simon Josefsson  <jas@extundo.com>
18006
18007         * lib/memxor.c (memxor): Avoid casts and warnings.
18008
18009 2005-10-06  Simon Josefsson  <jas@extundo.com>
18010
18011         * lib/hmac-md5.c: New file.
18012
18013         * lib/hmac.h: New file.
18014
18015 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
18016
18017         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
18018         promotes to int, not unsigned int, to catch the AIX 5.3
18019         compiler bug.
18020
18021 2005-10-05  Simon Josefsson  <jas@extundo.com>
18022
18023         * modules/memxor: New file.
18024
18025         * modules/iconv (Files): Move config.rpath to havelib, it is used
18026         there.
18027
18028         * modules/havelib (Files): Add config.rpath.
18029
18030 2005-10-05  Simon Josefsson  <jas@extundo.com>
18031
18032         * m4/memxor.m4: New file.
18033
18034 2005-10-05  Simon Josefsson  <jas@extundo.com>
18035
18036         * lib/memxor.c (memxor): Fix compiler error.
18037
18038         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
18039         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
18040
18041         * lib/memxor.h, lib/memxor.c: New files.
18042
18043         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
18044         we assume all systems have it, suggested by Jim Meyering
18045         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
18046         any systems lack sys/socket.h; mingw32 is known to lack it, but we
18047         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
18048         same reasons.
18049
18050 2005-10-05  Simon Josefsson  <jas@extundo.com>
18051
18052         * config/srclist.txt: Add glibc bug 1423 for md5.h.
18053
18054 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
18055
18056         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
18057         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
18058         needed, since the source code now assumes these .h files.
18059
18060 2005-10-05  Derek Price  <derek@ximbiot.com>
18061
18062         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
18063
18064 2005-10-05  Bruno Haible  <bruno@clisp.org>
18065
18066         * modules/stdint (License): Change to LGPL.
18067
18068 2005-10-04  Simon Josefsson  <jas@extundo.com>
18069
18070         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
18071         D. Baushke" <mdb@gnu.org>.
18072
18073 2005-10-04  Bruno Haible  <bruno@clisp.org>
18074
18075         * lib/verify.h (verify_true): Provide alternative definition for C++.
18076
18077 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
18078
18079         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
18080         (SSIZE_MAX): New macro, if not already defined.
18081         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
18082         than 2 GiB.
18083
18084 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
18085
18086         Sync from coreutils.
18087         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
18088         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
18089         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
18090         ULLONG_MAX doesn't work with 2.7.2.1.
18091
18092 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
18093
18094         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
18095         From Ben Pfaff.
18096
18097         * modules/exclude (Depends-on): Depend on verify.
18098         * modules/strtoimax (Depends-on): Likewise.
18099         * modules/utimecmp (Depends-on): Likewise.
18100
18101 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
18102
18103         * lib/exclude.c: Include verify.h.
18104         (verify): Remove.  All callers changed to use verify.h's version.
18105         * lib/strtoimax.c: Likewise.
18106         * lib/utimecmp.c: Likewis.e
18107
18108         Sync from coreutils.
18109         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
18110         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
18111         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
18112         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
18113         bother returning ENOSYS if settimeofday or stime fails; just let
18114         them return whatever errno they want to return.
18115         * lib/utimens.c: Include unistd.h, for dup2.
18116         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
18117         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
18118
18119 2005-10-02  Jim Meyering  <jim@meyering.net>
18120
18121         Sync from coreutils.
18122         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
18123         from glibc-2.2.5 that fails for read-only files.
18124
18125 2005-10-02  Jim Meyering  <jim@meyering.net>
18126
18127         Sync from coreutils.
18128         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
18129         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
18130         `#if HAVE_CONFIG_H'.
18131         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
18132         Remove AT_FDCWD test.
18133         Do not consume the fd unless successful.
18134         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
18135         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
18136         block, so that we don't even try to compile it if settimeofday is
18137         available.  This works around a compilation failure on OSF1 V5.1,
18138         due to stime requiring a `long int*' while tv_sec is `int'.
18139
18140 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
18141
18142         Sync from coreutils.
18143         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
18144         against `yes', rather than just testing for nonempty.
18145
18146 2005-10-01  Simon Josefsson  <jas@extundo.com>
18147
18148         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
18149         and Darwin.
18150
18151         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
18152         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
18153         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
18154         freeaddrinfo and gai_strerror are declared by the POSIX headers.
18155         Check if struct addrinfo is declared.
18156
18157 2005-10-01  Simon Josefsson  <jas@extundo.com>
18158
18159         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
18160         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
18161         AI_* and EAI_* definitions.  Protect function declarations.
18162
18163 2005-10-01  Jim Meyering  <jim@meyering.net>
18164
18165         Sync from coreutils.
18166
18167         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
18168         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
18169         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
18170         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
18171         in the inet and nsl libraries.  Required on Solaris 5.7.
18172
18173 2005-10-01  Jim Meyering  <jim@meyering.net>
18174
18175         Sync from coreutils.
18176         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
18177         in the inet and nsl libraries.  Required on Solaris 5.7.
18178
18179 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
18180
18181         * lib/getdelim.c (getdelim): Remove unused variables.
18182
18183 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
18184
18185         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
18186         so that the code works even with ancient cpp.  Portability problem
18187         with GCC 2.7.2.1 reported by Thomas M.Ott.
18188
18189 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
18190
18191         * modules/regex (Depends-on): Add strcase.
18192
18193         * modules/gethostname (Licence): Change from GPL to LGPL, since
18194         gethostname.c is a trivial implementation of a standard library
18195         function.
18196         * modules/poll (License): Change from GPL to LGPL, since it's
18197         derived from LGPL code.
18198
18199 2005-09-27  Jim Meyering  <jim@meyering.net>
18200
18201         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
18202         HAVE_CONFIG_H.
18203
18204         * lib/intprops.h (signed_type_or_expr__): Define.
18205         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
18206         for unsigned types.
18207
18208 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
18209
18210         * lib/verify.h (verify_expr): Remove, replacing with:
18211         (verify_true): New macro that returns true instead of void.
18212         (verify_type__): Remove.
18213         (verify): Use verify_true rather than verify_type__.
18214
18215 2005-09-26  Bruno Haible  <bruno@clisp.org>
18216
18217         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
18218         is necessary.
18219         (lib_SOURCES): Remove mbchar.c.
18220         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
18221         (Files): Add m4/mbrtowc.m4.
18222         * modules/mbiter: Likewise.
18223         * modules/mbuiter: Likewise.
18224
18225 2005-09-26  Bruno Haible  <bruno@clisp.org>
18226
18227         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
18228         compile mbchar.c if they are not both present.
18229         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
18230         * m4/mbiter.m4 (gl_MBITER): Likewise.
18231         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
18232         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
18233         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
18234
18235 2005-09-25  Jim Meyering  <jim@meyering.net>
18236
18237         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
18238         also uses socklen_t.
18239
18240 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
18241
18242         * lib/utimens.c (ENOSYS): Define if not already defined.
18243         (futimens): Support having a null PATH if the file descriptor
18244         is nonnegative.
18245
18246         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
18247         Remove.
18248         (__attribute): Define to empty unless GCC 3.1 or later.
18249         This works around a core dump on OpenBSD 3.4, which has GCC
18250         2.95.3, which dumps core when given __attribute__(()).  It also
18251         simplifies other tests, since we really don't want to bother with
18252         worrying about which ancient version of GCC supported what.
18253         Original problem reported by Yoann Vandoorselaere, with part of
18254         the fix suggested by Derek Price.
18255
18256 2005-09-24  Jim Meyering  <jim@meyering.net>
18257
18258         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
18259         so we can once again use a positive bitfield width of 1 -- now we
18260         don't have to explain why we were using a bitfield width of 2.
18261
18262 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
18263
18264         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
18265         and similarly for the other external symbols.  Problem reported
18266         by James Gallager.
18267
18268         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
18269         bug reported by Jim Meyering.
18270
18271         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
18272         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
18273         not needed, since socklen is a prerequisite module.
18274
18275 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
18276
18277         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
18278         Problem reported by Eric Blake.
18279         (getaddrinfo): Initialize se so that it's not garbage.
18280         Redo internal storage allocation so that it doesn't make unportable
18281         assumptions about alignment.
18282         Fix a memory leak.
18283
18284         * lib/utimens.c (futimens): Use futimesat if available.
18285         Prefer it to futimes since it doesn't have the futimes bug.
18286
18287         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
18288         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
18289         Instead, declare a function that returns a pointer to an array,
18290         and use verify_type__ to declare the size of the array.
18291         Problem and germ of a solution reported by Bruno Haible.
18292         (verify_type__): Use 2, not 1, for bitfield size, to avoid
18293         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
18294
18295 2005-09-23  Jim Meyering  <jim@meyering.net>
18296
18297         Sync from coreutils.
18298         Correct build failure (socklen_t not defined) on at least
18299         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
18300         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
18301
18302 2005-09-23  Jim Meyering  <jim@meyering.net>
18303
18304         * modules/getaddrinfo (Depends-on): Add socklen.
18305
18306 2005-09-23  Bruno Haible  <bruno@clisp.org>
18307
18308         * tests/test-verify.c: New file.
18309
18310 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
18311
18312         Sync from coreutils.
18313
18314         * modules/argmatch (Depends-on): Add verify.
18315         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
18316         unistd-safer.
18317         * modules/save-cwd (Depends-on): Likewise.
18318
18319         * modules/openat (Files): Add lib/openat-die.c.
18320         (Depends-on): Remove error, exitfail.
18321         Add dirname.
18322
18323         * modules/verify: New file.
18324         * MODULES.html.sh (Diagnostics <assert.h>): New section,
18325         with "verify" module.
18326
18327 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
18328
18329         Sync from coreutils.
18330
18331         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
18332         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
18333         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
18334         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
18335         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
18336         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
18337         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
18338         Don't bother checking for string.h, stdlib.h, unistd.h.
18339         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
18340         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
18341         module's job.
18342         * m4/jm-macros.m4 (gl_MACROS): Likewise.
18343         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
18344
18345         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
18346         (gl_GETDATE): Use it.
18347
18348         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
18349
18350 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
18351
18352         Sync from coreutils.
18353
18354         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
18355         stat-time.h.
18356         * lib/argmatch.h: Include verify.h
18357         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
18358         (ARGMATCH_ASSERT): Remove; unused.
18359         * lib/canonicalize.c: Assume STDC_HEADERS.
18360         * lib/exclude.c: Include "strcase.h".
18361         * lib/regex_internal.h [!defined _LIBC]: Likewise.
18362         * lib/getusershell.c: Include stdio--.h rather than stdio.h
18363         and stdio-safer.h.
18364         (getusershell): Call fopen, not fopen_safer.
18365         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
18366         Do not include unistd-safer.h.
18367         (save_cwd): Don't call fd_safer; no longer needed
18368         now that we include fcntl--.h.
18369
18370         * lib/getdate.y (relative_time): New type.
18371         (RELATIVE_TIME_0): New constant.
18372         (parser_control): Use relative_time instead of doing it ourselves.
18373         (%union): Add new relative_time rel member.
18374         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
18375         Now typeless.
18376         (relunit, relunit_snumber): Now of type rel.
18377         (zone, rel, relunit, get_date): Adjust to above changes.
18378
18379         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
18380         Do not include unistd-safer.h.
18381         (getloadavg): Don't call fd_safer; no longer needed
18382         now that we include fcntl--.h.
18383
18384         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
18385         (make_dir_parents): Treat ENOSYS like EEXIST.
18386
18387         Improve quality of diagnostics on restore_cwd failure.
18388         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
18389         (make_dir_parents): Last arg is now int * (for errno), not bool *.
18390         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
18391         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
18392         each time through the loop.  Do not diagnose restore_cwd failure;
18393         that is the caller's job (and perhaps the caller does not care).
18394
18395         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
18396         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
18397         If the file already exists but is not a directory, don't bother
18398         to try to make its parents.
18399         Close potential file descriptor leak if we can't chdir("/") (!).
18400         Don't always return true if chdir($PWD) fails; return true only
18401         if the requested action was done successfully (except for the
18402         chdir($PWD)).
18403         Don't log final directory unless we actually made it.
18404         Refactor to avoid duplicate code to fix up permissions.
18405         Don't attempt to fix up parent permissions if chdir($PWD) fails.
18406
18407         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
18408         to make it a bit faster and (I hope) clearer.
18409         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
18410         Fix bug in formats like %2N.
18411
18412         * lib/verify.h: New file.
18413
18414 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
18415
18416         Sync from coreutils.
18417         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
18418
18419 2005-09-22  Jim Meyering  <jim@meyering.net>
18420
18421         Sync from coreutils.
18422
18423         * m4/lstat.m4 (gl_FUNC_LSTAT):
18424         Use AC_LIBSOURCES to require lstat.c and lstat.h.
18425         Remove obsolete comment.
18426         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
18427         * m4/xstrtod.m4: Likewise.
18428
18429         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
18430
18431 2005-09-22  Jim Meyering  <jim@meyering.net>
18432
18433         Sync from coreutils.
18434
18435         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
18436
18437         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
18438         the .tm_year member, since otherwise gcc-4.0 would now warn about
18439         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
18440
18441         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
18442         order to avoid an unsuppressible warning from gcc on 64-bit systems.
18443
18444         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
18445         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
18446         when run in a time zone for which daylight savings time is in effect
18447         for the starting date.
18448
18449         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
18450         stop us from restricting permissions of just-created absolute-named
18451         directories.
18452         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
18453         to restore initial working directory.
18454         * lib/mkdir-p.c (make_dir_parents): New parameter:
18455         different_working_dir, to tell caller if/when we change the working
18456         directory and are unable to return to the initial one.
18457         * lib/mkdir-p.h (make_dir_parents): Update prototype.
18458         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
18459         `return false'.  This fixes a bug introduced on 2004-07-30.
18460
18461         * lib/openat.c (fdopendir): Be sure to close the supplied
18462         file descriptor before returning.  This makes our replacement
18463         implementation a little closer to Solaris's, where fdopendir
18464         ties the file descriptor to the returned DIR* pointer.
18465         * lib/openat.c (unlinkat): New function.
18466         * lib/openat.h (unlinkat): Add prototype.
18467         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
18468         (openat_restore_fail): Rename from openat_restore_die.
18469         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
18470
18471         Provide an alternative to exiting immediately upon save_cwd or
18472         restore_cwd failure.  Now, an application can arrange e.g.,
18473         to perform a longjump in that case.
18474         * lib/openat.c: Include dirname.h.
18475         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
18476         (rpl_openat, fdopendir, fstatat): Call openat_save_die
18477         and openat_restore_die rather than calling error directly.
18478         Don't include "error.h" or "exitfail.h"; they're no longer needed.
18479
18480         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
18481         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
18482         define.
18483
18484         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
18485         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
18486                             int utc, int nanoseconds);
18487         Background:
18488         date should not have to allocate a megabyte of virtual memory to
18489         handle a format argument like +%1048575T.  When implemented with
18490         strftime, it must allocate such a buffer, use strftime to fill it
18491         in, print it, then free it.
18492         With fprintftime, it simply prints everything and exits.
18493         With no need for memory allocation, that's one fewer way to fail.
18494         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
18495         optional field width, not before, so we accept %9:z, not %:9z.
18496         (my_strftime): Be sure to use L_('x') for literals.
18497
18498         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
18499         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
18500         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
18501         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
18502         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
18503         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
18504         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
18505         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
18506         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
18507         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
18508         * lib/xgethostname.c, lib/xreadlink.c:
18509         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
18510
18511         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
18512         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
18513         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
18514         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
18515         and don't include <sys/file.h>).
18516
18517 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
18518
18519         Sync from coreutils.
18520
18521         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
18522         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
18523         [!LDAV_DONE]: Avoid unused variable warning.
18524
18525 2005-09-21  Bruno Haible  <bruno@clisp.org>
18526
18527         * lib/unicodeio.h (unicode_to_mb): New declaration.
18528
18529 2005-09-20  Derek Price  <derek@ximbiot.com>
18530
18531         * lib/getaddrinfo.c: Don't include <netdb.h> included from
18532         getaddrinfo.h.
18533
18534 2005-09-20  Bruno Haible  <bruno@clisp.org>
18535
18536         * gnulib-tool: Remove trailing slashes from the values specified for
18537         --source-base, --m4-base, --tests-base, --aux-dir.
18538         Suggested by Simon Josefsson <jas@extundo.com>.
18539
18540 2005-09-20  Bruno Haible  <bruno@clisp.org>
18541
18542         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
18543         func_modules_to_filelist, func_import, func_create_testdir): Make all
18544         sorting results locale-independent, so that gnulib-cache.m4 doesn't
18545         change when gnulib-tool is invoked in a different locale.
18546
18547 2005-09-19  Simon Josefsson  <jas@extundo.com>
18548
18549         * m4/socklen.m4: Fix typo.
18550
18551 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18552
18553         Use a consistent style for including <config.h>.
18554         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
18555         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
18556         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
18557         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
18558         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
18559         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
18560         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
18561         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
18562         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
18563         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
18564         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
18565         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
18566         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
18567         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
18568         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
18569         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
18570         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
18571         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
18572         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
18573         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
18574         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
18575         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
18576         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
18577         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
18578         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
18579         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
18580         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
18581         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
18582         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
18583         lib/xstrtoumax.c, lib/yesno.c:
18584         Standardize inclusion of config.h.
18585         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
18586         lib/inttostr.h:  Removed inclusion of config.h from header files.
18587         * lib/inttostr.c:  Adjusted in-tree users.
18588         * lib/timespec.h: Remove superfluous warning to include config.h.
18589         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
18590         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
18591         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
18592         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
18593         config.h with HAVE_CONFIG_H.
18594
18595 2005-09-19  Jim Meyering  <jim@meyering.net>
18596
18597         * modules/pathmax (License): Change to LGPL.
18598
18599 2005-09-19  Derek Price  <derek@ximbiot.com>
18600
18601         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
18602
18603 2005-09-19  Bruno Haible  <bruno@clisp.org>
18604
18605         * gnulib-tool (import): Provide default for --tests-base.
18606
18607 2005-09-19  Bruno Haible  <bruno@clisp.org>
18608
18609         * doc/quote.texi: New file, extracted from gnulib.texi.
18610         * doc/ctime.texi: New file, extracted from gnulib.texi.
18611         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
18612         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
18613         * doc/gnulib.texi: Include them.
18614
18615 2005-09-18  Bruno Haible  <bruno@clisp.org>
18616
18617         Portability fix.
18618         * gnulib-tool (func_readlink): New function.
18619         (func_ln_if_changed): Use it.
18620
18621 2005-09-18  Bruno Haible  <bruno@clisp.org>
18622
18623         * gnulib-tool: Support --with-tests also with --import.
18624         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
18625         (func_import): Use variables $testsbase and $inctests. Emit a
18626         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
18627         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
18628         SUBDIRS += $testsdir.
18629         (func_create_testdir): Update.
18630
18631 2005-09-18  Bruno Haible  <bruno@clisp.org>
18632
18633         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
18634         instead of $dry_run.
18635         (func_cp_if_changed, func_mv_if_changed): Remove functions.
18636         (func_ln_if_changed): Don't handle dry-run here.
18637         (func_import): In dry-run mode, detect more precisely which actions
18638         would be performed, and don't use "...ing" verbs.
18639
18640 2005-09-18  Bruno Haible  <bruno@clisp.org>
18641
18642         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
18643         (func_import): Use join on two temporary files instead of three nested
18644         loops, in order to determine which files are new or old.
18645
18646 2005-09-18  Bruno Haible  <bruno@clisp.org>
18647
18648         * gnulib-tool (func_import): Comment out code that spits out the
18649         new files with --dry-run.
18650
18651 2005-09-18  Bruno Haible  <bruno@clisp.org>
18652
18653         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
18654
18655 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
18656
18657         * lib/stat-time.h: New file.
18658         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
18659         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
18660         in a different way.
18661         (timespec_cmp): New function.
18662         * lib/utimecmp.c: Include stat-time.h.
18663         (SYSCALL_RESOLUTION): Depend on whether various struct stat
18664         members exist, not on the obsolescent ST_MTIM_NSEC.
18665         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
18666
18667 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
18668
18669         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
18670
18671 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
18672
18673         * MODULES.html.sh (File system functions): Add stat-time.
18674         * modules/stat-time: New file.
18675         * modules/timespec (Files): Remove m4/st_mtim.m4; this
18676         is now done in a different way, by the stat-time module.
18677         * modules/utimecmp (Depends-on): Add stat-time.
18678
18679 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
18680
18681         * m4/st_mtim.m4: Remove.  Superseded by...
18682         * m4/stat-time.m4: New file.
18683         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
18684         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
18685
18686 2005-09-15  Derek Price  <derek@ximbiot.com>
18687
18688         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
18689
18690 2005-09-15  Derek Price  <derek@ximbiot.com>
18691
18692         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
18693         * lib/regex_internal.c: Ditto, using this...
18694         (__GNUC_PREREQ): ...new macro.
18695         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
18696         using...
18697         (__GNUC_PREREQ): ...this new macro.
18698
18699         * lib/strstr.h: Include string.h. Define strstr as a macro here.
18700
18701 2005-09-15  Derek Price  <derek@ximbiot.com>
18702             Paul Eggert  <eggert@cs.ucla.edu>
18703
18704         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
18705         changes, consolidating in...
18706         * lib/regex_internal.h: ...this file.
18707
18708 2005-09-13  Jim Meyering  <jim@meyering.net>
18709
18710         * lib/canon-host.c: Filter through gnu indent and reword comments
18711         slightly.
18712         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
18713
18714 2005-09-13  Derek Price  <derek@ximbiot.com>
18715
18716         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
18717         failure.
18718         Reported by Jim Meyering  <jim@meyering.net>.
18719
18720 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
18721
18722         * lib/base64.c: Typo.
18723         (base64_encode): Put b64str in initialized data section.
18724
18725 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
18726
18727         Merge glibc and coreutils changes into gnulib, plus a few
18728         extra fixes.
18729         * lib/md5.c: Use #error rather than a string.
18730         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
18731         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
18732         (__attribute__): Define to empty for non recent-GCC.
18733         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
18734         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
18735         Renamed from their non-__ counterparts, with new macros replacing
18736         them if not _LIBC.  Add __THROW attribute.
18737         (rol): Remove.
18738         (struct md5_ctx): Align buffer if using GCC.
18739         * lib/sha1.h (struct sha1_ctx): Likewise.
18740         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
18741         The old name was backwards.
18742         (NOTSWAP): Remove; not used.
18743         (rol): New macro, moved here from md5.h.
18744         (sha1_process_block): Remove a FIXME that doesn't make sense.
18745
18746 2005-09-12  Derek Price  <derek@ximbiot.com>
18747
18748         Return usable errors from canon-host.
18749         * lib/canon-host.h: New file.
18750         * lib/canon-host.c (canon_host): Wrap...
18751         (canon_host_r): ...this new function, which now relies exclusively on
18752         getaddrinfo.
18753         (ch_strerror): New function.
18754         (last_cherror): New global.
18755         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
18756         interface.
18757         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
18758         void *.
18759         (freeaddrinfo): Free ai->ai_canonname when set.
18760
18761 2005-09-12  Derek Price  <derek@ximbiot.com>
18762
18763         Make canon-host require getaddrinfo.
18764         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
18765         AC_LIBSOURCE canon-host.h.  Call...
18766         (gl_PREREQ_CANON_HOST): ...this new function, which requires
18767         gl_GETADDRINFO.
18768         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
18769
18770 2005-09-12  Derek Price  <derek@ximbiot.com>
18771
18772         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
18773         LGPL.
18774         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
18775
18776 2005-09-12  Derek Price  <derek@ximbiot.com>
18777
18778         * lib/gai_strerror.c: Include config.h when available.  Include
18779         getaddrinfo.h before other headers to test interface.
18780         Reported by Larry Jones <lawrence.jones@ugs.com>.
18781
18782 2005-09-12  Derek Price  <derek@ximbiot.com>
18783             Paul Eggert  <eggert@cs.ucla.edu>
18784
18785         * modules/glob (Files): Add glob-libc.h.
18786
18787 2005-09-12  Derek Price  <derek@ximbiot.com>
18788             Paul Eggert  <eggert@cs.ucla.edu>
18789
18790         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
18791         glob_.h, glob-libc.h.
18792         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
18793
18794 2005-09-12  Derek Price  <derek@ximbiot.com>
18795             Paul Eggert  <eggert@cs.ucla.edu>
18796
18797         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
18798         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
18799         protecting things that should be done only in gnulib contexts.
18800         * lib/glob_.h: New file, containing only the glob things needed for
18801         gnulib.
18802         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
18803         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
18804         (glob, globfree, glob_pattern_p): Now defined simply in terms of
18805         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
18806         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
18807         and to respect the namespace rules better.
18808
18809 2005-09-08  Simon Josefsson  <jas@extundo.com>
18810
18811         * modules/socklen: New file.
18812
18813 2005-09-08  Simon Josefsson  <jas@extundo.com>
18814
18815         * m4/socklen.m4: New file.
18816
18817 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
18818
18819         * modules/utimens (Files): Add m4/utimbuf.m4, since
18820         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
18821         Reported by Sergey Poznyakoff.
18822
18823 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
18824
18825         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
18826         definitions, since that's the preferred style in glibc.
18827         Fix a minor spacing issue, and update copyright notice to match
18828         glibc's.
18829
18830 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
18831
18832         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
18833
18834 2005-09-06  Simon Josefsson  <jas@extundo.com>
18835
18836         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
18837         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
18838
18839 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
18840
18841         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
18842         warning.
18843
18844 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
18845
18846         * config/srclist.txt: Add glibc bug 1302.
18847
18848 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
18849
18850         Change bitset word type from unsigned int to unsigned long int,
18851         as this has better performance on typical 64-bit hosts.
18852         Port bitset code to hosts with unusual word sizes.
18853         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
18854         (build_collating_symbol):
18855         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
18856         argument is a bitset.  This is merely a style issue, but it makes
18857         it clearer that an entire array is expected.
18858         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
18859         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
18860         Port to the case where bitset_word is not the same as unsigned int.
18861         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
18862         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
18863         Likewise.
18864         * lib/regexec.c (check_dst_limits_calc_pos_1,
18865         check_subexp_matching_top):
18866         (build_trtable, group_nodes_into_DFAstates):
18867         Likewise.
18868         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
18869         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
18870         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
18871         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
18872         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
18873         * lib/regcomp.c (optimize_subexps, lower_subexp):
18874         Work even if bitset_word has holes in its bitwise representation.
18875         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
18876         * lib/regexec.c (check_dst_limits_calc_pos_1,
18877         check_subexp_matching_top):
18878         Likewise.
18879         * lib/regex_internal.c (re_string_reconstruct):
18880         Don't assume UCHAR_MAX == 255.
18881         * lib/regex_internal.h (bitset_set_all): Likewise.
18882         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
18883         All uses changed.
18884         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
18885         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
18886         All uses changed.
18887         (BITSET_WORD_MAX): New macro.
18888         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
18889         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
18890         (bitset_empty, bitset_copy):
18891         Prefer sizeof (bitset) to multiplying it out ourselves.
18892         (bitset_not_merge): Remove; unused.
18893         (bitset_contain): Return bool, not unsigned int with one bit on.
18894         All callers changed.
18895         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
18896         alignment than re_node_set; do this by defining a new internal
18897         type struct dests_alloc and using it to allocate memory.
18898
18899 2005-09-05  Bruno Haible  <bruno@clisp.org>
18900
18901         * gnulib-tool (func_import): Fix comparison in handling of symbolic
18902         links.
18903
18904 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
18905
18906         * modules/size_max (Makefile.am): Add size_max.h
18907
18908 2005-09-04  Derek Price  <derek@ximbiot.com>
18909
18910         * gnulib-tool (func_import): Fix reversed $symbolic logic.
18911
18912 2005-09-03  Simon Josefsson  <jas@extundo.com>
18913
18914         * gnulib-tool: Fix typo.
18915
18916 2005-09-03  Simon Josefsson  <jas@extundo.com>
18917
18918         * config/srclist.txt: Add glibc bug 1293.
18919
18920 2005-09-03  Derek Price  <derek@ximbiot.com>
18921
18922         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
18923         From Larry Jones <lawrence.jones@ugs.com>.
18924
18925 2005-09-02  Simon Josefsson  <jas@extundo.com>
18926
18927         * modules/socklen: New file.
18928
18929 2005-09-02  Simon Josefsson  <jas@extundo.com>
18930
18931         * modules/havelib: New module.
18932
18933         * modules/gettext, modules/iconv, modules/lock, modules/readline:
18934         Use havelib.
18935
18936 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
18937
18938         Check for arithmetic overflow when calculating sizes, to prevent
18939         some buffer-overflow issues.  These patches are conservative, in the
18940         sense that when I couldn't determine whether an overflow was possible,
18941         I inserted a run-time check.
18942         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
18943         macros.
18944         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
18945         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
18946         (re_xnrealloc, re_x2nrealloc): New inline functions.
18947         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
18948         parse_bracket_exp):
18949         (build_equiv_class, build_charclass): Check for arithmetic overflow
18950         in size expression calculations.
18951         * lib/regex_internal.c (re_string_realloc_buffers):
18952         (build_wcs_upper_buffer, re_node_set_add_intersect):
18953         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
18954         (re_dfa_add_node, register_state): Likewise.
18955         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
18956         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
18957         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
18958         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
18959
18960 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
18961
18962         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
18963         m4/ulonglong.m4.  Problem reported by Martin Lambers.
18964
18965 2005-09-02  Bruno Haible  <bruno@clisp.org>
18966
18967         Support for lib vs. lib64 distinction on biarch platforms.
18968         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
18969         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
18970         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
18971
18972 2005-09-02  Bruno Haible  <bruno@clisp.org>
18973
18974         * gnulib-tool (import): In the other first-use case, provide defaults
18975         as well.
18976
18977 2005-09-02  Bruno Haible  <bruno@clisp.org>
18978
18979         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
18980         patches not yet found in the latest gettext release.
18981
18982 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
18983
18984         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
18985         to avoid a collision with bits/local_lim.h in glibc.
18986         All uses changed.  Problem reported by Dmitry V. Levin in
18987         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
18988
18989         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
18990         bugs in int versus size_t comparisons.
18991         (re_string_context_at): Fix bug where the code assumed that
18992         Idx is signed.
18993
18994         Use bool where appropriate.
18995         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
18996         All callers changed.
18997         (calc_eclosure_iter): Likewise, for ROOT arg.
18998         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
18999         (build_charclass_op): Likewise, for NON_MATCH arg.
19000         * lib/regex_internal.c (re_string_allocate, re_string_construct):
19001         (re_string_construct_common): Likewise, for ICASE arg.
19002         * lib/regexec.c (re_search_2_stub, re_search_stub):
19003         Likewise, for RET_LEN arg.
19004         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
19005         (set_regs): Likewise, for FL_BACKTRACK arg.
19006         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
19007         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
19008         (calc_eclosure_iter, parse_bracket_exp):
19009         Use bool for internal variables that are booleans.
19010         * lib/regexec.c (re_search_internal, check_matching,
19011         proceed_next_node):
19012         (set_regs, build_sifted_states, sift_states_bkref):
19013         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
19014         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
19015         (find_collation_sequence_value):
19016         Likewise.
19017         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
19018         (re_node_set_compare):
19019         Return bool, not int. All callers changed.
19020         * lib/regexec.c (check_halt_node_context, check_dst_limits):
19021         (build_trtable, check_node_accept): Likewise.
19022         * lib/regex_internal.h: Include stdbool.h.
19023
19024         Fix bugs uncovered when converting to bool.
19025         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
19026         failure instead of charging ahead blindly.
19027         * lib/regex_internal.c (register_state): Likewise.
19028         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
19029         for freeing internal storage.
19030         (group_nodes_into_DFA_states): Use unsigned int, not int, for
19031         bitset pieces used as boolean, to avoid undefined behavior
19032         on hosts that do int overflow checking.
19033
19034 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
19035
19036         * config/srclist.txt: Add glibc bugs 1285-1287.
19037
19038 2005-09-01  Jim Meyering  <jim@meyering.net>
19039
19040         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
19041         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
19042         Require gl_STAT_MACROS, too.
19043
19044 2005-09-01  Bruno Haible  <bruno@clisp.org>
19045
19046         * gnulib-tool (import): In the first-use case, provide defaults.
19047
19048 2005-09-01  Bruno Haible  <bruno@clisp.org>
19049
19050         * gnulib-tool (func_import): Remove the .tmp files.
19051
19052 2005-09-01  Bruno Haible  <bruno@clisp.org>
19053
19054         * gnulib-tool (func_import): Fix handling of symbolic links.
19055
19056 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
19057
19058         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
19059         old glibc regex code mishandles strings longer than 2**31 bytes.
19060         This patch fixes this when the regex code is used in gnulib
19061         (i.e., outside glibc).
19062
19063         This patch should not affect the use of the regex code inside
19064         glibc.  No doubt this problem also needs to be handled for glibc
19065         as well, but the result will be an incompatible change to the
19066         glibc ABI, and the old ABI will have to be supported too.  That
19067         can be the the subject for another patch.
19068
19069         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
19070         governing whether the rest of this patch is active.  By default,
19071         the macro is disabled and the patch has no effect.
19072         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
19073         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
19074         (struct re_pattern_buffer, re_search, re_search_2, re_match):
19075         (re_match_2, re_set_registers): Use the new types.
19076         * lib/regex_internal.h (Idx, re_hashval_t): New types.
19077         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
19078         New macros.
19079         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
19080         (re_string_context_at, bin_tree_t, re_dfastate_t):
19081         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
19082         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
19083         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
19084         (re_string_char_size_at, re_string_wchar_at):
19085         (re_string_elem_size_at):
19086         Use the new types and macros to port to 64-bit hosts.
19087         Use unsigned types for internal values, so that the code
19088         mostly works even for arrays larger than SSIZE_MAX.
19089         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
19090         (search_duplicated_node, calc_eclosure_iter, fetch_number):
19091         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
19092         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
19093         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
19094         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
19095         (calc_inveclosure, parse_dup_op, build_range_exp):
19096         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
19097         (fetch_number, create_token_tree, mark_opt_subexp):
19098         Likewise.
19099         * lib/regex_internal.c (re_string_construct_common,
19100         create_ci_newstate):
19101         (create_cd_newstate, re_string_allocate, re_string_construct):
19102         (re_string_realloc_buffers, build_wcs_upper_buffer):
19103         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
19104         (re_string_reconstruct, re_string_peek_byte_case):
19105         (re_string_fetch_byte_case, re_string_context_at):
19106         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
19107         (re_node_set_init_copy, re_node_set_add_intersect):
19108         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
19109         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
19110         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
19111         (re_acquire_state, re_acquire_state_context, register_state):
19112         Likewise.
19113         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
19114         search_cur_bkref_entry):
19115         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
19116         (re_search_internal, re_search_2_stub, re_search_stub)
19117         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
19118         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
19119         (update_cur_sifted_state, check_dst_limits):
19120         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
19121         (check_subexp_limits, sift_states_bkref, merge_state_array):
19122         (check_subexp_matching_top, get_subexp, get_subexp_sub):
19123         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
19124         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
19125         (expand_bkref_cache, check_node_accept_bytes):
19126         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
19127         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
19128         (acquire_init_state_context, check_halt_node_context):
19129         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
19130         (sift_states_backward, clean_state_log_if_needed):
19131         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
19132         (find_recover_state, transit_state_sb, transit_state_mb):
19133         (transit_state_bkref, build_trtable, match_ctx_clean):
19134         Likewise.
19135         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
19136         to work around an assumption that REG_MISSING is negative.
19137
19138         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
19139         (seek_collating_symbol_entry) [defined _LIBC]:
19140         (lookup_collation_sequence_value) [defined _LIBC]:
19141         (build_range_exp, build_collating_symbol) [defined _LIBC]:
19142         Use prototypes rather than old-style function definitions.
19143         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
19144         (transit_state_sb) [0]:
19145         (find_collation_sequence_value) [defined _LIBC]: Likewise.
19146
19147         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
19148         rm_eo.
19149
19150         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
19151         (optimize_subexps, lower_subexp):
19152         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
19153         since the signed shift might overflow.  Use 1u<<31 instead.
19154         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
19155         Likewise.
19156         * lib/regexec.c (check_dst_limits_calc_pos_1,
19157         check_subexp_matching_top): Likewise.
19158
19159         * lib/regcomp.c (optimize_subexps, lower_subexp):
19160         Use CHAR_BIT rather than 8, for clarity.
19161         * lib/regexec.c (check_dst_limits_calc_pos_1):
19162         (check_subexp_matching_top): Likewise.
19163         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
19164         have to worry about portability issues when shifting it left.
19165         Remove no-longer-needed test for table_size > 0.
19166         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
19167         in a word, as the resulting behavior is undefined.
19168         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
19169         in one case, a <= should have been an <, and in another case the
19170         whole test was missing.
19171         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
19172         the standard name CHAR_BIT.
19173         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
19174         this is not true on one's complement and signed-magnitude hosts.
19175
19176         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
19177         next_last_offset.
19178         (struct re_dfa_t): Remove unused member states_alloc.
19179         * lib/regcomp.c (init_dfa): Don't initialize unused members.
19180
19181 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
19182
19183         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
19184         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
19185         and large-file glibc and in 32-bit large-file Solaris.
19186
19187 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
19188
19189         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
19190         lengths fit in regoff_t; this isn't true if regoff_t is the same
19191         width as size_t.
19192         * lib/regex.c (re_search_internal): 5th arg is LAST_START
19193         (= START + RANGE) instead of RANGE.  This avoids overflow
19194         problems when regoff_t is the same width as size_t.
19195         All callers changed.
19196         (re_search_2_stub): Check for overflow when adding the
19197         sizes of the two strings.
19198         (re_search_stub): Check for overflow when adding START
19199         to RANGE; if it occurs, substitute the extreme value.
19200
19201 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
19202
19203         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
19204
19205 2005-08-31  Jim Meyering  <jim@meyering.net>
19206
19207         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
19208         a pointer-to-const.
19209         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
19210         (register_state): Likewise.
19211         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
19212         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
19213         (group_nodes_into_DFAstates): Likewise.
19214
19215 2005-08-31  Jim Meyering  <jim@meyering.net>
19216
19217         * check-module: Add a FIXME comment.
19218
19219 2005-08-31  Eric Blake  <ebb9@byu.net>
19220
19221         * modules/unistd-safer (Files): Add unistd--.h.
19222         * modules/stdio-safer (Files): Add stdio--.h.
19223
19224 2005-08-31  Derek Price  <derek@ximbiot.com>
19225
19226         * lib/getdelim.c (getdelim): Return EOF on EOF.
19227         Reported by Larry Jones <lawrence.jones@ugs.com>.
19228
19229 2005-08-31  Bruno Haible  <bruno@clisp.org>
19230
19231         Avoid unnecessary diffs in the generated lib/Makefile.am.
19232         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
19233         the generated files.
19234         (func_import): Don't set cmd.
19235
19236 2005-08-31  Bruno Haible  <bruno@clisp.org>
19237
19238         * lib/strstr.c: Include <stddef.h>, for NULL.
19239         * lib/strcasestr.c: Likewise.
19240         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
19241
19242 2005-08-31  Bruno Haible  <bruno@clisp.org>
19243
19244         * gnulib-tool: New option --macro-prefix.
19245         (func_import): Use macro_prefix.
19246         (import): Handle option --macro-prefix.
19247
19248 2005-08-31  Bruno Haible  <bruno@clisp.org>
19249
19250         * gnulib-tool (import): Rename most ac_* variables to cached_*.
19251         Also use new variables cached_lgpl, cached_libtool.
19252
19253 2005-08-31  Bruno Haible  <bruno@clisp.org>
19254
19255         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
19256         always instantiating them.
19257
19258 2005-08-31  Bruno Haible  <bruno@clisp.org>
19259
19260         * gnulib-tool (func_import): Read the previous cached settings
19261         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
19262         earlier added by gnulib but are now dropped. Warn when a gnulib file
19263         overwrites a non-gnulib file.
19264
19265 2005-08-31  Bruno Haible  <bruno@clisp.org>
19266
19267         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
19268         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
19269         projects that don't keep autogenerated files in CVS. Put into
19270         actioncmd only the specified modules, not the transitive closure.
19271
19272 2005-08-31  Bruno Haible  <bruno@clisp.org>
19273
19274         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
19275         Create directories that shall be filled.
19276         (import): Don't look for gl_* macros in configure.ac. Recurse across
19277         all directories containing a gnulib-cache.m4 files, if meaningful.
19278
19279 2005-08-31  Bruno Haible  <bruno@clisp.org>
19280
19281         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
19282         (import): Set seen_libtool when we see gl_LIBTOOL.
19283
19284 2005-08-31  Bruno Haible  <bruno@clisp.org>
19285
19286         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
19287         declaration macro definitions from generated gnulib.m4.
19288
19289 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
19290
19291         * lib/iconvme.h: Add prototype for iconv_alloc.
19292
19293 2005-08-29  Simon Josefsson  <jas@extundo.com>
19294
19295         * lib/iconvme.c: Fix errno.
19296
19297 2005-08-29  Bruno Haible  <bruno@clisp.org>
19298
19299         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
19300         that it works when the directory contains spaces.
19301
19302 2005-08-29  Bruno Haible  <bruno@clisp.org>
19303
19304         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
19305
19306 2005-08-29  Bruno Haible  <bruno@clisp.org>
19307
19308         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
19309         Emit more advice.
19310
19311 2005-08-29  Bruno Haible  <bruno@clisp.org>
19312         and Stepan Kasal  <kasal@ucw.cz>
19313
19314         * check-module: If more parameters are given, check each of them
19315         separately; add more exceptions, as noted by Jim Meyering.
19316         (check_module): New procedure.
19317         (%exempt_header): Now contains all exceptions.
19318
19319 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
19320
19321         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
19322
19323 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
19324
19325         * lib/iconvme.c: Split iconv_string into iconv_alloc.
19326
19327 2005-08-28  Bruno Haible  <bruno@clisp.org>
19328
19329         * m4/gnulib-tool.m4: New file.
19330
19331 2005-08-27  Jim Meyering  <jim@meyering.net>
19332
19333         * modules/unistd-safer (Files): Add pipe-safer.c.
19334         * modules/fcntl-safer (Files): Add creat-safer.c.
19335
19336 2005-08-27  Jim Meyering  <jim@meyering.net>
19337
19338         * m4/stdlib-safer.m4: New file.  From coreutils.
19339         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
19340         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
19341         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
19342         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
19343         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
19344
19345 2005-08-27  Jim Meyering  <jim@meyering.net>
19346
19347         * lib/fopen-safer.c: Merge minor changes from coreutils.
19348         * lib/dup-safer.c: Likewise.
19349         * lib/fd-safer.c: Likewise.
19350
19351         Merge from coreutils.
19352         * lib/stdio--.h: New file.
19353         * lib/stdlib--.h: New file.
19354         * lib/mkstemp-safer.c: New file.
19355
19356         GNU tar needs these.
19357         * lib/pipe-safer.c: New file.
19358         * lib/creat-safer.c: New file.
19359         * lib/fcntl--.h (creat): Define to creat_safer.
19360         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
19361         * lib/unistd--.h (pipe): Define to pipe_safer.
19362         * lib/unistd-safer.h: Declare pipe_safer.
19363
19364 2005-08-26  Simon Josefsson  <jas@extundo.com>
19365
19366         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
19367         Haible <bruno@clisp.org>.
19368
19369 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
19370
19371         * lib/regex_internal.h: Remove all references to
19372         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
19373         or better.
19374         (bitset_not, bitset_merge, bitset_not_merge):
19375         (bitset_mask, re_string_allocate, re_string_construct):
19376         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
19377         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
19378         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
19379         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
19380         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
19381         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
19382         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
19383         (re_acquire_state_context):
19384         Remove unnecessary forward decls.
19385         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
19386         Put __attribute at function definition,
19387         now that the function decl has been removed.
19388         * lib/regex_internal.c (re_string_peek_byte_case):
19389         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
19390         Likewise.
19391
19392 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
19393
19394         * m4/regex.m4: Add AC_PREREQ(2.50).
19395         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
19396
19397 2005-08-25  Simon Josefsson  <jas@extundo.com>
19398
19399         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
19400         __fsetlocking.
19401
19402 2005-08-25  Simon Josefsson  <jas@extundo.com>
19403
19404         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
19405         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
19406         GLIBC specific code.
19407
19408 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
19409
19410         Make regex safe for g++.  This fixes one real bug (an "err"
19411         that should have been "*err").  g++ problem reported by
19412         Sam Steingold.
19413         * lib/regex_internal.h (re_calloc): New macro, consistent with
19414         re_malloc etc.  All callers of calloc changed to use re_calloc.
19415         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
19416         not int.  All callers changed.
19417         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
19418         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
19419         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
19420         (find_recover_state): Change "err" to "*err"; this fixes what
19421         appears to be a real bug.
19422         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
19423         versus int.
19424
19425 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
19426
19427         * modules/regex (Depends-on): Add malloc, since the code
19428         assumes that !malloc(0) means failure.
19429
19430 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
19431
19432         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
19433
19434         alloca modernization/simplification for regex.
19435         * lib/regex.c: Remove portability cruft for alloca.  This no longer
19436         needs to be at the start of the file, and can be moved into
19437         regex_internal.h and simplified.
19438         * lib/regex_internal.h: Include <alloca.h>.
19439         (__libc_use_alloca) [!defined _LIBC]: New macro.
19440         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
19441         now works outside glibc.
19442
19443 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
19444
19445         * config/srclist.txt: Add glibc bugs 1241, 1245.
19446
19447 2005-08-25  Jim Meyering  <jim@meyering.net>
19448
19449         * lib/open-safer.c: Include <config.h>.
19450         Otherwise, we'd lose LARGEFILE support in any file using
19451         e.g. "fcntl--.h"
19452
19453 2005-08-25  Bruno Haible  <bruno@clisp.org>
19454
19455         * m4/minmax.m4: Require autoconf 2.52.
19456         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
19457         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
19458         alternatives of translit over the alphabet.
19459         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
19460
19461 2005-08-24  Simon Josefsson  <jas@extundo.com>
19462
19463         * tests/test-getpass.c: New file.
19464
19465 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
19466
19467         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
19468         for GNU regex features.
19469
19470 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
19471
19472         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
19473         * lib/regex.h (regerror): Likewise.
19474
19475         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
19476         requires this.  (The code never needed it.)
19477
19478         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
19479         All uses of recently-renamed identifiers changed to use the new,
19480         POSIX-compliant names.  The code will build and run just fine
19481         without these changes, but it's better to eat our own dog food
19482         and use the standard-conforming names.
19483
19484         * lib/regex.h: Fix a multitude of POSIX name space violations.
19485         These changes have an effect only for programs that define
19486         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
19487         do not change anything for programs compiled in the normal way.
19488         Also, there is no effect on the ABI.
19489
19490         (_REGEX_SOURCE): New macro.
19491         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
19492         defined and _GNU_SOURCE is not; this fixes a name space violation.
19493
19494         Rename the following macros to obey POSIX requirements.
19495         The old names are still visible as macros if _REGEX_SOURCE is defined.
19496         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
19497         RE_BACKSLASH_ESCAPE_IN_LISTS.
19498         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
19499         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
19500         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
19501         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
19502         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
19503         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
19504         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
19505         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
19506         (REG_INTERVALS): renamed from RE_INTERVALS.
19507         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
19508         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
19509         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
19510         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
19511         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
19512         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
19513         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
19514         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
19515         RE_UNMATCHED_RIGHT_PAREN_ORD.
19516         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
19517         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
19518         (REG_DEBUG): renamed from RE_DEBUG.
19519         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
19520         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
19521         unusual, since we can't clash with the POSIX REG_ICASE.
19522         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
19523         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
19524         (REG_NO_SUB): renamed from RE_NO_SUB.
19525         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
19526         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
19527         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
19528         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
19529         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
19530         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
19531         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
19532         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
19533         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
19534         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
19535         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
19536         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
19537         RE_SYNTAX_POSIX_MINIMAL_BASIC.
19538         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
19539         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
19540         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
19541         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
19542         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
19543         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
19544         (REG_FIXED): Renamed from REGS_FIXED.
19545         (REG_NREGS): Renamed from RE_NREGS.
19546
19547         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
19548         of other REG_* macros, since POSIX says the user is allowed to
19549         #undef these macros selectively.
19550
19551         (reg_errcode_t): Update comment stating what other tables need
19552         to be consistent.
19553
19554         Rename the following enum values to obey POSIX requirements.
19555         The old names are still visible as macros.
19556         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
19557         is not defined, since GNU is supposed to be a superset of POSIX as
19558         much as possible, and since we want reg_errcode_t to be a signed
19559         type for implementation consistency.
19560         (_REG_NOERROR): Renamed from REG_NOERROR.
19561         (_REG_NOMATCH): Renamed from REG_NOMATCH.
19562         (_REG_BADPAT): Renamed from REG_BADPAT.
19563         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
19564         (_REG_ECTYPE): Renamed from REG_ECTYPE.
19565         (_REG_EESCAPE): Renamed from REG_EESCAPE.
19566         (_REG_ESUBREG): Renamed from REG_ESUBREG.
19567         (_REG_EBRACK): Renamed from REG_EBRACK.
19568         (_REG_EPAREN): Renamed from REG_EPAREN.
19569         (_REG_EBRACE): Renamed from REG_EBRACE.
19570         (_REG_BADBR): Renamed from REG_BADBR.
19571         (_REG_ERANGE): Renamed from REG_ERANGE.
19572         (_REG_ESPACE): Renamed from REG_ESPACE.
19573         (_REG_BADRPT): Renamed from REG_BADRPT.
19574         (_REG_EEND): Renamed from REG_EEND.
19575         (_REG_ESIZE): Renamed from REG_ESIZE.
19576         (_REG_ERPAREN): Renamed from REG_ERPAREN.
19577         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
19578         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
19579         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
19580         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
19581
19582         (_REG_RE_NAME, _REG_RM_NAME): New macros.
19583         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
19584         changed.  But support the old name if the new one is not defined
19585         and if _REGEX_SOURCE.
19586
19587         Change the following member names in struct re_pattern_buffer.
19588         The old names are still supported if !_REGEX_SOURCE.
19589         The new names are always supported, regardless of _REGEX_SOURCE.
19590         (re_buffer): Renamed from buffer.
19591         (re_allocated): Renamed from allocated.
19592         (re_used): Renamed from used.
19593         (re_syntax): Renamed from syntax.
19594         (re_fastmap): Renamed from fastmap.
19595         (re_translate): Renamed from translate.
19596         (re_can_be_null): Renamed from can_be_null.
19597         (re_regs_allocated): Renamed from regs_allocated.
19598         (re_fastmap_accurate): Renamed from fastmap_accurate.
19599         (re_no_sub): Renamed from no_sub.
19600         (re_not_bol): Renamed from not_bol.
19601         (re_not_eol): Renamed from not_eol.
19602         (re_newline_anchor): Renamed from newline_anchor.
19603
19604         Change the following member names in struct re_registers.
19605         The old names are still supported if !_REGEX_SOURCE.
19606         The new names are always supported, regardless of _REGEX_SOURCE.
19607         (rm_num_regs): Renamed from num_regs.
19608         (rm_start): Renamed from start.
19609         (rm_end): Renamed from end.
19610
19611         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
19612         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
19613         Prepend __ to parameter names.
19614
19615         Undo yesterday's changes.
19616
19617 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
19618
19619         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
19620         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
19621         lib/regex.c.
19622
19623 2005-08-24  Jim Meyering  <jim@meyering.net>
19624
19625         Sync from coreutils.
19626         * m4/fcntl-safer.m4: New file.
19627
19628         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
19629         and object files for this module.
19630
19631 2005-08-24  Jim Meyering  <jim@meyering.net>
19632
19633         Sync from coreutils.
19634         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
19635
19636 2005-08-24  Jim Meyering  <jim@meyering.net>
19637
19638         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
19639         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
19640
19641 2005-08-24  Jim Meyering  <jim@meyering.net>
19642
19643         * modules/fcntl-safer: New module.
19644         * modules/fts (Depends-on): Add fcntl-safer.
19645         * MODULES.html.sh (File descriptor based Input/Output):
19646         Add fcntl-safer.
19647
19648 2005-08-24  Bruno Haible  <bruno@clisp.org>
19649
19650         Support for unit test modules.
19651         * modules/README: Mention tests modules.
19652         * modules/TEMPLATE-TESTS: New file.
19653         * gnulib-tool: New options --extract-tests-module, --with-tests and
19654         --tests-base (unused for the moment).
19655         (testsbase, inctests): New variables.
19656         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
19657         (func_verify_module): Exclude TEMPLATE-TESTS.
19658         (func_verify_nontests_module, func_verify_tests_module): New functions.
19659         (func_get_dependencies): Add implicit dependency for tests modules.
19660         (func_get_tests_module): New function.
19661         (func_modules_transitive_closure): When --with-tests was specified,
19662         include the unit tests as well, unless explicitly avoided.
19663         (func_emit_lib_Makefile_am): Ignore the tests modules here.
19664         (func_emit_tests_Makefile_am): New function.
19665         (func_create_testdir): When --with-tests was specified, emit a
19666         tests/ directory.
19667         * MODULES.html.sh (Future developments): Update.
19668
19669 2005-08-24  Bruno Haible  <bruno@clisp.org>
19670
19671         * modules/tls-tests: New file.
19672         * tests/test-tls.c: New file, from GNU gettext.
19673
19674 2005-08-24  Bruno Haible  <bruno@clisp.org>
19675
19676         * modules/lock-tests: New file.
19677         * tests/test-lock.c: New file, from GNU gettext.
19678
19679 2005-08-24  Bruno Haible  <bruno@clisp.org>
19680
19681         * lib/lock.h: Add multiple inclusion guard.
19682         * lib/tls.h: Add multiple inclusion guard.
19683
19684 2005-08-24  Bruno Haible  <bruno@clisp.org>
19685
19686         * gnulib-tool: Add support for the --aux-dir option to
19687         --create-testdir, --create-megatestdir, --test, --megatest.
19688         (func_create_testdir, func_create_megatestdir): Optionally emit a
19689         AC_CONFIG_AUX_DIR directive.
19690         (create-testdir, create-megatestdir, test, megatest): Provide a
19691         default value for $auxdir.
19692
19693 2005-08-24  Bruno Haible  <bruno@clisp.org>
19694
19695         * gnulib-tool (import): Use compound statement instead of subshell
19696         where possible.
19697
19698 2005-08-24  Bruno Haible  <bruno@clisp.org>
19699
19700         * gnulib-tool (import): Change --aux-dir default to "build-aux".
19701
19702 2005-08-24  Bruno Haible  <bruno@clisp.org>
19703
19704         * gnulib-tool (func_version): Update.
19705
19706 2005-08-24  Bruno Haible  <bruno@clisp.org>
19707
19708         * gnulib-tool (func_import, func_create_testdir,
19709         func_create_megatestdir): Quote all autoconf macro arguments.
19710
19711 2005-08-24  Bruno Haible  <bruno@clisp.org>
19712
19713         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
19714         option --force, because --force causes the aclocal.m4 of each
19715         subdirectory to be newer than the corresponding config.h.in.
19716
19717 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
19718
19719         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
19720         All contents moved to gl_REGEX.
19721         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
19722         assume that it does.
19723
19724 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
19725
19726         * lib/regex.h (REG_NOSYS)
19727         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
19728         Define, since POSIX requires it as of 2001.
19729         (_REG_ENOSYS)
19730         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
19731         New private symbol, used to keep the enum signed in all cases.
19732         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
19733         Youngman in
19734         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
19735
19736         * lib/regex_internal.c (re_string_skip_chars, register_state):
19737         (calc_state_hash):
19738         Remove forward decls; no longer needed now that we use prototypes.
19739         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
19740         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
19741         (clean_state_log_if_needed): Likewise.
19742
19743 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
19744
19745         * config/srclist.txt: Add glibc bugs 1231-1233.
19746
19747 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
19748
19749         Fix problems reported by Sam Steingold in
19750         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
19751         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
19752         assumed that reg_errcode_t is a signed type, which is not
19753         necessarily true if _XOPEN_SOURCE is not defined.
19754         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
19755         since some compilers warn about it otherwise.
19756
19757 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
19758
19759         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
19760         (init_word_char, create_initial_state, duplicate_node_closure):
19761         (fetch_token, peek_token_bracket, build_range_exp):
19762         (build_collating_symbol): Remove forward decls; no longer needed
19763         now that we use prototypes.
19764
19765         * lib/regcomp.c:
19766         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
19767         (re_compile_fastmap_iter, regcomp, regerror, regfree):
19768         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
19769         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
19770         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
19771         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
19772         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
19773         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
19774         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
19775         (build_range_exp, build_collating_symbol, parse_bracket_exp):
19776         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
19777         (build_charclass, build_charclass_op, fetch_number, create_tree):
19778         (create_token_tree, mark_opt_subexp, duplicate_tree):
19779         Use prototypes rather than old-style definitions.
19780
19781         * lib/regex_internal.c:
19782         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
19783         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
19784         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
19785         (re_string_reconstruct, re_string_peek_byte_case):
19786         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
19787         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
19788         (re_node_set_init_copy, re_node_set_add_intersect):
19789         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
19790         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
19791         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
19792         (re_acquire_state, re_acquire_state_context, register_state):
19793         (create_ci_newstate, create_cd_newstate, free_state):
19794         Likewise.
19795         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
19796         re_search_2):
19797         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
19798         (re_search_internal, prune_impossible_nodes):
19799         (acquire_init_state_context, check_matching, static):
19800         (check_halt_node_context, check_halt_state_context, proceed_next_node):
19801         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
19802         (update_regs, sift_states_backward, build_sifted_states):
19803         (clean_state_log_if_needed, merge_state_array):
19804         (update_cur_sifted_state, add_epsilon_src_nodes):
19805         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
19806         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
19807         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
19808         (find_recover_state, check_subexp_matching_top, transit_state_mb):
19809         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
19810         (check_arrival, check_arrival_add_next_nodes):
19811         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
19812         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
19813         (check_node_accept_bytes, check_node_accept, extend_buffers):
19814         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
19815         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
19816         (sift_ctx_init):
19817         Likewise.
19818
19819         * lib/regex_internal.h:
19820         (re_string_allocate, re_string_construct, re_string_reconstruct):
19821         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
19822         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
19823         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
19824         (re_string_context_at, re_string_peek_byte_case):
19825         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
19826         is defined, since we now use prototypes always.
19827
19828         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
19829         C89 or better.  All uses removed.
19830
19831 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
19832
19833         * config/srclist.txt: Add glibc bugs 1220-1227.
19834
19835 2005-08-20  Jim Meyering  <jim@meyering.net>
19836
19837         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
19838         of unused local, dfa.
19839
19840 2005-08-20  Bruno Haible  <bruno@clisp.org>
19841
19842         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
19843
19844 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
19845
19846         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
19847         (re_node_set_insert_last, re_dfa_add_node):
19848         Rename local variables to avoid GCC shadowing warnings.
19849
19850 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
19851
19852         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
19853         [defined lint]: Suppress bogus uninitialized-variable warnings.
19854
19855         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
19856         and let the caller return REG_ESPACE if out of space.  This
19857         removes an uninitialied-variable warning with GCC 4.0.1, and also
19858         avoids taking the address of a local variable.  All callers
19859         changed.
19860
19861 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
19862
19863         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
19864         $LIBCSRC/posix/regexec.c.
19865         Add glibc bug 1217 for regcomp.c.
19866
19867 2005-08-19  Jim Meyering  <jim@meyering.net>
19868
19869         * lib/regexec.c (proceed_next_node): Redo local variables to
19870         avoid GCC shadowing warnings.
19871
19872 2005-08-18  Bruno Haible  <bruno@clisp.org>
19873
19874         * lib/strstr.c (strstr): Fix return value in multibyte case.
19875         * lib/strcasestr.c (strcasestr): Likewise.
19876
19877 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
19878
19879         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
19880
19881 2005-08-17  Jim Meyering  <jim@meyering.net>
19882
19883         Make the %s format (seconds since the epoch) work for a negative
19884         number and when used with a zero-padded field width, e.g. %015s.
19885
19886         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
19887         label so that it precedes the code to set `digits'.  Otherwise,
19888         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
19889         print `00-22'.  Now, it prints `-0022', as it should.
19890
19891 2005-08-17  Bruno Haible  <bruno@clisp.org>
19892
19893         * modules/strstr (Files): Add m4/mbrtowc.m4.
19894         (Depends-on): Add mbuiter.
19895
19896 2005-08-17  Bruno Haible  <bruno@clisp.org>
19897
19898         * modules/strcasestr: New file.
19899         * MODULES.html.sh (String handling, based on ANSI C 89): Add
19900         strcasestr.
19901
19902 2005-08-17  Bruno Haible  <bruno@clisp.org>
19903
19904         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
19905
19906 2005-08-17  Bruno Haible  <bruno@clisp.org>
19907
19908         * modules/mbuiter: New file.
19909         * MODULES.html.sh (Extended multibyte and wide character utilities):
19910         Add mbuiter.
19911
19912 2005-08-17  Bruno Haible  <bruno@clisp.org>
19913
19914         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
19915         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
19916
19917 2005-08-17  Bruno Haible  <bruno@clisp.org>
19918
19919         * m4/strcasestr.m4: New file.
19920
19921 2005-08-17  Bruno Haible  <bruno@clisp.org>
19922
19923         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
19924         * lib/strstr.c: Completely rewritten, with multibyte locale support.
19925
19926 2005-08-17  Bruno Haible  <bruno@clisp.org>
19927
19928         * lib/strcasestr.h: New file.
19929         * lib/strcasestr.c: New file.
19930
19931 2005-08-17  Bruno Haible  <bruno@clisp.org>
19932
19933         * lib/strcasecmp.c: Use mbuiter.h.
19934
19935 2005-08-17  Bruno Haible  <bruno@clisp.org>
19936
19937         * lib/mbuiter.h: New file.
19938
19939 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
19940
19941         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
19942         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
19943         and gl_GETOPT are both invoked via different paths (as happens
19944         with GNU tar CVS because it uses both argp and getopt), the former
19945         wins.
19946
19947 2005-08-16  Bruno Haible  <bruno@clisp.org>
19948
19949         * modules/tls: New file.
19950         * MODULES.html.sh (Multithreading): Add tls.
19951
19952 2005-08-16  Bruno Haible  <bruno@clisp.org>
19953
19954         * modules/strnlen1: New file.
19955         * MODULES.html.sh (String handling): Add strnlen1.
19956
19957 2005-08-16  Bruno Haible  <bruno@clisp.org>
19958
19959         * modules/strcase (Files): Add m4/mbrtowc.m4.
19960         (Depends-on): Add strnlen1, mbchar.
19961
19962 2005-08-16  Bruno Haible  <bruno@clisp.org>
19963
19964         * modules/mbiter: New file.
19965         * MODULES.html.sh (Extended multibyte and wide character utilities):
19966         Add mbiter.
19967
19968 2005-08-16  Bruno Haible  <bruno@clisp.org>
19969
19970         * modules/mbfile: New file.
19971         * MODULES.html.sh (Extended multibyte and wide character utilities):
19972         Add mbfile.
19973
19974 2005-08-16  Bruno Haible  <bruno@clisp.org>
19975
19976         * modules/mbchar: New file.
19977         * MODULES.html.sh (Extended multibyte and wide character utilities):
19978         New section.
19979
19980 2005-08-16  Bruno Haible  <bruno@clisp.org>
19981
19982         * m4/tls.m4: New file, from GNU gettext.
19983
19984 2005-08-16  Bruno Haible  <bruno@clisp.org>
19985
19986         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
19987         always.
19988         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
19989
19990 2005-08-16  Bruno Haible  <bruno@clisp.org>
19991
19992         * m4/mbiter.m4: New file.
19993
19994 2005-08-16  Bruno Haible  <bruno@clisp.org>
19995
19996         * m4/mbfile.m4: New file.
19997
19998 2005-08-16  Bruno Haible  <bruno@clisp.org>
19999
20000         * m4/mbchar.m4: New file.
20001
20002 2005-08-16  Bruno Haible  <bruno@clisp.org>
20003
20004         * lib/tls.h: New file, from GNU gettext.
20005         * lib/tls.c: New file, from GNU gettext.
20006
20007 2005-08-16  Bruno Haible  <bruno@clisp.org>
20008
20009         * lib/strnlen1.h: New file.
20010         * lib/strnlen1.c: New file.
20011
20012 2005-08-16  Bruno Haible  <bruno@clisp.org>
20013
20014         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
20015         (mbi_init): Update.
20016         (mbi_avail, mbi_advance): Let the iteration end before the terminating
20017         NUL byte, not after it.
20018
20019 2005-08-16  Bruno Haible  <bruno@clisp.org>
20020
20021         * lib/strcase.h (strcasecmp): Add note in comments.
20022         * lib/strncasecmp.c: Use code from strcasecmp.c.
20023         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
20024         (strcasecmp): Work correctly in multibyte locales.
20025
20026 2005-08-16  Bruno Haible  <bruno@clisp.org>
20027
20028         * lib/mbiter.h: New file.
20029
20030 2005-08-16  Bruno Haible  <bruno@clisp.org>
20031
20032         * lib/mbfile.h: New file.
20033
20034 2005-08-16  Bruno Haible  <bruno@clisp.org>
20035
20036         * lib/mbchar.h: New file.
20037         * lib/mbchar.c: New file.
20038
20039 2005-08-16  Bruno Haible  <bruno@clisp.org>
20040
20041         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
20042         the valid ones. Makes the comparison operations transitive:
20043         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
20044         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
20045
20046 2005-08-15  Simon Josefsson  <jas@extundo.com>
20047
20048         * modules/ssize_t (License): Change to 'unlimited'.
20049
20050         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
20051
20052 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
20053
20054         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
20055         Add comments for each pending glibc patch.
20056
20057 2005-08-15  Bruno Haible  <bruno@clisp.org>
20058
20059         * lib/regex.h (__restrict_arr): Don't define to __restrict if
20060         __cplusplus is defined.
20061
20062 2005-08-14  Jim Meyering  <jim@meyering.net>
20063
20064         Sync from coreutils.
20065
20066         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
20067         Use the hash-table-based cycle-detection code not just when
20068         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
20069         Reported by James Youngman in
20070         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
20071         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
20072         FTS_TIGHT_CYCLE_CHECK.
20073         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
20074         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
20075         once again.
20076         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
20077         * lib/fts.c (fd_safer): Remove decl.
20078         Include fcntl--.h rather than unistd-safer.h
20079         (fts_safe_changedir): Don't call fd_safer; no longer needed
20080         now that we include fcntl--.h.
20081
20082 2005-08-12  Simon Josefsson  <jas@extundo.com>
20083
20084         * modules/getndelim2: Use ssize_t module.
20085         * modules/getnline: Likewise.
20086         * modules/safe-read: Likewise.
20087         * modules/xreadlink: Likewise.
20088
20089         * modules/ssize_t: New file.
20090
20091 2005-08-12  Simon Josefsson  <jas@extundo.com>
20092
20093         * m4/readline.m4: Look for termcap, curses or ncurses if required.
20094
20095 2005-08-12  Simon Josefsson  <jas@extundo.com>
20096
20097         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20098         ssize_t.
20099
20100 2005-08-12  Simon Josefsson  <jas@extundo.com>
20101
20102         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
20103         readline, getdelim and check_version.
20104         (Support for systems lacking ISO C 99: Sizes of integer types):
20105         Add size_max.
20106
20107 2005-08-12  Bruno Haible  <bruno@clisp.org>
20108
20109         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
20110
20111 2005-08-11  Simon Josefsson  <jas@extundo.com>
20112
20113         * modules/readline: New file.
20114
20115         * modules/strnlen (Files): Add strnlen.h.
20116
20117 2005-08-11  Simon Josefsson  <jas@extundo.com>
20118
20119         * m4/readline.m4: New file.
20120
20121 2005-08-11  Simon Josefsson  <jas@extundo.com>
20122
20123         * lib/readline.h, readline.c: New file.
20124
20125 2005-08-11  Simon Josefsson  <jas@extundo.com>
20126
20127         * doc/gnulib.texi (Initial import, Finishing touches): Mention
20128         gl_AVOID.
20129
20130 2005-08-11  Bruno Haible  <bruno@clisp.org>
20131
20132         * lib/strnlen.h (strnlen): Change parameter name to match comment.
20133
20134 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
20135
20136         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
20137
20138 2005-08-10  Simon Josefsson  <jas@extundo.com>
20139
20140         * tests/test-iconvme.c: New file.
20141
20142 2005-08-10  Simon Josefsson  <jas@extundo.com>
20143
20144         * m4/strnlen.m4: New file.
20145
20146         * m4/strndup.m4: Don't check for strnlen declaration, done in
20147         strnlen.m4.
20148
20149 2005-08-10  Simon Josefsson  <jas@extundo.com>
20150
20151         * lib/strndup.c: Use strnlen.h.
20152
20153         * lib/strnlen.h: New file.
20154
20155 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
20156
20157         * README: Typos.
20158
20159 2005-08-02  Simon Josefsson  <jas@extundo.com>
20160
20161         * modules/readline: New file.
20162
20163 2005-08-02  Simon Josefsson  <jas@extundo.com>
20164
20165         * modules/getdelim: New file.
20166
20167         * modules/getline: Rewrite, don't use getndelim2.
20168
20169 2005-08-02  Simon Josefsson  <jas@extundo.com>
20170
20171         * m4/getline.m4: Separate out getdelim stuff into separate module.
20172
20173         * m4/getdelim.m4: New file.
20174
20175 2005-08-02  Simon Josefsson  <jas@extundo.com>
20176
20177         * lib/getline.h, getline.c: Rewrite.
20178
20179         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
20180
20181 2005-07-31  Bruno Haible  <bruno@clisp.org>
20182
20183         * lib/lock.h (gl_lock_initializer): New macro.
20184         (gl_lock_define_initialized): Use it.
20185         (gl_rwlock_initializer): New macro.
20186         (gl_rwlock_define_initialized): Use it.
20187         (gl_recursive_lock_initializer): New macro.
20188         (gl_recursive_lock_define_initialized): Use it.
20189
20190 2005-07-30  Karl Berry  <karl@gnu.org>
20191
20192         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
20193         Report from Ben Pfaff, regarding getopt.
20194
20195 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
20196
20197         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
20198         normal way.
20199         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
20200         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
20201         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
20202         (gl_GETOPT): Use the new macros.  Most of the implementation
20203         is moved to the new macros.  This is for programs like Emacs
20204         that don't want all the functionality of gl_GETOPT.
20205
20206 2005-07-26  Bruno Haible  <bruno@clisp.org>
20207
20208         * m4/lock.m4: Update from GNU gettext.
20209
20210 2005-07-26  Bruno Haible  <bruno@clisp.org>
20211
20212         * lib/lock.h: Update from GNU gettext.
20213         * lib/lock.c: Update from GNU gettext.
20214
20215 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
20216
20217         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
20218         obsolescent AC_TRY_RUN.  Include the default includes files, for
20219         'exit'.
20220
20221 2005-07-24  Bruno Haible  <bruno@clisp.org>
20222
20223         * modules/visibility: New file.
20224         * MODULES.html.sh (Misc): Add visibility.
20225
20226 2005-07-24  Bruno Haible  <bruno@clisp.org>
20227
20228         * m4/visibility.m4: New file.
20229
20230 2005-07-24  Bruno Haible  <bruno@clisp.org>
20231
20232         * doc/visibility.texi: New file.
20233
20234 2005-07-22  Bruno Haible  <bruno@clisp.org>
20235
20236         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
20237         $(ALLOCA_H), redundant through BUILT_SOURCES.
20238         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
20239         redundant through BUILT_SOURCES.
20240         * modules/byteswap (Makefile.am): Remove explicit dependency on
20241         $(BYTESWAP_H), redundant through BUILT_SOURCES.
20242         * modules/fnmatch (Makefile.am): Remove explicit dependency on
20243         $(FNMATCH_H), redundant through BUILT_SOURCES.
20244         * modules/getopt (Makefile.am): Remove explicit dependency on
20245         $(GETOPT_H), redundant through BUILT_SOURCES.
20246         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
20247         redundant through BUILT_SOURCES.
20248         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
20249         redundant through BUILT_SOURCES.
20250         * modules/stdbool (Makefile.am): Remove explicit dependency on
20251         $(STDBOOL_H), redundant through BUILT_SOURCES.
20252         * modules/stdint (Makefile.am): Remove explicit dependency on
20253         $(STDINT_H), redundant through BUILT_SOURCES.
20254         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
20255         Remove explicit dependency on $(SYSEXITS_H).
20256         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
20257
20258 2005-07-18  Simon Josefsson  <jas@extundo.com>
20259
20260         * lib/check-version.c (check_version): Accept identical versions too.
20261
20262 2005-07-18  Bruno Haible  <bruno@clisp.org>
20263
20264         * modules/lock: New file.
20265         * MODULES.html.sh (Multithreading): New section.
20266
20267 2005-07-18  Bruno Haible  <bruno@clisp.org>
20268
20269         * m4/lock.m4: New file, from GNU gettext.
20270
20271 2005-07-18  Bruno Haible  <bruno@clisp.org>
20272
20273         * lib/lock.h: New file, from GNU gettext.
20274         * lib/lock.c: New file, from GNU gettext.
20275
20276 2005-07-18  Bruno Haible  <bruno@clisp.org>
20277
20278         * lib/lock.h (gl_once_t): New type.
20279         (gl_once_define, gl_once): New macros.
20280         * lib/lock.c (fresh_once): New variable.
20281         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
20282         functions.
20283
20284 2005-07-16  Simon Josefsson  <jas@extundo.com>
20285
20286         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
20287         workaround, suggested by Bruno.
20288
20289 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
20290
20291         * modules/xalloc (Depends-on): Add xalloc-die.
20292         * modules/xvasprintf (Depends-on): Add xalloc-die.
20293
20294 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
20295
20296         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
20297         with a minor change.
20298
20299 2005-07-15  Bruno Haible  <bruno@clisp.org>
20300
20301         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
20302         When using lib/poll.c, define poll as rpl_poll.
20303
20304 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
20305
20306         * modules/argp (Depends-on): Remove unlocked-io.
20307
20308 2005-07-14  Derek Price  <derek@ximbiot.com>
20309
20310         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
20311         for glob symlink bug.
20312
20313 2005-07-14  Bruno Haible  <bruno@clisp.org>
20314
20315         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
20316         Instead, test for *_unlocked function declarations directly.
20317
20318 2005-07-11  Simon Josefsson  <jas@extundo.com>
20319
20320         * modules/size_max: New file.
20321
20322         * modules/xsize: Depend on size_max module for size_max.m4.
20323
20324 2005-07-11  Simon Josefsson  <jas@extundo.com>
20325
20326         * lib/size_max.h: New file.
20327
20328 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
20329
20330         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
20331         copyright symbol and the year.
20332         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
20333         (version_etc_va): Use parameterized copyright notice.
20334         Reword to conform to the current GNU coding standards.
20335
20336 2005-07-11  Karl Berry  <karl@gnu.org>
20337
20338         * doc/gnulib.texi (Quoting): new node.
20339         (Initial import): more info, from Patrice.
20340
20341 2005-07-11  Bruno Haible  <bruno@clisp.org>
20342
20343         * gnulib-tool (func_usage): Document option --avoid.
20344         (Command line options): Handle --avoid.
20345         (func_acceptable): New function.
20346         (func_modules_transitive_closure): Use it.
20347
20348 2005-07-11  Bruno Haible  <bruno@clisp.org>
20349
20350         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
20351         Reported by Jim Meyering.
20352
20353 2005-07-10  Bruno Haible  <bruno@clisp.org>
20354
20355         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
20356         Needed when size_t is smaller than 'unsigned int'.
20357         Reported by Paul Eggert.
20358
20359 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
20360
20361         * modules/argp (Depends-on): Add unlocked-io
20362
20363 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
20364
20365         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
20366         block of defines.
20367
20368 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
20369
20370         * config/srclist.txt: Comment out regcomp.c, since we have a porting
20371         fix now.
20372
20373 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
20374         and Paul Eggert  <eggert@cs.ucla.edu>
20375
20376         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
20377         in wint_t, not wchar_t.  Remove now-unnecessary cast.
20378
20379 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
20380
20381         * modules/regex (Files): Add lib/regex_internal.c,
20382         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
20383         (Depends-on): Add extensions.
20384         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
20385
20386 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
20387
20388         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
20389         pathconf.
20390         * m4/same.m4 (gl_SAME): Likewise.
20391         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
20392
20393         * m4/regex.m4: Adjust to new libc regex implementation.
20394         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
20395         all the .c and .h parts of (the new) regex.
20396         Quote the m4 stuff better.
20397         Check for RE_ICASE bug of old gnulib.
20398         Check for REG_STARTEND of recent libc.
20399         Rename local variables from jm_* to gl_*.
20400         Quote operand of "test -f".
20401         Say "recent enough" version of libc, not "version 2".
20402         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
20403         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
20404         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
20405         Remove check for btowc, isascii.
20406         Require AM_LANGINFO_CODESET.
20407
20408 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
20409
20410         * lib/regex.c, regex.h: Sync from libc.
20411         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
20412         * lib/regexec.c:
20413         New files, synced from libc, except that regex_internal.h
20414         currently has a small porting fix.
20415
20416 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
20417
20418         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
20419         regex_internal.c, regexec.c.
20420         Add regex_internal.h too, but as a comment, since the libc version
20421         is currently broken in gnulib mode.
20422
20423 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
20424
20425         Support programs like Emacs that use gnulib but not gettext.
20426         * MODULES.html.sh (Internationalization functions): Add gettext-h.
20427         * modules/gettext-h: New file.
20428         * modules/gettext (Files): Remove lib/gettext.h.
20429         (Depends-on): Add gettext-h.
20430         (Makefile.am): Remove lib_SOURCES.
20431         * modules/argmatch, modules/c-stack, modules/closeout:
20432         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
20433         * modules/execute, modules/file-type, modules/getaddrinfo:
20434         * modules/getopt, modules/human, modules/javacomp:
20435         * modules/javaexec, modules/mkdir-p, modules/obstack:
20436         * modules/openat, modules/pagealign_alloc, modules/pipe:
20437         * modules/quotearg, modules/regex, modules/rpmatch:
20438         * modules/unicodeio, modules/userspec, modules/version-etc:
20439         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
20440         * modules/xsetenv:
20441         Depend on gettext-h, not gettext.
20442
20443 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
20444
20445         * gnulib-tool (func_import): Add support for 'public domain' license.
20446         * modules/alloca, modules/atexit, modules/memmove:
20447         Now public domain, not GPL.
20448         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
20449         * modules/realloc, modules/strerror, modules/strtod:
20450         Now LGPL, not GPL.
20451
20452 2005-07-05  Bruno Haible  <bruno@clisp.org>
20453
20454         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
20455         autoconf CVS. Needed for mingw.
20456
20457 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
20458
20459         Remove the dependency of the strftime module on the tzset module.
20460         * modules/strftime (Depends-on): Remove dependency on tzset.
20461
20462 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
20463
20464         Remove the dependency of the strftime module on the tzset module.
20465         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
20466         gl_FUNC_TZSET_CLOBBER.
20467
20468 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
20469
20470         Remove the dependency of the strftime module on the tzset module.
20471         * lib/strftime.c (my_strftime)
20472         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
20473         Copy the input structure, to work around some of the bug with
20474         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
20475         Solaris releases, you should also use the tzset module, but we won't
20476         require it as a dependency any more since we don't want LGPLed code
20477         to depend on GPLed code.
20478
20479 2005-07-02  Jim Meyering  <jim@meyering.net>
20480
20481         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
20482         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
20483         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
20484         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
20485
20486 2005-07-02  Jim Meyering  <jim@meyering.net>
20487
20488         * lib/backupfile.c (backup_args): Change a `0' to NULL.
20489
20490 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
20491
20492         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
20493         declares only 'struct timespec;' (!).
20494
20495 2005-07-01  Jim Meyering  <jim@meyering.net>
20496
20497         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
20498         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
20499         * lib/save-cwd.c, tempname.c:
20500         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
20501         and don't include <sys/file.h>).
20502
20503 2005-06-29  Jim Meyering  <jim@meyering.net>
20504
20505         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
20506         type name.  Use the variable name instead.
20507         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
20508         Likewise.
20509
20510 2005-06-28  Simon Josefsson  <jas@extundo.com>
20511
20512         * modules/check-version (Files): Add check-version.m4.
20513
20514 2005-06-28  Simon Josefsson  <jas@extundo.com>
20515
20516         * m4/check-version.m4: New file, suggested by Jim Meyering
20517         <jim@meyering.net>.
20518
20519 2005-06-28  Simon Josefsson  <jas@extundo.com>
20520
20521         * lib/check-version.h, lib/check-version.c: New files.
20522
20523 2005-06-28  Simon Josefsson  <jas@extundo.com>
20524
20525         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
20526         collision with global variable.  Better indentation.  Don't
20527         increment buffer pointer beyond buffer end.  Based on comments
20528         from Paul Eggert <eggert@cs.ucla.edu>.
20529
20530         * lib/base64.h: Indent.
20531
20532 2005-06-28  Simon Josefsson  <jas@extundo.com>
20533
20534         * doc/gnulib.texi (Library version handling): New section.
20535
20536 2005-06-28  Jim Meyering  <jim@meyering.net>
20537
20538         * check-module (find_included_lib_files): Hard-code another
20539         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
20540         but modules/fts-lgpl (correctly) does not list those files.
20541
20542         * modules/canonicalize (Files): Add lib/pathmax.h.
20543
20544 2005-06-25  Simon Josefsson  <jas@extundo.com>
20545
20546         * modules/check-version: New file.
20547
20548 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
20549
20550         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
20551         initializer of struct addrinfo, as an indication that we don't
20552         care how many members the structure has.
20553
20554 2005-06-24  Derek Price  <derek@ximbiot.com>
20555         and Bruno Haible  <bruno@clisp.org>
20556
20557         Remove stat module & update lstat.
20558         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
20559         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
20560         * m4/stat.m4: Remove this file.
20561
20562 2005-06-24  Derek Price  <derek@ximbiot.com>
20563         and Bruno Haible  <bruno@clisp.org>
20564
20565         Remove stat module & update lstat.
20566         * lib/stat.c: Remove this file...
20567         (slash_aware_lstat): ...moving this content and its support...
20568         * lib/lstat.c (rpl_lstat): ...into here.
20569         * lib/lstat.h: New file.
20570
20571 2005-06-24  Derek Price  <derek@ximbiot.com>
20572         and Bruno Haible  <bruno@clisp.org>
20573
20574         Remove stat module & update lstat.
20575         * config/srclist.txt (libc sources): Remove stat.
20576
20577 2005-06-24  Derek Price  <derek@ximbiot.com>
20578         and Bruno Haible  <bruno@clisp.org>
20579
20580         Remove stat module & update lstat.
20581         * MODULES.html.sh (stat): Remove.
20582         * MODULES.html: Regenerated.
20583         * modules/lstat (Description): Correct function name.
20584         (Files): Add "lstat.h".
20585         (Depends-on): Remove stat, add xalloc, stat-macros.
20586         * modules/stat: Remove this file.
20587         (Include): Add "lstat.h", remove <sys/stat.h>.
20588
20589 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
20590
20591         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
20592         (ranged_convert): Don't save conversion in a temporary struct.
20593         This causes a warning with GCC 4.0.0, and anyway in the typical
20594         case it's not worth the extra 100 bytes or so of code.
20595         (ranged_convert, __mktime_internal): When calling a function via a
20596         pointer P, use P () rather than (*P) (), as we now assume C89 or
20597         better.
20598
20599 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
20600
20601         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
20602         "who -r" failed to give output.  Problem reported by Tim Waugh.
20603
20604         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
20605         (xcalloc): Use it to avoid needless tests.
20606         Problem reported by Jim Meyering.
20607
20608 2005-06-20  Derek Price  <derek@ximbiot.com>
20609
20610         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
20611         unnecessary for Autoconfs > 2.59c.
20612
20613 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
20614
20615         * lib/argp.h (__option_is_short): Check upper limit of
20616         __key. Isprint() requires its argument to have the value
20617         of an unsigned char or EOF.
20618
20619 2005-06-16  Jim Meyering  <jim@meyering.net>
20620
20621         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
20622         when either N or S is zero.
20623
20624 2005-06-16  Derek Price  <derek@ximbiot.com>
20625
20626         * m4/bison.m4: Declare YACC & YFLAGS precious.
20627
20628 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
20629
20630         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
20631         multibyte string or pattern, fall back on unibyte matching.
20632         Problem reported by James Youngman.
20633
20634 2005-06-08  Bruno Haible  <bruno@clisp.org>
20635
20636         * modules/csharpcomp: New file.
20637         * MODULES.html.sh (C#): Add csharpcomp.
20638
20639 2005-06-08  Bruno Haible  <bruno@clisp.org>
20640
20641         * m4/csharpcomp.m4: New file, from GNU gettext.
20642
20643 2005-06-08  Bruno Haible  <bruno@clisp.org>
20644
20645         * lib/csharpcomp.h: New file, from GNU gettext.
20646         * lib/csharpcomp.c: New file, from GNU gettext.
20647         * lib/csharpcomp.sh.in: New file, from GNU gettext.
20648
20649 2005-06-08  Bruno Haible  <bruno@clisp.org>
20650
20651         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
20652         warning on mingw.
20653
20654 2005-06-07  Derek Price  <derek@ximbiot.com>
20655
20656         Sync from CVS.
20657         * lib/glob_.h: Indent nested #ifdef.
20658
20659 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
20660
20661         Sync from coreutils.
20662         Use "file name" when talking about file names, instead of "filename"
20663         or "path", as per the GNU coding standards.
20664         * lib/mkdir-p.c: Renamed from makepath.c.
20665         (make_dir_parents): Renamed from make_path.  All callers changed.
20666         * lib/mkdir-p.h: Likewise.  All includers changed.
20667         * lib/filenamecat.c: Renamed from path-concat.c.
20668         (file_name_concat): Renamed from path_concat.  All callers changed.
20669         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
20670         * lib/filenamecat.h: Likewise.  All includers changed.
20671         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
20672         in comments or local variable names.
20673         * lib/basename.c: Likewise.
20674         * lib/canonicalize.c, canonicalize.h: Likewise.
20675         * lib/dirname.c, dirname.h: Likewise.
20676         * lib/euidaccess.c: Likewise.
20677         * lib/exclude.c: Likewise
20678         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
20679         * lib/fsusage.c, fsuage.h: Likewise.
20680         * lib/fts.c, fts_.h: Likewise.
20681         * lib/getcwd.c: Likewise.
20682         * lib/getloadavg.c: Likewise.
20683         * lib/mkstemp.c: Likewise.
20684         * lib/mountlist.c, mountlist.h: Likewise.
20685         * lib/openat.c, openat.h: Likewise.
20686         * lib/readlink-stub.c: Likewise.
20687         * lib/readutmp.c, readutmp.h: Likewise.
20688         * lib/rename.c: Likewise.
20689         * lib/rmdir.c: Likewise.
20690         * lib/same.c: Likewise.
20691         * lib/savedir.c: Likewise.
20692         * lib/stripslash.c: Likewise.
20693         * lib/tempname.c: Likewise.
20694         * lib/xreadlink.c: Likewise.
20695         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
20696         All uses changed.
20697         * lib/exclude.h: Likewise.
20698
20699         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
20700         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
20701         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
20702         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
20703         * lib/pathmax.h: Include <limits.h> unconditionally, since other
20704         files have been getting away with it for years (MORE/BSD 4.3
20705         is extinct now).
20706         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
20707         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
20708
20709         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
20710         Define to 256, not 255, as per modern POSIX.
20711
20712 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
20713
20714         Sync from coreutils.
20715         Use "file name" when talking about file names, instead of "filename"
20716         or "path", as per the GNU coding standards.
20717         * MODULES.html.sh: mkdir-p renamed from makepath.
20718         filenamecat renamed from path-concat.
20719         * modules/filenamecat: Renamed from modules/path-concat.
20720         (Files): filenamecat.h and filenamecat.c renamed from
20721         path-concat.h and path-concat.c.
20722         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
20723         (Include): filenamecat.h, not path-concat.h.
20724         * modules/mkdir-p: Renamed from modules/makepath.
20725         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
20726         makepath.c.
20727         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
20728         (Include): mkdir-p.h, not makepath.h.
20729
20730 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
20731
20732         Sync from coreutils.
20733         * m4/mkdir-p.m4: Renamed from makepath.m4.
20734         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
20735         Rename files from makepath.c to mkdir-p.c, and from
20736         makepath.h to mkdir-p.h.
20737         * m4/filenamecat.m4: Renamed from path-concat.m4.
20738         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
20739         Rename files from path-concat.c to filenamecat.c,
20740         and from path-concat.h to filenamecat.h.
20741         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
20742         "file name" in local variables or comments.
20743         * m4/rename.m4: Likewise.
20744
20745 2005-06-01  Bruno Haible  <bruno@clisp.org>
20746
20747         * modules/csharpexec: New file.
20748         * MODULES.html.sh (C#): New section.
20749
20750 2005-06-01  Bruno Haible  <bruno@clisp.org>
20751
20752         * m4/csharp.m4: New file, from GNU gettext.
20753         * m4/csharpexec.m4: New file, from GNU gettext.
20754
20755 2005-06-01  Bruno Haible  <bruno@clisp.org>
20756
20757         * lib/csharpexec.h: New file, from GNU gettext.
20758         * lib/csharpexec.c: New file, from GNU gettext.
20759         * lib/csharpexec.sh.in: New file, from GNU gettext.
20760
20761 2005-05-31  Derek Price  <derek@ximbiot.com>
20762             Paul Eggert  <eggert@cs.ucla.edu>
20763
20764         Sync from cvs.
20765         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
20766
20767 2005-05-31  Derek Price  <derek@ximbiot.com>
20768             Paul Eggert  <eggert@cs.ucla.edu>
20769
20770         Sync from cvs.
20771         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
20772
20773 2005-05-29  Derek Price  <derek@ximbiot.com>
20774
20775         * config/srclist.txt (glob_.h, glob.c): Add these files.
20776
20777 2005-05-29  Derek Price  <derek@ximbiot.com>
20778
20779         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
20780         * modules/glob: New file.
20781         * modules/getlogin_r: Add link to POSIX spec in description.
20782
20783 2005-05-29  Derek Price  <derek@ximbiot.com>
20784             Paul Eggert  <eggert@cs.ucla.edu>
20785
20786         * m4/glob.m4: New file.
20787
20788 2005-05-29  Derek Price  <derek@ximbiot.com>
20789             Paul Eggert  <eggert@cs.ucla.edu>
20790
20791         * lib/glob_.h, lib/glob.c: New files.
20792
20793 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
20794
20795         * modules/fts (Files): Remove m4/inttypes-pri.m4.
20796         * modules/fts-lgpl (Depends-on): Remove gettext.
20797
20798 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
20799
20800         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
20801         and don't require gt_INTTYPES_PRI.
20802
20803 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
20804
20805         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
20806
20807         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
20808         the configuration hassle isn't worth it.
20809         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
20810         (LONGEST_MODIFIER, PRIuMAX): Remove.
20811
20812 2005-05-27  Bruno Haible  <bruno@clisp.org>
20813
20814         * lib/getlogin_r.h: Remove second include of <stddef.h>.
20815
20816 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
20817
20818         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
20819         _POSIX_PTHREAD_SEMANTICS for Solaris.
20820
20821 2005-05-25  Derek Price  <derek@ximbiot.com>
20822
20823         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
20824
20825 2005-05-25  Derek Price  <derek@ximbiot.com>
20826             Paul Eggert  <eggert@cs.ucla.edu>
20827
20828         * modules/getlogin_r, m4/getlogin_r.m4: New files.
20829         * lib/getlogin_r.c, getlogin_r.h: New files.
20830
20831 2005-05-25  Bruno Haible  <bruno@clisp.org>
20832             Derek Price  <derek@ximbiot.com>
20833
20834         * lib/getlogin_r.h: Simplify API documentation.
20835
20836 2005-05-23  Derek Price  <derek@ximbiot.com>
20837
20838         * modules/minmax (Files): Add m4/minmax.m4.
20839         (configure.ac): Add gl_MINMAX.
20840
20841 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
20842
20843         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
20844         so that unistd-safer.h (GPL'ed code) need not be included.
20845
20846 2005-05-22  Bruno Haible  <bruno@clisp.org>
20847
20848         * m4/minmax.m4: New file.
20849         Based on a patch by Derek Price <derek@ximbiot.com>.
20850
20851 2005-05-22  Bruno Haible  <bruno@clisp.org>
20852
20853         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
20854         (INT64_MIN): Fix definition.
20855         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
20856
20857         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
20858         NEED_SIGNED_INT_TYPES.
20859
20860         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
20861         HAVE_SYSTEM_INTTYPES.
20862
20863 2005-05-22  Bruno Haible  <bruno@clisp.org>
20864
20865         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
20866         Also include <sys/param.h> if it defines MIN, MAX.
20867         Based on a patch by Derek Price <derek@ximbiot.com>.
20868
20869 2005-05-21  Jim Meyering  <jim@meyering.net>
20870
20871         * modules/fts (Files): Add m4/inttypes-pri.m4.
20872         (Depends-on): Add lstat and remove gettext.  Alphabetize.
20873
20874 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
20875
20876         New fts module.
20877         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
20878         (setup_dir, free_dir): New functions.
20879         (enter_dir, leave_dir): Define trivial
20880         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
20881         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
20882         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
20883         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
20884         Move to fts-cycle.c.
20885         (fts_open): Use setup_dir.
20886         (fts_close): Use free_dir.
20887         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
20888         This adds a label and some gotos, but the alternatives were messier.
20889         Check for memory allocation failure when entering a dir.
20890         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
20891         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
20892         (FTS): New member fts_cycle, that is a union that contains the
20893         old active_dir_ht and cycle_state.  All uses changed to mention
20894         fts_cycle.ht and fts_cycle.state.
20895         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
20896         fts.c, with the following changes:
20897         (setup_dir, free_dir): New functions.
20898         (enter_dir): Now returns bool.  Return true if successful, false
20899         if memory exhausted.  All callers changed.
20900         Do not bother partly cleaning up on
20901         memory allocation failure; that is free_dir's job.
20902         However, free ad if hash_insert fails, to avoid memory leak.
20903         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
20904         fts->fts_options to see which union member to use.
20905
20906 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
20907
20908         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
20909         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
20910
20911 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
20912
20913         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
20914
20915 2005-05-20  Jim Meyering  <jim@meyering.net>
20916
20917         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
20918         Now a macro, to pacify GCC.
20919
20920 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
20921
20922         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
20923         of -1.
20924
20925 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
20926
20927         * lib/chown.c (rpl_chown): Return -1 on failure.
20928
20929 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
20930
20931         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
20932         Don't check for stddef.h.
20933         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
20934         don't use its results.
20935         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
20936         since we include them unconditionally.  Don't require
20937         AM_STDBOOL_H, since stdbool is a prerequisite.
20938         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
20939         since we assume C89 or better.
20940         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
20941         as we don't use their results.
20942         Don't check for fchdir, memmove, memset, strrchr, as we use
20943         them unconditionally.
20944         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
20945         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
20946
20947 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
20948
20949         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
20950         Include <stddef.h> unconditionally, since we assume C89 now.
20951         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
20952         * lib/fts.c: Include fts_.h first, to check interface.
20953         Do not include intprops.h; no longer needed.
20954         Include cycle-check.h and hash.h, since fts_.h no longer does.
20955         Remove unnecessary casts of closedir to void.
20956         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
20957         decide whether to decrement nlinks.
20958         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
20959         (FTS): Use struct hash_table * instead of Hash_table, so that
20960         we no longer need to include hash.h here.
20961
20962 2005-05-18  Jim Meyering  <jim@meyering.net>
20963
20964         * modules/dirfd (License): Change to LGPL.  Most of the code
20965         is already in the public domain.
20966
20967 2005-05-18  Jim Meyering  <jim@meyering.net>
20968
20969         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
20970         Reported by Yoann Vandoorselaere.
20971
20972 2005-05-17  Jim Meyering  <jim@meyering.net>
20973
20974         * m4/fts.m4: New file, from coreutils.
20975
20976 2005-05-17  Jim Meyering  <jim@meyering.net>
20977
20978         * lib/fts.c, lib/fts_.h: New files, from coreutils.
20979
20980 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
20981
20982         Sync from coreutils.
20983         * m4/unlinkdir.m4: New file.
20984
20985 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
20986
20987         Sync from coreutils.
20988         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
20989         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
20990         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
20991         White space changes only.
20992         * lib/makepath.c (make_path): Port to hosts where leading "//" is
20993         special.
20994         * lib/yesno.c: Include getline.h, not ctype.h.
20995         (yesno): Don't remove leading white space; POSIX doesn't allow it.
20996         Use getline to remove arbitrary restriction on response length.
20997
20998 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
20999
21000         * config/srclist-update: Spell out "Street" in FSF postal
21001         mail address; this is the style the FSF seems to prefer.
21002
21003         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
21004         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
21005         this updates FSF postal mail address.
21006
21007         Sync from coreutils.
21008         * modules/unlinkdir: New file.
21009         * modules/yesno (Depends-on): Add getline.
21010         * MODULES.html.sh (File system functions): Add unlinkdir.
21011
21012 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
21013
21014         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
21015         lib/strsep.h:
21016         Change the initial comment to refer to GPL, not LGPL.
21017         gnulib-tool will change it to LGPL as needed.
21018
21019         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
21020         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
21021         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
21022         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
21023         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
21024         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
21025         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
21026         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
21027         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
21028         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
21029         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
21030         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
21031         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
21032         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
21033         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
21034         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
21035         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
21036         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
21037         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
21038         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
21039         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
21040         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
21041         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
21042         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
21043         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
21044         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
21045         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
21046         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
21047         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
21048         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
21049         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
21050         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
21051         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
21052         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
21053         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
21054         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
21055         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
21056         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
21057         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
21058         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
21059         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
21060         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
21061         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
21062         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
21063         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
21064         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
21065         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
21066         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
21067         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
21068         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
21069         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
21070         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
21071         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
21072         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
21073         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
21074         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
21075         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
21076         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
21077         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
21078         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
21079         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
21080         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
21081         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
21082         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
21083         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
21084         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
21085         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
21086         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
21087         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
21088         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
21089         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
21090         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
21091         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
21092         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
21093         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
21094         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
21095         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
21096         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
21097         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
21098         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
21099         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
21100         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
21101         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
21102         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
21103         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
21104         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
21105         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
21106         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
21107         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
21108         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
21109         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
21110         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
21111         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
21112         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
21113         lib/yesno.c, lib/yesno.h:
21114         Update FSF postal mail address.
21115
21116 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
21117
21118         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
21119         tests/test-memmem.c, tests/test-stpncpy.c:
21120         Update FSF postal mail address.
21121
21122 2005-05-13  Bruno Haible  <bruno@clisp.org>
21123
21124         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
21125         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
21126         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
21127         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
21128         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
21129         Add support for 64-bit integers in the MSVC compiler.
21130
21131 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
21132
21133         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
21134
21135 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
21136
21137         * gnulib-tool (func_import): Sort and uniquify recommended includes.
21138
21139 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
21140
21141         * doc/getdate.texi (General date syntax): Don't say that date
21142         date --iso-8601=ns generates acceptable dates; it doesn't yet.
21143         Problem reported by Nic Ferrier.
21144
21145 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21146
21147         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
21148         specified in ai_socktype. Fix invalid ai_protocol
21149         check. ai_protocol is usually set to 0 or depending on
21150         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
21151         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
21152         ai_socktype / ai_protocol in the returned addrinfo structure.
21153
21154 2005-05-10  Simon Josefsson  <jas@extundo.com>
21155
21156         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
21157         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21158
21159 2005-05-10  Karl Berry  <karl@gnu.org>
21160
21161         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
21162         (from http://www.gnu.org/licenses).
21163         * doc/COPYING.LIB: also rename to COPYING.LESSER.
21164         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
21165         fdl.texi suffices.
21166
21167 2005-05-10  Karl Berry  <karl@gnu.org>
21168
21169         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
21170         (COPYING.DOC): remove.
21171
21172         * config/srclist-update: new FSF address.
21173
21174 2005-05-10  Derek Price  <derek@ximbiot.com>
21175
21176         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
21177         possible.
21178
21179 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21180             Bruno Haible  <bruno@clisp.org>
21181
21182         * modules/inet_ntop: New file.
21183         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21184         inet_ntop.
21185
21186 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21187             Bruno Haible  <bruno@clisp.org>
21188
21189         * m4/inet_ntop.m4: New file.
21190
21191 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21192             Bruno Haible  <bruno@clisp.org>
21193
21194         * lib/inet_ntop.h: New file.
21195         * lib/inet_ntop.c: New file, from glibc with modifications.
21196
21197 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
21198
21199         * modules/time_r (License): Change to LGPL.
21200         * modules/extensions (License): Change to LGPL.  Actually,
21201         the license is more permissive than that, but currently gnulib-tool
21202         doesn't know how to handle more-permissive licenses.
21203
21204         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
21205         Problem reported by Dave Love.
21206
21207 2005-05-08  Jim Meyering  <jim@meyering.net>
21208
21209         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
21210         blank.
21211
21212 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
21213
21214         * modules/argmatch (Depends-on): Add stdbool.
21215         * modules/backupfile (Depends-on): Likewise.
21216         * modules/chdir-long (Depends-on): Likewise.
21217         * modules/closeout (Depends-on): Likewise.
21218         * modules/cycle-check (Depends-on): Likewise.
21219         * modules/dirname (Depends-on): Likewise.
21220         * modules/fnmatch (Depends-on): Likewise.
21221         * modules/fsusage (Depends-on): Likewise.
21222         * modules/fwriteerror (Depends-on): Likewise.
21223         * modules/getcwd (Depends-on): Likewise.
21224         * modules/getloadavg (Depends-on): Likewise.
21225         * modules/hard-locale (Depends-on): Likewise.
21226         * modules/makepath (Depends-on): Likewise.
21227         * modules/mountlist (Depends-on): Likewise.
21228         * modules/nanosleep (Depends-on): Likewise.
21229         * modules/posixtm (Depends-on): Likewise.
21230         * modules/quotearg (Depends-on): Likewise.
21231         * modules/readtokens (Depends-on): Likewise.
21232         * modules/readtokens0 (Depends-on): Likewise.
21233         * modules/readutmp (Depends-on): Likewise.
21234         * modules/save-cwd (Depends-on): Likewise.
21235         * modules/strftime (Depends-on): Likewise.
21236         * modules/userspec (Depends-on): Likewise.
21237         * modules/utimecmp (Depends-on): Likewise.
21238         * modules/xgetcwd (Depends-on): Likewise.
21239         * modules/xnanosleep (Depends-on): Likewise.
21240         * modules/xstrtod (Depends-on): Likewise.
21241         * modules/yesno (Depends-on): Likewise.
21242
21243 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
21244
21245         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
21246         needless checks.
21247
21248 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
21249
21250         Merge from coreutils.  Among other things,
21251         add bulletproofing for cases where stdin, stdout, or stderr are closed.
21252         * lib/fd-safer.c: New file.
21253         * lib/fcntl-safer.h, open-safer.c: Remove.
21254         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
21255         * lib/dup-safer.c: Include unistd-safer.h first.
21256         Don't include errno.h.
21257         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
21258         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
21259         * lib/file-type.c: Rely on file-type.h change.
21260         * lib/getloadavg.c: Include unistd-safer.h.
21261         (getloadavg): Use safer open.
21262         * lib/getusershell.c: Include "stdio-safer.h".
21263         (getusershell): Use safer fopen.
21264         * lib/long-options.c (long_options): Use NULL rather than 0.
21265         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
21266         'free'.
21267         * lib/modechange.c: Likewise.
21268         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
21269         (MODE_DONE): New constant.
21270         (struct mode_change): Remove 'next' member.
21271         (make_node_op_equals): New function; like the old one of the
21272         same name, except it allocates an array.
21273         (mode_compile, mode_create_from_ref): Use it.
21274         (mode_compile): Allocate result as an array, not a linked list.
21275         Parse octal string ourself, so that we catch mistakes like "+0".
21276         (mode_adjust): Arg is an array, not a linked list.
21277         * lib/modechange.c: Include stat-macros.h, xalloc.h.
21278         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
21279         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
21280         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
21281         Remove.  This is now stat-macros.h's job.
21282         (talloc): Remove.  All callers replaced by xalloc, so that
21283         our invokers don't have to worry about reporting memory failures.
21284         (make_node_op_equals): Remove.
21285         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
21286         New constants.
21287         (struct mode_change): Moved here from modechange.h.
21288         (mode_append_entry): Remove.
21289         (mode_compile): Remove MASKED_OPS arg, since it encouraged
21290         apps to have incorrect behavior.  Use simpler algorithm for head
21291         and tail.  Don't futz with umask; that's now the job of mode_adjust.
21292         Detect more invalid usages rather than having somewhat-random behavior.
21293         Don't insert an "a=" action, as that leads to incorrect behavior.
21294         (mode_compile, mode_create_from_ref): Return NULL on error instead
21295         of an enum, since now there's only one way to have an error.  All
21296         callers changed.
21297         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
21298         at the correct time.  Simplify calculation of "+u" and its ilk.
21299         Don't mishandle "+X".
21300         (mode_free): Remove "register" and localize decls.
21301         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
21302         (struct mode_change): Move to modechange.c; callers don't
21303         need to see this stuff.
21304         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
21305         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
21306         (mode_change, mode_adjust): Reflect the new signatures noted above.
21307         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
21308         that might redefine system include files.
21309         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
21310         (my_usleep): Use NULL rather than (void *) 0.
21311         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
21312         Use siginterrupt to specify that system calls should be interrupted.
21313         (rpl_nanosleep): Move initialization of suspended closer to call of
21314         my_usleep.
21315         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
21316         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
21317         (desirable_utmp_entry): New function.
21318         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
21319         using x2nrealloc, to simplify logic.
21320         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
21321         size calculation.  Do not assume utmp file is a regular file.
21322         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
21323         (READ_UTMP_CHECK_PIDS): New constant.
21324         * lib/save-cwd.c: Include unistd-safer.h.
21325         (save_cwd): Use fd_safer.
21326         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
21327         [!_LIBC] Include "stat-macros.h" instead.
21328         * lib/unistd-safer.h (fd_safer): New decl.
21329
21330 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
21331
21332         * modules/getloadavg (Depends-on): Add unistd-safer.
21333         * modules/getusershell (Depends-on): Add stdio-safer.
21334         * modules/lstat (Depends-on): Remove xalloc.
21335         * modules/mkstemp (Depends-on): Add stat-macros.
21336         * modules/modechange (Depends-on): Remove xstrtol.
21337         Add stat-macros, xalloc.
21338         * modules/save-cwd (Depends-on): Add unistd-safer.
21339         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
21340         * modules/unistd-safer (Files): Add lib/fd-safer.c
21341         (Makefile.am): Remove lib_SOURCES.
21342
21343         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
21344         Remove fcntl-safer; unistd-safer supersedes it.
21345
21346 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
21347
21348         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
21349         AC_HEADER_STAT.
21350         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
21351         (gl_PREREQ_CHOWN): Remove.
21352         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
21353         it.  Don't require AC_HEADER_STAT.
21354         (gl_PREREQ_LSTAT): Remove.
21355         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
21356         Don't require AC_HEADER_STAT.
21357         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
21358         (gl_PREREQ_RMDIR): Remove.
21359         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
21360         mention stat-macros.h or AC_HEADER_STAT, since we'll make
21361         the stat-macros module a prerequisite.
21362         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
21363         * m4/filemode.m4 (gl_FILEMODE): Likewise.
21364         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
21365         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
21366         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
21367         variable names.
21368         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
21369         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
21370         variable prefixes.
21371         * m4/fcntl-safer.m4: Remove.
21372         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
21373         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
21374         Invoke gl_PREREQ_FD_SAFER.
21375         (gl_PREREQ_FD_SAFER): New macro.
21376         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
21377         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
21378         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
21379         Remove duplicate call to AC_LIBOBJ(readutmp).
21380         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
21381
21382         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
21383         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
21384
21385 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
21386
21387         * MODULES.html.sh (Misc): Add byteswap.
21388
21389 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
21390
21391         * modules/getcwd (Depends-on): Add extensions.
21392         * modules/openat (Depends-on): Likewise.
21393
21394 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
21395
21396         * modules/byteswap: New file.
21397
21398 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
21399
21400         * m4/byteswap.m4: New file.
21401
21402 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
21403
21404         * lib/byteswap_.h: New file.
21405
21406 2005-04-25  Karl Berry  <karl@gnu.org>
21407
21408         * m4/gettext.m4: Update from GNU gettext 0.14.4.
21409
21410 2005-04-25  Albert Chin  <china@thewrittenword.com>
21411
21412         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
21413         Toolkit C bug.
21414
21415 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
21416
21417         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
21418         (func_ln_if_changed) Remove forcibly for no error message
21419         in case file does not exist.
21420
21421 2005-04-19  Simon Josefsson  <jas@extundo.com>
21422
21423         * gnulib-tool (Options): Make --symlink mean --symbolic.
21424
21425 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
21426
21427         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
21428
21429 2005-04-16  Simon Josefsson  <jas@extundo.com>
21430
21431         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
21432
21433 2005-04-15  Simon Josefsson  <jas@extundo.com>
21434
21435         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
21436
21437 2005-04-15  Simon Josefsson  <jas@extundo.com>
21438
21439         * gnulib-tool: Rename --symlink to --symbolic.
21440
21441 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
21442
21443         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
21444         symbolic links to files instead of copying/moving.  Add --aux-dir,
21445         specifying directory relative --dir where auxiliary build tools
21446         are placed.
21447
21448 2005-04-14  Bruno Haible  <bruno@clisp.org>
21449
21450         * modules/allocsa (License): Change to LGPL.
21451         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
21452
21453 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
21454
21455         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
21456         that "UTC +1 second" continues to work.  Problem reported
21457         by Dmitry V. Levin.
21458         (relunit_snumber): New rule.
21459         (relunit): Use it.
21460
21461 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
21462
21463         * lib/getdate.y (universal_time_zone_table): New constant.
21464         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
21465         universal_time_zone_table.
21466         (lookup_zone): Prefer universal_time_zone_table to
21467         local_time_zone_table, so that "GMT" time stamps are allowed in
21468         London during the summer.  Problem reported by Ian Abbott.
21469
21470 2005-04-12  Jim Meyering  <jim@meyering.net>
21471
21472         * lib/human.c (humblock): Set *options even when returning due to
21473         xstrtoumax conversion failure.  Thanks to a used-uninitialized
21474         warning from gcc-4.
21475
21476 2005-04-09  Jim Meyering  <jim@meyering.net>
21477
21478         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
21479         -Wuninitialized: initialize tm0.tm_year.
21480
21481 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
21482
21483         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
21484         count, since there's no maximum.  All uses changed.
21485         Add member dsts_seen.
21486         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
21487         not being INT_MAX.
21488         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
21489         Use pc_rels_seen to decide whther a date is absolute.
21490
21491         * lib/getdate.y (number): Don't overwrite year.
21492         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
21493         check.
21494
21495 2005-04-02  Simon Josefsson  <jas@extundo.com>
21496
21497         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
21498         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
21499
21500 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
21501
21502         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
21503         where no absolute path name can be longer than PATH_MAX.
21504
21505 2005-03-27  Jim Meyering  <jim@meyering.net>
21506
21507         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
21508
21509 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
21510
21511         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
21512         "one's complement" -> "ones' complement" in comment, as per Knuth.
21513         "value of type" -> "type or expression" in comment.
21514         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
21515
21516 2005-03-26  Jim Meyering  <jim@meyering.net>
21517
21518         Comment nits.
21519         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
21520         Correct typos: s/or/of/.
21521
21522 2005-03-26  Jim Meyering  <jim@meyering.net>
21523
21524         * modules/check-include-files: Move to ../ and rename to...
21525         * check-module: ...this.
21526
21527 2005-03-25  Jim Meyering  <jim@meyering.net>
21528
21529         * modules/xvasprintf (Files): Add xalloc.h.
21530
21531 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
21532
21533         * modules/gettext (Files): config/config.rpath ->
21534         build-aux/config.rpath
21535         * modules/iconv (Files): Likewise.
21536         Problem reported by Oskar Liljeblad.
21537
21538 2005-03-23  Jim Meyering  <jim@meyering.net>
21539
21540         * modules/check-include-files: New script to check for
21541         missing dependencies, multiple includes, etc.
21542
21543         * modules/c-strtold (Depends-on): Add xalloc.
21544         * modules/c-strtod (Depends-on): Add xalloc.
21545         * modules/hash (Depends-on): Add xalloc.
21546         (Files): Remove lib/xalloc.h.
21547
21548         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
21549         * modules/userspec (Files): Add lib/inttostr.h.
21550
21551 2005-03-23  Jim Meyering  <jim@meyering.net>
21552
21553         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
21554
21555 2005-03-22  Jim Meyering  <jim@meyering.net>
21556
21557         * modules/stat-macros: New module.
21558         * modules/canonicalize, modules/euidaccess, modules/file-type,
21559         * modules/filemode, modules/lchown, modules/makepath,
21560         * modules/rmdir, modules/stat: Depend on new stat-macros module
21561         rather than listing lib/stat-macros.h manually.
21562         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
21563
21564 2005-03-22  Jim Meyering  <jim@meyering.net>
21565
21566         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
21567
21568 2005-03-22  Bruno Haible  <bruno@clisp.org>
21569
21570         * config/srclist.txt: Replace target directory 'config' with
21571         'build-aux'.
21572         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
21573         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
21574         ../build-aux/.
21575
21576 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
21577
21578         * modules/chdir-long (Depends-on): Add mempcpy.
21579
21580         * modules/acl, modules/backupfile, modules/c-strtod,
21581         modules/c-strtold, modules/canon-host, modules/canonicalize,
21582         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
21583         modules/exclude, modules/exitfail, modules/file-type,
21584         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
21585         modules/getdate, modules/getline, modules/getpagesize,
21586         modules/getpass, modules/getugroups, modules/group-member,
21587         modules/hard-locale, modules/hash, modules/human, modules/idcache,
21588         modules/inttostr, modules/long-options, modules/makepath,
21589         modules/md5, modules/memcasecmp, modules/memcoll,
21590         modules/modechange, modules/mountlist, modules/path-concat,
21591         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
21592         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
21593         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
21594         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
21595         modules/strftime, modules/strndup, modules/strverscmp,
21596         modules/timespec, modules/unlocked-io, modules/userspec,
21597         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
21598         modules/yesno:
21599         Remove lib_SOURCES line from Makefile.am section, as this is now
21600         done automatically by the corresponding Autoconf macro.
21601
21602 2005-03-21  Jim Meyering  <jim@meyering.net>
21603
21604         Changes imported from coreutils.
21605
21606         * lib/cycle-check.c: Don't include xalloc.h.
21607
21608         * lib/path-concat.c: Don't include assert.h.
21609         (path_concat): Remove assertion that would have triggered
21610         for ABASE starting with more than one slash.
21611         Reported by Andreas Schwab.
21612
21613         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
21614         properly when ABASE is an absolute file name.
21615         Correct the description of this function.
21616         Include <assert.h>.
21617         Add an assertion and a test driver.
21618         This fixes a bug introduced on 2004-07-02.
21619         Andreas Schwab reported the resulting failure of cp --parents:
21620         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
21621
21622 2005-03-21  Jim Meyering  <jim@meyering.net>
21623
21624         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
21625         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
21626
21627 2005-03-21  Jim Meyering  <jim@meyering.net>
21628         and  Paul Eggert  <eggert@cs.ucla.edu>
21629
21630         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
21631         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
21632         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
21633         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
21634         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
21635         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
21636         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
21637         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
21638         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
21639         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
21640         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
21641         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
21642         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
21643         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
21644         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
21645         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
21646         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
21647         for these modules.
21648
21649 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
21650
21651         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
21652         (which shouldn't happen), generate nothing instead of returning 0
21653         immediately, so that nstrftime (NULL, ...) doesn't return 0.
21654
21655 2005-03-16  Bruno Haible  <bruno@clisp.org>
21656
21657         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
21658         HAVE_LONGLONG_64BIT.
21659
21660 2005-03-16  Bruno Haible  <bruno@clisp.org>
21661
21662         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
21663         HAVE_LONGLONG_64BIT.
21664
21665 2005-03-16  Bruno Haible  <bruno@clisp.org>
21666
21667         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
21668         HAVE_LONGLONG_64BIT.
21669
21670 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
21671
21672         * lib/strftime.c (my_strftime): Prepend space to format so that we can
21673         reliably distinguish strftime failure from empty output on POSIX
21674         hosts.
21675
21676 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
21677
21678         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
21679         (iconv_string): Don't guess a size-zero buffer, as that might cause
21680         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
21681         result would be 'too large', where 'too large' is (heuristically)
21682         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
21683         overflow concerns.  This will prevent some unwanted malloc failures
21684         when the inputs are very large.
21685
21686 2005-03-15  Karl Berry  <karl@gnu.org>
21687
21688         * config/srclist.txt (config.rpath): from gettext.
21689         * config/config.rpath: update.
21690
21691 2005-03-15  Bruno Haible  <bruno@clisp.org>
21692
21693         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
21694         to 'negate'.
21695
21696         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
21697         variable.
21698
21699         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
21700         results.
21701
21702 2005-03-14  Simon Josefsson  <jas@extundo.com>
21703
21704         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
21705         <fx@gnu.org>.
21706
21707 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
21708
21709         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
21710         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
21711         intprops.h.
21712         * lib/strtol.c: Likewise.
21713
21714 2005-03-14  Jim Meyering  <jim@meyering.net>
21715
21716         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
21717         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
21718         to be nonzero so that we (and caller) can detect the difference
21719         between a valid zero-length expansion and an error return, even
21720         when the underlying strftime fails before writing anything into
21721         that location.
21722
21723 2005-03-14  Bruno Haible  <bruno@clisp.org>
21724
21725         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
21726         Update from GNU gettext 0.14.3.
21727
21728 2005-03-10  Jim Meyering  <jim@meyering.net>
21729
21730         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
21731
21732 2005-03-10  Jim Meyering  <jim@meyering.net>
21733
21734         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
21735         so that this module works on systems without fchdir.
21736
21737 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
21738
21739         Factor int-properties macros into a single file, except for
21740         glibc-related files.
21741         * lib/intprops.h: New file.
21742         * lib/getloadavg.c: Include it instead of limits.h.
21743         (INT_STRLEN_BOUND): Remove.
21744         * lib/human.c: Include intprops.h.
21745         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
21746         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
21747         302/1000.
21748         * lib/inttostr.h: Include intprops.h instead of limits.h.
21749         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
21750         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
21751         for consistency with intprops.h.
21752         (time_t_is_integer, twos_complement_arithmetic): Use them.
21753         * lib/sig2str.h: Include <signal.h>, intprops.h.
21754         (INT_STRLEN_BOUND): Remove.
21755         * lib/strftime.c (TYPE_SIGNED): Remove.
21756         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
21757         * lib/strtol.c: Adjust comments to match intprops.h.
21758         * lib/userspec.c: Include intprops.h.
21759         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
21760         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
21761         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
21762         instead of rolling our own expressions.
21763         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
21764
21765         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
21766         instead of int.
21767         (my_strftime): Do not mishandle years close to INT_MAX, by doing
21768         the right thing even if adding 1900 would overflow.  Similarly
21769         for tm_mon + 1 and tm_yday + 1.
21770         Make %Y always equivalent to %C%y, and similarly for %G and %g.
21771         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
21772         (DO_SIGNED_NUMBER): New macro.
21773         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
21774
21775 2005-03-07  Bruno Haible  <bruno@clisp.org>
21776
21777         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
21778
21779 2005-03-07  Bruno Haible  <bruno@clisp.org>
21780
21781         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
21782
21783 2005-03-04  Derek R. Price  <derek@ximbiot.com>
21784
21785         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
21786         (func_import): Only replace files via --import when they have actually
21787         changed.
21788
21789 2005-03-03  Derek R. Price  <derek@ximbiot.com>
21790
21791         * m4/mmap-anon.m4: New file.
21792         * m4/pagealign_alloc.m4: New file.
21793
21794 2005-03-03  Derek R. Price  <derek@ximbiot.com>
21795             Bruno Haible  <bruno@clisp.org>
21796
21797         * modules/pagealign_alloc: New file.
21798         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
21799
21800 2005-03-03  Derek R. Price  <derek@ximbiot.com>
21801             Bruno Haible  <bruno@clisp.org>
21802
21803         * lib/pagealign_alloc.h: New file.
21804         * lib/pagealign_alloc.c: New file.
21805
21806 2005-03-03  Bruno Haible  <bruno@clisp.org>
21807
21808         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
21809         Use an all-permissive copyright notice, recommended by RMS.
21810
21811 2005-03-02  Bruno Haible  <bruno@clisp.org>
21812
21813         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
21814         of AIX, the replacement has to be done only after <string.h> is
21815         included, therefore not in config.h. stpncpy.h does the replacement,
21816         and stpncpy.c uses it.
21817
21818 2005-03-02  Bruno Haible  <bruno@clisp.org>
21819
21820         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
21821         stpncpy.c uses it.
21822
21823 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
21824
21825         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
21826         The workaround isn't strictly needed for POSIX conformance, and
21827         it's too much of a pain to configure and maintain.  We'll ask
21828         people to fix their kernels instead.
21829         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
21830         (NANOSLEEP_BUG_WORKAROUND): Remove.
21831         (xnanosleep): Remove the workaround.
21832
21833 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
21834
21835         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
21836         Reported by Derek Price.
21837         (Include): Add "timespec.h".
21838
21839         * modules/xnanosleep (Depends-on): Remove gethrxtime.
21840
21841 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
21842
21843         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
21844         to detect nanosleep bug.
21845
21846 2005-03-01  Bruno Haible  <bruno@clisp.org>
21847
21848         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
21849
21850 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
21851
21852         * modules/gethrxtime: New file.
21853         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
21854         (Depends-on): Add gethrxtime.
21855         (configure.ac): Add gl_XNANOSLEEP.
21856         (Makefile.am): Remove lib_SOURCES line.
21857
21858 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
21859
21860         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
21861         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
21862
21863 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
21864
21865         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
21866         * lib/timespec.h (gettime): Return void, since it always
21867         succeeds now.  All uses changed.
21868         * lib/gettime.c (gettime) Likewise.
21869         [HAVE_NANOTIME]: Prefer nanotime.
21870         Assume gettimeofday succeeds, as POSIX requires.
21871         Assime time () succeeds, since other code already does.
21872         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
21873         (timespec_subtract): Remove.
21874         (NANOSLEEP_BUG_WORKAROUND): New constant.
21875         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
21876         things considerably.  Use it only on GNU/Linux hosts, since the
21877         workaround shouldn't be needed elsewhere.
21878
21879 2005-02-24  Bruno Haible  <bruno@clisp.org>
21880
21881         * modules/gettext (Files): Add m4/glibc2.m4.
21882
21883 2005-02-24  Bruno Haible  <bruno@clisp.org>
21884
21885         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
21886         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
21887         * m4/progtest.m4:
21888         Update from GNU gettext 0.14.2.
21889         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
21890
21891 2005-02-24  Bruno Haible  <bruno@clisp.org>
21892
21893         * lib/localcharset.c: Update from GNU gettext 0.14.2.
21894         * lib/config.charset: Update from GNU gettext 0.14.2.
21895
21896 2005-02-24  Bruno Haible  <bruno@clisp.org>
21897
21898         * lib/gettext.h: Update from GNU gettext 0.14.2.
21899
21900 2005-02-23  Simon Josefsson  <jas@extundo.com>
21901
21902         * m4/iconvme.m4: New file.
21903
21904 2005-02-23  Jim Meyering  <jim@meyering.net>
21905
21906         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
21907         change.
21908         Thanks to Bruno Haible for catching it.
21909
21910 2005-02-22  Simon Josefsson  <jas@extundo.com>
21911
21912         * modules/iconvme: New file.
21913
21914         * MODULES.html.sh: Add iconvme.
21915
21916 2005-02-22  Simon Josefsson  <jas@extundo.com>
21917
21918         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
21919
21920 2005-02-22  Simon Josefsson  <jas@extundo.com>
21921
21922         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
21923
21924 2005-02-22  Jim Meyering  <jim@meyering.net>
21925
21926         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
21927         s/ifndef/ifdef/.
21928
21929 2005-02-20  Neil Conway  <neilc@samurai.com>
21930
21931         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
21932         returned by OSX/Darwin if the specified buffer is not large
21933         enough for the hostname.
21934
21935 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
21936
21937         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
21938         pass it to _help, otherwise the latter coredumps trying to
21939         dereference state.root_argp.
21940
21941 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
21942
21943         * modules/chdir-long (Depends-on): Add memrchr.
21944         * modules/memrchr (Files): Add lib/memrchr.h.
21945         (Include): "memrchr.h".
21946
21947 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
21948
21949         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
21950
21951 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
21952
21953         * lib/memrchr.h: New file.
21954         * lib/chdir-long.c: Include it.
21955         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
21956         Don't bother including stddef.h.
21957
21958 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
21959
21960         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
21961         inclusion.
21962         Include <sys/types.h>, for dev_t.
21963         (ME_DUMMY, ME_REMOTE): Move from here....
21964         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
21965         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
21966         Dmitry V. Levin.
21967         Include mountlist.h first, to test the interface.
21968
21969 2005-01-29  Bruno Haible  <bruno@clisp.org>
21970
21971         * lib/progname.c (program_name): Initialize.
21972         Needed when linking statically on MacOS X.
21973
21974 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
21975
21976         Sync from coreutils.
21977         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
21978         (Depends-on): Add c-strtod.
21979         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
21980
21981 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
21982
21983         Sync from coreutils.
21984         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
21985
21986         Remove files that are specific to coreutils.
21987         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
21988
21989 2005-01-28  Bruno Haible  <bruno@clisp.org>
21990
21991         * modules/javacomp: New file.
21992         * MODULES.html.sh (Java): Add javacomp.
21993
21994 2005-01-28  Bruno Haible  <bruno@clisp.org>
21995
21996         * m4/javacomp.m4: New file, from GNU gettext.
21997
21998 2005-01-28  Bruno Haible  <bruno@clisp.org>
21999
22000         * lib/javacomp.sh.in: New file, from GNU gettext.
22001         * lib/javacomp.h: New file, from GNU gettext.
22002         * lib/javacomp.c: New file, from GNU gettext.
22003
22004 2005-01-26  Simon Josefsson  <jas@extundo.com>
22005
22006         * lib/gai_strerror.c: Use GPL in header.
22007
22008 2005-01-26  Bruno Haible  <bruno@clisp.org>
22009
22010         * modules/javaexec: New file.
22011         * MODULES.html.sh (Java): Add javaexec.
22012
22013 2005-01-26  Bruno Haible  <bruno@clisp.org>
22014
22015         * m4/javaexec.m4: New file, from GNU gettext.
22016
22017 2005-01-26  Bruno Haible  <bruno@clisp.org>
22018
22019         * lib/javaexec.sh.in: New file, from GNU gettext.
22020         * lib/javaexec.h: New file, from GNU gettext.
22021         * lib/javaexec.c: New file, from GNU gettext.
22022
22023 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
22024
22025         * modules/lchown (Depends-on): Remove lchown.h
22026
22027 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
22028
22029         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
22030         must be defined if the header file was not found, in order
22031         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
22032
22033 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
22034
22035         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
22036         initializers for struct pentry_state.
22037         (__argp_error): Check return value of __asprintf
22038         (__argp_failure): Translate error message
22039
22040         * lib/argp-parse.c: Removed braces around the expansion of N_()
22041
22042 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
22043
22044         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
22045         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
22046         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
22047         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
22048         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
22049         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
22050         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
22051         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
22052         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
22053         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
22054         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
22055         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
22056         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
22057         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
22058         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
22059         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
22060         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
22061         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
22062         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
22063         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
22064         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
22065         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
22066         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
22067         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
22068         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
22069         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
22070         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
22071         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
22072         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
22073         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
22074         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
22075         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
22076         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
22077         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
22078         xstrtol.m4, xstrtoumax.m4, yesno.m4:
22079         Use an all-permissive copyright notice, recommended by RMS.
22080
22081 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
22082
22083         * modules/chdir-long (Depends-on): Remove mempcpy.
22084
22085 2005-01-21  Jim Meyering  <jim@meyering.net>
22086
22087         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
22088         same value as for Solaris 9.
22089
22090         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
22091         component length.  This included changing the parameter to be
22092         of type `char *' rather than `char const *'.
22093         * lib/chdir-long.h (chdir_long): Update prototype.
22094
22095         * lib/openat.c (fdopendir, fstatat): New functions.
22096         * lib/openat.h: Include headers required for use of DIR and struct
22097         stat.
22098         [AT_SYMLINK_NOFOLLOW]: Define.
22099         (fdopendir, fstatat): Add prototypes.
22100
22101 2005-01-21  Bruno Haible  <bruno@clisp.org>
22102
22103         * modules/classpath: New file.
22104         * MODULES.html.sh (Java): Add classpath.
22105
22106 2005-01-21  Bruno Haible  <bruno@clisp.org>
22107
22108         * lib/classpath.h: New file, from GNU gettext.
22109         * lib/classpath.c: New file, from GNU gettext.
22110
22111 2005-01-20  Simon Josefsson  <jas@extundo.com>
22112
22113         * modules/version-etc-fsf: New file.
22114
22115 2005-01-20  Simon Josefsson  <jas@extundo.com>
22116
22117         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
22118         * lib/version-etc.c: Remove version_etc_copyright.
22119         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
22120         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
22121
22122 2005-01-20  Simon Josefsson  <jas@extundo.com>
22123
22124         * lib/base64.h (isbase64): Add.
22125
22126         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
22127         using a unsigned prototype, don't inline.
22128         (base64_decode): Use it.
22129
22130 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
22131
22132         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
22133         it.
22134
22135 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
22136
22137         * lib/save-cwd.c (save_cwd): Remove code to support the case
22138         where fchdir is missing or flaky.
22139
22140 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
22141
22142         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
22143
22144 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
22145
22146         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
22147         AC_LIBSOURCES now does this.
22148         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
22149         with new ullong_max module.
22150
22151 2005-01-19  Bruno Haible  <bruno@clisp.org>
22152
22153         * modules/sh-quote: New file.
22154         * MODULES.html.sh (Executing programs): Add sh-quote.
22155
22156 2005-01-19  Bruno Haible  <bruno@clisp.org>
22157
22158         * lib/sh-quote.h: New file, from GNU gettext.
22159         * lib/sh-quote.c: New file, from GNU gettext.
22160
22161 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
22162
22163         Merge from coreutils.
22164         * m4/ullong_max.m4: New file.
22165         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
22166         (gl_MACROS): Assume localeconv exists.
22167
22168 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
22169
22170         Merge changes from coreutils, as described below in several
22171         changelogs dated today.
22172
22173         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
22174         (O_DIRECTORY): Remove; not needed here, since "." must be
22175         a directory.  All uses removed.
22176         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
22177         universal on Suns, and we also need to test for IRIX.
22178         Revamp code to use 'if' rather than '#if'.
22179         Avoid unnecessary comparison of cwd->desc to 0.
22180
22181         * lib/utimens.c (futimens): Robustify the previous patch, by checking
22182         for known valid error numbers rather than observed invalid ones.
22183
22184 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
22185
22186         * modules/ullong_max: New file.
22187
22188         * modules/chdir-long, modules/openat: New files.
22189         * modules/save-cwd (Depends-on): Depend on chdir-long.
22190         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
22191
22192 2005-01-18  Jim Meyering  <jim@meyering.net>
22193
22194         Merge from coreutils.
22195         * m4/chdir-long.m4, m4/openat.m4: New files.
22196         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
22197         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
22198         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
22199         is sane and DOES follow symlinks.  Besides, testing 20 different
22200         systems found no broken chown implementations.
22201         Prompted by a change in rsync's copy of this macro.
22202         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
22203
22204         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
22205
22206         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
22207         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
22208         NULL-means-set-to-current-time semantics.
22209         Remove temporary file immediately, rather than waiting
22210         for configure's at-exit trap code to do it.
22211
22212 2005-01-18  Jim Meyering  <jim@meyering.net>
22213
22214         * lib/version-etc.c (version_etc_copyright): Update copyright date.
22215
22216         * lib/utimens.c (futimens): Account for the fact that futimes
22217         can also fail with errno == ENOSYS or errno == ENOENT.
22218         Patch from Dmitry V. Levin.
22219
22220         Change the name of the robust chdir function from chdir to chdir_long.
22221         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
22222         (restore_cwd): Use chdir_long, not chdir.
22223         * lib/chdir-long.c: Renamed from chdir.c.
22224         * lib/chdir-long.h: Renamed from chdir.h.
22225         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
22226         Hurd.
22227
22228 2005-01-18  Bruno Haible  <bruno@clisp.org>
22229
22230         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
22231         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
22232         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
22233         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
22234         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
22235         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
22236         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
22237         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
22238         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
22239         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
22240         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
22241         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
22242         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
22243         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
22244         Use an all-permissive copyright notice, recommended by RMS.
22245
22246 2005-01-18  Bob Proulx  <bob@proulx.com>
22247
22248         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
22249         simplify offsetof() macro construct to avoid compile failure with
22250         native HP-UX 11.0 ANSI C compiler.
22251
22252 2005-01-17  Bruno Haible  <bruno@clisp.org>
22253
22254         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
22255         redundant because stpncpy.m4 takes care of it.
22256
22257 2005-01-17  Bruno Haible  <bruno@clisp.org>
22258
22259         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
22260
22261 2005-01-17  Bruno Haible  <bruno@clisp.org>
22262
22263         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
22264         used.
22265
22266 2005-01-17  Bruno Haible  <bruno@clisp.org>
22267
22268         * lib/fwriteerror.h (fwriteerror): Change specification to include
22269         fclose.
22270         * lib/fwriteerror.c: Include <stdbool.h>.
22271         (fwriteerror): At the end, close the file stream. Record whether
22272         stdout was already closed.
22273
22274 2005-01-17  Bruno Haible  <bruno@clisp.org>
22275
22276         * lib/execute.c (environ): Declare if needed.
22277         * lib/pipe.c (environ): Likewise.
22278         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
22279
22280 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
22281
22282         * modules/argp: Depend on vsnprintf
22283
22284 2005-01-10  Jim Meyering  <jim@meyering.net>
22285
22286         * modules/closeout (Depends-on): Add atexit.
22287
22288 2005-01-06  Bruno Haible  <bruno@clisp.org>
22289
22290         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
22291
22292 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
22293
22294         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
22295         definitions to be after all include files, to avoid collisions.
22296         Problem reported by Bob Proulx.
22297
22298 2005-01-04  Jim Meyering  <jim@meyering.net>
22299
22300         Changes imported from coreutils.
22301         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
22302         as the mkstemp template, use a temporary directory and an
22303         8.3-friendly template to avoid trouble on systems like DJGPP.
22304         Reported by Juan M. Guerrero via Stepan Kasal.
22305         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
22306         close. Remove the temporary directory right away, rather than waiting
22307         for configure's at-exit trap code to do it.
22308         Suggestion from Stepan Kasal.
22309
22310 2005-01-01  Simon Josefsson  <jas@extundo.com>
22311
22312         * gnulib-tool: Print #include directives when --import'ing.
22313
22314 2004-12-28  Simon Josefsson  <jas@extundo.com>
22315
22316         * tests/test-base64.c: Include required header files.  Remove
22317         unused variables.
22318
22319 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
22320
22321         * modules/error (Depends-on): Remove gettext.
22322
22323 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
22324
22325         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
22326         not needed.  This removes a dependency on the gettext module.
22327         [defined _LIBC]: Do not include <libintl.h>; not needed.
22328
22329 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
22330
22331         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
22332         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
22333
22334 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
22335
22336         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
22337         HAVE_DECL_STRTOLD.
22338
22339 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
22340
22341         * modules/getdate (Depends-on): Remove alloca-opt.
22342
22343 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
22344
22345         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
22346
22347 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
22348
22349         * lib/argp-parse.c: Include <stddef.h>.
22350         (alignof, alignto): New macros.
22351         (parser_init): Don't assume that void * is aligned sufficiently
22352         for struct option.
22353
22354         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
22355         need to extend the stack.
22356         (YYINITDEPTH): New macro, so that the initial stack isn't overly
22357         large.
22358
22359 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
22360
22361         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
22362
22363 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
22364
22365         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
22366         (2004-10-24) change.  Apparently this was a false alarm.
22367
22368         * modules/getdate: Depend on alloca-opt, not alloca.
22369
22370 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
22371
22372         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
22373         Remove now-obsolete comment about AIX.
22374         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
22375         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
22376         (YYMAXDEPTH): New macro.
22377
22378 2004-12-18  Simon Josefsson  <jas@extundo.com>
22379
22380         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
22381
22382 2004-12-18  Bruno Haible  <bruno@clisp.org>
22383
22384         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
22385
22386 2004-12-18  Bruno Haible  <bruno@clisp.org>
22387
22388         * lib/fatal-signal.c (fatal_signals): Make non-const.
22389         (init_fatal_signals): New function.
22390         (uninstall_handlers, install_handlers): Ignore signals that were set to
22391         SIG_IGN.
22392         (at_fatal_signal): Call init_fatal_signals.
22393         (init_fatal_signal_set): Likewise. Ignore signals that were set to
22394         SIG_IGN.
22395         Reported by Paul Eggert.
22396
22397 2004-12-18  Bruno Haible  <bruno@clisp.org>
22398
22399         * doc/alloca.texi: New file.
22400         * doc/alloca-opt.texi: New file.
22401
22402 2004-12-17  Jim Meyering  <jim@meyering.net>
22403
22404         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
22405         Otherwise, install-sh could exit with improper exit status when
22406         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
22407
22408 2004-12-16  Simon Josefsson  <jas@extundo.com>
22409
22410         * tests/test-base64.c: Add license.
22411
22412 2004-12-15  Stepan Kasal  <address@hidden>
22413
22414         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
22415
22416 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
22417
22418         * modules/getcwd (Files): Add m4/d-ino.m4.
22419         Suggested by Mark D. Baushke.
22420
22421 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
22422
22423         * lib/getdate.y (textint): New member "negative".
22424         (time_zone_hhmm): New function.
22425         Expect 14 shift-reduce conflicts, not 13.
22426         (o_colon_minutes): New rule.
22427         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
22428         (yylex): Set the "negative" member of signed numbers.
22429
22430 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
22431
22432         * doc/getdate.texi (Time of day items, Time zone items):
22433         Describe new formats +00:00, UTC+00:00.
22434
22435 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
22436
22437         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
22438         spurious "-l"s.  Problem reported by Stepan Kasal.
22439
22440 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
22441
22442         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
22443         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
22444
22445 2004-12-04  Simon Josefsson  <jas@extundo.com>
22446
22447         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
22448         Vandoorselaere <yoann@prelude-ids.org>.
22449
22450 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
22451
22452         Changes imported from coreutils.
22453         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
22454         exist.
22455         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
22456
22457 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
22458
22459         Changes imported from coreutils.
22460         * lib/hard-locale.c: Assume <locale.h> exists.
22461         Include "strdup.h".
22462         (GLIBC_VERSION): New macro.
22463         (hard_locale): Assume setlocale exists.
22464         Rewrite to avoid #ifdef.
22465         Use strdup rather than malloc + strcpy.
22466         * lib/human.c: Assume <locale.h> exists.
22467         (human_readable): Assume localeconv exists.
22468
22469 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
22470
22471         * modules/hard-locale (Depends-on): Add strdup.
22472
22473 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
22474
22475         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
22476         convert T2, not T.  (Imported from libc.)
22477
22478 2004-11-30  Simon Josefsson  <jas@extundo.com>
22479
22480         * modules/restrict (License): Change to LGPL.
22481
22482 2004-11-30  Simon Josefsson  <jas@extundo.com>
22483
22484         * m4/restrict.m4: Add copyright and copying conditions.
22485
22486 2004-11-30  Simon Josefsson  <jas@extundo.com>
22487
22488         * m4/base64.m4: New file.
22489
22490 2004-11-30  Simon Josefsson  <jas@extundo.com>
22491
22492         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
22493         base64.
22494
22495         * tests/test-base64.c: New file.
22496
22497         * modules/base64: New file.
22498
22499 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
22500
22501         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
22502         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
22503
22504         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
22505
22506 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
22507
22508         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
22509         (__getcwd.c): Don't restore errno; glibc doesn't.
22510         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
22511         first, falling back to our code only if its results look suspicious.
22512         Ensure that the resulting buffer is only as large as necessary.
22513
22514         * lib/readutmp.c: Include readutmp.h first.
22515         Include <errno.h>, since readutmp.h no longer does that.
22516         * lib/readutmp.h: Don't include <errno.h>,
22517         <sys/param.h>, <time.h>; not needed to establish interface.
22518         (errno): Remove decl.
22519         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
22520         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
22521         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
22522
22523 2004-11-28  Simon Josefsson  <jas@extundo.com>
22524
22525         * lib/base64.h, base64.c: New file.
22526
22527 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
22528
22529         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
22530
22531 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
22532
22533         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
22534         (Depends-on): Remove pathmax, same.  Add mempcpy.
22535         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
22536         (Makefile.am): Append getcwd.h to lib_SOURCES.
22537         (Include): Add getcwd.h.
22538         (Maintainer): Change from Jim Meyering to "all, glibc",
22539         since getdate now uses intended-for-glibc code.
22540         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
22541         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
22542
22543 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
22544
22545         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
22546         HP's ANSI C compiler.
22547         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
22548         Declaring int functions causes warnings on some modern systems and
22549         shouldn't be needed to compile on ancient ones.
22550         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
22551         defined.
22552
22553         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
22554         with the following changes.
22555         (__set_errno): Parenthesize properly.
22556         Include <stdbool.h>.
22557         (MIN, MAX, MATCHING_INO): New macros.
22558         (__getcwd): Define with prototype, not K&R form.
22559         Use heuristics to allocate default buffer on stack if possible.
22560         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
22561         behavior, and to avoid the PATH_MAX limit when computing
22562         ../../../../...
22563         Use MATCHING_INO to compare inode number to file.
22564         Check for arithmetic overflow in size calculations.
22565         Fix bug in reallocation of dot array that caused getcwd to fail
22566         on directories nested deeper than 75.
22567         Be more careful about saving errno on error.
22568         Do not use realloc; use only free+malloc, as this is a bit
22569         more flexible and avoids a needless copy operation.
22570         Do not inspect st_dev and st_ino for symbolic links; POSIX
22571         doesn't specify the latter.
22572         Check for closedir errors.
22573         Avoid needless casts.
22574         Use "#ifdef weak_alias" around weak_alias, to be like other
22575         glibc code.
22576         The following changes to getcwd.c have effect only when used in
22577         gnulib; they have no effect inside glibc proper.
22578         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
22579         as alloca isn't used.
22580         (alloca, __alloca): Likewise.
22581         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
22582         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
22583         unconditionally, as gnulib assumes C89 or better.
22584         Do not include <sys/param.h>.
22585         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
22586         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
22587         better.
22588         (NULL) [!defined NULL]: Remove; we assume C89 or better.
22589         Include <dirent.h> in a way that is compatible with modern Autoconf.
22590         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
22591         New macros, if not already defined.
22592         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
22593         Use "_LIBC", not "defined _LIBC", for consistency.
22594         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
22595         a mempcpy module.
22596         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
22597         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
22598         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
22599         credit only to Jim Meyering and adjust the copyright dates.
22600         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
22601         <stdlib.h>, <unistd.h>, "pathmax.h".
22602         Instead, include "xgetcwd.h" (first) and "getcwd.h".
22603         (INITIAL_BUFFER_SIZE): Remove.
22604         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
22605
22606 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
22607
22608         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
22609         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
22610         Use the _ONCE methods, for efficiency.
22611         Check for fcntl.h.  In test program, include <errno.h>
22612         and <fcntl.h> if available.  Remove old K&R cruft from
22613         test program.  Check for common errors in GNU/Linux,
22614         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
22615         don't do AC_LIBOBJ, as that's getcwd.m4's job.
22616         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
22617         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
22618         name accordingly.
22619         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
22620         accommodate new getcwd.c.
22621         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
22622         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
22623         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
22624         that's all we need now.
22625
22626 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
22627
22628         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
22629         argp-parse.c depends on getopt internals, that means we should
22630         always use our getopt, to be on the safe side.
22631         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
22632         order not to spoil the result of an eventual previous invocation
22633         of gl_GETOPT_SUBSTITUTE.
22634
22635 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
22636
22637         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
22638         redefinition warnings. To avoid them, include the defines
22639         in `#if !defined __need_getopt ... #endif'. The only place
22640         where __getopt_argv_const is used is in definitions
22641         of getopt_long and getopt_long_only below, which are as well
22642         protected by `#ifndef __need_getopt'.
22643         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
22644         __need_getopt after including <stdio.h> and <unistd.h> These
22645         headers might have defined it.
22646
22647 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
22648
22649         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
22650
22651 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
22652
22653         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
22654         (futimens): New function, which uses futimes if available.
22655         (futimens, utimens): Support timespec==NULL, with same semantics
22656         as utime and utimens.
22657         * lib/utimens.h (futimens): New decl.
22658
22659 2004-11-23  Jim Meyering  <jim@meyering.net>
22660
22661         * lib/getopt_.h: Remove trailing blanks.
22662
22663 2004-11-23  Jim Meyering  <jim@meyering.net>
22664
22665         * lib/__fpending.c: Add comment.
22666
22667 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
22668
22669         * modules/canonicalize (Depends-on): Add xreadlink.
22670         Problem reported by James Youngman.
22671
22672 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
22673
22674         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
22675         New macros.
22676         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
22677         optopt): Use them instead of invoking ## directly; otherwise, the
22678         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
22679
22680 2004-11-19  Bruno Haible  <bruno@clisp.org>
22681
22682         * lib/strtok_r.c: Move comments from here...
22683         * lib/strtok_r.h: ... to here.
22684
22685 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
22686
22687         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
22688         implementations that mishandle size_t overflow.
22689
22690 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
22691
22692         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
22693         might fail.  Problem reported by Yoann Vandoorselaere.
22694         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
22695         implementations that mishandle size_t overflow.
22696
22697 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
22698
22699         * modules/canon-host (Depends-on): Add strdup.
22700
22701 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
22702
22703         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
22704
22705 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
22706
22707         * lib/canon-host.c: Include "strdup.h".
22708         (canon_host): Use getaddrinfo if available, so that IPv6 works.
22709         Use strdup instead of malloc/strcpy to duplicate strings.
22710
22711         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
22712         (human_space_before_unit): New constant.
22713         * lib/human.c (human_readable): Support it.
22714
22715         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
22716         (xgetcwd): Set errno correctly when failing.
22717         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
22718         the failure is actually due to a PATH_MAX problem.
22719
22720         Further getopt changes to make it more likely that glibc will
22721         buy the changes back.
22722         * lib/getopt.c (POSIXLY_CORRECT): New constant.
22723         (getopt): Use it, so to preserve glibc semantic
22724         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
22725         when compiling for libc.
22726         * lib/getopt_.h (__getopt_argv_const): Bring it back.
22727         (getopt_long, getopt_long_only): Use it.
22728
22729         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
22730         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
22731         (getopt): Argv is now char * const *, as per standard.
22732         (_getopt_internal_r, _getopt_internal): Argv is now char **,
22733         not char *__getopt_argv_const *.
22734         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
22735         _getopt_long_only_r): Likewise.
22736         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
22737         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
22738         _getopt_long_r, _getopt_long_only_r): Likewise.
22739         * lib/getopt_.h (__getopt_argv_const): Remove.
22740         (getopt): Argv is now char * const *, as per standard.
22741
22742         * lib/getdate.y (tORDINAL): New token.
22743         (day, relunit): Allow it for relative times.
22744         (relative_time_table): Use tORDINAL for ordinals.
22745
22746 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
22747
22748         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
22749         Document that "second" isn't allowed as an ordinal number.
22750
22751 2004-11-16  Jim Meyering  <jim@meyering.net>
22752
22753         * modules/closeout (Depends-on): Add fpending.
22754
22755 2004-11-15  Jim Meyering  <jim@meyering.net>
22756
22757         * lib/closeout.c: Include "__fpending.h" once again.
22758         Include <stdbool.h>.
22759         (close_stdout): Don't fail just because stdout was closed initially,
22760         since some programs don't write to stdout in the normal course of
22761         operation (other than --version and --help), and we don't want this
22762         function to make e.g. `touch file >&-' fail.
22763         But do fail if it was closed and someone has tried to write to it.
22764         E.g., `printf foo >&-' must fail.
22765
22766 2004-11-13  Jim Meyering  <jim@meyering.net>
22767
22768         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
22769
22770 2004-11-12  Simon Josefsson  <jas@extundo.com>
22771
22772         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
22773         small doc fix is still pending.
22774
22775 2004-11-11  Simon Josefsson  <jas@extundo.com>
22776
22777         * modules/strtok_r: New file.
22778
22779         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22780         strtok_r.
22781
22782 2004-11-11  Simon Josefsson  <jas@extundo.com>
22783
22784         * m4/strtok_r.m4: New file.
22785
22786         * m4/getopt.m4: Replace opterr.
22787
22788 2004-11-11  Simon Josefsson  <jas@extundo.com>
22789
22790         * lib/strtok_r.h, strtok_r.c: New file.
22791
22792 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
22793
22794         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
22795         of replacing opterr, getopt, etc.  This should handle the
22796         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
22797
22798 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
22799
22800         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
22801         we can stop lying to compilers about the constness of argv when we
22802         are compiled outside glibc.
22803         (getopt, getopt_long, getopt_long_only): Use it.
22804         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
22805         _getopt_internal, getopt): Likewise.
22806         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
22807         _getopt_long_only_r): Likewise.
22808         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
22809         _getopt_long_r, _getopt_long_only_r): Likewise.
22810
22811         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
22812         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
22813         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
22814         the other external symbols.
22815         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
22816         declaration, since the above renaming now works around collisions.
22817
22818 2004-11-11  Jim Meyering  <jim@meyering.net>
22819
22820         * lib/linebreak.c: Remove trailing blanks.
22821         * lib/alloca_.h: Likewise.
22822         * lib/acosl.c: Likewise.
22823         * lib/euidaccess.c: Likewise.
22824         * lib/allocsa.h: Likewise.
22825
22826 2004-11-10  Simon Josefsson  <jas@extundo.com>
22827
22828         * m4/getaddrinfo.m4: New file.
22829
22830 2004-11-10  Simon Josefsson  <jas@extundo.com>
22831
22832         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
22833
22834 2004-11-10  Simon Josefsson  <jas@extundo.com>
22835
22836         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22837         getaddrinfo.
22838
22839         * modules/getaddrinfo: New file.
22840
22841 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
22842
22843         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
22844
22845 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
22846
22847         * lib/mktime.c (SHR): New macro, which is a portable
22848         substitute for >> that should work even on Crays.
22849         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
22850         Problem reported by Mark D. Baushke in
22851         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
22852         * lib/getdate.y (SHR): Likewise.
22853         (tm_diff): Use it.
22854         * lib/strftime.c (SHR): Likewise.
22855         (tm_diff): Use it.
22856         * lib/quotearg.c (struct quoting_options): Use unsigned int for
22857         quote_these_too, so that right shifts are well defined.  All uses
22858         changed.
22859
22860 2004-11-10  Jim Meyering  <jim@meyering.net>
22861
22862         Ensure that no close failure goes unreported.
22863         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
22864         return early when it seems there's nothing to flush.
22865         Don't include __fpending.h.
22866
22867 2004-11-10  Jim Meyering  <jim@meyering.net>
22868
22869         * modules/closeout (Depends-on): Remove fpending.
22870
22871 2004-11-10  Jim Meyering  <jim@meyering.net>
22872
22873         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
22874
22875 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
22876
22877         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
22878         gl_FUNC_STRFTIME.
22879         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
22880         and AC_REQUIRE when possible, to avoid duplicate checks.
22881         Check for <wchar.h>.
22882
22883 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
22884
22885         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
22886
22887 2004-11-09  Bruno Haible  <bruno@clisp.org>
22888
22889         * m4/sockpfaf.m4: New file.
22890
22891 2004-11-05  Bruno Haible  <bruno@clisp.org>
22892
22893         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
22894         Reported by Mark D. Baushke <mdb@cvshome.org>.
22895
22896 2004-11-04  Bruno Haible  <bruno@clisp.org>
22897
22898         2004-09-11  Bruno Haible  <bruno@clisp.org>
22899                 * allocsa.valgrind: New file.
22900         2004-02-06  Bruno Haible  <bruno@clisp.org>
22901                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
22902                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
22903                 Reported by Christopher Seip <chris.seip@hp.com>.
22904
22905 2004-11-04  Bruno Haible  <bruno@clisp.org>
22906
22907         * modules/allocsa (Files): Add lib/allocsa.valgrind.
22908         (Makefile.am): Distribute it.
22909
22910 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
22911
22912         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
22913         with errno == ERANGE if the buffer is too small.
22914         Problem reported by Mark D. Baushke.
22915
22916 2004-11-03  Albert Chin  <china@thewrittenword.com>
22917             Paul Eggert  <eggert@cs.ucla.edu>
22918
22919         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
22920         equivalent, substitute $ac_type for equivalent type rather than
22921         blindly using uint32_t *always* which won't work if uint32_t is not
22922         available.  Define _UINT32_T to work around typedef of uint32_t if
22923         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
22924         2.5.1.
22925
22926 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
22927
22928         * m4/jm-macros.m4: Sync from coreutils.
22929         (gl_MACROS): Check for mbrlen, for pathchk.
22930         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
22931
22932 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
22933
22934         * lib/xreadlink.c (MAXSIZE): New macro.
22935         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
22936         size does not exceed MAXSIZE.  Avoid cast.
22937         As suggested by Mark D. Baushke in
22938         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
22939         if readlink fails with buffer size just under MAXSIZE, try again
22940         with MAXSIZE.
22941
22942 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
22943
22944         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
22945
22946 2004-11-02  Derek R. Price  <derek@ximbiot.com>
22947         and  Paul Eggert  <eggert@cs.ucla.edu>
22948
22949         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
22950         (get_date): Overparenthesize to avoid GCC warning.
22951
22952 2004-11-02  Bruno Haible  <bruno@clisp.org>
22953
22954         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
22955         returns void.
22956
22957 2004-11-02  Bruno Haible  <bruno@clisp.org>
22958
22959         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
22960         function returns void.
22961
22962 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
22963
22964         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
22965         fflush_unlocked, flockfile, funlockfile, funlockfile,
22966         fputs_unlocked, putc_unlocked.
22967
22968 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
22969
22970         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
22971         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
22972         already declared.
22973
22974 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
22975
22976         * modules/getdate (Files): Add doc/getdate.texi.
22977         (Depends-on): Add setenv, xalloc.
22978
22979 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
22980
22981         * lib/getdate.y: Add support for TZ="foo" within a date string.
22982         Fix some bugs near time_t boundaries.  Reject dates with
22983         out-of-range components, e.g., "Sept 31".
22984         Include <stdlib.h>, "setenv.h", "xalloc.h".
22985         (ISDIGIT_LOCALE): Remove; unused.
22986         Note that the TZ and time functions used here are not reentrant.
22987         (mktime_ok, get_tz): New functions.
22988         (TZBUFSIZE): New constant.
22989         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
22990         This requires that we sometimes generate our own TZ="XXX..." setting.
22991
22992 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
22993
22994         * doc/getdate.texi: New file, from coreutils with modifications for
22995         the new TZ parsing.
22996
22997 2004-10-27  Derek R. Price  <derek@ximbiot.com>
22998
22999         * lib/mktime.c (not_equal_tm): Remove redundant check.
23000
23001 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
23002
23003         * modules/regex (lib_SOURCES): Add regex.c.
23004         Reported by James Youngman in
23005         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
23006
23007 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
23008
23009         * lib/getdate.y: Use Bison 1.875 features, and some minor
23010         code cleanups.  This change does not affect semantics.
23011         Don't include <stdlib.h>; no longer needed.
23012         Don't include unlocked-io.h; only the "#if TEST" code uses
23013         stdio, and performance isn't crucial there.
23014         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
23015         Bison 1.875 features as described below.
23016         All uses of "PC." replaced by "pc->".
23017         (YYSTYPE): Add a forward declaration.
23018         (yylex, yyerror): Use full prototypes in forward decls.
23019         Use "%pure-parser" rather than obsolescent "%pure_parser".
23020         Use %parse-param and %lex-param instead of obsolescent
23021         YYPARSE_PARAM and YYLEX_PARAM.
23022         (meridian_table, month_and_day_table, time_units_table,
23023         relative_time_table, time_zone_table, military_table,
23024         lookup_zone, lookup_word, get_date):
23025         Use NULL instead of 0 where appropriate.
23026         (to_hour): Avoid abort (), to avoid a dependency on
23027         stdlib.h.
23028         (yyerror, yylex): Now accepts parser_control * arg.
23029         (main) [TEST]: Use '\0' rather than 0 for char.
23030
23031 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
23032
23033         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
23034
23035 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
23036
23037         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
23038         It's now the caller's responsibility to handle the case where
23039         !HAVE_GETPAGESIZE && !defined getpagesize.
23040
23041         * lib/mktime.c (leapyear): Arg is long int, not int.
23042
23043 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
23044
23045         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
23046
23047 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
23048
23049         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
23050         missing.  Problem reported by James Youngman.
23051
23052 2004-10-16  Simon Josefsson  <jas@extundo.com>
23053
23054         * gnulib-tool: Fix comments.  Fix parse problem.
23055         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
23056
23057 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
23058
23059         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
23060         implementation of getopt_long.  Problem reported by Alexander Taler in:
23061         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
23062
23063 2004-10-15  Bruno Haible  <bruno@clisp.org>
23064
23065         * gnulib-tool: Untabify. Initialize supplied_libname.
23066         (func_usage): More homogenous output.
23067         (func_modules_transitive_closure, func_modules_to_filelist,
23068         func_emit_lib_Makefile_am): New functions.
23069         (func_import): New function, extracted from big case statement. Use
23070         func_get_license, func_modules_transitive_closure,
23071         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
23072         opt_lgpl. Don't use test -a, as it's not portable.
23073         (func_create_testdir): Use func_modules_transitive_closure,
23074         func_modules_to_filelist, func_emit_lib_Makefile_am.
23075
23076 2004-10-15  Bruno Haible  <bruno@clisp.org>
23077
23078         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
23079
23080 2004-10-15  Bruno Haible  <bruno@clisp.org>
23081
23082         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
23083         the portions belonging to each module.
23084         Suggested by Derek Robert Price <derek@ximbiot.com>.
23085
23086 2004-10-12  Simon Josefsson  <jas@extundo.com>
23087
23088         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
23089         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
23090         to real functions.
23091
23092 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
23093
23094         * modules/vsnprintf: New file.
23095
23096 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
23097
23098         * m4/vsnprintf.m4: New file.
23099
23100 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
23101
23102         * lib/vsnprintf.h: New file.
23103         * lib/vsnprintf.c: New file.
23104
23105 2004-10-11  Bruno Haible  <bruno@clisp.org>
23106
23107         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
23108         vsnprintf.
23109
23110 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
23111
23112         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
23113
23114 2004-10-07  Bruno Haible  <bruno@clisp.org>
23115
23116         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
23117         fits into the provided buffer.
23118
23119 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
23120
23121         * lib/diacrit.c, diacrit.h: Add GPL notice.
23122
23123         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
23124         notice.
23125         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
23126         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
23127         This avoids a potential constant-folding bug.
23128
23129 2004-10-05  Bruno Haible  <bruno@clisp.org>
23130
23131         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
23132         for the declaration of strsep.
23133
23134 2004-10-05  Bruno Haible  <bruno@clisp.org>
23135
23136         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
23137
23138 2004-10-04  Simon Josefsson  <jas@extundo.com>
23139
23140         * modules/memmem: New file.
23141         * tests/test-memmem.c: New file.
23142         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
23143
23144 2004-10-04  Simon Josefsson  <jas@extundo.com>
23145
23146         * m4/memmem.m4: New file.
23147
23148 2004-10-04  Simon Josefsson  <jas@extundo.com>
23149
23150         * lib/memmem.h: New file.
23151         * lib/memmem.c: New file, taken from glibc.
23152
23153 2004-10-04  Simon Josefsson  <jas@extundo.com>
23154
23155         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
23156         '#ifdef USE_UNLOCKED_IO'.
23157
23158 2004-10-04  Simon Josefsson  <jas@extundo.com>
23159
23160         * config/srclist.txt: Add memmem from glibc.
23161
23162 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
23163
23164         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
23165
23166         * modules/argmatch, modules/argp, modules/closeout, modules/error,
23167         modules/exclude, modules/getdate, modules/getline,
23168         modules/getndelim2, modules/getpass, modules/getpass-gnu,
23169         modules/getusershell, modules/linebuffer, modules/md5,
23170         modules/mountlist, modules/posixtm, modules/readtokens,
23171         modules/readutmp, modules/regex, modules/sha1,
23172         modules/version-etc, modules/yesno:
23173         Remove dependency on unlocked-io.
23174
23175 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
23176
23177         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
23178
23179         * m4/unlocked-io.m4: Add copyright notice.
23180         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
23181
23182 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
23183
23184         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
23185         * lib/xmalloc.c (xmemdup): Likewise.
23186         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
23187         XFREE): Remove these long-obsolescent macros.
23188         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
23189         * lib/xstrdup.c: Remove.
23190
23191         * lib/regex.c (re_comp): Cast gettext return value to char *,
23192         Problem reported by Martin Neitzel via Mark D. Baushke.
23193
23194 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
23195
23196         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
23197         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
23198         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
23199         regex.c, sha1.c, version-etc.c, yesno.c:
23200         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
23201         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
23202         the includer's responsibility.
23203
23204         Sync from coreutils.
23205
23206         * lib/modechange.c (mode_compile): Don't decrement a pointer that
23207         points to the start of a string, as the C Standard says the
23208         resulting behavior is undefined.
23209
23210         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
23211         simple -> simple_backups, numbered_existing ->
23212         numbered_existing_backups, numbered -> numbered_backups
23213         to avoid shadowing problems.  All uses changed.
23214         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
23215         * lib/backupfile.c (check_extension, numbered_backup):
23216         Rename locals to avoid shadowing 'basename'.
23217         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
23218         once.
23219
23220         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
23221         * lib/.cvsignore: Add getopt.h.
23222
23223 2004-10-04  Bruno Haible  <bruno@clisp.org>
23224
23225         * modules/README: New file.
23226         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
23227         not a module.
23228
23229 2004-10-02  Jim Meyering  <jim@meyering.net>
23230
23231         * lib/dirfd.h, getpagesize.h: Add copyright notice.
23232
23233 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
23234
23235         * modules/strsep: New file.
23236
23237 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
23238
23239         * m4/strsep.m4: New file.
23240
23241 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
23242
23243         * lib/strsep.h: New file.
23244         * lib/strsep.c: New file.
23245
23246 2004-10-01  Simon Josefsson  <jas@extundo.com>
23247
23248         * lib/snprintf.c (snprintf): Handle size==0.
23249
23250 2004-10-01  Simon Josefsson  <jas@extundo.com>
23251             Bruno Haible  <bruno@clisp.org>
23252
23253         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
23254         (snprintf): Declare 'args'.
23255
23256 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
23257
23258         * lib/snprintf.c: Remove comments as to why each header is needed.
23259
23260 2004-10-01  Bruno Haible  <bruno@clisp.org>
23261
23262         * MODULES.html.sh: Add strsep.
23263
23264 2004-09-30  Simon Josefsson  <jas@extundo.com>
23265
23266         * modules/snprintf: New file.
23267
23268 2004-09-30  Simon Josefsson  <jas@extundo.com>
23269
23270         * m4/snprintf.m4: New file.
23271
23272 2004-09-30  Simon Josefsson  <jas@extundo.com>
23273
23274         * lib/snprintf.h, lib/snprintf.c: New files.
23275
23276 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
23277
23278         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
23279         (hol_entry_help): Never translate an empty string.
23280         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
23281         * lib/argp.h (OPTION_NO_TRANS): New option.
23282
23283 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
23284
23285         * modules/argp (Maintainer): Replace Simon Josefsson
23286         by Sergey Poznyakoff.
23287
23288 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
23289
23290         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
23291         changes merged back into glibc.
23292
23293 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
23294
23295         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
23296
23297 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
23298
23299         * lib/xvasprintf.c: Include xalloc.h.
23300         (xvasprintf): Use xalloc_die, not xmalloc_die.
23301
23302 2004-09-29  Bruno Haible  <bruno@clisp.org>
23303
23304         * modules/alloca-opt: New file, derived from modules/alloca.
23305         * modules/allocsa: Depend on alloca-opt instead of alloca.
23306         * modules/setenv: Likewise.
23307         * modules/vasnprintf: Likewise.
23308         * MODULES.html.sh: Add alloca-opt.
23309
23310 2004-09-28  Simon Josefsson  <jas@extundo.com>
23311
23312         * gnulib-tool: New parameter --lgpl, to asseert that modules are
23313         LGPL, and to replace license template from GPL to LGPL.
23314
23315 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
23316
23317         * modules/dummy: Change license to LGPL.
23318
23319 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
23320
23321         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
23322
23323 2004-09-24  Simon Josefsson  <jas@extundo.com>
23324
23325         * modules/minmax (License): Change from GPL to LGPL.
23326
23327 2004-09-23  Simon Josefsson  <jas@extundo.com>
23328
23329         * gnulib-tool (--import): Typo.
23330
23331 2004-09-23  Simon Josefsson  <jas@extundo.com>
23332
23333         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
23334
23335 2004-09-22  Bruno Haible  <bruno@clisp.org>
23336
23337         * modules/*: Add 'License' field.
23338         * gnulib-tool: Accept --extract-license option.
23339         (func_get_license): New function.
23340
23341 2004-09-21  Bruno Haible  <bruno@clisp.org>
23342
23343         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
23344         Reported by Simon Josefsson.
23345
23346 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
23347
23348         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
23349         gl_AC_TYPE_LONG_LONG.
23350
23351 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
23352
23353         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
23354
23355 2004-09-18  Simon Josefsson  <jas@extundo.com>
23356         and  Paul Eggert  <eggert@cs.ucla.edu>
23357
23358         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
23359         calls with autoreconf.  Define GL_LIB.
23360
23361 2004-09-14  Karl Berry  <karl@gnu.org>
23362
23363         * config/srclist.txt: unsync setenv.c, sigh.
23364
23365 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
23366
23367         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
23368         Problem reported by Bruno Haible in:
23369         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
23370
23371 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
23372
23373         * config/srclist.txt: Comment out argp-pvh.c.
23374
23375 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
23376
23377         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
23378         in case some system header has #define'd it.  Problem reported by
23379         Soeren D. Schulze in
23380         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
23381
23382 2004-09-09  Karl Berry  <karl@gnu.org>
23383
23384         * regex.[ch]: delete from the root.  These were supposed to be
23385                 synced with emacs cvs, but this has not happened for about
23386                 a year, and anyway nothing else uses emacs regex.[ch].
23387                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
23388                 lib/regex[.ch] is untouched.
23389
23390 2004-09-09  Bruno Haible  <bruno@clisp.org>
23391
23392         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
23393
23394 2004-09-09  Bruno Haible  <bruno@clisp.org>
23395
23396         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
23397         modifications.
23398         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
23399
23400 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
23401
23402         * modules/xvasprintf: New file.
23403         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
23404
23405 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
23406
23407         * lib/xvasprintf.h: New file.
23408         * lib/xvasprintf.c: New file.
23409         * lib/xasprintf.c: New file.
23410
23411 2004-09-08  Bruno Haible  <bruno@clisp.org>
23412
23413         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
23414
23415 2004-09-08  Bruno Haible  <bruno@clisp.org>
23416
23417         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
23418         length is > INT_MAX.
23419         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
23420         more.
23421
23422 2004-09-08  Bruno Haible  <bruno@clisp.org>
23423
23424         * lib/stdint_.h: New file, taken from GNU clisp.
23425
23426 2004-09-08  Bruno Haible  <bruno@clisp.org>
23427             Oskar Liljeblad  <oskar@osk.mine.nu>
23428
23429         * modules/stdint: New file.
23430         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
23431
23432 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
23433
23434         Import from coreutils.
23435         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
23436         strings on unbounded length.  alloca's performance benefits aren't
23437         that important here.
23438         (V_STRDUP): Remove.
23439         (parse_with_separator): New function, with most of the internals
23440         of the old parse_user_spec.  Allow user to omit both user and group,
23441         for compatibility with FreeBSD.
23442         Clone only the user name, not the entire spec.
23443         Do not set *uid, *gid unless entirely successful.
23444         Avoid memory leak in some failing cases.
23445         Fix regression for USER.GROUP reported by Dmitry V. Levin in
23446         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
23447         (parse_user_spec): Rewrite to use parse_with_separator.
23448
23449 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
23450
23451         * modules/userspec: Don't depend on alloca.
23452
23453 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
23454
23455         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
23456
23457 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
23458
23459         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
23460         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
23461         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
23462
23463 2004-08-16  Simon Josefsson  <jas@extundo.com>
23464
23465         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
23466         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
23467         Add --dry-run for --import.
23468         Let user provided command line parameters override configure.ac
23469         settings.
23470
23471 2004-08-12  Simon Josefsson  <jas@extundo.com>
23472
23473         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
23474         as discussed with Paul Eggert in threads rooted at
23475         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
23476         and
23477         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
23478         Before, the test was empty, and relied on ELIDE_CODE in source
23479         code.)
23480         (gl_PREREQ_GETOPT): New macro.
23481         (gl_GETOPT): Use them.
23482
23483 2004-08-12  Simon Josefsson  <jas@extundo.com>
23484
23485         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
23486         * lib/getopt_.h: Renamed from getopt.h.
23487
23488 2004-08-12  Simon Josefsson  <jas@extundo.com>
23489
23490         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
23491         Change default library name from libfoo to libgnu.
23492         Now, if you have a configure.ac that says:
23493                 gl_SOURCE_BASE(gl)
23494                 gl_M4_BASE(gl/m4)
23495                 gl_MODULES(error getopt etcetera)
23496                 gl_INIT
23497         you can import all you need by running:
23498                 ../gnulib/gnulib-tool --import
23499
23500         * modules/getopt (Files): Rename getopt.h to getopt_.h.
23501         (Makefile.am): Rewrite, use logic from argz.
23502         (Include): Use <getopt.h> instead of "getopt.h".
23503
23504 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
23505
23506         * modules/argp (Files): Add m4/unlocked-io.m4.
23507         (Depends-on): Add extensions.
23508
23509 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
23510
23511         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
23512         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
23513         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
23514         Check for program_invocation_name, program_invocation_short_name,
23515         flockfile, funlockfile, features.h, _getopt_long_only_r.
23516
23517 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
23518
23519         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
23520         its complicated substitute.
23521         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
23522         and program_invocation_name.
23523         (__argp_basename) [!_LIBC]: Remove; the only use was
23524         replaced by its body.
23525         (__argp_short_program_name): Change condition from
23526         !defined __argp_short_program_name to
23527         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
23528         to match argp-namefrob.h.
23529         (__argp_failure): Don't assume strerror_r returns char *.
23530         * lib/argp-parse.c (N_): Define unconditionally.
23531         (argp_default_options): Fill out initializers with 0 to avoid
23532         gcc warnings.
23533
23534 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
23535
23536         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
23537         getopt1.c.
23538
23539 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
23540
23541         Merge from coreutils.
23542
23543         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
23544
23545         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
23546         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
23547
23548 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
23549
23550         Merge from coreutils.
23551
23552         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
23553         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
23554         for Reliant Unix 5.43.
23555
23556         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
23557         (union fooround): Use uintmax_t, not long int.
23558         The rest is a merge from libc:
23559         [defined _LIBC]: Include <shlib-compat.h>.
23560         (_obstack) [defined _LIBC]: Remove after 2.3.4.
23561
23562         * lib/settime.c (settime): Recode to avoid warning with
23563         Sun Forte C 6U2.
23564
23565         * lib/strverscmp.c: Convert to UTF-8.
23566
23567 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
23568
23569         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
23570         m4/uintmax_t.m4.
23571
23572 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
23573
23574         * modules/xalloc-die: New file.
23575         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
23576
23577         * modules/md5 (Files): Add m4/uint32_t.m4.
23578         * modules/sha1: Renamed from modules/sha.
23579         (Files):
23580         Rename lib/sha.h to lib/sha1.h.
23581         Rename lib/sha.c to lib/sha1.c.
23582         Rename m4/sha.m4 to m4/sha1.m4.
23583         (lib_SOURCES): Likewise.
23584         (configure.ac): Rename gl_SHA to gl_SHA1.
23585         (Include): sha.h -> sha1.h.
23586
23587 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
23588
23589         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
23590         * m4/sha1.m4: Renamed from sha.m4.
23591         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
23592
23593 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
23594
23595         * lib/obstack.h (obstack_empty_p):
23596         Don't assume that chunk->contents is suitably aligned.
23597         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
23598         Likewise. Problem reported by Benno in
23599         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
23600
23601         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
23602         readable.  This could be improved further but it'd take some work.
23603
23604 2004-08-08  Simon Josefsson  <jas@extundo.com>
23605
23606         * modules/xgethostname (Depends-on): Remove exit and error (not
23607         used).
23608
23609         * modules/getpass-gnu: Add getpass.h.
23610         (Depends-on): Add stdbool.
23611         * modules/getpass: Add getpass.h.
23612
23613 2004-08-08  Simon Josefsson  <jas@extundo.com>
23614
23615         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
23616         Check getpass declaration.
23617
23618 2004-08-08  Simon Josefsson  <jas@extundo.com>
23619
23620         * lib/xgethostname.c: Don't include error.h (not used).
23621
23622         * lib/getpass.h: Add.
23623         * lib/getpass.c: Include getpass.h first.
23624
23625 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
23626
23627         * lib/xalloc-die.c: New file.
23628         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
23629         All uses removed.
23630         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
23631         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
23632         xalloc-die.c.
23633         (_, N_, xalloc_die): Move to xalloc-die.c.
23634         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
23635         so that we needn't mess with xalloc_msg_memory_exhausted.
23636
23637         * lib/sha1.h: Renamed from sha.h.
23638         (SHA1_H): Renamed from _SHA_H.
23639         (sha1_ctx): Renamed from sha_ctx.
23640         (sha1_init_ctx): Renamed from sha_init_ctx.
23641         (sha1_process_block): Renamed from sha_process_block.
23642         (sha1_process_bytes): Renamed from sha_process_bytes.
23643         (sha1_finish_ctx): Renamed from sha_finish_ctx.
23644         (sha1_read_ctx): Renamed from sha_read_ctx.
23645         (sha1_stream): Renamed from sha_stream.
23646         (sha1_buffer): Renamed from sha_buffer.
23647         * lib/sha1.c: Likewise; renamed from sha.c.
23648         Do not include <sys/types.h>.
23649         Include <stddef.h> rather than <stdlib.h>.
23650
23651 2004-08-08  Bruno Haible  <bruno@clisp.org>
23652
23653         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
23654         FILESYSTEM_PREFIX_LEN.
23655         * lib/progreloc.c: Likewise.
23656         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
23657
23658 2004-08-06  Simon Josefsson  <jas@extundo.com>
23659
23660         * modules/progname (Depends-on): Don't depend on stdbool.
23661
23662 2004-08-06  Simon Josefsson  <jas@extundo.com>
23663
23664         * modules/getsubopt: New file.
23665         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
23666         getsubopt.
23667
23668 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
23669
23670         More merge from coreutils.
23671
23672         * m4/utimens.m4, m4/utimecmp.m4: New files.
23673         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
23674         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
23675         prereq.m4, sha.m4: Import changes from coreutils.
23676
23677 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
23678
23679         More merge from coreutils.
23680         * modules/raise, modules/readtokens0, modules/utimens:
23681         * modules/utimecmp, module/xnanosleep: New files.
23682         * modules/strftime: Add lib/strftime.h.
23683         Change include from <time.h> to "strftime.h".
23684         * modules/yesno: Add lib/yesno.h.
23685         * modules/backupfile: Remove lib/addext.c.
23686         * modules/euidaccess: Add stat-macros.h.
23687         * modules/canonicalize, modules/euidaccess,
23688         modules/filemode, modules/lchown, modules/makepath,
23689         modules/rmdir, modules/stat: Likewise.
23690
23691 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
23692
23693         Merge from tar.
23694         * lib/argp-help.c (make_hol, hol_append): Don't assume that
23695         SIZE_MAX is a valid preprocessor constant.
23696         (__argp_basename): Change from "#ifndef _LIBC"
23697         to "#ifndef __argp_short_program_name", so that
23698         we don't compile these functions for tar.
23699
23700         More merges from coreutils.
23701         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
23702         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
23703         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
23704         * lib/addext.c: Remove; no longer needed.
23705         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
23706         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
23707         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
23708         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
23709         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
23710         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
23711         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
23712         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
23713         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
23714         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
23715         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
23716         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
23717         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
23718         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
23719         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
23720         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
23721         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
23722         Import changes from coreutils.
23723
23724 2004-08-05  Simon Josefsson  <jas@extundo.com>
23725
23726         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
23727
23728 2004-08-05  Simon Josefsson  <jas@extundo.com>
23729
23730         * m4/getsubopt.m4: New file.
23731
23732 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
23733
23734         Merge from coreutils.
23735
23736         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
23737         * m4/getcwd-path-max.m4: New files.
23738
23739         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
23740         FILESYSTEM_PREFIX_LEN ->
23741         FILE_SYSTEM_PREFIX_LEN.
23742         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
23743         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
23744         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
23745         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
23746
23747         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
23748         prerequisite modules now handle the DOS stuff.
23749         Don't check for unistd.h.
23750
23751 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
23752
23753         Merge from coreutils.
23754
23755         * lib/.gdb-history: Remove; this doesn't belong here.
23756
23757         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
23758         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
23759         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
23760         * lib/getcwd.c: New files.
23761
23762         * lib/dirname.h: Include <stdbool.h>.
23763         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
23764         for consistency with POSIX terminology.  All uses changed.
23765         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
23766         (strip_trailing_slashes): Use bool for booleans.
23767         * lib/stripslash.c (strip_trailing_slashes): Likewise.
23768
23769         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
23770         sometimes returns a positive errno value even when it succeeds.
23771         (print_errno_message) [!LIBC]: Fall back on strerror if
23772         __strerror_r fails.
23773
23774         * lib/path-concat.c (mempcpy): Don't define if a system header defines
23775         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
23776         (longest_relative_suffix): New function.
23777         (path_concat): Use it.  Assume first argument is not NULL.
23778         Port to DOS.  Omit redundant separators.
23779         Report an error instead of returning NULL.
23780         Use mempcpy instead of memcpy.
23781         (xpath_concat): Remove: not declared or used.
23782
23783         * lib/same.h: Include <stdbool.h>
23784         (same_name): Return bool, not int.
23785         * lib/same.c (same_name): Likewise.
23786         (errno): Don't declare; we assume C89 or better now.
23787
23788         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
23789         if not already defined.
23790
23791         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
23792         * lib/dup-safer.c (errno): Likewise.
23793
23794 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
23795
23796         Merge from coreutils.
23797         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
23798         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
23799         * modules/path-concat: Don't depend on strdup.
23800
23801 2004-08-03  Simon Josefsson  <jas@extundo.com>
23802
23803         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
23804         * lib/progname.h: Don't include stdbool.h.
23805
23806 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
23807
23808         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
23809         * MODULES.html.sh (func_all_modules): Remove fatal.
23810
23811 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
23812
23813         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
23814
23815 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
23816
23817         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
23818         working.
23819
23820 2004-08-02  Simon Josefsson  <jas@extundo.com>
23821
23822         * lib/getsubopt.h: New file, with comments from Bruno Haible.
23823         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
23824         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
23825
23826 2004-08-01  Simon Josefsson  <jas@extundo.com>
23827
23828         * lib/xgetdomainname.c: Include stdlib.h, for free().
23829
23830 2004-07-19  Bruno Haible  <bruno@clisp.org>
23831
23832         * MODULES.html.sh (func_all_modules): Add dummy.
23833
23834 2004-07-16  Simon Josefsson  <jas@extundo.com>
23835
23836         * modules/dummy: New file.
23837
23838 2004-07-16  Simon Josefsson  <jas@extundo.com>
23839
23840         * lib/dummy.c: New file.
23841
23842 2004-07-16  Bruno Haible  <bruno@clisp.org>
23843
23844         * lib/backupfile.h: Add extern "C" for C++.
23845         * lib/closeout.h: Likewise.
23846         * lib/copy-file.h: Likewise.
23847         * lib/findprog.h: Likewise.
23848         * lib/full-write.h: Likewise.
23849         * lib/pathname.h: Likewise.
23850         * lib/progname.h: Likewise.
23851         * lib/stpcpy.h: Likewise.
23852         * lib/stpncpy.h: Likewise.
23853         * lib/strcase.h: Likewise.
23854         * lib/strstr.h: Likewise.
23855         * lib/xalloc.h: Likewise.
23856
23857         * lib/mbswidth.h: Add extern "C" for C++.
23858         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
23859
23860 2004-07-13  Robert Millan  <robertmh@gnu.org>
23861
23862         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
23863
23864 2004-07-09  Simon Josefsson  <jas@extundo.com>
23865
23866         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
23867         failed without this.)
23868
23869 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
23870
23871         * modules/chown (Files): Add lib/fchown-stub.c, since
23872         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
23873
23874 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
23875
23876         * lib/fchown-stub.c: New file.
23877
23878 2004-06-24  Jim Meyering  <jim@meyering.net>
23879
23880         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
23881
23882 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
23883
23884         * modules/argz: Omit "#include".
23885
23886         * MODULES.html.sh (func_all_modules): Add calloc, to match
23887         2004-06-01 addition of calloc module.
23888
23889 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
23890
23891         * m4/argz.m4: New file, which is autoupdated from libtool.
23892
23893 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
23894
23895         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
23896         libtool.
23897
23898 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
23899
23900         * config/srclist-update: Don't insist on "USA." before the
23901         close-comment, as libtool omits the period and puts the */ on a
23902         separate line.
23903         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
23904         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
23905
23906 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
23907
23908         * modules/argz: New file.
23909         * MODULES.html.sh (func_all_modules): Add argz.
23910
23911 2004-06-12  Jim Meyering  <jim@meyering.net>
23912         and  Paul Eggert  <eggert@cs.ucla.edu>
23913
23914         * modules/hash (Files): Add lib/xalloc.h.
23915         * modules/pipe (Depends-on): Add wait-process.
23916         * modules/stat (Depends-on): Add xalloc.
23917         * modules/userspec (Files): Add lib/userspec.h.
23918         * modules/xstrto
23919
23920         Upgrade from gettext-0.13.
23921         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
23922         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
23923         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
23924
23925 2004-06-10  Jim Meyering  <jim@meyering.net>
23926
23927         * lib/calloc.c: New file.
23928
23929 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
23930
23931         * lib/getdate.y (yylex): Allow space between sign and number.
23932         Problem reported by Dan Jacobson.
23933
23934 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
23935
23936         Merge from coreutils CVS.
23937
23938         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
23939         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
23940         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
23941         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
23942         xstrtol.m4: Fix copyright date and/or serial number.
23943
23944         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
23945         See if we need an fchown replacement.
23946         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
23947         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
23948         and use the replacement function if we detect either defect.
23949
23950         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
23951         gl_UTIMECMP.
23952
23953 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
23954         and  Jim Meyering  <jim@meyering.net>
23955
23956         Merge from coreutils CVS.
23957
23958         * lib/stat-macros.h: New file, with contents from file-type.h
23959         and coreutils' system.h.
23960         * lib/file-type.c: Include "stat-macros.h".
23961         * lib/file-type.h (file_type): Move all macro definitions to new file,
23962         stat-macros.h.
23963
23964         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
23965         Wrap old code with this conditional.
23966         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
23967         function that does not dereference symlinks.
23968         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
23969
23970         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
23971         dependency problems.
23972         (xreadlink): Accept new arg SIZE, for efficiency.
23973         All decls and uses changed.
23974         * lib/xreadlink.h: Include <stddef.h>, for size_t.
23975
23976         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
23977         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
23978
23979         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
23980         sysexits.h.
23981
23982 2004-06-01  Jim Meyering  <jim@meyering.net>
23983
23984         * m4/calloc.m4: New file.
23985
23986 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
23987
23988         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
23989         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
23990         Also, fix a typo in a diagnostic.
23991
23992 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
23993
23994         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
23995         or AC_FUNC_REALLOC.
23996
23997 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
23998
23999         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
24000         macros to be defined.
24001         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
24002         the allocator returns NULL because the requested size is zero.
24003
24004 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
24005
24006         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
24007         var.  Add comment explaining why libc still defines it.  This
24008         merges the following patch from glibc:
24009         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
24010
24011 2004-05-20  Andreas Schwab  <schwab@suse.de>
24012
24013         * m4/free.m4: Replace free if it not known to work, not the other
24014         way round.
24015
24016 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
24017
24018         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
24019         present in glibc since revision 1.1 of this file.
24020         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
24021         obstack_alignment_mask, obstack_alloc, obstack_base,
24022         obstack_blank, obstack_blank_fast, obstack_chunk_size,
24023         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
24024         obstack_grow0, obstack_init, obstack_int_grow,
24025         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
24026         obstack_next_free, obstack_object_size, obstack_ptr_grow,
24027         obstack_ptr_grow_fast, obstack_room): Remove declarations of
24028         nonexistent functions.
24029
24030 2004-05-18  Karl Berry  <karl@gnu.org>
24031
24032         * config/srclist.txt: break link for vasnprintf.c.
24033
24034 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
24035
24036         Port obstack to the AS/400, where pointers are 16 bytes wide and
24037         you cannot cast an integer to a valid pointer.  This patch is
24038         currently waiting to be integrated into glibc; see
24039         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
24040
24041         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
24042         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
24043         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
24044         (struct obstack): temp member is now a union of a pointer and
24045         an integer, instead of an integer.  All integer uses changed.
24046         This does not affect the physical layout of struct obstack,
24047         except on hosts (like the AS/400) where the size or alignment of
24048         void * is greater than that of ptrdiff_t.
24049         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
24050         __STDC__)]: Store temporary in pointer member of union, not
24051         integer member.
24052         * lib/obstack.c: Include <stddef.h>, for offsetof.
24053         (struct fooalign): Remove; it doesn't need a name.
24054         (union fooround): Change double to long double, and add void *.
24055         (DEFAULT_ALIGNMENT): Use offsetof to compute.
24056         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
24057         not a macro.  Hence the values are always int; so remove all
24058         casts-to-int in uses.
24059
24060 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
24061
24062         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
24063         we can get this patch merged into glibc.
24064
24065 2004-05-17  Derek R. Price  <derek@ximbiot.com>
24066             Paul Eggert  <eggert@cs.ucla.edu>
24067
24068         * m4/argp: Depend on alloca.
24069
24070 2004-05-17  Derek R. Price  <derek@ximbiot.com>
24071             Paul Eggert  <eggert@cs.ucla.edu>
24072
24073         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
24074         freecoding.
24075
24076 2004-05-17  Bruno Haible  <bruno@clisp.org>
24077
24078         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
24079         precision that consists of a '.' followed by an empty digit string.
24080         Patch by Tor Lillqvist <tml@iki.fi>.
24081
24082 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
24083
24084         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
24085         for backward compatibility with older code.  We need our own
24086         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
24087         it under some other name, and our alloca.h will define it.
24088
24089 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
24090             Derek Price  <derek@ximbiot.com>
24091
24092         * lib/alloca.c: Include <alloca.h>, to get our interface.
24093         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
24094         include <alloca.h> first.  Use C89 prototype for alloca; this
24095         requires including <stddef.h> for size_t.  Use extern "C" if C++.
24096         Use #elif for simplicity, since we can assume C89 now.
24097         Don't try to source the system alloca.h since it will not be found
24098         and to prevent recursively including its replacement.
24099         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
24100         * lib/regex.c: Likewise.
24101
24102 2004-05-16  Derek Price  <derek@ximbiot.com>
24103             Paul Eggert  <eggert@cs.ucla.edu>
24104
24105         getline cleanup.  This changes the getndelim2 API: both order of
24106         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
24107         no delimiter).
24108
24109         * lib/getline.c: Don't include stddef.h or stdio.h, since our
24110         interface does that.
24111         (getline): Always use getdelim, so that we don't have two
24112         copies of this code.
24113         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
24114         if available.
24115         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
24116         (GETNDELIM2_MAXIMUM): New macro.
24117         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
24118         instead of the old practice of delim2==0.  All callers changed.
24119         Return -1 on overflow, instead of returning junk.
24120         Do not set *linesize unless allocation succeeds.
24121         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
24122         that we include sys/types.h.
24123         * lib/getnline.h: Likewise.
24124         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
24125         (getndelim2): Reorder arguments.
24126         * lib/getnline.c (getnline, getndelim):
24127         Don't discard the NMAX argument.
24128         (getnline): Invoke getndelim, to avoid code duplication.
24129         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
24130         of (size_t) -1 by callers of the getnline family.
24131
24132 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
24133
24134         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
24135         Check for gettimeofday.
24136         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
24137         Check for settimeofday, stime.
24138
24139 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
24140
24141         * lib/nanosleep.c (suspended): Change its type from int to
24142         sig_atomic_t volatile.
24143         (first_call): Make it private to rpl_nanosleep, and have it
24144         be zero initially as that's a bit faster.
24145         (my_usleep): Round up fractional times instead of truncating them,
24146         as this is the usual meaning for 'sleep'.
24147
24148         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
24149         doesn't work.
24150         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
24151         (ENOSYS): Define if not defined.
24152         (settime): Fall back on stime if it exists and settimeofday fails.
24153         But don't bother with fallbacks if a method fails with errno == EPERM.
24154
24155 2004-05-11  Jim Meyering  <jim@meyering.net>
24156
24157         Prior to this change, the save_cwd caller required read access to the
24158         current directory on most systems (ones with the fchdir function).
24159
24160         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
24161         fails, try write-only, and finally, resort to using xgetcwd.
24162
24163 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
24164
24165         * lib/obstack.c, obstack.h: Import changes from libc.
24166
24167 2004-04-28  Bruno Haible  <bruno@clisp.org>
24168
24169         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
24170         also implicitly appends .exe to executables.
24171         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
24172         accepts Windows pathnames.
24173         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
24174         Treat Cygwin like Windows, since it now accepts Windows pathnames.
24175         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
24176         Treat Cygwin like Windows, since it now accepts Windows pathnames.
24177         Reported by Derek Robert Price <derek@ximbiot.com>.
24178
24179 2004-04-21  Karl Berry  <karl@gnu.org>
24180
24181         * config/srclist.txt (localcharset.c): break sync.
24182
24183 2004-04-20  Paul Eggert  <eggert@twinsun.com>
24184
24185         * m4/host-os.m4: Add a copyright notice.
24186
24187 2004-04-20  Jim Meyering  <jim@meyering.net>
24188
24189         Change UTILS_ to gl_ in AC_DEFINE'd names.
24190         Change utils_- and jm_-prefixed variables, too.
24191         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
24192         UTILS_FUNC_MKDIR_TRAILING_SLASH.
24193         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
24194
24195         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
24196         Don't emit trailing blanks.
24197         Also rename jm_-prefixed variables to have gl_ prefix.
24198
24199         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
24200         Also rename jm_-prefixed variables to have gl_ prefix.
24201
24202         * m4/jm-macros.m4: Reflect the renamings.
24203         * m4/prereq.m4: Likewise.
24204
24205 2004-04-20  Jim Meyering  <jim@meyering.net>
24206
24207         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
24208         memory.
24209
24210 2004-04-20  Jim Meyering  <jim@meyering.net>
24211             Bruno Haible  <bruno@clisp.org>
24212
24213         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
24214         memory when realloc fails.
24215
24216 2004-04-19  Jim Meyering  <jim@meyering.net>
24217
24218         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
24219         now that readutmp.c may call `free (0)'.
24220
24221 2004-04-19  Bruno Haible  <bruno@clisp.org>
24222
24223         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
24224         * m4/inttypes_h.m4: Likewise.
24225         * m4/stdint_h.m4: Likewise.
24226         * m4/intmax_t.m4: Likewise.
24227         * m4/uintmax_t.m4: Likewise.
24228
24229 2004-04-18  Jim Meyering  <jim@meyering.net>
24230
24231         * m4/prereq.m4: Don't forbid jm_ prefix.
24232
24233         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
24234         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
24235         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
24236         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
24237         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
24238         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
24239         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
24240         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
24241         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
24242         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
24243         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
24244         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
24245         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
24246         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
24247         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
24248         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
24249         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
24250         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
24251         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
24252
24253 2004-04-18  Jim Meyering  <jim@meyering.net>
24254
24255         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
24256         failure, don't leak memory and do call END_UTMP_ENT.
24257
24258 2004-04-16  Jim Meyering  <jim@meyering.net>
24259
24260         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
24261         coreutils' stat program.
24262         (gl_PREREQ): Don't require jm_PREREQ_STAT.
24263
24264 2004-04-11  Paul Eggert  <eggert@twinsun.com>
24265
24266         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
24267         C89.
24268         (CHAR_BIT): Remove, since we assume C89.
24269         Include <stdint.h> if available, as per current Autoconf CVS advice.
24270
24271 2004-03-31  Jim Meyering  <jim@meyering.net>
24272
24273         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
24274         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
24275         * m4/xalloc.m4: Likewise.
24276
24277 2004-03-30  Paul Eggert  <eggert@twinsun.com>
24278
24279         Merge from coreutils.
24280
24281         * m4/inttostr.m4: New file.
24282         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
24283         Require AM_STDBOOL_H and gl_TIMESPEC instead.
24284         Require gl_CLOCK_TIME.
24285         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
24286
24287 2004-03-30  Paul Eggert  <eggert@twinsun.com>
24288
24289         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
24290         not bool, to be more consistent with Unix conventions.
24291         Suggested by Bruno Haible.
24292
24293         Merge from coreutils.
24294
24295         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
24296         * lib/umaxtostr.c: New files.
24297
24298         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
24299         the usual <time.h> dance.
24300         (get_date): Change signature to support fractional time stamps.
24301         All callers changed.
24302         * lib/getdate.y: Include "getdate.h" first, as we can now
24303         assume C89 and don't need to worry about 'const'.
24304         Similarly, include "unlocked-io.h" near start, not in middle.
24305         Include <limits.h>.
24306         (textint.value): Use long int rather than int.
24307         (textint.digits): Use size_t rather than int.
24308         (BILLION, LOG10_BILLION): New constants.
24309         (parser_control): New member rel_ns.  Members day_ordinal,
24310         time_zone, month, day, hour, minutes, rel_year, rel_month,
24311         rel_day, rel_hour, rel_minutes, rel_seconds
24312         are now long int, not int.  Member seconds is now struct timespec,
24313         not int.  New member timespec_seen.  Members dates_seen, days_seen,
24314         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
24315         not int.
24316         (%union.intval): Now long int, not int.
24317         New member timespec.
24318         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
24319         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
24320         (spec): Now is a timespec or an item list.
24321         (timespec, items): New nonterminals.
24322         (time, rel, relunit, number, get_date):
24323         Add support for fractional seconds.
24324         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
24325         (gmtime, localtime, mktime): Remove decls; not needed with C89.
24326         (to_hour): First arg is now long int, not int.
24327         (to_year): Returns long int, not int.
24328         Don't treat year -70 like 70.
24329         (tm_diff): Returns long int, not int.
24330         (lookup_word): Use bool instead of int when appropriate.
24331         (yylex): Use size_t for count, not int.
24332         Detect overflow when parsing large integer constants.
24333         Add support for fractions.
24334         (get_date): Make pointers 'const' if possible.
24335         Use more-portable code to detect integer overflow.
24336         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
24337         Don't use ctime; it's not reliable if the year has >4 digits.
24338
24339         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
24340         This is for compatibility with BSD.
24341
24342         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
24343         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
24344         From coreutils' system.h.
24345
24346         * lib/userspec.c: Don't include "posixver.h".
24347         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
24348         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
24349         compatible extension.  Simplify code by removing a boolean int
24350         that was always nonzero if a string was nonnull.
24351
24352 2004-03-30  Jim Meyering  <jim@meyering.net>
24353
24354         Merge from coreutils.
24355
24356         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
24357         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
24358         on some systems one must include <grp.h> before it.
24359         Reported by Christian Krackowizer.
24360
24361 2004-03-30  Jim Meyering  <jim@meyering.net>
24362
24363         Merge from coreutils.
24364
24365         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
24366
24367         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
24368         an empty input stream.
24369
24370         * lib/readtokens.c: Include <stdbool.h>.
24371         (readtoken): Use `size_t' rather than int/long.
24372         All callers adjusted.
24373         Use `bool' rather than `int' where appropriate.
24374         Use memset rather than an explicit loop.
24375         Use x2nrealloc rather than xrealloc.
24376         Allow the use of `\0' as a delimiter.
24377         (readtokens): Likewise.
24378         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
24379
24380 2004-03-30  Jim Meyering  <jim@meyering.net>
24381
24382         * m4/realloc.m4: Remove file, since now it does no more than
24383         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
24384         the `configure.ac' section of module/realloc.
24385         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
24386
24387 2004-03-30  Bruno Haible  <bruno@clisp.org>
24388
24389         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
24390         nonnull.
24391
24392 2004-03-29  Paul Eggert  <eggert@twinsun.com>
24393
24394         Merge changes to getloadavg.c from coreutils and Emacs.
24395
24396         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
24397         Define to an expression, not to the empty string.
24398         Include cloexec.h and xalloc.h.
24399         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
24400         Use set_cloexec_flag rather than rolling our own.
24401         * lib/cloexec.c, lib/cloexec.h: New files.
24402
24403 2004-03-29  Paul Eggert  <eggert@twinsun.com>
24404
24405         * m4/cloexec.m4: New file.
24406
24407 2004-03-18  Paul Eggert  <eggert@twinsun.com>
24408
24409         * lib/getopt.h: Sync with libc CVS.
24410
24411 2004-03-18  Paul Eggert  <eggert@twinsun.com>
24412             Bruno Haible  <bruno@clisp.org>
24413
24414         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
24415         mbswidth.
24416
24417 2004-03-18  Paul Eggert  <eggert@twinsun.com>
24418             Bruno Haible  <bruno@clisp.org>
24419
24420         * lib/mbswidth.h: Include <wchar.h> only if
24421         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
24422         <wchar.h>.
24423         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
24424
24425 2004-03-09  Paul Eggert  <eggert@twinsun.com>
24426
24427         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
24428         Sync with libc CVS.
24429         * lib/getopt_int.h: New file, also synced from libc.
24430
24431 2004-03-09  Paul Eggert  <eggert@twinsun.com>
24432
24433         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
24434         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
24435         Bring back getopt.c, getopt.h, getopt1.c.
24436
24437 2004-03-07  Paul Eggert  <eggert@twinsun.com>
24438
24439         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
24440         All uses changed.  Check for sa_sigaction member; this fixes
24441         a bug first reported by Jason Andrade in
24442         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
24443
24444 2004-03-07  Paul Eggert  <eggert@twinsun.com>
24445
24446         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
24447         '#if' expressions.  Unlike the code it replaces, it does not
24448         depend on (defined _SC_PAGESIZE).  However, it does depend on
24449         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
24450         first reported by Jason Andrade in
24451         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
24452
24453 2004-02-25  Simon Josefsson  <jas@extundo.com>
24454
24455         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
24456
24457 2004-02-25  Simon Josefsson  <jas@extundo.com>
24458
24459         * lib/strdup.h: New file.
24460         * lib/strdup.c: Include it.
24461         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
24462         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
24463
24464 2004-02-23  Karl Berry  <karl@gnu.org>
24465
24466         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
24467         (from fencepost.gnu.org:/gd/gnuorg).
24468
24469 2004-02-23  Karl Berry  <karl@gnu.org>
24470
24471         * config/srclistvars.sh (GNUORG) [karl]: redefine.
24472         * config/srclist.txt: add maintain/standards documents.
24473
24474 2004-02-18  Bruno Haible  <bruno@clisp.org>
24475
24476         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
24477         Reported by Derek Robert Price <derek@ximbiot.com>.
24478
24479 2004-02-16  Karl Berry  <karl@gnu.org>
24480
24481         * config/mkinstalldirs, install-sh: update from automake.
24482
24483 2004-02-06  Karl Berry  <karl@gnu.org>
24484
24485         * m4/po.m4: update from gettext 0.14.1.
24486
24487 2004-02-06  Karl Berry  <karl@gnu.org>
24488
24489         * lib/config.charset: update from gettext 0.14.1.
24490
24491 2004-02-05  Paul Eggert  <eggert@twinsun.com>
24492
24493         Add comments and code, prompted by suggestions from Bruno Haible
24494         for sh-quote.
24495         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
24496         describing the enum quoting_style values.
24497         * lib/quotearg.c (quotearg_alloc): New function.
24498         (quotearg_buffer_restyled): Treat lone { and } as special.
24499         Treat = as special.  Work around bug with older shells
24500         that "see" a '\' that is really the 2nd byte of a multibyte char.
24501         Quote empty string with shell_quoting_style.
24502
24503 2004-02-03  Bruno Haible  <bruno@clisp.org>
24504
24505         * m4/pipe.m4: New file, from GNU gettext.
24506
24507 2004-02-03  Bruno Haible  <bruno@clisp.org>
24508
24509         * lib/pipe.h: New file, from GNU gettext.
24510         * lib/pipe.c: New file, from GNU gettext.
24511
24512 2004-01-27  Bruno Haible  <bruno@clisp.org>
24513
24514         * m4/execute.m4: New file, from GNU gettext.
24515
24516 2004-01-27  Bruno Haible  <bruno@clisp.org>
24517
24518         * lib/execute.h: New file, from GNU gettext.
24519         * lib/execute.c: New file, from GNU gettext.
24520         * lib/w32spawn.h: New file, from GNU gettext.
24521
24522 2004-01-24  Paul Eggert  <eggert@twinsun.com>
24523
24524         Merge from diffutils.
24525
24526         * lib/file-type.c (file_type): Add typed memory objects.
24527         * lib/file-type.h (S_TYPEISTMO): New macro.
24528
24529         * lib/c-stack.h (c_stack_action): Remove argv argument.
24530         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
24531         (die): Don't calculate message unless segv_action returns.
24532         (get_stack_location, min_address_from_argv, max_address_from_argv,
24533         volatile stack_base, volatile_stack_size): Remove.
24534         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
24535         that every segmentation violation is a stack overflow.  (Ouch!)
24536         See Debian bug 136249 (still outstanding) for more info about why
24537         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
24538
24539 2004-01-24  Paul Eggert  <eggert@twinsun.com>
24540
24541         Exit-status fix from coreutils.
24542
24543         Use exit_failure consistently in place of EXIT_FAILURE,
24544         so that program exit statuses are consistent on failure.
24545
24546         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
24547         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
24548         * lib/argmatch.h: Comment fix to match the above.
24549         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
24550         Now a macro referring to exit_failure, instead of a separate
24551         variable.  Include "exitfail.h" to get it.
24552         * lib/xstrtol.h: Include "exitfail.h".
24553         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
24554
24555         * lib/long-options.c (parse_long_options): Use prototype
24556         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
24557         for clarity.
24558
24559 2004-01-21  Jim Meyering  <jim@meyering.net>
24560
24561         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
24562         so as not to conflict with a different-sized __mktime_internal
24563         function in GNU libc.
24564         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
24565         Problem building statically-linked `ls' reported by Michael Brunnbauer.
24566
24567 2004-01-20  Karl Berry  <karl@gnu.org>
24568
24569         * config/config.guess: update from config.
24570
24571         * config/srclistvars.sh: GNUWWWLICENSES for karl.
24572
24573 2004-01-20  Bruno Haible  <bruno@clisp.org>
24574
24575         Safer stack allocation.
24576         * lib/setenv.c: Include allocsa.h.
24577         (alloca): Remove fallback definition.
24578         (freea): Remove macro.
24579         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
24580         instead of freea.
24581
24582 2004-01-20  Bruno Haible  <bruno@clisp.org>
24583
24584         * m4/eealloc.m4: New file, from GNU gettext.
24585
24586 2004-01-20  Bruno Haible  <bruno@clisp.org>
24587
24588         * m4/allocsa.m4: New file, from GNU gettext.
24589
24590 2004-01-20  Bruno Haible  <bruno@clisp.org>
24591
24592         * lib/xallocsa.h: New file, from GNU gettext.
24593         * lib/xallocsa.c: New file, from GNU gettext.
24594
24595 2004-01-20  Bruno Haible  <bruno@clisp.org>
24596
24597         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
24598
24599 2004-01-20  Bruno Haible  <bruno@clisp.org>
24600
24601         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
24602         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
24603         specially.
24604
24605 2004-01-20  Bruno Haible  <bruno@clisp.org>
24606
24607         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
24608         patch.
24609
24610 2004-01-20  Bruno Haible  <bruno@clisp.org>
24611
24612         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
24613
24614 2004-01-20  Bruno Haible  <bruno@clisp.org>
24615
24616         * lib/eealloc.h: New file.
24617
24618 2004-01-20  Bruno Haible  <bruno@clisp.org>
24619
24620         * lib/binary-io.h: Avoid warnings on Cygwin.
24621
24622 2004-01-20  Bruno Haible  <bruno@clisp.org>
24623
24624         * lib/allocsa.h: New file, from GNU gettext.
24625         * lib/allocsa.c: New file, from GNU gettext.
24626
24627 2004-01-18  Karl Berry  <karl@gnu.org>
24628
24629         * doc/gpl.texi, doc/lgpl.texi: new files.
24630
24631 2004-01-18  Karl Berry  <karl@gnu.org>
24632
24633         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
24634         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
24635
24636 2004-01-15  Paul Eggert  <eggert@twinsun.com>
24637
24638         Merge from coreutils.
24639
24640         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
24641         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
24642         (gl_DEFAULT_POSIX2_VERSION): Move
24643         the documentation from 'configure' into 'config.hin',
24644         so that 'configure --help' isn't burdened by it and
24645         we don't have to worry about its formatting there.
24646         Reword the documentation so that it's more succinct
24647         and can be run together into a single paragraph.
24648         * m4/same.m4 (gl_SAME): Check for pathconf.
24649
24650 2004-01-15  Paul Eggert  <eggert@twinsun.com>
24651
24652         Merge from coreutils.
24653
24654         * lib/posixver.c: Include posixver.h.
24655
24656         * lib/same.c: Include <stdbool.h>, <limits.h>.
24657         (_POSIX_NAME_MAX): Define if not defined.
24658         (MIN): New macro.
24659         (same_name): If file names are silently truncated, report
24660         that the file names are the same if they are the same after
24661         the silent truncation.
24662
24663         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
24664         conversion function.
24665         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
24666         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
24667         longer needed.
24668
24669 2004-01-15  Jim Meyering  <jim@meyering.net>
24670
24671         Merge from coreutils.
24672
24673         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
24674         if no library is required.
24675         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
24676         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
24677         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
24678         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
24679         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
24680         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
24681         value, $ac_cv_search_crypt, if it's "none required".
24682         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
24683         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
24684         not gl_FUNC_GETLOADAVG.
24685         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
24686         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
24687
24688 2004-01-15  Jim Meyering  <jim@meyering.net>
24689
24690         Merge from coreutils.
24691
24692         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
24693         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
24694         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
24695
24696         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
24697         optional configure-time default.
24698
24699         * lib/version-etc.c (version_etc_copyright): Update copyright date.
24700
24701         * lib/xreadlink.c (xreadlink): Correct outdated comment.
24702
24703 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
24704
24705         Merge from coreutils.
24706
24707         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
24708         value, $ac_cv_search_nanosleep, if it's "none required".
24709
24710 2004-01-14  Paul Eggert  <eggert@twinsun.com>
24711
24712         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
24713         with like-named macro in fnmatch.c.
24714         (EXT): Use an internal constant instead.
24715
24716         Merge fnmatch patches from glibc.
24717         * lib/fnmatch.c (mbsinit): Remove define.
24718         Add libc_hidden_ver (__fnmatch, fnmatch).
24719         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
24720         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
24721
24722 2004-01-14  Karl Berry  <karl@gnu.org>
24723
24724         * config/install-sh: update from automake.
24725
24726 2004-01-13  Karl Berry  <karl@gnu.org>
24727
24728         * config/install-sh: update from automake.
24729
24730 2004-01-09  Karl Berry  <karl@gnu.org>
24731
24732         * config/install-sh: update from automake.
24733
24734 2004-01-05  Karl Berry  <karl@gnu.org>
24735
24736         * config/config.{sub,guess}: update from config.
24737
24738 2003-12-31  Karl Berry  <karl@gnu.org>
24739
24740         * config/depcomp: update from automake.
24741
24742 2003-12-14  Karl Berry  <karl@gnu.org>
24743
24744         * lib/config.charset: update from gettext-runtime.
24745
24746 2003-12-03  Paul Eggert  <eggert@twinsun.com>
24747
24748         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
24749         Bug reported by Alfred M. Szmidt.
24750
24751 2003-12-03  Bruno Haible  <bruno@clisp.org>
24752
24753         * m4/gettext.m4: Upgrade from gettext-0.13.
24754         * m4/po.m4: Upgrade from gettext-0.13.
24755         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
24756         * m4/intmax.m4: New file, from gettext-0.13.
24757         * m4/printf-posix.m4: New file, from gettext-0.13.
24758
24759 2003-11-29  Karl Berry  <karl@gnu.org>
24760
24761         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
24762
24763 2003-11-25  Paul Eggert  <eggert@twinsun.com>
24764             Bruno Haible  <bruno@clisp.org>
24765
24766         * lib/printf-parse.h: Don't include sys/types.h.
24767         (ARG_NONE): New macro.
24768         (char_directive): Change type of *arg_index fields to size_t.
24769         * lib/printf-parse.c: Don't include sys/types.h.
24770         (SSIZE_MAX): Remove macro.
24771         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
24772         Remove unnecessary overflow check.
24773         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
24774         fields.
24775
24776 2003-11-25  Bruno Haible  <bruno@clisp.org>
24777
24778         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
24779
24780 2003-11-25  Bruno Haible  <bruno@clisp.org>
24781
24782         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
24783         gt_TYPE_SSIZE_T.
24784
24785 2003-11-24  Paul Eggert  <eggert@twinsun.com>
24786
24787         * modules/alloca: Remove dependency on xalloc.
24788
24789 2003-11-24  Paul Eggert  <eggert@twinsun.com>
24790
24791         * lib/alloca.c: Remove dependency on xalloc module.
24792         (xalloc_die): Remove.
24793         (memory_full) [!defined emacs]: New macro.
24794         [!defined emacs]: Don't include xalloc.h.
24795         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
24796         address arithmetic overflows.  Change datatypes a bit to avoid
24797         unnecessary casts.
24798
24799 2003-11-22  Jim Meyering  <jim@meyering.net>
24800
24801         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
24802         s/size/size_t/.
24803
24804 2003-11-21  Karl Berry  <karl@gnu.org>
24805
24806         * config/config.{sub,guess}: update from config.
24807
24808 2003-11-18  Karl Berry  <karl@gnu.org>
24809
24810         * config/config.{sub,guess}: update from config.
24811
24812         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
24813
24814 2003-11-17  Paul Eggert  <eggert@twinsun.com>
24815
24816         * README: Mention that S+T cannot overflow if S is the size of
24817         an existing object and T is sufficiently small.
24818
24819 2003-11-17  Jim Meyering  <jim@meyering.net>
24820
24821         On systems without utime and without a utimes function capable of
24822         dealing with a NULL struct utimbuf* argument, this utime replacement
24823         could -- in unusual circumstances -- leak a file descriptor.
24824         * lib/utime.c: Include <unistd.h> and <errno.h>.
24825         (utime_null): Be sure to close `fd' and to preserve errno.
24826         Reported by Geoff Collyer via Arnold Robbins.
24827
24828 2003-11-17  Bruno Haible  <bruno@clisp.org>
24829
24830         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
24831         (Depends-on): Add xsize.
24832
24833 2003-11-17  Bruno Haible  <bruno@clisp.org>
24834
24835         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
24836
24837 2003-11-17  Bruno Haible  <bruno@clisp.org>
24838
24839         * lib/vasnprintf.c (alloca): Remove fallback definition.
24840         (freea): Remove definition.
24841         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
24842         Reported by Paul Eggert.
24843
24844 2003-11-16  Paul Eggert  <eggert@twinsun.com>
24845             Bruno Haible  <bruno@clisp.org>
24846
24847         Protect against address arithmetic overflow.
24848         * lib/printf-args.h: Include stddef.h.
24849         (arguments): Change type of field 'count' to size_t.
24850         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
24851         'unsigned int' where appropriate.
24852         * lib/printf-parse.h: Include sys/types.h.
24853         (char_directive): Change type of *arg_index fields to ssize_t.
24854         (char_directives): Change type of fields 'count', max_*_length to
24855         size_t.
24856         * lib/printf-parse.c: Include sys/types.h and xsize.h.
24857         (SSIZE_MAX): Define fallback value.
24858         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
24859         instead of 'int' where appropriate. Check a_allocated, d_allocated
24860         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
24861         * lib/vasnprintf.c: Include xsize.h.
24862         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
24863         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
24864         overflow. Avoid wraparound when converting a width or precision from
24865         decimal to binary.
24866
24867 2003-11-16  Bruno Haible  <bruno@clisp.org>
24868
24869         Update from GNU gettext.
24870         * lib/printf-parse.c: Generalize to it can be compiled for wide
24871         strings.
24872         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
24873         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
24874         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
24875         SNPRINTF): New macros.
24876         Don't include <alloca.h> if the file is used inside libintl.
24877         (local_wcslen): New function, for Solaris 2.5.1.
24878         (VASNPRINTF): Use it instead of wcslen.
24879
24880 2003-11-16  Bruno Haible  <bruno@clisp.org>
24881
24882         * lib/xsize.h (xmax): New function.
24883         (xsum, xsum3, xsum4): Declare as "pure" functions.
24884
24885 2003-11-12  Paul Eggert  <eggert@twinsun.com>
24886
24887         * modules/xalloc (Files): Undo latest change, since xalloc.h
24888         no longer needs SIZE_MAX or PTRDIFF_MAX.
24889
24890 2003-11-12  Paul Eggert  <eggert@twinsun.com>
24891
24892         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
24893         gl_PTRDIFF_MAX.
24894
24895 2003-11-12  Paul Eggert  <eggert@twinsun.com>
24896
24897         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
24898         "return", to pacify some unknown compiler.  Problem reported
24899         by Joerg Schilling.
24900
24901 2003-11-12  Paul Eggert  <eggert@twinsun.com>
24902
24903         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
24904         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
24905         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
24906         heuristic is just as accurate as far as we know, and it removes a
24907         dependency on size_max.m4 and ptrdiff_max.m4.
24908
24909 2003-11-11  Bruno Haible  <bruno@clisp.org>
24910
24911         * modules/xsize (Files): Add m4/size_max.m4.
24912         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
24913
24914 2003-11-11  Bruno Haible  <bruno@clisp.org>
24915
24916         * m4/size_max.m4: New file.
24917         * m4/ptrdiff_max.m4: New file.
24918         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
24919         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
24920         (gl_XALLOC): Invoke it.
24921
24922 2003-11-11  Bruno Haible  <bruno@clisp.org>
24923
24924         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
24925         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
24926         defined.
24927
24928 2003-11-10  Paul Eggert  <eggert@twinsun.com>
24929
24930         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
24931         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
24932         rejected some allocations of exactly SIZE_MAX - 2 bytes.
24933         From Bruno Haible.
24934         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
24935         not (size_t) -1, since it's defined here.
24936
24937 2003-11-09  Karl Berry  <karl@gnu.org>
24938
24939         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
24940
24941 2003-11-06  Paul Eggert  <eggert@twinsun.com>
24942
24943         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
24944         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
24945         Reject sizes of exactly SIZE_MAX bytes.
24946         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
24947         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
24948
24949 2003-11-05  Bruno Haible  <bruno@clisp.org>
24950
24951         * lib/xsize.h: Include limits.h, to avoid a possible collision with
24952         SIZE_MAX defined in <limits.h> on Solaris.
24953
24954 2003-11-04  Jim Meyering  <jim@meyering.net>
24955
24956         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
24957         variable names, rather than @VAR@.
24958         * modules/poll: Likewise.
24959
24960 2003-11-04  Bruno Haible  <bruno@clisp.org>
24961
24962         * modules/xsize: New file.
24963         * modules/linebreak: Depend on xsize.
24964         * MODULES.html.sh (func_all_modules): Add xsize.
24965
24966 2003-11-04  Bruno Haible  <bruno@clisp.org>
24967
24968         * m4/xsize.m4: New file.
24969
24970 2003-11-04  Bruno Haible  <bruno@clisp.org>
24971
24972         * lib/xsize.h: New file.
24973         * lib/linebreak.c: Include xsize.h.
24974         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
24975         argument for overflow.
24976         Suggested by Paul Eggert.
24977
24978 2003-11-03  Karl Berry  <karl@gnu.org>
24979
24980         * config/config.{guess,sub}: update from config.
24981
24982 2003-11-03  Jim Meyering  <jim@meyering.net>
24983
24984         * modules/userspec (lib_SOURCES): Add userspec.h.
24985         (Include): Add "userspec.h".
24986         Improve description.
24987
24988 2003-11-03  Jim Meyering  <jim@meyering.net>
24989
24990         * lib/userspec.c: Include "userspec.h".
24991         * lib/userspec.h: New file.
24992
24993 2003-11-03  Bruno Haible  <bruno@clisp.org>
24994
24995         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
24996
24997 2003-11-03  Bruno Haible  <bruno@clisp.org>
24998
24999         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
25000         available, to avoid (extremely rare) race condition.
25001         Suggested by Paul Eggert.
25002
25003 2003-11-02  Karl Berry  <karl@gnu.org>
25004
25005         * config/srclist.txt (vasprintf.c): sync broken, sigh.
25006
25007 2003-10-31  Paul Eggert  <eggert@twinsun.com>
25008
25009         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
25010         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
25011         (read_filesystem_list): Set and use me_type_malloced.
25012         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
25013         whatever the type happens to be), for brevity and consistency.
25014         Check for size calculation overflow on Alphas running OSF/1.
25015
25016 2003-10-31  Jim Meyering  <jim@meyering.net>
25017
25018         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
25019
25020         * lib/linebuffer.c: Include <string.h> for declaration of memset.
25021
25022 2003-10-30  Paul Eggert  <eggert@twinsun.com>
25023             Bruno Haible  <bruno@clisp.org>
25024
25025         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
25026         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
25027
25028 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
25029
25030         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
25031         netbsd*-gnu*.  Suggested by Robert Millan.
25032
25033 2003-10-29  Paul Eggert  <eggert@twinsun.com>
25034
25035         * modules/group-member: Depend on stdbool.
25036
25037 2003-10-29  Paul Eggert  <eggert@twinsun.com>
25038
25039         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
25040
25041 2003-10-29  Paul Eggert  <eggert@twinsun.com>
25042
25043         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
25044         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
25045         after the 'gnu' in these cases.  This fixes some bugs in the
25046         previous change, and is based on suggestions by Robert Millan.
25047
25048 2003-10-29  Paul Eggert  <eggert@twinsun.com>
25049
25050         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
25051         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
25052         no longer needed.
25053         * lib/quotearg.c (quotearg_n_options): Use it.
25054         * lib/group-member.c: Include <stdbool.h>.
25055         (free_group_info): Arg is now const *; don't free arg.
25056         (get_group_info): Now returns bool and accepts struct group_info *,
25057         rather than returning a malloc'ed struct group_info *.
25058         All uses changed.  Check for overflow in internal size calculation.
25059
25060         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
25061         rather than xmalloc/xrealloc.
25062         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
25063         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
25064         conformance bug: the old code used a pointer after freeing the
25065         storage that it addressed.
25066         * lib/hash.c (hash_initialize): Simplify the code by using
25067         xalloc_oversized rather than doing it by hand.
25068         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
25069         the buffer preserved.  Use free and xmalloc instead.
25070         * lib/quotearg.c (quotearg_n_options): Likewise.
25071         Use a simpler test for size overflow.  Don't use xalloc_oversized
25072         because unsigned int might be wider than size_t (!); this suggests
25073         that we should switch from unsigned int to size_t for slot numbers.
25074
25075 2003-10-28  Paul Eggert  <eggert@twinsun.com>
25076
25077         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
25078         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
25079         NetBSD kernels.  Requested by Richard Stallman.
25080
25081 2003-10-27  Paul Eggert  <eggert@twinsun.com>
25082
25083         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
25084         to allocate the returned structure.  Do not allocate a subarray,
25085         as x2nrealloc will do that.
25086         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
25087         instead of xnrealloc.
25088         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
25089
25090 2003-10-27  Bruno Haible  <bruno@clisp.org>
25091
25092         * lib/stdbool_.h: Better support for BeOS.
25093
25094 2003-10-26  Paul Eggert  <eggert@twinsun.com>
25095
25096         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
25097         now uses inline.
25098
25099 2003-10-26  Paul Eggert  <eggert@twinsun.com>
25100
25101         * lib/xalloc.h (xalloc_oversized): New static inline function, for
25102         callers that want to do their own size-overflow checking.  Include
25103         <stdbool.h>, since xalloc_oversized returns bool.
25104         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
25105         to use xalloc_oversized.
25106
25107         Add two functions x2realloc, x2nrealloc, for programs that grow
25108         arrays dynamically by doubling their sizes.
25109         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
25110         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
25111         New functions.
25112
25113         Port to C99 semantics for 'inline' of external functions.
25114         Bug reported by Bruno Haible.
25115         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
25116         with the old contents of xnmalloc.
25117         (xnmalloc, xmalloc): Use it.
25118         (xnrealloc_inline): New static inline function,
25119         with the old contents of xnrealloc.
25120         (xnrealloc, xrealloc): Use it.
25121
25122         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
25123         that.
25124
25125 2003-10-26  Karl Berry  <karl@gnu.org>
25126
25127         * config/srclist.txt (COPYING.DOC): no longer available from
25128         /gd/gnuorg; don't know where the ultimate source is.
25129
25130 2003-10-25  Paul Eggert  <eggert@twinsun.com>
25131
25132         Fix several address-calculation bugs in the hash modules,
25133         plus some minor code cleanup.
25134
25135         * lib/hash.h: Include <stdbool.h>, for bool.
25136         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
25137         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
25138         hash_get_n_entries, hash_get_max_bucket_length,
25139         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
25140         hash_rehash): Use size_t rather than unsigned.
25141         * lib/hash.c (struct hash_table, hash_get_n_buckets,
25142         hash_get_n_buckets_used, hash_get_n_entries,
25143         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
25144         hash_get_entries, hash_do_for_each, hash_string, is_prime,
25145         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
25146         Likewise.
25147         (SIZE_MAX): Define if not defined.
25148         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
25149         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
25150         hash_print):
25151         Use const * when possible.
25152         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
25153         (check_tuning): Fix bug: if tuning parameters were very close to
25154         0 or 1, rounding errors could have caused subscript violations.
25155         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
25156         (hash_initialize): Add 'fail:' label
25157         to free table and return NULL, and use it to simplify code.
25158         Use calloc rather than clearing the storage ourself.
25159         (hash_initialize, hash_rehash): Check for arithmetic overflow in
25160         buffer size calculations.
25161         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
25162         Include <stddef.h>, for size_t.
25163         * lib/hash-pjw.c (hash_pjw): Likewise.
25164         Switch to method described by Bruno Haible.
25165         Include <limits.h>, for CHAR_BIT.
25166         (SIZE_BITS): New macro.
25167
25168 2003-10-23  Paul Eggert  <eggert@twinsun.com>
25169
25170         * m4/getline.m4 (AM_FUNC_GETLINE):
25171         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
25172         hosts.  Problem reported by Derek Robert Price in
25173         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
25174         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
25175         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
25176
25177 2003-10-21  Paul Eggert  <eggert@twinsun.com>
25178
25179         * lib/getndelim2.c (getndelim2): When size calculation overflows,
25180         ceiling the allocation at NMAX bytes rather than silently
25181         discarding input bytes before NMAX is reached.  This makes
25182         a difference only if NMAX exceeds SIZE_MAX / 2.
25183
25184         * lib/obstack.c: Merge from glibc.
25185         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
25186         Add libc_hidden_def (_obstack_newchunk).
25187         (_obstack_free) [! defined _LIBC]: Remove.
25188         [defined _LIBC]: Make a strong alias from obstack_free, rather than
25189         a clone of the function body.
25190         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
25191         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
25192
25193         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
25194         glibc.
25195         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
25196         arg to memcpy.
25197
25198         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
25199         (obstack_ptr_grow_fast, obstack_int_grow_fast):
25200         Don't use lvalue casts, as GCC plans to remove support for them
25201         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
25202         was also present in the non-GCC version, indicating that this
25203         code had always been buggy and had never been widely used.
25204         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
25205         Use the fast variant of each macro, rather than copying the
25206         definiens of the fast variant; that way, we'll be more likely to
25207         catch future bugs in the fast variants.
25208
25209 2003-10-20  Bruno Haible  <bruno@clisp.org>
25210
25211         * modules/wait-process: New file.
25212         * MODULES.html.sh (func_all_modules): Add wait-process.
25213
25214 2003-10-20  Bruno Haible  <bruno@clisp.org>
25215
25216         * m4/wait-process.m4: New file.
25217
25218 2003-10-20  Bruno Haible  <bruno@clisp.org>
25219
25220         * lib/wait-process.h: New file, from GNU gettext.
25221         * lib/wait-process.c: New file, from GNU gettext.
25222
25223 2003-10-19  Jim Meyering  <jim@meyering.net>
25224
25225         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
25226         HPUX 10.20.
25227
25228 2003-10-18  Karl Berry  <karl@gnu.org>
25229
25230         * config/config.guess: update from config.
25231
25232 2003-10-16  Paul Eggert  <eggert@twinsun.com>
25233
25234         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
25235         (getgroups): First arg is int, not size_t.
25236         Don't let 'free' mangle errno.
25237
25238 2003-10-16  Paul Eggert  <eggert@twinsun.com>
25239
25240         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
25241
25242 2003-10-16  Karl Berry  <karl@gnu.org>
25243
25244         * config/config.{guess,sub}: update from config.
25245
25246 2003-10-16  Jim Meyering  <jim@meyering.net>
25247
25248         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
25249         memcpy.
25250
25251 2003-10-15  Paul Eggert  <eggert@twinsun.com>
25252
25253         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
25254         (SIZE_MAX): Remove.
25255         (new_exclude, add_exclude_file): Initial size no longer needs to
25256         be a power of 2.
25257         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
25258         our own address arithmetic overflow checking.
25259
25260         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
25261         (fnmatch): Do not alloca more than 2000 wide characters;
25262         instead, use malloc for large buffers.
25263         Check for address arithmetic overflow, and return -1
25264         with errno set to ENOMEM in that case.
25265         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
25266         (NEW_PATTERN): Do not alloca more than 8000 bytes;
25267         instead, return -1.  Check for address arithmetic overflow.
25268
25269 2003-10-14  Paul Eggert  <eggert@twinsun.com>
25270
25271         Handle invalid suffixes and overflow independently, so that
25272         callers can treat them independently as needed.  Fix some bugs in
25273         suffix handling, e.g., "100k@" was not diagnosed as an invalid
25274         suffix for a human-readable blocksize.  The major caller-visible
25275         change is the addition of a new
25276         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
25277         that both overflow and suffix chars were found.
25278
25279         * lib/human.c (humblock): Don't check separately for invalid suffix
25280         char; that is xstrtoumax's job (now that its bug is fixed).
25281         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
25282         INTMAX_MAX]: New macros.
25283         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
25284         TYPE_MAXIMUM): New macros.
25285         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
25286         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
25287         if overflow occurs, as it's what __strtol does and it's more useful
25288         in practice.
25289         (__xstrtol): If __strtol reports some error other than ERANGE,
25290         reflect it to the caller as LONGINT_INVALID.  If it reports
25291         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
25292         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
25293         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
25294         value.
25295         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
25296         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
25297         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
25298         [defined UINTMAX_MAX]: New macros.
25299
25300 2003-10-14  Bruno Haible  <bruno@clisp.org>
25301
25302         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
25303
25304 2003-10-14  Bruno Haible  <bruno@clisp.org>
25305
25306         * m4/sig_atomic_t: New file, from GNU gettext.
25307         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
25308
25309 2003-10-14  Bruno Haible  <bruno@clisp.org>
25310
25311         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
25312         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
25313         Also use volatile where needed.
25314
25315 2003-10-12  Paul Eggert  <eggert@twinsun.com>
25316
25317         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
25318         Change maintainer from Bruno Haible to 'all'.
25319
25320 2003-10-12  Paul Eggert  <eggert@twinsun.com>
25321
25322         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
25323
25324 2003-10-12  Paul Eggert  <eggert@twinsun.com>
25325
25326         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
25327         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
25328         and define in terms of the other primitives.
25329         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
25330         (SIZE_MAX): Define if not already defined.
25331         (array_size_overflow): New function.
25332         (xalloc_die): Abort instead of exiting if 'error' returns.
25333         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
25334         (xmalloc, xrealloc): Use them.
25335         (xcalloc): Check for address arithmetic overflow.
25336         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
25337         a bit faster than strcpy.
25338
25339 2003-10-10  Simon Josefsson  <jas@extundo.com>
25340
25341         * modules/argp (Depends-on): Add restrict and strcase.
25342
25343 2003-10-10  Simon Josefsson  <jas@extundo.com>
25344
25345         * m4/argp.m4: Add AC_C_INLINE.
25346
25347 2003-10-08  Paul Eggert  <eggert@twinsun.com>
25348
25349         Merge getpass from libc, plus a few fixes.
25350
25351         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
25352         Include <stdbool.h>.
25353         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
25354         __fsetlocking to empty.
25355         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
25356         do include <bits/libc-lock.h>.
25357         Do not include <fcntl.h>; not needed.
25358         [_LIBC]: Include <wchar.h>.
25359         (NOTCANCEL_MODE): New macro.
25360         (flockfile, funlockfile) [_LIBC]: New macros.
25361         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
25362         [!_LIBC]: New macros.
25363         (call_fclose): New function.
25364         (getpass): Use it.  Save tty stream separately; this simplifies the
25365         code and makes it more reliable if stdin happens to equal stdout.
25366         Invoke __fsetlocking on tty.
25367         Handle thread cancellation if needed.
25368         Namespace cleanup (use __tcgetattr, __getline).
25369         Use bool for Booleans.
25370         [USE_IN_LIBIO]: Handle wide streams.
25371         [!_LIBC]: Unconditionally do the fseek, since we don't know what
25372         stream might go where.
25373
25374         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
25375         doesn't have to include <stdio.h> before us.
25376         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
25377         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
25378         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
25379         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
25380         if not declared, so that we can use getpass.c code from libc without
25381         rewriting it.
25382         (flockfile, ftrylockfile, funlockfile): New macros.
25383
25384 2003-10-08  Paul Eggert  <eggert@twinsun.com>
25385
25386         * modules/getpass: Depend on stdbool.
25387
25388 2003-10-08  Paul Eggert  <eggert@twinsun.com>
25389
25390         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
25391
25392 2003-10-07  Karl Berry  <karl@gnu.org>
25393
25394         * config/config.{guess,sub}: update from config.
25395
25396 2003-10-06  Jim Meyering  <jim@meyering.net>
25397             Bruno Haible  <bruno@clisp.org>
25398
25399         This lets translators provide better translations for the
25400         "Written by ..." part of --version output.
25401         * lib/version-etc.h: Include stdarg.h.
25402         (version_etc_copyright): Declare as readonly.
25403         (version_etc): Make this function variadic with a NULL-terminated list
25404         of author name strings.
25405         (version_etc_va): New declaration.
25406         * lib/version-etc.c: Include stdarg.h, stdlib.h.
25407         (version_etc_copyright): Declare as readonly.
25408         (version_etc_va): New function. Provide a different translatable string
25409         for each possible number of authors < 10. Abbreviate when there are 10
25410         authors or more.
25411         (version_etc): Make this function variadic. Call version_etc_va.
25412         Suggestion from Gary V. Vaughan.
25413
25414         * lib/long-options.h (parse_long_options): Change prototype: the
25415         authors string is moved to the end and becomes variadic.
25416         * lib/long-options.c: Include stdarg.h.
25417         (parse_long_options): Make this function variadic, too.
25418         Call version_etc_va, not version_etc.
25419
25420 2003-10-06  Bruno Haible  <bruno@clisp.org>
25421
25422         * modules/version-etc-2: Remove file.
25423         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
25424
25425 2003-10-06  Bruno Haible  <bruno@clisp.org>
25426
25427         * modules/fatal-signal: New file.
25428         * MODULES.html.sh (func_all_modules): Add fatal-signal.
25429
25430 2003-10-06  Bruno Haible  <bruno@clisp.org>
25431
25432         * m4/fatal-signal.m4: New file.
25433         * m4/signalblocking.m4: New file, from GNU gettext.
25434
25435 2003-10-06  Bruno Haible  <bruno@clisp.org>
25436
25437         * lib/version-etc-2.h: Remove file.
25438         * lib/version-etc-2.c: Remove file.
25439
25440 2003-10-06  Bruno Haible  <bruno@clisp.org>
25441
25442         * lib/fatal-signal.h: New file, from GNU gettext.
25443         * lib/fatal-signal.c: New file, from GNU gettext.
25444
25445 2003-10-05  Paul Eggert  <eggert@twinsun.com>
25446
25447         * README: Rework advice for preventing empty .o files.
25448         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
25449         not <sys/types.h>.
25450
25451 2003-10-04  Karl Berry  <karl@gnu.org>
25452
25453         * lib/argp*: update from libc.
25454
25455 2003-10-04  Karl Berry  <karl@gnu.org>
25456
25457         * config/config.{guess,sub}: update from config.
25458
25459 2003-10-02  Bruno Haible  <bruno@clisp.org>
25460
25461         * modules/lchown (Include): Add lchown.h.
25462         * modules/time_r (Include): Use "..." syntax.
25463         * modules/xgetdomainname (Include): Add xgetdomainname.h.
25464
25465 2003-10-01  Simon Josefsson  <jas@extundo.com>
25466
25467         * MODULES.html.sh (func_all_modules): Move gethostname from section
25468         'based on' to section 'lacking' POSIX:2001.
25469
25470 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
25471
25472         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
25473         to output mode on the same stream.
25474
25475 2003-09-29  Paul Eggert  <eggert@twinsun.com>
25476
25477         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
25478         Fix arg typo in previous patch.
25479
25480 2003-09-28  Jim Meyering  <jim@meyering.net>
25481
25482         * lib/error.c: Correct cpp indentation.
25483
25484 2003-09-27  Paul Eggert  <eggert@twinsun.com>
25485
25486         * modules/free: New file.
25487
25488 2003-09-27  Paul Eggert  <eggert@twinsun.com>
25489
25490         * m4/free.m4: New file.
25491
25492 2003-09-27  Paul Eggert  <eggert@twinsun.com>
25493
25494         * lib/minmax.h (MIN, MAX)
25495         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
25496         Omit the special code that used __typeof__, since we worry that
25497         it could be more trouble than it's worth.  See:
25498         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
25499         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
25500
25501         * lib/free.c: New file.
25502
25503 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
25504
25505         Trivial fixes to Makefile.am parts of module listings.
25506         * modules/strstr: Append strstr.h to lib_SOURCES.
25507         * modules/strcase: Likewise, for strcase.h.
25508
25509 2003-09-27  Karl Berry  <karl@gnu.org>
25510
25511         * config/mkinstalldirs: update from automake.
25512
25513 2003-09-26  Paul Eggert  <eggert@twinsun.com>
25514
25515         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
25516         (error_tail): Do not loop, reallocating temporary buffer, since
25517         the output cannot contain more wide characters than the input
25518         contains bytes, the size must be big enough already.  This avoids
25519         one potential size overflow calculation.  Check for size overflow
25520         when calculating temporary buffer size.  Free temporary buffer
25521         when done, if it was allocated with malloc; this plugs a memory
25522         leak.  Remove casts from void * to pointers, that are no longer
25523         needed now that we're assuming C89 or better.
25524
25525         Merge error changes from glibc.
25526
25527         * lib/error.c, error.h: Update copyright notice header to match glibc.
25528         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
25529         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
25530         Disable cancellation while printing error.
25531         * lib/error.h: Prepend __ to parameter names.
25532
25533 2003-09-26  Jim Meyering  <jim@meyering.net>
25534
25535         * lib/error.c (error_tail): Move some declarations
25536         into inner scope where the local variables are used.
25537
25538 2003-09-26  Bruno Haible  <bruno@clisp.org>
25539
25540         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
25541         stpncpy().
25542         Don't define stpncpy through config.h; it's now done through stpncpy.h.
25543
25544 2003-09-26  Bruno Haible  <bruno@clisp.org>
25545
25546         * lib/stpncpy.h (gnu_stpncpy): New declaration.
25547         (stpncpy): Define as alias for gnu_stpncpy.
25548         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
25549
25550 2003-09-25  Simon Josefsson  <jas@extundo.com>
25551
25552         * lib/xgetdomainname.h: New file.
25553         * lib/xgetdomainname.c: New file.
25554
25555 2003-09-25  Simon Josefsson  <jas@extundo.com>
25556             Bruno Haible  <bruno@clisp.org>
25557
25558         * modules/getdomainname: New file.
25559         * modules/xgetdomainname: New file.
25560         * MODULES.html.sh (func_all_modules): Add getdomainname,
25561         xgetdomainname.
25562
25563 2003-09-25  Simon Josefsson  <jas@extundo.com>
25564             Bruno Haible  <bruno@clisp.org>
25565
25566         * m4/getdomainname.m4: New file.
25567
25568 2003-09-25  Simon Josefsson  <jas@extundo.com>
25569             Bruno Haible  <bruno@clisp.org>
25570
25571         * lib/getdomainname.h: New file.
25572         * lib/getdomainname.c: New file.
25573
25574 2003-09-25  Karl Berry  <karl@gnu.org>
25575
25576         * lib/argp-fmtstream.c, argp-help.c: update from libc.
25577
25578 2003-09-25  Karl Berry  <karl@gnu.org>
25579
25580         * config/install-sh: update from automake.
25581
25582 2003-09-25  Bruno Haible  <bruno@clisp.org>
25583
25584         * modules/version-etc-2: New file, from modules/version-etc with
25585         modifications.
25586         * MODULES.html.sh (func_all_modules): Add version-etc-2.
25587
25588 2003-09-25  Bruno Haible  <bruno@clisp.org>
25589
25590         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
25591         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
25592
25593 2003-09-24  Simon Josefsson  <jas@extundo.com>
25594
25595         * modules/xgethostname: Add xgethostname.h.
25596
25597 2003-09-24  Paul Eggert  <eggert@twinsun.com>
25598
25599         * lib/linebuffer.c (freebuffer): Don't free the argument, just
25600         the buffer associated with the argument.  Bug reported by
25601         Simon Josefsson.
25602
25603 2003-09-24  Paul Eggert  <eggert@twinsun.com>
25604
25605         * README: Document assumptions that 'int' is at least 32 bits
25606         wide, that integer arithmetic is 2's complement without overflow,
25607         that there are no holes in integer values, that adding sizes of
25608         two nonoverlapping objects can't overflow, and that all-bits-zero
25609         yields scalar zero.  Fix spelling and capitalization typos.
25610
25611 2003-09-19  Karl Berry  <karl@gnu.org>
25612
25613         * lib/argp.h: update from libc.
25614
25615 2003-09-17  Paul Eggert  <eggert@twinsun.com>
25616
25617         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
25618         to avoid spurious warnings like "AC_RUN_IFELSE was called before
25619         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
25620
25621 2003-09-17  Paul Eggert  <eggert@twinsun.com>
25622
25623         * gnulib-tool: Use "test -h", not "test -L", for portability
25624         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
25625         (tags_regexp): Remove, since \| doesn't conform to POSIX.
25626         (sed_extract_prog): Issue s commands one-by-one, rather than
25627         using \| in one s command.
25628
25629 2003-09-16  Paul Eggert  <eggert@twinsun.com>
25630
25631         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
25632         input error, instead of returning NULL the next time we are called
25633         (and therefore losing track of errno).
25634
25635 2003-09-16  Bruno Haible  <bruno@clisp.org>
25636
25637         * gnulib-tool (func_create_testdir): Warn about duplicated
25638         dependencies.
25639
25640 2003-09-15  Paul Eggert  <eggert@twinsun.com>
25641
25642         * modules/argmatch, modules/fatal, modules/obstack,
25643         modules/xalloc, modules/xgethostname: Sort dependencies by
25644         importance, not alphabetically.
25645
25646 2003-09-15  Paul Eggert  <eggert@twinsun.com>
25647
25648         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
25649         fails, so that the caller gets the proper errno.
25650
25651         * lib/readutmp.c (read_utmp): Likewise.
25652         Check for fstat error.  Close stream and free storage
25653         when failing.
25654
25655 2003-09-14  Karl Berry  <karl@gnu.org>
25656
25657         * config/srclist.txt (strdup.c): disable for c89 changes.
25658
25659 2003-09-14  Jim Meyering  <jim@meyering.net>
25660
25661         * lib/getloadavg.c: Correct cpp indentation.
25662         * lib/strdup.c: Likewise.
25663         * lib/vasnprintf.c: Likewise.
25664
25665 2003-09-14  Bruno Haible  <bruno@clisp.org>
25666
25667         * modules/fwriteerror: New file.
25668         * MODULES.html.sh (func_all_modules): Add fwriteerror.
25669
25670 2003-09-14  Bruno Haible  <bruno@clisp.org>
25671
25672         * lib/fwriteerror.h: New file.
25673         * lib/fwriteerror.c: New file.
25674
25675 2003-09-12  Paul Eggert  <eggert@twinsun.com>
25676
25677         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
25678         modules/xgethostname, modules/xalloc: Depend on exit.
25679
25680 2003-09-12  Paul Eggert  <eggert@twinsun.com>
25681
25682         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
25683
25684         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
25685         and AC_MINIX, too, so that their extensions are available.
25686
25687         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
25688         This macro has been superseded by gl_BACKUPFILE.
25689
25690         More patches to assume C89 or better.
25691
25692         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
25693
25694         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
25695         unconditionally.
25696         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
25697         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
25698         Include <string.h>, <stdlib.h> unconditionally.
25699         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
25700         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
25701         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
25702         headers or for string.h.
25703         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
25704         or strtoul.
25705
25706         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
25707         headers.
25708         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
25709         * m4/userspec.m4 (gl_USERSPEC): Likewise.
25710         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
25711         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
25712         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
25713         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
25714         memcpy, memset.
25715         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
25716         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
25717         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
25718         strtol.
25719         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
25720         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
25721         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
25722         strtoul.
25723
25724 2003-09-12  Paul Eggert  <eggert@twinsun.com>
25725
25726         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
25727         * lib/obstack.c [!defined _LIBC]: Likewise.
25728         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
25729         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
25730         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
25731
25732         More changes to assume C89 or better.
25733
25734         * lib/error.c (error_tail): Assume vprintf.
25735
25736         * lib/argmatch.c (getenv): Remove decl.
25737         * lib/progreloc.c (get_full_program_name): Define via prototype.
25738         * lib/setenv.c (clearenv): Likewise.
25739         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
25740         needed.
25741         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
25742         (malloc, memcpy): Remove decls.
25743         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
25744         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
25745         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
25746         (memcpy): Remove macro.
25747         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
25748         (__P): Remove.  All uses removed.
25749         (PTR): Remove.  All uses changed to void *.
25750         (CHAR_BIT, NULL): Remove.
25751         (spaces, zeros, memset_space, memset_zero)
25752         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
25753         Remove.
25754         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
25755         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
25756         Define with prototype.
25757         Remove now-unnecessary prototype decl.
25758         (extra_args_spec): Assume ANSI C.  All uses changed.
25759         (extra_args_spec_iso): Remove.
25760         (my_strftime, emacs_strftimeu): Define via prototype.
25761         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
25762         unconditionally.
25763         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
25764         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
25765         (strtoul, strtol): Remove decls.
25766         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
25767         LONG_MAX): Remove.
25768         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
25769         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
25770         (LOCALE_PARAM_PROTO): New macro.
25771         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
25772         (INTERNAL (strtol), strtol): Define with a prototype.
25773         (PARAMS): Remove.  All uses removed.
25774         * lib/tempname.c: Include <string.h> unconditionally.
25775         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
25776         * lib/xgethostname.c (main): Define with a prototype.
25777         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
25778         Include <stdlib.h> unconditionally.
25779         (calloc, malloc, realloc, free): Remove decls.
25780         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
25781         Include <stdlib.h> unconditionally.  Sort include file names.
25782         (strtod): Remove.
25783         (xstrtod): Define with a prototype.
25784         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
25785         (strtol, strtoul): Remove decls.
25786
25787 2003-09-11  Paul Eggert  <eggert@twinsun.com>
25788
25789         More patches to assume C89 or better.
25790         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
25791         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
25792         string.h, memchr, STDC_HEADERS.
25793
25794 2003-09-11  Paul Eggert  <eggert@twinsun.com>
25795
25796         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
25797         Include <stdlib.h>, <string.h> unconditionally.
25798         Remove now-unnecessary cast to char *.
25799         * lib/strnlen.c: Include <string.h> unconditionally.
25800         * lib/yesno.c (yesno): Define with a prototype.
25801
25802 2003-09-11  Bruno Haible  <bruno@clisp.org>
25803
25804         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
25805
25806 2003-09-10  Jim Meyering  <jim@meyering.net>
25807
25808         * lib/error.c: Correct indentation of cpp directives.
25809
25810 2003-09-10  Bruno Haible  <bruno@clisp.org>
25811
25812         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
25813         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
25814         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
25815         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
25816         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
25817         <stdlib.h> and <string.h> checks.
25818         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
25819         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
25820
25821 2003-09-10  Bruno Haible  <bruno@clisp.org>
25822
25823         * lib/strcspn.c: Include <string.h> unconditionally.
25824         * lib/strpbrk.c: Include <string.h> unconditionally.
25825         * lib/strstr.c: Include <string.h> unconditionally.
25826         * lib/unicodeio.c: Include <string.h> unconditionally.
25827         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
25828         * lib/unsetenv.c: Likewise.
25829         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
25830         * lib/yesno.c: Include <stdlib.h> unconditionally.
25831         (rpmatch): Add prototype.
25832
25833 2003-09-09  Paul Eggert  <eggert@twinsun.com>
25834
25835         More patches to assume C89 or better.
25836         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
25837         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
25838         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
25839         or for string.h.
25840         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
25841         stdlib.h.
25842         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
25843         C headers.
25844         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
25845         string.h.
25846         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
25847         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
25848         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
25849         or for string.h.
25850         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
25851         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
25852         C headers.
25853         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
25854         memcpy.
25855         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
25856         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
25857         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
25858         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
25859         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
25860         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
25861         string.h, free.
25862         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
25863         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
25864         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
25865         C headers, or for string.h.
25866         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
25867         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
25868         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
25869         headers, memory.h, stdlib.h, string.h, strings.h.
25870         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
25871         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
25872         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
25873         strchr.
25874         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
25875         headers, memory.h, string.h.
25876         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
25877         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
25878         free.
25879         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
25880         headers.
25881         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
25882         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
25883         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
25884         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
25885         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
25886
25887 2003-09-09  Paul Eggert  <eggert@twinsun.com>
25888
25889         More K&R removal.
25890
25891         * lib/acosl.c (main): Use a prototype.
25892         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
25893         tanl.c: Likewise.
25894
25895         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
25896
25897         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
25898         (getopt, etopt_long, getopt_long_only, _getopt_internal)
25899         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
25900         with a prototype.
25901         * lib/getopt.c (const): Remove macro.
25902         Include <string.h> unconditionally.
25903         (my_index): Remove; all uses changed to strchr.
25904         (strlen): Remove decl.
25905         (exchange): Remove forward decl; no longer needed.
25906         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
25907         Define with prototype.
25908         * lib/getopt1.c (const): Remove macro.
25909         (getopt_long, getopt_long_only, main): Define with prototype.
25910
25911         * lib/getugroups.c: Include <string.h> unconditionally.
25912
25913         * lib/getusershell.c: Include <stdlib.h> unconditionally.
25914         (getusershell, setusershell, endusershell, readname, main):
25915         Define with prototypes.
25916
25917         * lib/group-member.c: Include group-member.h first.
25918         Include <stdlib.h> unconditionally.
25919
25920         * lib/hard-locale.c: Include hard-locale.h first.
25921         Include <stdlib.h>, <string.h> unconditionally.
25922
25923         * lib/hash.c (free, malloc): Remove decls.
25924         Include <stdlib.h> unconditionally.
25925
25926         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
25927         (getenv): Do not declare.
25928
25929         * lib/idcache.c: Include <string.h> unconditionally.
25930
25931         * lib/long-options.c: Include long-options.h first, to test interface.
25932         Include <stdlib.h> unconditionally.
25933
25934         * lib/makepath.c: Include makepath.h first, to test interface.
25935         Include <stdlib.h> and <string.h> unconditionally.
25936
25937         * lib/linebuffer.c: Include <stdlib.h>.
25938         (free): Remove decl.
25939
25940         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
25941         stddef.h. rpl_malloc returns void *, not char *.
25942         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
25943         prototype.
25944
25945         * lib/md5.h: Include <limits.h> unconditionally.
25946         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
25947         (__P): Remove; all uses removed.
25948         * lib/md5.c: Include "md5.h" first.
25949         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
25950         md5_buffer, md5_process_bytes, md5_process_block):
25951         Define with prototypes.
25952         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
25953         * lib/sha.c: Include "sha.h" first.
25954         Include <stdlib.h>, <string.h> unconditionally.
25955
25956         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
25957         * lib/memcmp.c (__ptr_t): Likewise.
25958         * lib/memrchr.c (__ptr_t): Likewise.
25959         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
25960         Include <string.h> unconditionally.
25961         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
25962         * lib/memchr.c: Include <stdlib.h> unconditionally.
25963         * lib/memchr.c (LONG_MAX): Remove.
25964         * lib/memrchr.c (LONG_MAX): Likewise.
25965         * lib/memchr.c (__memchr): Define via a prototype.
25966         * lib/memrchr.c (__memrchr): Likewise.
25967         * lib/memcmp.c (__P): Remove, and remove all uses.
25968         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
25969         Remove forward decls; no longer needed.
25970         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
25971         Use types required by C89 in prototype.
25972
25973         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
25974         * lib/savedir.c: Likewise.
25975         * lib/mkdir.c (free): Remove decl.
25976         * lib/rmdir.c (rmdir): Define with a prototype.
25977         * lib/savedir.c: Include savedir.h first, to test interface.
25978
25979         * lib/mktime.c (STDC_HEADERS): Remove.
25980         Include <stdlib.h>, <string.h> unconditionally.
25981
25982         * lib/modechange.c: Include <stdlib.h> unconditionally.
25983         (malloc): Remove decl.
25984
25985         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
25986         (free): Remove decl.
25987
25988         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
25989         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
25990         (This type really should be intptr_t, but that's a C99ism.)
25991         (_obstack_memcpy): Remove: all uses changed to memcpy.
25992         Include <string.h> unconditionally.
25993         (struct obstack): Assume __STDC__ for types of members
25994         chunkfun, freefun, extra_arg.
25995         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
25996         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
25997         obstack_begin, obstack_specify_allocation,
25998         obstack_specify_allocation_with_arg, obstack_chunkfun,
25999         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
26000         Remove unprototyped decls and the macros that use them.
26001         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
26002         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
26003         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
26004         (defined __STDC__ && __STDC__)]:
26005         Remove nonprototyped code.
26006         Include <stdlib.h> unconditionally.
26007         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
26008         _obstack_allocated_p, _obstack_free, obstack_free,
26009         _obstack_memory_used, print_and_abort):
26010         Define using prototypes.
26011         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
26012         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
26013         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
26014         obstack_next_free, obstack_object_size, obstack_room) [0]:
26015         Remove unused, unprototyped code.
26016
26017         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
26018
26019         * lib/physmem.c (physmem_total, physmem_available, main): Define
26020         with prototypes.
26021
26022         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
26023         (main): Define with a prototype.
26024
26025         * lib/posixver.c (getenv): Remove decl.
26026
26027         * lib/putenv.c (malloc): Returns void *, not char *.
26028         Include <string.h> unconditionally.
26029         (strchr, memcpy, NULL): Do not define.
26030
26031         * lib/readtokens.c: Include readtokens.h first, to test interface.
26032         Include <stdlib.h>, <string.h> unconditionally.
26033         (init_tokenbuffer): Define with a prototype.
26034
26035         * lib/regex.c (PARAMS): Remove.  All uses removed.
26036         All uses of _RE_ARGS removed, too.
26037         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
26038         unconditionally.
26039         (bzero): Assume memset exists.
26040         (memcmp, memcpy, NULL): Remove.
26041         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
26042         char, or assignments to local vars of type signed char.
26043         (init_syntax_once, PREFIX(extract_number_and_incr),
26044         PREFIX(print_partial_compiled_pattern),
26045         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
26046         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
26047         PREFIX(regex_grow_registers), PREFIX(regex_compile),
26048         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
26049         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
26050         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
26051         wcs_compile_range, byte_compile_range, truncate_wchar,
26052         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
26053         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
26054         count_mbs_length, wcs_re_match_2_internal,
26055         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
26056         PREFIX(alt_match_null_string_p),
26057         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
26058         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
26059         regfree, PREFIX(extract_number)): Define with prototype.  Remove
26060         now-unnecessary declaration, if any.
26061         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
26062         regcomp, regexec):
26063         Remove now-unnecessary casts among pointer types.
26064         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
26065
26066         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
26067         (free): Remove decl.
26068
26069         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
26070
26071         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
26072         (free): Remove decl.
26073
26074         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
26075         * lib/xgetcwd.c: Likewise.
26076
26077         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
26078         (free): Remove decl.
26079
26080         * lib/strchrnul.c (strchrnul): Define with a prototype.
26081         Fix bug: c_in was not converted to char before searching.
26082
26083         The following changes are not K&R related:
26084
26085         * lib/group-member.h: Include <sys/types.h>, so that this file is
26086         self-contained.
26087         * lib/makepath.h: Likewise.
26088
26089         * lib/getusershell.c (readname, default_index, line_size, readname):
26090         Use size_t, not int, for sizes.
26091         (readname): If the size overflows, report an error instead of
26092         looping forever.
26093
26094 2003-09-09  Paul Eggert  <eggert@twinsun.com>
26095
26096         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
26097         libc.
26098
26099 2003-09-09  Paul Eggert  <eggert@twinsun.com>
26100
26101         * README: New section: portability guidelines.
26102
26103 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
26104
26105         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
26106         C89 spec.
26107
26108 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
26109
26110         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
26111
26112 2003-09-08  Paul Eggert  <eggert@twinsun.com>
26113
26114         Assume C89 or better; remove K&R cruft.
26115         A few of these changes were first proposed by Derek Robert Price
26116         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
26117
26118         * lib/addext.c: Include <string.h> unconditionally.
26119         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
26120         Don't declare getenv or malloc.
26121
26122         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
26123         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
26124         (NULL): Remove.
26125         (find_stack_direction, alloca): Use prototypes.
26126
26127         * lib/atexit.c (atexit): Define using a prototype.
26128
26129         * lib/basename.c, dirname.c, stripslash.c:
26130         Include <string.h> unconditionally.
26131
26132         * lib/bcopy.c: Include <stddef.h>.
26133         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
26134
26135         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
26136
26137         * lib/error.h (error, error_at_line, error_print_progname)
26138         [! (defined (__STDC__) && __STDC__)]: Remove decls.
26139         * lib/error.c: Include error.h first, to check interface.
26140         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
26141         (VA_START): Remove; all uses changeed to va_start.
26142         (exit, strerror): Remove decls.
26143         (error_print_progname): Prototype uncondionally.
26144         Don't include <errno.h>; no longer needed.
26145         (private_strerror): Remove.
26146         (error_tail): Always define.
26147         (error, error_at_line): Assume C89 or better; always use prototypes.
26148         * lib/fatal.c: Include "fatal.h" first, to test interface.
26149         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
26150         (VA_START): Remove; all uses changed to va_start.
26151         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
26152         this case.
26153         (exit): Remove decl.
26154         (fatal): Prototype unconditionally.  Assume va_start works.
26155         Abort at end, to pacify gcc.
26156
26157         * lib/euidaccess.c (main): Define with a prototype.
26158
26159         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
26160
26161         * lib/exitfail.c: Include <stdlib.h> unconditionally.
26162
26163         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
26164         prototypes.
26165         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
26166         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
26167         (getenv): Remove decl.
26168         (fnmatch): Define using a prototype.
26169         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
26170         (FCT): Define using a prototype.
26171
26172         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
26173
26174         * lib/gethostname.c: Include <stddef.h>.
26175         (gethostname): Define with prototype.  Length is size_t, not int.
26176
26177 2003-09-08  Paul Eggert  <eggert@twinsun.com>
26178
26179         Assume C89 or better; remove K&R cruft.
26180         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
26181         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
26182         string.h, getenv, malloc.
26183         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
26184         headers.
26185         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
26186         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
26187         do not check for strerror.
26188         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
26189         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
26190         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
26191         do not check for doprnt or vprintf.
26192         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
26193         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
26194
26195 2003-09-08  Paul Eggert  <eggert@twinsun.com>
26196
26197         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
26198         getversion.c should have been removed then, but was accidentally
26199         preserved.
26200
26201         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
26202         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
26203
26204 2003-09-08  Karl Berry  <karl@gnu.org>
26205
26206         * config/config.sub, config.guess, srclistvars.sh: update from savannah
26207                 config, forget about prep.
26208
26209         * config/depcomp, missing: update from automake.
26210
26211 2003-09-07  Paul Eggert  <eggert@twinsun.com>
26212
26213         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
26214         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
26215
26216 2003-09-07  Paul Eggert  <eggert@twinsun.com>
26217
26218         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
26219         copy_tm_result.  Bug reported by Simon Josefsson in
26220         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
26221
26222 2003-09-06  Paul Eggert  <eggert@twinsun.com>
26223
26224         * m4/time_r.m4: New file.
26225         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
26226         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
26227         is. Check for timegm declaration.
26228         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
26229         Do not check for gmtime_r.
26230         Replace mktime if __mktime_internal does not exist and if mktime
26231         hasn't been replaced already.
26232
26233 2003-09-06  Paul Eggert  <eggert@twinsun.com>
26234
26235         * lib/time_r.c, lib/time_r.h: New files.
26236
26237         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
26238         __localtime_r.
26239         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
26240         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
26241
26242         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
26243         __gmtime_r.
26244         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
26245         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
26246         Include <time_r.h>.
26247
26248         * lib/timegm.c: Switch to glibc implementation, with the following
26249         changes:
26250         [defined HAVE_CONFIG_H]: Include <config.h>.
26251         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
26252         (__mktime_internal) [!defined _LIBC]: New decl.
26253         (__gmtime_r) [!defined _LIBC]: New macro and function.
26254         (timegm): Use a prototype, since gnulib assumes C89.
26255         Do not bother declaring tmp to be const, as it's not really usefu.
26256         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
26257         (timegm): Declare only if HAVE_DECL_TIMEGM.
26258
26259 2003-09-06  Paul Eggert  <eggert@twinsun.com>
26260
26261         * MODULES.html.sh (func_all_modules): Add time_r.
26262         * modules/time_r: New file.
26263         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
26264         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
26265
26266 2003-09-03  Paul Eggert  <eggert@twinsun.com>
26267
26268         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
26269         Bug reported by Lute Kamstra in
26270         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
26271
26272         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
26273         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
26274         course with correspondingly smaller numbers for tomorrow and
26275         yesterday.  From Tadayoshi Funaba.  Originally installed into
26276         sh-utils on 1999-08-07, but the patch got lost (I guess during the
26277         coreutils merge?).
26278
26279 2003-08-31  Simon Josefsson  <jas@extundo.com>
26280
26281         * modules/timegm: New file.
26282         * MODULES.html.sh (func_all_modules): Add timegm.
26283
26284 2003-08-31  Simon Josefsson  <jas@extundo.com>
26285
26286         * m4/timegm.m4: New file.
26287
26288 2003-08-31  Simon Josefsson  <jas@extundo.com>
26289
26290         * lib/timegm.h: New file.
26291         * lib/timegm.c: New file.  Based on
26292         wget-1.8.2/src/http.c:mktime_from_utc.
26293
26294 2003-08-31  Karl Berry  <karl@gnu.org>
26295
26296         * lib/argp.h: update from libc.
26297
26298 2003-08-28  Bruno Haible  <bruno@clisp.org>
26299
26300         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
26301         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
26302         followed by '#define fnmatch fnmatch_posix' gives an error.
26303
26304 2003-08-28  Bruno Haible  <bruno@clisp.org>
26305
26306         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
26307         warning on QNX, which defines O_BINARY to 000000.
26308
26309 2003-08-27  Jim Meyering  <jim@meyering.net>
26310
26311         * m4/mkstemp.m4: Require that the system mkstemp be able to create
26312         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
26313         would fail after 32.  Reported by Danny Levinson.  Details here:
26314         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
26315
26316 2003-08-24  Bruno Haible  <bruno@clisp.org>
26317
26318         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
26319         MSVC7 <stdio.h> is included later.
26320
26321 2003-08-22  Simon Josefsson  <jas@extundo.com>
26322
26323         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
26324
26325 2003-08-20  Karl Berry  <karl@gnu.org>
26326
26327         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
26328
26329 2003-08-20  Bruno Haible  <bruno@clisp.org>
26330
26331         * modules/progname: New file.
26332         * MODULES.html.sh (func_all_modules): Add progname.
26333
26334 2003-08-20  Bruno Haible  <bruno@clisp.org>
26335
26336         * lib/progname.h: New file, from GNU gettext.
26337         * lib/progname.c: New file, from GNU gettext.
26338         * lib/progreloc.c: New file, from GNU gettext.
26339
26340 2003-08-19  Jim Meyering  <jim@meyering.net>
26341
26342         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
26343         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
26344
26345 2003-08-19  Bruno Haible  <bruno@clisp.org>
26346
26347         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
26348         more.
26349
26350 2003-08-19  Bruno Haible  <bruno@clisp.org>
26351
26352         * lib/xstrdup.c: Assume <string.h> exists.
26353
26354 2003-08-18  Paul Eggert  <eggert@twinsun.com>
26355
26356         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
26357         in makefile rules.
26358
26359 2003-08-18  Jim Meyering  <jim@meyering.net>
26360
26361         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
26362         * m4/lib-ld.m4: Likewise.
26363
26364 2003-08-18  Jim Meyering  <jim@meyering.net>
26365
26366         * lib/setenv.h: Indent nested cpp directive.
26367         * lib/vasnprintf.c: Remove trailing blanks.
26368
26369 2003-08-17  Simon Josefsson  <jas@extundo.com>
26370
26371         * modules/xstrndup: New file.
26372         * MODULES.html.sh (func_all_modules): Add xstrndup.
26373
26374 2003-08-17  Simon Josefsson  <jas@extundo.com>
26375
26376         * modules/argp: Fix autoconf macro name. Add more dependencies.
26377
26378 2003-08-17  Simon Josefsson  <jas@extundo.com>
26379
26380         * m4/xstrndup.m4: New file.
26381
26382 2003-08-17  Simon Josefsson  <jas@extundo.com>
26383
26384         * m4/argp.m4: New file.
26385
26386 2003-08-17  Simon Josefsson  <jas@extundo.com>
26387             Bruno Haible  <bruno@clisp.org>
26388
26389         * lib/xstrndup.h: New file.
26390         * lib/xstrndup.c: New file.
26391
26392 2003-08-17  Bruno Haible  <bruno@clisp.org>
26393
26394         * modules/strndup (Files, Include): Add lib/strndup.h.
26395
26396 2003-08-17  Bruno Haible  <bruno@clisp.org>
26397
26398         * modules/euidaccess (Files): Add lib/euidaccess.h.
26399
26400 2003-08-17  Bruno Haible  <bruno@clisp.org>
26401
26402         * lib/strndup.h: New file.
26403
26404 2003-08-17  Bruno Haible  <bruno@clisp.org>
26405
26406         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
26407         like AC_GNU_SOURCE.
26408         * modules/extensions (configure.ac): Comment out the invocation of
26409         gl_USE_SYSTEM_EXTENSIONS.
26410
26411 2003-08-16  Paul Eggert  <eggert@twinsun.com>
26412
26413         Merges from coreutils, etc.
26414         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
26415         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
26416         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
26417         fixing a typo.
26418         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
26419         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
26420
26421 2003-08-16  Paul Eggert  <eggert@twinsun.com>
26422
26423         Document merge from coreutils.
26424         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
26425         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
26426         * modules/utime: Add m4/utimes-null.m4.
26427
26428 2003-08-16  Paul Eggert  <eggert@twinsun.com>
26429
26430         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
26431         space, undoing this 2003-08-12 change:
26432         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
26433
26434 2003-08-16  Paul Eggert  <eggert@twinsun.com>
26435
26436         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
26437         strtoul.c from libc, undoing this 2003-08-12 change:
26438         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
26439
26440 2003-08-16  Jim Meyering  <jim@meyering.net>
26441
26442         Merges from coreutils.
26443         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
26444         prefix.  Adjust cache variables similarly.  Create 500 rather than
26445         just 300 files, to exercise bug on Darwin6.5, too.
26446         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
26447         $missing_dir.
26448         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
26449         AM_SYS_POSIX_TERMIOS.
26450         Reported by mkc@mathdogs.com.
26451         Also change use of $am_cv_sys_posix_termios
26452         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
26453         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
26454         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
26455         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
26456         in /proc/mounts until it finds one with matching device number.  This
26457         is unnecessary when the FILE argument *is* a mount point.  No stat call
26458         is necessary in that case.  So, disable the statvfs-testing code on
26459         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
26460         as RedHat bug# 84846.
26461         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
26462         to 1MB, so as not to render systems with no stack size limit (e.g.,
26463         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
26464         Include <unistd.h>.  On some systems,
26465         it is required for the definition of _SC_PAGESIZE.
26466
26467 2003-08-16  Jim Meyering  <jim@meyering.net>
26468
26469         Merge from coreutils.
26470         * lib/xstrtoimax.c: #else #if -> #elif.
26471         * lib/xstrtoumax.c: Likewise.
26472
26473 2003-08-16  Jim Meyering  <jim@meyering.net>
26474
26475         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
26476         * m4/utimes.m4: Removed.
26477         * m4/utimes-null.m4: Renamed from utimes.m4.
26478
26479         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
26480         to 1MB, so as not to render systems with no stack size limit (e.g.,
26481         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
26482         Include <unistd.h>.  On some systems,
26483         it is required for the definition of _SC_PAGESIZE.
26484
26485 2003-08-16  Jim Meyering  <jim@meyering.net>
26486         and Paul Eggert  <eggert@cs.ucla.edu>
26487
26488         Merges from coreutils, etc.
26489
26490         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
26491         using the latest version from cvs.  This avoids problems with #line
26492         directives using a vendor (Sun) compiler.
26493         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
26494         Don't set GETGROUPS_LIB here; now it's
26495         done via getgroups.m4's wrapper function.
26496         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
26497         rather than just in sh-util/configure.in, so that the
26498         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
26499         same.
26500         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
26501         AC_FUNC_GETLOADAVG where to find getloadavg.c.
26502         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
26503         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
26504         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
26505         Remove code that is now done by the newly-required macros.
26506         Append $(EXEEXT) to DF_PROG.
26507         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
26508         Do not invoke or require the following here,
26509         since prereq.m4 or some gnulib .m4 now does this for us:
26510         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
26511         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
26512         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
26513         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
26514         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
26515         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
26516         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
26517         AC_FUNC_OBSTACK.
26518         Do not replace the following functions, as this is now the job
26519         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
26520         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
26521         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
26522         atexit getpass, strdup, getpagesize.
26523         Replace 'raise'.
26524         Do not check for the following functions, as this is now the job
26525         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
26526         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
26527         setregid.
26528         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
26529         Check for sys/sysctl.h.
26530         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
26531         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
26532         of checking for ssize_t ourselves.
26533
26534         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
26535         Require every macro that gnulib/modules/* suggests for us.
26536         (jm_PREREQ_ADDEXT): New macro.
26537         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
26538         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
26539
26540         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
26541         (gl_PHYSMEM): Use it.
26542         Also check for `table' function.
26543         Check for new headers and functions.
26544         Add check for sys/sysmp.h.
26545         With suggestions from Kaveh Ghazi.
26546         Ignore headers that are present but cannot be compiled.  This
26547         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
26548         C 5.4.
26549
26550 2003-08-15  Paul Eggert  <eggert@twinsun.com>
26551
26552         Document merge from coreutils.
26553         * modules/userspec: Depend on posixver.
26554         * modules/strftime: Depend on tzset.
26555
26556 2003-08-15  Paul Eggert  <eggert@twinsun.com>
26557
26558         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
26559         rather than tab, after '#' in shell-script copyright notices.
26560         Suggested by Bruno Haible.
26561
26562 2003-08-15  Paul Eggert  <eggert@twinsun.com>
26563
26564         * config/srclist-update: Use three spaces, rather than tab, after '#'
26565         in shell-script copyright notices.  Suggested by Bruno Haible.
26566         Remove unnecessary parenthesization in regular expression.
26567
26568 2003-08-15  Jim Meyering  <jim@meyering.net>
26569
26570         Merge from coreutils.
26571         * lib/xgethostname.c: Include <stdlib.h>.
26572         (xghostname): Don't exit for anything other than memory-related
26573         failure; just return NULL.
26574         * lib/userspec.c: Include "posixver.h".
26575         (parse_user_spec): Accept `.' as a separator only
26576         in pre-POSIX-200112 mode.
26577         * lib/strtoimax.c: Use #elif rather than #else #if.
26578         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
26579         Remove function, now that we can rely on a working tzset function.
26580         [!_LIBC]: Ensure that the required autoconf test has been run.
26581         [!defined _NL_CURRENT && HAVE_STRFTIME]:
26582         Use underlying_strftime for %r.
26583         * lib/sha.c: Merge in some clean-up and optimization changes from
26584         glibc.
26585         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
26586         Ensure that it is a multiple of 64.
26587         Rearrange loop exit tests so as to avoid performing an
26588         additional fread after encountering an error or EOF.
26589         * lib/realloc.c: Update copyright date.
26590
26591 2003-08-15  Jim Meyering  <jim@meyering.net>
26592         and Paul Eggert  <eggert@twinsun.com>
26593
26594         Merge from coreutils.
26595         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
26596         member but strut utmpx does not.  Needed for AIX 4.3.3.
26597         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
26598
26599 2003-08-15  Jim Meyering  <jim@meyering.net>
26600         and Paul Eggert  <eggert@cs.ucla.edu>
26601
26602         Merges from coreutils, etc.
26603         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
26604         Require gl_FUNC_TZSET_CLOBBER.
26605         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
26606         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
26607         members.
26608
26609 2003-08-14  Paul Eggert  <eggert@twinsun.com>
26610
26611         Help the merge from coreutils.
26612         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
26613         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
26614         * m4/tzset.m4: Use it too.
26615
26616 2003-08-14  Paul Eggert  <eggert@twinsun.com>
26617
26618         * modules/tzset: New file.
26619
26620 2003-08-14  Jim Meyering  <jim@meyering.net>
26621
26622         Merges from coreutils.
26623         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
26624         variable names, rather than @FNMATCH_H@.
26625         * modules/alloca: Likewise for $(ALLOCA_H).
26626
26627         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
26628         the three copies of the literal target, `fnmatch.h'.
26629         * modules/alloca (alloca.h): Likewise.
26630
26631 2003-08-14  Jim Meyering  <jim@meyering.net>
26632
26633         Merge from coreutils.
26634         * m4/tzset.m4: New file.
26635         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
26636         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
26637         otherwise, AIX 5.1 systems would end up using the latter.
26638         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
26639         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
26640         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
26641         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
26642
26643 2003-08-14  Jim Meyering  <jim@meyering.net>
26644
26645         Merge from coreutils.
26646         * lib/obstack.h: Whitespace changes.
26647         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
26648         and xcalloc return values.
26649         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
26650         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
26651         hang on OSF/1 5.1 for DIR on both local and remote file systems.
26652         Reported by (and fix confirmed by) Nelson H. F. Beebe.
26653         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
26654         error from mntctl.
26655         Use mntctl's return value to drive the entry-processing loop, since
26656         we can't rely on the value of the vmt_length member in the last
26657         entry.  On some systems doing so could result in exhausting
26658         virtual memory.  Based in part on a patch from Mike Jetzer.
26659
26660 2003-08-14  Jim Meyering  <jim@meyering.net>
26661         and Paul Eggert  <eggert@twinsun.com>
26662
26663         Merges from coreutils, plus other fixes.
26664         * lib/physmem.c: Merge in portability changes from gcc/libiberty
26665         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
26666         for credits and details.  Thanks to Kaveh Ghazi for helping
26667         to keep these files in sync.
26668         (ARRAY_SIZE): Define it.
26669         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
26670         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
26671         (memcasecmp): Don't assume size_t fits in unsigned int.
26672         Remove casts and duplicate code.
26673         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
26674         (memcpy): Remove definition.
26675         Merge in some clean-up and optimization changes from glibc.
26676         [BLOCKSIZE]: Move definition to top of file.
26677         Ensure that it is a multiple of 64.
26678         Rearrange loop exit tests so as to avoid performing an
26679         additional fread after encountering an error or EOF.
26680         * lib/md5.h (md5_uintptr): Define.
26681         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
26682         return to the initial working directory.  Preserve errno
26683         for caller.
26684         * lib/idcache.c: Include "xalloc.h".
26685         (xmalloc, xrealloc): Remove decls.
26686         (getuser): Remove casts no longer required in C89.
26687         * lib/human.c: Include stdio.h, for sprintf.
26688         * lib/group-member.c: Include "xalloc.h".
26689         (xmalloc, xrealloc): Remove decls.
26690         (get_group_info): Remove casts no longer required in C89.
26691         * lib/getusershell.c (readname): Remove casts no longer required in
26692         C89.
26693         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
26694         * lib/getline.c: Whitespace fix, from coreutils.
26695
26696 2003-08-13  Paul Eggert  <eggert@twinsun.com>
26697
26698         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
26699         Check for isascii.
26700
26701         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
26702         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
26703         Undo previous (whitespace-only) change.
26704
26705 2003-08-13  Paul Eggert  <eggert@twinsun.com>
26706
26707         * lib/exclude.c: Include <ctype.h>
26708         (IN_CTYPE_DOMAIN): New macro.
26709         (is_space): New fn.
26710         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
26711         and empty lines.
26712
26713         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
26714         Undo previous (whitespace-only) change.
26715
26716 2003-08-13  Paul Eggert  <eggert@twinsun.com>
26717
26718         * config/srclist-update: Change update back to the old behavior,
26719         leaving whitespace alone.  Use one 'sed' command rather than a
26720         pipeline.
26721         (fixlicense): Now a variable, not a function.
26722         (remove_trailing_blanks): Remove.
26723         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
26724         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
26725         Undo previous (whitespace-only) change.
26726
26727 2003-08-12  Paul Eggert  <eggert@twinsun.com>
26728
26729         Merge from coreutils.
26730         * modules/euidaccess: Add lib_SOURCES, include for new
26731         file euidaccess.h
26732
26733 2003-08-12  Paul Eggert  <eggert@twinsun.com>
26734
26735         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
26736         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
26737         Normalize leading white space and remove trailing white space.
26738
26739         Merge from coreutils
26740         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
26741
26742         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
26743         0.12.1.  These files are now being upgraded automatically by
26744         ../config/srclist-update.
26745
26746 2003-08-12  Paul Eggert  <eggert@twinsun.com>
26747
26748         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
26749         Normalize leading white space and remove trailing white space.
26750         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
26751         notice, as per ../config/srclist-update.
26752
26753         Merge from coreutils.
26754         * lib/euidaccess.h: New file.
26755         * lib/euidaccess.c: Include it.
26756         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
26757         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
26758         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
26759
26760 2003-08-12  Paul Eggert  <eggert@twinsun.com>
26761
26762         * config/srclist-update: Add copyright notice.
26763         (remove_id_lines, remove_trailing_blanks): New constants.
26764         (fixfile): Use them to normalize spacing a bit in copied files.
26765         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
26766         Normalize leading white space and remove trailing white space.
26767
26768         * config/texinfo.tex: Sync with texinfo.
26769
26770         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
26771         strtoul.c from libc, to merge coreutils whitespace changes.
26772
26773         * config/srclist.txt: Get the following m4 files from gettext:
26774         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
26775         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
26776         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
26777         wint_t.m4.
26778
26779 2003-08-12  Karl Berry  <karl@gnu.org>
26780
26781         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
26782         been made.
26783
26784 2003-08-11  Paul Eggert  <eggert@twinsun.com>
26785
26786         * modules/gnu-source, m4/gnu-source.m4:
26787         Remove; we're assuming Autoconf 2.54 or later now.
26788         Suggested by Bruno Haible.
26789         * MODULES.html.sh (func_all_modules): Remove gnu-source.
26790
26791 2003-08-11  Bruno Haible  <bruno@clisp.org>
26792
26793         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
26794
26795 2003-08-11  Bruno Haible  <bruno@clisp.org>
26796
26797         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
26798         (vasnprintf): Use it instead of wcslen.
26799
26800 2003-08-11  Bruno Haible  <bruno@clisp.org>
26801
26802         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
26803         value to ensure that _Bool promotes to int. Use #define for _Bool when
26804         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
26805
26806 2003-08-10  Karl Berry  <karl@gnu.org>
26807
26808         * lib/regex.h: update from libc (whitespace fix).
26809
26810 2003-08-09  Paul Eggert  <eggert@twinsun.com>
26811
26812         Merge some files from coreutils.  These changes were
26813         originally made by Jim Meyering.
26814         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
26815         many older Unixes require this.
26816         * lib/alloca.c (alloca): Remove cast to argument of free;
26817         no longer needed in C89.
26818         * lib/alloca_.h, regex.h: Fix white space to match
26819         what GNU indent does.
26820
26821 2003-08-09  Paul Eggert  <eggert@twinsun.com>
26822
26823         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
26824         apparently Emacs's Unicode mode got confused before my 2003-08-05
26825         checkin.
26826
26827 2003-08-08  Paul Eggert  <eggert@twinsun.com>
26828
26829         * m4/extensions.m4: New file.
26830         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
26831         Require gl_USE_SYSTEM_EXTENSIONS.
26832         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
26833         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
26834
26835 2003-08-08  Paul Eggert  <eggert@twinsun.com>
26836
26837         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
26838         * modules/extensions, modules/gnu-source: New files.
26839         * modules/timespec, modules/unlocked-io: Depend on extensions.
26840
26841 2003-08-07  Paul Eggert  <eggert@twinsun.com>
26842
26843         * modules/restrict: New file.
26844         * MODULES.html.sh (func_all_modules): Add restrict.
26845         * modules/regex: Depend on restrict.
26846
26847 2003-08-07  Paul Eggert  <eggert@twinsun.com>
26848
26849         * m4/restrict.m4: New file.
26850         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
26851
26852 2003-08-07  Bruno Haible  <bruno@clisp.org>
26853
26854         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
26855         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
26856
26857 2003-08-07  Bruno Haible  <bruno@clisp.org>
26858
26859         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
26860         makes the module 'getndelim2' compatible with the module 'getline'.
26861
26862 2003-08-05  Paul Eggert  <eggert@twinsun.com>
26863
26864         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
26865         byte with "\201" to avoid glitches when editing that source file
26866         with multi-gnome-terminal.
26867
26868 2003-08-05  Paul Eggert  <eggert@twinsun.com>
26869
26870         * lib/bumpalloc.h: Remove.
26871
26872 2003-08-05  Paul Eggert  <eggert@twinsun.com>
26873
26874         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
26875         * modules/bumpalloc: Remove.
26876
26877 2003-08-04  Paul Eggert  <eggert@twinsun.com>
26878
26879         * lib/getloadavg.c: Change copyright notice and spacing to conform to
26880         GNU coding style.
26881
26882         Merge from coreutils.
26883         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
26884         1. From glibc.
26885         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
26886         from Karl Berry, implemented by Jim Meyering.
26887         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
26888         from Dmitry V. Levin.
26889         Remove anachronistic cast of xrealloc.
26890         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
26891         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
26892         type. Otherwise, it wouldn't compile with at least /bin/cc on
26893         ymp-cray-unicos9.0.2.X.
26894         Combine two mostly-identical uses of alloca into one.
26895         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
26896
26897 2003-08-04  Dave Love  <d.love@dl.ac.uk>
26898
26899         [From Emacs.]
26900
26901         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
26902         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
26903         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
26904         obsolete NLIST_NAME_UNION.
26905         [__GNU__]: Undef BSD and FSCALE.
26906         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
26907
26908 2003-08-03  Paul Eggert  <eggert@twinsun.com>
26909
26910         * lib/stdbool_.h (_Bool): Make it signed char, instead of
26911         an enum type, so that it's guaranteed to promote to int.  See:
26912         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
26913
26914 2003-08-03  Karl Berry  <karl@gnu.org>
26915
26916         * config/depcomp: update from automake.
26917
26918 2003-07-31  Paul Eggert  <eggert@twinsun.com>
26919
26920         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
26921         (strerror): Don't assume that a printable int fits in 14 bytes.
26922
26923 2003-07-31  Bruno Haible  <bruno@clisp.org>
26924
26925         * modules/getpass-gnu: New file.
26926         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
26927
26928 2003-07-31  Bruno Haible  <bruno@clisp.org>
26929
26930         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
26931
26932 2003-07-24  Karl Berry  <karl@gnu.org>
26933
26934         * config/missing: update from automake.
26935
26936 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
26937             Bruno Haible  <bruno@clisp.org>
26938
26939         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
26940         * lib/getline.c (getline, getdelim): Likewise.
26941         Remove _GNU_SOURCE define; now it's defined in config.h through
26942         m4/getline.m4.
26943
26944 2003-07-23  Karl Berry  <karl@gnu.org>
26945
26946         * config/config.sub: update from prep.
26947
26948 2003-07-22  Paul Eggert  <eggert@twinsun.com>
26949
26950         * modules/xalloc (Depends-on): Add exitfail.
26951         * modules/xmemcoll: Likewise.
26952
26953 2003-07-22  Paul Eggert  <eggert@twinsun.com>
26954
26955         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
26956         over-parenthesization in macros.
26957
26958         Sync with coreutils.
26959
26960         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
26961         required by C99.
26962
26963         Use `exit_failure' for xalloc and xmemcoll instead of their own
26964         private exit-failure variables.
26965         * lib/xalloc.h (xalloc_exit_failure): Remove.
26966         * lib/xmalloc.c: Likewise.  Include exitfail.h.
26967         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
26968         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
26969         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
26970         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
26971
26972 2003-07-20  Jim Meyering  <jim@meyering.net>
26973
26974         * modules/closeout (Depends-on): Add exitfail.
26975         Suggestion from Bruno Haible.
26976
26977 2003-07-19  Karl Berry  <karl@gnu.org>
26978
26979         * config/config.sub: update from prep.
26980
26981 2003-07-18  Paul Eggert  <eggert@twinsun.com>
26982
26983         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
26984         Remove.
26985         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
26986         to test that it can stand by itself.  Include "exitfail.h".
26987         Clients should set exit_failure instead.
26988         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
26989
26990 2003-07-18  Bruno Haible  <bruno@clisp.org>
26991
26992         * modules/getndelim2: New file.
26993         * modules/getline: Share files with module getndelim2.
26994         * modules/getnline: Depend on getndelim2 instead of sharing files with
26995         it. Add getnline.c to lib_SOURCES.
26996         * MODULES.html.sh (func_all_modules): Add getndelim2.
26997
26998 2003-07-18  Bruno Haible  <bruno@clisp.org>
26999
27000         * m4/getndelim2.m4: New file.
27001         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
27002         invoke gl_PREREQ_GETNDELIM2.
27003         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
27004         gl_PREREQ_GETNDELIM2.
27005         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
27006         gl_GETNDELIM2.
27007
27008 2003-07-18  Bruno Haible  <bruno@clisp.org>
27009
27010         * lib/getndelim2.h: New file.
27011         * lib/getndelim2.c: Make into a module of its own. Include config.h,
27012         getndelim2.h.
27013         (getndelim2): Make non-static. Change return type to ssize_t.
27014         * lib/getline.h: Change argument names.
27015         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
27016         * lib/getnline.c: Include getndelim2.h.
27017
27018 2003-07-18  Andreas Schwab  <schwab@suse.de>
27019
27020         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
27021
27022 2003-07-17  Karl Berry  <karl@gnu.org>
27023
27024         * config/config.sub: update from prep.
27025
27026 2003-07-17  Bruno Haible  <bruno@clisp.org>
27027
27028         * modules/getnline: New file.
27029         * modules/getline: Add lib/getndelim2.c to source file list.
27030         * MODULES.html.sh (func_all_modules): Add getnline.
27031
27032 2003-07-17  Bruno Haible  <bruno@clisp.org>
27033
27034         * m4/getnline.m4: New file.
27035
27036 2003-07-17  Bruno Haible  <bruno@clisp.org>
27037
27038         * m4/Makefile.am.in: Remove file.
27039         * m4/Makefile.am: Remove file.
27040         * m4/Makefile.in: Remove file.
27041
27042 2003-07-17  Bruno Haible  <bruno@clisp.org>
27043
27044         * lib/getnline.h: New file.
27045         * lib/getnline.c: New file.
27046         * lib/getndelim2.c: New file, extracted from getline.c.
27047         (getndelim2): Renamed from getdelim2, with added nmax argument.
27048         * lib/getline.c: Include getndelim2.c.
27049         (getdelim2): Moved out to getndelim2.c.
27050         (getline, getdelim): Update.
27051
27052 2003-07-17  Bruno Haible  <bruno@clisp.org>
27053
27054         * lib/Makefile.am: Remove file.
27055         * lib/Makefile.in: Remove file.
27056
27057 2003-07-17  Bruno Haible  <bruno@clisp.org>
27058
27059         * configure.in: Remove file.
27060         * Makefile.in: Remove file.
27061
27062 2003-07-17  Bruno Haible  <bruno@clisp.org>
27063
27064         * MODULES.html.sh: Put the </BODY> right before </HTML>.
27065
27066 2003-07-16  Karl Berry  <karl@gnu.org>
27067
27068         * config/srclist-update: was running fixlicense twice, which caused
27069                 texinfo.tex to be nullified for some reason.  Simplify,
27070                 $gplsrc is no longer needed as far as I can see?
27071
27072 2003-07-16  Jim Meyering  <jim@meyering.net>
27073
27074         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
27075
27076 2003-07-15  Paul Eggert  <eggert@twinsun.com>
27077
27078         * config/srclist.txt: Get the following files from gettext-runtime/intl
27079         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
27080         ref-del.sin.  From Bruno Haible.
27081         * config/srclist-update (fixfile): Change grep pattern again, since the
27082         previous fix didn't work (there was another trailing $).  Use
27083         '[$]' to escape the $s.
27084
27085 2003-07-15  Karl Berry  <karl@gnu.org>
27086
27087         * lib/vasnprintf.c: update from gettext.
27088
27089 2003-07-15  Karl Berry  <karl@gnu.org>
27090
27091         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
27092         gets expanded when surrounded by '$'.
27093
27094 2003-07-15  Jim Meyering  <jim@meyering.net>
27095
27096         * modules/save-cwd: Don't depend on error.  From Derek Price.
27097
27098 2003-07-15  Jim Meyering  <jim@meyering.net>
27099
27100         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
27101
27102 2003-07-14  Simon Josefsson  <jas@extundo.com>
27103
27104         * modules/mempcpy: New file.
27105         * MODULES.html.sh (func_all_modules): Add mempcpy.
27106
27107 2003-07-14  Simon Josefsson  <jas@extundo.com>
27108
27109         * m4/mempcpy.m4: New file.
27110
27111 2003-07-14  Simon Josefsson  <jas@extundo.com>
27112
27113         * lib/mempcpy.h: New file.
27114         * lib/mempcpy.c: New file.
27115
27116 2003-07-14  Paul Eggert  <eggert@twinsun.com>
27117
27118         * modules/getdate, modules/posixtm: Depend on mktime.
27119
27120 2003-07-14  Paul Eggert  <eggert@twinsun.com>
27121
27122         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
27123         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
27124         unicodeio.c, unicodeio.h, unlocked-io.h:
27125         Switch from LGPL to GPL.
27126
27127 2003-07-14  Paul Eggert  <eggert@twinsun.com>
27128
27129         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
27130         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
27131         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
27132         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
27133         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
27134         updated automatically by ../config/srclist-update.  This changes
27135         their license from LPGL to GPL.
27136
27137 2003-07-14  Paul Eggert  <eggert@twinsun.com>
27138
27139         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
27140         assumed to refer to the root of the most recent stable gettext version.
27141         * config/srclistvars.sh: Add defaults for eggert.
27142         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
27143         Match "This program" as well as "The program".  This is needed
27144         for gettext.
27145
27146 2003-07-14  Jim Meyering  <jim@meyering.net>
27147
27148         Don't emit diagnostics.  Let callers do that.
27149         * lib/save-cwd.c: Don't include "error.h".
27150         (save_cwd): Don't call error.  Ensure that errno is valid
27151         when returning nonzero.
27152
27153         * lib/save-cwd.h (restore_cwd): Update prototype.
27154         * lib/save-cwd.c (restore_cwd): Remove two parameters.
27155         Simplify.  Don't call error upon failure.  Let callers do that.
27156         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
27157         when auditing is enabled.  But don't bother updating the #if.
27158
27159 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
27160
27161         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
27162         it breaks C++ compilation.
27163         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
27164
27165 2003-07-10  Simon Josefsson  <jas@extundo.com>
27166
27167         * modules/strchrnul (Makefile.am): Add strchrnul.h.
27168
27169 2003-07-10  Jim Meyering  <jim@meyering.net>
27170
27171         * m4/clock_time.m4: Remove trailing blank.
27172         * m4/intmax_t.m4: Likewise.
27173
27174 2003-07-10  Jim Meyering  <jim@meyering.net>
27175
27176         * lib/vasnprintf.c: Remove trailing blanks.
27177         Make cpp indentation consistent.
27178
27179 2003-07-09  Paul Eggert  <eggert@twinsun.com>
27180
27181         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
27182         posixver.c, strftime.c, strnlen.c, strverscmp.c:
27183         Switch from LGPL to GPL.
27184
27185 2003-07-09  Paul Eggert  <eggert@twinsun.com>
27186
27187         * config/srclist.txt: Sort sublists.  Add
27188         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
27189         that differ from gnulib for one reason or another; we'd like this list
27190         to be smaller but for now let's document what we have.
27191
27192 2003-07-08  Paul Eggert  <eggert@twinsun.com>
27193
27194         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
27195         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
27196         and sweeter "eval x=$x".
27197         * config/srclist.txt: Get lib/argp* from glibc.
27198
27199 2003-07-07  Paul Eggert  <eggert@twinsun.com>
27200
27201         * lib/mktime.c: Fix some boundary cases and remove need for floating
27202         point.
27203
27204         Issue a compile-time diagnostic if time_t is floating point, or if
27205         two's complement arithmetic is not in effect, or if arithmetic
27206         right shift does not propagate the sign.  These assumptions were
27207         all in the original code but they weren't checked.
27208
27209         (TIME_T_MIDPOINT, verify): New macros.
27210         (__isleap): Remove; it has integer overflow problems.
27211         (leapyear): New function, without those problems.
27212         (ydhms_tm_diff): Remove; splitting into two parts.
27213         (ydhms_diff): New function, containing the arithmetic part of
27214         the old ydhms_tm_diff function.  Issue a compile-time
27215         diagnostic if we are not using C99 integer division.
27216         Avoid casts when possible.
27217         (guess_time_tm): New function, containing the checking part of
27218         the old ydhms_tm_diff function.  Return the new value, rather than
27219         the difference between it and the old.  Accept a new argument T
27220         so that *T specifies the old value.  Check for overflow in the result.
27221
27222         (__mktime_internal): Use a time_t offset, not a long int offset.
27223         This undoes the 2003-06-04 change, which is no longer needed now
27224         that we have better overflow checking.
27225         (localtime_offset): Likewise.
27226
27227         (__mktime_internal): Avoid harmful overflow on hosts where time_t
27228         and long are 64-bit but int is only 32-bit.
27229         (ydhms_diff): Use long int to store year1 and yday1.
27230         Issue a compile-time diagnostic if long int is not wide enough.
27231
27232         (__mktime_internal): Use long int to store adjusted year and yday.
27233         Use plain C rather than preprocessor commands, if that doesn't
27234         affect efficiency.
27235         Check for overflow (and try to repair) after each probe
27236         rather than checking only at the very end.  This avoids some bugs
27237         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
27238         does not equal GMT offset at maximum time).
27239         Use integer to check for overflow rather than floating point; this
27240         is more portable to non-IEEE hosts, and is a tad faster.
27241         When we detect that we are oscillating between two values,
27242         don't check whether tm_isdst has the requested value, since
27243         we already know the answer.  When tm_isdst has the wrong value,
27244         use a different heuristic to find the right one, based on the
27245         extreme values actually observed in practice in tz2003a,
27246         rather than the (overly optimistic) "previous 3 calendar quarters".
27247
27248         (not_equal_tm, print_tm, check_result): Use "const T" rather than
27249         "T const" to accommodate glibc style.
27250         (check_result): Use less-confusing report format.  "long" -> "long int.
27251         (main): Likewise.
27252         Don't loop if the iteration overflows time_t.
27253         Allow a negative step in the iteration.
27254
27255 2003-07-06  Karl Berry  <karl@gnu.org>
27256
27257         * config/depcomp: update from automake.
27258         * config/config.sub: update from prep.
27259
27260 2003-07-03  Karl Berry  <karl@gnu.org>
27261
27262         * config/config.guess: update from prep.
27263
27264 2003-07-01  Paul Eggert  <eggert@twinsun.com>
27265
27266         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
27267         xreadlink.c now includes it unconditionally.
27268
27269 2003-07-01  Paul Eggert  <eggert@twinsun.com>
27270
27271         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
27272         having it depend on HAVE_SYS_TYPES_H.
27273
27274 2003-07-01  Bruno Haible  <bruno@clisp.org>
27275
27276         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
27277         <sys/types.h> should be sufficient.
27278         Reported by Paul Eggert.
27279
27280 2003-06-26  Karl Berry  <karl@gnu.org>
27281
27282         * config/depcomp: update from automake.
27283
27284 2003-06-26  Bruno Haible  <bruno@clisp.org>
27285
27286         * modules/human: Depend on module stdbool.
27287
27288 2003-06-25  Bruno Haible  <bruno@clisp.org>
27289
27290         * modules/readlink: New file.
27291         * modules/xreadlink: Depend on it.
27292         * MODULES.html.sh (func_all_modules): Add readlink.
27293
27294 2003-06-25  Bruno Haible  <bruno@clisp.org>
27295
27296         * m4/readlink.m4: New file.
27297
27298 2003-06-25  Bruno Haible  <bruno@clisp.org>
27299
27300         * lib/readlink.c: New file.
27301
27302 2003-06-22  Karl Berry  <karl@gnu.org>
27303
27304         * config/srclist.txt: update mkinstalldirs from automake.
27305         * config/mkinstalldirs: update.
27306
27307 2003-06-22  Bruno Haible  <bruno@clisp.org>
27308
27309         Portability to mingw32.
27310         * m4/ssize_t.m4: New file, from GNU gettext.
27311         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
27312         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
27313
27314 2003-06-22  Bruno Haible  <bruno@clisp.org>
27315
27316         * modules/safe-read: Add m4/ssize_t.m4.
27317         * modules/xreadlink: Add m4/ssize_t.m4.
27318
27319 2003-06-20  Bruno Haible  <bruno@clisp.org>
27320
27321         Assume C89, so PARAMS isn't needed.
27322         * lib/unicodeio.h (PARAMS): Remove.
27323         * lib/unicodeio.c: Don't use PARAMS.
27324
27325 2003-06-18  Karl Berry  <karl@gnu.org>
27326
27327         * config/config.{guess,sub}: update from prep.
27328
27329 2003-06-18  Jim Meyering  <jim@meyering.net>
27330
27331         Merge changes from coreutils.
27332         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
27333         Remove explicit declarations of xmalloc and realloc.
27334         Include xalloc.h.
27335         (read_utmp): Remove anachronistic cast of xmalloc.
27336
27337 2003-06-17  Paul Eggert  <eggert@twinsun.com>
27338
27339         Assume C89, so PARAMS isn't needed.
27340         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
27341         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
27342         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
27343         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
27344         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
27345         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
27346         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
27347         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
27348         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
27349         lib/xstrtod.h, lib/xstrtol.h: Likewise.
27350         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
27351         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
27352         no longer needed. Anyway, config.h should always be included before any
27353         other file.
27354
27355 2003-06-11  Simon Josefsson  <jas@extundo.com>
27356
27357         * modules/sysexits: New file.
27358         * MODULES.html.sh (func_all_modules): Add sysexits.
27359
27360 2003-06-11  Simon Josefsson  <jas@extundo.com>
27361
27362         * lib/sysexit_.h: New file.
27363
27364 2003-06-11  Derek Price  <derek@ximbiot.com>
27365
27366         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
27367         necessary.
27368
27369 2003-06-11  Bruno Haible  <bruno@clisp.org>
27370
27371         * m4/sysexits.m4: New file.
27372
27373 2003-06-10  Simon Josefsson  <jas@extundo.com>
27374
27375         * lib/argp.h: New file, from glibc.
27376         * lib/argp-ba.c: New file, from glibc.
27377         * lib/argp-eexst.c: New file, from glibc.
27378         * lib/argp-fmtstream.c: New file, from glibc.
27379         * lib/argp-fmtstream.h: New file, from glibc.
27380         * lib/argp-fs-xinl.c: New file, from glibc.
27381         * lib/argp-help.c: New file, from glibc.
27382         * lib/argp-namefrob.h: New file, from glibc.
27383         * lib/argp-parse.c: New file, from glibc.
27384         * lib/argp-pv.c: New file, from glibc.
27385         * lib/argp-pvh.c: New file, from glibc.
27386         * lib/argp-xinl.c: New file, from glibc.
27387
27388 2003-06-10  Simon Josefsson  <jas@extundo.com>
27389
27390         * modules/strchrnul: New file.
27391
27392 2003-06-10  Simon Josefsson  <jas@extundo.com>
27393
27394         * modules/argp: New file.
27395
27396 2003-06-10  Simon Josefsson  <jas@extundo.com>
27397
27398         * m4/strchrnul.m4: New file.
27399
27400 2003-06-10  Simon Josefsson  <jas@extundo.com>
27401
27402         * lib/strchrnul.h: New file.
27403         * lib/strchrnul.c: New file.
27404
27405 2003-06-10  Bruno Haible  <bruno@clisp.org>
27406
27407         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
27408
27409 2003-06-07  Karl Berry  <karl@gnu.org>
27410
27411         * config/config.{guess,sub}: update from prep.
27412
27413 2003-06-07  Jim Meyering  <jim@meyering.net>
27414
27415         * modules/strtod: Use $(...) notation, not @...@ for
27416         AC_REPLACE'd variables.
27417         * modules/localcharset: Likewise.
27418
27419 2003-06-07  Jim Meyering  <jim@meyering.net>
27420
27421         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
27422         in place of my name in the copyright comment.
27423         Remove definition and uses of __P.
27424
27425         From coreutils.
27426         * lib/stat.c: Don't declare xmalloc explicitly.
27427         Instead, include "xalloc.h".
27428         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
27429         xrealloc, and xcalloc return values.
27430         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
27431         Improve comment.
27432         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
27433
27434 2003-06-07  Bruno Haible  <bruno@clisp.org>
27435
27436         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
27437         avoid AC_CONFIG_LINKS.
27438         * modules/fnmatch (Makefile.am): Use explicit creation rule for
27439         fnmatch.h, to avoid AC_CONFIG_LINKS.
27440         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
27441
27442 2003-06-07  Bruno Haible  <bruno@clisp.org>
27443
27444         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
27445         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
27446         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
27447         directory.
27448         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
27449         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
27450         directory.
27451
27452 2003-06-06  Jim Meyering  <jim@meyering.net>
27453
27454         Merge from coreutils.
27455         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
27456         Consolidate declarations and initializations of *_base* locals.
27457
27458         Merge from coreutils.
27459         This avoids a core dump on systems without GNU putenv,
27460         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
27461         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
27462         (unsetenv): New static function, from GNU libc.
27463         (rpl_putenv): Use it.
27464
27465         * lib/modechange.c: Remove trailing blanks.
27466
27467         Merge from coreutils.
27468         * lib/fsusage.c: Remove declaration of statfs.
27469         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
27470
27471         * lib/posixtm.c: Include <stdbool.h> unconditionally.
27472
27473 2003-06-06  Jim Meyering  <jim@meyering.net>
27474
27475         * lib/stdbool_.h: Renamed from stdbool.h.in.
27476
27477 2003-06-06  Jim Meyering  <jim@meyering.net>
27478             Bruno Haible  <bruno@clisp.org>
27479
27480         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
27481         Adjust Makefile.am snippet not to redirect directly to target.
27482         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
27483
27484 2003-06-05  Paul Eggert  <eggert@twinsun.com>
27485
27486         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
27487         mismatch, look in future quarters as well as past.  This fixes a
27488         bug when processing fall-backwards gaps immediately after a long
27489         period of daylight-saving time.
27490
27491         * lib/mktime.c: Assume freestanding C89 or better.
27492         (HAVE_LIMITS_H): Remove.  Assume it's 1.
27493         (__P): Remove; not used.
27494         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
27495         (mktime, not_equal_tm, print_tm, check_result,
27496         main): Use prototypes.  Use const * where appropriate.
27497         (main): Fix typo in testing code that uncovered by above changes.
27498         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
27499
27500 2003-06-04  Paul Eggert  <eggert@twinsun.com>
27501
27502         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
27503         locale.h, localeconv.  This merges changes from coreutils.
27504
27505         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
27506         It can be removed after the next Autoconf is released.
27507         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
27508         needed.
27509
27510 2003-06-04  Paul Eggert  <eggert@twinsun.com>
27511
27512         * lib/mktime.c: Fix Debian bug 177940
27513         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
27514         (localtime_offset): Now long int, not time_t, because we want it
27515         to be guaranteed to be signed.  All uses changed.
27516         (__mktime_internal): If overflow would occur when adding offset,
27517         don't add it.
27518
27519         Merge 'human' changes from coreutils.  Rewrite to support
27520         locale-specific notations like thousands separators.
27521         * lib/human.c: Simplify authorship notice.
27522         Include human.h immediately after config.h.
27523         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
27524         <limits.h>: Do not include, since human.h does.
27525         (SIZE_MAX, UINTMAX_MAX): New macros.
27526         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
27527         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
27528         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
27529         (power_letter): Renamed from suffixes.
27530         (generate_suffix_backwards): Remove.
27531         (adjust_value): Now takes int style (because of human.h changes)
27532         and long double value (for greater precision on some platforms).
27533         (group_number): New function.
27534         (human_readable): Use it.  Use integer options, not enum.
27535         Put the options before the sizes in the arg list.
27536         Support all the new options.
27537         The old human_readable function has been removed;
27538         use inttostr.h instead.
27539         (human_readable, default_block_size, humblock):
27540         Use uintmax_t, not int, for block sizes.
27541         (human_readable_inexact, block_size_types): Remove.
27542         (block_size_opts): New constant.
27543         (human_options): Renamed from human_block_size, with new signature
27544         that allows block sizes up to UINTMAX_MAX.  All callers changed.
27545         * lib/human.h: Add copyright and authorship notice.
27546         Include <limits.h> and <stdbool.h> unconditionally.
27547         (PARAMS): Remove.  All uses removed.
27548         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
27549         (enum human_inexact_style): Remove tag; now a nameless enum.
27550         (human_floor, human_ceiling, human_round_to_even): Now have
27551         values 2, 0, 1 rather than -1, 1, 0.
27552         (human_group_digits, human_suppress_point_zero, human_autoscale,
27553         human_base_1024, human_SI, human_B): New constants.
27554         (human_readable_inexact, human_block_size): Remove.
27555         (human_readable): Size args are now uintmax_t, not int.
27556         (human_options): New decl.
27557
27558         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
27559         unnecessary now that we assume C89 or better.  This change
27560         imported from coreutils.
27561
27562         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
27563         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
27564         in the 2003-05-30 sync from glibc.
27565
27566         .h files should stand alone, but we shouldn't include <sys/types.h>
27567         if we can get away with just <stddef.h>.
27568
27569         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
27570         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
27571         rather than <sys/types.h>, as we merely need size_t.
27572         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
27573         to get size_t.
27574         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
27575         Include <stdio.h>, to get FILE.
27576         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
27577         memcasecmp.h has included <stddef.h> and all we need is size_t.
27578         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
27579         our interface, instead of including <sys/types.h>
27580
27581 2003-06-04  Paul Eggert  <eggert@twinsun.com>
27582
27583         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
27584         now, as glibc mktime is buggy on non-glibc systems.
27585
27586 2003-06-03  Karl Berry  <karl@gnu.org>
27587
27588         * config/config.sub: update from prep.
27589
27590 2003-06-02  Paul Eggert  <eggert@twinsun.com>
27591
27592         [from coreutils]
27593         Fix some minor time-related bugs with POSIX time arguments.
27594         Some valid time stamps were being rejected (notably -1, and
27595         time stamps before 1900 on 64-bit hosts).  And some invalid
27596         time stamps were being accepted, e.g. September 31.
27597
27598         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
27599         that we can return (time_t) -1 successfully.
27600         * lib/posixtm.c: Likewise.
27601         [HAVE_STDBOOL_H]: Include <stdbool.h>.
27602         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
27603         (t): Remove static var.
27604         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
27605         of static var.  All uses changed.
27606         (year): Do not reject years before 1900; they can occur with
27607         64-bit time_t.
27608         (posix_time_parse): Do not check for out-of-range components;
27609         that is now the caller's responsibility, since our checks were
27610         only approximations.
27611         (posixtime): Use mktime to check for out-of-range components,
27612         since it knows them exactly.
27613         If mktime returns (time_t) -1, check whether an error actually occurred
27614         by invoking localtime on -1.
27615         (main) [TEST_POSIXTIME]: Check for input data errors, and report
27616         posixtime failures better.
27617         Improve the test data (in comments only).
27618
27619 2003-06-02  Karl Berry  <karl@gnu.org>
27620
27621         * config/mkinstalldirs (version): new variable.
27622         (--version): new option.
27623         (usage): improve message.
27624
27625 2003-05-30  Karl Berry  <karl@gnu.org>
27626
27627         * lib/mktime.c: update from libc.
27628
27629 2003-05-30  Bruno Haible  <bruno@clisp.org>
27630
27631         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
27632         * config/config.rpath: Upgrade to gettext-0.12.1.
27633
27634 2003-05-30  Bruno Haible  <bruno@clisp.org>
27635
27636         * m4/gettext.m4: Upgrade to gettext-0.12.1.
27637         * m4/nls.m4: New file, from gettext-0.12.1.
27638         * m4/po.m4: New file, from gettext-0.12.1.
27639         * m4/progtest.m4: Upgrade to gettext-0.12.1.
27640
27641 2003-05-30  Bruno Haible  <bruno@clisp.org>
27642
27643         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
27644         * lib/localcharset.h: Likewise.
27645         * lib/localcharset.c: Likewise.
27646
27647 2003-05-29  Karl Berry  <karl@gnu.org>
27648
27649         * config/config.rpath: update from gettext.
27650
27651 2003-05-28  Paul Eggert  <eggert@twinsun.com>
27652
27653         Assume the headers required for C89 freestanding compilers.
27654         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
27655         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
27656         * m4/human.m4 (gl_HUMAN): Likewise.
27657         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
27658         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
27659         * m4/userspec.m4 (gl_USERSPEC): Likewise.
27660         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
27661         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
27662         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
27663
27664 2003-05-28  Paul Eggert  <eggert@twinsun.com>
27665
27666         Assume the headers required for C89 freestanding compilers.
27667         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
27668         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
27669         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
27670         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
27671         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
27672         define, since <limits.h> is guaranteed to do that.
27673         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
27674         * lib/exclude.c: Include <stdbool.h> unconditionally.
27675         * lib/tempname.c: Include <stddef.h> unconditionally.
27676         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
27677         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
27678         <stddef.h> does that.
27679         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
27680         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
27681         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
27682         needed.
27683         * lib/xstrtol.c: Likewise.
27684         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
27685         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
27686
27687         * lib/addext.c (addext): Use assignment rather than cast, to avoid
27688         warnings on some platforms.
27689
27690         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
27691         arbitrarily.
27692
27693 2003-05-26  Jim Meyering  <jim@meyering.net>
27694
27695         Merge in a change from coreutils:
27696         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
27697         that is guaranteed to be `no'.  Use `no_such_member' to indicate
27698         that condition, rather than `-1' which is slightly misleading.
27699         Change the name of the cache variable to have the gl_ prefix.
27700         Prompted by a patch from Richard Dawe for DJGPP.
27701
27702 2003-05-24  Karl Berry  <karl@gnu.org>
27703
27704         * config/config.guess: update from prep.
27705
27706 2003-05-22  Karl Berry  <karl@gnu.org>
27707
27708         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
27709
27710 2003-05-20  Karl Berry  <karl@gnu.org>
27711
27712         * config/config.guess: update from prep.
27713
27714 2003-05-18  Karl Berry  <karl@gnu.org>
27715
27716         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
27717         might actually be set by the user.
27718
27719         * config/depcomp, install-sh, mdate-sh: update from automake.
27720
27721 2003-05-17  Bruno Haible  <bruno@clisp.org>
27722
27723         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
27724         invalid expansion for AC_EGREP_CPP.
27725         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
27726         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
27727         Suggested by Akim Demaille <akim@epita.fr> in
27728         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
27729
27730 2003-05-12  Jim Meyering  <jim@meyering.net>
27731
27732         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
27733         the space-padded-by-default conversion specifiers, %e, %k, %l.
27734
27735 2003-05-12  Bruno Haible  <bruno@clisp.org>
27736
27737         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
27738         the string is longer than 4 KB.
27739
27740 2003-05-11  Karl Berry  <karl@gnu.org>
27741
27742         * config/config.{guess,sub}: update from prep.
27743
27744 2003-05-09  Bruno Haible  <bruno@clisp.org>
27745
27746         * modules/error: Add m4/strerror_r.m4 to file list.
27747
27748 2003-05-03  Bruno Haible  <bruno@clisp.org>
27749
27750         Upgrade to Unicode-4.0.
27751         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
27752         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
27753         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
27754         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
27755         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
27756         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
27757         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
27758         Change width of U+E0100..U+E01EF from 1 to 0.
27759
27760 2003-04-25  Jim Meyering  <jim@meyering.net>
27761
27762         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
27763         of type size_t, not int.
27764
27765 2003-04-25  Bruno Haible  <bruno@clisp.org>
27766
27767         * lib/copy-file.c: Include <stddef.h>, for size_t.
27768
27769 2003-04-21  Paul Eggert  <eggert@twinsun.com>
27770
27771         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
27772         code which expansion is under static control.  Patch imported from
27773         Akim Demaille's patch to Bison; see
27774         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
27775
27776 2003-04-14  Bruno Haible  <bruno@clisp.org>
27777
27778         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
27779
27780 2003-04-11  Jim Meyering  <jim@meyering.net>
27781
27782         Merge changes from Coreutils.
27783
27784         2003-03-22  Jim Meyering  <jim@meyering.net>
27785
27786         * lib/strftime.c (widen): Cast alloca return value to proper type.
27787
27788         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
27789
27790         From GNU libc.
27791         * lib/strftime.c (my_strftime): Handle very large width
27792         specifications for numeric values correctly.  Improve checks for
27793         overflow.
27794
27795         2003-01-19  Jim Meyering  <jim@meyering.net>
27796
27797         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
27798         definitions.
27799         (nl_get_alt_digit) [! defined my_strftime]: Define.
27800         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
27801         _nl_get_alt_digit and _nl_get_walt_digit.
27802
27803         * lib/strftime.c (my_strftime): Merge in locale-related changes from
27804         libc. These changes have no effect outside of _LIBC.
27805
27806 2003-04-10  Bruno Haible  <bruno@clisp.org>
27807
27808         * modules/findprog: New file.
27809         * MODULES.html.sh (func_all_modules): Add it.
27810
27811 2003-04-10  Bruno Haible  <bruno@clisp.org>
27812
27813         * m4/findprog.m4: New file.
27814         * m4/eaccess.m4: New file.
27815
27816 2003-04-10  Bruno Haible  <bruno@clisp.org>
27817
27818         * lib/findprog.h: New file, from GNU gettext.
27819         * lib/findprog.c: New file, from GNU gettext.
27820
27821 2003-04-05  Jim Meyering  <jim@meyering.net>
27822
27823         Merge changes from Coreutils.
27824
27825         * lib/exclude.h (PARAMS): Remove definition and uses.
27826         * lib/exclude.c: Remove uses of `PARAMS'.
27827
27828         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
27829         Add test-cases for DOS filenames. Declare program_name.
27830         (main): Set up program_name.  Patch by Rich Dawe.
27831
27832         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
27833         error from mntctl.
27834         Use mntctl's return value to drive the entry-processing loop, since
27835         we can't rely on the value of the vmt_length member in the last
27836         entry.  On some systems doing so could result in exhausting
27837         virtual memory.  Based in part on a patch from Mike Jetzer.
27838
27839 2003-04-04  Bruno Haible  <bruno@clisp.org>
27840
27841         * modules/linebreak: New file.
27842         * MODULES.html.sh (func_all_modules): Add it.
27843
27844 2003-04-04  Bruno Haible  <bruno@clisp.org>
27845
27846         * m4/linebreak.m4: New file.
27847
27848 2003-04-04  Bruno Haible  <bruno@clisp.org>
27849
27850         * lib/linebreak.h: New file, from GNU gettext.
27851         * lib/linebreak.c: New file, from GNU gettext with slight
27852         modifications.
27853         * lib/lbrkprop.h: New file, from GNU gettext.
27854
27855 2003-04-03  Bruno Haible  <bruno@clisp.org>
27856
27857         * modules/utf8-ucs4: New file.
27858         * modules/utf16-ucs4: New file.
27859         * modules/ucs4-utf8: New file.
27860         * modules/ucs4-utf16: New file.
27861         * MODULES.html.sh (func_all_modules): Add them.
27862
27863 2003-04-03  Bruno Haible  <bruno@clisp.org>
27864
27865         * m4/utf-ucs4.m4: New file.
27866         * m4/ucs4-utf.m4: New file.
27867
27868 2003-04-03  Bruno Haible  <bruno@clisp.org>
27869
27870         * lib/utf8-ucs4.h: New file, from GNU gettext.
27871         * lib/utf16-ucs4.h: New file, from GNU gettext.
27872         * lib/ucs4-utf8.h: New file, from GNU gettext.
27873         * lib/ucs4-utf16.h: New file, from GNU gettext.
27874
27875 2003-04-02  Bruno Haible  <bruno@clisp.org>
27876
27877         * modules/binary-io: New file.
27878         * MODULES.html.sh (func_all_modules): Add it.
27879
27880 2003-04-02  Bruno Haible  <bruno@clisp.org>
27881
27882         * lib/binary-io.h: New file, from GNU gettext.
27883
27884 2003-04-01  Bruno Haible  <bruno@clisp.org>
27885
27886         * modules/pathname: New file.
27887         * MODULES.html.sh (func_all_modules): Add it.
27888
27889 2003-04-01  Bruno Haible  <bruno@clisp.org>
27890
27891         * lib/pathname.h: New file, from GNU gettext.
27892         * lib/concatpath.c: New file, from GNU gettext.
27893
27894 2003-03-30  Bruno Haible  <bruno@clisp.org>
27895
27896         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
27897
27898 2003-03-30  Bruno Haible  <bruno@clisp.org>
27899
27900         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
27901         function chown() doesn't exist.
27902
27903 2003-03-28  Bruno Haible  <bruno@clisp.org>
27904
27905         * modules/copy-file: New file.
27906         * MODULES.html.sh (func_all_modules): Add it.
27907
27908 2003-03-28  Bruno Haible  <bruno@clisp.org>
27909
27910         * m4/copy-file.m4: New file.
27911
27912 2003-03-28  Bruno Haible  <bruno@clisp.org>
27913
27914         * lib/copy-file.h: New file, from GNU gettext.
27915         * lib/copy-file.c: New file, from GNU gettext.
27916
27917 2003-03-18  Jim Meyering  <jim@meyering.net>
27918
27919         * lib/quote.c (quote_n): Fix typo in comment.
27920
27921 2003-03-18  Bruno Haible  <bruno@clisp.org>
27922
27923         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
27924         checking.
27925         * m4/onceonly_2_57.m4: Likewise.
27926
27927 2003-03-17  Bruno Haible  <bruno@clisp.org>
27928
27929         * m4/onceonly.m4: Require autoconf 2.54 or newer.
27930         (m4_quote): Remove macro.
27931         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
27932
27933 2003-03-14  Jim Meyering  <jim@meyering.net>
27934
27935         Merge changes from Coreutils.
27936         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
27937         to be const, in order to avoid warnings.
27938         (obstack_room): Likewise.
27939         (obstack_empty_p): Likewise.
27940
27941 2003-03-14  Bruno Haible  <bruno@clisp.org>
27942
27943         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
27944         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
27945
27946 2003-03-13  Paul Eggert  <eggert@twinsun.com>
27947
27948         Merge changes from Bison.
27949         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
27950         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
27951         when compiling Bison 1.875's `bitset bset = obstack_alloc
27952         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
27953         * lib/hash.c: Include <stdbool.h> unconditionally.
27954
27955 2003-03-13  Paul Eggert  <eggert@twinsun.com>
27956
27957         * m4/onceonly.m4 (m4_quote): New macro.
27958         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
27959         Quote AC_FOREACH variable-expansions properly.
27960
27961 2003-03-13  Paul Eggert  <eggert@twinsun.com>
27962
27963         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
27964
27965 2003-03-09  Paul Eggert  <eggert@twinsun.com>
27966
27967         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
27968         Reported by Bruce Becker; see:
27969         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
27970
27971 2003-03-03  Paul Eggert  <eggert@twinsun.com>
27972             Bruno Haible  <bruno@clisp.org>
27973
27974         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
27975         Reported by John Hughes, see
27976         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
27977
27978 2003-02-20  Bruno Haible  <bruno@clisp.org>
27979
27980         * MODULES.html.sh (func_all_modules): Add poll.
27981
27982 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
27983
27984         * modules/poll: New file.
27985
27986 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
27987
27988         * lib/poll_.h: New file.
27989         * lib/poll.c: New file.
27990
27991 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
27992
27993         * m4/poll.m4: New file.
27994
27995 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
27996
27997         * modules/mathl: New file.
27998
27999 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
28000
28001         * lib/mathl.h: New file.
28002         * lib/acosl.c: New file.
28003         * lib/asinl.c: New file.
28004         * lib/atanl.c: New file.
28005         * lib/ceill.c: New file.
28006         * lib/cosl.c: New file.
28007         * lib/expl.c: New file.
28008         * lib/floorl.c: New file.
28009         * lib/frexpl.c: New file.
28010         * lib/ldexpl.c: New file.
28011         * lib/logl.c: New file.
28012         * lib/sincosl.c: New file.
28013         * lib/sinl.c: New file.
28014         * lib/sqrtl.c: New file.
28015         * lib/tanl.c: New file.
28016         * lib/trigl.c: New file.
28017         * lib/trigl.h: New file.
28018
28019 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
28020
28021         * m4/mathl.m4: New file.
28022
28023 2003-02-18  Bruno Haible  <bruno@clisp.org>
28024
28025         * MODULES.html.sh (func_all_modules): Add mathl.
28026
28027 2003-02-17  Bruno Haible  <bruno@clisp.org>
28028
28029         * modules/mkdtemp: New module.
28030         * MODULES.html.sh (func_all_modules): Add it.
28031
28032 2003-02-17  Bruno Haible  <bruno@clisp.org>
28033
28034         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
28035
28036 2003-02-17  Bruno Haible  <bruno@clisp.org>
28037
28038         * lib/mkdtemp.h: New file, from GNU gettext.
28039         * lib/mkdtemp.c: New file, from GNU gettext.
28040
28041 2003-02-02  Jim Meyering  <jim@meyering.net>
28042
28043         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
28044         e.g. glibc-2.2.93.
28045
28046 2003-01-31  Bruno Haible  <bruno@clisp.org>
28047
28048         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
28049         'rpl_rename'.
28050         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
28051         'rpl_strnlen'.
28052         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
28053         'rpl_strtod'.
28054         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
28055         'rpl_utime'.
28056
28057 2003-01-31  Bruno Haible  <bruno@clisp.org>
28058
28059         * lib/rename.c: #undef rename before defining rpl_rename.
28060         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
28061
28062 2003-01-30  Bruno Haible  <bruno@clisp.org>
28063
28064         * modules/vasnprintf, modules/vasprintf: New modules.
28065         * MODULES.html.sh (func_all_modules): Add them.
28066
28067 2003-01-30  Bruno Haible  <bruno@clisp.org>
28068
28069         * m4/signed.m4: New file, from GNU gettext.
28070         * m4/longdouble.m4: New file, from GNU gettext.
28071         * m4/wchar_t.m4: New file, from GNU gettext.
28072         * m4/wint_t.m4: New file, from GNU gettext.
28073         * m4/vasnprintf.m4: New file.
28074         * m4/vasprintf.m4: New file.
28075
28076 2003-01-30  Bruno Haible  <bruno@clisp.org>
28077
28078         * lib/printf-args.h: New file, from GNU gettext.
28079         * lib/printf-args.c: New file, from GNU gettext.
28080         * lib/printf-parse.h: New file, from GNU gettext.
28081         * lib/printf-parse.c: New file, from GNU gettext.
28082         * lib/vasnprintf.h: New file, from GNU gettext.
28083         * lib/vasnprintf.c: New file, from GNU gettext.
28084         * lib/asnprintf.c: New file, from GNU gettext.
28085         * lib/vasprintf.h: New file, from GNU gettext with modifications.
28086         * lib/vasprintf.c: New file, from GNU gettext.
28087         * lib/asprintf.c: New file, from GNU gettext.
28088
28089 2003-01-29  Bruno Haible  <bruno@clisp.org>
28090
28091         * modules/stpncpy: New module.
28092         * MODULES.html.sh (func_all_modules): Add it.
28093
28094 2003-01-29  Bruno Haible  <bruno@clisp.org>
28095
28096         * m4/stpncpy.m4: New file.
28097
28098 2003-01-29  Bruno Haible  <bruno@clisp.org>
28099
28100         * lib/stpncpy.h: New file, from GNU gettext with modifications.
28101         * lib/stpncpy.c: New file, from GNU gettext with modifications.
28102
28103 2003-01-28  Bruno Haible  <bruno@clisp.org>
28104
28105         * modules/c-ctype: New module.
28106         * MODULES.html.sh (func_all_modules): Add it.
28107
28108 2003-01-28  Bruno Haible  <bruno@clisp.org>
28109
28110         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
28111         Paul Eggert.
28112         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
28113         Paul Eggert.
28114
28115 2003-01-27  Bruno Haible  <bruno@clisp.org>
28116
28117         * modules/xsetenv: New module.
28118         * MODULES.html.sh (func_all_modules): Add it.
28119
28120 2003-01-27  Bruno Haible  <bruno@clisp.org>
28121
28122         * lib/xsetenv.h: New file, from GNU gettext.
28123         * lib/xsetenv.c: New file, from GNU gettext.
28124
28125 2003-01-23  Jim Meyering  <jim@meyering.net>
28126
28127         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
28128         from working on systems without dirfd (at least Irix and OSF1/Tru64).
28129
28130 2003-01-23  Bruno Haible  <bruno@clisp.org>
28131
28132         * modules/minmax: New module.
28133         * MODULES.html.sh (func_all_modules): Add it.
28134
28135 2003-01-23  Bruno Haible  <bruno@clisp.org>
28136
28137         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
28138         Eggert.
28139
28140 2003-01-22  Bruno Haible  <bruno@clisp.org>
28141
28142         * modules/exit: New module.
28143         * MODULES.html.sh (func_all_modules): Add it.
28144
28145 2003-01-22  Bruno Haible  <bruno@clisp.org>
28146
28147         * lib/exit.h: New file, from GNU gettext.
28148
28149 2003-01-19  Bruno Haible  <bruno@clisp.org>
28150
28151         * gnulib-tool: Recognize option --extract-maintainer.
28152         (func_get_maintainer): New function.
28153         * modules/*: Add Maintainer entry.
28154
28155 2003-01-16  Jim Meyering  <jim@meyering.net>
28156
28157         * m4/regex.m4: The `regex' struct is both input and output.
28158         Initialize it before each use.  Patch by Tim Waugh.
28159
28160 2003-01-16  Bruno Haible  <bruno@clisp.org>
28161
28162         * MODULES.html.sh: Add a table of contents. Add the module name as
28163         leftmost column. Add hyperlinks.
28164
28165 2003-01-15  Bruno Haible  <bruno@clisp.org>
28166
28167         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
28168
28169 2003-01-15  Bruno Haible  <bruno@clisp.org>
28170
28171         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
28172         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
28173         suffix.
28174
28175 2003-01-15  Bruno Haible  <bruno@clisp.org>
28176
28177         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
28178
28179 2003-01-15  Bruno Haible  <bruno@clisp.org>
28180
28181         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
28182         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
28183
28184 2003-01-14  Jim Meyering  <jim@meyering.net>
28185
28186         * lib/same.c (same_name): Tweak a comment.
28187
28188 2003-01-14  Bruno Haible  <bruno@clisp.org>
28189
28190         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
28191         when a string comparison is sufficient.
28192
28193 2003-01-14  Bruno Haible  <bruno@clisp.org>
28194
28195         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
28196         'unsigned int'.
28197
28198 2003-01-14  Bruno Haible  <bruno@clisp.org>
28199
28200         * lib/hash-pjw.c: Add comment about low quality of this function.
28201
28202 2003-01-13  Bruno Haible  <bruno@clisp.org>
28203
28204         * modules/stpcpy: Distribute lib/stpcpy.h.
28205         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
28206
28207 2003-01-13  Bruno Haible  <bruno@clisp.org>
28208
28209         * modules/*: Add a description.
28210         * modules/strpbrk: Fix Makefile.am snippet.
28211         * modules/strtoimax: Fix dependencies.
28212         * modules/strtoumax: Likewise.
28213
28214 2003-01-13  Bruno Haible  <bruno@clisp.org>
28215
28216         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
28217         * modules/alloca (Makefile.am): All object files depend on alloca.h.
28218         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
28219
28220 2003-01-13  Bruno Haible  <bruno@clisp.org>
28221
28222         * gnulib-tool (func_create_testdir): Store config/* files in the main
28223         directory.
28224         * config.rpath: Move to ...
28225         * config/config.rpath: ... here.
28226         * modules/gettext: Contains config/config.rpath, not config.rpath.
28227         * modules/iconv: Likewise.
28228
28229 2003-01-12  Paul Eggert  <eggert@twinsun.com>
28230
28231         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
28232         to avoid collisions with libcurses and libreadline.
28233
28234         * m4/getstr.m4: Remove.
28235         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
28236
28237 2003-01-12  Paul Eggert  <eggert@twinsun.com>
28238
28239         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
28240         to avoid collisions with libcurses and libreadline.
28241
28242         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
28243         * lib/getstr.h, getstr.c: Remove.
28244         * lib/getline.c: Include "getline.h", to check interface.
28245         Move body of old getstr.c here: this defines MIN_CHUNK and
28246         declares getdelim2, which is renamed from getstr.
28247         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
28248
28249         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
28250         All uses changed.
28251         * lib/linebuffer.h: Likewise.
28252         (readline): Remove backward-compatibility macro.
28253
28254 2003-01-12  Paul Eggert  <eggert@twinsun.com>
28255
28256         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
28257         to avoid collisions with libcurses and libreadline.
28258         * getstr: Remove.
28259         * MODULES.html.sh: Remove getstr.
28260         * modules/getline: Depend on unlocked-io, not getstr.
28261
28262 2003-01-12  Jim Meyering  <jim@meyering.net>
28263
28264         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
28265
28266 2003-01-10  Bruno Haible  <bruno@clisp.org>
28267
28268         * modules/alloca: Change Makefile.am requirements. Simplify Include
28269         requirements. Add lib/alloca_.h to file list.
28270
28271 2003-01-10  Bruno Haible  <bruno@clisp.org>
28272
28273         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
28274
28275 2003-01-10  Bruno Haible  <bruno@clisp.org>
28276
28277         * lib/alloca_.h: New file.
28278         * lib/getdate.y: Unconditionally include alloca.h.
28279         * lib/makepath.c: Likewise.
28280         * lib/setenv.c: Likewise.
28281         * lib/userspec.c: Likewise.
28282
28283 2003-01-09  Karl Berry  <karl@gnu.org>
28284
28285         * MODULES.html.sh: include `dirname $0` in PATH, to find
28286         gnulib-tool.
28287
28288 2003-01-09  Bruno Haible  <bruno@clisp.org>
28289
28290         * modules/stdbool: Change configure.ac, Makefile.am requirements.
28291         Simplify Include requirements. Add lib/stdbool.h.in to file list.
28292
28293 2003-01-09  Bruno Haible  <bruno@clisp.org>
28294
28295         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
28296
28297 2003-01-09  Bruno Haible  <bruno@clisp.org>
28298
28299         * lib/stdbool.h.in: New file.
28300
28301 2003-01-09  Bruno Haible  <bruno@clisp.org>
28302
28303         * gnulib-tool (func_all_modules): Ignore files ending in ~.
28304         * MODULES.html.sh: Likewise.
28305
28306 2003-01-08  Jim Meyering  <jim@meyering.net>
28307
28308         * lib/full-write.c: Undefine and define-away `const' after inclusion
28309         of errno.h, not before.  Suggestion from Bruno Haible.
28310
28311 2003-01-08  Bruno Haible  <bruno@clisp.org>
28312
28313         * modules/full-read: Depend on full-write.
28314
28315 2003-01-08  Bruno Haible  <bruno@clisp.org>
28316
28317         * lib/safe-read.c: Include specification header first, to ensure its
28318         selfcontainedness.
28319         * lib/full-write.c: Likewise.
28320
28321 2003-01-07  Jim Meyering  <jim@meyering.net>
28322
28323         * lib/full-write.c: Rework so that it may serve to define full_read,
28324         too.
28325         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
28326
28327 2003-01-07  Bruno Haible  <bruno@clisp.org>
28328
28329         * lib/strtoimax.c: Include <stdint.h> as an alternative to
28330         <inttypes.h>.
28331         * lib/xstrtol.h: Likewise.
28332         * lib/xstrtoimax.c: Likewise.
28333         * lib/xstrtoumax.c: Likewise.
28334         * lib/human.h: Likewise.
28335
28336         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
28337         on systems that have <inttypes.h> but not <stdint.h>.
28338
28339 2003-01-07  Bruno Haible  <bruno@clisp.org>
28340
28341         * MODULES.html.sh: Add copyright notice.
28342         (missed_files): Omit CVS directory entries.
28343         (func_module): Make it work with sed-3.02.
28344         * MODULES.txt: Remove file.
28345
28346 2003-01-06  Jim Meyering  <jim@meyering.net>
28347
28348         * lib/version-etc.c: Update year in translatable copyright string.
28349
28350 2003-01-03  Karl Berry  <karl@gnu.org>
28351
28352         * config/config.{guess,sub}: update from prep.
28353
28354 2003-01-02  Karl Berry  <karl@gnu.org>
28355
28356         * doc/COPYING.DOC: belatedly updated to 1.2.
28357
28358 2003-01-01  Karl Berry  <karl@gnu.org>
28359
28360         * gnulib-tool (func_verify_module): report module name $module in
28361         error message, not $1.
28362         * gnulib-tool (create-testdir): don't complain if destdir couldn't
28363         be created, only if it doesn't exist.
28364         * gnulib-tool (last_checkin_date): don't expand the $Date here.
28365
28366 2002-12-31  Paul Eggert  <eggert@twinsun.com>
28367
28368         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
28369
28370 2002-12-31  Paul Eggert  <eggert@twinsun.com>
28371
28372         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
28373         memcmp if strcoll doesn't work.
28374
28375 2002-12-31  Bruno Haible  <bruno@clisp.org>
28376
28377         * lib/utime.c (utime_null): No need to call ftruncate if the file was
28378         nonempty.
28379
28380 2002-12-31  Bruno Haible  <bruno@clisp.org>
28381
28382         * lib/memcoll.c (STRCOLL): New macro.
28383         (memcoll): Use it.
28384
28385 2002-12-31  Bruno Haible  <bruno@clisp.org>
28386
28387         * lib/localcharset.h: New file.
28388         * lib/localcharset.c: Include it.
28389         * lib/unicodeio.c: Likewise.
28390
28391 2002-12-31  Bruno Haible  <bruno@clisp.org>
28392
28393         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
28394         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
28395
28396 2002-12-31  Bruno Haible  <bruno@clisp.org>
28397
28398         * lib/getline.h: Include <stddef.h>, for size_t.
28399
28400         * lib/unicodeio.h: Include <stddef.h>, for size_t.
28401         * lib/unicodeio.c: Don't include <stddef.h>.
28402
28403 2002-12-31  Bruno Haible  <bruno@clisp.org>
28404
28405         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
28406         HAVE_TM_ZONE.
28407
28408 2002-12-24  Karl Berry  <karl@gnu.org>
28409
28410         * config/config.guess: update from prep.
28411
28412 2002-12-24  Bruno Haible  <bruno@clisp.org>
28413
28414         General infrasructure.
28415         * m4/README: Rewritten.
28416         * m4/onceonly.m4: New file.
28417         * m4/onceonly_2_57.m4: New file.
28418
28419         Module atexit.
28420         * m4/atexit.m4: New file.
28421
28422         Module strtod.
28423         * m4/strtod.m4: New file.
28424
28425         Module strtol.
28426         * m4/strtol.m4: New file.
28427
28428         Module strtoul.
28429         * m4/strtoul.m4: New file.
28430
28431         Module memchr.
28432         * m4/memchr.m4: New file.
28433
28434         Module memcmp.
28435         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
28436         (jm_FUNC_MEMCMP): Invoke it.
28437
28438         Module memcpy.
28439         * m4/memcpy.m4: New file.
28440
28441         Module memmove.
28442         * m4/memmove.m4: New file.
28443
28444         Module memset.
28445         * m4/memset.m4: New file.
28446
28447         Module strcspn.
28448         * m4/strcspn.m4: New file.
28449
28450         Module strpbrk.
28451         * m4/strpbrk.m4: New file.
28452
28453         Module strstr.
28454         * m4/strstr.m4: New file.
28455
28456         Module strerror.
28457         * m4/strerror.m4: New file.
28458
28459         Module mktime.
28460         * m4/mktime.m4: Renamed from jm-mktime.m4.
28461         (gl_PREREQ_MKTIME): New macro.
28462         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
28463
28464         Module malloc.
28465         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
28466         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
28467         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
28468
28469         Module realloc.
28470         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
28471         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
28472         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
28473
28474         Module strftime.
28475         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
28476         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
28477         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
28478         gl_TM_GMTOFF.
28479         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
28480
28481         Module xalloc.
28482         * m4/xalloc.m4: New file.
28483
28484         Module alloca.
28485         * m4/alloca.m4: New file.
28486
28487         Module putenv.
28488         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
28489         (jm_FUNC_PUTENV): Invoke it.
28490
28491         Module setenv.
28492         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
28493         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
28494         when invoked twice.
28495         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
28496         gt_FUNC_SETENV.
28497
28498         Module memrchr.
28499         * m4/memrchr.m4: New file.
28500
28501         Module stpcpy.
28502         * m4/stpcpy.m4: New file.
28503
28504         Module strcase.
28505         * m4/strcase.m4: New file.
28506
28507         Module strdup.
28508         * m4/strdup.m4: New file.
28509
28510         Module strnlen.
28511         * m4/strnlen.m4: New file.
28512
28513         Module strndup.
28514         * m4/strndup.m4: New file.
28515
28516         Module xstrtod.
28517         * m4/xstrtod.m4: New file.
28518
28519         Module xstrtol.
28520         * m4/xstrtol.m4: New file.
28521
28522         Module getdate.
28523         * m4/getdate.m4: New file.
28524
28525         Module unlocked-io.
28526         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
28527         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
28528         * m4/jm-glibc-io.m4n: Remove file.
28529
28530         Module long-options.
28531         * m4/long-options.m4: New file.
28532
28533         Module md5.
28534         * m4/md5.m4: New file.
28535
28536         Module sha.
28537         * m4/sha.m4: New file.
28538
28539         Module getstr.
28540         * m4/getstr.m4: New file.
28541
28542         Module getline.
28543         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
28544         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
28545         <sys/types.h>, for size_t. Use the function name gnu_getline, not
28546         simply getline. Infoke gl_PREREQ_GETLINE.
28547
28548         Module obstack.
28549         * m4/obstack.m4: New file.
28550
28551         Module hash.
28552         * m4/hash.m4: New file.
28553
28554         Module readtokens.
28555         * m4/readtokens.m4: New file.
28556
28557         Module strverscmp.
28558         * m4/strverscmp.m4: New file.
28559
28560         Module stdbool.
28561         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
28562         OSF/1.
28563
28564         Module strtoll.
28565         * m4/strtoll.m4: New file.
28566
28567         Module strtoull.
28568         * m4/strtoull.m4: New file.
28569
28570         Module strtoimax.
28571         * m4/strtoimax.m4: New file.
28572
28573         Module strtoumax.
28574         * m4/strtoumax.m4: New file.
28575
28576         Module xstrtoimax.
28577         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
28578         jm_AC_PREREQ_XSTRTOIMAX.
28579         Moved the strtol prerequisites to strtol.m4.
28580         Moved the strtoll prerequisites to strtoll.m4.
28581         Moved the strtoimax prerequisites to strtoimax.m4.
28582
28583         Module xstrtoumax.
28584         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
28585         jm_AC_PREREQ_XSTRTOUMAX.
28586         Moved the strtoul prerequisites to strtoul.m4.
28587         Moved the strtoull prerequisites to strtoull.m4.
28588         Moved the strtoumax prerequisites to strtoumax.m4.
28589
28590         Module chown.
28591         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
28592         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
28593
28594         Module dup2.
28595         * m4/dup2.m4: New file.
28596
28597         Module ftruncate.
28598         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
28599         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
28600
28601         Module getgroups.
28602         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
28603         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
28604
28605         Module gettimeofday.
28606         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
28607         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
28608         gl_PREREQ_GETTIMEOFDAY.
28609
28610         Module mkdir.
28611         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
28612         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
28613
28614         Module mkstemp.
28615         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
28616         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
28617         jm_AC_TYPE_UINTMAX_T.
28618         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
28619
28620         Module stat.
28621         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
28622         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
28623
28624         Module lstat.
28625         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
28626         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
28627
28628         Module timespec.
28629         * m4/timespec.m4 (gl_TIMESPEC): New macro.
28630         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
28631         * m4/st_mtim.m4: Indentation.
28632
28633         Module nanosleep.
28634         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
28635         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
28636         gl_PREREQ_NANOSLEEP.
28637
28638         Module regex.
28639         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
28640         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
28641         (gl_REGEX): New macro.
28642
28643         Module rename.
28644         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
28645         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
28646
28647         Module rmdir.
28648         * m4/rmdir.m4: New file.
28649
28650         Module utime.
28651         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
28652         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
28653         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
28654
28655         Module dirname.
28656         * m4/dirname.m4: New file.
28657
28658         Module getopt.
28659         * m4/getopt.m4: New file.
28660
28661         Module unistd-safer.
28662         * m4/unistd-safer.m4: New file.
28663
28664         Module fnmatch.
28665         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
28666         declaration.
28667         (gl_PREREQ_FNMATCH_EXTRA): New macro.
28668         (gl_FUNC_FNMATCH_POSIX): New macro.
28669         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
28670         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
28671         simply fnmatch.
28672
28673         Module exclude.
28674         * m4/exclude.m4: New file.
28675
28676         Module human.
28677         * m4/human.m4: New file.
28678
28679         Module acl.
28680         * m4/acl.m4: Nop.
28681
28682         Module backupfile.
28683         * m4/backupfile.m4: New file.
28684         * m4/d-ino.m4: Indentation.
28685
28686         Module fsusage.
28687         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
28688         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
28689         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
28690
28691         Module dirfd.
28692         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
28693         requirements.
28694
28695         Module euidaccess.
28696         * m4/euidaccess.m4: New file.
28697
28698         Module file-type.
28699         * m4/file-type.m4: New file.
28700
28701         Module fileblocks.
28702         * m4/fileblocks.m4: New file.
28703
28704         Module filemode.
28705         * m4/filemode.m4: New file.
28706
28707         Module isdir.
28708         * m4/isdir.m4: New file.
28709
28710         Module lchown.
28711         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
28712         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
28713
28714         Module makepath.
28715         * m4/makepath.m4: New file.
28716
28717         Module modechange.
28718         * m4/modechange.m4: New file.
28719
28720         Module mountlist.
28721         * m4/mountlist.m4: New file.
28722         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
28723         Indentation.
28724
28725         Module path-concat.
28726         * m4/path-concat.m4: New file.
28727
28728         Module pathmax.
28729         * m4/pathmax.m4: New file.
28730
28731         Module same.
28732         * m4/same.m4: New file.
28733
28734         Module save-cwd.
28735         * m4/save-cwd.m4: New file.
28736
28737         Module savedir.
28738         * m4/savedir.m4: New file.
28739
28740         Module xgetcwd.
28741         * m4/xgetcwd.m4: New file.
28742         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
28743
28744         Module xreadlink.
28745         * m4/xreadlink.m4: New file.
28746
28747         Module safe-read.
28748         * m4/safe-read.m4: New file.
28749
28750         Module safe-write.
28751         * m4/safe-write.m4: New file.
28752
28753         Module closeout.
28754         * m4/closeout.m4: New file.
28755
28756         Module stdio-safer.
28757         * m4/stdio-safer.m4: New file.
28758
28759         Module getpass.
28760         * m4/getpass.m4: New file.
28761
28762         Module getugroups.
28763         * m4/getugroups.m4: New file.
28764
28765         Module group-member.
28766         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
28767         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
28768
28769         Module idcache.
28770         * m4/idcache.m4: New file.
28771
28772         Module userspec.
28773         * m4/userspec.m4: New file.
28774
28775         Module gettime.
28776         * m4/clock_time.m4: New file.
28777         * m4/gettime.m4: New file.
28778
28779         Module settime.
28780         * m4/settime.m4: New file.
28781
28782         Module posixtm.
28783         * m4/posixtm.m4: New file.
28784
28785         Module gethostname.
28786         * m4/gethostname.m4: New file.
28787
28788         Module canon-host.
28789         * m4/canon-host.m4: New file.
28790
28791         Module gettext.
28792         * m4/codeset.m4: New file, from gettext-0.11.5.
28793         * m4/gettext.m4: New file, from gettext-0.11.5.
28794         * m4/glibc21.m4: New file, from gettext-0.11.5.
28795         * m4/iconv.m4: New file, from gettext-0.11.5.
28796         * m4/intdiv0.m4: New file, from gettext-0.11.5.
28797         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
28798         * m4/inttypes.m4: New file, from gettext-0.11.5.
28799         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
28800         * m4/isc-posix.m4: New file, from gettext-0.11.5.
28801         * m4/lcmessage.m4: New file, from gettext-0.11.5.
28802         * m4/lib-ld.m4: New file, from gettext-0.11.5.
28803         * m4/lib-link.m4: New file, from gettext-0.11.5.
28804         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
28805         * m4/progtest.m4: New file, from gettext-0.11.5.
28806         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
28807         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
28808         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
28809
28810         Module localcharset.
28811         * m4/localcharset.m4: New file.
28812
28813         Module hard-locale.
28814         * m4/hard-locale.m4: New file.
28815
28816         Module mbswidth.
28817         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
28818         onceonly macros.
28819         * m4/mbrtowc.m4: Add comment.
28820
28821         Module memcasecmp.
28822         * m4/memcasecmp.m4: New file.
28823
28824         Module memcoll.
28825         * m4/memcoll.m4: New file.
28826
28827         Module unicodeio.
28828         * m4/unicodeio.m4: New file.
28829
28830         Module rpmatch.
28831         * m4/rpmatch.m4: New file.
28832
28833         Module yesno.
28834         * m4/yesno.m4: New file.
28835
28836         Module exitfail.
28837         * m4/exitfail.m4: New file.
28838
28839         Module c-stack.
28840         * m4/c-stack.m4 (gl_C_STACK): New macro.
28841         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
28842
28843         Module error.
28844         * m4/error.m4 (gl_ERROR): New macro.
28845         (jm_PREREQ_ERROR): Use onceonly macros.
28846
28847         Module fatal.
28848         * m4/fatal.m4: New file.
28849
28850         Module getloadavg.
28851         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
28852         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
28853
28854         Module getpagesize.
28855         * m4/getpagesize.m4: New file.
28856
28857         Module getusershell.
28858         * m4/getusershell.m4: New file.
28859
28860         Module physmem.
28861         * m4/physmem.m4: New file.
28862
28863         Module posixver.
28864         * m4/posixver.m4: New file.
28865
28866         Module quotearg.
28867         * m4/quotearg.m4: New file.
28868
28869         Module quote.
28870         * m4/quote.m4: New file.
28871
28872         Module readutmp.
28873         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
28874
28875         Module sig2str.
28876         * m4/sig2str.m4: New file.
28877
28878         Other.
28879         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
28880         ulonglong.m4.
28881         * m4/intmax_t.m4: New file.
28882         * m4/d-type.m4: Indentation.
28883         * m4/jm-macros.m4: Update.
28884         * m4/prereq.m4 (jm_PREREQ): Update.
28885         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
28886         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
28887         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
28888         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
28889         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
28890         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
28891         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
28892         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
28893         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
28894         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
28895         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
28896         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
28897         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
28898         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
28899         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
28900         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
28901         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
28902         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
28903         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
28904
28905 2002-12-24  Bruno Haible  <bruno@clisp.org>
28906
28907         * MODULES.txt: Update according to m4/ changes.
28908
28909         Module gettext.
28910         * config.rpath: New file, from gettext-0.11.5.
28911
28912         * modules/*: New module descriptions.
28913         * gnulib-tool: New file.
28914         * MODULES.html.sh: New file.
28915
28916 2002-12-21  Karl Berry  <karl@gnu.org>
28917
28918         * doc/fdl.texi: update to version 1.2.
28919
28920 2002-12-19  Karl Berry  <karl@gnu.org>
28921
28922         * config/config.guess: update from prep.
28923
28924 2002-12-18  Bruno Haible  <bruno@clisp.org>
28925
28926         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
28927         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
28928
28929 2002-12-17  Bruno Haible  <bruno@clisp.org>
28930
28931         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
28932         stdlib.h, string.h.
28933
28934 2002-12-17  Bruno Haible  <bruno@clisp.org>
28935
28936         * lib/canon-host.c (strdup): Remove unused declaration.
28937
28938         * lib/fsusage.c: Include full_read.h.
28939         (get_fs_usage): Use full_read instead of safe_read.
28940
28941         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
28942
28943 2002-12-12  Karl Berry  <karl@gnu.org>
28944
28945         * config/config.guess: update from prep.
28946
28947 2002-12-11  Bruno Haible  <bruno@clisp.org>
28948
28949         * m4/setenv.m4: New file, from gettext-0.11.5.
28950
28951 2002-12-11  Bruno Haible  <bruno@clisp.org>
28952
28953         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
28954         not unsetenv().
28955         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
28956         modifications:
28957
28958         2002-12-11  Bruno Haible  <bruno@clisp.org>
28959
28960                 * setenv.c (alloca): Fall back to malloc.
28961                 (freea): New macro.
28962                 (setenv): Use freea() to free memory allocated with alloca().
28963
28964         2002-11-13  Bruno Haible  <bruno@clisp.org>
28965
28966                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
28967                 function declarations.
28968                 * unsetenv.c (unsetenv): Likewise.
28969
28970         2002-03-04  Bruno Haible  <bruno@clisp.org>
28971
28972                 Portability to AIX 4.3.3.
28973                 * unsetenv.c: New file, extracted from setenv.c.
28974                 * setenv.c: Move the unsetenv() function to unsetenv.c.
28975
28976         2001-12-20  Bruno Haible  <bruno@clisp.org>
28977
28978                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
28979                 use malloc instead. For SunOS 4.
28980
28981         2001-12-11  Bruno Haible  <bruno@clisp.org>
28982
28983                 * setenv.c: Declare alloca.
28984                 (compar_fn_t): New typedef.
28985                 (KNOWN_VALUE, STORE_VALUE): Use it.
28986
28987         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
28988         setenv.h.
28989
28990 2002-12-10  Paul Eggert  <eggert@twinsun.com>
28991
28992         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
28993         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
28994         Choose values that are less likely to collide with system fnmatch
28995         options.
28996         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
28997         defined (e.g., a pure POSIX system).
28998         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
28999         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
29000
29001 2002-12-06  Paul Eggert  <eggert@twinsun.com>
29002
29003         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
29004         a pain in practice to deal with generated m4 files.  This change
29005         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
29006
29007         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
29008         and jm-glibc-io.m4, as they are no longer a special case.
29009         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
29010         kludge and the auto-generation stuff.  Check only whether the
29011         functions are declared, not whether they exist, since older hosts
29012         that don't declare the functions can't use the optimization anyway.
29013
29014 2002-12-06  Jim Meyering  <jim@meyering.net>
29015
29016         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
29017
29018         Merge in changes from libc's misc/error.c, in preparation
29019         for the merge of gnulib's changes back into libc.
29020
29021         * lib/error.c (_): Define only if not already defined.
29022         Move definition to follow all #include directives.
29023         Include unlocked-io.h only if !_LIBC.
29024         [_LIBC]: Include <libio/libioP.h>.
29025         [USE_IN_LIBIO]: Include <libio/iolibio.h>
29026         (fflush): Tweak definition to use INTUSE.
29027         (putc): Define.
29028
29029 2002-12-05  Paul Eggert  <eggert@twinsun.com>
29030
29031         * lib/alloca.c [defined emacs]: Include "lisp.h".
29032         (xalloc_die) [defined emacs]: New macro.
29033         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
29034         [! defined emacs]: Include <xalloc.h>.
29035         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
29036         (pointer): Typedef to POINTER_TYPE *.
29037         (malloc): Remove decl; we now always use xmalloc.
29038         (alloca): Use old-style definition, since Emacs needs this.
29039         Check for arithmetic overflow when computing combined size.
29040
29041 2002-12-04  Paul Eggert  <eggert@twinsun.com>
29042
29043         Do not generate unlocked-io.h automatically, since it's easier to
29044         maintain it by hand.
29045
29046         * lib/unlocked-io.h: New file, from GNU diffutils,
29047         but with proper copyright notice and attribution.
29048         * lib/gen-uio: Remove.
29049         * lib/Makefile.am: Add copyright notice.
29050         (libfetish_a_SOURCES): Add unlocked-io.h.
29051         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
29052         (DISTCLEANFILES, io_functions): Remove macros.
29053         (EXTRA_DIST): Remove gen_uio.
29054         (unlocked-io.h): Remove rule.
29055
29056 2002-12-04  Jim Meyering  <jim@meyering.net>
29057
29058         Reflect the fact that stat.c and lstat.c are no longer generated.
29059         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
29060         (DISTCLEANFILES): Likewise.
29061         (EXTRA_DIST): Likewise.
29062         (all_local): Don't depend on stat.c or lstat.c.
29063         (stat.c, lstat.c): Remove rules.
29064         (EXTRA_DIST): Remove xstat.in.
29065
29066         * lib/xstat.in: Remove file.  Contents moved into stat.c.
29067         * lib/stat.c: New file.  Contents mostly from xstat.in.
29068         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
29069         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
29070
29071         * lib/safe-read.c: Rework so that it may serve to define safe_write,
29072         too.
29073         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
29074
29075 2002-12-03  Jim Meyering  <jim@meyering.net>
29076
29077         * lib/safe-read.c, safe-write.c: Change variable names and comments,
29078         but not semantics, to minimize the differences between these two files.
29079         (safe_read): Change comment to mention SAFE_READ_ERROR.
29080
29081         * lib/safe-read.c (IS_EINTR): Define.
29082         (safe_read): Use IS_EINTR in place of in-function cpp directives.
29083
29084 2002-12-02  Jim Meyering  <jim@meyering.net>
29085
29086         * lib/safe-read.c (EINTR): Define.
29087         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
29088         (INT_MAX): Provide fallback.
29089         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
29090
29091         * lib/safe-read.h (SAFE_READ_ERROR): Define.
29092
29093 2002-12-02  Bruno Haible  <bruno@clisp.org>
29094
29095         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
29096         Define, taken from safe-read.c.
29097         (INT_MAX): Provide fallback.
29098         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
29099         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
29100
29101         * lib/safe-read.c (EINTR): Remove definition.
29102         (safe_read): Don't use EINTR if it is absent.
29103
29104 2002-12-01  Jim Meyering  <jim@meyering.net>
29105
29106         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
29107         zero.
29108         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
29109
29110 2002-11-27  Paul Eggert  <eggert@twinsun.com>
29111
29112         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
29113         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
29114         with `if (! (value < limit)) abort ();', for readability.
29115
29116 2002-11-26  Karl Berry  <karl@gnu.org>
29117
29118         * lib/strdup.c: copy from libc again, with jim's ok.
29119         * lib/.cppi-disable: re-add strdup.c
29120
29121 2002-11-25  Karl Berry  <karl@gnu.org>
29122
29123         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
29124         instead of "strtol.c".
29125
29126 2002-11-25  Karl Berry  <karl@gnu.org>
29127
29128         * config/install-sh: update from automake for variable quoting, $0 in
29129         error msgs, etc.
29130
29131         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
29132         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
29133         entry.
29134
29135 2002-11-25  Jim Meyering  <jim@meyering.net>
29136
29137         * lib/mktime.c: Sync from libc, now that it has the latest fix.
29138
29139 2002-11-24  Karl Berry  <karl@gnu.org>
29140
29141         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
29142         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
29143
29144 2002-11-24  Jim Meyering  <jim@meyering.net>
29145
29146         Update from coreutils:
29147
29148         * lib/mktime.c: Merge in changes from libc.
29149
29150         Avoid a link-time failure on some Linux systems.
29151         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
29152         (otherwise).
29153         (__mon_yday): Declare with the STATIC attribute.
29154         (__mktime_internal): Likewise.
29155         Based on a report from Greg Schafer.
29156
29157 2002-11-23  Jim Meyering  <jim@meyering.net>
29158
29159         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
29160         Use `unsigned', not `int', as type of index.
29161
29162         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
29163
29164         * lib/fsusage.c: Remove unneeded parentheses around operands of
29165         `defined'.
29166
29167 2002-11-22  Paul Eggert  <eggert@twinsun.com>
29168
29169         * lib/quotearg.h: Allow multiple inclusion by surrounding with
29170         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
29171         so that we can be included first.
29172         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
29173         * lib/quotearg.c: Include quotearg.h immediately after config.h.
29174         No need to include stddef.h or sys/types.h any more.
29175         Surround local include files with "", not "<>".
29176         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
29177         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
29178         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
29179         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
29180         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
29181         (ISPRINT): Remove; no longer needed now that we assume C89.
29182
29183         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
29184         Preserve errno.
29185
29186         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
29187         quotearg_char): Use SIZE_MAX rather than
29188         (size_t) -1 when we are talking about "infinity".
29189
29190         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
29191
29192 2002-11-22  Paul Eggert  <eggert@twinsun.com>
29193
29194         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
29195         hint that one should use `if (! x) abort ();' rather than `assert
29196         (x);', and anyway it's one less thing to worry about configuring.
29197         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
29198         hash_rehash, hash_insert): Use abort rather than assert.
29199
29200 2002-11-22  Bruno Haible  <bruno@clisp.org>
29201
29202         * lib/safe-read.h: Assume C89. Add comments.
29203         (safe_read): Change return type to size_t.
29204         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
29205         byte counts > SSIZE_MAX correctly.
29206         * lib/safe-write.h: New file.
29207         * lib/safe-write.c: New file.
29208         * lib/full-read.h: New file.
29209         * lib/full-read.c: New file.
29210         * lib/full-write.h: Assume C89. Add comments.
29211         * lib/full-write.c: Include safe-write.h.
29212         (full_write): Rewritten to use safe_write.
29213         Suggested by Jim Meyering and Paul Eggert.
29214
29215 2002-11-21  Jim Meyering  <jim@meyering.net>
29216
29217         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
29218
29219         Merge in changes from the coreutils.
29220
29221         2002-09-25  Paul Eggert  <eggert@twinsun.com>
29222         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
29223         <stdint.h>.
29224         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
29225         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
29226         int.  Work more efficiently if X is the same width as uintmax_t.
29227         Do not compare X to -1, to avoid bogus compiler warning.
29228         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
29229         Don't assume that f_frsize and f_bsize are the same type.
29230
29231         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
29232         warning on FreeBSD.
29233
29234         * lib/makepath.c (make_path): Restore umask *before* creating the final
29235         component.
29236         (make_path): Minor reformatting.
29237
29238         * lib/xmalloc.c: Adjust to work with new autoconf macros,
29239         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
29240         HAVE_MALLOC/HAVE_REALLOC.
29241
29242         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
29243         dummy ones.  At least on GNU/Linux systems, `auto' means something
29244         else.
29245         From Michael Stone.
29246
29247 2002-11-21  Bruno Haible  <bruno@clisp.org>
29248
29249         Remove case insensitive option matching.
29250         * lib/argmatch.h (argcasematch): Remove declaration.
29251         (ARGCASEMATCH): Remove macro.
29252         (__xargmatch_internal): Remove case_sensitive argument.
29253         (XARGMATCH): Update.
29254         (XARGCASEMATCH): Remove macro.
29255         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
29256         case_sensitive argument.
29257         (argcasematch): Remove function.
29258         (__xargmatch_internal): Remove case_sensitive argument.
29259         (main): Use XARGMATCH instead of XARGCASEMATCH.
29260
29261         * lib/xmalloc.c: Change compile-time error message. Add comment about
29262         required autoconf version.
29263
29264 2002-11-20  Paul Eggert  <eggert@twinsun.com>
29265
29266         Merge argmatch cleanups from Bison.  Assume C89.
29267
29268         * lib/argmatch.c: Include config.h here, not in argmatch.h.
29269         Include stdlib.h, for EXIT_FAILURE.
29270         Always include <string.h>, since we assume C89.
29271         (EXIT_FAILURE): Remove pre-C89 bug workaround.
29272         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
29273         Include <stddef.h> instead, since it's all we need for size_t.
29274         (PARAMS): Remove.  All uses removed.
29275         (ARRAY_CARDINALITY): Do not bother to #undef.
29276         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
29277         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
29278         Remove unnecessary parentheses.
29279         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
29280         Insert necessary parentheses.
29281         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
29282         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
29283
29284 2002-11-19  Bruno Haible  <bruno@clisp.org>
29285
29286         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
29287         * lib/mbswidth.h: Include <stddef.h>, for size_t.
29288
29289         * lib/mbswidth.h (PARAMS): Remove macro.
29290         (mbswidth, mbsnwidth): Use ANSI C function declarations.
29291         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
29292
29293         * lib/gcd.h (PARAMS): Remove macro.
29294         (gcd): Use ANSI C function declarations.
29295         * lib/gcd.c (gcd): Likewise.
29296
29297 2002-11-15  Bruno Haible  <bruno@clisp.org>
29298
29299         * lib/strcspn.c: Include <stddef.h>.
29300         (strcspn): Use ANSI C function declaration. Change return type to
29301         size_t. Use NULL.
29302         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
29303         (strpbrk): Use NULL.
29304         * lib/strpbrk.h (PARAMS): Remove macro.
29305         (strpbrk): Use ANSI C function declaration.
29306         * lib/strstr.c: Don't include <sys/types.h>.
29307         * lib/strstr.h (PARAMS): Remove macro.
29308         (strstr): Use ANSI C function declarations.
29309
29310 2002-11-14  Karl Berry  <karl@gnu.org>
29311
29312         * config/mkinstalldirs: `do' on separate line, instead of
29313         `for var; do'.
29314
29315 2002-11-06  Bruno Haible  <bruno@clisp.org>
29316
29317         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
29318         * lib/gcd.c (gcd): Likewise.
29319
29320 2002-11-05  Bruno Haible  <bruno@clisp.org>
29321
29322         * lib/gcd.h: New file, from gettext-0.11.5.
29323         * lib/gcd.c: New file, from gettext-0.11.5.
29324
29325 2002-11-05  Bruno Haible  <bruno@clisp.org>
29326
29327         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
29328         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
29329         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
29330         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
29331
29332         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
29333         <libintl.h>.
29334         * lib/makepath.c: Include gettext.h instead of <locale.h> and
29335         <libintl.h>.
29336
29337         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
29338         * lib/human.c: Include gettext.h instead of <libintl.h>.
29339         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
29340         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
29341         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
29342         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
29343         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
29344         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
29345         (textdomain): Remove definition.
29346         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
29347
29348         * lib/long-options.c: Remove include of <libintl.h> and definition of
29349         _.
29350         * lib/same.c: Remove include of <libintl.h> and definition of _.
29351
29352 2002-11-04  Owen Taylor  <otaylor@redhat.com>
29353
29354         * lib/config.charset: A few additions for Solaris.
29355
29356 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
29357
29358         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
29359         * lib/localcharset.c (locale_charset): Declare as extern "C".
29360
29361 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
29362
29363         * lib/config.charset: msdos in uk_UA uses CP1125.
29364
29365 2002-11-04  Bruno Haible  <bruno@clisp.org>
29366
29367         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
29368         * lib/strcase.h: New file, from GNU gettext-0.11.5.
29369         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
29370         * lib/strstr.h: New file, from GNU gettext-0.11.5.
29371         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
29372
29373 2002-11-04  Bruno Haible  <bruno@clisp.org>
29374
29375         * lib/localcharset.c (locale_charset): Don't return an empty string.
29376
29377 2002-11-04  Bruno Haible  <bruno@clisp.org>
29378
29379         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
29380         aliases.
29381
29382 2002-11-04  Bruno Haible  <bruno@clisp.org>
29383
29384         * lib/config.charset: Update for newest glibc. Add canonical names
29385         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
29386
29387 2002-11-04  Bruno Haible  <bruno@clisp.org>
29388
29389         * lib/config.charset: Add support for NetBSD.
29390
29391 2002-11-04  Bruno Haible  <bruno@clisp.org>
29392
29393         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
29394
29395 2002-11-01  Bruno Haible  <bruno@clisp.org>
29396
29397         * configure.in: Add AC_CONFIG_AUX_DIR call.
29398         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
29399         test/Makefile.
29400         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
29401
29402 2002-09-28  Karl Berry  <karl@gnu.org>
29403
29404         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
29405         installed automake until the next release, since changes have been
29406         made.
29407
29408 2002-09-25  Karl Berry  <karl@gnu.org>
29409
29410         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
29411         * lib/getopt*: copy from libc/posix.
29412         * lib/gettext.h: copy from gettext.
29413         * lib/.cppi-disable: add strdup.c, gettext.h.
29414
29415 2002-09-25  Karl Berry  <karl@gnu.org>
29416
29417         * config/srclist.txt: enable gettext.h check.
29418         * config/config.{guess,sub}: update from prep.
29419         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
29420                 from automake 1.6.3.
29421         See srclist*.
29422
29423 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
29424
29425         * regex.c (PATFETCH): Remove the translating fetch.
29426         (PATFETCH_RAW): Rename to PATFETCH.
29427         (set_image_of_range): New fun.
29428         (SET_RANGE_TABLE_WORK_AREA): Use it.
29429         (regex_compile): Don't translate the pattern chars so eagerly.
29430         Only do it when inserting an `exactn' bytecode or when handling
29431         a char-range.
29432         (mutually_exclusive_p): Avoid empty statement.
29433
29434 2002-07-06  Jim Meyering  <meyering@lucent.com>
29435
29436         * m4/README: Don't mention Makefile.am.in.
29437         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
29438
29439 2002-07-01  Jim Meyering  <meyering@lucent.com>
29440
29441         * lib/c-stack.c: Include sys/time.h.
29442         From Volker Borchert.
29443
29444 2002-06-26  Paul Eggert  <eggert@twinsun.com>
29445
29446         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
29447
29448 2002-06-26  Paul Eggert  <eggert@twinsun.com>
29449
29450         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
29451         New macro.  Use it uniformly instead of
29452         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
29453         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
29454         reported by Vin Shelton.
29455
29456 2002-06-22  Paul Eggert  <eggert@twinsun.com>
29457
29458         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
29459         Do not assume SA_SIGINFO behavior.
29460         Bug reported by Jim Meyering on NetBSD 1.5.2.
29461
29462 2002-06-22  Jim Meyering  <meyering@lucent.com>
29463
29464         * m4/c-stack.m4: New file, from diffutils-2.8.2.
29465         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
29466
29467         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
29468         now that configure.ac uses AC_GNU_SOURCE.
29469         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
29470         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
29471
29472         Update to latest tools.  Suggestions from Paul Eggert.
29473         * m4/stdbool.m4: New file, from diffutils-2.8.2.
29474         * m4/gnu-source.m4: Update from diffutils-2.8.2.
29475         * m4/fnmatch.m4: Likewise.
29476         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
29477         to AC_HEADER_STDBOOL
29478
29479 2002-06-22  Jim Meyering  <meyering@lucent.com>
29480
29481         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
29482         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
29483
29484 2002-06-22  Jim Meyering  <meyering@lucent.com>
29485
29486         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
29487
29488         * lib/exitfail.c, exitfail.h: Likewise.
29489         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
29490
29491         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
29492         of fnmatch.h.
29493         (EXTRA_DIST): Add fnmatch_loop.c.
29494         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
29495
29496         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
29497         * lib/fnmatch.c: Update from diffutils-2.8.2.
29498         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
29499         * lib/fnmatch.h: Remove file.
29500
29501 2002-06-21  Jim Meyering  <meyering@lucent.com>
29502
29503         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
29504         * m4/mbrtowc.m4: Likewise.
29505
29506         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
29507         * m4/mbswidth.m4: Reflect name change:
29508         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
29509         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
29510
29511         * m4/lib-link.m4: Update from gettext-0.11.2.
29512         * m4/gettext.m4: Likewise.
29513
29514         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
29515         From Alfred M. Szmidt.
29516
29517 2002-06-18  Paul Eggert  <eggert@twinsun.com>
29518
29519         * lib/file-type.h: Report an error if neither S_ISREG nor
29520         S_IFREG is defined, instead of using a test specific to glibc
29521         2.2.  This should be safe, since POSIX requires S_ISREG and
29522         Unix Version 7 had S_IFREG.  We don't need to check for
29523         <sys/types.h> since we don't use any symbols that it defines.
29524
29525 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
29526
29527         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
29528         $@-t, so that each temporary file name is unique and valid in the first
29529         8 characters, for operation under DOS.
29530
29531 2002-06-15  Paul Eggert  <eggert@twinsun.com>
29532
29533         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
29534
29535 2002-06-15  Jim Meyering  <meyering@lucent.com>
29536
29537         Work even with DJGPP 2.03, which lacks support for symlinks.
29538         From Richard Dawe.
29539         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
29540         is defined.
29541         * lib/lchown.c (S_ISLNK): Likewise.
29542
29543 2002-06-15  Jim Meyering  <meyering@lucent.com>
29544
29545         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
29546         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
29547         have been included before this file.
29548
29549 2002-06-14  Jim Meyering  <meyering@lucent.com>
29550
29551         * lib/file-type.h: Use the version from diffutils-2.8.2.
29552         * lib/file-type.c: Likewise.
29553
29554 2002-06-07  Jim Meyering  <meyering@lucent.com>
29555
29556         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
29557         They're needed at least for NetBSD 1.5.2.
29558         ($statxfs_includes): Include those same headers.
29559         ($statxfs_includes): Include sys/vfs.h if available.
29560         ($statxfs_includes): Likewise for sys/statvfs.h.
29561         Check for the following members in both structs statfs and statvfs:
29562         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
29563
29564 2002-06-01  Jim Meyering  <meyering@lucent.com>
29565
29566         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
29567         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
29568
29569 2002-05-28  Jim Meyering  <meyering@lucent.com>
29570
29571         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
29572         Reported by Volker Borchert.
29573
29574 2002-05-27  Jim Meyering  <meyering@lucent.com>
29575
29576         Fix a problem seen only on nonconforming systems whereby ls.c's
29577         use of localtime, and then of gettimeofday would cause trouble:
29578         the localtime call used to initialize rpl_gettimeofday's save
29579         mechanism would clobber ls's current local time information so
29580         that in any long listing the first file would always be listed
29581         with date 1970-01-01.  Analysis by Volker Borchert.
29582
29583         * lib/gettimeofday.c (localtime): Undefine.
29584         (rpl_localtime): New function.
29585
29586 2002-05-27  Jim Meyering  <meyering@lucent.com>
29587
29588         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
29589         localtime.
29590
29591         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
29592         use the replacement function; it wouldn't resolve at link time.
29593         Reported by Volker Borchert.
29594
29595 2002-05-22  Jim Meyering  <meyering@lucent.com>
29596
29597         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
29598         file-type.h.
29599         * lib/file-type.h: New file.
29600         * lib/file-type.c (file_type): New file/function.  Extracted from
29601         diffutils.
29602
29603 2002-04-30  Jim Meyering  <meyering@lucent.com>
29604
29605         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
29606
29607 2002-04-29  Paul Eggert  <eggert@twinsun.com>
29608
29609         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
29610
29611 2002-04-29  Paul Eggert  <eggert@twinsun.com>
29612
29613         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
29614         Do not check for alloca.h (no longer used) or stdbool.h (was never
29615         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
29616
29617 2002-04-29  Paul Eggert  <eggert@twinsun.com>
29618
29619         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
29620
29621 2002-04-29  Jim Meyering  <meyering@lucent.com>
29622
29623         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
29624         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
29625         Use AC_FUNC_STRNLEN here instead.
29626
29627         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
29628         With autoconf-2.53a, it's part of AC_PROG_CC.
29629
29630 2002-04-28  Paul Eggert  <eggert@twinsun.com>
29631
29632         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
29633         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
29634
29635 2002-04-28  Paul Eggert  <eggert@twinsun.com>
29636
29637         * lib/sig2str.h, lib/sig2str.c: New files.
29638         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
29639
29640 2002-04-28  Paul Eggert  <eggert@twinsun.com>
29641
29642         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
29643         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
29644         of 127, since 64 is the largest conceivable number for ancient
29645         nonstandard hosts.
29646         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
29647
29648 2002-04-28  Jim Meyering  <meyering@lucent.com>
29649
29650         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
29651
29652 2002-04-24  Jim Meyering  <meyering@lucent.com>
29653
29654         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
29655         (jm_PREREQ): Use it.
29656
29657         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
29658         mach/mach.h fcntl.h.
29659         Check for this function: setlocale.
29660
29661 2002-04-24  Jim Meyering  <meyering@lucent.com>
29662
29663         * lib/gettext.h: New file, from Gettext.
29664         * lib/Makefile.am (INCLUDES): Remove -I../intl.
29665         (libfetish_a_SOURCES): Add gettext.h.
29666
29667 2002-04-16  Jim Meyering  <meyering@lucent.com>
29668
29669         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
29670         ut_pid, ut_id, ut_exit.
29671
29672 2002-04-16  Jim Meyering  <meyering@lucent.com>
29673
29674         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
29675         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
29676         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
29677
29678 2002-04-12  Jim Meyering  <meyering@lucent.com>
29679
29680         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
29681         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
29682         existence of the getmntinfo function.  Needed for Darwin 5.3.
29683
29684         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
29685         This is necessary at least on Darwin 5.3.
29686
29687         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
29688         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
29689         strnlen.o in the library, and that makes some versions of ranlib
29690         object.
29691
29692 2002-04-12  Jim Meyering  <meyering@lucent.com>
29693
29694         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
29695
29696 2002-04-09  Jim Meyering  <meyering@lucent.com>
29697
29698         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
29699         to be more precise.  Rather than saying we're checking whether the
29700         function `works', say what we're testing.
29701         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
29702         Reported by Bruno Haible.
29703
29704 2002-03-10  Jim Meyering  <meyering@lucent.com>
29705
29706         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
29707         Suggestion from Santiago Vila.
29708
29709 2002-03-08  Jim Meyering  <meyering@lucent.com>
29710
29711         * lib/rename.c: Mention that this wrapper is needed also on
29712         mips-dec-ultrix4.4 systems.
29713
29714 2002-03-02  Jim Meyering  <meyering@lucent.com>
29715
29716         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
29717         not HAVE_CLOCK_SETTIME.
29718
29719 2002-02-27  Paul Eggert  <eggert@twinsun.com>
29720
29721         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
29722         Check for clock_settime.
29723
29724 2002-02-27  Paul Eggert  <eggert@twinsun.com>
29725
29726         * lib/nanosleep.h: Rename to....
29727         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
29728
29729         * lib/gettime.c: New file.
29730         * lib/settime.c: New file.
29731         * lib/stime.c: Remove.
29732
29733         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
29734         timespec.h.  Remove nanosleep.h.
29735
29736 2002-02-25  Paul Eggert  <eggert@twinsun.com>
29737
29738         * m4/acl.m4: New file.
29739         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
29740         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
29741
29742 2002-02-25  Paul Eggert  <eggert@twinsun.com>
29743
29744         * lib/acl.c, lib/acl.h: New files.
29745         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
29746
29747 2002-02-24  Jim Meyering  <meyering@lucent.com>
29748
29749         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
29750         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
29751         cause trouble.  Reported by Nelson Beebe.
29752
29753 2002-02-23  Paul Eggert  <eggert@twinsun.com>
29754
29755         * lib/path-concat.c (xpath_concat): Reorder code to pacify
29756         compilers that don't know that xalloc_die never returns.
29757
29758 2002-02-20  Jim Meyering  <meyering@lucent.com>
29759
29760         * lib/getdate.c: Regenerate using bison-1.33.
29761
29762 2002-02-17  Jim Meyering  <meyering@lucent.com>
29763
29764         * config/config.guess (main): Don't use `head -1'; it's no longer
29765         portable. Use `sed 1q' instead.
29766
29767 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
29768
29769         * m4/codeset.m4: Upgrade to gettext-0.11.
29770         * m4/gettext.m4: Upgrade to gettext-0.11.
29771         * m4/glibc21.m4: Upgrade to gettext-0.11.
29772         * m4/iconv.m4: Upgrade to gettext-0.11.
29773         * m4/isc-posix.m4: Upgrade to gettext-0.11.
29774         * m4/lcmessage.m4: Upgrade to gettext-0.11.
29775         * m4/lib-ld.m4: New file, from gettext-0.11.
29776         * m4/lib-link.m4: New file, from gettext-0.11.
29777         * m4/lib-prefix.m4: New file, from gettext-0.11.
29778         * m4/progtest.m4: Upgrade to gettext-0.11.
29779
29780 2002-02-15  Paul Eggert  <eggert@twinsun.com>
29781
29782         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
29783         (jm_PREREQ): Use it.
29784
29785 2002-02-15  Paul Eggert  <eggert@twinsun.com>
29786
29787         * lib/posixver.c, lib/posixver.h: New files.
29788         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
29789
29790 2002-02-02  Paul Eggert  <eggert@twinsun.com>
29791             Bruno Haible  <bruno@clisp.org>
29792
29793         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
29794         (fwrite_success_callback): New declaration.
29795         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
29796         print_unicode_char. Call failure callback instead of error.
29797         (fwrite_success_callback): New function.
29798         (exit_failure_callback): New function.
29799         (fallback_failure_callback): New function.
29800         (print_unicode_char): Call unicode_to_mb.
29801
29802 2002-01-26  Jim Meyering  <meyering@lucent.com>
29803
29804         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
29805         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
29806
29807 2002-01-26  Jim Meyering  <meyering@lucent.com>
29808
29809         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
29810
29811 2002-01-22  Paul Eggert  <eggert@twinsun.com>
29812
29813         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
29814
29815 2002-01-22  Jim Meyering  <meyering@lucent.com>
29816
29817         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
29818         Otherwise, some versions of automake would omit the rule that makes
29819         Makefile from Makefile.in.
29820
29821 2002-01-21  Paul Eggert  <eggert@twinsun.com>
29822
29823         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
29824         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
29825         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
29826         (memcoll): Set errno to zero if there is no error.
29827
29828         * lib/quotearg.c (quotearg_buffer_restyled):
29829         Fix bug with quoting buffers containing NUL when backslashing escapes.
29830         This bug was exposed by the other changes in this patch.
29831         (quotearg_n_options): New arg ARGSIZE.
29832         All callers changed.
29833         (quoting_options_from_style): New function.
29834         (quotearg_n_style): Use it.
29835         (quotearg_n_style_mem): New function.
29836
29837         * lib/quotearg.h (quotearg_n_style_mem): New function.
29838
29839 2002-01-19  Jim Meyering  <meyering@lucent.com>
29840
29841         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
29842         Remove useless quotes: DF_PROG="df".
29843         * m4/strnlen.m4: New file.
29844
29845 2002-01-16  Paul Eggert  <eggert@twinsun.com>
29846
29847         * lib/backupfile.c (ISDIGIT): Comment fix.
29848         * lib/getdate.y (ISDIGIT): Likewise.
29849         * lib/posixtm.c (ISDIGIT, year): Likewise.
29850         * lib/strverscmp.c (ISDIGIT): Likewise.
29851         * lib/userspec.c (ISDIGIT): Likewise.
29852
29853 2002-01-16  Jim Meyering  <meyering@lucent.com>
29854
29855         * lib/getdate.y: Add three semicolons, each just before a closing
29856         brace. Bison (as of version 1.31) no longer papers over that mistake.
29857
29858 2002-01-05  Jim Meyering  <meyering@lucent.com>
29859
29860         * lib/version-etc.c (version_etc_copyright): Update copyright year.
29861
29862 2001-12-19  Paul Eggert  <eggert@twinsun.com>
29863
29864         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
29865         not silently exit merely because the output buffer happens to
29866         have nothing pending.
29867
29868 2001-12-18  Paul Eggert  <eggert@twinsun.com>
29869
29870         See the big note in ../ChangeLog.
29871         * lib/human.c (suffixes): Prefer K to k for 1024.
29872         (generate_suffix_backwards): New function.
29873         (human_readable_inexact): Use it.
29874         * lib/xstrtol.c (__xstrtol): If there is no number but there
29875         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
29876         Accept 'K' as well as 'k'.
29877
29878 2001-12-15  Jim Meyering  <meyering@lucent.com>
29879
29880         * lib/regex.h (__restrict_arr): Update from libc.
29881
29882         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
29883         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
29884         (STREQ): Define.
29885
29886 2001-12-14  Jim Meyering  <meyering@lucent.com>
29887
29888         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
29889         Suggestion from Bruno Haible.
29890
29891 2001-12-10  Jim Meyering  <meyering@lucent.com>
29892
29893         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
29894         xrealloc, Instead, include "xalloc.h".
29895         (initbuffer): Don't cast xmalloc return value to char*.
29896         (readline): Reword comment.
29897         Don't cast xrealloc return value to char*
29898         Return NULL, not 0.
29899
29900 2001-12-09  Jim Meyering  <meyering@lucent.com>
29901
29902         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
29903         about `signed and unsigned type in conditional expression'.
29904         * lib/posixtm.c (posix_time_parse): Likewise.
29905
29906         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
29907
29908         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
29909         to avoid a pedantic warning.
29910
29911         * lib/getstr.c: Don't include assert.h.
29912         (getstr): Remove warning-evoking assertions.
29913         Return -1 if offset parameter is out of bounds.
29914         Change the type of a local from int to size_t.
29915
29916         * lib/strftime.c (my_strftime_localtime_r): Include this function
29917         definition in the `#if ! HAVE_TM_GMTOFF' block.
29918
29919         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
29920         Include xalloc.h instead.
29921
29922 2001-12-02  Jim Meyering  <meyering@lucent.com>
29923
29924         * lib/tempname.c: Don't declare getenv, thus reverting the change of
29925         2001-11-18.  It's no longer necessary, now that stdlib.h is always
29926         included.
29927
29928         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
29929         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
29930
29931 2001-11-30  Akim Demaille  <akim@epita.fr>
29932
29933         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
29934         before being defined.
29935
29936 2001-11-27  Paul Eggert  <eggert@twinsun.com>
29937
29938         * lib/quotearg.h (quotearg_n, quotearg_n_style):
29939         First arg is int, not unsigned.
29940         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
29941         (SIZE_MAX, UINT_MAX): New macros.
29942         (quotearg_n_options): Abort if N is negative.
29943         Avoid overflow check on hosts where size_t is 64 bits and int
29944         is 32 bits, as overflow is impossible there.
29945         Fix off-by-one typo that caused unnecessary reallocation.
29946
29947 2001-11-27  Jim Meyering  <meyering@lucent.com>
29948
29949         * lib/tempname.c: Merge with version from libc.
29950         * lib/regex.c: Likewise.
29951
29952         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
29953         systems for which STDC_HEADERS is 0, it was not included, resulting in
29954         a warning about an integer-to-pointer conversion problem with getenv.
29955         Reported by Volker Borchert.
29956
29957 2001-11-26  Jim Meyering  <meyering@lucent.com>
29958
29959         * lib/gtod.h: Remove file.
29960         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
29961         * lib/gettimeofday.c: Don't include gtod.h.
29962         (GTOD_init): Remove function.
29963         (rpl_gettimeofday): Do its job here instead, rather than aborting.
29964         Suggestion from Volker Borchert.
29965
29966 2001-11-23  Jim Meyering  <meyering@lucent.com>
29967
29968         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
29969         it.
29970         * lib/hash.c (struct hash_table): Define it here instead.
29971
29972 2001-11-22  Jim Meyering  <meyering@lucent.com>
29973
29974         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
29975
29976 2001-11-20  Jim Meyering  <meyering@lucent.com>
29977
29978         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
29979         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
29980
29981 2001-11-19  Jim Meyering  <meyering@lucent.com>
29982
29983         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
29984         directory.  Use "conftestXXXXXX" as the template.
29985         Suggestion from Paul Eggert.
29986
29987         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
29988         immediately, so the test doesn't mistakenly hit the max-open-files
29989         limit.
29990
29991 2001-11-18  Paul Eggert  <eggert@twinsun.com>
29992
29993         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
29994         (TEMPORARIES): New macro.
29995         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
29996         removes an artificial limitation (e.g. HP-UX 10.20, where
29997         TMP_MAX is 17576).
29998
29999 2001-11-18  Jim Meyering  <meyering@lucent.com>
30000
30001         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
30002
30003 2001-11-18  Jim Meyering  <meyering@lucent.com>
30004
30005         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
30006         on SunOS 4.
30007
30008         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
30009         files will be created before anything else.
30010
30011 2001-11-17  Paul Eggert  <eggert@twinsun.com>
30012
30013         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
30014         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
30015
30016 2001-11-17  Jim Meyering  <meyering@lucent.com>
30017
30018         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
30019         Prompted by a report from Bob Proulx.
30020
30021         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
30022         Instead, require UTILS_FUNC_MKSTEMP.
30023
30024 2001-11-17  Jim Meyering  <meyering@lucent.com>
30025
30026         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
30027         Now, that's done as part of AC_FUNC_STRTOD.
30028
30029 2001-11-17  Jim Meyering  <meyering@lucent.com>
30030
30031         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
30032         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
30033         rather than group writable.  Patch by Juan F. Codagnone.
30034
30035         * lib/readtokens.c: Remove explicit declarations of xmalloc and
30036         xrealloc, Instead, include "xalloc.h".
30037
30038         * lib/mountlist.c: Include unlocked-io.h after all system headers.
30039         Remove explicit declarations of xmalloc, xrealloc,
30040         and xstrdup.  Instead, include "xalloc.h".
30041
30042         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
30043         unlocked-io.h.
30044         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
30045         Likewise.
30046         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
30047
30048         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
30049         Reported by Padraig Brady.
30050
30051         * lib/mkstemp.c: #undef mkstemp.
30052         Include config.h.
30053         (rpl_mkstemp): Rename from mkstemp.
30054         Protoize.
30055
30056 2001-11-16  Jim Meyering  <meyering@lucent.com>
30057
30058         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
30059         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
30060         determine the amount of total physical memory, use pstat_getstatic.
30061         HPUX-11 doesn't define _SC_PHYS_PAGES.
30062         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
30063         If sysconf couldn't be used to determine the amount of available
30064         physical memory, use both pstat_getstatic and pstat_getdynamic.
30065         Based on a patch from Bob Proulx.
30066
30067 2001-11-10  Jim Meyering  <meyering@lucent.com>
30068
30069         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
30070         (jm_PREREQ): Use it.
30071
30072 2001-11-09  Jim Meyering  <meyering@lucent.com>
30073
30074         * m4/jm-macros.m4: Require autoconf-2.52f.
30075         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
30076         Use these AC_-prefixed names, not the AM_-prefixed ones.
30077
30078         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
30079
30080 2001-11-05  Jim Meyering  <meyering@lucent.com>
30081
30082         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
30083
30084 2001-11-04  Jim Meyering  <meyering@lucent.com>
30085
30086         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
30087         $DEFS.
30088
30089 2001-11-03  Jim Meyering  <meyering@lucent.com>
30090
30091         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
30092         of AC_DEFUN.
30093
30094         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
30095         know the name of the variable in the macro definition.
30096
30097 2001-11-03  Jim Meyering  <meyering@lucent.com>
30098
30099         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
30100         in argmatch_to_argument call.
30101
30102         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
30103         argument.
30104
30105         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
30106         e.g., a fault due to an attempt to free a NULL pointer.
30107
30108 2001-11-01  Jim Meyering  <meyering@lucent.com>
30109
30110         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
30111         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
30112
30113 2001-11-01  Jim Meyering  <meyering@lucent.com>
30114
30115         * lib/dirfd.c, lib/dirfd.h: New files.
30116         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
30117
30118         * lib/hash.c (hash_print) [TESTING]: Clean up.
30119
30120 2001-10-22  Paul Eggert  <eggert@twinsun.com>
30121
30122         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
30123         to avoid a warning if -Wall.
30124
30125 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
30126
30127         * README: New file
30128         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
30129         (per RMS's instructions, this is now the canonical source)
30130         * lgpl/, gpl/: New directories.
30131
30132 2001-10-21  Paul Eggert  <eggert@twinsun.com>
30133
30134         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
30135
30136 2001-10-21  Jim Meyering  <meyering@lucent.com>
30137
30138         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
30139         this code would end up calling gettext even in packages built
30140         with --disable-nls.
30141         * lib/getopt.c (_): Likewise.
30142         * lib/regex.c (_): Likewise.
30143
30144 2001-10-20  Paul Eggert  <eggert@twinsun.com>
30145
30146         * m4/error.m4 (jm_PREREQ_ERROR):
30147         Do not invoke AC_CHECK_FUNCS with strerror_r, as
30148         AC_FUNC_STRERROR_R does that.
30149         Check for strerror declaration.
30150
30151         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
30152         are supposed to have them these days.
30153         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
30154         Merge changes from latest Autoconf CVS.
30155         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
30156         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
30157         POSIX decided to standardize on the int flavor of strerror_r.
30158
30159 2001-10-20  Paul Eggert  <eggert@twinsun.com>
30160
30161         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
30162         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
30163         Use strerror_r that is only a macro, even if it is not a function.
30164         (strerror): Check for HAVE_DECL_STRERROR before declaring.
30165         (private_strerror): Use prototypes, not old-style function definition.
30166         (print_errno_message): New function.
30167         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
30168         char*-flavored one.
30169         (error_tail, error, error_at_line): Use it.
30170
30171 2001-10-11  Jim Meyering  <meyering@lucent.com>
30172
30173         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
30174         and quote_n (1, ... to avoid clobbering a buffer.
30175
30176 2001-10-05  Jim Meyering  <meyering@lucent.com>
30177
30178         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
30179         hash-pjw.h.
30180         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
30181         * lib/hash-pjw.h: New file.
30182
30183 2001-09-30  Jim Meyering  <meyering@lucent.com>
30184
30185         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
30186         `struct fsstat' has the `f_fstypename' member.
30187         Use that to define FS_TYPE, which is now used to make
30188         the getfsstat link test tighter.
30189
30190 2001-09-30  Jim Meyering  <meyering@lucent.com>
30191
30192         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
30193         Include <sys/ucred.h>, for Apple Darwin.
30194         Include sys/mount.h and sys/fs_types.h only if available.
30195         (FS_TYPE): Define.
30196         (read_filesystem_list): Use FS_TYPE.
30197
30198 2001-09-29  Paul Eggert  <eggert@twinsun.com>
30199
30200         * lib/exclude.c (excluded_filename): 0 -> false, since it's
30201         a boolean context.
30202
30203 2001-09-29  Jim Meyering  <meyering@lucent.com>
30204
30205         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
30206         [one-argument getmntent function]): Include stdio.h before mntent.h.
30207         SunOS 4.1.x needs it for the declaration of `FILE'.
30208         Patch by Volker Borchert.
30209
30210         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
30211         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
30212         sys/fs_types.h, and make the link-test for getfsstat guard #include
30213         directives with appropriate #if HAVE_*_H tests so that we can
30214         detect getfsstat on Apple Darwin1.3.7 systems.
30215         Reported by Nelson Beebe.
30216         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
30217
30218 2001-09-28  Paul Eggert  <eggert@twinsun.com>
30219
30220         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
30221         #defines strtoimax.  Also treat the other strto* functions
30222         like strtoimax.
30223
30224         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
30225         Check for strtoul and strtoumax,
30226         as those declarations are made even in the signed case.
30227         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
30228         Likewise, for strtol and strtoimax.
30229
30230 2001-09-28  Paul Eggert  <eggert@twinsun.com>
30231
30232         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
30233         #defines strtoimax.  Also treat the other strto* functions
30234         like strtoimax.
30235
30236         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
30237         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
30238         (strtoimax, strtoumax): Do not declare if already defined as a macro.
30239
30240 2001-09-26  Jim Meyering  <meyering@lucent.com>
30241
30242         Most macros in unlocked-io.h had the wrong number of arguments.
30243         * lib/gen-uio: New script.
30244         (USE_UNLOCKED_IO): Define to 1 if not already defined.
30245         * lib/unlocked-io.hin: Remove file.
30246         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
30247         rather than trying to embed it here.
30248         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
30249         Reported by Padraig Brady.
30250
30251 2001-09-25  Volker Borchert  <bt@teknon.de>
30252
30253         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
30254         `result'.
30255
30256 2001-09-24  Jim Meyering  <meyering@lucent.com>
30257
30258         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
30259
30260 2001-09-23  Jim Meyering  <meyering@lucent.com>
30261
30262         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
30263         instead of the mere test for existence of mntent.h.  The latter
30264         would get a false-positive on AIX 3.4 systems.
30265         In the outer getmntent if-block, don't die if neither of the getmntent
30266         tests succeeds.  Instead, just fall through and continue with the
30267         remaining tests.
30268
30269 2001-09-23  Jim Meyering  <meyering@lucent.com>
30270
30271         * lib/mountlist.c: Remove useless parentheses in #if directives.
30272         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
30273         the deprecated MOUNTED symbol is no longer defined in mntent.h.
30274
30275 2001-09-22  Jim Meyering  <meyering@lucent.com>
30276
30277         * m4/gettext.m4: New file.  From gettext.
30278         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
30279         * m4/progtest.m4: Likewise
30280         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
30281         * m4/glibc21.m4: Likewise.
30282
30283         * m4/libintl.m4: Remove.  No longer used.
30284
30285 2001-09-22  Jim Meyering  <meyering@lucent.com>
30286
30287         * lib/localcharset.c: Update from latest gettext.
30288         * lib/config.charset: Likewise.
30289
30290 2001-09-20  Jim Meyering  <meyering@lucent.com>
30291
30292         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
30293         strtoimax.
30294         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
30295         strtoumax.
30296
30297 2001-09-20  Jim Meyering  <meyering@lucent.com>
30298
30299         * lib/xstrtol.c (strtoimax): Guard declaration with
30300         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
30301         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
30302         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
30303         (strtoumax): Likewise, for completeness (it wasn't necessary).
30304
30305 2001-09-17  Paul Eggert  <eggert@twinsun.com>
30306
30307         * lib/strtoimax.c (HAVE_LONG_LONG):
30308         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
30309         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
30310         to work around bug in IBM C compiler.
30311
30312 2001-09-17  Jim Meyering  <meyering@lucent.com>
30313
30314         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
30315         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
30316         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
30317         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
30318         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
30319         whenever the right hand side need not be expanded by the shell.
30320
30321 2001-09-16  Paul Eggert  <eggert@twinsun.com>
30322
30323         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
30324         library.  It's not correct, as some older glibcs are buggy.
30325         fnmatch wasn't fixed until glibc 2.2.
30326
30327         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
30328         special shell magic here.
30329
30330 2001-09-16  Jim Meyering  <meyering@lucent.com>
30331
30332         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
30333         * m4/jm-macros.m4: Require it.
30334
30335 2001-09-16  Jim Meyering  <meyering@lucent.com>
30336
30337         * lib/mkdir.c: New file.
30338
30339 2001-09-15  Jim Meyering  <meyering@lucent.com>
30340
30341         * m4/jm-macros.m4: Check for help2man.
30342
30343 2001-09-11  Jim Meyering  <meyering@lucent.com>
30344
30345         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
30346         The body, by Paul Eggert, was moved here from configure.in.
30347         * m4/jm-macros.m4: Require UTILS_HOST_OS.
30348
30349 2001-09-04  Paul Eggert  <eggert@twinsun.com>
30350
30351         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
30352         (jm_PREREQ): Use it.
30353
30354 2001-09-04  Paul Eggert  <eggert@twinsun.com>
30355
30356         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
30357         Use ssize_t, not int, to store result of readlink.
30358         Check for ssize_t overflow as well as size_t overflow,
30359         as POSIX says the result of readlink is implementation-defined
30360         when ssize_t overflows.
30361         Remove unnecessary cast to char*.
30362         Use free+malloc instead of realloc, as the storage doesn't need
30363         to be preserved and it's clearer and can be more efficient that way.
30364         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
30365         * lib/xreadlink.h (xreadlink): Update prototype.
30366
30367 2001-09-04  Paul Eggert  <eggert@twinsun.com>
30368
30369         * lib/xgetcwd.c: Revert some of the previous change; intead,
30370         fix the HAVE_GETCWD_NULL code to behave more like the
30371         !HAVE_GETCWD_NULL code used to.
30372
30373         Include "xalloc.h".
30374         (xgetcwd): Do not return NULL when memory is exhausted; instead,
30375         invoke xalloc_die.
30376
30377 2001-09-03  Paul Eggert  <eggert@twinsun.com>
30378
30379         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
30380         sys/param.h, as pathmax.h includes them.
30381
30382 2001-09-03  Paul Eggert  <eggert@twinsun.com>
30383
30384         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
30385         (jm_PREREQ_XGETCWD): New macro.
30386
30387         * m4/getcwd.m4: New file.
30388
30389 2001-09-03  Paul Eggert  <eggert@twinsun.com>
30390
30391         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
30392         like the HAVE_GETCWD_NULL code.
30393         Include pathmax.h if not HAVE_GETCWD.
30394         Do not include xalloc.h.
30395         (INITIAL_BUFFER_SIZE): New symbol.
30396         Do not use xmalloc / xrealloc, since the caller is responsible for
30397         handling errors.  Preserve errno around `free' during failure.
30398         Do not overrun buffer when using getwd.
30399
30400 2001-09-03  Paul Eggert  <eggert@twinsun.com>
30401
30402         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
30403         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
30404         getcwd (NULL, 0).
30405
30406 2001-09-03  Paul Eggert  <eggert@twinsun.com>
30407
30408         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
30409         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
30410         spotted by Jim Meyering.
30411
30412 2001-09-03  Jim Meyering  <meyering@lucent.com>
30413
30414         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
30415         failure.
30416
30417 2001-09-02  Jim Meyering  <meyering@lucent.com>
30418
30419         * lib/error.c: Update from GNU libc.
30420
30421 2001-09-01  Jim Meyering  <meyering@lucent.com>
30422
30423         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
30424         Used by df.
30425
30426 2001-09-01  Jim Meyering  <meyering@lucent.com>
30427
30428         * lib/xreadlink.c: New file.
30429         * lib/xreadlink.h: New file.
30430         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
30431         xreadlink.h.
30432
30433         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
30434         doesn't conflict with sparc Solaris 7's definition in
30435         /usr/include/sys/int_types.h.
30436
30437         * lib/exclude.c: Use `""', not `<>' to #include non-system header
30438         files.
30439         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
30440         and strncasecmp as r-values.  Unixware didn't have declarations.
30441
30442 2001-08-31  Paul Eggert  <eggert@twinsun.com>
30443
30444         * lib/xstrtol.h: Add copyright notice.
30445         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
30446         LONGINT_INVALID_SUFFIX_CHAR.
30447
30448 2001-08-31  Paul Eggert  <eggert@twinsun.com>
30449
30450         * lib/xstrtol.c (strtoimax): New decl.
30451
30452 2001-08-31  Paul Eggert  <eggert@twinsun.com>
30453
30454         * lib/xgetcwd.c: Don't include pathmax.h.
30455         Include stdlib.h and unistd.h if available.
30456         Include xalloc.h.
30457         (xmalloc, xstrdup, free): Remove decls.
30458         (xgetcwd): Don't assume sizes fit in unsigned.
30459         Check for overflow when computing sizes.
30460         Simplify reallocation code.
30461
30462 2001-08-31  Paul Eggert  <eggert@twinsun.com>
30463
30464         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
30465         a directory's st_size can have an arbitrary value, so the old
30466         usage could waste an arbitrary amount of memory.  All uses
30467         changed.
30468         * lib/savedir.h: Update prototype.
30469
30470 2001-08-31  Paul Eggert  <eggert@twinsun.com>
30471
30472         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
30473
30474         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
30475         old strtoimax.c.
30476
30477         Also, make the following further changes to make this file's
30478         configuration more similar to that of strtol.c:
30479         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
30480         (strtoumax, uintmax_t, strtoull, strtol): Remove.
30481         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
30482         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
30483         changed to signed values.
30484
30485         And make the following changes as well:
30486         Fix copyright notice, as 1999 was missing.
30487         (verify): New macro.
30488         (strtoimax): Check sizes at compile-time, not run-time.
30489         Prefer strtol to strtoll if both work.
30490         (main): Remove; it was not that useful and was a pain to maintain.
30491
30492         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
30493
30494 2001-08-31  Jim Meyering  <meyering@lucent.com>
30495
30496         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
30497         Use an initial, malloc'd, buffer of length 128 rather than
30498         a statically allocated one of length 1024.
30499
30500 2001-08-30  Paul Eggert  <eggert@twinsun.com>
30501
30502         Simplify code, partly by assuming autoconf 2.52 semantics.
30503
30504         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
30505
30506         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
30507         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
30508         All uses removed.
30509         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
30510         Move AC_REQUIRE to next-to-top level, to avoid confusion.
30511         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
30512         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
30513         jm_AC_HEADER_INTTYPES_H.
30514         * m4/jm-macros.m4 (jm_MACROS): Likewise.
30515
30516         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
30517
30518         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
30519         Quote first arg of AC_DEFUN.
30520         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
30521         since they are needed to parse the include file even if we need
30522         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
30523         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
30524         but with opposite signedness.
30525
30526 2001-08-30  Paul Eggert  <eggert@twinsun.com>
30527
30528         Merge 'exclude' changes from tar 1.13.22.
30529         This fixes one or two unlikely storage allocation overflow bugs,
30530         but doesn't change user-visible behavior otherwise.
30531
30532 2001-08-30  Paul Eggert  <eggert@twinsun.com>
30533
30534         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
30535         (jm_PREREQ_EXCLUDE): New macro.
30536
30537 2001-08-30  Paul Eggert  <eggert@twinsun.com>
30538
30539         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
30540         tm to be declared.
30541
30542 2001-08-30  Paul Eggert  <eggert@twinsun.com>
30543
30544         * lib/hash.c: Remove '2001' from copyright notice.
30545
30546 2001-08-30  Paul Eggert  <eggert@twinsun.com>
30547
30548         * lib/full-write.h: New file.
30549         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
30550         * lib/full-write.c: Correct credits, as cccp.c no longer
30551         exists and anyway it was so heavily changed from the old cccp
30552         code as to be unrecognizable.  Include full-write.h.
30553         (full_write) Return size_t, with short writes meaning failure.
30554         All callers changed.  This fixes a bug with large buffers
30555         on 64-bit hosts.
30556         * lib/utime.c: Include full-write.h.
30557
30558 2001-08-30  Paul Eggert  <eggert@twinsun.com>
30559
30560         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
30561         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
30562         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
30563         Include if available.
30564         (<xalloc.h>): Include
30565         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
30566         (verify): New macro.  Use it to verify that EXCLUDE macros do not
30567         collide with FNM macros.
30568         (struct patopts): New struct.
30569         (struct exclude): Use it, as exclude patterns now come with options.
30570         (new_exclude): Support above changes.
30571         (new_exclude, add_exclude_file):
30572         Initial size must now be a power of two to simplify overflow checking.
30573         (free_exclude, fnmatch_no_wildcards): New function.
30574         (excluded_filename): No longer requires options arg, as the options
30575         are determined by add_exclude.  Now returns bool, not int.
30576         (excluded_filename, add_exclude):
30577         Add support for the fancy new exclusion options.
30578         (add_exclude, add_exclude_file): Now takes int options arg.
30579         Check for arithmetic overflow when computing sizes.
30580         (add_exclude_file): xrealloc might modify errno, so don't
30581         realloc until after errno might be used.
30582
30583         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
30584         New macros.
30585         (free_exclude): New decl.
30586         (add_exclude, add_exclude_file): Now takes int options arg.
30587         (excluded_filename): No longer requires options arg, as the options
30588         are determined by add_exclude.  Now returns bool, not int.
30589
30590 2001-08-30  Paul Eggert  <eggert@twinsun.com>
30591
30592         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
30593
30594 2001-08-27  Jim Meyering  <meyering@lucent.com>
30595
30596         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
30597
30598         * lib/version-etc.c (N_): Remove definition.
30599         Revert most of last change.
30600         Instead, simply don't mark the `Copyright...' string for translation.
30601         Based on advice from Paul Eggert.
30602
30603         * lib/strtoxmax.c: Tweak comment.
30604
30605 2001-08-26  Jim Meyering  <meyering@lucent.com>
30606
30607         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
30608
30609         * m4/xstrtoimax.m4: New file.
30610         * m4/xstrtoumax.m4: Add comments explaining why we
30611         AC_REPLACE_FUNCS(strtol).
30612
30613 2001-08-26  Jim Meyering  <meyering@lucent.com>
30614
30615         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
30616         of copyright with `%s' so translators don't get an untranslated
30617         message in 2002.
30618         (COPYRIGHT_YEAR): Define.
30619         (version_etc): Use fprintf rather than fputs.
30620         Suggestion from Ulrich Drepper.
30621
30622         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
30623
30624         * lib/strtoll.c: New file, from GNU libc.
30625         * lib/xstrtoimax.c: New file.
30626
30627         * lib/xstrtol.h: Add xstrtoimax.
30628         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
30629         * lib/strtoimax.c: New file.  Likewise, but first define
30630         STRTOUXMAX_SIGNED.
30631
30632         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
30633         ...
30634         * lib/strtoxmax.c: ... then renamed to this.
30635
30636 2001-08-18  Paul Eggert  <eggert@twinsun.com>
30637
30638         * m4/inttypes.m4: Add AC_PREREQ(2.13).
30639         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
30640         (jm_AC_TYPE_INTMAX_T): New macro.
30641         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
30642
30643         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
30644
30645         * m4/longlong.m4: Renamed from ulonglong.m4.
30646         * m4/inttypes.m4: Renamed from inttypes_h.m4.
30647         * m4/uintmax_t.m4: Removed.
30648
30649 2001-08-13  Paul Eggert  <eggert@twinsun.com>
30650
30651         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
30652         Port to Solaris 8, where 'sed' requires a space after the 'r'
30653         command, and where sh dislikes "$/".  Clean up the spacing a bit.
30654         Redirect output to $tmp just once.
30655
30656 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
30657
30658         * lib/addext.c (<errno.h>): Include.
30659         (errno): Declare if not defined.
30660         (addext): Work correctly when pathconf returns -1 and leaves
30661         errno alone because there is no limit.  Also, work even if
30662         pathconf returns a value greater than SIZE_MAX.
30663
30664 2001-08-12  Jim Meyering  <meyering@lucent.com>
30665
30666         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
30667         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
30668         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
30669         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
30670         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
30671         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
30672         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
30673         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
30674         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
30675         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
30676         utime.m4, utimes.m4, xstrtoumax.m4:
30677         Quote the first argument in each use of AC_DEFUN.
30678
30679 2001-08-12  Jim Meyering  <meyering@lucent.com>
30680
30681         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
30682         Simply `return getcwd (NULL, 0);'.
30683         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
30684         Use 1300 as initial value for length, not PATH_MAX.
30685
30686         * lib/pathmax.h: Clean up cpp syntax.
30687
30688 2001-08-12  Jim Meyering  <meyering@lucent.com>
30689
30690         * lib/gettimeofday.c: New file.
30691         * lib/gtod.h: New file.
30692         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
30693
30694 2001-08-05  Jim Meyering  <meyering@lucent.com>
30695
30696         * m4/jm-macros.m4: Require autoconf-2.52.
30697
30698 2001-08-04  Jim Meyering  <meyering@lucent.com>
30699
30700         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
30701         stmt, to get in sync with glibc.
30702
30703 2001-08-03  Paul Eggert  <eggert@twinsun.com>
30704
30705         The following changes are from gettext 0.10.39 as maintained by
30706         Bruno Haible.
30707
30708         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
30709         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
30710         with inverted sense.  All uses changed.
30711
30712         * lib/mbswidth.c: Don't include <limits.h>.
30713         Include <stdlib.h> and <string.h> unconditionally.
30714         (iswcntrl, mbsinit, ISCNTRL): New macros.
30715         (mbsnwidth): Use K&R style function declarations.
30716         Don't bother checking for MB_LEN_MAX == 1, since the compiler
30717         can optimize it when MB_CUR_MAX == 1.
30718         The width of control characters is zero, not 1.
30719
30720 2001-08-03  Paul Eggert  <eggert@twinsun.com>
30721
30722         The following changes are from gettext 0.10.39 as maintained by
30723         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
30724
30725         * m4/codeset.m4: Upgrade to serial AM1.
30726         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
30727         all uses changed.  Quote first arg of AC_DEFUN.
30728         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
30729
30730         * m4/iconv.m4: Upgrade to serial AM2.
30731         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
30732         Add --with-libconv-prefix.
30733         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
30734         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
30735         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
30736         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
30737         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
30738
30739         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
30740         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
30741         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
30742         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
30743         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
30744         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
30745         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
30746         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
30747         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
30748
30749         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
30750         string.h any more.
30751
30752         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
30753         not the default value.
30754
30755         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
30756         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
30757         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
30758         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
30759         Also check for iswcntrl, used for wcwidth fallback.
30760         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
30761         to Autoconf 2.13.
30762
30763 2001-08-03  Jim Meyering  <meyering@lucent.com>
30764
30765         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
30766         as it was in the original.  Reported by Paul Eggert.
30767
30768 2001-07-16  Jim Meyering  <meyering@lucent.com>
30769
30770         * m4/gettimeofday.m4: New file.
30771         Prompted by a report from Bernhard Baehr.
30772
30773 2001-07-15  Jim Meyering  <meyering@lucent.com>
30774
30775         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
30776         stuff. Now it's in ../Makefile.cfg.
30777
30778 2001-07-15  Jim Meyering  <meyering@lucent.com>
30779
30780         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
30781         (BUILT_SOURCES): Add unlocked-io.h.
30782         (io_functions): Define.
30783         (unlocked-io.h): New rule.
30784         (DISTCLEANFILES): Add unlocked-io.h.
30785         (all-local): Depend on unlocked-io.h, to ensure it is created.
30786
30787         * lib/unlocked-io.hin: New file
30788
30789         * lib/regex.c: Update from glibc.
30790
30791 2001-07-05  Jim Meyering  <meyering@lucent.com>
30792
30793         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
30794         recommendation.
30795         (libfetish_a_SOURCES): Put all .h files here instead.
30796         Remove a thus-exposed (better checks in automake) duplicate and
30797         two unnecessary .h files.
30798
30799 2001-07-04  Jim Meyering  <meyering@lucent.com>
30800
30801         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
30802         that generates jm-glibc-io.m4 so that it doesn't trigger any make
30803         distcheck failure.
30804
30805 2001-07-02  Jim Meyering  <meyering@lucent.com>
30806
30807         The following changes were prompted by suggestions from Bruno Haible.
30808
30809         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
30810         is now generated.
30811         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
30812         definition of EXTRA_DIST.
30813         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
30814         ensure that the generated file is created/updated whenever the list
30815         of $(unlocked_functions) is changed.
30816         (jm-glibc-io.m4): New rule.
30817         (unlocked-io.h): New rule -- currently unused.
30818
30819 2001-06-24  Jim Meyering  <meyering@lucent.com>
30820
30821         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
30822         unmatched right bracket, rather than kludging it with an extra,
30823         falsely-matching quote in a comment.  Patch by Akim Demaille.
30824
30825 2001-06-11  Jim Meyering  <meyering@lucent.com>
30826
30827         * lib/regex.c: Update from GNU libc.
30828
30829 2001-05-27  Jim Meyering  <meyering@lucent.com>
30830
30831         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
30832         Check for ut_type in struct utmp.
30833
30834 2001-05-27  Jim Meyering  <meyering@lucent.com>
30835
30836         * lib/readutmp.h (UT_TYPE): Define.
30837
30838 2001-05-24  Jim Meyering  <meyering@lucent.com>
30839
30840         * lib/argmatch.c: Include "quote.h".
30841         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
30842         quote function.  Reported by Göran Uddeborg.
30843
30844 2001-05-22  Jim Meyering  <meyering@lucent.com>
30845
30846         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
30847         now that we use the package-supplied version unconditionally.
30848         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
30849
30850 2001-05-21  Jim Meyering  <meyering@lucent.com>
30851
30852         * m4/regex.m4: Change a couple backticks to single quotes to avoid
30853         shell syntax errors.
30854
30855 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
30856
30857         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
30858
30859 2001-05-20  Paul Eggert  <eggert@twinsun.com>
30860
30861         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
30862         Don't bother to check library strftime, since
30863         we'll be using our own my_strftime function anyway.
30864         Define my_strftime instead of strftime.
30865
30866 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
30867
30868         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
30869         which is not yet declared.
30870
30871 2001-05-15  Jim Meyering  <meyering@lucent.com>
30872
30873         * m4/regex.m4: Use proper quoting so brackets appear in the test
30874         program.
30875         Reported by, and with help from, Bruno Haible.
30876
30877 2001-05-13  Jim Meyering  <meyering@lucent.com>
30878
30879         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
30880         undefined.
30881
30882 2001-05-11  Paul Eggert  <eggert@twinsun.com>
30883
30884         dirname code cleanup.  base_name now behaves more compatibly
30885         with POSIX basename when given file names that have trailing
30886         slashes, and similarly for dir_name.  Add new primitives
30887         base_len and dir_len.  Put the directory-name-related decls
30888         into dirname.h.
30889
30890         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
30891         * lib/backupfile.c (base_name): Likewise.
30892         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
30893         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
30894         * lib/makepath.c (strip_trailing_slashes): Likewise.
30895         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
30896         ISSLASH): Likewise.
30897         * lib/rename.c (strip_trailing_slashes): Likewise.
30898         * lib/same.c (base_name): Likewise.
30899         * lib/stripslash.c (ISSLASH): Likewise.
30900
30901         * lib/addext.c: Include <dirname.h> after size_t is defined.
30902         * lib/backupfile.c: Likewise.
30903
30904         * lib/addext.c (addext): Use base_len to trim redundant
30905         trailing slashes instead of doing it ourselves.
30906         But do not trim the last slash if it is not redundant.
30907
30908         * lib/backupfile.c (find_backup_file_name,
30909         max_backup_version): Use base_len instead of rolling it ourselves.
30910         Handle the case of "" and (on DOS) "C:" correctly.
30911
30912         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
30913         needed. Include <string.h>, <dirname.h>.
30914         (base_name): Allow file names ending in slashes, other than names
30915         that are all slashes.  In this case, return the basename followed
30916         by the slashes.  This is more general, and can be used in places
30917         where the original base_name purposely had an assertion failure.
30918         (base_len): New function.
30919
30920         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
30921         Do not include <assert.h>; no longer needed.
30922         Include xalloc.h.
30923         (memrchr): Remove decl.
30924         (dir_name_r): Remove.
30925         (dir_len): Renamed from dirlen.  All callers changed.
30926         Rewrite in terms of base_name, for simplicity and consistency.
30927         (dir_name): Never return NULL.  All callers changed.
30928         Do not include <stdlib.h> in test program; no longer needed.
30929         return 0; is fine for test program.
30930
30931         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
30932         New macros.
30933         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
30934
30935         * lib/path-concat.c (path_concat): Use base_len to compute
30936         base length, not strlen; this means we cannot rely on memcpy
30937         to null-terminate.
30938
30939         * lib/same.c (STREQ): Remove.
30940         (same_name): Handle the case where the basename ends in trailing '/'.
30941
30942         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
30943         a slash was stripped.  Do not strip the last slash after a
30944         file system prefix.
30945
30946 2001-05-11  Paul Eggert  <eggert@twinsun.com>
30947
30948         * lib/Makefile.am (libfetish_a_SOURCES):
30949         Add strftime.c, since we now compile it on all hosts.
30950
30951         * lib/strftime.c (my_strftime):
30952         Define to nstrftime if emacs, but only if my_strftime is not defined.
30953         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
30954         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
30955         Add one more extra argument: a nanoseconds value.
30956         All uses changed.
30957         (ns): New macro.
30958         (my_strftime function): Add %N format.
30959         (emacs_strftimeu): Renamed from emacs_strftime,
30960         with extra ut argument.
30961
30962 2001-05-09  Paul Eggert  <eggert@twinsun.com>
30963
30964         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
30965
30966 2001-04-21  Jim Meyering  <meyering@lucent.com>
30967
30968         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
30969         doesn't interfere.
30970
30971 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
30972
30973         * m4/ftruncate.m4: Check for chsize.
30974         Link with ftruncate.o unconditionally if ftruncate is missing.
30975         This was required when cross-compiling to i586-mingw32msvc.
30976
30977 2001-04-08  Jim Meyering  <meyering@lucent.com>
30978
30979         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
30980         recomputed; that's necessary when the offset spans a DST transition.
30981         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
30982
30983 2001-04-02  Jim Meyering  <meyering@lucent.com>
30984
30985         * lib/regex.h, regex.c: Update from GNU libc.
30986
30987 2001-03-24  Jim Meyering  <meyering@lucent.com>
30988
30989         * m4/jm-macros.m4: Require autoconf-2.49d.
30990
30991 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
30992
30993         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
30994
30995 2001-03-19  Paul Eggert  <eggert@twinsun.com>
30996
30997         * lib/version-etc.c (version_etc_copyright): Update to 2001.
30998
30999 2001-03-17  Jim Meyering  <meyering@lucent.com>
31000
31001         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
31002         now that the version in autoconf is equivalent.
31003         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
31004
31005         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
31006         Suggestion from Akim Demaille.
31007
31008         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
31009         (jm_PREREQ_TEMPNAME): New function.
31010
31011 2001-03-16  Paul Eggert  <eggert@twinsun.com>
31012
31013         * lib/tempname.c (uint64_t): Define to uintmax_t if
31014         not defined, and if UINT64_MAX is not defined.
31015         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
31016         Reported by John David Anglin.
31017
31018 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
31019
31020         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
31021         resolve alias if codeset is empty.
31022         * lib/config.charset (BeOS): Use wildcard syntax.
31023
31024 2001-03-13  Jim Meyering  <meyering@lucent.com>
31025
31026         * lib/path-concat.c (path_concat)
31027         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
31028         concatenating e.g., `C:' and `foo'.
31029         From Bruno Haible.
31030
31031 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
31032
31033         * lib/localcharset.c (locale_charset): Don't use
31034         setlocale(LC_CTYPE,NULL). Don't return NULL.
31035         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
31036
31037 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
31038
31039         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
31040         support for DOS/DJGPP.
31041
31042 2001-03-01  Paul Eggert  <eggert@twinsun.com>
31043
31044         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
31045         lacks mkstemp.  Compile our own tempname.c if we compile our own
31046         mkstemp.c, as mkstemp relies on tempname.
31047
31048 2001-03-01  Jim Meyering  <meyering@lucent.com>
31049
31050         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
31051         AH_VERBATIM really does output its argument verbatim.
31052
31053 2001-02-28  Paul Eggert  <eggert@twinsun.com>
31054
31055         * lib/Makefile.am (libfetish_a_SOURCES):
31056         Add dup-safer.c, fopen-safer.c.
31057         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
31058
31059         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
31060         * lib/unistd-safer.h: New files.
31061
31062 2001-02-25  Paul Eggert  <eggert@twinsun.com>
31063
31064         The mkstemp replacement is taken from glibc 2.2.2, with some
31065         portability fixes for use outside glibc, as follows:
31066
31067         * lib/tempname.c (struct_stat64): New macro.
31068         (direxists, __gen_tempname): Use it.
31069         This avoids a portability problem with Solaris 8.
31070
31071         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
31072         (<stddef.h>, <stdint.h>, <string.h>):
31073         Include only if STDC_HEADERS || _LIBC.
31074         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
31075         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
31076         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
31077         (__set_errno): Define this macro if <errno.h> doesn't.
31078         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
31079         Define these macros if <stdio.h> doesn't.
31080         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
31081         Define these macros if <sys/stat.h>
31082         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
31083         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
31084         __xstat64): Define if not _LIBC.
31085         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
31086         (__gen_tempname): Invoke gettimeofday only if
31087         HAVE_GETTIMEOFDAY || _LIBC;
31088         otherwise, fall back on plain "time".
31089         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
31090
31091         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
31092
31093         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
31094
31095 2001-02-18  Paul Eggert  <eggert@twinsun.com>
31096
31097         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
31098
31099 2001-02-17  Paul Eggert  <eggert@twinsun.com>
31100
31101         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
31102         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
31103         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
31104         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
31105
31106 2001-02-17  Paul Eggert  <eggert@twinsun.com>
31107
31108         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
31109         Remove workaround macros for hosts that have mbrtowc but not
31110         mbstate_t, as we now insist on proper declarations for both
31111         before using mbrtowc.
31112
31113 2001-02-17  Jim Meyering  <meyering@lucent.com>
31114
31115         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
31116         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
31117         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
31118         UnixWare 7.1.1.
31119
31120         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
31121         rather than AC_CACHE_VAL.
31122
31123 2001-02-17  Jim Meyering  <meyering@lucent.com>
31124
31125         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
31126         around included file name.
31127
31128         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
31129
31130         * lib/strftime.c: Update from GNU libc (the only changes were to
31131         comments).
31132
31133 2001-02-17  Jim Meyering  <meyering@lucent.com>
31134
31135         * lib/regex.c: Update from libc.
31136
31137 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
31138
31139         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
31140         clash.
31141
31142 2001-02-16  Paul Eggert  <eggert@twinsun.com>
31143
31144         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
31145         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
31146         Reported by Mark Hounschell via Paul Eggert.
31147
31148 2001-02-07  Jim Meyering  <meyering@lucent.com>
31149
31150         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
31151
31152 2001-02-05  Jim Meyering  <meyering@lucent.com>
31153
31154         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
31155         it includes the patch required for `large file' support with at least
31156         HP-UX's 10.20 /bin/cc.
31157
31158 2001-02-03  Jim Meyering  <meyering@lucent.com>
31159
31160         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
31161         AS_IF, now that it works once again (mysteriously).
31162         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
31163
31164 2001-01-30  Jim Meyering  <meyering@lucent.com>
31165
31166         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
31167         * m4/chown.m4: Rename conftestchown to conftest.chown.
31168         * m4/rename.m4: s/conftestdir/conftest.d1/ and
31169         s/conftestdir2/conftest.d2/.
31170         * m4/utimes.m4: s/conftestdata/conftest.data/
31171         Inspired by Pavel Roskin's change in autoconf.
31172
31173 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
31174
31175         * lib/config.charset: Update for FreeBSD 4.2.
31176
31177 2001-01-27  Jim Meyering  <meyering@lucent.com>
31178
31179         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
31180         a use of AS_IF.
31181         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
31182
31183 2001-01-26  Jim Meyering  <meyering@lucent.com>
31184
31185         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
31186         quotearg.c includes it.
31187
31188 2001-01-26  Jim Meyering  <meyering@lucent.com>
31189
31190         * lib/quotearg.c: Include stddef.h.
31191         * lib/quote.c: Include stddef.h.
31192         Reported by Axel Kittenberger.
31193
31194         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
31195         line in double quotes so that it evokes a better diagnostic.
31196         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
31197         Reported by Axel Kittenberger.
31198
31199 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
31200
31201         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
31202         as if it was a `charset'.
31203
31204 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
31205
31206         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
31207         has const.
31208
31209 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
31210
31211         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
31212         to avoid a warning.  Add back 'const' to inptr.
31213
31214 2001-01-20  Jim Meyering  <meyering@lucent.com>
31215
31216         Be sure that headers are checked before used in code compiled
31217         for the type checks.
31218         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
31219         In place of that, invoke jm_CHECK_ALL_TYPES.
31220         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
31221         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
31222         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
31223         The check for ssize_t was mistakenly run before the test for unistd.h.
31224
31225         The configure-time check for stdbool.h was missing.
31226         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
31227         (jm_PREREQ_HASH): New function.
31228
31229 2001-01-17  Jim Meyering  <meyering@lucent.com>
31230
31231         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
31232         for autoconf-2.49c.
31233         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
31234
31235 2001-01-16  Jim Meyering  <meyering@lucent.com>
31236
31237         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
31238         From Bruno Haible.
31239
31240 2001-01-14  Jim Meyering  <meyering@lucent.com>
31241
31242         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
31243         foo and bar.  Create conftestdir/ in the script, not in the C code.
31244         Remove directories in the script, not in the C code.
31245         Remove conftestdir{,2} before trying to create the directory.
31246         Make the entire configure script fail if the mkdir fails.
31247
31248 2001-01-14  Jim Meyering  <meyering@lucent.com>
31249
31250         * lib/rename.c: New file.  From Volker Borchert.
31251         Include stdlib.h, string.h or strings.h, and xalloc.h.
31252         Use strip_trailing_slashes rather than open-coding it.
31253
31254 2001-01-03  Paul Eggert  <eggert@twinsun.com>
31255
31256         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
31257
31258 2001-01-03  Jim Meyering  <meyering@lucent.com>
31259
31260         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
31261         of local `inptr' to avoid warning with some system declarations of
31262         iconv.
31263
31264 2001-01-02  Volker Borchert  <bt@teknon.de>
31265
31266         * m4/rename.m4: New file.
31267         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
31268
31269 2001-01-01  Jim Meyering  <meyering@lucent.com>
31270
31271         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
31272         even on systems with utmpx.h.  It's necessary for the declaration of
31273         utmp's ut_user member.  Reported by Andreas Jaeger.
31274
31275         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
31276         available. They are required for the declarations of getgrgid and
31277         getpwuid resp.
31278         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
31279         Reported by Andreas Jaeger.
31280
31281 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
31282
31283         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
31284         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
31285         so `make install' also works in VPATH builds.
31286
31287 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
31288
31289         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
31290         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
31291         can be used in subdirectories.
31292
31293 2000-12-29  Paul Eggert  <eggert@twinsun.com>
31294
31295         * lib/modechange.c: Do not assume that mode_t uses the
31296         traditional octal encoding.  E.g. "chmod 1 FOO" should set
31297         the other-execute bit of FOO even if S_IXOTH != 1.
31298
31299         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
31300         WOTH, XOTH, ALLM): New macros.
31301         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
31302          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
31303         Use them.
31304         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
31305         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
31306         (mode_compile):
31307         No need to use uintmax_t; unsigned long is long enough.
31308         Don't bother to get suffix since we don't use it.
31309
31310 2000-12-26  Jim Meyering  <meyering@lucent.com>
31311
31312         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
31313         better with autoheader.
31314
31315 2000-12-24  Jim Meyering  <meyering@lucent.com>
31316
31317         * lib/hash.c (is_prime): Return explicit boolean values.
31318         (hash_get_first): Return NULL to appease Irix5.6's 89.
31319         Reported by Nelson Beebe.
31320
31321 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
31322
31323         * lib/localcharset.c (locale_charset): Add support for Win32.
31324
31325 2000-12-18  Paul Eggert  <eggert@twinsun.com>
31326
31327         * lib/physmem.h, lib/physmem.c: New files.
31328
31329         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
31330         (noinst_HEADERS): Add physmem.h.
31331
31332         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
31333         't' for compatibility with Solaris 8 sort.
31334
31335 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
31336
31337         * lib/config.charset: Add support for BeOS.
31338
31339 2000-12-17  Jim Meyering  <meyering@lucent.com>
31340
31341         * m4/dos.m4 (jm_AC_DOS): New file and macro.
31342         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
31343
31344 2000-12-16  Jim Meyering  <meyering@lucent.com>
31345
31346         This bug had a serious impact on chown: `chown N:M FILE' (for integer
31347         N and M) would have treated it like `chown N:N FILE'.
31348
31349         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
31350
31351 2000-12-16  Jim Meyering  <meyering@lucent.com>
31352
31353         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
31354         SHELLS_FILE to a file name that's useful on djgpp systems.
31355         Include stdlib.h.
31356         (ADDITIONAL_DEFAULT_SHELLS): Define.
31357         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
31358         Based mostly on a patch from Prashant TR.
31359
31360 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
31361
31362         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
31363         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
31364         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
31365
31366 2000-12-08  Andreas Schwab  <schwab@suse.de>
31367
31368         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
31369         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
31370
31371 2000-12-07  Jim Meyering  <meyering@lucent.com>
31372
31373         * lib/stripslash.c (ISSLASH): Define.
31374         (strip_trailing_slashes): Use ISSLASH rather than comparing against
31375         `/'.
31376         From Prashant TR.
31377
31378         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
31379         (dir_name_r): Declare this function as static.
31380         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
31381         manifest itself on a name containing a mix of slashes and
31382         backslashes.
31383         Make this function work with names starting with a DOS-style
31384         drive letter and colon prefix.
31385         (dir_name): Append `.' if necessary.
31386         Based mostly on patches from Prashant TR and Eli Zaretskii.
31387
31388         * lib/dirname.h (dir_name_r): Remove prototype.
31389
31390 2000-12-06  Paul Eggert  <eggert@twinsun.com>
31391
31392         * m4/off_t-format.m4: Remove this file.
31393         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
31394
31395 2000-12-06  Jim Meyering  <meyering@lucent.com>
31396
31397         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
31398         replacement strtoull, we may well need the replacement strtoul, too.
31399         Check for declarations of strtoul and strtoull.
31400         Check for strtol.  Mainly as a cue to cause automake to include
31401         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
31402         Check for limits.h -- strtol.c needs it.
31403
31404 2000-12-05  Jim Meyering  <meyering@lucent.com>
31405
31406         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
31407
31408 2000-12-04  Jim Meyering  <meyering@lucent.com>
31409
31410         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
31411         Also include memory.h, stdlib.h, unistd.h if appropriate.
31412         Reported by Andreas Jaeger (conflicting declaration of malloc).
31413
31414 2000-12-02  Jim Meyering  <meyering@lucent.com>
31415
31416         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
31417         * m4/jm-macros.m4 (jm_MACROS): require it.
31418
31419 2000-12-02  Jim Meyering  <meyering@lucent.com>
31420
31421         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
31422
31423 2000-12-01  Paul Eggert  <eggert@twinsun.com>
31424
31425         * lib/memrchr.c: Include <config.h> before any system include file.
31426
31427 2000-11-30  Jim Meyering  <meyering@lucent.com>
31428
31429         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
31430
31431 2000-11-30  Jim Meyering  <meyering@lucent.com>
31432
31433         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
31434
31435 2000-11-29  Paul Eggert  <eggert@twinsun.com>
31436
31437         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
31438
31439 2000-11-26  Jim Meyering  <meyering@lucent.com>
31440
31441         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
31442
31443 2000-11-22  Paul Eggert  <eggert@twinsun.com>
31444
31445         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
31446         size of (size_t) -1; it's not portable.
31447
31448 2000-11-17  Jim Meyering  <meyering@lucent.com>
31449
31450         * lib/strstr.c: Update from GNU libc.
31451
31452 2000-11-17  Akim Demaille  <akim@epita.fr>
31453
31454         * lib/obstack.h: Formatting changes.
31455         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
31456         prevent type checking.
31457         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
31458         cast the value to (void *): assigning a `foo *' to a `void *'
31459         variable is valid.
31460         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
31461
31462 2000-11-16  Jim Meyering  <meyering@lucent.com>
31463
31464         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
31465
31466 2000-11-11  Jim Meyering  <meyering@lucent.com>
31467
31468         * lib/error.c: Add a couple #includes, merging from GNU libc version.
31469
31470 2000-11-10  Jim Meyering  <meyering@lucent.com>
31471
31472         * lib/obstack.h: Update from GNU libc.
31473         * lib/obstack.c: Likewise.
31474
31475 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
31476
31477         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
31478
31479 2000-11-06  Paul Eggert  <eggert@twinsun.com>
31480
31481         * lib/getusershell.c (setusershell): Use rewind rather than
31482         fseek/fseeko, to avoid configuration hassles with fseeko.
31483         Don't bother opening SHELLS_FILE if shellstream is NULL;
31484         it's not necessary.
31485
31486 2000-11-05  Jim Meyering  <meyering@lucent.com>
31487
31488         * lib/makepath.h (make_dir): Declare.
31489         * lib/makepath.c (make_dir): Remove `static' attribute.
31490         Tweak a comment.
31491
31492 2000-11-04  Jim Meyering  <meyering@lucent.com>
31493
31494         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
31495
31496 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
31497
31498         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
31499         last one in a bucket, advance to the next bucket.
31500
31501 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
31502
31503         * lib/fnmatch.c: Do not comment out all the code if we are using
31504         the GNU C library, because in some cases we are replacing buggy
31505         code in the GNU C library itself.
31506
31507 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
31508
31509         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
31510         (regex_compile): Catch bogus \(\1\).
31511
31512 2000-10-30  Paul Eggert  <eggert@twinsun.com>
31513
31514         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
31515         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
31516         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
31517
31518 2000-10-30  Paul Eggert  <eggert@twinsun.com>
31519
31520         * lib/error.h, getline.h, modechange.h:
31521         Remove "2000" from Copyright line, as the file hasn't been
31522         changed this year other than in the copyright notice.
31523
31524         * lib/xalloc.h: Add "2000" to Copyright line, as this file
31525         was changed this year.
31526
31527 2000-10-29  Jim Meyering  <meyering@lucent.com>
31528
31529         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
31530         renaming.
31531         * m4/ls-mntd-fs.m4: Likewise
31532
31533 2000-10-29  Jim Meyering  <meyering@lucent.com>
31534
31535         * lib/xstat.in: Fix grammar in comment.
31536
31537 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
31538
31539         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
31540         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
31541         doesn't define __restrict_arr.
31542
31543 2000-10-28  Jim Meyering  <meyering@lucent.com>
31544
31545         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
31546         (jm_PREREQ_MEMCHR): New function.
31547
31548 2000-10-28  Jim Meyering  <meyering@lucent.com>
31549
31550         * lib/memchr.c: Update from libc.
31551         Adjust for portability:
31552         [HAVE_STDLIB_H]: Include stdlib.h.
31553         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
31554         Undef __memchr, too.
31555         [!weak_alias]: Define __memchr to memchr.
31556
31557         * lib/regex.c: Update from libc.
31558         * lib/regex.h: Likewise.
31559         * lib/getopt1.c: Likewise.
31560         * lib/memcmp.c: Likewise.
31561
31562         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
31563         Avoid using fseek, when possible -- it's broken by design.
31564         Patch by Ulrich Drepper.
31565
31566 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
31567
31568         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
31569         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
31570         Giving in to popular pressure to shut up the compiler with casts.
31571
31572 2000-10-26  Jim Meyering  <meyering@lucent.com>
31573
31574         * lib/strftime.c: Update from libc.
31575
31576 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
31577
31578         * regex.c: More `unsigned char' -> `re_char' changes.
31579         Also change several `int' into `re_wchar_t'.
31580         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
31581         (PUSH_FAILURE_POINTER): Don't cast any more.
31582         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
31583         We want GCC to complain, since this piece of code makes
31584         re_match non-reentrant, which *should* be fixed.
31585         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
31586         (EXTEND_BUFFER): Use RETALLOC.
31587         (SET_LIST_BIT): Don't cast.
31588         (re_wchar_t): New type.
31589         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
31590         that those two functions will always properly return.
31591         (IMMEDIATE_QUIT_CHECK): Cast to void.
31592         (analyse_first): Use recursion rather than an explicit stack.
31593         (re_compile_fastmap): Can't fail anymore.
31594         (re_search_2): Don't check re_compile_fastmap for failure.
31595         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
31596         Now also sets the new value (passed in a new argument).
31597         (re_match_2_internal): Use it.
31598         Also, use a new var `reg' of type size_t when looping through regs
31599         rather than reuse the inappropriate `mcnt'.
31600
31601 2000-10-25  Jim Meyering  <meyering@lucent.com>
31602
31603         * lib/obstack.c: Update from libc.
31604
31605 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
31606
31607         * regex.c (regex_compile): Change the way of handling a range from
31608         a char less than 256 to a char not less than 256.
31609
31610 2000-10-24  Andrew Innes  <andrewi@gnu.org>
31611
31612         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
31613         NT-Emacs only.
31614         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
31615         so that re_search functions only quit when callers expect them to.
31616
31617 2000-10-23  Jim Meyering  <meyering@lucent.com>
31618
31619         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
31620         wrong.  That set_locale call must not have any side effects.
31621         From Paul Eggert.
31622
31623 2000-10-22  Jim Meyering  <meyering@lucent.com>
31624
31625         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
31626         [CYCLIC]: Remove now-unused definition.
31627
31628         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
31629         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
31630         Suggestion from Ulrich Drepper.
31631
31632 2000-10-21  Jim Meyering  <meyering@lucent.com>
31633
31634         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
31635         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
31636         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
31637
31638 2000-10-21  Jim Meyering  <meyering@lucent.com>
31639
31640         * lib/dirname.c (memrchr): Declare if necessary.
31641         (dir_name): Remove the restriction that there be no
31642         trailing slashes.  Now, this code skips past them, effectively
31643         ignoring them.
31644         [TEST_DIRNAME] (main): New unit tests.
31645
31646         * lib/memrchr.c: New file from GNU libc.
31647         Undef __memrchr, too.
31648         [!weak_alias]: Define __memrchr to memrchr.
31649         Guard weak_alias use with `#ifdef weak_alias'.
31650
31651 2000-10-21  Jim Meyering  <meyering@lucent.com>
31652
31653         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
31654         (dir_name): Use dir_name_r.
31655         * lib/dirname.h (dir_name_r): Declare it.
31656
31657 2000-10-17  Jim Meyering  <meyering@lucent.com>
31658
31659         * lib/quote.h (PARAMS): Define and use.
31660         Reported by Akim Demaille.
31661
31662         * lib/getopt.c: Update from libc.
31663
31664 2000-10-16  Jim Meyering  <meyering@lucent.com>
31665
31666         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
31667         setlocale.
31668         From Jan Fedak.
31669
31670 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
31671
31672         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
31673
31674 2000-09-25  Jim Meyering  <meyering@lucent.com>
31675
31676         * lib/md5.h (rol): Define (from GnuPG).
31677
31678         * lib/sha.c: Give credit (GnuPG) where due.
31679         (M): Use rol rather than open-coding it.
31680         Add a FIXME comment.
31681
31682 2000-09-21  Jim Meyering  <meyering@lucent.com>
31683
31684         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
31685         Reported by Michael Stone.
31686
31687 2000-09-20  Jim Meyering  <meyering@lucent.com>
31688
31689         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
31690         (noinst_HEADERS): Add sha.h.
31691         Based on code from Scott G. Miller and from GnuPG.
31692
31693 2000-09-18  Jim Meyering  <meyering@lucent.com>
31694
31695         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
31696         LIBS. Otherwise, everyone ends up linking with -lelf for some
31697         configurations.
31698         Reported by Mike Stone.
31699
31700 2000-09-15  Jim Meyering  <meyering@lucent.com>
31701
31702         * lib/regex.c: Update from libc.
31703
31704 2000-09-10  Jim Meyering  <meyering@lucent.com>
31705
31706         * lib/getopt.c (_getopt_internal): Update from glibc.
31707
31708 2000-09-09  Jim Meyering  <meyering@lucent.com>
31709
31710         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
31711         think it should be used as a general replacement for isascii.
31712         * lib/fnmatch.c: Likewise.
31713         * lib/mbswidth.c: Likewise
31714         * lib/regex.c: Likewise.
31715
31716         Don't use atoi.
31717         * lib/userspec.c: Include sys/param.h and limits.h.
31718         Include xstrtol.h.
31719         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
31720         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
31721         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
31722         UID, GID.  Check range.
31723
31724 2000-09-06  Jim Meyering  <meyering@lucent.com>
31725
31726         * lib/getopt.c (_getopt_internal): Update from glibc.
31727
31728 2000-08-30  Jim Meyering  <meyering@lucent.com>
31729
31730         * lib/strftime.c: Merge in changes from GNU libc.
31731
31732 2000-08-26  Jim Meyering  <meyering@lucent.com>
31733
31734         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
31735         * m4/fpending.m4: New file.
31736
31737 2000-08-26  Jim Meyering  <meyering@lucent.com>
31738
31739         * lib/closeout.c: Include "__fpending.h".
31740         (close_stdout_status): Return right away if there's nothing to flush.
31741
31742         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
31743         * lib/__fpending.c: New file.
31744         * lib/__fpending.h: New file.
31745
31746 2000-08-20  Jim Meyering  <meyering@lucent.com>
31747
31748         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
31749         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
31750         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
31751
31752 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
31753
31754         Improve fileutils installation on systems where running
31755         programs (like install) can't be unlinked.
31756         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
31757         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
31758
31759 2000-08-07  Paul Eggert  <eggert@twinsun.com>
31760
31761         Standardize on "memory exhausted" instead of "Memory exhausted"
31762         or "virtual memory exhausted".
31763         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
31764         "virtual memory exhausted".
31765         * lib/same.c (same_name): Invoke xalloc_die instead of printing
31766         our own message.
31767         * lib/userspec.c (parse_user_spec): Likewise.
31768         * lib/bumpalloc.h: comment fix
31769         * lib/same.c, userspec.c: Include xalloc.h.
31770
31771         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
31772         not char *const and pointing to a constant array.
31773         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
31774         (xrealloc): Comment fix.
31775
31776         * lib/userspec.c (parse_user_spec):
31777         Don't translate a message until just before returning,
31778         to avoid unnecessary translation.
31779
31780 2000-08-07  Jim Meyering  <meyering@lucent.com>
31781
31782         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
31783         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
31784         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
31785         getgroups.c, gethostname.c, getopt.h, group-member.c,
31786         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
31787         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
31788         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
31789         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
31790         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
31791         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
31792         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
31793         yesno.c: Back out Copyright date changes for each file with no change
31794         this year.  This eases coordination with other programs using the same
31795         source code modules.  From Paul Eggert.
31796
31797 2000-08-06  Paul Eggert  <eggert@twinsun.com>
31798
31799         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
31800         not char, for compatibility with glibc 2.1.3 strftime.c.
31801
31802 2000-08-03  Greg McGary  <greg@mcgary.org>
31803
31804         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
31805         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
31806         (EXTEND_BUFFER): Use them.
31807
31808 2000-08-01  Jim Meyering  <meyering@lucent.com>
31809
31810         * lib/dirname.c (ISSLASH): Define.
31811         (BACKSLASH_IS_PATH_SEPARATOR): Define.
31812         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
31813         both `\' and `/' may be use as path separators.
31814         Based on a patch from Prashant TR.
31815
31816 2000-07-31  Paul Eggert  <eggert@twinsun.com>
31817
31818         * lib/quotearg.c (quotearg_n_options): Don't make the initial
31819         slot vector a constant, since it might get modified.
31820
31821 2000-07-31  Jim Meyering  <meyering@lucent.com>
31822
31823         * lib/xmalloc.c: Use `virtual memory exhausted', not
31824         `Memory exhausted'.
31825         * lib/obstack.c (print_and_abort): Likewise.
31826
31827 2000-07-30  Paul Eggert  <eggert@twinsun.com>
31828
31829         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
31830         buffer, so that the caller can always quote one small
31831         component of a "memory exhausted" message in slot 0.
31832         From a suggestion by Jim Meyering.
31833
31834 2000-07-30  Jim Meyering  <meyering@lucent.com>
31835
31836         * lib/makepath.c (make_path): Quote the other instance, too.
31837
31838         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
31839         (STATIC_BUF_SIZE): Define.
31840         (quotearg_n_options): Use only statically allocated storage when
31841         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
31842         than STATIC_BUF_SIZE.
31843
31844 2000-07-29  Jim Meyering  <meyering@lucent.com>
31845
31846         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
31847         * lib/dirname.c (dir_name): Likewise.
31848
31849         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
31850         `/'.
31851
31852         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
31853         (dir_name): Assert that there are no trailing slashes.
31854
31855 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
31856
31857         * lib/mbswidth.h (mbswidth): Add a flags argument.
31858         (mbswidth): New declaration.
31859         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
31860         * lib/mbswidth.c (mbswidth): Add a flags argument.
31861         (mbsnwidth): New function.
31862
31863 2000-07-24  Jim Meyering  <meyering@lucent.com>
31864
31865         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
31866
31867 2000-07-23  Paul Eggert  <eggert@twinsun.com>
31868
31869         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
31870
31871 2000-07-23  Paul Eggert  <eggert@twinsun.com>
31872
31873         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
31874         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
31875         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
31876         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
31877         invoke multibyte primitives.
31878
31879 2000-07-23  Paul Eggert  <eggert@twinsun.com>
31880
31881         * lib/quotearg.c:
31882         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
31883         so that mbstate_t is always defined.
31884
31885         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
31886         be 1 in at least one GCC installation, and this configuration
31887         error is likely to be common.  Ignoring MB_LEN_MAX hurts
31888         performance on hosts that have mbrtowc but have only unibyte
31889         locales, but I assume these hosts are rare.
31890
31891 2000-07-23  Paul Eggert  <eggert@twinsun.com>
31892
31893         * lib/mbswidth.c (_XOPEN_SOURCE):
31894         Don't define; this causes problems on Solaris 7.
31895         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
31896
31897 2000-07-23  Jim Meyering  <meyering@lucent.com>
31898
31899         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
31900         too: getgrgid, getpwuid, getuid.
31901
31902 2000-07-23  Jim Meyering  <meyering@lucent.com>
31903
31904         * lib/basename.c (base_name): Add an assertion.
31905
31906 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
31907
31908         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
31909         shadow its mbsinit function.
31910
31911 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
31912
31913         * lib/mbswidth.h: New file.
31914         * lib/mbswidth.c: New file.
31915         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
31916         (noinst_HEADERS): Add mbswidth.h.
31917
31918 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
31919
31920         * lib/config.charset: Add support for FreeBSD. Improve support for
31921         HP-UX and IRIX 6.
31922
31923 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
31924
31925         * m4/mbswidth.m4: New file.
31926         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
31927
31928 2000-07-15  Jim Meyering  <meyering@lucent.com>
31929
31930         * lib/makepath.c: Include quote.h.
31931         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
31932         corresponding argument in a `quote (...)' call.
31933         Give better diagnostics.
31934
31935         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
31936         (noinst_HEADERS): Add quote.h.
31937
31938         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
31939         from tar's src/misc.c.
31940         * lib/quote.h: New file.  Prototypes for same.
31941
31942 2000-07-14  Paul Eggert  <eggert@twinsun.com>
31943
31944         From a suggestion by Bruno Haible.
31945         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
31946         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
31947         to decide whether to define the BeOS workaround macro;
31948         this adjusts to the change to AC_MBSTATE_T.
31949
31950 2000-07-14  Jim Meyering  <meyering@lucent.com>
31951
31952         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
31953         jm_AC_TYPE_UINTMAX_T.
31954
31955 2000-07-13  Paul Eggert  <eggert@twinsun.com>
31956
31957         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
31958
31959         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
31960         quotearg_buffer_restyled): Add support for
31961         clocale_quoting_style.  Undo previous change to
31962         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
31963         and "{RIGHT QUOTATION MARK}" msgids.
31964
31965 2000-07-10  Paul Eggert  <eggert@twinsun.com>
31966
31967         From a suggestion by Bruno Haible.
31968         * m4/mbstate_t.m4 (AC_MBSTATE_T):
31969         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
31970         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
31971         and mbstate_t, to a single-part test that simply defines mbstate_t.
31972         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
31973         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
31974
31975 2000-07-10  Jim Meyering  <meyering@lucent.com>
31976
31977         * m4/strerror_r.m4: Mirror the correction made in autoconf.
31978
31979         * m4/gnu-source.m4: Output to confdefs.h directly.
31980         Suggestion from Akim Demaille.
31981
31982 2000-07-09  Paul Eggert  <eggert@twinsun.com>
31983
31984         The old behavior of quoting `like this' doesn't look good with
31985         newer, ISO-style fonts.  See:
31986         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
31987
31988         Instead, quote "like this" by default.  Let the translator
31989         tailor the locale-specific quoting behavior by providing
31990         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
31991
31992         * lib/quotearg.c (N_): New macro.
31993         (gettext_default): New function.
31994         (quotearg_buffer_restyled): Use
31995         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
31996         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
31997
31998 2000-07-09  Jim Meyering  <meyering@lucent.com>
31999
32000         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
32001         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
32002
32003         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
32004         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
32005
32006 2000-07-09  Jim Meyering  <meyering@lucent.com>
32007
32008         * lib/Most files: Update copyright dates to include 2000.
32009
32010 2000-07-08  Jim Meyering  <meyering@lucent.com>
32011
32012         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
32013         if not defined.
32014         (xgethostname): Remove now-unnecessary #ifdef.
32015         Move declaration of `err' into loop where it's used.
32016
32017 2000-07-05  Paul Eggert  <eggert@twinsun.com>
32018         and Bruno Haible  <haible@clisp.cons.org>
32019
32020         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
32021         only if the test for an object-type mbstate_t fails.  This
32022         prevents us from mistakenly reporting that mbstate_t is a
32023         system object type after we "#define mbstate_t int" to work
32024         around its lack.
32025
32026 2000-07-05  Paul Eggert  <eggert@twinsun.com>
32027         and Bruno Haible  <haible@clisp.cons.org>
32028
32029         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
32030
32031 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
32032
32033         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
32034         to strerror_r.
32035         Include <ctype.h> for use of isalpha.
32036
32037 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
32038
32039         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
32040         by allocating a larger buffer. Test the gethostname return value for
32041         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
32042         returns an error and ENAMETOOLONG isn't defined.
32043
32044 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
32045
32046         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
32047         dimension.
32048
32049 2000-07-04  Jim Meyering  <meyering@lucent.com>
32050
32051         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
32052         of the deprecated AC_CHECKING.
32053
32054 2000-07-04  Jim Meyering  <meyering@lucent.com>
32055
32056         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
32057         Reported by Bruno Haible.
32058
32059 2000-07-04  Jim Meyering  <meyering@lucent.com>
32060
32061         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
32062         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
32063         lacks mbrtowc.
32064
32065 2000-07-03  Paul Eggert  <eggert@twinsun.com>
32066
32067         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
32068         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
32069
32070 2000-07-03  Paul Eggert  <eggert@twinsun.com>
32071         and Bruno Haible  <haible@clisp.cons.org>
32072
32073         * lib/quotearg.c (mbrtowc):
32074         Assign to *pwc, and return 1 only if result is nonzero.
32075         (iswprint): Use ISPRINT when substituting our own mbrtowc.
32076
32077 2000-07-03  Jim Meyering  <meyering@lucent.com>
32078
32079         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
32080
32081 2000-07-03  Jim Meyering  <meyering@lucent.com>
32082
32083         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
32084         This is necessary to get a definition of e.g., UTMP_FILE on
32085         HP-UX 10.20.
32086         From Bob Proulx.
32087
32088 2000-07-02  Jim Meyering  <meyering@lucent.com>
32089
32090         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
32091
32092         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
32093         AC_LIBOBJ(function_name).
32094         * m4/chown.m4: Likewise.
32095         * m4/fnmatch.m4: Likewise.
32096         * m4/ftruncate.m4: Likewise.
32097         * m4/getgroups.m4: Likewise.
32098         * m4/getline.m4: Likewise.
32099         * m4/group-member.m4: Likewise.
32100         * m4/jm-macros.m4: Likewise.
32101         * m4/lstat.m4: Likewise.
32102         * m4/malloc.m4: Likewise.
32103         * m4/memcmp.m4: Likewise.
32104         * m4/nanosleep.m4: Likewise.
32105         * m4/putenv.m4: Likewise.
32106         * m4/realloc.m4: Likewise.
32107         * m4/regex.m4: Likewise.
32108         * m4/stat.m4: Likewise.
32109         * m4/strftime.m4: Likewise.
32110
32111 2000-07-02  Jim Meyering  <meyering@lucent.com>
32112
32113         * lib/quotearg.c (mbstate_t): Don't define here.
32114
32115 2000-07-02  Jim Meyering  <meyering@lucent.com>
32116
32117         * lib/nanosleep.c (SIGCONT): Define if not already defined.
32118
32119 2000-07-01  Jim Meyering  <meyering@lucent.com>
32120
32121         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
32122
32123 2000-07-01  Jim Meyering  <meyering@lucent.com>
32124
32125         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
32126         problem.
32127
32128 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
32129
32130         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
32131         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
32132
32133 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
32134
32135         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
32136         per change in ../m4/ls-mntd-fs.m4.
32137         (read_filesystem_list): Ignore symbolic links.
32138
32139 2000-06-29  Jim Meyering  <meyering@lucent.com>
32140
32141         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
32142         for declaration of strcmp.
32143
32144         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
32145
32146         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
32147         Avoid warning by casting result to `char *' to remove `const'.
32148
32149 2000-06-28  Jim Meyering  <meyering@lucent.com>
32150
32151         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
32152         included by quotearg.c, for which we perform this test.  From
32153         Bruno Haible.
32154
32155 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
32156
32157         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
32158         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
32159         <utmpx.h> exists, put readutmp.o into LIBOBJS.
32160
32161 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
32162
32163         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
32164
32165 2000-06-26  Paul Eggert  <eggert@twinsun.com>
32166
32167         savedir now sets errno on failure and invokes xmalloc to get memory.
32168         Fix a couple of other minor bugs while we're at it.
32169
32170         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
32171         (NAMLEN): Remove macro.
32172         (malloc, realloc): Remove decls.
32173         (stpcpy): Likewise.
32174         ("xalloc.h"): Include.
32175         (NAME_SIZE_DEFAULT): New macro.
32176         (savedir): Use xmalloc / xrealloc to allocate memory.
32177         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
32178         Skip "" directory entries.
32179         Use strlen to calculate directory entry length, since the old method
32180         is rarely used these days and isn't worth supporting.
32181         Don't use a pointer after freeing it.
32182         Check for integer overflow when calculating allocation size.
32183         Use memcpy to copy entries, instead of stpcpy.
32184         Set errno properly when returning NULL.
32185         Check for readdir error.
32186
32187 2000-06-26  Jim Meyering  <meyering@lucent.com>
32188
32189         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
32190
32191 2000-06-25  Jim Meyering  <meyering@lucent.com>
32192
32193         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
32194         Linux header bug when _XOPEN_SOURCE is defined to 500.
32195
32196 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
32197
32198         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
32199         deficiency.
32200
32201 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
32202
32203         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
32204         Include xalloc.h.
32205         Don't include <stdlib.h>.  Don't declare malloc, realloc.
32206
32207 2000-06-24  Jim Meyering  <meyering@lucent.com>
32208
32209         * m4/strerror_r.m4: Revive this file -- to try out an experimental
32210         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
32211         for which strerror does return char*, but which lacks a conveniently
32212         accessible declaration of the function.  If the compile-test says
32213         strerror_r doesn't work, then resort to a `run'-test that works on
32214         BeOS and segfaults on DEC Unix.
32215
32216 2000-06-24  Jim Meyering  <meyering@lucent.com>
32217
32218         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
32219
32220 2000-06-23  Paul Eggert  <eggert@twinsun.com>
32221
32222         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
32223         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
32224
32225 2000-06-23  Paul Eggert  <eggert@twinsun.com>
32226
32227         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
32228         (mbrtowc, mbstate_t): Define substitutes if
32229         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
32230         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
32231         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
32232
32233 2000-06-23  Jim Meyering  <meyering@lucent.com>
32234
32235         * m4/afs.m4: Add missing AC_MSG_RESULT.
32236         Reported by Bruno Haible.
32237
32238         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
32239         Suggestion from Bruno Haible.
32240
32241 2000-06-23  Jim Meyering  <meyering@lucent.com>
32242
32243         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
32244
32245 2000-06-21  Jim Meyering  <meyering@lucent.com>
32246
32247         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
32248
32249 2000-06-21  Jim Meyering  <meyering@lucent.com>
32250
32251         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
32252         (noinst_HEADERS): Add getstr.h.
32253
32254         * lib/getline.c (getstr): Move into a separate file.
32255         * lib/getstr.c (getstr): New file, extracted from getline.c, with
32256         the following changes: new parameter, delim2; both delim[12]
32257         parameters have type `int', not `char'.  The latter would lose
32258         with 8-bit delimiters.
32259         * lib/getstr.h: New file.
32260
32261 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
32262
32263         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
32264         than 1024, return a memory chunk of least possible size, instead
32265         of size PATH_MAX + 2. In the loop, increment the size proportionally.
32266         Use free/xmalloc instead of xrealloc to avoid copying for very long
32267         paths.
32268
32269 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
32270
32271         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
32272         the empty string.
32273
32274 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
32275
32276         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
32277         address, not strdup.  Include <stdlib.h> and don't declare free().
32278
32279 2000-06-19  Jim Meyering  <meyering@lucent.com>
32280
32281         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
32282
32283 2000-06-18  Jim Meyering  <meyering@lucent.com>
32284
32285         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
32286
32287         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
32288         `checking whether...' message to be consistent with that of the
32289         lstat test.
32290
32291 2000-06-18  Jim Meyering  <meyering@lucent.com>
32292
32293         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
32294         Besides, these days every porting target provides a mkdir function.
32295
32296         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
32297         needed. (this snippet comes from src/system.h).
32298
32299 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
32300
32301         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
32302
32303 2000-06-15  Paul Eggert  <eggert@twinsun.com>
32304
32305         * lib/human.c (adjust_value): New function.
32306         (human_readable_inexact): Apply rounding style even when
32307         printing approximate values.
32308
32309 2000-06-14  Paul Eggert  <eggert@twinsun.com>
32310
32311         * lib/human.c (human_readable_inexact): Allow an input block
32312         size that is not a multiple of the output block size, and vice versa.
32313         Reported by Piergiorgio Sartor.
32314
32315 2000-06-14  Paul Eggert  <eggert@twinsun.com>
32316
32317         * lib/getdate.y (get_date): Apply relative times after time
32318         zone indicator, not before.  Reported by Todd A. Jacobs.
32319
32320 2000-06-13  Jim Meyering  <meyering@lucent.com>
32321
32322         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
32323
32324         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
32325
32326 2000-06-12  Paul Eggert  <eggert@twinsun.com>
32327
32328         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
32329
32330 2000-06-12  Jim Meyering  <meyering@lucent.com>
32331
32332         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
32333         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
32334         optional argument.
32335         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
32336         the optional argument, `lib'.
32337
32338 2000-06-08  Jim Meyering  <meyering@lucent.com>
32339
32340         * m4/largefile.m4: Remove file (now that it's part of autoconf).
32341
32342 2000-06-04  Paul Eggert  <eggert@twinsun.com>
32343
32344         Rewrite largefile configuration so that we don't need to run
32345         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
32346         AC_CANONICAL_HOST in configure.in -- jmm]
32347
32348         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
32349         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
32350         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
32351         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
32352         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
32353         All uses changed.
32354         Instead of inspecting the output of getconf, try to compile the
32355         test program without and with the macro definition.
32356         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
32357         for getconf.  Instead, check for the needed flags by compiling
32358         test programs.
32359
32360 2000-06-04  Paul Eggert  <eggert@twinsun.com>
32361
32362         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
32363
32364 2000-06-04  Jim Meyering  <meyering@lucent.com>
32365
32366         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
32367         SunOS 4.1.4 for which gid_t is an unsigned type.
32368
32369 2000-06-03  Jim Meyering  <meyering@lucent.com>
32370
32371         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
32372         now that autoconf requires that.
32373
32374         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
32375         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
32376         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
32377
32378 2000-06-03  Jim Meyering  <meyering@lucent.com>
32379
32380         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
32381
32382 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
32383
32384         * m4/glibc21.m4: New file.
32385         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
32386
32387 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
32388
32389         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
32390         newer, don't install charset.alias.
32391         * lib/config.charset: Change the Linux/glibc rules so they become empty
32392         on glibc-2.1 or newer.
32393
32394 2000-06-02  Jim Meyering  <meyering@lucent.com>
32395
32396         * lib/mountlist.c: Back out last change.  Instead, do this...
32397         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
32398         me_dummy member using the same `ignore'-testing code.
32399         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
32400         fs_type strings.
32401         From Mark D. Roth.
32402
32403 2000-05-29  Jim Meyering  <meyering@lucent.com>
32404
32405         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
32406         mounts with the `ignore' attribute.  Based on a patch from
32407         Mark D. Roth.
32408
32409 2000-05-28  Jim Meyering  <meyering@lucent.com>
32410
32411         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
32412         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
32413         * m4/stat.m4: Likewise.
32414         * m4/lstat.m4: Likewise.
32415         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
32416
32417         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
32418         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
32419
32420 2000-05-26  Jim Meyering  <meyering@lucent.com>
32421
32422         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
32423
32424 2000-05-24  Jim Meyering  <meyering@lucent.com>
32425
32426         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
32427         autoconf requires that.
32428         * m4/lib-check.m4: Likewise.
32429         * m4/jm-macros.m4: Likewise.
32430         * m4/strftime.m4: Likewise.
32431
32432         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
32433         AC_CHECK_DECLS, now that autoconf requires that.
32434
32435 2000-05-22  Jim Meyering  <meyering@lucent.com>
32436
32437         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
32438         * m4/lstat.m4: Likewise.
32439
32440 2000-05-22  Jim Meyering  <meyering@lucent.com>
32441
32442         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
32443
32444 2000-05-20  Jim Meyering  <meyering@lucent.com>
32445
32446         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
32447         (jm_PREREQ): Use it.
32448
32449 2000-05-18  Jim Meyering  <meyering@lucent.com>
32450
32451         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
32452         back, too, since it may have been modified by allocate_entry.
32453         (hash_delete): Rewrite to use neither the assignment operator
32454         nor the comma operator in an if-expression.
32455
32456 2000-05-15  Paul Eggert  <eggert@twinsun.com>
32457
32458         * lib/closeout.c:
32459         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
32460         Remove; no longer needed.
32461         "quotearg.h": Add include.
32462         (file_name): Do not bother to explicitly initialize to NULL; it's less
32463         efficient on some hosts.
32464         (close_stdout_status): Remove test as to whether stdout was already
32465         closed; it breaks for the case "echo x | sort >&-".
32466         Quote file name colons.
32467         Do not assume that _("write error") lacks format strings.
32468
32469 2000-05-15  Jim Meyering  <meyering@lucent.com>
32470
32471         * lib/version-etc.c (version_etc_copyright): Update the copyright
32472         string used in all --version output.
32473
32474 2000-05-14  Jim Meyering  <meyering@lucent.com>
32475
32476         * lib/closeout.c (close_stdout_set_file_name): New function.
32477         (close_stdout_status): Use new file-scoped global.
32478         Return right away if fstat says the stdout file descriptor is invalid.
32479         * lib/closeout.h (close_stdout_set_file_name): Declare.
32480
32481 2000-05-10  Jim Meyering  <meyering@lucent.com>
32482
32483         * lib/closeout.c [default_exit_status]: New file-scoped variable.
32484         (close_stdout_set_status): New function.
32485         * lib/closeout.h (close_stdout_set_status): Declare.
32486
32487 2000-05-09  Jim Meyering  <meyering@lucent.com>
32488
32489         * m4/gettext.m4: Rename this...
32490         * m4/libintl.m4: ...to this.
32491
32492 2000-05-08  Jim Meyering  <meyering@lucent.com>
32493
32494         * lib/long-options.c: Don't include closeout.h.
32495         (parse_long_options): Don't call close_stdout for --version.
32496
32497 2000-05-06  Paul Eggert  <eggert@twinsun.com>
32498
32499         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
32500         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
32501         2.1.3 bug.  This avoids a clash when files like regex.c define
32502         _GNU_SOURCE.
32503
32504 2000-05-06  Jim Meyering  <meyering@lucent.com>
32505
32506         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
32507         (AC_REPLACE_FUNCS): Add strnlen.
32508
32509         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
32510         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
32511
32512         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
32513         AC_SEARCH_LIBS call for nanosleep.
32514         (LIB_NANOSLEEP): Set and AC_SUBST.
32515
32516 2000-05-06  Jim Meyering  <meyering@lucent.com>
32517
32518         * lib/strnlen.c: Undefine __strnlen and strnlen.
32519         [!weak_alias]: Define __strnlen to strnlen.
32520
32521         * lib/atexit.c: New file, from libiberty.
32522
32523 2000-05-06  Jim Meyering  <meyering@lucent.com>
32524
32525         * lib/closeout.c (close_stdout_status): Also check for errors on the
32526         stderr stream.
32527
32528 2000-05-05  Jim Meyering  <meyering@lucent.com>
32529
32530         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
32531         AC_SEARCH_LIBS call for clock_gettime.
32532         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
32533
32534         * m4/search-libs.m4: Update from autoconf.
32535
32536         su doesn't work on Solaris 2.6.
32537         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
32538         <shadow.h>.  Reported by Dragos Harabor.
32539
32540 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
32541
32542         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
32543         memcpy instead of xmalloc, xrealloc, path_concat.
32544         (locale_charset): Treat empty environment variables as absent.
32545         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
32546
32547 2000-05-04  Jim Meyering  <meyering@lucent.com>
32548
32549         * lib/getopt.c: Update from glibc.
32550         * lib/obstack.c: Likewise.
32551         * lib/obstack.h: Likewise.
32552         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
32553         file
32554
32555         * lib/regex.h: Likewise.
32556         * lib/strndup.c: Likewise.
32557         * lib/strnlen.c: New file, from glibc.
32558
32559 2000-05-03  Jim Meyering  <meyering@lucent.com>
32560
32561         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
32562
32563 2000-05-02  Paul Eggert  <eggert@twinsun.com>
32564
32565         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
32566         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
32567         compile-time test, rather than inspecting host and OS, to
32568         decide whether to define _LARGEFILE_SOURCE.
32569
32570 2000-05-01  Jim Meyering  <meyering@lucent.com>
32571
32572         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
32573
32574         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
32575         Based on a patch from Bruno Haible.
32576
32577 2000-05-01  Jim Meyering  <meyering@lucent.com>
32578
32579         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
32580
32581 2000-04-29  Jim Meyering  <meyering@lucent.com>
32582
32583         * lib/path-concat.c: Declare strdup only if it's not defined.
32584         * lib/canon-host.c: Likewise.
32585
32586 2000-04-28  Jim Meyering  <meyering@lucent.com>
32587
32588         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
32589         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
32590         is included first, then limits.h is included by locale.h by libintl.h.
32591         From John David Anglin.
32592
32593 2000-04-25  Jim Meyering  <meyering@lucent.com>
32594
32595         * lib/makepath.c (S_IRWXUGO): Define.
32596         (make_path): Always perform explicit chmod if MODE specifies any
32597         of the `special' permission bits.  Prompted by a bug report against
32598         install from Mate Wierdl and Joost van Baal.
32599
32600 2000-04-18  Jim Meyering  <meyering@lucent.com>
32601
32602         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
32603         (jm_PREREQ): Use it.
32604
32605 2000-04-18  Jim Meyering  <meyering@lucent.com>
32606
32607         * lib/README: New file.
32608
32609         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
32610         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
32611
32612 2000-04-17  Jim Meyering  <meyering@lucent.com>
32613
32614         Get it right :-)
32615         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
32616         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
32617         Suggestion from Akim Demaille.
32618
32619 2000-04-17  Jim Meyering  <meyering@lucent.com>
32620
32621         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
32622         the definition of it to rpl_strftime also defined-away the system's
32623         declaration.
32624
32625 2000-04-15  Jim Meyering  <meyering@lucent.com>
32626
32627         Use `C' to denote so-called `contiguous' files, the same way
32628         that tar does.
32629         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
32630         (ftypelet): Use S_ISCTG.
32631         From Michael Deutschmann.
32632
32633 2000-04-14  Jim Meyering  <meyering@lucent.com>
32634
32635         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
32636         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
32637         clobbered.
32638
32639 2000-04-14  Jim Meyering  <meyering@lucent.com>
32640
32641         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
32642
32643 2000-04-13  Jim Meyering  <meyering@lucent.com>
32644
32645         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
32646         AH_VERBATIM to insert required #ifndef into config.h.in.
32647         Suggestion from Akim Demaille.
32648
32649 2000-04-12  Jim Meyering  <meyering@lucent.com>
32650
32651         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
32652         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
32653         Christian Krackowizer.
32654
32655         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
32656         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
32657         (AC_SYS_LARGEFILE): Require.
32658         (AM_C_PROTOTYPES): Require.
32659
32660 2000-04-08  Jim Meyering  <meyering@lucent.com>
32661
32662         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
32663         names don't conflict.  Reported by Eli Zaretskii.
32664
32665 2000-04-07  Jim Meyering  <meyering@lucent.com>
32666
32667         * lib/putenv.c: Move inclusion of errno.h so it follows that of
32668         sys/types.h, to work around system header problems on AIX 3.2.5.
32669         From Bruno Haible.
32670
32671 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
32672
32673         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
32674         bug.  Deal with the different error behavior of Irix iconv.
32675
32676 2000-04-05  Paul Eggert  <eggert@twinsun.com>
32677
32678         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
32679         IRIX if the installer said otherwise.
32680
32681 2000-04-05  Jim Meyering  <meyering@lucent.com>
32682
32683         Portability tweaks required for ultrix4.3.
32684         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
32685         (jm_CHECK_DECLS): Add getutent to the list of functions.
32686         (_jm_DECL_HEADERS): Add utmpx.h.
32687         From John David Anglin.
32688
32689         * m4/strftime.m4: Back out the 2000-04-02 change.
32690         Instead of that change, simply undefine putenv in the test program.
32691
32692 2000-04-05  Jim Meyering  <meyering@lucent.com>
32693
32694         Portability tweaks required for ultrix4.3.
32695         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
32696         getutent.
32697         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
32698         * lib/canon-host.c: Declare strdup.
32699         * lib/path-concat.c: Likewise.
32700         From John David Anglin.
32701
32702 2000-04-04  Jim Meyering  <meyering@lucent.com>
32703
32704         Be more DOS 8.3-friendly.
32705         * lib/ref-add.sin: Renamed from ref-add.sed.in.
32706         * lib/ref-del.sin: Renamed from ref-del.sed.in.
32707         * lib/Makefile.am: Reflect renaming.
32708         Reported by Eli Zaretskii.
32709
32710         Use a temporary file name that won't clash with `charset.alias'
32711         in the DOS 8.3 name space.
32712         * lib/Makefile.am (charset_tmp): Define.
32713         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
32714         (uninstall-local): Likewise.
32715         Reported by Eli Zaretskii.
32716
32717 2000-04-03  Jim Meyering  <meyering@lucent.com>
32718
32719         * m4/gettext.m4: Fix typo in comment.
32720
32721         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
32722         textutils/configure.in).  Suggestion from Paul Eggert.
32723         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
32724
32725 2000-04-02  Paul Eggert  <eggert@twinsun.com>
32726
32727         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
32728         variable in the shell rather than using putenv, which isn't
32729         portable.  This avoids the configure-time inter-test dependency
32730         on the potentially-renamed putenv function.
32731
32732 2000-03-30  Paul Eggert  <eggert@twinsun.com>
32733
32734         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
32735         before checking struct stat.st_blksize, so that
32736         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
32737
32738 2000-03-29  Paul Eggert  <eggert@twinsun.com>
32739
32740         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
32741         since strftime.c uses HAVE_STRFTIME to decide whether to use
32742         the underlying strftime.
32743
32744 2000-03-29  Paul Eggert  <eggert@twinsun.com>
32745
32746         * lib/time/strftime.c (my_strftime): Make sure we call the system
32747         strftime, not ourselves, when invoking the underlying strftime.
32748
32749 2000-03-24  Jim Meyering  <meyering@lucent.com>
32750
32751         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
32752         (charset_alias): Define.
32753         (install-exec-local): Factor out common code.
32754         (uninstall-local): Split lines longer than 80.
32755         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
32756         (SUFFIXES): Define.
32757         (.sed.in.sed): New rule.  Don't redirect directly to $@.
32758         (CLEANFILES): Add ref-add.sed and ref-del.sed.
32759
32760 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
32761
32762         * lib/config.charset: Output a line containing "Packages using this
32763         file".
32764         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
32765         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
32766         ref-del.sed): New rules.
32767
32768 2000-03-17  Jim Meyering  <meyering@lucent.com>
32769
32770         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
32771         Otherwise, include <strings.h>
32772
32773 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
32774
32775         * lib/unicodeio.c (utf8_wctomb): New function.
32776         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
32777         format instead of in UCS-4 with platform dependent endianness.
32778
32779 2000-03-10  Jim Meyering  <meyering@lucent.com>
32780
32781         * m4/lib-check.m4: Look for getspnam in -lgen, too.
32782         From Marco Franzen.
32783
32784 2000-03-07  Paul Eggert  <eggert@twinsun.com>
32785
32786         * lib/savedir.c (savedir): Work even if directory size is
32787         negative; this can happen with some screwy NFS configurations.
32788
32789 2000-03-06  Jim Meyering  <meyering@lucent.com>
32790
32791         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
32792         if it's NULL (because we ran out of memory).  From Bruno Haible.
32793
32794 2000-03-05  Jim Meyering  <meyering@lucent.com>
32795
32796         * lib/localcharset.c ("path-concat.h"): Include.
32797         (get_charset_aliases): Use path_concat instead of ANSI string
32798         concatenation.
32799
32800         * lib/unicodeio.h (PARAMS): Define.
32801         Use it to guard prototype.
32802
32803 2000-03-04  Jim Meyering  <meyering@lucent.com>
32804
32805         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
32806         for lib/localcharset.c.
32807
32808 2000-03-04  Jim Meyering  <meyering@lucent.com>
32809
32810         * lib/Makefile.am (install-exec-local): Create $(libdir) before
32811         installing into it.
32812         (uninstall-local): Uncomment this rule so `make distcheck' works
32813         once again.
32814
32815         * lib/unicodeio.c (<errno.h>): Include it.
32816         (errno): Declare if not defined.
32817
32818         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
32819
32820         * lib/config.charset: New version, incorporating remarks from a linux
32821         i18n mailing list.  From Bruno Haible.
32822
32823 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
32824
32825         * m4/codeset.m4: New file.
32826         * m4/iconv.m4: New file.
32827         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
32828
32829 2000-03-03  Jim Meyering  <meyering@lucent.com>
32830
32831         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
32832
32833 2000-03-02  Jim Meyering  <meyering@lucent.com>
32834
32835         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
32836         the messages come out on separate lines.
32837
32838         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
32839         rather than jm_CHECK_DECLARATIONS.
32840         * m4/decl.m4: Remove now-unused file.
32841
32842         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
32843         geteuid.
32844
32845 2000-03-02  Jim Meyering  <meyering@lucent.com>
32846
32847         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
32848
32849 2000-03-01  Jim Meyering  <meyering@lucent.com>
32850
32851         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
32852         * lib/unicodeio.c: Likewise.
32853
32854 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
32855
32856         * lib/config.charset: New file.
32857         * lib/localcharset.c: New file.
32858         * lib/unicodeio.h, lib/unicodeio.c: New files.
32859         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
32860         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
32861         (noinst_HEADERS): Add unicodeio.h.
32862         (all-local, install-exec-local, charset.alias): New targets.
32863
32864 2000-02-28  Paul Eggert  <eggert@twinsun.com>
32865
32866         * lib/quotearg.c (ALERT_CHAR): New macro.
32867         (quotearg_buffer_restyled): Use it.
32868
32869 2000-02-27  Jim Meyering  <meyering@lucent.com>
32870
32871         * m4/check-decl.m4: Add getenv to the list.
32872
32873 2000-02-27  Jim Meyering  <meyering@lucent.com>
32874
32875         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
32876         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
32877
32878         * lib/backupfile.c: Guard inclusion of stdlib.h with
32879         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
32880         Declare malloc if needed.
32881
32882         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
32883         `#ifndef HAVE_DECL..'
32884         now that autoconf always defines the HAVE_DECL_ symbols.
32885         * lib/human.c: Likewise.
32886         * lib/same.c: Likewise.
32887         * lib/strtoumax.c: Likewise.
32888
32889         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
32890         declaration check was not run.
32891         * lib/hash.c: Likewise.
32892         * lib/human.c: Likewise.
32893         * lib/same.c: Likewise.
32894         * lib/strtoumax.c: Likewise.
32895
32896         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
32897         `.', then first look up the entire `.'-containing string as a login
32898         name.
32899
32900 2000-02-23  Jim Meyering  <meyering@lucent.com>
32901
32902         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
32903         in place of my hack.
32904
32905 2000-02-18  Paul Eggert  <eggert@twinsun.com>
32906
32907         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
32908         (textint): New typedef.
32909         (parser_control): Member year changed from int to textint.
32910         All uses changed.
32911         (YYSTYPE): Removed; replaced by %union with int and textint members.
32912         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
32913         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
32914         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
32915         (tSNUMBER, tUNUMBER): Now of type <textintval>.
32916         (date, number, to_year): Use width of number in digits, not its value,
32917         to determine whether it's a 2-digit year, or a 2-digit time.
32918         (yylex): Store number of digits of numeric tokens.
32919         Reported by John Kendall.
32920
32921         (parser_control): Changed from struct parser_control to typedef (for
32922         consistency).  All uses changed.
32923
32924         (tID): Removed; not used.
32925         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
32926
32927 2000-02-14  Paul Eggert  <eggert@twinsun.com>
32928
32929         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
32930         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
32931
32932 2000-02-12  Jim Meyering  <meyering@lucent.com>
32933
32934         * lib/userspec.c (ISDIGIT): Define it.
32935         (isdigit): Remove definition.
32936         (is_number): Use ISDIGIT, not isdigit.
32937         <libintl.h>: Include.
32938         (_ and N_): Define.
32939         (parse_user_spec): Mark translatable strings.
32940
32941 2000-02-10  Jim Meyering  <meyering@lucent.com>
32942
32943         With these changes, nanosleep.[ch] are finally enough like the other
32944         lib/* replacement files to compile on a few more losing systems.
32945
32946         * lib/nanosleep.h: Don't include config.h.
32947         Remove prototype from declaration of nanosleep.
32948         (PARAMS): Remove now-unneeded definition.
32949         * lib/nanosleep.c: #undef nanosleep.
32950         (rpl_nanosleep): Rename from nanosleep.
32951
32952 2000-02-10  Jim Meyering  <meyering@lucent.com>
32953
32954         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
32955         gnu_nanosleep to rpl_nanosleep.
32956
32957 2000-02-09  Jim Meyering  <meyering@lucent.com>
32958
32959         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
32960         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
32961
32962 2000-02-08  Akim Demaille  <akim@epita.fr>
32963
32964         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
32965         `[' and `]' and remove uses of `changequote'.
32966         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
32967         (AC_SYS_LARGEFILE): Likewise.
32968         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
32969         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
32970         of changequote.
32971         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
32972         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
32973         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
32974         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
32975
32976 2000-02-05  Jim Meyering  <meyering@lucent.com>
32977
32978         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
32979         Remove explicit use of AC_HEADER_TIME.  It is required by
32980         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
32981         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
32982         in autoconf whereby the expansion of the latter ended up preceding
32983         the expansion of its prerequisite, AC_HEADER_TIME.
32984         Reported by Volker Borchert.
32985
32986 2000-02-03  Jim Meyering  <meyering@lucent.com>
32987
32988         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
32989
32990 2000-02-03  Jim Meyering  <meyering@lucent.com>
32991
32992         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
32993         rather than with `#if HAVE_UTMPNAME'.
32994
32995 2000-02-02  Jim Meyering  <meyering@lucent.com>
32996
32997         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
32998         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
32999         Reported by Eli Zaretskii.
33000
33001 2000-02-01  Jim Meyering  <meyering@lucent.com>
33002
33003         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
33004
33005 2000-01-31  Jim Meyering  <meyering@lucent.com>
33006
33007         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
33008         functions.  Add the time.h and sys/time.h headers along with the
33009         AC_REQUIRE'ment of AC_HEADER_TIME.
33010
33011 2000-01-31  Jim Meyering  <meyering@lucent.com>
33012
33013         * lib/nanosleep.h (nanosleep): Guard declaration with
33014         `#if ! HAVE_DECL_NANOSLEEP'.
33015         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
33016         the declaration in that vendor's sys/timers.h.
33017         Reported by Christian Krackowizer.
33018
33019         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
33020         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
33021         (ISPRINT): Likewise.
33022         Reported by Tom Tromey.
33023
33024 2000-01-30  Jim Meyering  <meyering@lucent.com>
33025
33026         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
33027
33028         * m4/prereq.m4 (utmp_includes): Define.
33029         Check for ut_user and ut_name members in both struct utmpx
33030         and struct utmp.
33031
33032 2000-01-30  Jim Meyering  <meyering@lucent.com>
33033
33034         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
33035         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
33036         header files where only utmpx.ut_user is declared.
33037
33038         * lib/readutmp.h (UT_USER): Define.
33039
33040 2000-01-29  Jim Meyering  <meyering@lucent.com>
33041
33042         * m4/lib-check.m4: New file containing library-related checks from
33043         fileutils and sh-utils (textutils had none).
33044
33045 2000-01-28  Jim Meyering  <meyering@lucent.com>
33046
33047         * m4/perl.m4: Change format of warning message to look more like that
33048         from the missing script.  Suggestion from François Pinard.
33049
33050 2000-01-25  Jim Meyering  <meyering@lucent.com>
33051
33052         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
33053         well as time.h in the compile check.
33054         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
33055         Fix typo in cross-compiling case: s/yes/no/.
33056
33057 2000-01-23  Jim Meyering  <meyering@lucent.com>
33058
33059         * m4/jm-macros.m4: Move df-related tests here from
33060         fileutils/configure.in
33061
33062         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
33063         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
33064
33065         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
33066         s/space/ac_fsusage_space/.
33067         (jm_FILE_SYSTEM_USAGE): Take two parameters.
33068
33069         * m4/ftruncate.m4: New file (derived from part of
33070         fileutils/configure.in).
33071         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
33072         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
33073
33074         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
33075         AC_SUBST these here, rather than just in sh-util/configure.in, so
33076         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
33077         all the same.
33078         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
33079         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
33080         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
33081         (AC_SUBST(POW_LIBM)): Likewise.
33082         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
33083
33084 2000-01-23  Jim Meyering  <meyering@lucent.com>
33085
33086         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
33087         obstack.c.
33088
33089 2000-01-22  Jim Meyering  <meyering@lucent.com>
33090
33091         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
33092
33093         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
33094
33095         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
33096         configure.in
33097         (AC_CHECK_HEADERS): Likewise for sh-utils.
33098         (AC_CHECK_HEADERS): Likewise for textutils.
33099         Merge the three lists of headers.
33100
33101         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
33102         from fileutils' configure.in.
33103
33104         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
33105         code. Moved tests into their own function (_jm_DECL_HEADERS) in
33106         check-decl.m4.
33107
33108         * m4/check-decl.m4: Use #if rather than #ifdef.
33109         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
33110         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
33111         (_jm_DECL_HEADERS): Define new function.
33112         (jm_CHECK_DECLARATIONS): Require it.
33113
33114 2000-01-22  Jim Meyering  <meyering@lucent.com>
33115
33116         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
33117         [! HAVE_DECL_STRTOULL]: Declare strtoull.
33118         Required for some AIX systems.  Reported by Christian Krackowizer.
33119         [TESTING] (main): New function.
33120
33121         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
33122         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
33123         letters.
33124
33125         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
33126         iswprint.
33127
33128         * lib/strverscmp.c (ISDIGIT): Define.
33129         (strverscmp): Use ISDIGIT, not isdigit.
33130
33131 2000-01-19  Jim Meyering  <meyering@lucent.com>
33132
33133         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
33134         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
33135         defines `struct timespec' in <sys/time.h>
33136
33137         * m4/c-bs-a.m4: Remove uses of changequote altogether.
33138         Thanks to Akim for explaining.
33139
33140 2000-01-17  Paul Eggert  <eggert@twinsun.com>
33141
33142         * lib/nanosleep.c (nanosleep):
33143         Don't use SA_INTERRUPT to decide whether to call sigaction, as
33144         POSIX.1 doesn't require SA_INTERRUPT and some systems
33145         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
33146         it's been part of POSIX.1 since day 1 (in 1988).
33147
33148 2000-01-17  Jim Meyering  <meyering@lucent.com>
33149
33150         * lib/interlock: Remove unused file.  Reported by François Pinard.
33151
33152 2000-01-16  Paul Eggert  <eggert@twinsun.com>
33153
33154         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
33155         alert, backslash, formfeed, and vertical tab unnecessarily in
33156         shell quoting style.
33157
33158 2000-01-16  Jim Meyering  <meyering@lucent.com>
33159
33160         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
33161         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
33162         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
33163         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
33164
33165 2000-01-16  Jim Meyering  <meyering@lucent.com>
33166
33167         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
33168         because the latter didn't work.
33169
33170 2000-01-15  Jim Meyering  <meyering@lucent.com>
33171
33172         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
33173         (AC_REPLACE_FUNCS): Add memcpy and memset.
33174         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
33175         Add strpbrk.
33176         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
33177
33178 2000-01-12  Jim Meyering  <meyering@lucent.com>
33179
33180         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
33181         (jm_PREREQ): Use it.
33182         (jm_PREREQ_READUTMP): New macro.
33183         (jm_PREREQ): Use it.
33184
33185 2000-01-11  Paul Eggert  <eggert@twinsun.com>
33186
33187         Quote multibyte characters correctly.
33188         * m4/c-bs-a.m4: New file.
33189         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
33190         (jm_PREREQ): Use it.
33191
33192 2000-01-11  Paul Eggert  <eggert@twinsun.com>
33193
33194         * m4/uintmax_t.m4: Port to autoconf 2.13.
33195
33196 2000-01-08  Jim Meyering  <meyering@ascend.com>
33197
33198         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
33199         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
33200
33201 2000-01-04  Jim Meyering  <meyering@ascend.com>
33202
33203         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
33204         jm_STRUCT_DIRENT_D_TYPE.
33205         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
33206         jm_STRUCT_DIRENT_D_INO.
33207         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
33208         jm_STRUCT_UTIMBUF.
33209         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
33210         renamings.
33211         * m4/utime.m4: Likewise.
33212
33213         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
33214         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
33215
33216 2000-01-03  Paul Eggert  <eggert@twinsun.com>
33217
33218         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
33219         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
33220
33221 2000-01-02  Jim Meyering  <meyering@ascend.com>
33222
33223         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
33224         remember if this is necessary.
33225
33226 1999-12-26  Jim Meyering  <meyering@ascend.com>
33227
33228         * m4/jm-macros.m4: Use it here.
33229         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
33230
33231 1999-12-23  Jim Meyering  <meyering@ascend.com>
33232
33233         * m4/jm-macros.m4: Check for clock_gettime (moved from
33234         fileutils/configure.in)
33235         Check for gettimeofday.
33236
33237 1999-12-20  Jim Meyering  <meyering@ascend.com>
33238
33239         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
33240         autoconf-2.14a-1999-12-20.
33241
33242 1999-12-19  Jim Meyering  <meyering@ascend.com>
33243
33244         * m4/lstat-slash.m4: New file.
33245         * m4/jm-macros.m4: Use the new macro:
33246         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
33247
33248 1999-12-07  Jim Meyering  <meyering@ascend.com>
33249
33250         * m4/perl.m4: Require that File::Compare be available, too.
33251         Too many systems seem to lack it.
33252
33253         * m4/strftime.m4: Add checks for most of the cpp macros tested in
33254         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
33255
33256 1999-11-18  Paul Eggert  <eggert@twinsun.com>
33257
33258         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
33259         problem with the QNX 4.25 shell, which doesn't propagate exit
33260         status of failed commands inside shell assignments.
33261
33262 1999-11-17  Jim Meyering  <meyering@ascend.com>
33263
33264         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
33265
33266 1999-11-07  Jim Meyering  <meyering@ascend.com>
33267
33268         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
33269
33270 1999-11-06  Jim Meyering  <meyering@ascend.com>
33271
33272         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
33273         * m4/jm-macros.m4 (jm_MACROS): Use it here.
33274
33275 1999-11-05  Jim Meyering  <meyering@ascend.com>
33276
33277         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
33278         configure.in of textutils, fileutils, and sh-utils into this one
33279         (shared between those packages) file.
33280         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
33281         AC_STRUCT_ST_BLKSIZE.
33282
33283 1999-11-03  Jim Meyering  <meyering@ascend.com>
33284
33285         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
33286         of AC_CHECK_TYPE checks includes unistd.h.
33287         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
33288         Suggestion from Akim Demaille.
33289
33290 1999-10-30  Jim Meyering  <meyering@ascend.com>
33291
33292         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
33293         m4-quoted string.
33294         * m4/ls-mntd-fs.m4: Likewise.
33295         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
33296         * m4/jm-winsz1.m4: Likewise.
33297
33298         * m4/const.m4: Remove file, since the fix made it into the experimental
33299         version of autoconf.
33300         * m4/mktime.m4: Likewise.
33301
33302         * m4/check-type.m4: Remove file, now that the latest version of
33303         AC_CHECK_TYPE takes a third arg to specify additional #includes.
33304
33305         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
33306         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
33307         AC_CHECK_TYPE.
33308
33309 1999-10-04  Jim Meyering  <meyering@ascend.com>
33310
33311         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
33312
33313 1999-09-22  Paul Eggert  <eggert@twinsun.com>
33314
33315         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
33316         2.95.1 bug with HP-UX 10.20.
33317
33318 1999-09-17  Jim Meyering  <meyering@ascend.com>
33319
33320         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
33321         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
33322         due to missing strdup (against sh-utils-2.0).
33323
33324 1999-08-29  Jim Meyering  <meyering@ascend.com>
33325
33326         * m4/jm-macros.m4: Require jm_BISON.
33327         * m4/bison.m4: New file.
33328
33329 1999-08-17  Paul Eggert  <eggert@twinsun.com>
33330
33331         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
33332         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
33333
33334 1999-08-05  Jim Meyering  <meyering@ascend.com>
33335
33336         * m4/getline.m4: Rename test file from conftestdata to conftest.data
33337         to avoid conflicts with `conftest' on 8+3 filesystems.
33338         Suggestion from Eli Zaretskii.
33339
33340 1999-08-04  Jim Meyering  <meyering@ascend.com>
33341
33342         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
33343         fileutils and sh-utils (textutils's getline test was inadequate).
33344         (AM_FUNC_GETLINE): Run this test.
33345         (AC_CHECK_FUNCS): Check for getdelim.
33346         Reported by Bob Proulx.
33347
33348 1999-08-02  Jim Meyering  <meyering@ascend.com>
33349
33350         * m4/jm-macros.m4: Add a comment.
33351
33352 1999-08-01  Paul Eggert  <eggert@twinsun.com>
33353
33354         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
33355         <inttypes.h> defines strtoumax as a macro (and not as a
33356         function).
33357
33358 1999-08-01  Paul Eggert  <eggert@twinsun.com>
33359
33360         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
33361         that we can shift, multiply and divide unsigned long long
33362         values; Ultrix cc can't do it.
33363
33364 1999-08-01  Paul Eggert  <eggert@twinsun.com>
33365
33366         * m4/mktime.m4: New file, which is a preview of what should appear
33367         in the next public autoconf release.
33368
33369 1999-08-01  Paul Eggert  <eggert@twinsun.com>
33370
33371         * m4/lfs.m4: Remove this file.
33372         * m4/largefile.m4: New file.  It contains the old contents of
33373         lfs.m4, except that all names with prefix AC_LFS have been
33374         changed to use the prefix AC_SYS_LARGEFILE instead, to be
33375         compatible with future autoconf versions.  Also, some minor m4
33376         quoting problems have been fixed.
33377
33378 1999-08-01  Paul Eggert  <eggert@twinsun.com>
33379
33380         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
33381         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
33382         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
33383         and simplify the shell code.
33384
33385 1999-08-01  Jim Meyering  <meyering@ascend.com>
33386
33387         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
33388         m4.
33389
33390 1999-07-20  Jim Meyering  <meyering@ascend.com>
33391
33392         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
33393
33394 1999-07-15  Jim Meyering  <meyering@ascend.com>
33395
33396         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
33397
33398 1999-05-22  Jim Meyering  <meyering@ascend.com>
33399
33400         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
33401
33402 1999-05-20  Jim Meyering  <meyering@ascend.com>
33403
33404         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
33405         Add a colon after each `then' in case $4 is empty.
33406
33407 1999-05-16  Jim Meyering  <meyering@ascend.com>
33408
33409         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
33410
33411 1999-05-10  Jim Meyering  <meyering@ascend.com>
33412
33413         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
33414
33415         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
33416         AC_FUNC_MKTIME.
33417
33418 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
33419
33420         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
33421
33422 1999-05-04  Paul Eggert  <eggert@twinsun.com>
33423
33424         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
33425         not CPPFLAGS, so that linking works correctly in IRIX.
33426
33427 1999-04-30  Paul Eggert  <eggert@twinsun.com>
33428
33429         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
33430
33431 1999-04-20  Paul Eggert  <eggert@twinsun.com>
33432
33433         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
33434         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
33435         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
33436         jm_AC_TYPE_UNSIGNED_LONG_LONG.
33437         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
33438
33439         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
33440
33441 1999-04-20  Jim Meyering  <meyering@ascend.com>
33442
33443         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
33444         AC_REPLACE xstroull if necessary.  From Paul Eggert.
33445         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
33446
33447 1999-04-18  Jim Meyering  <meyering@ascend.com>
33448
33449         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
33450         * m4/jm-macros.m4: Use it.
33451
33452 1999-04-06  Jim Meyering  <meyering@ascend.com>
33453
33454         * m4/strftime.m4: Remove test for %f.
33455
33456 1999-03-29  Jim Meyering  <meyering@ascend.com>
33457
33458         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
33459         superset of the AC_TYPE_* checks in the textutils, fileutils,
33460         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
33461         AC_TYPE_PID_T.
33462
33463 1999-03-28  Jim Meyering  <meyering@ascend.com>
33464
33465         * m4/jm-macros.m4: Define GNU_PACKAGE here.
33466         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
33467         replaced e.g., in the *.sh files of the sh-utils.
33468
33469 1999-03-20  Jim Meyering  <meyering@ascend.com>
33470
33471         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
33472         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
33473         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
33474
33475 1999-03-19  Jim Meyering  <meyering@ascend.com>
33476
33477         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
33478
33479 1999-03-12  Jim Meyering  <meyering@ascend.com>
33480
33481         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
33482
33483 1999-03-07  Jim Meyering  <meyering@ascend.com>
33484
33485         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
33486         declared.
33487
33488 1999-02-17  Jim Meyering  <meyering@ascend.com>
33489
33490         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
33491         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
33492
33493 1999-02-07  Jim Meyering  <meyering@ascend.com>
33494
33495         * m4/group-member.m4: New file -- extracted from sh-utils'
33496         configure.in.
33497
33498         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
33499         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
33500
33501 1999-02-06  Jim Meyering  <meyering@ascend.com>
33502
33503         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
33504         * m4/fnmatch.m4: Likewise.
33505         * m4/getgroups.m4: Likewise.
33506         * m4/lstat.m4: Likewise.
33507         * m4/malloc.m4: Likewise.
33508         * m4/putenv.m4: Likewise.
33509         * m4/realloc.m4: Likewise.
33510         * m4/regex.m4: Likewise.
33511         * m4/stat.m4: Likewise.
33512         * m4/strftime.m4: Likewise.
33513         Suggestion from Alain Magloire.
33514
33515         * m4/chown.m4: Use `.$ac_objext', not `.o'.
33516         * m4/fnmatch.m4: Likewise.
33517         * m4/getgroups.m4: Likewise.
33518         * m4/getline.m4: Likewise.
33519         * m4/lstat.m4: Likewise.
33520         * m4/malloc.m4: Likewise.
33521         * m4/memcmp.m4: Likewise.
33522         * m4/putenv.m4: Likewise.
33523         * m4/realloc.m4: Likewise.
33524         * m4/regex.m4: Likewise.
33525         * m4/stat.m4: Likewise.
33526         * m4/strftime.m4: Likewise.
33527         Suggestion from Alain Magloire.
33528
33529         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
33530         an argument.
33531
33532         * m4/regex.m4: Add a run-time Test for proper operation of
33533         re_compile_pattern.
33534
33535 1999-01-31  Jim Meyering  <meyering@ascend.com>
33536
33537         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
33538
33539 1999-01-30  Jim Meyering  <meyering@ascend.com>
33540
33541         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
33542
33543         * m4/jm-mktime.m4: Make this a wrapper around the official
33544         AM_FUNC_MKTIME rather than my private copy, now that the official one
33545         is up to date.
33546         * m4/mktime.m4: Remove file.
33547
33548         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
33549         * m4/uptime.m4: Likewise.
33550         * m4/uintmax_t.m4: Likewise.
33551
33552 1999-01-28  Jim Meyering  <meyering@ascend.com>
33553
33554         * m4/jm-macros.m4: Use jm_AFS.
33555         * m4/afs.m4: New file (from fileutils' configure.in).
33556
33557         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
33558         * m4/chown.m4: Likewise.
33559         * m4/d-ino.m4: Likewise.
33560         * m4/d-type.m4: Likewise.
33561         * m4/fnmatch.m4: Likewise.
33562         * m4/getgroups.m4: Likewise.
33563         * m4/gettext.m4: Likewise.
33564         * m4/jm-mktime.m4: Likewise.
33565         * m4/jm-winsz2.m4: Likewise.
33566         * m4/lcmessage.m4: Likewise.
33567         * m4/ls-mntd-fs.m4: Likewise.
33568         * m4/malloc.m4: Likewise.
33569         * m4/memcmp.m4: Likewise.
33570         * m4/putenv.m4: Likewise.
33571         * m4/realloc.m4: Likewise.
33572         * m4/st_mtim.m4: Likewise.
33573         * m4/strftime.m4: Likewise.
33574
33575 1999-01-16  Jim Meyering  <meyering@ascend.com>
33576
33577         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
33578         (ARGMATCH_DIE_DECL): Define.
33579
33580 1999-01-12  Jim Meyering  <meyering@ascend.com>
33581
33582         * m4/Makefile.am.in: Rewrite to avoid using fmt.
33583         Reported by Lars Hecking.
33584
33585 1999-01-10  Jim Meyering  <meyering@ascend.com>
33586
33587         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
33588         gross kludge.
33589         * m4/inttypes_h.m4: Likewise.
33590         * m4/lstat.m4: Likewise.
33591         * m4/malloc.m4: Likewise.
33592         * m4/readdir.m4: Likewise.
33593         * m4/realloc.m4: Likewise.
33594         * m4/st_dm_mode.m4: Likewise.
33595         * m4/stat.m4: Likewise.
33596         * m4/utimbuf.m4: Likewise.
33597         * m4/utimes.m4: Likewise.
33598
33599         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
33600         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
33601         comments in config.h.in are meaningful.
33602
33603         * m4/jm-macros.m4: Require autoconf-2.13 here.
33604
33605         * m4/regex.m4: By default, don't use the included regex.c on systems
33606         with glibc 2.  Suggestion from Uli Drepper.
33607
33608 1999-01-02  Jim Meyering  <meyering@ascend.com>
33609
33610         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
33611
33612 1998-12-18  Jim Meyering  <meyering@ascend.com>
33613
33614         * m4/Makefile.am.in (Makefile.am): Simplify rule.
33615         Based on a suggestion from Lars Hecking.
33616
33617 1998-11-16  Paul Eggert  <eggert@twinsun.com>
33618
33619         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
33620
33621 1998-11-16  Jim Meyering  <meyering@ascend.com>
33622
33623         * m4/lfs.m4: Double-quote the `uname...` expression.
33624
33625 1998-11-14  Jim Meyering  <meyering@ascend.com>
33626
33627         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
33628         * m4/stat.m4: Likewise.
33629
33630 1998-11-03  Jim Meyering  <meyering@ascend.com>
33631
33632         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
33633         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
33634
33635 1998-10-18  Jim Meyering  <meyering@ascend.com>
33636
33637         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
33638
33639 1998-10-17  Jim Meyering  <meyering@ascend.com>
33640
33641         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
33642         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
33643         calls for those previously hard-coded headers.  Instead, take a new
33644         parameter.
33645         (jm_CHECK_DECLARATIONS): Reflect interface change.
33646         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
33647         (jm_CHECK_DECL_LOCALTIME_R): New macro.
33648
33649         * m4/mktime.m4: Test for spring-forward gap before long-running test.
33650
33651 1998-10-14  Jim Meyering  <meyering@ascend.com>
33652
33653         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
33654         instead of "TZ=America/Vancouver".  From Paul Eggert.
33655
33656 1998-10-11  Jim Meyering  <meyering@ascend.com>
33657
33658         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
33659         This adds a test for a recently added compatibility fix for mktime.c.
33660         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
33661
33662 1998-09-27  Jim Meyering  <meyering@ascend.com>
33663
33664         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
33665
33666         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
33667         ../configure.in, including a change from Gordon Matzigkeit to allow
33668         cross-compiling for the Hurd.
33669
33670         * m4/glibc.m4: New file/macro to test for the GNU C Library
33671         versions 1 and 2.  From Gordon Matzigkeit.
33672         Indent.
33673
33674 1998-09-21  Jim Meyering  <meyering@ascend.com>
33675
33676         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
33677
33678 1998-08-18  Paul Eggert  <eggert@twinsun.com>
33679
33680         Port nanosecond-resolution times to UnixWare 2.1.2 and
33681         pedantic Solaris 2.6.
33682
33683         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
33684         AC_STRUCT_ST_MTIM.
33685         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
33686         Generate name of ns member, instead of just 1 or undef.
33687         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
33688
33689 1998-08-15  Jim Meyering  <meyering@ascend.com>
33690
33691         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
33692         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
33693         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
33694         instead of jm_TYPE_SSIZE_T.
33695
33696 1998-08-12  Jim Meyering  <meyering@ascend.com>
33697
33698         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
33699
33700 1998-08-02  Jim Meyering  <meyering@ascend.com>
33701
33702         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
33703         in acconfig.h manually.
33704
33705 1998-07-31  Paul Eggert  <eggert@twinsun.com>
33706
33707         * m4/st_mtim.m4: New file.
33708
33709 1998-07-28  Jim Meyering  <meyering@ascend.com>
33710
33711         * m4/utimes.m4: Undef stat.
33712
33713 1998-07-25  Jim Meyering  <meyering@ascend.com>
33714
33715         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
33716         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
33717
33718 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
33719
33720         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
33721         uid and gid actually remain unchanged.
33722
33723 1998-07-07  Jim Meyering  <meyering@ascend.com>
33724
33725         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
33726
33727 1998-07-04  Jim Meyering  <meyering@ascend.com>
33728
33729         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
33730         to prove that this macro can be used in packages without regex.c.
33731
33732 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
33733
33734         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
33735         is to be used.
33736
33737 1998-07-03  Jim Meyering  <meyering@ascend.com>
33738
33739         * m4/gettext.m4: Add -lintl if it's found to be necessary.
33740
33741         * m4/gettext.m4: New file -- from gettext-0.10.35.
33742         * m4/lcmessage.m4: Likewise.
33743         * m4/progtest.m4: Likewise.
33744
33745         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
33746         * m4/jm-macros.m4: Require the new macro.
33747
33748 1998-06-29  Jim Meyering  <meyering@ascend.com>
33749
33750         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
33751         for the definition of NGROUPS (used in a system header included
33752         by sys/mount.h).
33753
33754 1998-06-28  Jim Meyering  <meyering@ascend.com>
33755
33756         * m4/ls-mntd-fs.m4: New file.
33757         * m4/fstypename.m4: New file.
33758
33759         * m4/jm-macros.m4: Require the new macro.
33760         * m4/jm-glibc-io.m4: New file.
33761
33762 1998-05-19  Jim Meyering  <meyering@ascend.com>
33763
33764         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
33765         * m4/lchown.m4: New file.
33766
33767         * m4/Makefile.am.in: New file.
33768         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
33769
33770 1998-05-14  Jim Meyering  <meyering@ascend.com>
33771
33772         * m4/Makefile.am (EXTRA_DIST): Add them.
33773         * m4/jm-macros.m4: New file.
33774         * m4/utimbuf.m4: New file.
33775
33776 1998-05-12  Jim Meyering  <meyering@ascend.com>
33777
33778         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
33779
33780 1998-05-11  Jim Meyering  <meyering@ascend.com>
33781
33782         * m4/isc-posix.m4: New file.
33783
33784 1998-05-10  Jim Meyering  <meyering@ascend.com>
33785
33786         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
33787
33788 1998-05-09  Jim Meyering  <meyering@ascend.com>
33789
33790         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
33791         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
33792         with automake.
33793
33794         * m4/ssize_t.m4: New file.
33795         * m4/mktime.m4: Remove file -- the new automake has this now.
33796
33797 1998-04-26  Jim Meyering  <meyering@ascend.com>
33798
33799         * m4/assert.m4: New file.
33800         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
33801
33802 1998-04-05  Jim Meyering  <meyering@ascend.com>
33803
33804         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
33805         (jm_PREREQ): Use it here.
33806
33807 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
33808
33809         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
33810         in acconfig.h.
33811
33812 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
33813
33814         * m4/prereq.m4: New file.
33815         * m4/error.m4: New file.
33816         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
33817
33818 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
33819
33820         * m4/getline.m4: Don't set am_cv_func_working_getline before the
33821         cache-check for the same variable -- that defeated the purpose of
33822         the test; the test program was never run.  This was a problem only
33823         on systems with losing getline functions -- HP-UX 10.20 is one.
33824         Reported by Bjorn Helgaas.
33825
33826 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
33827
33828         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
33829
33830 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
33831
33832         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
33833
33834         * m4/const.m4: New file.  Use an initializer in this declaration
33835         typedef int charset[2]; const charset x;
33836         Reported by Bob Glickstein.
33837
33838 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
33839
33840         * m4/chown.m4: Fix reversed types on -1 args to chown.
33841         From Kaveh Ghazi.
33842
33843 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
33844
33845         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
33846         Add lseek and memchr.
33847
33848         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
33849         T.E.Dickey <dickey@clark.net> said that some older preprocessors
33850         have a 20-character limit on names.
33851
33852 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
33853
33854         * m4/inttypes_h.m4: New file.
33855         * m4/uintmax_t.m4: New file.
33856         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
33857
33858 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
33859   Free Software Foundation, Inc.
33860 Copying and distribution of this file, with or without modification,
33861 are permitted provided the copyright notice and this notice are preserved.